37 instantiations of ImmutableArray
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
ChangeSignature\TestChangeSignatureOptionsService.cs (1)
32: new ImmutableArray<Parameter>();
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
CodeFixes\ErrorCases\CodeFixExceptionInFixableDiagnosticIds2.cs (1)
15public sealed override ImmutableArray<string> FixableDiagnosticIds => new ImmutableArray<string>();
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (4)
Compilation\CompilationAPITests.vb (4)
1944Assert.Throws(Of ArgumentException)(Function() genericType.Construct(New ImmutableArray(Of ITypeSymbol), New ImmutableArray(Of CodeAnalysis.NullableAnnotation))) 1976Assert.Throws(Of ArgumentException)(Function() genericMethod.Construct(New ImmutableArray(Of ITypeSymbol), New ImmutableArray(Of CodeAnalysis.NullableAnnotation)))
System.Collections.Immutable (31)
System\Collections\Immutable\ImmutableArray.cs (13)
40return new ImmutableArray<T>(array); 53return new ImmutableArray<T>(array); 67return new ImmutableArray<T>(array); 82return new ImmutableArray<T>(array); 99return new ImmutableArray<T>(array); 164return new ImmutableArray<T>((T[])array); 175return new ImmutableArray<T>(items.ToArray(count)); 179return new ImmutableArray<T>(items.ToArray()); 202return new ImmutableArray<T>(tmp); 233return new ImmutableArray<T>(array); 264return new ImmutableArray<T>(array); 294return new ImmutableArray<TResult>(array); 328return new ImmutableArray<TResult>(array);
System\Collections\Immutable\ImmutableArray_1.Builder.cs (3)
194return new ImmutableArray<T>(this.ToArray()); 213return new ImmutableArray<T>(temp); 237return new ImmutableArray<T>(result);
System\Collections\Immutable\ImmutableArray_1.cs (10)
336return new ImmutableArray<T>(tmp); 389return new ImmutableArray<T>(tmp); 470return new ImmutableArray<T>(tmp); 494return new ImmutableArray<T>(tmp); 563return new ImmutableArray<T>(tmp); 663return new ImmutableArray<T>(tmp); 853return new ImmutableArray<T>(tmp); 940return new ImmutableArray<T>(items); 1505return new ImmutableArray<T>(newArray); 1525return new ImmutableArray<T>(tmp);
System\Collections\Immutable\ImmutableArray_1.Minimal.cs (4)
44public static readonly ImmutableArray<T> Empty = new ImmutableArray<T>(new T[0]); 341return new ImmutableArray<T>(items.array); 355return new ImmutableArray<TOther>((TOther[])(object)array!); 379return new ImmutableArray<TOther>((this.array as TOther[]));
System\Runtime.InteropServices\ImmutableCollectionsMarshal.cs (1)
33return new(array);
33066 references to ImmutableArray
AnalyzerRunner (24)
AnalyzerRunnerMefHostServices.cs (1)
31private static ImmutableArray<Assembly> DefaultAssemblies
CodeRefactoringRunner.cs (4)
29private readonly ImmutableDictionary<string, ImmutableArray<CodeRefactoringProvider>> _refactorings; 153private static ImmutableDictionary<string, ImmutableArray<CodeRefactoringProvider>> FilterRefactorings(ImmutableDictionary<string, ImmutableArray<Lazy<CodeRefactoringProvider, CodeRefactoringProviderMetadata>>> refactorings, Options options) 199private static ImmutableDictionary<string, ImmutableArray<Lazy<CodeRefactoringProvider, CodeRefactoringProviderMetadata>>> GetCodeRefactoringProviders(string path)
DiagnosticAnalyzerRunner.cs (15)
27private readonly ImmutableDictionary<string, ImmutableArray<DiagnosticAnalyzer>> _analyzers; 178private static async Task<DocumentAnalyzerPerformance> TestDocumentPerformanceAsync(ImmutableDictionary<string, ImmutableArray<DiagnosticAnalyzer>> analyzers, Project project, DocumentId documentId, Options analyzerOptionsInternal, CancellationToken cancellationToken) 180if (!analyzers.TryGetValue(project.Language, out var languageAnalyzers)) 182languageAnalyzers = ImmutableArray<DiagnosticAnalyzer>.Empty; 200private static void WriteDiagnosticResults(ImmutableArray<Tuple<ProjectId, Diagnostic>> diagnostics, string fileName) 232private static ImmutableDictionary<string, ImmutableArray<DiagnosticAnalyzer>> FilterAnalyzers(ImmutableDictionary<string, ImmutableArray<DiagnosticAnalyzer>> analyzers, Options options) 285private static ImmutableDictionary<string, ImmutableArray<DiagnosticAnalyzer>> GetDiagnosticAnalyzers(string path) 304private static ImmutableDictionary<string, ImmutableArray<DiagnosticAnalyzer>> GetDiagnosticAnalyzersFromFile(string path) 307var csharpAnalyzers = analyzerReference.GetAnalyzers(LanguageNames.CSharp); 308var basicAnalyzers = analyzerReference.GetAnalyzers(LanguageNames.VisualBasic); 309return ImmutableDictionary<string, ImmutableArray<DiagnosticAnalyzer>>.Empty 316ImmutableDictionary<string, ImmutableArray<DiagnosticAnalyzer>> analyzers, 334if (!analyzers.TryGetValue(project.Language, out var languageAnalyzers) || languageAnalyzers.IsEmpty) 380ImmutableArray<DiagnosticAnalyzer> analyzers,
Options.cs (3)
29public readonly ImmutableArray<string> IncrementalAnalyzerNames; 55ImmutableArray<string> incrementalAnalyzerNames) 94ImmutableArray<string> incrementalAnalyzerNames)
Program.cs (1)
142solution = solution.WithProjectAnalyzerReferences(projectId, ImmutableArray<AnalyzerReference>.Empty);
Aspire.Dashboard (11)
Model\ResourceSourceViewModel.cs (1)
19if (resource.TryGetExecutableArguments(out var arguments))
Model\ResourceViewModel.cs (2)
22private readonly ImmutableArray<HealthReportViewModel> _healthReports = []; 82internal static HealthStatus? ComputeHealthStatus(ImmutableArray<HealthReportViewModel> healthReports, KnownResourceState? state)
Model\ResourceViewModelExtensions.cs (2)
57public static bool TryGetExecutableArguments(this ResourceViewModel resource, out ImmutableArray<string> arguments) 74private static bool TryGetCustomDataStringArray(this ResourceViewModel resource, string key, out ImmutableArray<string> strings)
ResourceService\IDashboardClient.cs (1)
49ImmutableArray<ResourceViewModel> InitialState,
ResourceService\Partials.cs (5)
76ImmutableArray<EnvironmentVariableViewModel> GetEnvironment() 83ImmutableArray<RelationshipViewModel> GetRelationships() 90ImmutableArray<UrlViewModel> GetUrls() 100ImmutableArray<VolumeViewModel> GetVolumes() 107ImmutableArray<CommandViewModel> GetCommands()
Aspire.Dashboard.Components.Tests (2)
tests\Shared\DashboardModel\ModelTestHelpers.cs (2)
16ImmutableArray<UrlViewModel>? urls = null, 18ImmutableArray<EnvironmentVariableViewModel>? environment = null,
Aspire.Dashboard.Tests (2)
tests\Shared\DashboardModel\ModelTestHelpers.cs (2)
16ImmutableArray<UrlViewModel>? urls = null, 18ImmutableArray<EnvironmentVariableViewModel>? environment = null,
Aspire.Hosting (31)
ApplicationModel\CustomResourceSnapshot.cs (9)
16private readonly ImmutableArray<HealthReportSnapshot> _healthReports = []; 79public ImmutableArray<HealthReportSnapshot> HealthReports 92public ImmutableArray<EnvironmentVariableSnapshot> EnvironmentVariables { get; init; } = []; 97public ImmutableArray<UrlSnapshot> Urls { get; init; } = []; 102public ImmutableArray<VolumeSnapshot> Volumes { get; init; } = []; 107public ImmutableArray<ResourceCommandSnapshot> Commands { get; init; } = []; 112public ImmutableArray<RelationshipSnapshot> Relationships { get; init; } = []; 114internal static HealthStatus? ComputeHealthStatus(ImmutableArray<HealthReportSnapshot> healthReports, string? state) 331public static ImmutableArray<RelationshipSnapshot> BuildRelationships(IResource resource)
ApplicationModel\DcpInstancesAnnotation.cs (2)
11internal class DcpInstancesAnnotation(ImmutableArray<DcpInstance> instances) : IResourceAnnotation 13public ImmutableArray<DcpInstance> Instances => instances;
ApplicationModel\ResourceNotificationService.cs (2)
396ImmutableArray<ResourceCommandSnapshot>.Builder? builder = null; 444static ResourceCommandSnapshot? FindByName(ImmutableArray<ResourceCommandSnapshot> commands, string name)
Dashboard\ResourcePublisher.cs (1)
112ImmutableArray<ResourceSnapshot> InitialState,
Dcp\ApplicationExecutor.cs (9)
240static ImmutableArray<HealthReportSnapshot> GetInitialHealthReports(IResource resource) 617var relationships = ImmutableArray<RelationshipSnapshot>.Empty; 647ImmutableArray<int> GetPorts() 688var relationships = ImmutableArray<RelationshipSnapshot>.Empty; 737private ImmutableArray<UrlSnapshot> GetUrls(CustomResource resource) 812private static ImmutableArray<VolumeSnapshot> GetVolumes(CustomResource resource) 822private static ImmutableArray<EnvironmentVariableSnapshot> GetEnvironmentVariables(List<EnvVar>? effectiveSource, List<EnvVar>? specSource)
Dcp\DcpNameGenerator.cs (1)
58private static void AddInstancesAnnotation(IResource resource, ImmutableArray<DcpInstance> instances)
Dcp\KubernetesService.cs (1)
276ImmutableArray<(string name, string value)>? queryParams = [
Health\ResourceHealthCheckService.cs (4)
99static bool ContainsAnyHealthReportChange(HealthReport report, ImmutableArray<HealthReportSnapshot> latestHealthReportSnapshots) 123var healthReports = MergeHealthReports(s.HealthReports, report); 157ImmutableArray<HealthReportSnapshot> MergeHealthReports(ImmutableArray<HealthReportSnapshot> healthReports, HealthReport report)
src\Shared\CustomResourceSnapshotExtensions.cs (2)
11internal static ImmutableArray<ResourcePropertySnapshot> SetResourceProperty(this ImmutableArray<ResourcePropertySnapshot> properties, string name, object value)
Aspire.Hosting.Analyzers (3)
AppHostAnalyzer.cs (1)
18public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => Diagnostics.SupportedDiagnostics;
AppHostAnalyzer.Diagnostics.cs (1)
23public static readonly ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics = ImmutableArray.Create(
Infrastructure\WellKnownTypes.cs (1)
87var types = _compilation.GetTypesByMetadataName(metadataName);
Aspire.Hosting.Azure (4)
Provisioning\Provisioners\BicepProvisioner.cs (2)
88ImmutableArray<ResourcePropertySnapshot> props = [ 339ImmutableArray<ResourcePropertySnapshot> properties = [
src\Shared\CustomResourceSnapshotExtensions.cs (2)
11internal static ImmutableArray<ResourcePropertySnapshot> SetResourceProperty(this ImmutableArray<ResourcePropertySnapshot> properties, string name, object value)
BuildActionTelemetryTable (15)
Program.cs (9)
435var assemblies = GetAssemblies(args); 436var codeActionAndProviderTypes = GetCodeActionAndProviderTypes(assemblies); 440var telemetryInfos = GetTelemetryInfos(codeActionAndProviderTypes); 452internal static ImmutableArray<Assembly> GetAssemblies(string[] paths) 478internal static ImmutableArray<Type> GetCodeActionAndProviderTypes(IEnumerable<Assembly> assemblies) 494internal static ImmutableArray<(string TypeName, string Hash)> GetTelemetryInfos(ImmutableArray<Type> codeActionAndProviderTypes) 512internal static string GenerateKustoDatatable(ImmutableArray<(string TypeName, string Hash)> telemetryInfos) 548internal static string GenerateCodeActionsDescriptionMap(ImmutableArray<(string TypeName, string Hash)> telemetryInfos)
src\Compilers\Core\Portable\InternalUtilities\Hash.cs (3)
114internal static int CombineValues<T>(ImmutableArray<T> values, int maxItemsToHash = int.MaxValue) 165internal static int CombineValues(ImmutableArray<string> values, StringComparer stringComparer, int maxItemsToHash = int.MaxValue) 246internal static int GetFNVHashCode(ImmutableArray<byte> data)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticDescriptorExtensions.cs (3)
23public static ImmutableArray<string> ImmutableCustomTags(this DiagnosticDescriptor descriptor) 25Debug.Assert(descriptor.CustomTags is ImmutableArray<string>); 26return (ImmutableArray<string>)descriptor.CustomTags;
BuildValidator (15)
CompilationDiff.cs (7)
48private readonly ImmutableArray<Diagnostic> _diagnostics; 54private readonly ImmutableArray<MetadataReferenceInfo> _references; 63public ImmutableArray<Diagnostic> Diagnostics 85ImmutableArray<Diagnostic> diagnostics = default, 92ImmutableArray<MetadataReferenceInfo> references = default, 119ImmutableArray<MetadataReferenceInfo> references) 225void writeDiagnostics(ImmutableArray<Diagnostic> diagnostics)
LocalReferenceResolver.cs (1)
139aliases: metadataReferenceInfo.ExternAlias is null ? ImmutableArray<string>.Empty : ImmutableArray.Create(metadataReferenceInfo.ExternAlias),
LocalSourceResolver.cs (2)
20internal ImmutableArray<SourceLinkEntry> SourceLinkEntries { get; } 23public LocalSourceResolver(Options options, ImmutableArray<SourceLinkEntry> sourceLinkEntries, ILogger logger)
Program.cs (5)
338var sourceLinks = ResolveSourceLinks(optionsReader, logger); 362private static ImmutableArray<SourceLinkEntry> ResolveSourceLinks(CompilationOptionsReader compilationOptionsReader, ILogger logger) 370return ImmutableArray<SourceLinkEntry>.Empty; 376var sourceLinks = documents.Select(makeSourceLink).ToImmutableArray(); 381sourceLinks = ImmutableArray<SourceLinkEntry>.Empty;
CodeStyleConfigFileGenerator (3)
Program.cs (3)
40var assemblyList = args[3].Split(new[] { ';' }, StringSplitOptions.RemoveEmptyEntries).ToImmutableArray(); 47private static void CreateGlobalConfigFiles(string language, string outputDir, ImmutableArray<string> assemblyList) 57var analyzers = analyzerFileReference.GetAnalyzers(languageForGetAnalyzers);
ConfigurationSchemaGenerator (17)
ConfigSchemaGenerator.cs (2)
64ImmutableArray<TypedConstant> args = attribute.ConstructorArguments; 87ImmutableArray<TypedConstant> args = attribute.ConstructorArguments;
RuntimeSource\Configuration.Binder\ConfigurationBindingGenerator.Parser.cs (5)
35public SourceGenerationSpec? GetSourceGenerationSpec(ImmutableArray<BinderInvocation?> invocations, CancellationToken cancellationToken) 79private void ParseInvocations(ImmutableArray<BinderInvocation?> invocations) 666ImmutableArray<ISymbol> members = current.GetMembers(); 952var throwIfNullMethods = _typeSymbols.ArgumentNullException.GetMembers("ThrowIfNull"); 958var parameters = throwIfNullMethodSymbol.Parameters;
RuntimeSource\Configuration.Binder\Parser\ConfigurationBinder.cs (4)
42ImmutableArray<IParameterSymbol> @params = operation.TargetMethod.Parameters; 120private static IArgumentOperation GetArgumentForParameterAtIndex(ImmutableArray<IArgumentOperation> arguments, int parameterIndex) 137ImmutableArray<IParameterSymbol> @params = targetMethod.Parameters; 192ImmutableArray<IParameterSymbol> @params = targetMethod.Parameters;
RuntimeSource\Configuration.Binder\Parser\OptionsBuilderConfigurationExtensions.cs (3)
18ImmutableArray<IParameterSymbol> @params = targetMethod.Parameters; 46ImmutableArray<IParameterSymbol> @params = targetMethod.Parameters; 73ImmutableArray<IParameterSymbol> @params = targetMethod.Parameters;
RuntimeSource\Configuration.Binder\Parser\OptionsConfigurationServiceCollectionExtensions.cs (1)
19ImmutableArray<IParameterSymbol> @params = targetMethod.Parameters;
RuntimeSource\Roslyn\GetBestTypeByMetadataName.cs (2)
160public static ImmutableArray<T> ToImmutableArray<T>(this ReadOnlySpan<T> span) 164case 0: return ImmutableArray<T>.Empty;
ConfigurationSchemaGenerator.Tests (7)
GeneratorTests.cs (7)
44private static readonly ImmutableArray<MetadataReference> s_defaultReferences = 453ImmutableArray<MetadataReference> references = [ 684ImmutableArray<MetadataReference> references = [ 754ImmutableArray<MetadataReference> references = [ 782ImmutableArray<MetadataReference> references = 822ImmutableArray<MetadataReference> references = 1356ImmutableArray<MetadataReference> references = [
DesignSurfaceExt (2)
TypeDiscoveryService.cs (2)
19private readonly ConcurrentDictionary<Type, ImmutableArray<Type>> _discoveredTypesCache = new(); 27static ImmutableArray<Type> FindTypes(Type baseType, Assembly[] assemblies)
GenerateRulesMissingDocumentation (2)
Program.cs (2)
155var analyzers = analyzerFileReference.GetAnalyzersForAllLanguages(); 173private static readonly ImmutableArray<string> s_assemblies = ImmutableArray.Create(
IdeBenchmarks (6)
InheritanceMargin\BenchmarksHelpers.cs (1)
18public static async Task<ImmutableArray<InheritanceMarginItem>> GenerateInheritanceMarginItemsAsync(
InheritanceMargin\InheritanceMarginGlyphBenchmarks.cs (2)
45private ImmutableArray<InheritanceMarginTag> _tags; 130var items = await BenchmarksHelpers.GenerateInheritanceMarginItemsAsync(workspace.CurrentSolution, cancellationToken).ConfigureAwait(false);
InheritanceMargin\InheritanceMarginServiceBenchmarks.cs (1)
60var items = await BenchmarksHelpers.GenerateInheritanceMarginItemsAsync(
RegexClassifierBenchmarks.cs (2)
69protected Task<ImmutableArray<ClassifiedSpan>> GetClassificationSpansAsync(string code, TextSpan span, ParseOptions parseOptions) 78protected static async Task<ImmutableArray<ClassifiedSpan>> GetSemanticClassificationsAsync(Document document, TextSpan span)
IdeCoreBenchmarks (8)
ClassificationBenchmarks.cs (2)
64var assemblies = MSBuildMefHostServices.DefaultAssemblies 85protected static async Task<ImmutableArray<ClassifiedSpan>> GetSemanticClassificationsAsync(Document document, TextSpan span)
CSharpIdeAnalyzerBenchmarks.cs (1)
62incrementalAnalyzerNames: ImmutableArray<string>.Empty);
FindReferencesBenchmarks.cs (1)
61var assemblies = MSBuildMefHostServices.DefaultAssemblies
IncrementalSourceGeneratorBenchmarks.cs (1)
69var assemblies = MSBuildMefHostServices.DefaultAssemblies
NavigateToBenchmarks.cs (3)
66var assemblies = MSBuildMefHostServices.DefaultAssemblies 217g => Task.Run(() => SearchAsync(solution, g, priorityDocuments: ImmutableArray<Document>.Empty), CancellationToken.None)).ToArray(); 226private async Task<int> SearchAsync(Solution solution, IGrouping<INavigateToSearchService, Project> grouping, ImmutableArray<Document> priorityDocuments)
illink (19)
ILLink.CodeFixProvider (10)
DynamicallyAccessedMembersCodeFixProvider.cs (3)
25 private static ImmutableArray<DiagnosticDescriptor> GetSupportedDiagnostics () 62 public static ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => GetSupportedDiagnostics (); 64 public sealed override ImmutableArray<string> FixableDiagnosticIds => SupportedDiagnostics.Select (dd => dd.Id).ToImmutableArray ();
RequiresAssemblyFilesCodeFixProvider.cs (2)
20 public static ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create ( 25 public sealed override ImmutableArray<string> FixableDiagnosticIds => SupportedDiagnostics.Select (dd => dd.Id).ToImmutableArray ();
RequiresDynamicCodeCodeFixProvider.cs (2)
20 public static ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create (DiagnosticDescriptors.GetDiagnosticDescriptor (DiagnosticId.RequiresDynamicCode)); 22 public sealed override ImmutableArray<string> FixableDiagnosticIds => SupportedDiagnostics.Select (dd => dd.Id).ToImmutableArray ();
RequiresUnreferencedCodeCodeFixProvider.cs (2)
20 public static ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create (DiagnosticDescriptors.GetDiagnosticDescriptor (DiagnosticId.RequiresUnreferencedCode)); 22 public sealed override ImmutableArray<string> FixableDiagnosticIds => SupportedDiagnostics.Select (dd => dd.Id).ToImmutableArray ();
UnconditionalSuppressMessageCodeFixProvider.cs (1)
24 public sealed override ImmutableArray<string> FixableDiagnosticIds
ILLink.RoslynAnalyzer (72)
COMAnalyzer.cs (1)
25 public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create (s_correctnessOfCOMCannotBeGuaranteed);
CompilationExtensions.cs (2)
140 public static ImmutableArray<T> ToImmutableArray<T> (this ReadOnlySpan<T> span) 143 case 0: return ImmutableArray<T>.Empty;
DataFlow\LocalDataFlowVisitor.cs (6)
165 ImmutableArray<TValue> arguments, 183 return ProcessMethodCall (operation, method, null, ImmutableArray<IArgumentOperation>.Empty, state); 277 ImmutableArray<TValue>.Builder arguments = ImmutableArray.CreateBuilder<TValue> (); 614 ImmutableArray<TValue>.Builder arguments = ImmutableArray.CreateBuilder<TValue> (); 726 ImmutableArray<TValue> arguments, 803 ImmutableArray<IArgumentOperation> arguments,
DataFlowAnalyzerContext.cs (7)
13 private readonly Dictionary<RequiresAnalyzerBase, ImmutableArray<ISymbol>> _enabledAnalyzers; 17 public ImmutableArray<ISymbol> GetSpecialIncompatibleMembers (RequiresAnalyzerBase analyzer) 19 if (!_enabledAnalyzers.TryGetValue (analyzer, out var members)) 31 Dictionary<RequiresAnalyzerBase, ImmutableArray<ISymbol>> enabledAnalyzers, 40 public static DataFlowAnalyzerContext Create (AnalyzerOptions options, Compilation compilation, ImmutableArray<RequiresAnalyzerBase> requiresAnalyzers) 42 var enabledAnalyzers = new Dictionary<RequiresAnalyzerBase, ImmutableArray<ISymbol>> (); 45 var incompatibleMembers = analyzer.GetSpecialIncompatibleMembers (compilation);
DynamicallyAccessedMembersAnalyzer.cs (6)
26 public static Lazy<ImmutableArray<RequiresAnalyzerBase>> RequiresAnalyzers { get; } = new Lazy<ImmutableArray<RequiresAnalyzerBase>> (GetRequiresAnalyzers); 27 static ImmutableArray<RequiresAnalyzerBase> GetRequiresAnalyzers () => 33 public static ImmutableArray<DiagnosticDescriptor> GetSupportedDiagnostics () 81 public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => GetSupportedDiagnostics (); 83 internal static Location GetPrimaryLocation (ImmutableArray<Location>? locations) {
ImmutableArrayOperations.cs (3)
12 internal static bool Contains<T, TComp> (ImmutableArray<T> list, T elem, TComp comparer) 23 internal static TSymbol? TryGetSingleSymbol<TSymbol> (ImmutableArray<ISymbol> members) where TSymbol : class, ISymbol 38 internal static void AddIfNotNull<TSymbol> (ImmutableArray<TSymbol>.Builder properties, TSymbol? p) where TSymbol : class, ISymbol
INamedTypeSymbolExtensions.cs (2)
35 var interfaces = namedType.Interfaces; 45 var members = interfaceSymbol.GetMembers ();
RequiresAnalyzerBase.cs (14)
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; 52 var incompatibleMembers = GetSpecialIncompatibleMembers (compilation); 78 var typeParams = ImmutableArray<ITypeParameterSymbol>.Empty; 79 var typeArgs = ImmutableArray<ITypeSymbol>.Empty; 161 ImmutableArray<ISymbol> incompatibleMembers, 299 ImmutableArray<ISymbol> specialIncompatibleMembers, 311 internal virtual ImmutableArray<ISymbol> GetSpecialIncompatibleMembers (Compilation compilation) => default; 359 var incompatibleMembers = context.GetSpecialIncompatibleMembers (this); 370 ImmutableArray<MultiValue> arguments
RequiresAssemblyFilesAnalyzer.cs (3)
37 public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create (s_locationRule, s_getFilesRule, s_requiresAssemblyFilesRule, s_requiresAssemblyFilesAttributeMismatch, s_requiresAssemblyFilesOnStaticCtor, s_requiresAssemblyFilesOnEntryPoint); 83 internal override ImmutableArray<ISymbol> GetSpecialIncompatibleMembers (Compilation compilation) 107 ImmutableArray<ISymbol> dangerousPatterns,
RequiresDynamicCodeAnalyzer.cs (3)
27 public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => 49 internal override bool IsIntrinsicallyHandled (IMethodSymbol calledMethod, MultiValue instance, ImmutableArray<MultiValue> arguments) { 121 static bool IsConstrainedToBeReferenceTypes(ImmutableArray<GenericParameterProxy> parameters)
RequiresUnreferencedCodeAnalyzer.cs (3)
48 public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => 86 ImmutableArray<ISymbol> specialIncompatibleMembers, 97 private protected override ImmutableArray<(Action<SymbolAnalysisContext> Action, SymbolKind[] SymbolKind)> ExtraSymbolActions =>
src\tools\illink\src\ILLink.Shared\DataFlow\IControlFlowGraph.cs (2)
68 public readonly ImmutableArray<TRegion> FinallyRegions; 70 public ControlFlowBranch (TBlock source, TBlock? destination, ImmutableArray<TRegion> finallyRegions, ConditionKind conditionKind)
src\tools\illink\src\ILLink.Shared\TrimAnalysis\HandleCallAction.cs (6)
922 var genericParameterValues = GetGenericParameterValues (typeValue.RepresentedType.GetGenericParameters ()); 1280 private bool AnalyzeGenericInstantiationTypeArray (in MultiValue arrayParam, ImmutableArray<GenericParameterValue> genericParameters) 1349 var genericParameterValues = GetGenericParameterValues (genericMethod.GetGenericParameters ()); 1355 private ImmutableArray<GenericParameterValue> GetGenericParameterValues (ImmutableArray<GenericParameterProxy> genericParameters) 1358 return ImmutableArray<GenericParameterValue>.Empty;
src\tools\illink\src\ILLink.Shared\TypeSystemProxy\MethodProxy.cs (1)
58 internal partial ImmutableArray<GenericParameterProxy> GetGenericParameters ();
src\tools\illink\src\ILLink.Shared\TypeSystemProxy\TypeProxy.cs (1)
13 internal partial ImmutableArray<GenericParameterProxy> GetGenericParameters ();
TrimAnalysis\GenericArgumentDataFlow.cs (3)
37 ImmutableArray<ITypeSymbol> typeArguments, 38 ImmutableArray<ITypeParameterSymbol> typeParameters, 98 static bool RequiresGenericArgumentDataFlow (ImmutableArray<ITypeParameterSymbol> typeParameters)
TrimAnalysis\MethodProxy.cs (2)
36 internal partial ImmutableArray<GenericParameterProxy> GetGenericParameters () 39 return ImmutableArray<GenericParameterProxy>.Empty;
TrimAnalysis\TrimAnalysisMethodCallPattern.cs (3)
19 public ImmutableArray<MultiValue> Arguments { get; init; } 27 ImmutableArray<MultiValue> arguments, 35 Arguments = ImmutableArray<MultiValue>.Empty;
TrimAnalysis\TrimAnalysisVisitor.cs (2)
280 ImmutableArray<MultiValue> arguments, 322 ImmutableArray<MultiValue> arguments,
TrimAnalysis\TypeProxy.cs (2)
14 internal partial ImmutableArray<GenericParameterProxy> GetGenericParameters () 18 return ImmutableArray<GenericParameterProxy>.Empty;
InteractiveHost.UnitTests (3)
AbstractInteractiveHostTests.cs (3)
80var output = SplitLines(await ReadOutputToEnd()); 127public static ImmutableArray<string> SplitLines(string text) 193public static (string Path, ImmutableArray<byte> Image) CompileLibrary(
Microsoft.Analyzers.Extra (14)
AsyncCallInsideUsingBlockAnalyzer.cs (1)
16public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(
AsyncMethodWithoutCancellation.cs (1)
16public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(
CallAnalysis\CallAnalyzer.cs (1)
16public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(
CallAnalysis\Fixers\LegacyLoggingFixer.cs (3)
50public override ImmutableArray<string> FixableDiagnosticIds => ImmutableArray.Create(DiagDescriptors.LegacyLogging.Id); 239ImmutableArray<IParameterSymbol> attributeCtorParams, 240ImmutableArray<TypedConstant> constructorArguments,
CoalesceAnalyzer.cs (1)
18public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(DiagDescriptors.CoalesceAssignment, DiagDescriptors.Coalesce);
ConditionalAccessAnalyzer.cs (2)
18public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(DiagDescriptors.ConditionalAccess); 117bool MaybeNull(ImmutableArray<AttributeData> attrs)
MakeExeTypesInternalAnalyzer.cs (3)
50public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(DiagDescriptors.MakeExeTypesInternal); 118var members = type.GetMembers(); 121var attrs = member.GetAttributes();
MakeExeTypesInternalFixer.cs (1)
22public override ImmutableArray<string> FixableDiagnosticIds => ImmutableArray.Create(DiagDescriptors.MakeExeTypesInternal.Id);
UsingToStringInLoggersAnalyzer.cs (1)
17public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(DiagDescriptors.UsingToStringInLoggers);
Microsoft.Analyzers.Extra.Tests (13)
Resources\AnalyzerOptionsFactory.cs (1)
17var immutableFiles = ImmutableArray.Create(files, 0, files.Length);
Resources\RoslynTestUtils.cs (12)
174public static async Task<(IReadOnlyList<Diagnostic> diagnostics, ImmutableArray<GeneratedSourceResult> generatedSources)> RunGenerator( 203public static async Task<(IReadOnlyList<Diagnostic> diagnostics, ImmutableArray<GeneratedSourceResult> generatedSources)> RunGenerator( 257var analyzers = ImmutableArray.Create(analyzer); 260var diags = await comp!.WithAnalyzers(analyzers, options).GetAllDiagnosticsAsync().ConfigureAwait(false); 265private static IReadOnlyList<Diagnostic> Sort(ImmutableArray<Diagnostic> diags) 329var analyzers = ImmutableArray.Create(analyzer); 334var diags = await comp!.WithAnalyzers(analyzers, analyzerOptions).GetAllDiagnosticsAsync().ConfigureAwait(false); 361var operations = await actions[0].GetOperationsAsync(CancellationToken.None).ConfigureAwait(false); 455var operations = await fixAllCodeAction!.GetOperationsAsync(CancellationToken.None).ConfigureAwait(false); 514ImmutableArray<DiagnosticAnalyzer> analyzers, 541var diags = await comp!.WithAnalyzers(_analyzers) 547private readonly ImmutableArray<DiagnosticAnalyzer> _analyzers;
Microsoft.Analyzers.Local (5)
ApiLifecycle\ApiLifecycleAnalyzer.cs (1)
21public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics
ApiLifecycle\ModelLoader.cs (1)
22var files = context.Options.AdditionalFiles;
CallAnalysis\CallAnalyzer.cs (1)
16public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(
InternalReferencedInPublicDocAnalyzer.cs (2)
21private static readonly ImmutableArray<DiagnosticDescriptor> _supportedDiagnostics = ImmutableArray.Create(DiagDescriptors.InternalReferencedInPublicDoc); 101public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => _supportedDiagnostics;
Microsoft.Analyzers.Local.Tests (12)
Resources\AnalyzerOptionsFactory.cs (1)
17var immutableFiles = ImmutableArray.Create(files, 0, files.Length);
Resources\RoslynTestUtils.cs (11)
174public static async Task<(IReadOnlyList<Diagnostic> diagnostics, ImmutableArray<GeneratedSourceResult> generatedSources)> RunGenerator( 203public static async Task<(IReadOnlyList<Diagnostic> diagnostics, ImmutableArray<GeneratedSourceResult> generatedSources)> RunGenerator( 257var analyzers = ImmutableArray.Create(analyzer); 266private static IReadOnlyList<Diagnostic> Sort(ImmutableArray<Diagnostic> diags) 330var analyzers = ImmutableArray.Create(analyzer); 335var diags = await comp!.WithAnalyzers(analyzers, analyzerOptions).GetAllDiagnosticsAsync().ConfigureAwait(false); 362var operations = await actions[0].GetOperationsAsync(CancellationToken.None).ConfigureAwait(false); 456var operations = await fixAllCodeAction!.GetOperationsAsync(CancellationToken.None).ConfigureAwait(false); 515ImmutableArray<DiagnosticAnalyzer> analyzers, 542var diags = await comp!.WithAnalyzers(_analyzers) 548private readonly ImmutableArray<DiagnosticAnalyzer> _analyzers;
Microsoft.Arcade.Test.Common (4)
AssertEx.cs (4)
152public static void Equal<T>(ImmutableArray<T> expected, IEnumerable<T> actual, Func<T, T, bool> comparer = null, string message = null) 164public static void Equal<T>(IEnumerable<T> expected, ImmutableArray<T> actual, Func<T, T, bool> comparer = null, string message = null, string itemSeparator = null) 176public static void Equal<T>(ImmutableArray<T> expected, ImmutableArray<T> actual, Func<T, T, bool> comparer = null, string message = null, string itemSeparator = null)
Microsoft.AspNetCore.Analyzer.Testing (4)
CodeFixRunner.cs (2)
51var diagnostics = compilation.GetDiagnostics(); 63var operations = await codeAction.GetOperationsAsync(CancellationToken.None);
DiagnosticAnalyzerRunner.cs (1)
79var diags = await compilationWithAnalyzers.GetAllDiagnosticsAsync();
DiagnosticVerifier.cs (1)
97var diags = await compilationWithAnalyzers.GetAllDiagnosticsAsync();
Microsoft.AspNetCore.Analyzers (15)
CompilationFeatureDetector.cs (1)
36var syntaxReferences = configureMethod.DeclaringSyntaxReferences;
MiddlewareAnalysis.cs (2)
11public MiddlewareAnalysis(IMethodSymbol configureMethod, ImmutableArray<MiddlewareItem> middleware) 21public ImmutableArray<MiddlewareItem> Middleware { get; }
OptionsAnalysis.cs (2)
11public OptionsAnalysis(IMethodSymbol configureServicesMethod, ImmutableArray<OptionsItem> options) 21public ImmutableArray<OptionsItem> Options { get; }
ServicesAnalysis.cs (2)
11public ServicesAnalysis(IMethodSymbol configureServicesMethod, ImmutableArray<ServicesItem> services) 21public ImmutableArray<ServicesItem> Services { get; }
StartupAnalysis.cs (5)
11private readonly ImmutableDictionary<INamedTypeSymbol, ImmutableArray<object>> _analysesByType; 15ImmutableDictionary<INamedTypeSymbol, ImmutableArray<object>> analysesByType) 25if (_analysesByType.TryGetValue(type, out var list)) 39public ImmutableArray<T> GetRelatedAnalyses<T>(INamedTypeSymbol type) where T : class 42if (_analysesByType.TryGetValue(type, out var list))
StartupAnalyzer.cs (1)
15public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => Diagnostics.SupportedDiagnostics;
StartupAnalyzer.Diagnostics.cs (1)
42public static readonly ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics = ImmutableArray.Create<DiagnosticDescriptor>(new[]
StartupFacts.cs (1)
30var members = type.GetMembers();
Microsoft.AspNetCore.Analyzers.Test (3)
src\Shared\AnalyzerTesting\TestReferences.cs (2)
16public static ImmutableArray<MetadataReference> MetadataReferences { get; } = GetMetadataReferences(); 18private static ImmutableArray<MetadataReference> GetMetadataReferences()
StartupCSharpAnalyzerTest.cs (1)
14public StartupCSharpAnalyzerTest(StartupAnalyzer analyzer, ImmutableArray<MetadataReference> metadataReferences)
Microsoft.AspNetCore.App.Analyzers (103)
Authorization\AddAuthorizationBuilderAnalyzer.cs (1)
19public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(DiagnosticDescriptors.UseAddAuthorizationBuilder);
Authorization\AuthorizationOptionsTypes.cs (1)
20var authorizationOptionsMembers = AuthorizationOptions.GetMembers();
Http\HeaderDictionaryAddAnalyzer.cs (1)
17public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(DiagnosticDescriptors.DoNotUseIHeaderDictionaryAdd);
Http\HeaderDictionaryIndexerAnalyzer.cs (1)
16public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(DiagnosticDescriptors.UseHeaderDictionaryPropertiesInsteadOfIndexer);
Http\RequestDelegateReturnTypeAnalyzer.cs (1)
17public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(DiagnosticDescriptors.DoNotReturnValueFromRequestDelegate);
Infrastructure\EmbeddedSyntax\EmbeddedSeparatedSyntaxNodeList.cs (3)
16public ImmutableArray<EmbeddedSyntaxNodeOrToken<TSyntaxKind, TSyntaxNode>> NodesAndTokens { get; } 21= new(ImmutableArray<EmbeddedSyntaxNodeOrToken<TSyntaxKind, TSyntaxNode>>.Empty); 24ImmutableArray<EmbeddedSyntaxNodeOrToken<TSyntaxKind, TSyntaxNode>> nodesAndTokens)
Infrastructure\EmbeddedSyntax\EmbeddedSyntaxToken.cs (4)
17internal readonly ImmutableArray<EmbeddedDiagnostic> Diagnostics; 28ImmutableArray<EmbeddedDiagnostic> diagnostics, object? value) 42public EmbeddedSyntaxToken<TSyntaxKind> WithDiagnostics(ImmutableArray<EmbeddedDiagnostic> diagnostics) 48Optional<ImmutableArray<EmbeddedDiagnostic>> diagnostics = default,
Infrastructure\EmbeddedSyntax\EmbeddedSyntaxTree.cs (2)
16public readonly ImmutableArray<EmbeddedDiagnostic> Diagnostics; 21ImmutableArray<EmbeddedDiagnostic> diagnostics)
Infrastructure\EmbeddedSyntax\EmbeddedSyntaxTrivia.cs (2)
23internal readonly ImmutableArray<EmbeddedDiagnostic> Diagnostics; 25public EmbeddedSyntaxTrivia(TSyntaxKind kind, VirtualCharSequence virtualChars, ImmutableArray<EmbeddedDiagnostic> diagnostics)
Infrastructure\RoutePattern\RoutePatternHelpers.cs (1)
17=> new(kind, virtualChars, ImmutableArray<EmbeddedDiagnostic>.Empty, value: null);
Infrastructure\RoutePattern\RoutePatternNodes.cs (8)
16public RoutePatternCompilationUnit(ImmutableArray<RoutePatternRootPartNode> parts, RoutePatternToken endOfFileToken) 25public ImmutableArray<RoutePatternRootPartNode> Parts { get; } 46public ImmutableArray<RoutePatternSegmentPartNode> Children { get; } 50public RoutePatternSegmentNode(ImmutableArray<RoutePatternSegmentPartNode> children) 105RoutePatternToken openBraceToken, ImmutableArray<RoutePatternParameterPartNode> parameterPartNodes, RoutePatternToken closeBraceToken) 116public ImmutableArray<RoutePatternParameterPartNode> ParameterParts { get; } 315public RoutePatternPolicyParameterPartNode(RoutePatternToken colonToken, ImmutableArray<RoutePatternNode> policyFragments) 324public ImmutableArray<RoutePatternNode> PolicyFragments { get; }
Infrastructure\RoutePattern\RoutePatternParser.cs (4)
63var rootParts = ParseRootParts(); 337HashSet<EmbeddedDiagnostic> seenDiagnostics, ImmutableArray<EmbeddedDiagnostic> from, IList<EmbeddedDiagnostic> to) 348private ImmutableArray<RoutePatternRootPartNode> ParseRootParts() 492private ImmutableArray<RoutePatternParameterPartNode> ParseParameterParts()
Infrastructure\RoutePattern\RoutePatternTree.cs (5)
15public readonly ImmutableArray<RouteParameter> RouteParameters; 20ImmutableArray<EmbeddedDiagnostic> diagnostics, 21ImmutableArray<RouteParameter> routeParameters) 55public RouteParameter(string name, bool encodeSlashes, string? defaultValue, bool isOptional, bool isCatchAll, ImmutableArray<string> policies, TextSpan span) 71public readonly ImmutableArray<string> Policies;
Infrastructure\VirtualChars\VirtualCharSequence.Chunks.cs (1)
18/// is used so we can expose <see cref="VirtualChar"/>s over an <see cref="ImmutableArray{VirtualChar}"/>
Kestrel\ListenOnIPv6AnyAnalyzer.cs (1)
17public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => [ DiagnosticDescriptors.KestrelShouldListenOnIPv6AnyInsteadOfIpAny ];
Mvc\DetectAmbiguousActionRoutes.cs (4)
103public ImmutableArray<string> HttpMethods { get; } 108public ActionRouteGroupKey(IMethodSymbol actionSymbol, RoutePatternTree routePattern, ImmutableArray<string> httpMethods, bool controllerHasActionToken, WellKnownTypes wellKnownTypes) 232private static bool HasMatchingHttpMethods(ImmutableArray<string> httpMethods1, ImmutableArray<string> httpMethods2)
Mvc\MvcAnalyzer.cs (5)
24public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create( 95var unroutedHttpMethods = GetUnroutedMethodHttpMethods(wellKnownTypes, methodSymbol); 111var methods = match.Value is WellKnownType.Microsoft_AspNetCore_Mvc_RouteAttribute 119private static ImmutableArray<string> GetUnroutedMethodHttpMethods(WellKnownTypes wellKnownTypes, IMethodSymbol methodSymbol) 190private record struct ActionRoute(IMethodSymbol ActionSymbol, RouteUsageModel RouteUsageModel, ImmutableArray<string> HttpMethods);
RenderTreeBuilder\RenderTreeBuilderAnalyzer.cs (1)
19public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(DiagnosticDescriptors.DoNotUseNonLiteralSequenceNumbers);
RouteEmbeddedLanguage\FrameworkParametersCompletionProvider.cs (2)
240var existingParameterNames = GetExistingParameterNames(methodNode); 409private static ImmutableArray<string> GetExistingParameterNames(SyntaxNode node)
RouteEmbeddedLanguage\Infrastructure\EmbeddedLanguageCommentDetector.cs (1)
26public EmbeddedLanguageCommentDetector(ImmutableArray<string> identifiers)
RouteEmbeddedLanguage\Infrastructure\MvcDetector.cs (1)
31var members = disposable.GetMembers(nameof(IDisposable.Dispose));
RouteEmbeddedLanguage\Infrastructure\RoutePatternParametersDetector.cs (4)
15public static ImmutableArray<ParameterSymbol> ResolvedParameters(ISymbol symbol, WellKnownTypes wellKnownTypes) 19static ImmutableArray<ParameterSymbol> ResolvedParametersCore(ISymbol symbol, ISymbol? topLevelSymbol, WellKnownTypes wellKnownTypes) 22var childSymbols = GetParameterSymbols(symbol); 65public static ImmutableArray<ISymbol> GetParameterSymbols(ISymbol symbol)
RouteEmbeddedLanguage\Infrastructure\RouteStringSyntaxDetector.cs (6)
398var symbols = GetBestOrAllSymbols(symbolInfo); 407var parameters = symbol.GetParameters(); 480var symbols = GetBestOrAllSymbols(semanticModel.GetSymbolInfo(invocableExpression, cancellationToken)); 487var parameters = symbol.GetParameters(); 528public static ImmutableArray<ISymbol> GetBestOrAllSymbols(SymbolInfo info) 539return ImmutableArray<ISymbol>.Empty;
RouteEmbeddedLanguage\Infrastructure\RouteUsageDetector.cs (15)
38ImmutableArray<ISymbol> Parameters, 39ImmutableArray<ParameterSymbol> ResolvedParameters, 40ImmutableArray<string> HttpMethods) 66Parameters: ImmutableArray<ISymbol>.Empty, 67ResolvedParameters: ImmutableArray<ParameterSymbol>.Empty, 98var parameterSymbols = RoutePatternParametersDetector.GetParameterSymbols(mapMethodSymbol); 99var resolvedParameterSymbols = RoutePatternParametersDetector.ResolvedParameters(mapMethodSymbol, wellKnownTypes); 123var parameterSymbols = RoutePatternParametersDetector.GetParameterSymbols(actionMethodSymbol); 124var resolvedParameterSymbols = RoutePatternParametersDetector.ResolvedParameters(actionMethodSymbol, wellKnownTypes); 145Parameters: ImmutableArray<ISymbol>.Empty, 146ResolvedParameters: ImmutableArray<ParameterSymbol>.Empty, 154private static ImmutableArray<string> CalculateHttpMethods(WellKnownTypes wellKnownTypes, IMethodSymbol mapMethodSymbol) 243var symbols = GetBestOrAllSymbols(semanticModel.GetSymbolInfo(argumentList.Parent, cancellationToken)); 345private static ImmutableArray<ISymbol> GetBestOrAllSymbols(SymbolInfo info) 356return ImmutableArray<ISymbol>.Empty;
RouteEmbeddedLanguage\RoutePatternAnalyzer.cs (3)
21public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(new[] 116private static InsertPoint? CalculateInsertPoint(string routeParameterName, ImmutableArray<RouteParameter> routeParameters, ImmutableArray<ParameterSymbol> resolvedParameterSymbols)
RouteEmbeddedLanguage\RoutePatternHighlighter.cs (6)
21public ImmutableArray<AspNetCoreDocumentHighlights> GetDocumentHighlights( 28return ImmutableArray<AspNetCoreDocumentHighlights>.Empty; 34private static ImmutableArray<AspNetCoreDocumentHighlights> GetHighlights( 41return ImmutableArray<AspNetCoreDocumentHighlights>.Empty; 47return ImmutableArray<AspNetCoreDocumentHighlights>.Empty; 58var resolvedParameters = routeUsage.UsageContext.ResolvedParameters;
RouteHandlers\DetectAmbiguousRoutes.cs (7)
149public ImmutableArray<string> HttpMethods { get; } 151public MapOperationGroupKey(IOperation? builder, IOperation parentOperation, RoutePatternTree routePattern, ImmutableArray<string> httpMethods) 214private static bool HasMatchingHttpMethods(ImmutableArray<string> httpMethods1, ImmutableArray<string> httpMethods2) 235private static bool AreArgumentsEqual(IMethodSymbol method, ImmutableArray<IArgumentOperation> arguments1, ImmutableArray<IArgumentOperation> arguments2) 271static IOperation? GetParameterArgument(IParameterSymbol parameter, ImmutableArray<IArgumentOperation> arguments)
RouteHandlers\DetectMisplacedLambdaAttribute.cs (1)
40var attributes = methodSymbol.GetAttributes();
RouteHandlers\RouteHandlerAnalyzer.cs (1)
23public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(
src\Shared\RoslynUtils\ParsabilityHelper.cs (1)
182var baseTypeBindAsyncMethods = candidate.GetMembers("BindAsync");
src\Shared\RoslynUtils\SymbolExtensions.cs (6)
65public static bool HasAttribute(this ImmutableArray<AttributeData> attributes, INamedTypeSymbol attributeType) 70public static bool TryGetAttribute(this ImmutableArray<AttributeData> attributes, INamedTypeSymbol attributeType, [NotNullWhen(true)] out AttributeData? matchedAttribute) 105public static bool HasAttributeImplementingInterface(this ImmutableArray<AttributeData> attributes, INamedTypeSymbol interfaceType) 110public static bool TryGetAttributeImplementingInterface(this ImmutableArray<AttributeData> attributes, INamedTypeSymbol interfaceType, [NotNullWhen(true)] out AttributeData? matchedAttribute) 153public static ImmutableArray<IParameterSymbol> GetParameters(this ISymbol? symbol) 158_ => ImmutableArray<IParameterSymbol>.Empty,
src\Shared\RoslynUtils\WellKnownTypes.cs (1)
92var types = _compilation.GetTypesByMetadataName(metadataName);
WebApplicationBuilder\PublicPartialProgramClassAnalyzer.cs (1)
16public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(DiagnosticDescriptors.PublicPartialProgramClassNotRequired);
WebApplicationBuilder\WebApplicationBuilderAnalyzer.cs (1)
21public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(
Microsoft.AspNetCore.App.Analyzers.Test (17)
Infrastructure\WellKnownTypesTests.cs (2)
75var trees = ImmutableArray.Create(tree); 98public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(new[]
RouteEmbeddedLanguage\Infrastructure\CompletionTestHelpers.cs (1)
12MarkupTestFile.GetPositionAndSpans(source, out var output, out int cursorPosition, out var textSpans);
RouteEmbeddedLanguage\Infrastructure\MarkupTestFile.cs (10)
210string input, out string output, out int? cursorPositionOpt, out ImmutableArray<TextSpan> spans) 220string input, out string output, out int? cursorPositionOpt, out IDictionary<string, ImmutableArray<TextSpan>> spans) 226public static void GetSpans(string input, out string output, out IDictionary<string, ImmutableArray<TextSpan>> spans) 229public static void GetPositionAndSpans(string input, out string output, out int cursorPosition, out ImmutableArray<TextSpan> spans) 236=> GetPositionAndSpans(input, out output, out cursorPosition, out ImmutableArray<TextSpan> spans); 239=> GetPositionAndSpans(input, out output, out cursorPosition, out var spans); 243GetPositionAndSpans(input, out output, out cursorPosition, out ImmutableArray<TextSpan> spans); 249GetPositionAndSpans(input, out output, out cursorPosition, out var spans); 253public static void GetSpans(string input, out string output, out ImmutableArray<TextSpan> spans) 260GetSpans(input, out output, out ImmutableArray<TextSpan> spans);
RouteEmbeddedLanguage\RoutePatternBraceMatcherTests.cs (1)
187MarkupTestFile.GetPositionAndSpans(source, out var output, out int cursorPosition, out var spans);
RouteEmbeddedLanguage\RoutePatternClassifierTests.cs (1)
28MarkupTestFile.GetSpans(code, out var rewrittenCode, out ImmutableArray<TextSpan> spans);
RouteEmbeddedLanguage\RoutePatternHighlighterTests.cs (1)
455MarkupTestFile.GetPositionAndSpans(source, out var output, out int cursorPosition, out var spans);
TestDiagnosticAnalyzer.cs (1)
103var highlights = highlighter.GetDocumentHighlights(model, token, caretPosition, CancellationToken.None);
Microsoft.AspNetCore.App.CodeFixes (9)
Authorization\AddAuthorizationBuilderFixer.cs (1)
23public override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(DiagnosticDescriptors.UseAddAuthorizationBuilder.Id);
Dependencies\AddPackageFixer.cs (1)
110public override ImmutableArray<string> FixableDiagnosticIds { get; } = ["CS1061"];
DetectMismatchedParameterOptionalityFixer.cs (1)
19public override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(DiagnosticDescriptors.DetectMismatchedParameterOptionality.Id);
Http\HeaderDictionaryAddFixer.cs (1)
24public override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(DiagnosticDescriptors.DoNotUseIHeaderDictionaryAdd.Id);
Http\HeaderDictionaryIndexerFixer.cs (1)
19public override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(DiagnosticDescriptors.UseHeaderDictionaryPropertiesInsteadOfIndexer.Id);
Kestrel\ListenOnIPv6AnyFixer.cs (1)
20public override ImmutableArray<string> FixableDiagnosticIds => [ DiagnosticDescriptors.KestrelShouldListenOnIPv6AnyInsteadOfIpAny.Id ];
PublicPartialProgramClassFixer.cs (1)
19public override ImmutableArray<string> FixableDiagnosticIds { get; } = [DiagnosticDescriptors.PublicPartialProgramClassNotRequired.Id];
RouteParameterUnusedParameterFixer.cs (1)
24public override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(
WebApplicationBuilderFixer.cs (1)
20public override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(
Microsoft.AspNetCore.Components.Analyzers (4)
ComponentInternalUsageDiagnosticAnalzyer.cs (1)
29public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(DiagnosticDescriptors.DoNotUseRenderTreeTypes);
ComponentParameterAnalyzer.cs (1)
34public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; }
ComponentParametersShouldBePublicCodeFixProvider.cs (1)
22public override ImmutableArray<string> FixableDiagnosticIds
ComponentParameterUsageAnalyzer.cs (1)
23public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; }
Microsoft.AspNetCore.Components.Analyzers.Tests (3)
Helpers\CodeFixVerifier.Helper.cs (1)
28var operations = codeAction.GetOperationsAsync(CancellationToken.None).Result;
Helpers\DiagnosticVerifier.Helper.cs (1)
63var diags = compilationWithAnalyzers.GetAnalyzerDiagnosticsAsync().Result;
Verifiers\DiagnosticVerifier.cs (1)
245var rules = analyzer.SupportedDiagnostics;
Microsoft.AspNetCore.Components.Endpoints (11)
FormMapping\Converters\CollectionAdapters\ImmutableArrayBufferAdapter.cs (7)
8internal sealed class ImmutableArrayBufferAdapter<TElement> : ICollectionBufferAdapter<ImmutableArray<TElement>, ImmutableArray<TElement>.Builder, TElement> 10public static ImmutableArray<TElement>.Builder CreateBuffer() => ImmutableArray.CreateBuilder<TElement>(); 12public static ImmutableArray<TElement>.Builder Add(ref ImmutableArray<TElement>.Builder buffer, TElement element) 18public static ImmutableArray<TElement> ToResult(ImmutableArray<TElement>.Builder buffer) => buffer.ToImmutable();
FormMapping\Factories\Collections\TypedCollectionConverterFactory.cs (4)
56var _ when type == (typeof(ImmutableArray<TElement>)) => true, 149var _ when type.IsAssignableTo(typeof(ImmutableArray<TElement>)) => 150new CollectionConverter<ImmutableArray<TElement>, ImmutableArrayBufferAdapter<TElement>, ImmutableArray<TElement>.Builder, TElement>(elementTypeConverter),
Microsoft.AspNetCore.Components.Endpoints.Tests (3)
Binding\FormDataMapperTests.cs (3)
809var expected = ImmutableArray.CreateRange(new[] { 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 }); 810CanDeserialize_Collection<ImmutableArray<int>, ImmutableArray<int>, int>(expected, sequenceEquals: true);
Microsoft.AspNetCore.Components.SdkAnalyzers (4)
ComponentInternalUsageDiagnosticAnalzyer.cs (1)
29public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(DiagnosticDescriptors.DoNotUseRenderTreeTypes);
ComponentParameterAnalyzer.cs (1)
28public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; }
ComponentParametersShouldBePublicCodeFixProvider.cs (1)
22public override ImmutableArray<string> FixableDiagnosticIds
ComponentParameterUsageAnalyzer.cs (1)
23public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; }
Microsoft.AspNetCore.Components.SdkAnalyzers.Tests (3)
Helpers\CodeFixVerifier.Helper.cs (1)
28var operations = codeAction.GetOperationsAsync(CancellationToken.None).Result;
Helpers\DiagnosticVerifier.Helper.cs (1)
63var diags = compilationWithAnalyzers.GetAnalyzerDiagnosticsAsync().Result;
Verifiers\DiagnosticVerifier.cs (1)
245var rules = analyzer.SupportedDiagnostics;
Microsoft.AspNetCore.Http.Extensions (11)
src\Components\Endpoints\src\FormMapping\Converters\CollectionAdapters\ImmutableArrayBufferAdapter.cs (7)
8internal sealed class ImmutableArrayBufferAdapter<TElement> : ICollectionBufferAdapter<ImmutableArray<TElement>, ImmutableArray<TElement>.Builder, TElement> 10public static ImmutableArray<TElement>.Builder CreateBuffer() => ImmutableArray.CreateBuilder<TElement>(); 12public static ImmutableArray<TElement>.Builder Add(ref ImmutableArray<TElement>.Builder buffer, TElement element) 18public static ImmutableArray<TElement> ToResult(ImmutableArray<TElement>.Builder buffer) => buffer.ToImmutable();
src\Components\Endpoints\src\FormMapping\Factories\Collections\TypedCollectionConverterFactory.cs (4)
56var _ when type == (typeof(ImmutableArray<TElement>)) => true, 149var _ when type.IsAssignableTo(typeof(ImmutableArray<TElement>)) => 150new CollectionConverter<ImmutableArray<TElement>, ImmutableArrayBufferAdapter<TElement>, ImmutableArray<TElement>.Builder, TElement>(elementTypeConverter),
Microsoft.AspNetCore.Http.Extensions.Tests (17)
RequestDelegateGenerator\CompileTimeCreationTests.cs (13)
68out var _); 70var diagnostics = updatedCompilation.GetDiagnostics(); 94out var _); 96var diagnostics = updatedCompilation.GetDiagnostics(); 162new SourceFileResolver(ImmutableArray<string>.Empty, currentDirectory, ImmutableArray.Create(new KeyValuePair<string, string>(currentDirectory, mappedDirectory)))); 176out var diags); 178var diagnostics = updatedCompilation.GetDiagnostics(); 243out var diagnostics); 297out var diagnostics); 344out var diagnostics); 680out var diagnostics); 737out var _); 739var diagnostics = updatedCompilation.GetDiagnostics();
RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (4)
65out var _); 72out var _); 74var diagnostics = updatedCompilation.GetDiagnostics(); 87if (result.TrackedSteps.TryGetValue(stepName, out var staticEndpointSteps))
Microsoft.AspNetCore.Http.Microbenchmarks (5)
RequestDelegateGeneratorBenchmarks.cs (1)
47_driver.RunGeneratorsAndUpdateCompilation(_compilation, out var _, out var _);
src\Http\Http.Extensions\test\RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (4)
65out var _); 72out var _); 74var diagnostics = updatedCompilation.GetDiagnostics(); 87if (result.TrackedSteps.TryGetValue(stepName, out var staticEndpointSteps))
Microsoft.AspNetCore.Http.RequestDelegateGenerator (18)
RequestDelegateGeneratorSuppressor.cs (1)
73public override ImmutableArray<SuppressionDescriptor> SupportedSuppressions => ImmutableArray.Create(SuppressRUCDiagnostic, SuppressRDCDiagnostic);
src\Shared\RoslynUtils\IncrementalValuesProviderExtensions.cs (6)
11public static IncrementalValuesProvider<(TSource Source, int Index, ImmutableArray<TElement> Elements)> GroupWith<TSource, TElement>( 18Dictionary<TSource, ImmutableArray<TElement>.Builder> map = new(comparer); 21if (!map.TryGetValue(value, out ImmutableArray<TElement>.Builder builder)) 28ImmutableArray<(TSource Key, int Index, ImmutableArray<TElement> Elements)>.Builder result = 29ImmutableArray.CreateBuilder<(TSource, int, ImmutableArray<TElement>)>();
src\Shared\RoslynUtils\ParsabilityHelper.cs (1)
182var baseTypeBindAsyncMethods = candidate.GetMembers("BindAsync");
src\Shared\RoslynUtils\SymbolExtensions.cs (6)
65public static bool HasAttribute(this ImmutableArray<AttributeData> attributes, INamedTypeSymbol attributeType) 70public static bool TryGetAttribute(this ImmutableArray<AttributeData> attributes, INamedTypeSymbol attributeType, [NotNullWhen(true)] out AttributeData? matchedAttribute) 105public static bool HasAttributeImplementingInterface(this ImmutableArray<AttributeData> attributes, INamedTypeSymbol interfaceType) 110public static bool TryGetAttributeImplementingInterface(this ImmutableArray<AttributeData> attributes, INamedTypeSymbol interfaceType, [NotNullWhen(true)] out AttributeData? matchedAttribute) 153public static ImmutableArray<IParameterSymbol> GetParameters(this ISymbol? symbol) 158_ => ImmutableArray<IParameterSymbol>.Empty,
src\Shared\RoslynUtils\WellKnownTypes.cs (1)
92var types = _compilation.GetTypesByMetadataName(metadataName);
StaticRouteHandlerModel\EndpointParameter.cs (3)
67private void ProcessEndpointParameterSource(Endpoint endpoint, ISymbol symbol, ImmutableArray<AttributeData> attributes, WellKnownTypes wellKnownTypes) 423ImmutableArray<AttributeData> attributes, 485var parameters = targetConstructor.GetParameters();
Microsoft.AspNetCore.Mvc.Analyzers (7)
AttributesShouldNotBeAppliedToPageModelAnalyzer.cs (1)
13public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(
TagHelpersInCodeBlocksAnalyzer.cs (2)
20public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } 161var members = tagHelperRunnerType.GetMembers(SymbolNames.RunAsyncMethodName);
TopLevelParameterNameAnalyzer.cs (3)
16public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create( 195var constructorParameters = attribute.AttributeConstructor?.Parameters ?? ImmutableArray<IParameterSymbol>.Empty;
ViewFeatureAnalyzerBase.cs (1)
20public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; }
Microsoft.AspNetCore.Mvc.Api.Analyzers (9)
ActualApiResponseMetadataFactory.cs (2)
191private static (int? statusCode, ITypeSymbol? returnType) InspectMethodArguments(ImmutableArray<IArgumentOperation> arguments) 280var attributes = symbol.GetAttributes();
AddResponseTypeAttributeCodeFixProvider.cs (1)
16public override ImmutableArray<string> FixableDiagnosticIds => ImmutableArray.Create(
ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzer.cs (1)
15public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(
ApiActionsDoNotRequireExplicitModelValidationCodeFixProvider.cs (1)
20public sealed override ImmutableArray<string> FixableDiagnosticIds =>
ApiConventionAnalyzer.cs (1)
15public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(
SymbolApiConventionMatcher.cs (2)
29var methodParameters = method.Parameters; 30var conventionMethodParameters = conventionMethod.Parameters;
SymbolApiResponseMetadataProvider.cs (1)
207var constructorParameters = attribute.AttributeConstructor.Parameters;
Microsoft.AspNetCore.SignalR.Client.SourceGenerator (8)
HubClientProxyGenerator.cs (2)
35private static void Execute(Compilation compilation, ImmutableArray<MethodDeclarationSyntax> methodDeclarationSyntaxes, ImmutableArray<MemberAccessExpressionSyntax> memberAccessExpressionSyntaxes, SourceProductionContext context)
HubClientProxyGenerator.Parser.cs (2)
183internal SourceGenerationSpec Parse(ImmutableArray<MethodDeclarationSyntax> methodDeclarationSyntaxes, ImmutableArray<MemberAccessExpressionSyntax> syntaxList)
HubServerProxyGenerator.cs (2)
35private static void Execute(Compilation compilation, ImmutableArray<MethodDeclarationSyntax> methodDeclarationSyntaxes, ImmutableArray<MemberAccessExpressionSyntax> memberAccessExpressionSyntaxes, SourceProductionContext context)
HubServerProxyGenerator.Parser.cs (2)
173internal SourceGenerationSpec Parse(ImmutableArray<MethodDeclarationSyntax> methodDeclarationSyntaxes, ImmutableArray<MemberAccessExpressionSyntax> syntaxList)
Microsoft.Build (27)
BuildCheck\Infrastructure\EditorConfig\EditorConfigFile.cs (2)
47internal ImmutableArray<Section> NamedSections { get; } 56ImmutableArray<Section> namedSections)
BuildCheck\Infrastructure\EditorConfig\EditorConfigGlobsMatcher.cs (2)
25private readonly ImmutableArray<(int minValue, int maxValue)> _numberRangePairs; 31ImmutableArray<(int minValue, int maxValue)> numberRangePairs)
Definition\Project.cs (2)
2621ImmutableArray<ItemSpecFragment> includeGlobFragments = includeItemspec.Fragments.Where(f => f is GlobFragment && f.TextFragment.IndexOfAny(s_invalidGlobChars) == -1).ToImmutableArray(); 2627ImmutableArray<string> includeGlobStrings = includeGlobFragments.Select(f => f.TextFragment).ToImmutableArray();
Evaluation\LazyItemEvaluator.cs (1)
484public readonly ImmutableArray<ProjectMetadataElement>.Builder Metadata = ImmutableArray.CreateBuilder<ProjectMetadataElement>();
Evaluation\LazyItemEvaluator.IncludeOperation.cs (6)
25private readonly ImmutableArray<ProjectMetadataElement> _metadata; 38protected override ImmutableArray<I> SelectItems(OrderedItemDataCollection.Builder listBuilder, ImmutableHashSet<string> globsToIgnore) 40ImmutableArray<I>.Builder? itemsToAdd = null; 142return itemsToAdd?.ToImmutable() ?? ImmutableArray<I>.Empty; 158protected override void MutateItems(ImmutableArray<I> items) 163protected override void SaveItems(ImmutableArray<I> items, OrderedItemDataCollection.Builder listBuilder)
Evaluation\LazyItemEvaluator.LazyItemOperation.cs (7)
67var items = SelectItems(listBuilder, globsToIgnore); 75protected virtual ImmutableArray<I> SelectItems(OrderedItemDataCollection.Builder listBuilder, ImmutableHashSet<string> globsToIgnore) 82protected virtual void MutateItems(ImmutableArray<I> items) { } 84protected virtual void SaveItems(ImmutableArray<I> items, OrderedItemDataCollection.Builder listBuilder) { } 165protected void DecorateItemsWithMetadata(IEnumerable<ItemBatchingContext> itemBatchingContexts, ImmutableArray<ProjectMetadataElement> metadata, bool? needToExpandMetadata = null) 273private static IEnumerable<string> GetMetadataValuesAndConditions(ImmutableArray<ProjectMetadataElement> metadata) 282protected bool NeedToExpandMetadataForEachItem(ImmutableArray<ProjectMetadataElement> metadata, out ItemsAndMetadataPair itemsAndMetadataFound)
Evaluation\LazyItemEvaluator.UpdateOperation.cs (2)
19private readonly ImmutableArray<ProjectMetadataElement> _metadata; 150private bool QualifiedMetadataReferencesExist(ImmutableArray<ProjectMetadataElement> metadata, out bool? needToExpandMetadataForEachItem)
Globbing\CompositeGlob.cs (3)
20private readonly ImmutableArray<IMSBuildGlob> _globs; 56private CompositeGlob(ImmutableArray<IMSBuildGlob> globs) 90if (globs is ImmutableArray<IMSBuildGlob> immutableGlobs)
Graph\ProjectInterpretation.cs (1)
451return ImmutableArray<string>.Empty;
Utilities\ImmutableCollectionsExtensions.cs (1)
29public static bool Any<TElement, TArg>(this ImmutableArray<TElement> immutableArray, Func<TElement, TArg, bool> predicate, TArg arg)
Microsoft.Build.BuildCheck.UnitTests (2)
EditorConfig_Tests.cs (2)
787var namedSections = config.NamedSections; 813var namedSections = config.NamedSections;
Microsoft.Build.Engine.UnitTests (1)
Graph\GraphTestingUtilities.cs (1)
152return ImmutableArray<ProjectGraphNode>.Empty;
Microsoft.Build.Framework (2)
HashHelpers.cs (1)
38private static readonly ImmutableArray<int> s_primes = ImmutableArray.Create(
ImmutableSegmentedDictionary`2.cs (1)
21/// the scenarios where <see cref="ImmutableArray{T}"/> is applicable, and
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (1)
MiscTests.cs (1)
33name.Name == typeof(ImmutableArray<string>).Assembly.GetName().Name;
Microsoft.Cci.Extensions (2)
Extensions\CSharp\CSharpCciExtensions.cs (2)
966ImmutableArray<CustomAttributeTypedArgument<string>> argumentValue = (ImmutableArray<CustomAttributeTypedArgument<string>>)argument.Value;
Microsoft.CodeAnalysis (3230)
AssemblyUtilities.cs (3)
24public static ImmutableArray<string> FindSatelliteAssemblies(string filePath) 60public static ImmutableArray<AssemblyIdentity> IdentifyMissingDependencies(string assemblyPath, IEnumerable<string> dependencyFilePaths) 82var references = metadataReader.GetReferencedAssembliesOrThrow();
Binding\BindingDiagnosticBag.cs (8)
31internal void AddRange<T>(ImmutableArray<T> diagnostics) where T : Diagnostic 173internal void AddDependencies(ImmutableArray<TAssemblySymbol> dependencies) 314private readonly ImmutableArray<Diagnostic> _diagnostics; 315private readonly ImmutableArray<TAssemblySymbol> _dependencies; 317public ImmutableArray<Diagnostic> Diagnostics => _diagnostics.NullToEmpty(); 318public ImmutableArray<TAssemblySymbol> Dependencies => _dependencies.NullToEmpty(); 322public ReadOnlyBindingDiagnostic(ImmutableArray<Diagnostic> diagnostics, ImmutableArray<TAssemblySymbol> dependencies)
Binding\UseSiteInfo.cs (2)
306public void AddDiagnostics(ImmutableArray<DiagnosticInfo> diagnostics) 379public void AddDependencies(ImmutableArray<TAssemblySymbol> dependencies)
CodeGen\ArrayMembers.cs (14)
197protected override ImmutableArray<ArrayMethodParameterInfo> MakeParameters() 250public ImmutableArray<Cci.ICustomModifier> RefCustomModifiers 251=> ImmutableArray<Cci.ICustomModifier>.Empty; 253public ImmutableArray<Cci.ICustomModifier> CustomModifiers 254=> ImmutableArray<Cci.ICustomModifier>.Empty; 289private readonly ImmutableArray<ArrayMethodParameterInfo> _parameters; 305protected virtual ImmutableArray<ArrayMethodParameterInfo> MakeParameters() 318public ImmutableArray<Cci.IParameterTypeInformation> GetParameters(EmitContext context) 327public ImmutableArray<Cci.IParameterTypeInformation> ExtraParameters 328=> ImmutableArray<Cci.IParameterTypeInformation>.Empty; 338public ImmutableArray<Cci.ICustomModifier> RefCustomModifiers 339=> ImmutableArray<Cci.ICustomModifier>.Empty; 341public ImmutableArray<Cci.ICustomModifier> ReturnValueCustomModifiers 342=> ImmutableArray<Cci.ICustomModifier>.Empty;
CodeGen\ILBuilder.cs (4)
45internal ImmutableArray<byte> RealizedIL; 46internal ImmutableArray<Cci.ExceptionHandlerRegion> RealizedExceptionHandlers; 208internal ImmutableArray<Cci.LocalScope> GetAllScopes() => _scopeManager.GetAllScopesWithLocals(); 213internal ImmutableArray<StateMachineHoistedLocalScope> GetHoistedLocalScopes()
CodeGen\ILBuilderEmit.cs (1)
83internal void EmitArrayBlockInitializer(ImmutableArray<byte> data, SyntaxNode syntaxNode, DiagnosticBag diagnostics)
CodeGen\ITokenDeferral.cs (3)
16Cci.IFieldReference GetFieldForData(ImmutableArray<byte> data, ushort alignment, SyntaxNode syntaxNode, DiagnosticBag diagnostics); 20Cci.IFieldReference GetArrayCachingFieldForData(ImmutableArray<byte> data, Cci.IArrayTypeReference arrayType, SyntaxNode syntaxNode, DiagnosticBag diagnostics); 22Cci.IFieldReference GetArrayCachingFieldForConstants(ImmutableArray<ConstantValue> constants, Cci.IArrayTypeReference arrayType, SyntaxNode syntaxNode, DiagnosticBag diagnostics);
CodeGen\LocalConstantDefinition.cs (6)
23ImmutableArray<bool> dynamicTransformFlags, 24ImmutableArray<string> tupleElementNames) 46public ImmutableArray<Cci.ICustomModifier> CustomModifiers 47=> ImmutableArray<Cci.ICustomModifier>.Empty; 59public ImmutableArray<bool> DynamicTransformFlags { get; } 61public ImmutableArray<string> TupleElementNames { get; }
CodeGen\LocalDefinition.cs (9)
44private readonly ImmutableArray<bool> _dynamicTransformFlags; 46private readonly ImmutableArray<string> _tupleElementNames; 70ImmutableArray<bool> dynamicTransformFlags, 71ImmutableArray<string> tupleElementNames) 95ImmutableArray<Location> locations = _symbolOpt.Locations; 112public ImmutableArray<Cci.ICustomModifier> CustomModifiers 113=> ImmutableArray<Cci.ICustomModifier>.Empty; 132public ImmutableArray<bool> DynamicTransformFlags => _dynamicTransformFlags; 134public ImmutableArray<string> TupleElementNames => _tupleElementNames;
CodeGen\LocalScopeManager.cs (13)
120internal ImmutableArray<Cci.LocalScope> GetAllScopesWithLocals() 134ImmutableArray<Cci.ILocalDefinition>.Empty, 135ImmutableArray<Cci.ILocalDefinition>.Empty)); 149internal ImmutableArray<Cci.ExceptionHandlerRegion> GetExceptionHandlerRegions() 156internal ImmutableArray<StateMachineHoistedLocalScope> GetHoistedLocalScopes() 258protected static ScopeBounds GetLocalScopes<TScopeInfo>(ArrayBuilder<Cci.LocalScope> result, ImmutableArray<TScopeInfo>.Builder scopes) 282protected static ScopeBounds GetHoistedLocalScopes<TScopeInfo>(ArrayBuilder<StateMachineHoistedLocalScope> result, ImmutableArray<TScopeInfo>.Builder scopes) 314private ImmutableArray<LocalDefinition>.Builder _localVariables; 315private ImmutableArray<LocalConstantDefinition>.Builder _localConstants; 316private ImmutableArray<int>.Builder _stateMachineUserHoistedLocalSlotIndices; 320private ImmutableArray<ScopeInfo>.Builder _nestedScopes; 321protected ImmutableArray<BasicBlock>.Builder Blocks; 678private readonly ImmutableArray<ExceptionHandlerScope>.Builder _handlers;
CodeGen\LocalSlotManager.cs (8)
128ImmutableArray<bool> dynamicTransformFlags, 129ImmutableArray<string> tupleElementNames, 168ImmutableArray<bool> dynamicTransformFlags = default, 169ImmutableArray<string> tupleElementNames = default) 196ImmutableArray<bool> dynamicTransformFlags, 197ImmutableArray<string> tupleElementNames) 252public ImmutableArray<Cci.ILocalDefinition> LocalsInOrder() 256return ImmutableArray<Cci.ILocalDefinition>.Empty;
CodeGen\MetadataCreateArray.cs (2)
20public ImmutableArray<Cci.IMetadataExpression> Elements { get; } 22public MetadataCreateArray(Cci.IArrayTypeReference arrayType, Cci.ITypeReference elementType, ImmutableArray<Cci.IMetadataExpression> initializers)
CodeGen\MethodBody.cs (37)
20private readonly ImmutableArray<byte> _ilBits; 22private readonly ImmutableArray<Cci.ILocalDefinition> _locals; 23private readonly ImmutableArray<Cci.ExceptionHandlerRegion> _exceptionHandlers; 27private readonly ImmutableArray<Cci.SequencePoint> _sequencePoints; 28private readonly ImmutableArray<Cci.LocalScope> _localScopes; 31private readonly ImmutableArray<StateMachineHoistedLocalScope> _stateMachineHoistedLocalScopes; 37private readonly ImmutableArray<EncHoistedLocalInfo> _stateMachineHoistedLocalSlots; 38private readonly ImmutableArray<EncLambdaInfo> _lambdaDebugInfo; 39private readonly ImmutableArray<LambdaRuntimeRudeEditInfo> _orderedLambdaRuntimeRudeEdits; 40private readonly ImmutableArray<EncClosureInfo> _closureDebugInfo; 44private readonly ImmutableArray<Cci.ITypeReference?> _stateMachineAwaiterSlots; 47private readonly ImmutableArray<SourceSpan> _codeCoverageSpans; 52ImmutableArray<byte> ilBits, 56ImmutableArray<Cci.ILocalDefinition> locals, 59ImmutableArray<Cci.ExceptionHandlerRegion> exceptionHandlers, 62ImmutableArray<Cci.LocalScope> localScopes, 65ImmutableArray<EncLambdaInfo> lambdaDebugInfo, 66ImmutableArray<LambdaRuntimeRudeEditInfo> orderedLambdaRuntimeRudeEdits, 67ImmutableArray<EncClosureInfo> closureDebugInfo, 69ImmutableArray<StateMachineHoistedLocalScope> stateMachineHoistedLocalScopes, 70ImmutableArray<EncHoistedLocalInfo> stateMachineHoistedLocalSlots, 71ImmutableArray<Cci.ITypeReference?> stateMachineAwaiterSlots, 74ImmutableArray<SourceSpan> codeCoverageSpans, 106private static ImmutableArray<Cci.SequencePoint> GetSequencePoints(SequencePointList? sequencePoints, DebugDocumentProvider debugDocumentProvider) 110return ImmutableArray<Cci.SequencePoint>.Empty; 118ImmutableArray<SourceSpan> Cci.IMethodBody.CodeCoverageSpans => _codeCoverageSpans; 120ImmutableArray<Cci.ExceptionHandlerRegion> Cci.IMethodBody.ExceptionRegions => _exceptionHandlers; 124ImmutableArray<Cci.ILocalDefinition> Cci.IMethodBody.LocalVariables => _locals; 132public ImmutableArray<byte> IL => _ilBits; 134public ImmutableArray<Cci.SequencePoint> SequencePoints => _sequencePoints; 136ImmutableArray<Cci.LocalScope> Cci.IMethodBody.LocalScopes => _localScopes; 145ImmutableArray<StateMachineHoistedLocalScope> Cci.IMethodBody.StateMachineHoistedLocalScopes 148ImmutableArray<EncHoistedLocalInfo> Cci.IMethodBody.StateMachineHoistedLocalSlots 151ImmutableArray<Cci.ITypeReference?> Cci.IMethodBody.StateMachineAwaiterSlots 158public ImmutableArray<EncLambdaInfo> LambdaDebugInfo => _lambdaDebugInfo; 163public ImmutableArray<LambdaRuntimeRudeEditInfo> OrderedLambdaRuntimeRudeEdits => _orderedLambdaRuntimeRudeEdits; 165public ImmutableArray<EncClosureInfo> ClosureDebugInfo => _closureDebugInfo;
CodeGen\PermissionSetAttribute.cs (3)
49public ImmutableArray<Cci.IMetadataExpression> GetArguments(EmitContext context) 63public ImmutableArray<Cci.IMetadataNamedArgument> GetNamedArguments(EmitContext context) 70var namedArgs = _sourceAttribute.GetNamedArguments(context);
CodeGen\PrivateImplementationDetails.cs (42)
64private ImmutableArray<SynthesizedStaticField> _orderedSynthesizedFields; 67private readonly ConcurrentDictionary<(ImmutableArray<byte> Data, ushort Alignment), MappedField> _mappedFields = 68new ConcurrentDictionary<(ImmutableArray<byte> Data, ushort Alignment), MappedField>(DataAndUShortEqualityComparer.Instance); 71private readonly ConcurrentDictionary<(ImmutableArray<byte> Data, ushort ElementType), CachedArrayField> _cachedArrayFields = 72new ConcurrentDictionary<(ImmutableArray<byte> Data, ushort ElementType), CachedArrayField>(DataAndUShortEqualityComparer.Instance); 75private readonly ConcurrentDictionary<(ImmutableArray<ConstantValue> Constants, ushort ElementType), CachedArrayField> _cachedArrayFieldsForConstants = 76new ConcurrentDictionary<(ImmutableArray<ConstantValue> Constants, ushort ElementType), CachedArrayField>(ConstantValueAndUShortEqualityComparer.Instance); 85private ImmutableArray<Cci.IMethodDefinition> _orderedSynthesizedMethods; 90private ImmutableArray<Cci.INamespaceTypeDefinition> _orderedTopLevelTypes; 94private ImmutableArray<Cci.ITypeReference> _orderedProxyTypes; 191internal Cci.IFieldReference CreateArrayCachingField(ImmutableArray<byte> data, Cci.IArrayTypeReference arrayType, EmitContext emitContext) 215internal Cci.IFieldReference CreateArrayCachingField(ImmutableArray<ConstantValue> constants, Cci.IArrayTypeReference arrayType, EmitContext emitContext) 249internal Cci.IFieldReference CreateDataField(ImmutableArray<byte> data, ushort alignment) 452private static string DataToHex(ImmutableArray<byte> data) 454ImmutableArray<byte> hash = CryptographicHashProvider.ComputeSourceHash(data); 458private static string ConstantsToHex(ImmutableArray<ConstantValue> constants) 460ImmutableArray<byte> hash = CryptographicHashProvider.ComputeSourceHash(constants); 464private static string HashToHex(ImmutableArray<byte> hash) 474static void toHex(ImmutableArray<byte> source, Span<char> destination) 505private sealed class DataAndUShortEqualityComparer : EqualityComparer<(ImmutableArray<byte> Data, ushort Value)> 511public override bool Equals((ImmutableArray<byte> Data, ushort Value) x, (ImmutableArray<byte> Data, ushort Value) y) => 515public override int GetHashCode((ImmutableArray<byte> Data, ushort Value) obj) => 519private sealed class ConstantValueAndUShortEqualityComparer : EqualityComparer<(ImmutableArray<ConstantValue> Constants, ushort Value)> 525public override bool Equals((ImmutableArray<ConstantValue> Constants, ushort Value) x, (ImmutableArray<ConstantValue> Constants, ushort Value) y) 548public override int GetHashCode((ImmutableArray<ConstantValue> Constants, ushort Value) obj) 636public abstract ImmutableArray<byte> MappedData { get; } 656public ImmutableArray<byte> MarshallingDescriptor => default(ImmutableArray<byte>); 690public ImmutableArray<Cci.ICustomModifier> RefCustomModifiers => ImmutableArray<Cci.ICustomModifier>.Empty; 725public override ImmutableArray<byte> MappedData => default(ImmutableArray<byte>); 735public override ImmutableArray<byte> MappedData => default; 746public override ImmutableArray<byte> MappedData => default(ImmutableArray<byte>); 755private readonly ImmutableArray<byte> _block; 757internal MappedField(string name, Cci.INamedTypeDefinition containingType, Cci.ITypeReference type, ImmutableArray<byte> block) 764public override ImmutableArray<byte> MappedData => _block; 778public override ImmutableArray<byte> MappedData => default(ImmutableArray<byte>);
CodeGen\ReferenceDependencyWalker.cs (2)
150private static void VisitParameters(ImmutableArray<Cci.IParameterTypeInformation> parameters, EmitContext context) 182private static void VisitCustomModifiers(ImmutableArray<Cci.ICustomModifier> customModifiers, in EmitContext context)
CodeGen\SignatureOnlyLocalDefinition.cs (5)
34public ImmutableArray<Cci.ICustomModifier> CustomModifiers 39public ImmutableArray<bool> DynamicTransformFlags 41get { return ImmutableArray<bool>.Empty; } 44public ImmutableArray<string> TupleElementNames 46get { return ImmutableArray<string>.Empty; }
CodeGen\StateMachineStateDebugInfo.cs (3)
25public readonly ImmutableArray<StateMachineStateDebugInfo> States; 45private StateMachineStatesDebugInfo(ImmutableArray<StateMachineStateDebugInfo> states, StateMachineState? firstUnusedIncreasingStateMachineState, StateMachineState? firstUnusedDecreasingStateMachineState) 52public static StateMachineStatesDebugInfo Create(VariableSlotAllocator? variableSlotAllocator, ImmutableArray<StateMachineStateDebugInfo> stateInfos)
CodeGen\SwitchIntegralJumpTableEmitter.cs (6)
40private readonly ImmutableArray<KeyValuePair<ConstantValue, object>> _sortedCaseLabels; 101var sortedCaseLabels = _sortedCaseLabels; 126ImmutableArray<SwitchBucket> switchBuckets = this.GenerateSwitchBuckets(startLabelIndex, endLabelIndex); 178private ImmutableArray<SwitchBucket> GenerateSwitchBuckets(int startLabelIndex, int endLabelIndex) 261private void EmitSwitchBucketsLinearLeaf(ImmutableArray<SwitchBucket> switchBuckets, int low, int high) 275private void EmitSwitchBuckets(ImmutableArray<SwitchBucket> switchBuckets, int low, int high)
CodeGen\SwitchIntegralJumpTableEmitter.SwitchBucket.cs (5)
18private readonly ImmutableArray<KeyValuePair<ConstantValue, object>> _allLabels; 54internal SwitchBucket(ImmutableArray<KeyValuePair<ConstantValue, object>> allLabels, int index) 62private SwitchBucket(ImmutableArray<KeyValuePair<ConstantValue, object>> allLabels, int startIndex, int endIndex) 72internal SwitchBucket(ImmutableArray<KeyValuePair<ConstantValue, object>> allLabels, int startIndex, int endIndex, bool isDegenerate) 142var allLabels = this._allLabels;
CodeGen\VariableSlotAllocator.cs (4)
26ImmutableArray<bool> dynamicTransformFlags, 27ImmutableArray<string> tupleElementNames); 85public abstract bool TryGetPreviousClosure(SyntaxNode closureSyntax, DebugId? parentClosureId, ImmutableArray<string> structCaptures, out DebugId closureId, out RuntimeRudeEdit? runtimeRudeEdit); 99public abstract bool TryGetPreviousLambda(SyntaxNode lambdaOrLambdaBodySyntax, bool isLambdaBody, int closureOrdinal, ImmutableArray<DebugId> structClosureIds, out DebugId lambdaId, out RuntimeRudeEdit? runtimeRudeEdit);
Collections\ArrayBuilderExtensions.cs (8)
71public static ImmutableArray<TResult> SelectAsArray<TItem, TResult>(this ArrayBuilder<TItem> items, Func<TItem, TResult> map) 76return ImmutableArray<TResult>.Empty; 111public static ImmutableArray<TResult> SelectAsArray<TItem, TArg, TResult>(this ArrayBuilder<TItem> items, Func<TItem, TArg, TResult> map, TArg arg) 116return ImmutableArray<TResult>.Empty; 151public static ImmutableArray<TResult> SelectAsArrayWithIndex<TItem, TArg, TResult>(this ArrayBuilder<TItem> items, Func<TItem, int, TArg, TResult> map, TArg arg) 156return ImmutableArray<TResult>.Empty; 222public static ImmutableArray<T> ToImmutableOrEmptyAndFree<T>(this ArrayBuilder<T>? builder) 224return builder?.ToImmutableAndFree() ?? ImmutableArray<T>.Empty;
Collections\ByteSequenceComparer.cs (9)
16internal sealed class ByteSequenceComparer : IEqualityComparer<byte[]>, IEqualityComparer<ImmutableArray<byte>> 24internal static bool Equals(ImmutableArray<byte> x, ImmutableArray<byte> y) 101internal static int GetHashCode(ImmutableArray<byte> x) 117bool IEqualityComparer<ImmutableArray<byte>>.Equals(ImmutableArray<byte> x, ImmutableArray<byte> y) 122int IEqualityComparer<ImmutableArray<byte>>.GetHashCode(ImmutableArray<byte> x)
Collections\CachingDictionary.cs (25)
33private readonly Func<TKey, ImmutableArray<TElement>> _getElementsOfKey; 41private IDictionary<TKey, ImmutableArray<TElement>>? _map; 45private static readonly ImmutableArray<TElement> s_emptySentinel = ImmutableArray<TElement>.Empty; 56Func<TKey, ImmutableArray<TElement>> getElementsOfKey, 79public ImmutableArray<TElement> this[TKey key] 128private ConcurrentDictionary<TKey, ImmutableArray<TElement>> CreateConcurrentDictionary() 130return new ConcurrentDictionary<TKey, ImmutableArray<TElement>>(concurrencyLevel: 2, capacity: 0, comparer: _comparer); 137private IDictionary<TKey, ImmutableArray<TElement>> CreateDictionaryForFullyPopulatedMap(int capacity) 140return new Dictionary<TKey, ImmutableArray<TElement>>(capacity, _comparer); 146private ImmutableArray<TElement> GetOrCreateValue(TKey key) 148ImmutableArray<TElement> elements; 149ConcurrentDictionary<TKey, ImmutableArray<TElement>>? concurrentMap; 173concurrentMap = localMap as ConcurrentDictionary<TKey, ImmutableArray<TElement>>; 185private ImmutableArray<TElement> AddToConcurrentMap(ConcurrentDictionary<TKey, ImmutableArray<TElement>> map, TKey key) 187var elements = _getElementsOfKey(key); 204private static bool IsNotFullyPopulatedMap([NotNullWhen(returnValue: false)] IDictionary<TKey, ImmutableArray<TElement>>? existingMap) 206return existingMap == null || existingMap is ConcurrentDictionary<TKey, ImmutableArray<TElement>>; 214private IDictionary<TKey, ImmutableArray<TElement>> CreateFullyPopulatedMap(ConcurrentDictionary<TKey, ImmutableArray<TElement>>? existingMap) 236ImmutableArray<TElement> elements = existingMap.GetOrAdd(key, _getElementsOfKey); 249private IDictionary<TKey, ImmutableArray<TElement>> EnsureFullyPopulated() 254IDictionary<TKey, ImmutableArray<TElement>> fullyPopulatedMap = CreateFullyPopulatedMap((ConcurrentDictionary<TKey, ImmutableArray<TElement>>?)currentMap);
Collections\DictionaryExtensions.cs (2)
91public static ImmutableSegmentedDictionary<K, ImmutableArray<V>> ToImmutableSegmentedDictionaryAndFree<K, V>(this IReadOnlyDictionary<K, ArrayBuilder<V>> builder) 94var result = ImmutableSegmentedDictionary.CreateBuilder<K, ImmutableArray<V>>();
Collections\ImmutableArrayExtensions.cs (152)
27/// The collection of extension methods for the <see cref="ImmutableArray{T}"/> type 39public static ImmutableArray<T> AsImmutable<T>(this IEnumerable<T> items) 51public static ImmutableArray<T> AsImmutableOrEmpty<T>(this IEnumerable<T>? items) 55return ImmutableArray<T>.Empty; 68public static ImmutableArray<T> AsImmutableOrNull<T>(this IEnumerable<T>? items) 84public static ImmutableArray<T> AsImmutable<T>(this T[] items) 97public static ImmutableArray<T> AsImmutableOrNull<T>(this T[]? items) 113public static ImmutableArray<T> AsImmutableOrEmpty<T>(this T[]? items) 117return ImmutableArray<T>.Empty; 128public static ImmutableArray<byte> ToImmutable(this MemoryStream stream) 141public static ImmutableArray<TResult> SelectAsArray<TItem, TResult>(this ImmutableArray<TItem> items, Func<TItem, TResult> map) 156public static ImmutableArray<TResult> SelectAsArray<TItem, TArg, TResult>(this ImmutableArray<TItem> items, Func<TItem, TArg, TResult> map, TArg arg) 171public static ImmutableArray<TResult> SelectAsArray<TItem, TArg, TResult>(this ImmutableArray<TItem> items, Func<TItem, int, TArg, TResult> map, TArg arg) 176return ImmutableArray<TResult>.Empty; 210public static ImmutableArray<TResult> SelectAsArray<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, bool> predicate, Func<TItem, TResult> selector) 214return ImmutableArray<TResult>.Empty; 240public static ImmutableArray<TResult> SelectAsArray<TItem, TArg, TResult>(this ImmutableArray<TItem> array, Func<TItem, TArg, bool> predicate, Func<TItem, TArg, TResult> selector, TArg arg) 244return ImmutableArray<TResult>.Empty; 267public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, IEnumerable<TResult>> selector) 270return ImmutableArray<TResult>.Empty; 287public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, ImmutableArray<TResult>> selector) 290return ImmutableArray<TResult>.Empty; 307public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, OneOrMany<TResult>> selector) 310return ImmutableArray<TResult>.Empty; 330public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, bool> predicate, Func<TItem, IEnumerable<TResult>> selector) 333return ImmutableArray<TResult>.Empty; 354public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, bool> predicate, Func<TItem, ImmutableArray<TResult>> selector) 357return ImmutableArray<TResult>.Empty; 378public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, bool> predicate, Func<TItem, OneOrMany<TResult>> selector) 381return ImmutableArray<TResult>.Empty; 403public static ImmutableArray<TResult> SelectManyAsArray<TItem, TArg, TResult>(this ImmutableArray<TItem> array, Func<TItem, TArg, bool> predicate, Func<TItem, TArg, OneOrMany<TResult>> selector, TArg arg) 406return ImmutableArray<TResult>.Empty; 421public static async ValueTask<ImmutableArray<TResult>> SelectAsArrayAsync<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, CancellationToken, ValueTask<TResult>> selector, CancellationToken cancellationToken) 424return ImmutableArray<TResult>.Empty; 439public static async ValueTask<ImmutableArray<TResult>> SelectAsArrayAsync<TItem, TArg, TResult>(this ImmutableArray<TItem> array, Func<TItem, TArg, CancellationToken, ValueTask<TResult>> selector, TArg arg, CancellationToken cancellationToken) 442return ImmutableArray<TResult>.Empty; 454public static ValueTask<ImmutableArray<TResult>> SelectManyAsArrayAsync<TItem, TArg, TResult>(this ImmutableArray<TItem> source, Func<TItem, TArg, CancellationToken, ValueTask<ImmutableArray<TResult>>> selector, TArg arg, CancellationToken cancellationToken) 458return new ValueTask<ImmutableArray<TResult>>(ImmutableArray<TResult>.Empty); 468async ValueTask<ImmutableArray<TResult>> CreateTaskAsync() 485public static ImmutableArray<TResult> ZipAsArray<T1, T2, TResult>(this ImmutableArray<T1> self, ImmutableArray<T2> other, Func<T1, T2, TResult> map) 491return ImmutableArray<TResult>.Empty; 516public static ImmutableArray<TResult> ZipAsArray<T1, T2, TArg, TResult>(this ImmutableArray<T1> self, ImmutableArray<T2> other, TArg arg, Func<T1, T2, int, TArg, TResult> map) 521return ImmutableArray<TResult>.Empty; 537public static ImmutableArray<T> WhereAsArray<T>(this ImmutableArray<T> array, Func<T, bool> predicate) 545public static ImmutableArray<T> WhereAsArray<T, TArg>(this ImmutableArray<T> array, Func<T, TArg, bool> predicate, TArg arg) 548private static ImmutableArray<T> WhereAsArrayImpl<T, TArg>(ImmutableArray<T> array, Func<T, bool>? predicateWithoutArg, Func<T, TArg, bool>? predicateWithArg, TArg arg) 613return ImmutableArray<T>.Empty; 617public static bool Any<T, TArg>(this ImmutableArray<T> array, Func<T, TArg, bool> predicate, TArg arg) 633public static bool All<T, TArg>(this ImmutableArray<T> array, Func<T, TArg, bool> predicate, TArg arg) 649public static async Task<bool> AnyAsync<T>(this ImmutableArray<T> array, Func<T, Task<bool>> predicateAsync) 665public static async Task<bool> AnyAsync<T, TArg>(this ImmutableArray<T> array, Func<T, TArg, Task<bool>> predicateAsync, TArg arg) 681public static async ValueTask<T?> FirstOrDefaultAsync<T>(this ImmutableArray<T> array, Func<T, Task<bool>> predicateAsync) 697public static TValue? FirstOrDefault<TValue, TArg>(this ImmutableArray<TValue> array, Func<TValue, TArg, bool> predicate, TArg arg) 710public static TValue? Single<TValue, TArg>(this ImmutableArray<TValue> array, Func<TValue, TArg, bool> predicate, TArg arg) 740public static ImmutableArray<TBase> Cast<TDerived, TBase>(this ImmutableArray<TDerived> items) 743return ImmutableArray<TBase>.CastUp(items); 754public static bool SetEquals<T>(this ImmutableArray<T> array1, ImmutableArray<T> array2, IEqualityComparer<T> comparer) 795public static ImmutableArray<T> NullToEmpty<T>(this ImmutableArray<T> array) 797return array.IsDefault ? ImmutableArray<T>.Empty : array; 803public static ImmutableArray<T> NullToEmpty<T>(this ImmutableArray<T>? array) 806null or { IsDefault: true } => ImmutableArray<T>.Empty, 814public static ImmutableArray<T> Distinct<T>(this ImmutableArray<T> array, IEqualityComparer<T>? comparer = null) 833var result = (builder.Count == array.Length) ? array : builder.ToImmutable(); 840internal static ImmutableArray<T> ConditionallyDeOrder<T>(this ImmutableArray<T> array) 856internal static ImmutableArray<TValue> Flatten<TKey, TValue>( 857this Dictionary<TKey, ImmutableArray<TValue>> dictionary, 863return ImmutableArray<TValue>.Empty; 882internal static ImmutableArray<T> Concat<T>(this ImmutableArray<T> first, ImmutableArray<T> second) 887internal static ImmutableArray<T> Concat<T>(this ImmutableArray<T> first, ImmutableArray<T> second, ImmutableArray<T> third) 910internal static ImmutableArray<T> Concat<T>(this ImmutableArray<T> first, ImmutableArray<T> second, ImmutableArray<T> third, ImmutableArray<T> fourth) 938internal static ImmutableArray<T> Concat<T>(this ImmutableArray<T> first, ImmutableArray<T> second, ImmutableArray<T> third, ImmutableArray<T> fourth, ImmutableArray<T> fifth) 971internal static ImmutableArray<T> Concat<T>(this ImmutableArray<T> first, ImmutableArray<T> second, ImmutableArray<T> third, ImmutableArray<T> fourth, ImmutableArray<T> fifth, ImmutableArray<T> sixth) 1009internal static ImmutableArray<T> Concat<T>(this ImmutableArray<T> first, T second) 1014internal static ImmutableArray<T> AddRange<T>(this ImmutableArray<T> self, in TemporaryArray<T> items) 1047internal static bool HasDuplicates<T>(this ImmutableArray<T> array) 1083internal static bool HasDuplicates<T>(this ImmutableArray<T> array, IEqualityComparer<T> comparer) 1109public static int Count<T>(this ImmutableArray<T> items, Func<T, bool> predicate) 1128public static int Sum<T>(this ImmutableArray<T> items, Func<T, int> selector) 1137public static int Sum<T>(this ImmutableArray<T> items, Func<T, int, int> selector) 1174(Dictionary<TKey, object> dictionary, Dictionary<TKey, ImmutableArray<TNamespaceOrTypeSymbol>> result) 1185static ImmutableArray<TNamespaceOrTypeSymbol> createMembers(object value) 1196return ImmutableArray<TNamespaceOrTypeSymbol>.CastUp(builder.ToDowncastedImmutableAndFree<TNamedTypeSymbol>()); 1203: ImmutableArray<TNamespaceOrTypeSymbol>.CastUp(ImmutableArray.Create((TNamedTypeSymbol)symbol)); 1208internal static Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>> GetTypesFromMemberMap<TKey, TNamespaceOrTypeSymbol, TNamedTypeSymbol> 1209(Dictionary<TKey, ImmutableArray<TNamespaceOrTypeSymbol>> map, IEqualityComparer<TKey> comparer) 1220var dictionary = new Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>>(capacity, comparer); 1224var namedTypes = getOrCreateNamedTypes(entry.Value); 1231static ImmutableArray<TNamedTypeSymbol> getOrCreateNamedTypes(ImmutableArray<TNamespaceOrTypeSymbol> members) 1238var membersAsNamedTypes = members.As<TNamedTypeSymbol>(); 1251return ImmutableArray<TNamedTypeSymbol>.Empty; 1265internal static bool SequenceEqual<TElement, TArg>(this ImmutableArray<TElement> array1, ImmutableArray<TElement> array2, TArg arg, Func<TElement, TElement, TArg, bool> predicate) 1295internal static int IndexOf<T>(this ImmutableArray<T> array, T item, IEqualityComparer<T> comparer) 1298internal static bool IsSorted<T>(this ImmutableArray<T> array, IComparer<T>? comparer = null) 1314internal static int BinarySearch<TElement, TValue>(this ImmutableArray<TElement> array, TValue value, Func<TElement, TValue, int> comparer) 1373public static bool IsSubsetOf<TElement>(this ImmutableArray<TElement> array, ImmutableArray<TElement> other)
Collections\ImmutableMemoryStream.cs (3)
14private readonly ImmutableArray<byte> _array; 17internal ImmutableMemoryStream(ImmutableArray<byte> array) 23public ImmutableArray<byte> GetBuffer()
Collections\OrderPreservingMultiDictionary.cs (3)
143public ImmutableArray<V> this[K k] 153return ImmutableArray<V>.Empty; 270internal ImmutableArray<V> Items
Collections\StaticCast.cs (3)
12internal static ImmutableArray<T> From<TDerived>(ImmutableArray<TDerived> from) where TDerived : class, T 14return ImmutableArray<T>.CastUp(from);
Collections\TemporaryArray`1.cs (6)
21/// <see cref="ImmutableArray{T}"/>. 176public void AddRange(ImmutableArray<T> items) 296/// Create an <see cref="ImmutableArray{T}"/> with the elements currently held in the temporary array, and clear 299public ImmutableArray<T> ToImmutableAndClear() 307var result = _count switch 3090 => ImmutableArray<T>.Empty,
Collections\TopologicalSort.cs (5)
24out ImmutableArray<TNode> result) 44out ImmutableArray<TNode> result) 48PooledDictionary<TNode, int> predecessorCounts = PredecessorCounts(nodes, addSuccessors, out ImmutableArray<TNode> allNodes); 86result = hadCycle ? ImmutableArray<TNode>.Empty : resultBuilder.ToImmutable(); 98out ImmutableArray<TNode> allNodes)
Collections\UnionCollection.cs (3)
27private readonly ImmutableArray<ICollection<T>> _collections; 48public static ICollection<T> Create<TOrig>(ImmutableArray<TOrig> collections, Func<TOrig, ICollection<T>> selector) 65private UnionCollection(ImmutableArray<ICollection<T>> collections)
CommandLine\AnalyzerConfig.cs (2)
109internal ImmutableArray<Section> NamedSections { get; } 161ImmutableArray<Section> namedSections,
CommandLine\AnalyzerConfig.SectionNameMatching.cs (2)
24private readonly ImmutableArray<(int minValue, int maxValue)> _numberRangePairs; 30ImmutableArray<(int minValue, int maxValue)> numberRangePairs)
CommandLine\AnalyzerConfigOptionsResult.cs (2)
30public ImmutableArray<Diagnostic> Diagnostics { get; } 35ImmutableArray<Diagnostic> diagnostics)
CommandLine\AnalyzerConfigSet.cs (12)
34private readonly ImmutableArray<AnalyzerConfig> _analyzerConfigs; 42private readonly ImmutableArray<ImmutableArray<SectionNameMatcher?>> _analyzerMatchers; 126public static AnalyzerConfigSet Create<TList>(TList analyzerConfigs, out ImmutableArray<Diagnostic> diagnostics) where TList : IReadOnlyCollection<AnalyzerConfig> 136private AnalyzerConfigSet(ImmutableArray<AnalyzerConfig> analyzerConfigs, GlobalAnalyzerConfig globalConfig) 141var allMatchers = ArrayBuilder<ImmutableArray<SectionNameMatcher?>>.GetInstance(_analyzerConfigs.Length); 227ImmutableArray<SectionNameMatcher?> matchers = _analyzerMatchers[analyzerConfigIndex]; 274ImmutableArray<SectionNameMatcher?> matchers = _analyzerMatchers[analyzerConfigIndex]; 453internal static GlobalAnalyzerConfig MergeGlobalConfigs(ArrayBuilder<AnalyzerConfig> analyzerConfigs, out ImmutableArray<Diagnostic> diagnostics) 516return new GlobalAnalyzerConfig(new Section(GlobalSectionName, AnalyzerOptions.Empty), ImmutableArray<Section>.Empty); 646internal ImmutableArray<AnalyzerConfig.Section> NamedSections { get; } 648public GlobalAnalyzerConfig(AnalyzerConfig.Section globalSection, ImmutableArray<AnalyzerConfig.Section> namedSections)
CommandLine\CommandLineArguments.cs (20)
53public ImmutableArray<KeyValuePair<string, string>> PathMap { get; internal set; } 58public ImmutableArray<string> ReferencePaths { get; internal set; } 63public ImmutableArray<string> SourcePaths { get; internal set; } 68public ImmutableArray<string> KeyFileSearchPaths { get; internal set; } 151public ImmutableArray<Diagnostic> Errors { get; internal set; } 157public ImmutableArray<CommandLineReference> MetadataReferences { get; internal set; } 162public ImmutableArray<CommandLineAnalyzerReference> AnalyzerReferences { get; internal set; } 167public ImmutableArray<string> AnalyzerConfigPaths { get; internal set; } 172public ImmutableArray<CommandLineSourceFile> AdditionalFiles { get; internal set; } 177public ImmutableArray<CommandLineSourceFile> EmbeddedFiles { get; internal set; } 244public ImmutableArray<ResourceDescription> ManifestResources { get; internal set; } 259public ImmutableArray<string> ScriptArguments { get; internal set; } 268public ImmutableArray<CommandLineSourceFile> SourceFiles { get; internal set; } 406var references = ResolveMetadataReference(cmdReference, metadataResolver, diagnosticsOpt, messageProviderOpt); 425internal static ImmutableArray<PortableExecutableReference> ResolveMetadataReference(CommandLineReference cmdReference, MetadataReferenceResolver metadataResolver, List<DiagnosticInfo>? diagnosticsOpt, CommonMessageProvider? messageProviderOpt) 430ImmutableArray<PortableExecutableReference> references; 439return ImmutableArray<PortableExecutableReference>.Empty; 446return ImmutableArray<PortableExecutableReference>.Empty; 477out ImmutableArray<DiagnosticAnalyzer> analyzers, 478out ImmutableArray<ISourceGenerator> generators)
CommandLine\CommandLineParser.cs (4)
338protected ImmutableArray<KeyValuePair<string, string>> ParsePathMap(string pathMap, IList<Diagnostic> errors) 342return ImmutableArray<KeyValuePair<string, string>>.Empty; 1408internal static ImmutableArray<KeyValuePair<string, string>> SortPathMap(ImmutableArray<KeyValuePair<string, string>> pathMap)
CommandLine\CommonCompiler.CompilerEmitStreamProvider.cs (1)
118var lockedBy = FileLockCheck.TryGetLockingProcessInfos(_filePath);
CommandLine\CommonCompiler.CompilerRelativePathResolver.cs (1)
26internal CompilerRelativePathResolver(ICommonCompilerFileSystem fileSystem, ImmutableArray<string> searchPaths, string? baseDirectory)
CommandLine\CommonCompiler.cs (41)
99ImmutableArray<AnalyzerConfigOptionsResult> analyzerConfigOptions, 122out ImmutableArray<DiagnosticAnalyzer> analyzers, 123out ImmutableArray<ISourceGenerator> generators); 297ImmutableArray<string> analyzerConfigPaths, 345analyzerConfigSet = AnalyzerConfigSet.Create(configs, out var setDiagnostics); 424private ImmutableArray<EmbeddedText?> AcquireEmbeddedTexts(Compilation compilation, DiagnosticBag diagnostics) 429return ImmutableArray<EmbeddedText?>.Empty; 607private void ReportIVTInfos(TextWriter consoleOutput, ErrorLogger? errorLogger, Compilation compilation, ImmutableArray<Diagnostic> diagnostics) 664private protected abstract void DiagnoseBadAccesses(TextWriter consoleOutput, ErrorLogger? errorLogger, Compilation compilation, ImmutableArray<Diagnostic> diagnostics); 817ImmutableArray<ISourceGenerator> generators, 819ImmutableArray<AdditionalText> additionalTexts, 839driver = driver.RunGeneratorsAndUpdateCompilation(input, out var compilationOut, out var diagnostics); 877private protected abstract GeneratorDriver CreateGeneratorDriver(string baseDirectory, ParseOptions parseOptions, ImmutableArray<ISourceGenerator> generators, AnalyzerConfigOptionsProvider analyzerConfigOptionsProvider, ImmutableArray<AdditionalText> additionalTexts); 918ImmutableArray<AnalyzerConfigOptionsResult> sourceFileAnalyzerConfigOptions = default; 946ResolveAnalyzersFromArguments(diagnosticInfos, MessageProvider, compilation.Options, Arguments.SkipAnalyzers, out var analyzers, out var generators); 947var additionalTextFiles = ResolveAdditionalFilesFromArguments(diagnosticInfos, MessageProvider, touchedFilesLogger); 953ImmutableArray<EmbeddedText?> embeddedTexts = AcquireEmbeddedTexts(compilation, diagnostics); 959var additionalTexts = ImmutableArray<AdditionalText>.CastUp(additionalTextFiles); 1018ImmutableArray<AnalyzerConfigOptionsResult> sourceFileAnalyzerConfigOptions, 1019ImmutableArray<AdditionalText> additionalFiles = default, 1020ImmutableArray<AnalyzerConfigOptionsResult> additionalFileOptions = default) 1058ImmutableArray<AdditionalText> additionalTextFiles, 1061ImmutableArray<AnalyzerConfigOptionsResult> sourceFileAnalyzerConfigOptions) 1071ImmutableArray<AnalyzerConfigOptionsResult> additionalFileAnalyzerOptions = 1097ImmutableArray<DiagnosticAnalyzer> analyzers, 1098ImmutableArray<ISourceGenerator> generators, 1099ImmutableArray<AdditionalText> additionalTextFiles, 1101ImmutableArray<AnalyzerConfigOptionsResult> sourceFileAnalyzerConfigOptions, 1102ImmutableArray<EmbeddedText?> embeddedTexts, 1406var hostDiagnostics = analyzerDriver.GetDiagnosticsAsync(compilation, cancellationToken).Result; 1417var descriptorsWithInfo = analyzerDriver.GetAllDiagnosticDescriptorsWithInfo(cancellationToken, out var totalAnalyzerExecutionTime); 1544ImmutableArray<AdditionalText> additionalTextFiles, 1547protected virtual void AddAnalyzerDescriptorsAndExecutionTime(ErrorLogger errorLogger, ImmutableArray<(DiagnosticDescriptor Descriptor, DiagnosticDescriptorErrorLoggerInfo Info)> descriptorsWithInfo, double totalAnalyzerExecutionTime) 1598protected virtual ImmutableArray<AdditionalTextFile> ResolveAdditionalFilesFromArguments(List<DiagnosticInfo> diagnostics, CommonMessageProvider messageProvider, TouchedFileLogger? touchedFilesLogger) 1746ImmutableArray<AdditionalText> additionalTexts, 1747ImmutableArray<DiagnosticAnalyzer> analyzers, 1748ImmutableArray<ISourceGenerator> generators, 1749ImmutableArray<KeyValuePair<string, string>> pathMap,
CommandLine\CommonCompiler.ExistingReferencesResolver.cs (4)
25private readonly ImmutableArray<MetadataReference> _availableReferences; 28public ExistingReferencesResolver(MetadataReferenceResolver resolver, ImmutableArray<MetadataReference> availableReferences) 44public override ImmutableArray<PortableExecutableReference> ResolveReference(string reference, string? baseFilePath, MetadataReferenceProperties properties) 46var resolvedReferences = _resolver.ResolveReference(reference, baseFilePath, properties);
CommandLine\CommonCompiler.LoggingMetadataFileReferenceResolver.cs (2)
29public override ImmutableArray<PortableExecutableReference> ResolveReference(string reference, string? baseFilePath, MetadataReferenceProperties properties) 39return ImmutableArray<PortableExecutableReference>.Empty;
CommandLine\CommonCompiler.LoggingSourceFileResolver.cs (3)
17ImmutableArray<string> searchPaths, 19ImmutableArray<KeyValuePair<string, string>> pathMap, 39public LoggingSourceFileResolver WithSearchPaths(ImmutableArray<string> value) =>
CommandLine\ErrorLogger.cs (1)
16public abstract void AddAnalyzerDescriptorsAndExecutionTime(ImmutableArray<(DiagnosticDescriptor Descriptor, DiagnosticDescriptorErrorLoggerInfo Info)> descriptors, double totalAnalyzerExecutionTime);
CommandLine\SarifV1ErrorLogger.cs (1)
131public override void AddAnalyzerDescriptorsAndExecutionTime(ImmutableArray<(DiagnosticDescriptor Descriptor, DiagnosticDescriptorErrorLoggerInfo Info)> descriptors, double totalAnalyzerExecutionTime)
CommandLine\SarifV2ErrorLogger.cs (4)
120public override void AddAnalyzerDescriptorsAndExecutionTime(ImmutableArray<(DiagnosticDescriptor Descriptor, DiagnosticDescriptorErrorLoggerInfo Info)> descriptors, double totalAnalyzerExecutionTime) 222var effectiveSeverities = WriteRules(); 230private ImmutableArray<(string DescriptorId, int DescriptorIndex, ImmutableHashSet<ReportDiagnostic> EffectiveSeverities)> WriteRules() 348private void WriteInvocations(ImmutableArray<(string DescriptorId, int DescriptorIndex, ImmutableHashSet<ReportDiagnostic> EffectiveSeverities)> effectiveSeverities)
Compilation\CommonSyntaxAndDeclarationManager.cs (2)
11internal readonly ImmutableArray<SyntaxTree> ExternalSyntaxTrees; 18ImmutableArray<SyntaxTree> externalSyntaxTrees,
Compilation\Compilation.cs (78)
78ImmutableArray<MetadataReference> references, 125internal abstract AnalyzerDriver CreateAnalyzerDriver(ImmutableArray<DiagnosticAnalyzer> analyzers, AnalyzerManager analyzerManager, SeverityFilter severityFilter); 196ImmutableArray<SyntaxTree> syntaxTrees, 197ImmutableArray<MetadataReference> references, 198ImmutableArray<byte> publicKey, 199ImmutableArray<AdditionalText> additionalTexts = default, 200ImmutableArray<DiagnosticAnalyzer> analyzers = default, 201ImmutableArray<ISourceGenerator> generators = default, 202ImmutableArray<KeyValuePair<string, string>> pathMap = default, 211ImmutableArray<AdditionalText> additionalTexts = default, 212ImmutableArray<DiagnosticAnalyzer> analyzers = default, 213ImmutableArray<ISourceGenerator> generators = default, 214ImmutableArray<KeyValuePair<string, string>> pathMap = default, 557protected internal abstract ImmutableArray<SyntaxTree> CommonSyntaxTrees { get; } 668internal static ImmutableArray<MetadataReference> ValidateReferences<T>(IEnumerable<MetadataReference>? references) 671var result = references.AsImmutableOrEmpty(); 702public ImmutableArray<MetadataReference> ExternalReferences { get; } 707public abstract ImmutableArray<MetadataReference> DirectiveReferences { get; } 749public abstract CompilationReference ToMetadataReference(ImmutableArray<string> aliases = default(ImmutableArray<string>), bool embedInteropTypes = false); 1129ImmutableArray<ITypeSymbol> parameterTypes, 1130ImmutableArray<RefKind> parameterRefKinds, 1132ImmutableArray<INamedTypeSymbol> callingConventionTypes = default) 1140ImmutableArray<ITypeSymbol> parameterTypes, 1141ImmutableArray<RefKind> parameterRefKinds, 1143ImmutableArray<INamedTypeSymbol> callingConventionTypes); 1164private ConcurrentCache<string, ImmutableArray<INamedTypeSymbol>>? _getTypesCache; 1237public ImmutableArray<INamedTypeSymbol> GetTypesByMetadataName(string fullyQualifiedMetadataName) 1240ref _getTypesCache, static () => new ConcurrentCache<string, ImmutableArray<INamedTypeSymbol>>(50, ReferenceEqualityComparer.Instance)); 1242if (!getTypesCache.TryGetValue(fullyQualifiedMetadataName, out ImmutableArray<INamedTypeSymbol> val)) 1247|| !getTypesCache.TryGetValue(fullyQualifiedMetadataName, out var addedArray) // Could fail if the type was already evicted from the cache 1253ImmutableArray<INamedTypeSymbol> getTypesByMetadataNameImpl() 1278return typesByMetadataName?.ToImmutableAndFree() ?? ImmutableArray<INamedTypeSymbol>.Empty; 1296ImmutableArray<ITypeSymbol> elementTypes, 1297ImmutableArray<string?> elementNames = default, 1298ImmutableArray<Location?> elementLocations = default, 1299ImmutableArray<NullableAnnotation> elementNullableAnnotations = default) 1337ImmutableArray<ITypeSymbol> elementTypes, 1338ImmutableArray<string?> elementNames, 1339ImmutableArray<Location?> elementLocations) 1346ImmutableArray<NullableAnnotation> elementNullableAnnotations) 1361protected static ImmutableArray<string?> CheckTupleElementNames(int cardinality, ImmutableArray<string?> elementNames) 1389ImmutableArray<Location?> elementLocations) 1401ImmutableArray<ITypeSymbol> elementTypes, 1402ImmutableArray<string?> elementNames, 1403ImmutableArray<Location?> elementLocations, 1404ImmutableArray<NullableAnnotation> elementNullableAnnotations); 1414ImmutableArray<string?> elementNames = default, 1415ImmutableArray<Location?> elementLocations = default, 1416ImmutableArray<NullableAnnotation> elementNullableAnnotations = default) 1434ImmutableArray<string?> elementNames, 1435ImmutableArray<Location?> elementLocations) 1442ImmutableArray<string?> elementNames, 1443ImmutableArray<Location?> elementLocations, 1444ImmutableArray<NullableAnnotation> elementNullableAnnotations); 1453ImmutableArray<ITypeSymbol> memberTypes, 1454ImmutableArray<string> memberNames, 1455ImmutableArray<bool> memberIsReadOnly = default, 1456ImmutableArray<Location> memberLocations = default, 1457ImmutableArray<NullableAnnotation> memberNullableAnnotations = default) 1522ImmutableArray<ITypeSymbol> memberTypes, 1523ImmutableArray<string> memberNames, 1524ImmutableArray<bool> memberIsReadOnly, 1525ImmutableArray<Location> memberLocations) 1531ImmutableArray<ITypeSymbol> memberTypes, 1532ImmutableArray<string> memberNames, 1533ImmutableArray<Location> memberLocations, 1534ImmutableArray<bool> memberIsReadOnly, 1535ImmutableArray<NullableAnnotation> memberNullableAnnotations); 1770public abstract ImmutableArray<Diagnostic> GetParseDiagnostics(CancellationToken cancellationToken = default(CancellationToken)); 1775public abstract ImmutableArray<Diagnostic> GetDeclarationDiagnostics(CancellationToken cancellationToken = default(CancellationToken)); 1780public abstract ImmutableArray<Diagnostic> GetMethodBodyDiagnostics(CancellationToken cancellationToken = default(CancellationToken)); 1787public abstract ImmutableArray<Diagnostic> GetDiagnostics(CancellationToken cancellationToken = default(CancellationToken)); 1812public abstract ImmutableArray<MetadataReference> GetUsedAssemblyReferences(CancellationToken cancellationToken = default(CancellationToken)); 3621internal TLocation? FirstSourceLocation<TLocation>(ImmutableArray<TLocation> locations) 3767public ImmutableArray<AssemblyIdentity> GetUnreferencedAssemblyIdentities(Diagnostic diagnostic) 3776return ImmutableArray<AssemblyIdentity>.Empty;
Compilation\CompilationOptions.cs (10)
61public ImmutableArray<byte> CryptoPublicKey { get; protected set; } 250protected internal ImmutableArray<string> Features 262private readonly Lazy<ImmutableArray<Diagnostic>> _lazyErrors; 275ImmutableArray<byte> cryptoPublicKey, 326_lazyErrors = new Lazy<ImmutableArray<Diagnostic>>(() => 377internal abstract ImmutableArray<string> GetImports(); 511public CompilationOptions WithCryptoPublicKey(ImmutableArray<byte> cryptoPublicKey) 549protected abstract CompilationOptions CommonWithCryptoPublicKey(ImmutableArray<byte> cryptoPublicKey); 555protected abstract CompilationOptions CommonWithFeatures(ImmutableArray<string> features); 606public ImmutableArray<Diagnostic> Errors
Compilation\ControlFlowAnalysis.cs (3)
19public abstract ImmutableArray<SyntaxNode> EntryPoints { get; } 25public abstract ImmutableArray<SyntaxNode> ExitPoints { get; } 38public abstract ImmutableArray<SyntaxNode> ReturnStatements { get; }
Compilation\DataFlowAnalysis.cs (15)
23public abstract ImmutableArray<ISymbol> VariablesDeclared { get; } 29public abstract ImmutableArray<ISymbol> DataFlowsIn { get; } 35public abstract ImmutableArray<ISymbol> DataFlowsOut { get; } 43public abstract ImmutableArray<ISymbol> DefinitelyAssignedOnEntry { get; } 51public abstract ImmutableArray<ISymbol> DefinitelyAssignedOnExit { get; } 57public abstract ImmutableArray<ISymbol> AlwaysAssigned { get; } 62public abstract ImmutableArray<ISymbol> ReadInside { get; } 67public abstract ImmutableArray<ISymbol> WrittenInside { get; } 72public abstract ImmutableArray<ISymbol> ReadOutside { get; } 77public abstract ImmutableArray<ISymbol> WrittenOutside { get; } 86public abstract ImmutableArray<ISymbol> Captured { get; } 91public abstract ImmutableArray<ISymbol> CapturedInside { get; } 96public abstract ImmutableArray<ISymbol> CapturedOutside { get; } 102public abstract ImmutableArray<ISymbol> UnsafeAddressTaken { get; } 107public abstract ImmutableArray<IMethodSymbol> UsedLocalFunctions { get; }
Compilation\DeterministicKey.cs (14)
52ImmutableArray<SyntaxTree> syntaxTrees, 53ImmutableArray<MetadataReference> references, 54ImmutableArray<byte> publicKey = default, 55ImmutableArray<AdditionalText> additionalTexts = default, 56ImmutableArray<DiagnosticAnalyzer> analyzers = default, 57ImmutableArray<ISourceGenerator> generators = default, 58ImmutableArray<KeyValuePair<string, string>> pathMap = default, 79ImmutableArray<SyntaxTreeKey> syntaxTrees, 80ImmutableArray<MetadataReference> references, 81ImmutableArray<byte> publicKey, 82ImmutableArray<AdditionalText> additionalTexts = default, 83ImmutableArray<DiagnosticAnalyzer> analyzers = default, 84ImmutableArray<ISourceGenerator> generators = default, 85ImmutableArray<KeyValuePair<string, string>> pathMap = default,
Compilation\DeterministicKeyBuilder.cs (16)
46ImmutableArray<KeyValuePair<string, string>> pathMap, 122ImmutableArray<SyntaxTreeKey> syntaxTrees, 123ImmutableArray<MetadataReference> references, 124ImmutableArray<byte> publicKey, 125ImmutableArray<AdditionalText> additionalTexts, 126ImmutableArray<DiagnosticAnalyzer> analyzers, 127ImmutableArray<ISourceGenerator> generators, 128ImmutableArray<KeyValuePair<string, string>> pathMap, 200ImmutableArray<SyntaxTreeKey> syntaxTrees, 201ImmutableArray<MetadataReference> references, 202ImmutableArray<byte> publicKey, 203ImmutableArray<KeyValuePair<string, string>> pathMap, 256ImmutableArray<KeyValuePair<string, string>> pathMap, 287ImmutableArray<KeyValuePair<string, string>> pathMap, 298var modules = assemblyMetadata.GetModules(); 385ImmutableArray<KeyValuePair<string, string>> pathMap,
Compilation\EmitResult.cs (2)
27public ImmutableArray<Diagnostic> Diagnostics { get; } 29internal EmitResult(bool success, ImmutableArray<Diagnostic> diagnostics)
Compilation\Extensions.cs (1)
140public static ImmutableArray<ISymbol> GetMemberGroup(this SemanticModel semanticModel, SyntaxNode node, CancellationToken cancellationToken = default(CancellationToken))
Compilation\IImportScope.cs (20)
49/// <remarks>May be <see cref="ImmutableArray{T}.Empty"/>, will never be <see cref="ImmutableArray{T}.IsDefault"/>.</remarks> 50ImmutableArray<IAliasSymbol> Aliases { get; } 56/// <remarks>May be <see cref="ImmutableArray{T}.Empty"/>, will never be <see cref="ImmutableArray{T}.IsDefault"/>.</remarks> 57ImmutableArray<IAliasSymbol> ExternAliases { get; } 64/// <remarks>May be <see cref="ImmutableArray{T}.Empty"/>, will never be <see cref="ImmutableArray{T}.IsDefault"/>.</remarks> 65ImmutableArray<ImportedNamespaceOrType> Imports { get; } 71/// <remarks>May be <see cref="ImmutableArray{T}.Empty"/>, will never be <see cref="ImmutableArray{T}.IsDefault"/>.</remarks> 72ImmutableArray<ImportedXmlNamespace> XmlNamespaces { get; } 127ImmutableArray<IAliasSymbol> aliases, 128ImmutableArray<IAliasSymbol> externAliases, 129ImmutableArray<ImportedNamespaceOrType> imports, 130ImmutableArray<ImportedXmlNamespace> xmlNamespaces) 146public ImmutableArray<IAliasSymbol> Aliases { get; } 147public ImmutableArray<IAliasSymbol> ExternAliases { get; } 148public ImmutableArray<ImportedNamespaceOrType> Imports { get; } 149public ImmutableArray<ImportedXmlNamespace> XmlNamespaces { get; }
Compilation\LoadDirective.cs (2)
16public readonly ImmutableArray<Diagnostic> Diagnostics; 18public LoadDirective(string? resolvedPath, ImmutableArray<Diagnostic> diagnostics)
Compilation\ParseOptions.cs (3)
21private readonly Lazy<ImmutableArray<Diagnostic>> _lazyErrors; 45_lazyErrors = new Lazy<ImmutableArray<Diagnostic>>(() => 61public ImmutableArray<Diagnostic> Errors
Compilation\RebuildData.cs (2)
18internal ImmutableArray<string> NonSourceFileDocumentNames { get; } 24ImmutableArray<string> nonSourceFileDocumentNames)
Compilation\SemanticModel.cs (20)
331public abstract ImmutableArray<Diagnostic> GetSyntaxDiagnostics(TextSpan? span = null, CancellationToken cancellationToken = default(CancellationToken)); 345public abstract ImmutableArray<Diagnostic> GetDeclarationDiagnostics(TextSpan? span = null, CancellationToken cancellationToken = default(CancellationToken)); 359public abstract ImmutableArray<Diagnostic> GetMethodBodyDiagnostics(TextSpan? span = null, CancellationToken cancellationToken = default(CancellationToken)); 376public abstract ImmutableArray<Diagnostic> GetDiagnostics(TextSpan? span = null, CancellationToken cancellationToken = default(CancellationToken)); 419internal ImmutableArray<ISymbol> GetDeclaredSymbolsForNode(SyntaxNode declaration, CancellationToken cancellationToken = default(CancellationToken)) 440protected abstract ImmutableArray<ISymbol> GetDeclaredSymbolsCore(SyntaxNode declaration, CancellationToken cancellationToken = default(CancellationToken)); 463public ImmutableArray<ISymbol> LookupSymbols( 475protected abstract ImmutableArray<ISymbol> LookupSymbolsCore( 516public ImmutableArray<ISymbol> LookupBaseMembers( 526protected abstract ImmutableArray<ISymbol> LookupBaseMembersCore( 550public ImmutableArray<ISymbol> LookupStaticMembers( 561protected abstract ImmutableArray<ISymbol> LookupStaticMembersCore( 584public ImmutableArray<ISymbol> LookupNamespacesAndTypes( 595protected abstract ImmutableArray<ISymbol> LookupNamespacesAndTypesCore( 614public ImmutableArray<ISymbol> LookupLabels( 624protected abstract ImmutableArray<ISymbol> LookupLabelsCore( 762internal ImmutableArray<ISymbol> GetMemberGroup(SyntaxNode node, CancellationToken cancellationToken = default(CancellationToken)) 772protected abstract ImmutableArray<ISymbol> GetMemberGroupCore(SyntaxNode node, CancellationToken cancellationToken = default(CancellationToken)); 794public ImmutableArray<IImportScope> GetImportScopes(int position, CancellationToken cancellationToken = default) 797private protected abstract ImmutableArray<IImportScope> GetImportScopesCore(int position, CancellationToken cancellationToken);
Compilation\SymbolInfo.cs (7)
22private readonly ImmutableArray<ISymbol> _candidateSymbols; 39public ImmutableArray<ISymbol> CandidateSymbols => _candidateSymbols.NullToEmpty(); 49: this(symbol, ImmutableArray<ISymbol>.Empty, CandidateReason.None) 54: this(symbol, ImmutableArray<ISymbol>.Empty, reason) 58internal SymbolInfo(ImmutableArray<ISymbol> candidateSymbols, CandidateReason candidateReason) 63private SymbolInfo(ISymbol? symbol, ImmutableArray<ISymbol> candidateSymbols, CandidateReason candidateReason) 80internal ImmutableArray<ISymbol> GetAllSymbols()
Compilation\SyntaxTreeOptionsProvider.cs (1)
57ImmutableArray<AnalyzerConfigOptionsResult> results,
CryptographicHashProvider.cs (22)
23private ImmutableArray<byte> _lazySHA1Hash; 24private ImmutableArray<byte> _lazySHA256Hash; 25private ImmutableArray<byte> _lazySHA384Hash; 26private ImmutableArray<byte> _lazySHA512Hash; 27private ImmutableArray<byte> _lazyMD5Hash; 29internal abstract ImmutableArray<byte> ComputeHash(HashAlgorithm algorithm); 31internal ImmutableArray<byte> GetHash(AssemblyHashAlgorithm algorithmId) 156private ImmutableArray<byte> GetHash(ref ImmutableArray<byte> lazyHash, HashAlgorithm algorithm) 160ImmutableInterlocked.InterlockedCompareExchange(ref lazyHash, ComputeHash(algorithm), default(ImmutableArray<byte>)); 168internal static ImmutableArray<byte> ComputeSha1(Stream stream) 181return ImmutableArray<byte>.Empty; 184internal static ImmutableArray<byte> ComputeSha1(ImmutableArray<byte> bytes) 189internal static ImmutableArray<byte> ComputeSha1(byte[] bytes) 198internal static ImmutableArray<byte> ComputeHash(HashAlgorithmName algorithmName, IEnumerable<Blob> bytes) 207internal static ImmutableArray<byte> ComputeHash(HashAlgorithmName algorithmName, IEnumerable<ArraySegment<byte>> bytes) 216internal static ImmutableArray<byte> ComputeSourceHash(ImmutableArray<byte> bytes, SourceHashAlgorithm hashAlgorithm = SourceHashAlgorithms.Default) 228internal static ImmutableArray<byte> ComputeSourceHash(ImmutableArray<ConstantValue> constants, SourceHashAlgorithm hashAlgorithm = SourceHashAlgorithms.Default) 282internal static ImmutableArray<byte> ComputeSourceHash(IEnumerable<Blob> bytes, SourceHashAlgorithm hashAlgorithm = SourceHashAlgorithms.Default)
Desktop\DesktopAssemblyIdentityComparer.cs (1)
253ImmutableArray<byte> newPublicKeyToken = default;
Desktop\DesktopAssemblyIdentityComparer.Fx.cs (22)
29public readonly ImmutableArray<byte> PublicKeyToken; 32public Value(ImmutableArray<byte> publicKeyToken, AssemblyVersion version) 41ImmutableArray<byte> publicKeyToken, 57public readonly ImmutableArray<byte> PublicKeyToken; 59public Key(string name, ImmutableArray<byte> publicKeyToken) 87public readonly ImmutableArray<byte> NewPublicKeyToken; 95ImmutableArray<byte> newPublicKeyToken, 110ImmutableArray<byte> publicKeyToken, 116ImmutableArray<byte> newPublicKeyToken, 131ImmutableArray<byte> publicKeyToken, 135ImmutableArray<byte> newPublicKeyToken, 181private static readonly ImmutableArray<byte> s_NETCF_PUBLIC_KEY_TOKEN_1 = ImmutableArray.Create(new byte[] { 0x1c, 0x9e, 0x25, 0x96, 0x86, 0xf9, 0x21, 0xe0 }); 182private static readonly ImmutableArray<byte> s_NETCF_PUBLIC_KEY_TOKEN_2 = ImmutableArray.Create(new byte[] { 0x5f, 0xd5, 0x7c, 0x54, 0x3a, 0x9c, 0x02, 0x47 }); 183private static readonly ImmutableArray<byte> s_NETCF_PUBLIC_KEY_TOKEN_3 = ImmutableArray.Create(new byte[] { 0x96, 0x9d, 0xb8, 0x05, 0x3d, 0x33, 0x22, 0xac }); 184private static readonly ImmutableArray<byte> s_SQL_PUBLIC_KEY_TOKEN = ImmutableArray.Create(new byte[] { 0x89, 0x84, 0x5d, 0xcd, 0x80, 0x80, 0xcc, 0x91 }); 185private static readonly ImmutableArray<byte> s_SQL_MOBILE_PUBLIC_KEY_TOKEN = ImmutableArray.Create(new byte[] { 0x3b, 0xe2, 0x35, 0xdf, 0x1c, 0x8d, 0x2a, 0xd3 }); 186private static readonly ImmutableArray<byte> s_ECMA_PUBLICKEY_STR_L = ImmutableArray.Create(new byte[] { 0xb7, 0x7a, 0x5c, 0x56, 0x19, 0x34, 0xe0, 0x89 }); 187private static readonly ImmutableArray<byte> s_SHAREDLIB_PUBLICKEY_STR_L = ImmutableArray.Create(new byte[] { 0x31, 0xbf, 0x38, 0x56, 0xad, 0x36, 0x4e, 0x35 }); 188private static readonly ImmutableArray<byte> s_MICROSOFT_PUBLICKEY_STR_L = ImmutableArray.Create(new byte[] { 0xb0, 0x3f, 0x5f, 0x7f, 0x11, 0xd5, 0x0a, 0x3a }); 189private static readonly ImmutableArray<byte> s_SILVERLIGHT_PLATFORM_PUBLICKEY_STR_L = ImmutableArray.Create(new byte[] { 0x7c, 0xec, 0x85, 0xd7, 0xbe, 0xa7, 0x79, 0x8e }); 190private static readonly ImmutableArray<byte> s_SILVERLIGHT_PUBLICKEY_STR_L = ImmutableArray.Create(new byte[] { 0x31, 0xbf, 0x38, 0x56, 0xad, 0x36, 0x4e, 0x35 }); 191private static readonly ImmutableArray<byte> s_RIA_SERVICES_KEY_TOKEN = ImmutableArray.Create(new byte[] { 0xdd, 0xd0, 0xda, 0x4d, 0x3e, 0x67, 0x82, 0x17 });
Diagnostic\CustomObsoleteDiagnosticInfo.cs (1)
84ImmutableArray<string> customTags;
Diagnostic\Diagnostic.cs (3)
363var programmaticSuppressions = this.ProgrammaticSuppressionInfo?.Suppressions ?? ImmutableArray<Suppression>.Empty; 403internal virtual ImmutableArray<string> CustomTags { get { return this.Descriptor.ImmutableCustomTags; } }
Diagnostic\DiagnosticArrayExtensions.cs (1)
11internal static bool HasAnyErrors<T>(this ImmutableArray<T> diagnostics) where T : Diagnostic
Diagnostic\DiagnosticBag.cs (7)
123public void AddRange<T>(ImmutableArray<T> diagnostics) where T : Diagnostic 170public ImmutableArray<TDiagnostic> ToReadOnlyAndFree<TDiagnostic>(bool forceResolution = true) where TDiagnostic : Diagnostic 178public ImmutableArray<Diagnostic> ToReadOnlyAndFree(bool forceResolution = true) 183public ImmutableArray<TDiagnostic> ToReadOnly<TDiagnostic>(bool forceResolution = true) where TDiagnostic : Diagnostic 189public ImmutableArray<Diagnostic> ToReadOnly(bool forceResolution = true) 194private static ImmutableArray<TDiagnostic> ToReadOnlyCore<TDiagnostic>(ConcurrentQueue<Diagnostic>? oldBag, bool forceResolution) where TDiagnostic : Diagnostic 198return ImmutableArray<TDiagnostic>.Empty;
Diagnostic\DiagnosticDescriptor.cs (4)
69internal ImmutableArray<string> ImmutableCustomTags 73Debug.Assert(CustomTags is ImmutableArray<string>); 74return (ImmutableArray<string>)CustomTags; 160ImmutableArray<string> customTags)
Diagnostic\DiagnosticInfo.cs (5)
36private static readonly ImmutableArray<string> s_compilerErrorCustomTags = ImmutableArray.Create(WellKnownDiagnosticTags.Compiler, WellKnownDiagnosticTags.Telemetry, WellKnownDiagnosticTags.NotConfigurable); 37private static readonly ImmutableArray<string> s_compilerNonErrorCustomTags = ImmutableArray.Create(WellKnownDiagnosticTags.Compiler, WellKnownDiagnosticTags.Telemetry); 91var customTags = GetCustomTags(defaultSeverity); 264internal ImmutableArray<string> CustomTags 272private static ImmutableArray<string> GetCustomTags(DiagnosticSeverity defaultSeverity)
Diagnostic\DiagnosticWithInfo.cs (1)
43internal override ImmutableArray<string> CustomTags
Diagnostic\ProgrammaticSuppressionInfo.cs (2)
16public ImmutableArray<Suppression> Suppressions { get; } 18internal ProgrammaticSuppressionInfo(ImmutableArray<Suppression> suppressions)
Diagnostic\SuppressionInfo.cs (2)
32public ImmutableArray<Suppression> ProgrammaticSuppressions { get; } 34internal SuppressionInfo(string id, AttributeData? attribute, ImmutableArray<Suppression> programmaticSuppressions)
DiagnosticAnalyzer\AdditionalTextComparer.cs (1)
56ByteSequenceComparer.GetHashCode(GetTextOrNullIfBinary(obj)?.GetChecksum() ?? ImmutableArray<byte>.Empty));
DiagnosticAnalyzer\AnalysisResult.cs (19)
22ImmutableArray<DiagnosticAnalyzer> analyzers, 23ImmutableDictionary<SyntaxTree, ImmutableDictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>>> localSyntaxDiagnostics, 24ImmutableDictionary<SyntaxTree, ImmutableDictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>>> localSemanticDiagnostics, 25ImmutableDictionary<AdditionalText, ImmutableDictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>>> localAdditionalFileDiagnostics, 26ImmutableDictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>> nonLocalDiagnostics, 40public ImmutableArray<DiagnosticAnalyzer> Analyzers { get; } 45public ImmutableDictionary<SyntaxTree, ImmutableDictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>>> SyntaxDiagnostics { get; } 50public ImmutableDictionary<SyntaxTree, ImmutableDictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>>> SemanticDiagnostics { get; } 55public ImmutableDictionary<AdditionalText, ImmutableDictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>>> AdditionalFileDiagnostics { get; } 60public ImmutableDictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>> CompilationDiagnostics { get; } 70public ImmutableArray<Diagnostic> GetAllDiagnostics(DiagnosticAnalyzer analyzer) 83public ImmutableArray<Diagnostic> GetAllDiagnostics() 88private ImmutableArray<Diagnostic> GetDiagnostics(IEnumerable<DiagnosticAnalyzer> analyzers) 95private ImmutableArray<Diagnostic> GetDiagnostics(ImmutableHashSet<DiagnosticAnalyzer> excludedAnalyzers) 108return ImmutableArray<Diagnostic>.Empty; 112ImmutableDictionary<T, ImmutableDictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>>> localDiagnostics, 114ImmutableArray<Diagnostic>.Builder builder) 132ImmutableDictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>> nonLocalDiagnostics, 134ImmutableArray<Diagnostic>.Builder builder)
DiagnosticAnalyzer\AnalysisResultBuilder.cs (56)
36private Dictionary<SyntaxTree, Dictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>.Builder>>? _localSemanticDiagnosticsOpt = null; 37private Dictionary<SyntaxTree, Dictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>.Builder>>? _localSyntaxDiagnosticsOpt = null; 38private Dictionary<AdditionalText, Dictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>.Builder>>? _localAdditionalFileDiagnosticsOpt = null; 39private Dictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>.Builder>? _nonLocalDiagnosticsOpt = null; 41internal AnalysisResultBuilder(bool logAnalyzerExecutionTime, ImmutableArray<DiagnosticAnalyzer> analyzers, ImmutableArray<AdditionalText> additionalFiles) 52private static Dictionary<DiagnosticAnalyzer, TimeSpan> CreateAnalyzerExecutionTimeMap(ImmutableArray<DiagnosticAnalyzer> analyzers) 63private static ImmutableDictionary<string, OneOrMany<AdditionalText>> CreatePathToAdditionalTextMap(ImmutableArray<AdditionalText> additionalFiles) 159public ImmutableArray<DiagnosticAnalyzer> GetPendingAnalyzers(ImmutableArray<DiagnosticAnalyzer> analyzers, (SourceOrAdditionalFile file, bool syntax)? filterScope) 192var syntaxDiagnostics = driver.DequeueLocalDiagnosticsAndApplySuppressions(analyzer, syntax: true, compilation: compilation, cancellationToken); 193var semanticDiagnostics = driver.DequeueLocalDiagnosticsAndApplySuppressions(analyzer, syntax: false, compilation: compilation, cancellationToken); 194var compilationDiagnostics = driver.DequeueNonLocalDiagnosticsAndApplySuppressions(analyzer, compilation, cancellationToken); 328ImmutableArray<Diagnostic> diagnostics, 331ref Dictionary<TKey, Dictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>.Builder>>? lazyLocalDiagnostics) 339lazyLocalDiagnostics = lazyLocalDiagnostics ?? new Dictionary<TKey, Dictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>.Builder>>(); 349Dictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>.Builder>? allDiagnostics; 352allDiagnostics = new Dictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>.Builder>(); 356ImmutableArray<Diagnostic>.Builder? analyzerDiagnostics; 367private void UpdateNonLocalDiagnostics_NoLock(DiagnosticAnalyzer analyzer, ImmutableArray<Diagnostic> diagnostics, bool overwrite) 374_nonLocalDiagnosticsOpt = _nonLocalDiagnosticsOpt ?? new Dictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>.Builder>(); 376ImmutableArray<Diagnostic>.Builder? currentDiagnostics; 386private static void UpdateDiagnosticsCore_NoLock(ImmutableArray<Diagnostic>.Builder currentDiagnostics, IEnumerable<Diagnostic> diagnostics, bool overwrite) 401internal ImmutableArray<Diagnostic> GetDiagnostics(AnalysisScope analysisScope, bool getLocalDiagnostics, bool getNonLocalDiagnostics) 409private ImmutableArray<Diagnostic> GetDiagnostics_NoLock(AnalysisScope analysisScope, bool getLocalDiagnostics, bool getNonLocalDiagnostics) 442Dictionary<TKey, Dictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>.Builder>>? lazyLocalDiagnostics, 444ImmutableArray<Diagnostic>.Builder builder) 457Dictionary<SyntaxTree, Dictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>.Builder>>? localDiagnostics, 459ImmutableArray<Diagnostic>.Builder builder) 463Dictionary<AdditionalText, Dictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>.Builder>>? localDiagnostics, 465ImmutableArray<Diagnostic>.Builder builder) 469Dictionary<TKey, Dictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>.Builder>>? localDiagnostics, 471ImmutableArray<DiagnosticAnalyzer> analyzers, 472ImmutableArray<Diagnostic>.Builder builder) 475Dictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>.Builder>? diagnosticsForTree; 483Dictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>.Builder> diagnostics, 484ImmutableArray<DiagnosticAnalyzer> analyzers, 485ImmutableArray<Diagnostic>.Builder builder) 491ImmutableArray<Diagnostic>.Builder? diagnosticsByAnalyzer; 499internal AnalysisResult ToAnalysisResult(ImmutableArray<DiagnosticAnalyzer> analyzers, AnalysisScope analysisScope, CancellationToken cancellationToken) 503ImmutableDictionary<SyntaxTree, ImmutableDictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>>> localSyntaxDiagnostics; 504ImmutableDictionary<SyntaxTree, ImmutableDictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>>> localSemanticDiagnostics; 505ImmutableDictionary<AdditionalText, ImmutableDictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>>> localAdditionalFileDiagnostics; 506ImmutableDictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>> nonLocalDiagnostics; 523private static ImmutableDictionary<TKey, ImmutableDictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>>> GetImmutable<TKey>( 526Dictionary<TKey, Dictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>.Builder>>? localDiagnosticsOpt) 531return ImmutableDictionary<TKey, ImmutableDictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>>>.Empty; 534var builder = ImmutableDictionary.CreateBuilder<TKey, ImmutableDictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>>>(); 535var perTreeBuilder = ImmutableDictionary.CreateBuilder<DiagnosticAnalyzer, ImmutableArray<Diagnostic>>(); 544var diagnostics = diagnosticsByAnalyzer.Value.Where(shouldInclude).ToImmutableArray(); 559private static ImmutableDictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>> GetImmutable( 562Dictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>.Builder>? nonLocalDiagnosticsOpt) 566return ImmutableDictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>>.Empty; 569var builder = ImmutableDictionary.CreateBuilder<DiagnosticAnalyzer, ImmutableArray<Diagnostic>>(); 574var diagnostics = diagnosticsByAnalyzer.Value.Where(shouldInclude).ToImmutableArray(); 586ImmutableArray<DiagnosticAnalyzer> analyzers)
DiagnosticAnalyzer\AnalysisScope.cs (19)
50public ImmutableArray<DiagnosticAnalyzer> Analyzers { get; } 55public ImmutableArray<SyntaxTree> SyntaxTrees { get; } 60public ImmutableArray<AdditionalText> AdditionalFiles { get; } 96public static AnalysisScope Create(Compilation compilation, ImmutableArray<DiagnosticAnalyzer> analyzers, CompilationWithAnalyzers compilationWithAnalyzers) 104public static AnalysisScope CreateForBatchCompile(Compilation compilation, AnalyzerOptions analyzerOptions, ImmutableArray<DiagnosticAnalyzer> analyzers) 109private static AnalysisScope Create(Compilation compilation, AnalyzerOptions? analyzerOptions, ImmutableArray<DiagnosticAnalyzer> analyzers, bool hasAllAnalyzers, bool concurrentAnalysis) 111var additionalFiles = analyzerOptions?.AdditionalFiles ?? ImmutableArray<AdditionalText>.Empty; 118public static AnalysisScope Create(ImmutableArray<DiagnosticAnalyzer> analyzers, SourceOrAdditionalFile filterFile, TextSpan? filterSpan, bool isSyntacticSingleFileAnalysis, CompilationWithAnalyzers compilationWithAnalyzers) 121public static AnalysisScope Create(ImmutableArray<DiagnosticAnalyzer> analyzers, SourceOrAdditionalFile filterFile, TextSpan? filterSpan, SourceOrAdditionalFile originalFilterFile, TextSpan? originalFilterSpan, bool isSyntacticSingleFileAnalysis, CompilationWithAnalyzers compilationWithAnalyzers) 123var trees = filterFile.SourceTree != null ? ImmutableArray.Create(filterFile.SourceTree) : ImmutableArray<SyntaxTree>.Empty; 124var additionalFiles = filterFile.AdditionalFile != null ? ImmutableArray.Create(filterFile.AdditionalFile) : ImmutableArray<AdditionalText>.Empty; 131ImmutableArray<SyntaxTree> trees, 132ImmutableArray<AdditionalText> additionalFiles, 133ImmutableArray<DiagnosticAnalyzer> analyzers, 192public AnalysisScope WithAnalyzers(ImmutableArray<DiagnosticAnalyzer> analyzers, CompilationWithAnalyzers compilationWithAnalyzers) 198private static bool ComputeHasAllAnalyzers(ImmutableArray<DiagnosticAnalyzer> analyzers, CompilationWithAnalyzers compilationWithAnalyzers)
DiagnosticAnalyzer\AnalyzerAssemblyLoader.Core.cs (2)
48internal AnalyzerAssemblyLoader(ImmutableArray<IAnalyzerAssemblyResolver> externalResolvers) 53internal AnalyzerAssemblyLoader(AssemblyLoadContext? compilerLoadContext, AnalyzerLoadOption loadOption, ImmutableArray<IAnalyzerAssemblyResolver> externalResolvers)
DiagnosticAnalyzer\AnalyzerAssemblyLoader.cs (1)
78private readonly ImmutableArray<IAnalyzerAssemblyResolver> _externalResolvers;
DiagnosticAnalyzer\AnalyzerDriver.cs (89)
64protected ImmutableArray<DiagnosticAnalyzer> Analyzers { get; } 125private ImmutableArray<(DiagnosticAnalyzer, ImmutableArray<ImmutableArray<SymbolAnalyzerAction>>)> _lazySymbolActionsByKind; 126private ImmutableArray<(DiagnosticAnalyzer, ImmutableArray<SemanticModelAnalyzerAction>)> _lazySemanticModelActions; 127private ImmutableArray<(DiagnosticAnalyzer, ImmutableArray<SyntaxTreeAnalyzerAction>)> _lazySyntaxTreeActions; 128private ImmutableArray<(DiagnosticAnalyzer, ImmutableArray<AdditionalFileAnalyzerAction>)> _lazyAdditionalFileActions; 131private ImmutableArray<(DiagnosticAnalyzer, ImmutableArray<CompilationAnalyzerAction>)> _lazyCompilationActions; 132private ImmutableArray<(DiagnosticAnalyzer, ImmutableArray<CompilationAnalyzerAction>)> _lazyCompilationEndActions; 371protected AnalyzerDriver(ImmutableArray<DiagnosticAnalyzer> analyzers, AnalyzerManager analyzerManager, SeverityFilter severityFilter, Func<SyntaxTrivia, bool> isComment) 536var descriptors = AnalyzerManager.GetSupportedDiagnosticDescriptors(analyzer, AnalyzerExecutor, cancellationToken); 716private static void OnDriverException(Task faultedTask, AnalyzerExecutor analyzerExecutor, ImmutableArray<DiagnosticAnalyzer> analyzers, CancellationToken cancellationToken) 814ImmutableArray<DiagnosticAnalyzer> analyzers, 834ImmutableArray<DiagnosticAnalyzer> analyzers, 864public async Task<ImmutableArray<Diagnostic>> GetDiagnosticsAsync(Compilation compilation, CancellationToken cancellationToken) 895public ImmutableArray<(DiagnosticDescriptor Descriptor, DiagnosticDescriptorErrorLoggerInfo Info)> GetAllDiagnosticDescriptorsWithInfo(CancellationToken cancellationToken, out double totalAnalyzerExecutionTime) 904var descriptors = AnalyzerManager.GetSupportedDiagnosticDescriptors(analyzer, AnalyzerExecutor, cancellationToken); 1020var newDiagnostics = ApplyProgrammaticSuppressionsCore(reportedDiagnostics.ToReadOnly(), compilation, cancellationToken); 1025public ImmutableArray<Diagnostic> ApplyProgrammaticSuppressions(ImmutableArray<Diagnostic> reportedDiagnostics, Compilation compilation, CancellationToken cancellationToken) 1036private ImmutableArray<Diagnostic> ApplyProgrammaticSuppressionsCore(ImmutableArray<Diagnostic> reportedDiagnostics, Compilation compilation, CancellationToken cancellationToken) 1104var suppressableDiagnostics = getSuppressableDiagnostics(suppressor); 1131ImmutableArray<Diagnostic> getSuppressableDiagnostics(DiagnosticSuppressor suppressor) 1133var supportedSuppressions = AnalyzerManager.GetSupportedSuppressionDescriptors(suppressor, AnalyzerExecutor, cancellationToken); 1136return ImmutableArray<Diagnostic>.Empty; 1179public ImmutableArray<Diagnostic> DequeueLocalDiagnosticsAndApplySuppressions(DiagnosticAnalyzer analyzer, bool syntax, Compilation compilation, CancellationToken cancellationToken) 1181var diagnostics = syntax ? DiagnosticQueue.DequeueLocalSyntaxDiagnostics(analyzer) : DiagnosticQueue.DequeueLocalSemanticDiagnostics(analyzer); 1185public ImmutableArray<Diagnostic> DequeueNonLocalDiagnosticsAndApplySuppressions(DiagnosticAnalyzer analyzer, Compilation compilation, CancellationToken cancellationToken) 1187var diagnostics = DiagnosticQueue.DequeueNonLocalDiagnostics(analyzer); 1191private ImmutableArray<Diagnostic> FilterDiagnosticsSuppressedInSourceOrByAnalyzers(ImmutableArray<Diagnostic> diagnostics, Compilation compilation, CancellationToken cancellationToken) 1197private static ImmutableArray<Diagnostic> FilterDiagnosticsSuppressedInSource( 1198ImmutableArray<Diagnostic> diagnostics, 1229internal ImmutableArray<Diagnostic> ApplyProgrammaticSuppressionsAndFilterDiagnostics(ImmutableArray<Diagnostic> reportedDiagnostics, Compilation compilation, CancellationToken cancellationToken) 1236var diagnostics = ApplyProgrammaticSuppressions(reportedDiagnostics, compilation, cancellationToken); 1271var declaredSymbols = model.GetDeclaredSymbolsForNode(node, cancellationToken); 1389var descriptors = AnalyzerManager.GetSupportedDiagnosticDescriptors(analyzer, AnalyzerExecutor, cancellationToken); 1453private static ImmutableArray<(DiagnosticAnalyzer, ImmutableArray<ImmutableArray<SymbolAnalyzerAction>>)> MakeSymbolActionsByKind(in AnalyzerActions analyzerActions) 1455var builder = ArrayBuilder<(DiagnosticAnalyzer, ImmutableArray<ImmutableArray<SymbolAnalyzerAction>>)>.GetInstance(); 1476var actionsByKind = actionsByKindBuilder.Select(a => a.ToImmutableAndFree()).ToImmutableArray(); 1484private static ImmutableArray<(DiagnosticAnalyzer, ImmutableArray<TAnalyzerAction>)> MakeActionsByAnalyzer<TAnalyzerAction>(in ImmutableArray<TAnalyzerAction> analyzerActions) 1487var builder = ArrayBuilder<(DiagnosticAnalyzer, ImmutableArray<TAnalyzerAction>)>.GetInstance(); 1497private static ImmutableHashSet<DiagnosticAnalyzer> MakeCompilationEndAnalyzers(ImmutableArray<(DiagnosticAnalyzer, ImmutableArray<CompilationAnalyzerAction>)> compilationEndActionsByAnalyzer) 1638ImmutableArray<DiagnosticAnalyzer> processedAnalyzers; 1656private async Task OnEventProcessedCoreAsync(CompilationEvent compilationEvent, ImmutableArray<DiagnosticAnalyzer> processedAnalyzers, AnalysisScope analysisScope, CancellationToken cancellationToken) 1777!TryExecuteSymbolEndActions(perSymbolActions.AnalyzerActions, symbolEvent, analysisScope, isGeneratedCodeSymbol, cancellationToken, out var subsetProcessedAnalyzers)) 1815out ImmutableArray<DiagnosticAnalyzer> subsetProcessedAnalyzers) 1820var symbolEndActions = perSymbolActions.SymbolEndActions; 1823subsetProcessedAnalyzers = ImmutableArray<DiagnosticAnalyzer>.Empty; 1842var symbolEndActionsForAnalyzer = groupedActions.ToImmutableArrayOrEmpty(); 1874subsetProcessedAnalyzers = ImmutableArray<DiagnosticAnalyzer>.Empty; 1939ImmutableArray<(DiagnosticAnalyzer, ImmutableArray<CompilationAnalyzerAction>)> compilationActionsMap, 2024ImmutableArray<DiagnosticAnalyzer> analyzers, 2416internal AnalyzerDriver(ImmutableArray<DiagnosticAnalyzer> analyzers, Func<SyntaxNode, TLanguageKindEnum> getKind, AnalyzerManager analyzerManager, SeverityFilter severityFilter, Func<SyntaxTrivia, bool> isComment) 2439var analyzers = Analyzers.WhereAsArray(UnsuppressedAnalyzers.Contains); 2512var declaringReferences = symbolEvent.DeclaringSyntaxReferences; 2548ImmutableArray<DeclarationInfo> declarationInfos = builder.ToImmutableAndFree(); 2666var executableCodeBlocks = ImmutableArray<SyntaxNode>.Empty; 2686var operationBlocksToAnalyze = GetOperationBlocksToAnalyze(executableCodeBlocks, semanticModel, cancellationToken); 2687var operationsToAnalyze = getOperationsToAnalyzeWithStackGuard(operationBlocksToAnalyze); 2716ImmutableArray<IOperation> getOperationsToAnalyzeWithStackGuard(ImmutableArray<IOperation> operationBlocksToAnalyze) 2728return ImmutableArray<IOperation>.Empty; 2732void executeOperationsActions(ImmutableArray<IOperation> operationsToAnalyze) 2741void executeOperationsActionsByKind(ImmutableArray<IOperation> operationsToAnalyze, GroupedAnalyzerActions groupedActions, bool arePerSymbolActions) 2756var filteredOperationsToAnalyze = declarationAnalysisData.IsPartialAnalysis && !groupedActionsForAnalyzer.HasOperationBlockStartActions 2767void executeOperationsBlockActions(ImmutableArray<IOperation> operationBlocksToAnalyze, ImmutableArray<IOperation> operationsToAnalyze, IEnumerable<ExecutableCodeBlockAnalyzerActions> codeBlockActions) 2795void executeCodeBlockActions(ImmutableArray<SyntaxNode> executableCodeBlocks, IEnumerable<ExecutableCodeBlockAnalyzerActions> codeBlockActions) 2842ImmutableArray<DeclarationInfo> declarationsInNode, 2915private static ImmutableArray<IOperation> GetOperationBlocksToAnalyze( 2916ImmutableArray<SyntaxNode> executableBlocks, 2933private static ImmutableArray<IOperation> GetOperationsToAnalyze( 2934ImmutableArray<IOperation> operationBlocks)
DiagnosticAnalyzer\AnalyzerDriver.DeclarationAnalysisData.cs (2)
27public readonly ImmutableArray<DeclarationInfo> DeclarationsInNode; 42ImmutableArray<DeclarationInfo> declarationsInNodeBuilder,
DiagnosticAnalyzer\AnalyzerDriver.EventProcessedState.cs (3)
25public ImmutableArray<DiagnosticAnalyzer> SubsetProcessedAnalyzers { get; } 33private EventProcessedState(ImmutableArray<DiagnosticAnalyzer> subsetProcessedAnalyzers) 39public static EventProcessedState CreatePartiallyProcessed(ImmutableArray<DiagnosticAnalyzer> subsetProcessedAnalyzers)
DiagnosticAnalyzer\AnalyzerDriver.ExecutableCodeBlockAnalyzerActions.cs (6)
16public ImmutableArray<CodeBlockStartAnalyzerAction<TLanguageKindEnum>> CodeBlockStartActions; 17public ImmutableArray<CodeBlockAnalyzerAction> CodeBlockActions; 18public ImmutableArray<CodeBlockAnalyzerAction> CodeBlockEndActions; 19public ImmutableArray<OperationBlockStartAnalyzerAction> OperationBlockStartActions; 20public ImmutableArray<OperationBlockAnalyzerAction> OperationBlockActions; 21public ImmutableArray<OperationBlockAnalyzerAction> OperationBlockEndActions;
DiagnosticAnalyzer\AnalyzerDriver.GroupedAnalyzerActions.cs (8)
20public static readonly GroupedAnalyzerActions Empty = new GroupedAnalyzerActions(ImmutableArray<(DiagnosticAnalyzer, GroupedAnalyzerActionsForAnalyzer)>.Empty, AnalyzerActions.Empty); 22private GroupedAnalyzerActions(ImmutableArray<(DiagnosticAnalyzer, GroupedAnalyzerActionsForAnalyzer)> groupedActionsAndAnalyzers, in AnalyzerActions analyzerActions) 28public ImmutableArray<(DiagnosticAnalyzer analyzer, GroupedAnalyzerActionsForAnalyzer groupedActions)> GroupedActionsByAnalyzer { get; } 50var groupedActionsAndAnalyzers = ImmutableArray<(DiagnosticAnalyzer, GroupedAnalyzerActionsForAnalyzer)>.Empty.Add((analyzer, groupedActions)); 54public static GroupedAnalyzerActions Create(ImmutableArray<DiagnosticAnalyzer> analyzers, in AnalyzerActions analyzerActions) 58var groups = analyzers.SelectAsArray( 75var newGroupedActions = GroupedActionsByAnalyzer.AddRange(groupedAnalyzerActions.GroupedActionsByAnalyzer);
DiagnosticAnalyzer\AnalyzerDriver.GroupedAnalyzerActionsForAnalyzer.cs (28)
19private ImmutableSegmentedDictionary<TLanguageKindEnum, ImmutableArray<SyntaxNodeAnalyzerAction<TLanguageKindEnum>>> _lazyNodeActionsByKind; 20private ImmutableSegmentedDictionary<OperationKind, ImmutableArray<OperationAnalyzerAction>> _lazyOperationActionsByKind; 21private ImmutableArray<CodeBlockStartAnalyzerAction<TLanguageKindEnum>> _lazyCodeBlockStartActions; 22private ImmutableArray<CodeBlockAnalyzerAction> _lazyCodeBlockEndActions; 23private ImmutableArray<CodeBlockAnalyzerAction> _lazyCodeBlockActions; 24private ImmutableArray<OperationBlockStartAnalyzerAction> _lazyOperationBlockStartActions; 25private ImmutableArray<OperationBlockAnalyzerAction> _lazyOperationBlockActions; 26private ImmutableArray<OperationBlockAnalyzerAction> _lazyOperationBlockEndActions; 40private static void VerifyActions<TAnalyzerAction>(in ImmutableArray<TAnalyzerAction> actions, DiagnosticAnalyzer analyzer) 49private ImmutableArray<TAnalyzerAction> GetFilteredActions<TAnalyzerAction>(in ImmutableArray<TAnalyzerAction> actions) 53private static ImmutableArray<TAnalyzerAction> GetFilteredActions<TAnalyzerAction>( 54in ImmutableArray<TAnalyzerAction> actions, 67public ImmutableSegmentedDictionary<TLanguageKindEnum, ImmutableArray<SyntaxNodeAnalyzerAction<TLanguageKindEnum>>> NodeActionsByAnalyzerAndKind 79ImmutableSegmentedDictionary<TLanguageKindEnum, ImmutableArray<SyntaxNodeAnalyzerAction<TLanguageKindEnum>>>.Empty; 87public ImmutableSegmentedDictionary<OperationKind, ImmutableArray<OperationAnalyzerAction>> OperationActionsByAnalyzerAndKind 93var operationActions = GetFilteredActions(AnalyzerActions.OperationActions); 97ImmutableSegmentedDictionary<OperationKind, ImmutableArray<OperationAnalyzerAction>>.Empty; 105private ImmutableArray<CodeBlockStartAnalyzerAction<TLanguageKindEnum>> CodeBlockStartActions 111var codeBlockActions = GetFilteredActions(AnalyzerActions.GetCodeBlockStartActions<TLanguageKindEnum>()); 120private ImmutableArray<CodeBlockAnalyzerAction> CodeBlockEndActions 123private ImmutableArray<CodeBlockAnalyzerAction> CodeBlockActions 126private ImmutableArray<OperationBlockStartAnalyzerAction> OperationBlockStartActions 129private ImmutableArray<OperationBlockAnalyzerAction> OperationBlockEndActions 132private ImmutableArray<OperationBlockAnalyzerAction> OperationBlockActions 138private static ImmutableArray<ActionType> GetExecutableCodeActions<ActionType>( 139ref ImmutableArray<ActionType> lazyCodeBlockActions, 140ImmutableArray<ActionType> codeBlockActions,
DiagnosticAnalyzer\AnalyzerExecutor.cs (34)
197/// Use <see cref="ExecuteCompilationStartActions(ImmutableArray{CompilationStartAnalyzerAction}, HostCompilationStartAnalysisScope, CancellationToken)"/> API 219public void ExecuteCompilationStartActions(ImmutableArray<CompilationStartAnalyzerAction> actions, HostCompilationStartAnalysisScope compilationScope, CancellationToken cancellationToken) 247ImmutableArray<SymbolStartAnalyzerAction> actions, 283public void ExecuteSuppressionAction(DiagnosticSuppressor suppressor, ImmutableArray<Diagnostic> reportedDiagnostics, CancellationToken cancellationToken) 294var supportedSuppressions = _analyzerManager.GetSupportedSuppressionDescriptors(suppressor, this, cancellationToken); 316ImmutableArray<CompilationAnalyzerAction> compilationActions, 354ImmutableArray<SymbolAnalyzerAction> symbolActions, 380var kinds = symbolAction.Kinds; 425ImmutableArray<SymbolEndAnalyzerAction> endActions = containerEndActionsAndEvent.symbolEndActions; 446ImmutableArray<SymbolEndAnalyzerAction> symbolEndActions, 463ImmutableArray<SymbolEndAnalyzerAction> symbolEndActions, 512ImmutableArray<SemanticModelAnalyzerAction> semanticModelActions, 558ImmutableArray<SyntaxTreeAnalyzerAction> syntaxTreeActions, 605ImmutableArray<AdditionalFileAnalyzerAction> additionalFileActions, 695ImmutableArray<SyntaxNode> executableCodeBlocks, 732ImmutableArray<IOperation> operationBlocks, 733ImmutableArray<IOperation> operations, 752ImmutableArray<TNode> executableBlocks, 753Func<ImmutableArray<TNode>, IEnumerable<TNode>> getNodesToAnalyze, 783ImmutableArray<IOperation> operationBlocks = executableBlocks[0] is IOperation ? (ImmutableArray<IOperation>)(object)executableBlocks : ImmutableArray<IOperation>.Empty; 877ImmutableArray<IOperation> operationBlocks, 924internal static ImmutableSegmentedDictionary<TLanguageKindEnum, ImmutableArray<SyntaxNodeAnalyzerAction<TLanguageKindEnum>>> GetNodeActionsByKind<TLanguageKindEnum>( 955ImmutableSegmentedDictionary<TLanguageKindEnum, ImmutableArray<SyntaxNodeAnalyzerAction<TLanguageKindEnum>>> nodeActionsByKind, 982ImmutableSegmentedDictionary<TLanguageKindEnum, ImmutableArray<SyntaxNodeAnalyzerAction<TLanguageKindEnum>>> nodeActionsByKind, 1004if (nodeActionsByKind.TryGetValue(getKind(node), out var actionsForKind)) 1025internal static ImmutableSegmentedDictionary<OperationKind, ImmutableArray<OperationAnalyzerAction>> GetOperationActionsByKind(IEnumerable<OperationAnalyzerAction> operationActions) 1058ImmutableSegmentedDictionary<OperationKind, ImmutableArray<OperationAnalyzerAction>> operationActionsByKind, 1083ImmutableSegmentedDictionary<OperationKind, ImmutableArray<OperationAnalyzerAction>> operationActionsByKind, 1104if (operationActionsByKind.TryGetValue(operation.Kind, out var actionsForKind)) 1369private Action<Diagnostic> GetAddDiagnostic(ISymbol contextSymbol, ImmutableArray<SyntaxReference> cachedDeclaringReferences, DiagnosticAnalyzer analyzer, Func<ISymbol, SyntaxReference, Compilation, CancellationToken, SyntaxNode> getTopMostNodeForAnalysis, CancellationToken cancellationToken) 1377ImmutableArray<SyntaxReference> cachedDeclaringReferences, 1526public void OnOperationBlockActionsExecuted(ImmutableArray<IOperation> operationBlocks)
DiagnosticAnalyzer\AnalyzerFileReference.cs (34)
34private delegate ImmutableArray<string> AttributeLanguagesFunc(PEModule module, CustomAttributeHandle attribute); 109public override ImmutableArray<DiagnosticAnalyzer> GetAnalyzersForAllLanguages() 116public override ImmutableArray<DiagnosticAnalyzer> GetAnalyzers(string language) 121public override ImmutableArray<ISourceGenerator> GetGeneratorsForAllLanguages() 127public override ImmutableArray<ISourceGenerator> GetGenerators() 132public override ImmutableArray<ISourceGenerator> GetGenerators(string language) 185/// Adds the <see cref="ImmutableArray{T}"/> of <see cref="DiagnosticAnalyzer"/> defined in this assembly reference of given <paramref name="language"/>. 187internal void AddAnalyzers(ImmutableArray<DiagnosticAnalyzer>.Builder builder, string language, Func<DiagnosticAnalyzer, bool>? shouldInclude = null) 193/// Adds the <see cref="ImmutableArray{T}"/> of <see cref="ISourceGenerator"/> defined in this assembly reference of given <paramref name="language"/>. 195internal void AddGenerators(ImmutableArray<ISourceGenerator>.Builder builder, string language) 234var supportedLanguages = GetSupportedLanguages(typeDef, module.Module, attributeType, languagesFunc); 257private static ImmutableArray<string> GetSupportedLanguages(TypeDefinition typeDef, PEModule peModule, Type attributeType, AttributeLanguagesFunc languagesFunc) 259ImmutableArray<string> result = []; 283private static ImmutableArray<string> GetDiagnosticsAnalyzerSupportedLanguages(PEModule peModule, CustomAttributeHandle customAttrHandle) 292private static ImmutableArray<string> GetGeneratorSupportedLanguages(PEModule peModule, CustomAttributeHandle customAttrHandle) 311private static ImmutableArray<string> ReadLanguagesFromAttribute(ref BlobReader argsReader) 324ImmutableArray<string> additionalLanguageNames; 374private ImmutableArray<TExtension> _lazyAllExtensions; 375private ImmutableDictionary<string, ImmutableArray<TExtension>> _lazyExtensionsPerLanguage; 386_lazyExtensionsPerLanguage = ImmutableDictionary<string, ImmutableArray<TExtension>>.Empty; 389internal ImmutableArray<TExtension> GetExtensionsForAllLanguages(bool includeDuplicates) 399private static ImmutableArray<TExtension> CreateExtensionsForAllLanguages(Extensions<TExtension> extensions, bool includeDuplicates) 402var map = ImmutableSortedDictionary.CreateBuilder<string, ImmutableArray<TExtension>>(StringComparer.OrdinalIgnoreCase); 406foreach (var analyzers in map.Values) 433internal ImmutableArray<TExtension> GetExtensions(string language) 443private static ImmutableArray<TExtension> CreateLanguageSpecificExtensions(string language, Extensions<TExtension> extensions) 462internal void AddExtensions(ImmutableSortedDictionary<string, ImmutableArray<TExtension>>.Builder builder) 498var analyzers = GetLanguageSpecificAnalyzers(analyzerAssembly, analyzerTypeNameMap, language, ref reportedError); 510internal void AddExtensions(ImmutableArray<TExtension>.Builder builder, string language, Func<TExtension, bool>? shouldInclude = null) 541var analyzers = GetLanguageSpecificAnalyzers(analyzerAssembly, analyzerTypeNameMap, language, ref reportedError); 576private ImmutableArray<TExtension> GetLanguageSpecificAnalyzers(Assembly analyzerAssembly, ImmutableSortedDictionary<string, ImmutableHashSet<string>> analyzerTypeNameMap, string language, ref bool reportedError) 581return ImmutableArray<TExtension>.Empty; 586private ImmutableArray<TExtension> GetAnalyzersForTypeNames(Assembly analyzerAssembly, ImmutableHashSet<string> analyzerTypeNames, ref bool reportedError) 643var analyzers = builder.SelectAsArray(x => x.analyzer);
DiagnosticAnalyzer\AnalyzerImageReference.cs (4)
19private readonly ImmutableArray<DiagnosticAnalyzer> _analyzers; 24public AnalyzerImageReference(ImmutableArray<DiagnosticAnalyzer> analyzers, string? fullPath = null, string? display = null) 37public override ImmutableArray<DiagnosticAnalyzer> GetAnalyzersForAllLanguages() 42public override ImmutableArray<DiagnosticAnalyzer> GetAnalyzers(string language)
DiagnosticAnalyzer\AnalyzerManager.AnalyzerExecutionContext.cs (22)
38private Dictionary<ISymbol, (ImmutableArray<SymbolEndAnalyzerAction>, SymbolDeclaredCompilationEvent)>? _lazyPendingSymbolEndActionsMap; 59private ImmutableArray<DiagnosticDescriptor> _lazyDiagnosticDescriptors; 64private ImmutableArray<SuppressionDescriptor> _lazySuppressionDescriptors; 144ImmutableArray<SymbolStartAnalyzerAction> symbolStartActions, 249public ImmutableArray<DiagnosticDescriptor> GetOrComputeDiagnosticDescriptors(DiagnosticAnalyzer analyzer, AnalyzerExecutor analyzerExecutor, CancellationToken cancellationToken) 252public ImmutableArray<SuppressionDescriptor> GetOrComputeSuppressionDescriptors(DiagnosticSuppressor suppressor, AnalyzerExecutor analyzerExecutor, CancellationToken cancellationToken) 255private static ImmutableArray<TDescriptor> GetOrComputeDescriptors<TDescriptor>( 256ref ImmutableArray<TDescriptor> lazyDescriptors, 257Func<DiagnosticAnalyzer, AnalyzerExecutor, CancellationToken, ImmutableArray<TDescriptor>> computeDescriptorsNoLock, 287private static ImmutableArray<DiagnosticDescriptor> ComputeDiagnosticDescriptors_NoLock( 292var supportedDiagnostics = ImmutableArray<DiagnosticDescriptor>.Empty; 299var supportedDiagnosticsLocal = analyzer.SupportedDiagnostics; 365private static ImmutableArray<SuppressionDescriptor> ComputeSuppressionDescriptors_NoLock( 370var descriptors = ImmutableArray<SuppressionDescriptor>.Empty; 379var descriptorsLocal = suppressor.SupportedSuppressions; 405out (ImmutableArray<SymbolEndAnalyzerAction> symbolEndActions, SymbolDeclaredCompilationEvent symbolDeclaredEvent) containerEndActionsAndEvent) 432public bool TryStartExecuteSymbolEndActions(ImmutableArray<SymbolEndAnalyzerAction> symbolEndActions, SymbolDeclaredCompilationEvent symbolDeclaredEvent) 463public void MarkSymbolEndAnalysisPending(ISymbol symbol, ImmutableArray<SymbolEndAnalyzerAction> symbolEndActions, SymbolDeclaredCompilationEvent symbolDeclaredEvent) 471private void MarkSymbolEndAnalysisPending_NoLock(ISymbol symbol, ImmutableArray<SymbolEndAnalyzerAction> symbolEndActions, SymbolDeclaredCompilationEvent symbolDeclaredEvent) 473_lazyPendingSymbolEndActionsMap ??= new Dictionary<ISymbol, (ImmutableArray<SymbolEndAnalyzerAction>, SymbolDeclaredCompilationEvent)>();
DiagnosticAnalyzer\AnalyzerManager.cs (21)
32public AnalyzerManager(ImmutableArray<DiagnosticAnalyzer> analyzers) 97ImmutableArray<SymbolStartAnalyzerAction> symbolStartActions, 110ImmutableArray<SymbolStartAnalyzerAction> symbolStartActions, 197var filteredSymbolStartActions = getFilteredActionsByKind(analyzerActions.SymbolStartActions); 207ImmutableArray<SymbolStartAnalyzerAction> getFilteredActionsByKind(ImmutableArray<SymbolStartAnalyzerAction> symbolStartActions) 252public ImmutableArray<DiagnosticDescriptor> GetSupportedDiagnosticDescriptors( 264public ImmutableArray<SuppressionDescriptor> GetSupportedSuppressionDescriptors( 283var supportedDescriptors = GetSupportedDiagnosticDescriptors(analyzer, analyzerExecutor, cancellationToken); 307Func<DiagnosticAnalyzer, ImmutableArray<DiagnosticDescriptor>> getSupportedDiagnosticDescriptors = 309Func<DiagnosticSuppressor, ImmutableArray<SuppressionDescriptor>> getSupportedSuppressionDescriptors = 346Func<DiagnosticAnalyzer, ImmutableArray<DiagnosticDescriptor>> getSupportedDiagnosticDescriptors, 347Func<DiagnosticSuppressor, ImmutableArray<SuppressionDescriptor>> getSupportedSuppressionDescriptors, 356var supportedDiagnostics = getSupportedDiagnosticDescriptors(analyzer); 432internal static bool HasCompilerOrNotConfigurableTagOrCustomConfigurableTag(ImmutableArray<string> customTags) 445internal static bool HasNotConfigurableTag(ImmutableArray<string> customTags) 448internal static bool HasCustomSeverityConfigurableTag(ImmutableArray<string> customTags) 451private static bool HasCustomTag(ImmutableArray<string> customTags, string tagToFind) 468out (ImmutableArray<SymbolEndAnalyzerAction> symbolEndActions, SymbolDeclaredCompilationEvent symbolDeclaredEvent) containerEndActionsAndEvent) 473public bool TryStartExecuteSymbolEndActions(ImmutableArray<SymbolEndAnalyzerAction> symbolEndActions, DiagnosticAnalyzer analyzer, SymbolDeclaredCompilationEvent symbolDeclaredEvent) 481ImmutableArray<SymbolEndAnalyzerAction> symbolEndActions,
DiagnosticAnalyzer\AnalyzerOptions.cs (5)
17internal static readonly AnalyzerOptions Empty = new AnalyzerOptions(ImmutableArray<AdditionalText>.Empty); 22public ImmutableArray<AdditionalText> AdditionalFiles { get; } 34public AnalyzerOptions(ImmutableArray<AdditionalText> additionalFiles, AnalyzerConfigOptionsProvider optionsProvider) 49public AnalyzerOptions(ImmutableArray<AdditionalText> additionalFiles) 56public AnalyzerOptions WithAdditionalFiles(ImmutableArray<AdditionalText> additionalFiles)
DiagnosticAnalyzer\AnalyzerReference.cs (8)
56public abstract ImmutableArray<DiagnosticAnalyzer> GetAnalyzersForAllLanguages(); 62public abstract ImmutableArray<DiagnosticAnalyzer> GetAnalyzers(string language); 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 (4)
14public ImmutableArray<AdditionalText> AdditionalFiles { get; } 16private CompilationStartedEvent(Compilation compilation, ImmutableArray<AdditionalText> additionalFiles) 23: this(compilation, ImmutableArray<AdditionalText>.Empty) 32public CompilationStartedEvent WithAdditionalFiles(ImmutableArray<AdditionalText> additionalFiles)
DiagnosticAnalyzer\CompilationWithAnalyzers.cs (83)
28private readonly ImmutableArray<DiagnosticAnalyzer> _analyzers; 29private readonly ImmutableArray<DiagnosticSuppressor> _suppressors; 54public ImmutableArray<DiagnosticAnalyzer> Analyzers => _analyzers; 69/// <inheritdoc cref="CompilationWithAnalyzers(Compilation, ImmutableArray{DiagnosticAnalyzer}, AnalyzerOptions?)"/> 72public CompilationWithAnalyzers(Compilation compilation, ImmutableArray<DiagnosticAnalyzer> analyzers, AnalyzerOptions? options, CancellationToken cancellationToken) 83public CompilationWithAnalyzers(Compilation compilation, ImmutableArray<DiagnosticAnalyzer> analyzers, AnalyzerOptions? options) 94public CompilationWithAnalyzers(Compilation compilation, ImmutableArray<DiagnosticAnalyzer> analyzers, CompilationWithAnalyzersOptions analysisOptions) 107_analysisResultBuilder = new AnalysisResultBuilder(analysisOptions.LogAnalyzerExecutionTime, analyzers, _analysisOptions.Options?.AdditionalFiles ?? ImmutableArray<AdditionalText>.Empty); 113private static void VerifyArguments(Compilation compilation, ImmutableArray<DiagnosticAnalyzer> analyzers, CompilationWithAnalyzersOptions analysisOptions) 128private static void VerifyAnalyzersArgumentForStaticApis(ImmutableArray<DiagnosticAnalyzer> analyzers, bool allowDefaultOrEmpty = false) 170private void VerifyExistingAnalyzersArgument(ImmutableArray<DiagnosticAnalyzer> analyzers) 227private ImmutableArray<AdditionalText> AdditionalFiles => _analysisOptions.Options?.AdditionalFiles ?? ImmutableArray<AdditionalText>.Empty; 233public Task<ImmutableArray<Diagnostic>> GetAnalyzerDiagnosticsAsync() 242public async Task<ImmutableArray<Diagnostic>> GetAnalyzerDiagnosticsAsync(CancellationToken cancellationToken = default) 253public async Task<ImmutableArray<Diagnostic>> GetAnalyzerDiagnosticsAsync(ImmutableArray<DiagnosticAnalyzer> analyzers, CancellationToken cancellationToken) 273public async Task<AnalysisResult> GetAnalysisResultAsync(ImmutableArray<DiagnosticAnalyzer> analyzers, CancellationToken cancellationToken) 284public Task<ImmutableArray<Diagnostic>> GetAllDiagnosticsAsync() 292public async Task<ImmutableArray<Diagnostic>> GetAllDiagnosticsAsync(CancellationToken cancellationToken = default) 294var diagnostics = await getAllDiagnosticsWithoutStateTrackingAsync(Analyzers, cancellationToken: cancellationToken).ConfigureAwait(false); 302async Task<ImmutableArray<Diagnostic>> getAllDiagnosticsWithoutStateTrackingAsync(ImmutableArray<DiagnosticAnalyzer> analyzers, CancellationToken cancellationToken) 313var compDiags = compilation.GetDiagnostics(cancellationToken); 314var analyzerDiags = await driver.GetDiagnosticsAsync(compilation, cancellationToken).ConfigureAwait(false); 315var reportedDiagnostics = compDiags.AddRange(analyzerDiags); 324public async Task<ImmutableArray<Diagnostic>> GetAnalyzerCompilationDiagnosticsAsync(CancellationToken cancellationToken) 335public async Task<ImmutableArray<Diagnostic>> GetAnalyzerCompilationDiagnosticsAsync(ImmutableArray<DiagnosticAnalyzer> analyzers, CancellationToken cancellationToken) 342private async Task<ImmutableArray<Diagnostic>> GetAnalyzerCompilationDiagnosticsCoreAsync(ImmutableArray<DiagnosticAnalyzer> analyzers, CancellationToken cancellationToken) 349private async Task<AnalysisResult> GetAnalysisResultCoreAsync(ImmutableArray<DiagnosticAnalyzer> analyzers, CancellationToken cancellationToken) 356private async Task<ImmutableArray<Diagnostic>> GetAnalyzerDiagnosticsCoreAsync(ImmutableArray<DiagnosticAnalyzer> analyzers, CancellationToken cancellationToken) 367ImmutableArray<DiagnosticSuppressor> suppressors, 371var analyzers = analysisScope.Analyzers; 395public async Task<ImmutableArray<Diagnostic>> GetAnalyzerSyntaxDiagnosticsAsync(SyntaxTree tree, CancellationToken cancellationToken) 411public async Task<ImmutableArray<Diagnostic>> GetAnalyzerSyntaxDiagnosticsAsync(SyntaxTree tree, TextSpan? filterSpan, CancellationToken cancellationToken) 427public async Task<ImmutableArray<Diagnostic>> GetAnalyzerSyntaxDiagnosticsAsync(SyntaxTree tree, ImmutableArray<DiagnosticAnalyzer> analyzers, CancellationToken cancellationToken) 445public async Task<ImmutableArray<Diagnostic>> GetAnalyzerSyntaxDiagnosticsAsync(SyntaxTree tree, TextSpan? filterSpan, ImmutableArray<DiagnosticAnalyzer> analyzers, CancellationToken cancellationToken) 488public Task<AnalysisResult> GetAnalysisResultAsync(SyntaxTree tree, ImmutableArray<DiagnosticAnalyzer> analyzers, CancellationToken cancellationToken) 505public Task<AnalysisResult> GetAnalysisResultAsync(SyntaxTree tree, TextSpan? filterSpan, ImmutableArray<DiagnosticAnalyzer> analyzers, CancellationToken cancellationToken) 535public async Task<AnalysisResult> GetAnalysisResultAsync(AdditionalText file, ImmutableArray<DiagnosticAnalyzer> analyzers, CancellationToken cancellationToken) 569public async Task<AnalysisResult> GetAnalysisResultAsync(AdditionalText file, TextSpan? filterSpan, ImmutableArray<DiagnosticAnalyzer> analyzers, CancellationToken cancellationToken) 577private async Task<AnalysisResult> GetAnalysisResultCoreAsync(SourceOrAdditionalFile file, ImmutableArray<DiagnosticAnalyzer> analyzers, TextSpan? filterSpan, CancellationToken cancellationToken) 584private async Task<ImmutableArray<Diagnostic>> GetAnalyzerSyntaxDiagnosticsCoreAsync(SyntaxTree tree, ImmutableArray<DiagnosticAnalyzer> analyzers, TextSpan? filterSpan, CancellationToken cancellationToken) 598public async Task<ImmutableArray<Diagnostic>> GetAnalyzerSemanticDiagnosticsAsync(SemanticModel model, TextSpan? filterSpan, CancellationToken cancellationToken) 613public async Task<ImmutableArray<Diagnostic>> GetAnalyzerSemanticDiagnosticsAsync(SemanticModel model, TextSpan? filterSpan, ImmutableArray<DiagnosticAnalyzer> analyzers, CancellationToken cancellationToken) 643public Task<AnalysisResult> GetAnalysisResultAsync(SemanticModel model, TextSpan? filterSpan, ImmutableArray<DiagnosticAnalyzer> analyzers, CancellationToken cancellationToken) 651private async Task<AnalysisResult> GetAnalysisResultCoreAsync(SemanticModel model, TextSpan? filterSpan, ImmutableArray<DiagnosticAnalyzer> analyzers, CancellationToken cancellationToken) 658private async Task<ImmutableArray<Diagnostic>> GetAnalyzerSemanticDiagnosticsCoreAsync(SemanticModel model, TextSpan? filterSpan, ImmutableArray<DiagnosticAnalyzer> analyzers, CancellationToken cancellationToken) 767var compilationEvents = GetCompilationEventsForSingleFileAnalysis(compilation, analysisScope, AdditionalFiles, hasAnyActionsRequiringCompilationEvents, cancellationToken); 769var builder = ArrayBuilder<(AnalysisScope, ImmutableArray<CompilationEvent>)>.GetInstance(); 815ArrayBuilder<(AnalysisScope, ImmutableArray<CompilationEvent>)> builder, 853static (ImmutableArray<DiagnosticAnalyzer> symbolStartAnalyzers, ImmutableArray<DiagnosticAnalyzer> otherAnalyzers) getSymbolStartAnalyzers( 854ImmutableArray<DiagnosticAnalyzer> analyzers, 878ImmutableArray<CompilationEvent> compilationEventsForTree, 879ImmutableArray<DiagnosticAnalyzer> symbolStartAnalyzers, 882ArrayBuilder<(AnalysisScope, ImmutableArray<CompilationEvent>)> builder, 883ImmutableArray<AdditionalText> additionalFiles, 935bool tryProcessTree(SyntaxTree partialTree, [NotNullWhen(true)] out (AnalysisScope scope, ImmutableArray<CompilationEvent> events)? scopeAndEvents) 947var compilationEvents = GetCompilationEventsForSingleFileAnalysis(compilation, analysisScope, additionalFiles, hasAnyActionsRequiringCompilationEvents: true, cancellationToken); 975var pendingAnalyzers = _analysisResultBuilder.GetPendingAnalyzers(analysisScope.Analyzers, filterScope); 987private static ImmutableArray<CompilationEvent> GetCompilationEventsForSingleFileAnalysis( 990ImmutableArray<AdditionalText> additionalFiles, 998return ImmutableArray<CompilationEvent>.Empty; 1039static ImmutableArray<CompilationEvent> dequeueAndFilterCompilationEvents( 1042ImmutableArray<AdditionalText> additionalFiles, 1051return ImmutableArray<CompilationEvent>.Empty; 1134private static AsyncQueue<CompilationEvent> CreateEventsQueue(ImmutableArray<CompilationEvent> compilationEvents) 1167public static IEnumerable<Diagnostic> GetEffectiveDiagnostics(ImmutableArray<Diagnostic> diagnostics, Compilation compilation) 1182private static IEnumerable<Diagnostic> GetEffectiveDiagnosticsImpl(ImmutableArray<Diagnostic> diagnostics, Compilation compilation) 1235Func<DiagnosticAnalyzer, ImmutableArray<DiagnosticDescriptor>> getSupportedDiagnosticDescriptors = analyzer => 1243return ImmutableArray<DiagnosticDescriptor>.Empty; 1247Func<DiagnosticSuppressor, ImmutableArray<SuppressionDescriptor>> getSupportedSuppressionDescriptors = suppressor => 1255return ImmutableArray<SuppressionDescriptor>.Empty; 1269public static void ClearAnalyzerState(ImmutableArray<DiagnosticAnalyzer> analyzers)
DiagnosticAnalyzer\CompilerDiagnosticAnalyzer.CompilationAnalyzer.cs (5)
35var diagnostics = semanticModel.GetSyntaxDiagnostics(context.FilterSpan, context.CancellationToken); 41var declDiagnostics = context.SemanticModel.GetDeclarationDiagnostics(context.FilterSpan, context.CancellationToken); 42var bodyDiagnostics = context.SemanticModel.GetMethodBodyDiagnostics(context.FilterSpan, context.CancellationToken); 50var diagnostics = context.Compilation.GetDeclarationDiagnostics(cancellationToken: context.CancellationToken); 60ImmutableArray<Diagnostic> diagnostics,
DiagnosticAnalyzer\CompilerDiagnosticAnalyzer.cs (4)
16private ImmutableArray<DiagnosticDescriptor> _supportedDiagnostics; 21internal abstract ImmutableArray<int> GetSupportedErrorCodes(); 23public sealed override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 29var errorCodes = @this.GetSupportedErrorCodes();
DiagnosticAnalyzer\DefaultAnalyzerAssemblyLoader.cs (3)
24internal DefaultAnalyzerAssemblyLoader(ImmutableArray<IAnalyzerAssemblyResolver> externalResolvers) 31internal DefaultAnalyzerAssemblyLoader(System.Runtime.Loader.AssemblyLoadContext? compilerLoadContext = null, AnalyzerLoadOption loadOption = AnalyzerLoadOption.LoadFromDisk, ImmutableArray<IAnalyzerAssemblyResolver>? externalResolvers = null) 60internal static IAnalyzerAssemblyLoaderInternal CreateNonLockingLoader(string windowsShadowPath, ImmutableArray<IAnalyzerAssemblyResolver>? externalResolvers = null)
DiagnosticAnalyzer\DiagnosticAnalysisContext.cs (20)
87public abstract void RegisterSymbolAction(Action<SymbolAnalysisContext> action, ImmutableArray<SymbolKind> symbolKinds); 153public abstract void RegisterSyntaxNodeAction<TLanguageKindEnum>(Action<SyntaxNodeAnalysisContext> action, ImmutableArray<TLanguageKindEnum> syntaxKinds) where TLanguageKindEnum : struct; 195public virtual void RegisterOperationAction(Action<OperationAnalysisContext> action, ImmutableArray<OperationKind> operationKinds) 382public abstract void RegisterSymbolAction(Action<SymbolAnalysisContext> action, ImmutableArray<SymbolKind> symbolKinds); 469public abstract void RegisterSyntaxNodeAction<TLanguageKindEnum>(Action<SyntaxNodeAnalysisContext> action, ImmutableArray<TLanguageKindEnum> syntaxKinds) where TLanguageKindEnum : struct; 490public virtual void RegisterOperationAction(Action<OperationAnalysisContext> action, ImmutableArray<OperationKind> operationKinds) 966public abstract void RegisterSyntaxNodeAction<TLanguageKindEnum>(Action<SyntaxNodeAnalysisContext> action, ImmutableArray<TLanguageKindEnum> syntaxKinds) where TLanguageKindEnum : struct; 1002public abstract void RegisterOperationAction(Action<OperationAnalysisContext> action, ImmutableArray<OperationKind> operationKinds); 1119public abstract void RegisterSyntaxNodeAction(Action<SyntaxNodeAnalysisContext> action, ImmutableArray<TLanguageKindEnum> syntaxKinds); 1236private readonly ImmutableArray<IOperation> _operationBlocks; 1249public ImmutableArray<IOperation> OperationBlocks => _operationBlocks; 1290ImmutableArray<IOperation> operationBlocks, 1301ImmutableArray<IOperation> operationBlocks, 1348public abstract void RegisterOperationAction(Action<OperationAnalysisContext> action, ImmutableArray<OperationKind> operationKinds); 1376private readonly ImmutableArray<IOperation> _operationBlocks; 1391public ImmutableArray<IOperation> OperationBlocks => _operationBlocks; 1432ImmutableArray<IOperation> operationBlocks, 1445ImmutableArray<IOperation> operationBlocks, 1897public ImmutableArray<Diagnostic> ReportedDiagnostics { get; } 1917ImmutableArray<Diagnostic> reportedDiagnostics,
DiagnosticAnalyzer\DiagnosticAnalysisContextHelpers.cs (6)
24internal static void VerifyArguments<TContext>(Action<TContext> action, ImmutableArray<SymbolKind> symbolKinds) 30internal static void VerifyArguments<TContext, TLanguageKindEnum>(Action<TContext> action, ImmutableArray<TLanguageKindEnum> syntaxKinds) 37internal static void VerifyArguments<TContext>(Action<TContext> action, ImmutableArray<OperationKind> operationKinds) 117private static void VerifySymbolKinds(ImmutableArray<SymbolKind> symbolKinds) 130private static void VerifySyntaxKinds<TLanguageKindEnum>(ImmutableArray<TLanguageKindEnum> syntaxKinds) 144private static void VerifyOperationKinds(ImmutableArray<OperationKind> operationKinds)
DiagnosticAnalyzer\DiagnosticAnalyzer.cs (1)
18public abstract ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; }
DiagnosticAnalyzer\DiagnosticAnalyzerAction.cs (6)
24public ImmutableArray<SymbolKind> Kinds { get; } 26public SymbolAnalyzerAction(Action<SymbolAnalysisContext> action, ImmutableArray<SymbolKind> kinds, DiagnosticAnalyzer analyzer) 61public ImmutableArray<TLanguageKindEnum> Kinds { get; } 63public SyntaxNodeAnalyzerAction(Action<SyntaxNodeAnalysisContext> action, ImmutableArray<TLanguageKindEnum> kinds, DiagnosticAnalyzer analyzer) 96public ImmutableArray<OperationKind> Kinds { get; } 98public OperationAnalyzerAction(Action<OperationAnalysisContext> action, ImmutableArray<OperationKind> kinds, DiagnosticAnalyzer analyzer)
DiagnosticAnalyzer\DiagnosticAnalyzerExtensions.cs (4)
14/// <inheritdoc cref="WithAnalyzers(Compilation, ImmutableArray{DiagnosticAnalyzer}, AnalyzerOptions?)"/> 17public static CompilationWithAnalyzers WithAnalyzers(this Compilation compilation, ImmutableArray<DiagnosticAnalyzer> analyzers, AnalyzerOptions? options, CancellationToken cancellationToken) 29public static CompilationWithAnalyzers WithAnalyzers(this Compilation compilation, ImmutableArray<DiagnosticAnalyzer> analyzers, AnalyzerOptions? options = null) 41public static CompilationWithAnalyzers WithAnalyzers(this Compilation compilation, ImmutableArray<DiagnosticAnalyzer> analyzers, CompilationWithAnalyzersOptions analysisOptions)
DiagnosticAnalyzer\DiagnosticQueue.cs (11)
26public abstract ImmutableArray<Diagnostic> DequeueLocalSyntaxDiagnostics(DiagnosticAnalyzer analyzer); 27public abstract ImmutableArray<Diagnostic> DequeueLocalSemanticDiagnostics(DiagnosticAnalyzer analyzer); 28public abstract ImmutableArray<Diagnostic> DequeueNonLocalDiagnostics(DiagnosticAnalyzer analyzer); 68public override ImmutableArray<Diagnostic> DequeueLocalSemanticDiagnostics(DiagnosticAnalyzer analyzer) 73public override ImmutableArray<Diagnostic> DequeueLocalSyntaxDiagnostics(DiagnosticAnalyzer analyzer) 78public override ImmutableArray<Diagnostic> DequeueNonLocalDiagnostics(DiagnosticAnalyzer analyzer) 185public override ImmutableArray<Diagnostic> DequeueLocalSyntaxDiagnostics(DiagnosticAnalyzer analyzer) 190public override ImmutableArray<Diagnostic> DequeueLocalSemanticDiagnostics(DiagnosticAnalyzer analyzer) 195public override ImmutableArray<Diagnostic> DequeueNonLocalDiagnostics(DiagnosticAnalyzer analyzer) 200private ImmutableArray<Diagnostic> DequeueDiagnosticsCore(DiagnosticAnalyzer analyzer, Dictionary<DiagnosticAnalyzer, SimpleDiagnosticQueue>? lazyDiagnosticsMap) 213return ImmutableArray<Diagnostic>.Empty;
DiagnosticAnalyzer\DiagnosticStartAnalysisScope.cs (98)
60public override void RegisterSymbolAction(Action<SymbolAnalysisContext> action, ImmutableArray<SymbolKind> symbolKinds) 84public override void RegisterSyntaxNodeAction<TLanguageKindEnum>(Action<SyntaxNodeAnalysisContext> action, ImmutableArray<TLanguageKindEnum> syntaxKinds) 90public override void RegisterOperationAction(Action<OperationAnalysisContext> action, ImmutableArray<OperationKind> operationKinds) 165public override void RegisterSymbolAction(Action<SymbolAnalysisContext> action, ImmutableArray<SymbolKind> symbolKinds) 189public override void RegisterSyntaxNodeAction<TLanguageKindEnum>(Action<SyntaxNodeAnalysisContext> action, ImmutableArray<TLanguageKindEnum> syntaxKinds) 207public override void RegisterOperationAction(Action<OperationAnalysisContext> action, ImmutableArray<OperationKind> operationKinds) 259public override void RegisterSyntaxNodeAction<TLanguageKindEnum>(Action<SyntaxNodeAnalysisContext> action, ImmutableArray<TLanguageKindEnum> syntaxKinds) 277public override void RegisterOperationAction(Action<OperationAnalysisContext> action, ImmutableArray<OperationKind> operationKinds) 311public override void RegisterSyntaxNodeAction(Action<SyntaxNodeAnalysisContext> action, ImmutableArray<TLanguageKindEnum> syntaxKinds) 327ImmutableArray<IOperation> operationBlocks, 347public override void RegisterOperationAction(Action<OperationAnalysisContext> action, ImmutableArray<OperationKind> operationKinds) 436private ImmutableArray<CodeBlockAnalyzerAction> _codeBlockEndActions = ImmutableArray<CodeBlockAnalyzerAction>.Empty; 437private ImmutableArray<SyntaxNodeAnalyzerAction<TLanguageKindEnum>> _syntaxNodeActions = ImmutableArray<SyntaxNodeAnalyzerAction<TLanguageKindEnum>>.Empty; 441public ImmutableArray<CodeBlockAnalyzerAction> CodeBlockEndActions 446public ImmutableArray<SyntaxNodeAnalyzerAction<TLanguageKindEnum>> SyntaxNodeActions 456public void RegisterSyntaxNodeAction(Action<SyntaxNodeAnalysisContext> action, ImmutableArray<TLanguageKindEnum> syntaxKinds) 464private ImmutableArray<OperationBlockAnalyzerAction> _operationBlockEndActions = ImmutableArray<OperationBlockAnalyzerAction>.Empty; 465private ImmutableArray<OperationAnalyzerAction> _operationActions = ImmutableArray<OperationAnalyzerAction>.Empty; 469public ImmutableArray<OperationBlockAnalyzerAction> OperationBlockEndActions => _operationBlockEndActions; 471public ImmutableArray<OperationAnalyzerAction> OperationActions => _operationActions; 478public void RegisterOperationAction(Action<OperationAnalysisContext> action, ImmutableArray<OperationKind> operationKinds) 525public void RegisterSymbolAction(Action<SymbolAnalysisContext> action, ImmutableArray<SymbolKind> symbolKinds) 540ImmutableArray<IParameterSymbol> parameters; 610public void RegisterSyntaxNodeAction<TLanguageKindEnum>(Action<SyntaxNodeAnalysisContext> action, ImmutableArray<TLanguageKindEnum> syntaxKinds) where TLanguageKindEnum : struct 634public void RegisterOperationAction(Action<OperationAnalysisContext> action, ImmutableArray<OperationKind> operationKinds) 657private ImmutableArray<CompilationStartAnalyzerAction> _compilationStartActions; 658private ImmutableArray<CompilationAnalyzerAction> _compilationEndActions; 659private ImmutableArray<CompilationAnalyzerAction> _compilationActions; 660private ImmutableArray<SyntaxTreeAnalyzerAction> _syntaxTreeActions; 661private ImmutableArray<AdditionalFileAnalyzerAction> _additionalFileActions; 662private ImmutableArray<SemanticModelAnalyzerAction> _semanticModelActions; 663private ImmutableArray<SymbolAnalyzerAction> _symbolActions; 664private ImmutableArray<SymbolStartAnalyzerAction> _symbolStartActions; 665private ImmutableArray<SymbolEndAnalyzerAction> _symbolEndActions; 666private ImmutableArray<AnalyzerAction> _codeBlockStartActions; 667private ImmutableArray<CodeBlockAnalyzerAction> _codeBlockEndActions; 668private ImmutableArray<CodeBlockAnalyzerAction> _codeBlockActions; 669private ImmutableArray<OperationBlockStartAnalyzerAction> _operationBlockStartActions; 670private ImmutableArray<OperationBlockAnalyzerAction> _operationBlockEndActions; 671private ImmutableArray<OperationBlockAnalyzerAction> _operationBlockActions; 672private ImmutableArray<AnalyzerAction> _syntaxNodeActions; 673private ImmutableArray<OperationAnalyzerAction> _operationActions; 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; 701ImmutableArray<CompilationStartAnalyzerAction> compilationStartActions, 702ImmutableArray<CompilationAnalyzerAction> compilationEndActions, 703ImmutableArray<CompilationAnalyzerAction> compilationActions, 704ImmutableArray<SyntaxTreeAnalyzerAction> syntaxTreeActions, 705ImmutableArray<AdditionalFileAnalyzerAction> additionalFileActions, 706ImmutableArray<SemanticModelAnalyzerAction> semanticModelActions, 707ImmutableArray<SymbolAnalyzerAction> symbolActions, 708ImmutableArray<SymbolStartAnalyzerAction> symbolStartActions, 709ImmutableArray<SymbolEndAnalyzerAction> symbolEndActions, 710ImmutableArray<AnalyzerAction> codeBlockStartActions, 711ImmutableArray<CodeBlockAnalyzerAction> codeBlockEndActions, 712ImmutableArray<CodeBlockAnalyzerAction> codeBlockActions, 713ImmutableArray<OperationBlockStartAnalyzerAction> operationBlockStartActions, 714ImmutableArray<OperationBlockAnalyzerAction> operationBlockEndActions, 715ImmutableArray<OperationBlockAnalyzerAction> operationBlockActions, 716ImmutableArray<AnalyzerAction> syntaxNodeActions, 717ImmutableArray<OperationAnalyzerAction> operationActions, 763internal readonly ImmutableArray<CompilationStartAnalyzerAction> CompilationStartActions 768internal readonly ImmutableArray<CompilationAnalyzerAction> CompilationEndActions 773internal readonly ImmutableArray<CompilationAnalyzerAction> CompilationActions 778internal readonly ImmutableArray<SyntaxTreeAnalyzerAction> SyntaxTreeActions 783internal readonly ImmutableArray<AdditionalFileAnalyzerAction> AdditionalFileActions 788internal readonly ImmutableArray<SemanticModelAnalyzerAction> SemanticModelActions 793internal readonly ImmutableArray<SymbolAnalyzerAction> SymbolActions 798internal readonly ImmutableArray<SymbolStartAnalyzerAction> SymbolStartActions 803internal readonly ImmutableArray<SymbolEndAnalyzerAction> SymbolEndActions 808internal readonly ImmutableArray<CodeBlockAnalyzerAction> CodeBlockEndActions 813internal readonly ImmutableArray<CodeBlockAnalyzerAction> CodeBlockActions 818internal readonly ImmutableArray<CodeBlockStartAnalyzerAction<TLanguageKindEnum>> GetCodeBlockStartActions<TLanguageKindEnum>() where TLanguageKindEnum : struct 823internal readonly ImmutableArray<SyntaxNodeAnalyzerAction<TLanguageKindEnum>> GetSyntaxNodeActions<TLanguageKindEnum>() where TLanguageKindEnum : struct 828internal readonly ImmutableArray<SyntaxNodeAnalyzerAction<TLanguageKindEnum>> GetSyntaxNodeActions<TLanguageKindEnum>(DiagnosticAnalyzer analyzer) where TLanguageKindEnum : struct 843internal readonly ImmutableArray<OperationBlockAnalyzerAction> OperationBlockActions 848internal readonly ImmutableArray<OperationBlockAnalyzerAction> OperationBlockEndActions 853internal readonly ImmutableArray<OperationBlockStartAnalyzerAction> OperationBlockStartActions 858internal readonly ImmutableArray<OperationAnalyzerAction> OperationActions
DiagnosticAnalyzer\DiagnosticSuppressor.cs (3)
15public sealed override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray<DiagnosticDescriptor>.Empty; 27public abstract ImmutableArray<SuppressionDescriptor> SupportedSuppressions { get; }
DiagnosticAnalyzer\ShadowCopyAnalyzerAssemblyLoader.cs (2)
47public ShadowCopyAnalyzerAssemblyLoader(string baseDirectory, ImmutableArray<IAnalyzerAssemblyResolver>? externalResolvers = null) 52public ShadowCopyAnalyzerAssemblyLoader(AssemblyLoadContext? compilerLoadContext, string baseDirectory, ImmutableArray<IAnalyzerAssemblyResolver>? externalResolvers = null)
DiagnosticAnalyzer\SuppressMessageAttributeState.cs (3)
170var declaredSymbols = model.GetDeclaredSymbolsForNode(node); 357internal static ImmutableArray<ISymbol> ResolveTargetSymbols(Compilation compilation, string target, TargetScope scope) 370return ImmutableArray<ISymbol>.Empty;
DiagnosticAnalyzer\SuppressMessageAttributeState.TargetSymbolResolver.cs (12)
65public ImmutableArray<ISymbol> Resolve(out bool resolvedWithDocCommentIdFormat) 70return ImmutableArray<ISymbol>.Empty; 75var docIdResults = DocumentationCommentId.GetSymbolsForDeclarationId(nameWithoutPrefix, _compilation); 110var candidateMembers = containingSymbol.GetMembers(segment); 583var candidateMembers = containingSymbol.GetMembers(segment); 724private ISymbol GetFirstMatchingIndexer(ImmutableArray<ISymbol> candidateMembers, ParameterInfo[] parameters) 738private ImmutableArray<IMethodSymbol> GetMatchingMethods(ImmutableArray<ISymbol> candidateMembers, int? arity, ParameterInfo[] parameters, TypeInfo? returnType) 775private bool AllParametersMatch(ImmutableArray<IParameterSymbol> symbolParameters, ParameterInfo[] expectedParameters) 821private static INamedTypeSymbol GetFirstMatchingNamedType(ImmutableArray<ISymbol> candidateMembers, int arity) 828private static INamespaceOrTypeSymbol GetFirstMatchingNamespaceOrType(ImmutableArray<ISymbol> candidateMembers) 845var typeParameters = typeSymbol.TypeParameters;
DiagnosticAnalyzer\SymbolDeclaredCompilationEvent.cs (3)
18private ImmutableArray<SyntaxReference> _lazyCachedDeclaringReferences; 28_lazyCachedDeclaringReferences = default(ImmutableArray<SyntaxReference>); 38public ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
DiagnosticAnalyzer\UnresolvedAnalyzerReference.cs (4)
54public override ImmutableArray<DiagnosticAnalyzer> GetAnalyzersForAllLanguages() 56return ImmutableArray<DiagnosticAnalyzer>.Empty; 59public override ImmutableArray<DiagnosticAnalyzer> GetAnalyzers(string language) 61return ImmutableArray<DiagnosticAnalyzer>.Empty;
DocumentationCommentId.cs (12)
98public static ImmutableArray<ISymbol> GetSymbolsForDeclarationId(string id, Compilation compilation) 176public static ImmutableArray<ISymbol> GetSymbolsForReferenceId(string id, Compilation compilation) 480private void AppendParameters(ImmutableArray<IParameterSymbol> parameters) 1165var members = container.GetMembers(memberName); 1190var members = container.GetMembers(memberName); 1211var members = container.GetMembers(memberName); 1232var members = containers[i].GetMembers(memberName); 1300var members = containers[i].GetMembers(memberName); 1351var members = containers[i].GetMembers(memberName); 1367var members = containers[i].GetMembers(memberName); 1379private static bool AllParametersMatch(ImmutableArray<IParameterSymbol> symbolParameters, List<ParameterInfo> expectedParameters) 1419var typeParameters = typeSymbol.TypeParameters;
EmbeddedText.cs (7)
50public ImmutableArray<byte> Checksum { get; } 52private EmbeddedText(string filePath, ImmutableArray<byte> checksum, SourceHashAlgorithm checksumAlgorithm, ImmutableArray<byte> blob) 82internal ImmutableArray<byte> Blob { get; } 211internal static ImmutableArray<byte> CreateBlob(Stream stream) 264internal static ImmutableArray<byte> CreateBlob(ArraySegment<byte> bytes) 293private static ImmutableArray<byte> CreateBlob(SourceText text)
Emit\AnonymousTypeKey.cs (2)
66internal readonly ImmutableArray<AnonymousTypeKeyField> Fields; 68internal AnonymousTypeKey(ImmutableArray<AnonymousTypeKeyField> fields, bool isDelegate = false)
Emit\AsyncMoveNextBodyDebugInfo.cs (4)
26public readonly ImmutableArray<int> YieldOffsets; 31public readonly ImmutableArray<int> ResumeOffsets; 36ImmutableArray<int> yieldOffsets, 37ImmutableArray<int> resumeOffsets)
Emit\CommonPEModuleBuilder.cs (23)
42private ImmutableArray<Cci.AssemblyReferenceAlias> _lazyAssemblyReferenceAliases; 43private ImmutableArray<Cci.ManagedResource> _lazyManagedResources; 129internal abstract ImmutableDictionary<ISymbolInternal, ImmutableArray<ISymbolInternal>> GetAllSynthesizedMembers(); 141public abstract ImmutableArray<Cci.ExportedType> GetExportedTypes(DiagnosticBag diagnostics); 165public abstract ImmutableArray<Cci.UsedNamespaceOrType> GetImports(); 289public abstract IEnumerable<(Cci.ITypeDefinition, ImmutableArray<Cci.DebugSourceDocument>)> GetTypeToDebugDocumentMap(EmitContext context); 448public ImmutableArray<Cci.AssemblyReferenceAlias> GetAssemblyReferenceAliases(EmitContext context) 452ImmutableInterlocked.InterlockedCompareExchange(ref _lazyAssemblyReferenceAliases, CalculateAssemblyReferenceAliases(context), default(ImmutableArray<Cci.AssemblyReferenceAlias>)); 458private ImmutableArray<Cci.AssemblyReferenceAlias> CalculateAssemblyReferenceAliases(EmitContext context) 465var aliases = assemblyAndAliases.Item2; 503public ImmutableArray<Cci.ManagedResource> GetResources(EmitContext context) 509return ImmutableArray<Cci.ManagedResource>.Empty; 715public virtual ImmutableArray<TNamedTypeSymbol> GetAdditionalTopLevelTypes() 716=> ImmutableArray<TNamedTypeSymbol>.Empty; 718public virtual ImmutableArray<TNamedTypeSymbol> GetEmbeddedTypes(DiagnosticBag diagnostics) 719=> ImmutableArray<TNamedTypeSymbol>.Empty; 828public ImmutableArray<ISymbolInternal> GetAllMembers() 983internal override ImmutableDictionary<ISymbolInternal, ImmutableArray<ISymbolInternal>> GetAllSynthesizedMembers() 985var builder = ImmutableDictionary.CreateBuilder<ISymbolInternal, ImmutableArray<ISymbolInternal>>(); 1005if (!builder.TryGetValue(hotReloadException.ContainingNamespace, out var existingTypes)) 1020Cci.IFieldReference ITokenDeferral.GetFieldForData(ImmutableArray<byte> data, ushort alignment, SyntaxNode syntaxNode, DiagnosticBag diagnostics) 1030Cci.IFieldReference ITokenDeferral.GetArrayCachingFieldForData(ImmutableArray<byte> data, Cci.IArrayTypeReference arrayType, SyntaxNode syntaxNode, DiagnosticBag diagnostics) 1040public Cci.IFieldReference GetArrayCachingFieldForConstants(ImmutableArray<ConstantValue> constants, Cci.IArrayTypeReference arrayType, SyntaxNode syntaxNode, DiagnosticBag diagnostics)
Emit\EditAndContinue\AddedOrChangedMethodInfo.cs (13)
17public readonly ImmutableArray<EncLocalInfo> Locals; 20public readonly ImmutableArray<EncLambdaInfo> LambdaDebugInfo; 21public readonly ImmutableArray<EncClosureInfo> ClosureDebugInfo; 25public readonly ImmutableArray<EncHoistedLocalInfo> StateMachineHoistedLocalSlotsOpt; 26public readonly ImmutableArray<Cci.ITypeReference?> StateMachineAwaiterSlotsOpt; 31ImmutableArray<EncLocalInfo> locals, 32ImmutableArray<EncLambdaInfo> lambdaDebugInfo, 33ImmutableArray<EncClosureInfo> closureDebugInfo, 35ImmutableArray<EncHoistedLocalInfo> stateMachineHoistedLocalSlotsOpt, 36ImmutableArray<Cci.ITypeReference?> stateMachineAwaiterSlotsOpt, 61var mappedLocals = ImmutableArray.CreateRange(Locals, MapLocalInfo, map); 63var mappedHoistedLocalSlots = StateMachineHoistedLocalSlotsOpt.IsDefault ? default : 66var mappedAwaiterSlots = StateMachineAwaiterSlotsOpt.IsDefault ? default :
Emit\EditAndContinue\DefinitionMap.cs (30)
24ImmutableArray<(DebugId id, IMethodSymbolInternal symbol)> lambdaSymbols, 25IReadOnlyDictionary<DebugId, (DebugId? parentId, ImmutableArray<string> structCaptures)> closureTree) 30public ImmutableArray<(DebugId id, IMethodSymbolInternal symbol)> LambdaSymbols { get; } = lambdaSymbols; 32public IReadOnlyDictionary<DebugId, (DebugId? parentId, ImmutableArray<string> structCaptures)> ClosureTree { get; } = closureTree; 37public (DebugId? parentId, ImmutableArray<string>) TryGetClosureInfo(DebugId closureId) 188protected static IReadOnlyDictionary<SyntaxNode, int> CreateDeclaratorToSyntaxOrdinalMap(ImmutableArray<SyntaxNode> declarators) 201ImmutableArray<LocalSlotDebugInfo> localSlotDebugInfo, 206protected abstract ImmutableArray<EncLocalInfo> GetLocalSlotMapFromMetadata(StandaloneSignatureHandle handle, EditAndContinueMethodDebugInformation debugInfo); 227ImmutableArray<EncLocalInfo> previousLocals; 270previousLocals = ImmutableArray<EncLocalInfo>.Empty; 335var localSlotDebugInfo = debugInfo.LocalSlots.NullToEmpty(); 341previousLocals = ImmutableArray<EncLocalInfo>.Empty; 376previousLocals = localSignature.IsNil ? ImmutableArray<EncLocalInfo>.Empty : 429private static IReadOnlyDictionary<int, EncLambdaMapValue> MakeLambdaMap(ImmutableArray<EncLambdaInfo> lambdaDebugInfo) 434private static IReadOnlyDictionary<int, EncClosureMapValue> MakeClosureMap(ImmutableArray<EncClosureInfo> closureDebugInfo) 460ImmutableArray<DebugId> getLambdaStructClosureIdsFromMetadata(IMethodSymbolInternal? lambda, DebugId methodId) 464return ImmutableArray<DebugId>.Empty; 486private static IReadOnlyDictionary<(int syntaxOffset, AwaitDebugId debugId), StateMachineState>? MakeStateMachineStateMap(ImmutableArray<StateMachineStateDebugInfo> debugInfos) 494ImmutableArray<EncHoistedLocalInfo> hoistedLocalSlots, 495ImmutableArray<Cci.ITypeReference?> hoistedAwaiters, 546ImmutableArray<ISymbolInternal> members, 547IReadOnlyDictionary<ISymbolInternal, ImmutableArray<ISymbolInternal>>? synthesizedMemberMap, 551var closureTreeBuilder = ImmutableSegmentedDictionary.CreateBuilder<DebugId, (DebugId? parentId, ImmutableArray<string> structCaptures)>(); 559void recurse(ImmutableArray<ISymbolInternal> members, DebugId? containingDisplayClassId) 599? (synthesizedMemberMap.TryGetValue(displayClass, out var m) ? m : []) 648static ImmutableArray<string> getHoistedVariableNames(ImmutableArray<ISymbolInternal> members) 668public IEnumerable<(DebugId id, IMethodSymbolInternal symbol)> GetDeletedSynthesizedMethods(IMethodSymbolInternal oldMethod, ImmutableArray<EncLambdaInfo> currentLambdas) 711ImmutableArray<EncLambdaInfo> lambdasToInclude = default, 712ImmutableArray<LambdaDebugInfo> metadataLambdasToInclude = default)
Emit\EditAndContinue\DeletedMethodBody.cs (23)
14internal sealed class DeletedMethodBody(IDeletedMethodDefinition methodDef, ImmutableArray<byte> il) : Cci.IMethodBody 18public ImmutableArray<byte> IL { get; } = il; 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; 50public ImmutableArray<EncHoistedLocalInfo> StateMachineHoistedLocalSlots => default; 52public ImmutableArray<Cci.ITypeReference> StateMachineAwaiterSlots => default; 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; 67public static ImmutableArray<byte> GetIL(EmitContext context, RuntimeRudeEdit? rudeEdit, bool isLambdaOrLocalFunction)
Emit\EditAndContinue\DeletedPEMethodDefinition.cs (7)
21public DeletedPEMethodDefinition(IMethodSymbolInternal oldMethod, ImmutableArray<byte> bodyIL) 110public ImmutableArray<Cci.IParameterDefinition> Parameters 122public ImmutableArray<byte> ReturnValueMarshallingDescriptor 137public ImmutableArray<Cci.IParameterTypeInformation> ExtraParameters 152public ImmutableArray<Cci.ICustomModifier> ReturnValueCustomModifiers 155public ImmutableArray<Cci.ICustomModifier> RefCustomModifiers 167public ImmutableArray<Cci.IParameterTypeInformation> GetParameters(EmitContext context)
Emit\EditAndContinue\DeletedSourceDefinition.cs (2)
51protected ImmutableArray<DeletedSourceParameterDefinition> WrapParameters(ImmutableArray<IParameterDefinition> parameters)
Emit\EditAndContinue\DeletedSourceMethodDefinition.cs (8)
18private readonly ImmutableArray<DeletedSourceParameterDefinition> _parameters; 21public DeletedSourceMethodDefinition(IMethodDefinition oldMethod, MethodDefinitionHandle handle, ImmutableArray<byte> bodyIL, Dictionary<ITypeDefinition, DeletedSourceTypeDefinition> typesUsedByDeletedMembers) 61public ImmutableArray<IParameterDefinition> Parameters => StaticCast<IParameterDefinition>.From(_parameters); 71public ImmutableArray<byte> ReturnValueMarshallingDescriptor => OldDefinition.ReturnValueMarshallingDescriptor; 85public ImmutableArray<IParameterTypeInformation> ExtraParameters => OldDefinition.ExtraParameters; 95public ImmutableArray<ICustomModifier> ReturnValueCustomModifiers => OldDefinition.ReturnValueCustomModifiers; 97public ImmutableArray<ICustomModifier> RefCustomModifiers => OldDefinition.RefCustomModifiers; 122public ImmutableArray<IParameterTypeInformation> GetParameters(EmitContext context)
Emit\EditAndContinue\DeletedSourceParameterDefinition.cs (3)
33public ImmutableArray<byte> MarshallingDescriptor => OldDefinition.MarshallingDescriptor; 37public ImmutableArray<ICustomModifier> CustomModifiers => OldDefinition.CustomModifiers; 39public ImmutableArray<ICustomModifier> RefCustomModifiers => OldDefinition.RefCustomModifiers;
Emit\EditAndContinue\DeltaMetadataWriter.cs (32)
37private readonly Dictionary<ITypeDefinition, ImmutableArray<IMethodDefinition>> _deletedTypeMembers; 54private readonly Dictionary<EntityHandle, ImmutableArray<int>> _customAttributesAdded; 103_deletedTypeMembers = new Dictionary<ITypeDefinition, ImmutableArray<IMethodDefinition>>(ReferenceEqualityComparer.Instance); 117_customAttributesAdded = new Dictionary<EntityHandle, ImmutableArray<int>>(); 143private ImmutableArray<int> GetDeltaTableSizes(ImmutableArray<int> rowCounts) 179var deltaTableSizes = GetDeltaTableSizes(metadataSizes.RowCounts); 524(changes.DeletedMembers.TryGetValue(typeSymbol, out var deletedMembers) | 525changes.UpdatedMethods.TryGetValue(typeSymbol, out var updatedMethods))) 531ImmutableArray<byte>? lazyDeletedMethodIL = null; 532ImmutableArray<byte>? lazyDeletedLambdaIL = null; 545addDeletedClosureMethods(deletedMethod, currentLambdas: ImmutableArray<EncLambdaInfo>.Empty, ImmutableArray<LambdaRuntimeRudeEditInfo>.Empty); 555(ImmutableArray<EncLambdaInfo>.Empty, ImmutableArray<LambdaRuntimeRudeEditInfo>.Empty); 560void addDeletedClosureMethods(IMethodSymbolInternal oldMethod, ImmutableArray<EncLambdaInfo> currentLambdas, ImmutableArray<LambdaRuntimeRudeEditInfo> orderedLambdaRuntimeRudeEdits) 777var paramDefinitions = this.GetParametersToEmit(methodDef); 855var localVariables = body.LocalVariables; 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; 1069public override void PopulateEncTables(ImmutableArray<int> typeSystemRowCounts) 1083private void PopulateEncLogTableRows(ImmutableArray<int> rowCounts, ArrayBuilder<int> paramEncMapRows) 1089var deltaSizes = this.GetDeltaTableSizes(rowCounts); 1223private void PopulateEncLogTableRows(TableIndex tableIndex, ImmutableArray<int> previousSizes, ImmutableArray<int> deltaSizes) 1238private void PopulateEncMapTableRows(ImmutableArray<int> rowCounts, ArrayBuilder<int> paramEncMapRows) 1246var deltaSizes = GetDeltaTableSizes(rowCounts); 1392ImmutableArray<int> previousSizes, 1393ImmutableArray<int> deltaSizes) 1823private readonly IReadOnlyDictionary<ITypeDefinition, ImmutableArray<IMethodDefinition>> _deletedTypeMembers; 1906if (_deletedTypeMembers.TryGetValue(typeDefinition, out var deletedMembers))
Emit\EditAndContinue\EmitBaseline.cs (19)
65private static readonly ImmutableArray<int> s_emptyTableSizes = ImmutableArray.Create(new int[MetadataTokens.TableCount]); 186customAttributesAdded: new Dictionary<EntityHandle, ImmutableArray<int>>(), 193synthesizedMembers: ImmutableSegmentedDictionary<ISymbolInternal, ImmutableArray<ISymbolInternal>>.Empty, 194deletedMembers: ImmutableSegmentedDictionary<ISymbolInternal, ImmutableArray<ISymbolInternal>>.Empty, 248internal readonly IReadOnlyDictionary<EntityHandle, ImmutableArray<int>> CustomAttributesAdded; 250internal readonly ImmutableArray<int> TableEntriesAdded; 280internal readonly ImmutableArray<int> TableSizes; 285internal readonly IReadOnlyDictionary<ISymbolInternal, ImmutableArray<ISymbolInternal>> SynthesizedMembers; 286internal readonly IReadOnlyDictionary<ISymbolInternal, ImmutableArray<ISymbolInternal>> DeletedMembers; 307IReadOnlyDictionary<EntityHandle, ImmutableArray<int>> customAttributesAdded, 308ImmutableArray<int> tableEntriesAdded, 314IReadOnlyDictionary<ISymbolInternal, ImmutableArray<ISymbolInternal>> synthesizedMembers, 315IReadOnlyDictionary<ISymbolInternal, ImmutableArray<ISymbolInternal>> deletedMembers, 406IReadOnlyDictionary<EntityHandle, ImmutableArray<int>> customAttributesAdded, 407ImmutableArray<int> tableEntriesAdded, 413IReadOnlyDictionary<ISymbolInternal, ImmutableArray<ISymbolInternal>> synthesizedMembers, 414IReadOnlyDictionary<ISymbolInternal, ImmutableArray<ISymbolInternal>> deletedMembers, 489private static ImmutableArray<int> CalculateTableSizes(MetadataReader reader, ImmutableArray<int> delta)
Emit\EditAndContinue\EmitDifferenceResult.cs (5)
17public ImmutableArray<MethodDefinitionHandle> UpdatedMethods { get; } 22public ImmutableArray<TypeDefinitionHandle> ChangedTypes { get; } 24internal EmitDifferenceResult(bool success, ImmutableArray<Diagnostic> diagnostics, EmitBaseline? baseline, ImmutableArray<MethodDefinitionHandle> updatedMethods, ImmutableArray<TypeDefinitionHandle> changedTypes)
Emit\EditAndContinue\EncClosureInfo.cs (2)
10internal readonly struct EncClosureInfo(ClosureDebugInfo debugInfo, DebugId? parentDebugId, ImmutableArray<string> structCaptures) 26public readonly ImmutableArray<string> StructCaptures = structCaptures;
Emit\EditAndContinue\EncClosureMapValue.cs (3)
10internal readonly struct EncClosureMapValue(DebugId id, DebugId? parentId, ImmutableArray<string> structCaptures) 14public ImmutableArray<string> StructCaptures { get; } = structCaptures; 30public bool IsCompatibleWith(DebugId? parentClosureId, ImmutableArray<string> structCaptures)
Emit\EditAndContinue\EncLambdaInfo.cs (2)
10internal readonly struct EncLambdaInfo(LambdaDebugInfo debugInfo, ImmutableArray<DebugId> structClosureIds) 13public readonly ImmutableArray<DebugId> StructClosureIds = structClosureIds;
Emit\EditAndContinue\EncLambdaMapValue.cs (3)
11internal readonly struct EncLambdaMapValue(DebugId id, int closureOrdinal, ImmutableArray<DebugId> structClosureIds) 15public readonly ImmutableArray<DebugId> StructClosureIds = structClosureIds; 35public bool IsCompatibleWith(int closureOrdinal, ImmutableArray<DebugId> structClosureIds)
Emit\EditAndContinue\EncVariableSlotAllocator.cs (6)
29private readonly ImmutableArray<EncLocalInfo> _previousLocals; 51ImmutableArray<EncLocalInfo> previousLocals, 151ImmutableArray<bool> dynamicTransformFlags, 152ImmutableArray<string> tupleElementNames) 305ImmutableArray<string> structCaptures, 331public override bool TryGetPreviousLambda(SyntaxNode lambdaOrLambdaBodySyntax, bool isLambdaBody, int closureOrdinal, ImmutableArray<DebugId> structClosureIds, out DebugId lambdaId, out RuntimeRudeEdit? runtimeRudeEdit)
Emit\EditAndContinue\SymbolChanges.cs (5)
41public readonly IReadOnlyDictionary<ISymbolInternal, ImmutableArray<ISymbolInternal>> DeletedMembers; 46public readonly IReadOnlyDictionary<INamedTypeSymbolInternal, ImmutableArray<(IMethodSymbolInternal oldMethod, IMethodSymbolInternal newMethod)>> UpdatedMethods; 353out IReadOnlyDictionary<ISymbolInternal, ImmutableArray<ISymbolInternal>> deletedMembers, 354out IReadOnlyDictionary<INamedTypeSymbolInternal, ImmutableArray<(IMethodSymbolInternal oldMethod, IMethodSymbolInternal newMethod)>> updatedMethods) 470elementSelector: static e => e.Value.ToImmutableAndFree()) ?? ImmutableSegmentedDictionary<ISymbolInternal, ImmutableArray<ISymbolInternal>>.Empty;
Emit\EditAndContinue\SymbolMatcher.cs (10)
33IReadOnlyDictionary<ISymbolInternal, ImmutableArray<ISymbolInternal>> mappedSynthesizedMembers, 34IReadOnlyDictionary<ISymbolInternal, ImmutableArray<ISymbolInternal>> mappedDeletedMembers) 136private ImmutableSegmentedDictionary<AnonymousDelegateWithIndexedNamePartialKey, ImmutableArray<AnonymousTypeValue>> MapAnonymousDelegatesWithIndexedNames( 137IReadOnlyDictionary<AnonymousDelegateWithIndexedNamePartialKey, ImmutableArray<AnonymousTypeValue>> anonymousDelegates) 139var builder = ImmutableSegmentedDictionary.CreateBuilder<AnonymousDelegateWithIndexedNamePartialKey, ImmutableArray<AnonymousTypeValue>>(); 164internal IReadOnlyDictionary<ISymbolInternal, ImmutableArray<ISymbolInternal>> MapSynthesizedOrDeletedMembers( 165IReadOnlyDictionary<ISymbolInternal, ImmutableArray<ISymbolInternal>> previousMembers, 166IReadOnlyDictionary<ISymbolInternal, ImmutableArray<ISymbolInternal>> newMembers, 176var synthesizedMembersBuilder = ImmutableSegmentedDictionary.CreateBuilder<ISymbolInternal, ImmutableArray<ISymbolInternal>>(); 190if (!newMembers.TryGetValue(mappedContainer, out var newSynthesizedMembers))
Emit\EditAndContinue\SynthesizedTypeMaps.cs (3)
13ImmutableSegmentedDictionary<AnonymousDelegateWithIndexedNamePartialKey, ImmutableArray<AnonymousTypeValue>>? anonymousDelegatesWithIndexedNames) 37public ImmutableSegmentedDictionary<AnonymousDelegateWithIndexedNamePartialKey, ImmutableArray<AnonymousTypeValue>> AnonymousDelegatesWithIndexedNames { get; } 38= anonymousDelegatesWithIndexedNames ?? ImmutableSegmentedDictionary<AnonymousDelegateWithIndexedNamePartialKey, ImmutableArray<AnonymousTypeValue>>.Empty;
Emit\EditAndContinueMethodDebugInformation.cs (23)
22internal readonly ImmutableArray<LocalSlotDebugInfo> LocalSlots; 23internal readonly ImmutableArray<LambdaDebugInfo> Lambdas; 24internal readonly ImmutableArray<ClosureDebugInfo> Closures; 25internal readonly ImmutableArray<StateMachineStateDebugInfo> StateMachineStates; 29ImmutableArray<LocalSlotDebugInfo> localSlots, 30ImmutableArray<ClosureDebugInfo> closures, 31ImmutableArray<LambdaDebugInfo> lambdas, 32ImmutableArray<StateMachineStateDebugInfo> stateMachineStates) 49public static EditAndContinueMethodDebugInformation Create(ImmutableArray<byte> compressedSlotMap, ImmutableArray<byte> compressedLambdaMap) 59public static EditAndContinueMethodDebugInformation Create(ImmutableArray<byte> compressedSlotMap, ImmutableArray<byte> compressedLambdaMap, ImmutableArray<byte> compressedStateMachineStateMap) 61UncompressLambdaMap(compressedLambdaMap, out var methodOrdinal, out var closures, out var lambdas); 70private static InvalidDataException CreateInvalidDataException(ImmutableArray<byte> data, int offset) 92private static unsafe ImmutableArray<LocalSlotDebugInfo> UncompressSlotMap(ImmutableArray<byte> compressedSlotMap) 198ImmutableArray<byte> compressedLambdaMap, 200out ImmutableArray<ClosureDebugInfo> closures, 201out ImmutableArray<LambdaDebugInfo> lambdas) 309private static unsafe ImmutableArray<StateMachineStateDebugInfo> UncompressStateMachineStates(ImmutableArray<byte> compressedStateMachineStates)
Emit\EmitOptions.cs (6)
43public ImmutableArray<InstrumentationKind> InstrumentationKinds { get; private set; } 148instrumentationKinds: ImmutableArray<InstrumentationKind>.Empty) 165ImmutableArray<InstrumentationKind> instrumentationKinds) 196ImmutableArray<InstrumentationKind> instrumentationKinds, 229ImmutableArray<InstrumentationKind> instrumentationKinds = default, 524public EmitOptions WithInstrumentationKinds(ImmutableArray<InstrumentationKind> instrumentationKinds)
Emit\ErrorType.cs (1)
219publicKeyOrToken: ImmutableArray<byte>.Empty,
Emit\MethodInstrumentation.cs (2)
16Kinds = ImmutableArray<InstrumentationKind>.Empty, 22public ImmutableArray<InstrumentationKind> Kinds { get; init; }
Emit\NoPia\CommonEmbeddedField.cs (5)
62protected abstract ImmutableArray<byte> MarshallingDescriptor { get; } 72ImmutableArray<byte> Cci.IFieldDefinition.MappedData 76return default(ImmutableArray<byte>); 144ImmutableArray<byte> Cci.IFieldDefinition.MarshallingDescriptor 204ImmutableArray<Cci.ICustomModifier> Cci.IFieldReference.RefCustomModifiers => UnderlyingField.RefCustomModifiers;
Emit\NoPia\CommonEmbeddedMember.cs (5)
49private ImmutableArray<TAttributeData> _lazyAttributes; 63private ImmutableArray<TAttributeData> GetAttributes(TPEModuleBuilder moduleBuilder, TSyntaxNode syntaxNodeOpt, DiagnosticBag diagnostics) 77if (signatureIndex == 0 && TypeManager.TryGetAttributeArguments(attrData, out var constructorArguments, out var namedArguments, syntaxNodeOpt, diagnostics)) 96var attributes = GetAttributes((TPEModuleBuilder)context.Module, (TSyntaxNode)context.SyntaxNode, diagnostics);
Emit\NoPia\CommonEmbeddedMethod.cs (38)
42private readonly ImmutableArray<TEmbeddedTypeParameter> _typeParameters; 43private readonly ImmutableArray<TEmbeddedParameter> _parameters; 53protected abstract ImmutableArray<TEmbeddedTypeParameter> GetTypeParameters(); 54protected abstract ImmutableArray<TEmbeddedParameter> GetParameters(); 70protected abstract ImmutableArray<byte> ReturnValueMarshallingDescriptor { get; } 87if (signatureIndex == 0 && TypeManager.TryGetAttributeArguments(attrData, out var constructorArguments, out var namedArguments, syntaxNodeOpt, diagnostics)) 121ImmutableArray<Cci.ExceptionHandlerRegion> Cci.IMethodBody.ExceptionRegions => 122ImmutableArray<Cci.ExceptionHandlerRegion>.Empty; 128ImmutableArray<Cci.ILocalDefinition> Cci.IMethodBody.LocalVariables => 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; 145ImmutableArray<Cci.LocalScope> Cci.IMethodBody.LocalScopes => 146ImmutableArray<Cci.LocalScope>.Empty; 150ImmutableArray<StateMachineHoistedLocalScope> Cci.IMethodBody.StateMachineHoistedLocalScopes => 151default(ImmutableArray<StateMachineHoistedLocalScope>); 155ImmutableArray<EncHoistedLocalInfo> Cci.IMethodBody.StateMachineHoistedLocalSlots => 156default(ImmutableArray<EncHoistedLocalInfo>); 158ImmutableArray<Cci.ITypeReference> Cci.IMethodBody.StateMachineAwaiterSlots => 159default(ImmutableArray<Cci.ITypeReference>); 161ImmutableArray<EncClosureInfo> Cci.IMethodBody.ClosureDebugInfo => 162default(ImmutableArray<EncClosureInfo>); 164ImmutableArray<EncLambdaInfo> Cci.IMethodBody.LambdaDebugInfo => 165default(ImmutableArray<EncLambdaInfo>); 167ImmutableArray<LambdaRuntimeRudeEditInfo> Cci.IMethodBody.OrderedLambdaRuntimeRudeEdits => 168ImmutableArray<LambdaRuntimeRudeEditInfo>.Empty; 213ImmutableArray<Cci.IParameterDefinition> Cci.IMethodDefinition.Parameters 233ImmutableArray<byte> Cci.IMethodDefinition.ReturnValueMarshallingDescriptor => ReturnValueMarshallingDescriptor; 270ImmutableArray<Cci.IParameterTypeInformation> Cci.IMethodReference.ExtraParameters 275return ImmutableArray<Cci.IParameterTypeInformation>.Empty; 287ImmutableArray<Cci.IParameterTypeInformation> Cci.ISignature.GetParameters(EmitContext context) 292ImmutableArray<Cci.ICustomModifier> Cci.ISignature.RefCustomModifiers => 295ImmutableArray<Cci.ICustomModifier> Cci.ISignature.ReturnValueCustomModifiers =>
Emit\NoPia\CommonEmbeddedParameter.cs (9)
43private ImmutableArray<TAttributeData> _lazyAttributes; 69protected abstract ImmutableArray<byte> MarshallingDescriptor { get; } 80private ImmutableArray<TAttributeData> GetAttributes(TPEModuleBuilder moduleBuilder, TSyntaxNode syntaxNodeOpt, DiagnosticBag diagnostics) 93ImmutableArray<TypedConstant> constructorArguments; 94ImmutableArray<KeyValuePair<string, TypedConstant>> namedArguments; 185ImmutableArray<byte> Cci.IParameterDefinition.MarshallingDescriptor 198var attributes = GetAttributes((TPEModuleBuilder)context.Module, (TSyntaxNode)context.SyntaxNode, diagnostics); 229ImmutableArray<Cci.ICustomModifier> Cci.IParameterTypeInformation.CustomModifiers 245ImmutableArray<Cci.ICustomModifier> Cci.IParameterTypeInformation.RefCustomModifiers
Emit\NoPia\CommonEmbeddedProperty.cs (6)
40private readonly ImmutableArray<TEmbeddedParameter> _parameters; 62protected abstract ImmutableArray<TEmbeddedParameter> GetParameters(); 124ImmutableArray<Cci.IParameterDefinition> Cci.IPropertyDefinition.Parameters 142ImmutableArray<Cci.IParameterTypeInformation> Cci.ISignature.GetParameters(EmitContext context) 147ImmutableArray<Cci.ICustomModifier> Cci.ISignature.ReturnValueCustomModifiers 155ImmutableArray<Cci.ICustomModifier> Cci.ISignature.RefCustomModifiers
Emit\NoPia\CommonEmbeddedType.cs (9)
45private ImmutableArray<Cci.IFieldDefinition> _lazyFields; 46private ImmutableArray<Cci.IMethodDefinition> _lazyMethods; 47private ImmutableArray<Cci.IPropertyDefinition> _lazyProperties; 48private ImmutableArray<Cci.IEventDefinition> _lazyEvents; 49private ImmutableArray<TAttributeData> _lazyAttributes; 91private ImmutableArray<TAttributeData> GetAttributes(TPEModuleBuilder moduleBuilder, TSyntaxNode syntaxNodeOpt, DiagnosticBag diagnostics) 111ImmutableArray<TypedConstant> constructorArguments; 112ImmutableArray<KeyValuePair<string, TypedConstant>> namedArguments; 537var attributes = GetAttributes((TPEModuleBuilder)context.Module, (TSyntaxNode)context.SyntaxNode, diagnostics);
Emit\NoPia\EmbeddedTypesManager.cs (8)
22public abstract ImmutableArray<Cci.INamespaceTypeDefinition> GetTypes(DiagnosticBag diagnostics, HashSet<string> namesOfTopLevelTypes); 76private ImmutableArray<TEmbeddedType> _frozen; 91public override ImmutableArray<Cci.INamespaceTypeDefinition> GetTypes(DiagnosticBag diagnostics, HashSet<string> namesOfTopLevelTypes) 159internal abstract TAttributeData CreateSynthesizedAttribute(WellKnownMember constructor, ImmutableArray<TypedConstant> constructorArguments, ImmutableArray<KeyValuePair<string, TypedConstant>> namedArguments, TSyntaxNode syntaxNodeOpt, DiagnosticBag diagnostics); 160internal abstract bool TryGetAttributeArguments(TAttributeData attrData, out ImmutableArray<TypedConstant> constructorArguments, out ImmutableArray<KeyValuePair<string, TypedConstant>> namedArguments, TSyntaxNode syntaxNodeOpt, DiagnosticBag diagnostics); 163protected abstract void OnGetTypesCompleted(ImmutableArray<TEmbeddedType> types, DiagnosticBag diagnostics);
Emit\NoPia\VtblGap.cs (12)
108ImmutableArray<Cci.IParameterDefinition> Cci.IMethodDefinition.Parameters 110get { return ImmutableArray<Cci.IParameterDefinition>.Empty; } 138ImmutableArray<byte> Cci.IMethodDefinition.ReturnValueMarshallingDescriptor 140get { return default(ImmutableArray<byte>); } 209ImmutableArray<Cci.IParameterTypeInformation> Cci.IMethodReference.ExtraParameters 211get { return ImmutableArray<Cci.IParameterTypeInformation>.Empty; } 234ImmutableArray<Cci.IParameterTypeInformation> Cci.ISignature.GetParameters(EmitContext context) 236return ImmutableArray<Cci.IParameterTypeInformation>.Empty; 239ImmutableArray<Cci.ICustomModifier> Cci.ISignature.ReturnValueCustomModifiers 241get { return ImmutableArray<Cci.ICustomModifier>.Empty; } 244ImmutableArray<Cci.ICustomModifier> Cci.ISignature.RefCustomModifiers 246get { return ImmutableArray<Cci.ICustomModifier>.Empty; }
Emit\SemanticEdit.cs (1)
206internal SemanticEdit(IMethodSymbol oldSymbol, IMethodSymbol newSymbol, ImmutableArray<InstrumentationKind> instrumentationKinds)
FileSystem\PathUtilities.cs (1)
702public static string NormalizePathPrefix(string filePath, ImmutableArray<KeyValuePair<string, string>> pathMap)
FileSystem\RelativePathResolver.cs (3)
18public ImmutableArray<string> SearchPaths { get; } 27public RelativePathResolver(ImmutableArray<string> searchPaths, string? baseDirectory) 54public RelativePathResolver WithSearchPaths(ImmutableArray<string> searchPaths) =>
Generated\Operations.Generated.cs (154)
62ImmutableArray<IOperation> Operations { get; } 66ImmutableArray<ILocalSymbol> Locals { get; } 98ImmutableArray<IVariableDeclarationOperation> Declarations { get; } 123ImmutableArray<ILocalSymbol> Locals { get; } 131ImmutableArray<ISwitchCaseOperation> Cases { get; } 164ImmutableArray<ILocalSymbol> Locals { get; } 202ImmutableArray<IOperation> NextVariables { get; } 227ImmutableArray<IOperation> Before { get; } 233ImmutableArray<ILocalSymbol> ConditionLocals { get; } 241ImmutableArray<IOperation> AtLoopBottom { get; } 282ImmutableArray<IOperation> NextVariables { get; } 482ImmutableArray<ICatchClauseOperation> Catches { get; } 523ImmutableArray<ILocalSymbol> Locals { get; } 663ImmutableArray<IArgumentOperation> Arguments { get; } 797ImmutableArray<IArgumentOperation> Arguments { get; } 826ImmutableArray<IOperation> Indices { get; } 1006ImmutableArray<IArgumentOperation> Arguments { get; } 1291ImmutableArray<IArgumentOperation> Arguments { get; } 1341ImmutableArray<IOperation> DimensionSizes { get; } 1666ImmutableArray<IInterpolatedStringContentOperation> Parts { get; } 1693ImmutableArray<IOperation> Initializers { get; } 1724ImmutableArray<IOperation> Initializers { get; } 1781ImmutableArray<IOperation> Arguments { get; } 1832ImmutableArray<IOperation> Elements { get; } 1867ImmutableArray<IOperation> Arguments { get; } 1900ImmutableArray<ITypeSymbol> TypeArguments { get; } 1948ImmutableArray<IOperation> Arguments { get; } 1976ImmutableArray<IOperation> Arguments { get; } 2323ImmutableArray<ILocalSymbol> Locals { get; } 2352ImmutableArray<IFieldSymbol> InitializedFields { get; } 2398ImmutableArray<IPropertySymbol> InitializedProperties { get; } 2448ImmutableArray<IOperation> ElementValues { get; } 2491ImmutableArray<IOperation> IgnoredArguments { get; } 2526ImmutableArray<IVariableDeclaratorOperation> Declarators { get; } 2538ImmutableArray<IOperation> IgnoredDimensions { get; } 2616ImmutableArray<ILocalSymbol> Locals { get; } 2649ImmutableArray<ICaseClauseOperation> Clauses { get; } 2653ImmutableArray<IOperation> Body { get; } 2657ImmutableArray<ILocalSymbol> Locals { get; } 3054ImmutableArray<ILocalSymbol> Locals { get; } 3171ImmutableArray<IReDimClauseOperation> Clauses { get; } 3203ImmutableArray<IOperation> DimensionSizes { get; } 3231ImmutableArray<IPatternOperation> DeconstructionSubpatterns { get; } 3235ImmutableArray<IPropertySubpatternOperation> PropertySubpatterns { get; } 3287ImmutableArray<ISwitchExpressionArmOperation> Arms { get; } 3321ImmutableArray<ILocalSymbol> Locals { get; } 3371ImmutableArray<ILocalSymbol> Locals { get; } 3756ImmutableArray<IArgumentOperation> Arguments { get; } 3784ImmutableArray<IPatternOperation> Patterns { get; } 3961ImmutableArray<IOperation> Elements { get; } 4001internal BlockOperation(ImmutableArray<IOperation> operations, ImmutableArray<ILocalSymbol> locals, SemanticModel? semanticModel, SyntaxNode syntax, bool isImplicit) 4007public ImmutableArray<IOperation> Operations { get; } 4008public ImmutableArray<ILocalSymbol> Locals { get; } 4058internal VariableDeclarationGroupOperation(ImmutableArray<IVariableDeclarationOperation> declarations, SemanticModel? semanticModel, SyntaxNode syntax, bool isImplicit) 4063public ImmutableArray<IVariableDeclarationOperation> Declarations { get; } 4113internal SwitchOperation(ImmutableArray<ILocalSymbol> locals, IOperation value, ImmutableArray<ISwitchCaseOperation> cases, ILabelSymbol exitLabel, SemanticModel? semanticModel, SyntaxNode syntax, bool isImplicit) 4121public ImmutableArray<ILocalSymbol> Locals { get; } 4123public ImmutableArray<ISwitchCaseOperation> Cases { get; } 4183protected BaseLoopOperation(IOperation body, ImmutableArray<ILocalSymbol> locals, ILabelSymbol continueLabel, ILabelSymbol exitLabel, SemanticModel? semanticModel, SyntaxNode syntax, bool isImplicit) 4193public ImmutableArray<ILocalSymbol> Locals { get; } 4199internal ForEachLoopOperation(IOperation loopControlVariable, IOperation collection, ImmutableArray<IOperation> nextVariables, ForEachLoopOperationInfo? info, bool isAsynchronous, IOperation body, ImmutableArray<ILocalSymbol> locals, ILabelSymbol continueLabel, ILabelSymbol exitLabel, SemanticModel? semanticModel, SyntaxNode syntax, bool isImplicit) 4210public ImmutableArray<IOperation> NextVariables { get; } 4289internal ForLoopOperation(ImmutableArray<IOperation> before, ImmutableArray<ILocalSymbol> conditionLocals, IOperation? condition, ImmutableArray<IOperation> atLoopBottom, IOperation body, ImmutableArray<ILocalSymbol> locals, ILabelSymbol continueLabel, ILabelSymbol exitLabel, SemanticModel? semanticModel, SyntaxNode syntax, bool isImplicit) 4297public ImmutableArray<IOperation> Before { get; } 4298public ImmutableArray<ILocalSymbol> ConditionLocals { get; } 4300public ImmutableArray<IOperation> AtLoopBottom { get; } 4381internal ForToLoopOperation(IOperation loopControlVariable, IOperation initialValue, IOperation limitValue, IOperation stepValue, bool isChecked, ImmutableArray<IOperation> nextVariables, (ILocalSymbol LoopObject, ForToLoopOperationUserDefinedInfo UserDefinedInfo) info, IOperation body, ImmutableArray<ILocalSymbol> locals, ILabelSymbol continueLabel, ILabelSymbol exitLabel, SemanticModel? semanticModel, SyntaxNode syntax, bool isImplicit) 4397public ImmutableArray<IOperation> NextVariables { get; } 4493internal WhileLoopOperation(IOperation? condition, bool conditionIsTop, bool conditionIsUntil, IOperation? ignoredCondition, IOperation body, ImmutableArray<ILocalSymbol> locals, ILabelSymbol continueLabel, ILabelSymbol exitLabel, SemanticModel? semanticModel, SyntaxNode syntax, bool isImplicit) 4720internal TryOperation(IBlockOperation body, ImmutableArray<ICatchClauseOperation> catches, IBlockOperation? @finally, ILabelSymbol? exitLabel, SemanticModel? semanticModel, SyntaxNode syntax, bool isImplicit) 4729public ImmutableArray<ICatchClauseOperation> Catches { get; } 4799internal UsingOperation(IOperation resources, IOperation body, ImmutableArray<ILocalSymbol> locals, bool isAsynchronous, DisposeOperationInfo disposeInfo, SemanticModel? semanticModel, SyntaxNode syntax, bool isImplicit) 4810public ImmutableArray<ILocalSymbol> Locals { get; } 5010internal RaiseEventOperation(IEventReferenceOperation eventReference, ImmutableArray<IArgumentOperation> arguments, SemanticModel? semanticModel, SyntaxNode syntax, bool isImplicit) 5017public ImmutableArray<IArgumentOperation> Arguments { get; } 5154internal InvocationOperation(IMethodSymbol targetMethod, ITypeSymbol? constrainedToType, IOperation? instance, bool isVirtual, ImmutableArray<IArgumentOperation> arguments, SemanticModel? semanticModel, SyntaxNode syntax, ITypeSymbol? type, bool isImplicit) 5168public ImmutableArray<IArgumentOperation> Arguments { get; } 5227internal ArrayElementReferenceOperation(IOperation arrayReference, ImmutableArray<IOperation> indices, SemanticModel? semanticModel, SyntaxNode syntax, ITypeSymbol? type, bool isImplicit) 5235public ImmutableArray<IOperation> Indices { get; } 5456internal PropertyReferenceOperation(IPropertySymbol property, ITypeSymbol? constrainedToType, ImmutableArray<IArgumentOperation> arguments, IOperation? instance, SemanticModel? semanticModel, SyntaxNode syntax, ITypeSymbol? type, bool isImplicit) 5466public ImmutableArray<IArgumentOperation> Arguments { get; } 5917internal ObjectCreationOperation(IMethodSymbol? constructor, IObjectOrCollectionInitializerOperation? initializer, ImmutableArray<IArgumentOperation> arguments, SemanticModel? semanticModel, SyntaxNode syntax, ITypeSymbol? type, ConstantValue? constantValue, bool isImplicit) 5928public ImmutableArray<IArgumentOperation> Arguments { get; } 6039internal ArrayCreationOperation(ImmutableArray<IOperation> dimensionSizes, IArrayInitializerOperation? initializer, SemanticModel? semanticModel, SyntaxNode syntax, ITypeSymbol? type, bool isImplicit) 6046public ImmutableArray<IOperation> DimensionSizes { get; } 6579internal InterpolatedStringOperation(ImmutableArray<IInterpolatedStringContentOperation> parts, SemanticModel? semanticModel, SyntaxNode syntax, ITypeSymbol? type, ConstantValue? constantValue, bool isImplicit) 6586public ImmutableArray<IInterpolatedStringContentOperation> Parts { get; } 6636internal AnonymousObjectCreationOperation(ImmutableArray<IOperation> initializers, SemanticModel? semanticModel, SyntaxNode syntax, ITypeSymbol? type, bool isImplicit) 6642public ImmutableArray<IOperation> Initializers { get; } 6692internal ObjectOrCollectionInitializerOperation(ImmutableArray<IOperation> initializers, SemanticModel? semanticModel, SyntaxNode syntax, ITypeSymbol? type, bool isImplicit) 6698public ImmutableArray<IOperation> Initializers { get; } 6864internal TupleOperation(ImmutableArray<IOperation> elements, ITypeSymbol? naturalType, SemanticModel? semanticModel, SyntaxNode syntax, ITypeSymbol? type, bool isImplicit) 6871public ImmutableArray<IOperation> Elements { get; } 6922internal DynamicMemberReferenceOperation(IOperation? instance, string memberName, ImmutableArray<ITypeSymbol> typeArguments, ITypeSymbol? containingType, SemanticModel? semanticModel, SyntaxNode syntax, ITypeSymbol? type, bool isImplicit) 6933public ImmutableArray<ITypeSymbol> TypeArguments { get; } 7499protected BaseSymbolInitializerOperation(ImmutableArray<ILocalSymbol> locals, IOperation value, SemanticModel? semanticModel, SyntaxNode syntax, bool isImplicit) 7505public ImmutableArray<ILocalSymbol> Locals { get; } 7510internal FieldInitializerOperation(ImmutableArray<IFieldSymbol> initializedFields, ImmutableArray<ILocalSymbol> locals, IOperation value, SemanticModel? semanticModel, SyntaxNode syntax, bool isImplicit) 7515public ImmutableArray<IFieldSymbol> InitializedFields { get; } 7561internal VariableInitializerOperation(ImmutableArray<ILocalSymbol> locals, IOperation value, SemanticModel? semanticModel, SyntaxNode syntax, bool isImplicit) 7608internal PropertyInitializerOperation(ImmutableArray<IPropertySymbol> initializedProperties, ImmutableArray<ILocalSymbol> locals, IOperation value, SemanticModel? semanticModel, SyntaxNode syntax, bool isImplicit) 7613public ImmutableArray<IPropertySymbol> InitializedProperties { get; } 7659internal ParameterInitializerOperation(IParameterSymbol parameter, ImmutableArray<ILocalSymbol> locals, IOperation value, SemanticModel? semanticModel, SyntaxNode syntax, bool isImplicit) 7710internal ArrayInitializerOperation(ImmutableArray<IOperation> elementValues, SemanticModel? semanticModel, SyntaxNode syntax, bool isImplicit) 7715public ImmutableArray<IOperation> ElementValues { get; } 7765internal VariableDeclaratorOperation(ILocalSymbol symbol, IVariableInitializerOperation? initializer, ImmutableArray<IOperation> ignoredArguments, SemanticModel? semanticModel, SyntaxNode syntax, bool isImplicit) 7774public ImmutableArray<IOperation> IgnoredArguments { get; } 7833internal VariableDeclarationOperation(ImmutableArray<IVariableDeclaratorOperation> declarators, IVariableInitializerOperation? initializer, ImmutableArray<IOperation> ignoredDimensions, SemanticModel? semanticModel, SyntaxNode syntax, bool isImplicit) 7840public ImmutableArray<IVariableDeclaratorOperation> Declarators { get; } 7842public ImmutableArray<IOperation> IgnoredDimensions { get; } 7975internal CatchClauseOperation(IOperation? exceptionDeclarationOrExpression, ITypeSymbol exceptionType, ImmutableArray<ILocalSymbol> locals, IOperation? filter, IBlockOperation handler, SemanticModel? semanticModel, SyntaxNode syntax, bool isImplicit) 7986public ImmutableArray<ILocalSymbol> Locals { get; } 8052internal SwitchCaseOperation(ImmutableArray<ICaseClauseOperation> clauses, ImmutableArray<IOperation> body, ImmutableArray<ILocalSymbol> locals, IOperation? condition, SemanticModel? semanticModel, SyntaxNode syntax, bool isImplicit) 8060public ImmutableArray<ICaseClauseOperation> Clauses { get; } 8061public ImmutableArray<IOperation> Body { get; } 8062public ImmutableArray<ILocalSymbol> Locals { get; } 8724internal ConstructorBodyOperation(ImmutableArray<ILocalSymbol> locals, IOperation? initializer, IBlockOperation? blockBody, IBlockOperation? expressionBody, SemanticModel? semanticModel, SyntaxNode syntax, bool isImplicit) 8730public ImmutableArray<ILocalSymbol> Locals { get; } 9104internal ReDimOperation(ImmutableArray<IReDimClauseOperation> clauses, bool preserve, SemanticModel? semanticModel, SyntaxNode syntax, bool isImplicit) 9110public ImmutableArray<IReDimClauseOperation> Clauses { get; } 9161internal ReDimClauseOperation(IOperation operand, ImmutableArray<IOperation> dimensionSizes, SemanticModel? semanticModel, SyntaxNode syntax, bool isImplicit) 9168public ImmutableArray<IOperation> DimensionSizes { get; } 9227internal RecursivePatternOperation(ITypeSymbol matchedType, ISymbol? deconstructSymbol, ImmutableArray<IPatternOperation> deconstructionSubpatterns, ImmutableArray<IPropertySubpatternOperation> propertySubpatterns, ISymbol? declaredSymbol, ITypeSymbol inputType, ITypeSymbol narrowedType, SemanticModel? semanticModel, SyntaxNode syntax, bool isImplicit) 9238public ImmutableArray<IPatternOperation> DeconstructionSubpatterns { get; } 9239public ImmutableArray<IPropertySubpatternOperation> PropertySubpatterns { get; } 9317internal SwitchExpressionOperation(IOperation value, ImmutableArray<ISwitchExpressionArmOperation> arms, bool isExhaustive, SemanticModel? semanticModel, SyntaxNode syntax, ITypeSymbol? type, bool isImplicit) 9326public ImmutableArray<ISwitchExpressionArmOperation> Arms { get; } 9386internal SwitchExpressionArmOperation(IPatternOperation pattern, IOperation? guard, IOperation value, ImmutableArray<ILocalSymbol> locals, SemanticModel? semanticModel, SyntaxNode syntax, bool isImplicit) 9397public ImmutableArray<ILocalSymbol> Locals { get; } 9586internal FixedOperation(ImmutableArray<ILocalSymbol> locals, IVariableDeclarationGroupOperation variables, IOperation body, SemanticModel? semanticModel, SyntaxNode syntax, bool isImplicit) 9593public ImmutableArray<ILocalSymbol> Locals { get; } 10290internal FunctionPointerInvocationOperation(IOperation target, ImmutableArray<IArgumentOperation> arguments, SemanticModel? semanticModel, SyntaxNode syntax, ITypeSymbol? type, bool isImplicit) 10298public ImmutableArray<IArgumentOperation> Arguments { get; } 10357internal ListPatternOperation(ISymbol? lengthSymbol, ISymbol? indexerSymbol, ImmutableArray<IPatternOperation> patterns, ISymbol? declaredSymbol, ITypeSymbol inputType, ITypeSymbol narrowedType, SemanticModel? semanticModel, SyntaxNode syntax, bool isImplicit) 10367public ImmutableArray<IPatternOperation> Patterns { get; } 10671internal CollectionExpressionOperation(IMethodSymbol? constructMethod, ImmutableArray<IOperation> elements, SemanticModel? semanticModel, SyntaxNode syntax, ITypeSymbol? type, bool isImplicit) 10679public ImmutableArray<IOperation> Elements { get; } 10794private ImmutableArray<T> VisitArray<T>(ImmutableArray<T> nodes) where T : IOperation => nodes.SelectAsArray((n, @this) => @this.Visit(n), this)!; 10795private ImmutableArray<(ISymbol, T)> VisitArray<T>(ImmutableArray<(ISymbol, T)> nodes) where T : IOperation => nodes.SelectAsArray((n, @this) => (n.Item1, @this.Visit(n.Item2)), this)!;
InternalUtilities\BlobBuildingStream.cs (1)
83public ImmutableArray<byte> ToImmutableArray()
InternalUtilities\EnumerableExtensions.cs (28)
66public static ImmutableArray<T> ToImmutableArrayOrEmpty<T>(this IEnumerable<T>? items) 73if (items is ImmutableArray<T> array) 88if (items is ImmutableArray<T> array) 354public static ImmutableArray<TResult> SelectAsArray<TSource, TResult>(this IEnumerable<TSource>? source, Func<TSource, TResult> selector) 358return ImmutableArray<TResult>.Empty; 367public static ImmutableArray<TResult> SelectAsArray<TSource, TResult>(this IEnumerable<TSource>? source, Func<TSource, int, TResult> selector) 370return ImmutableArray<TResult>.Empty; 384public static ImmutableArray<TResult> SelectAsArray<TSource, TResult>(this IReadOnlyCollection<TSource>? source, Func<TSource, TResult> selector) 387return ImmutableArray<TResult>.Empty; 400public static ImmutableArray<TResult> SelectAsArray<TSource, TResult, TArg>(this IReadOnlyCollection<TSource>? source, Func<TSource, TArg, TResult> selector, TArg arg) 403return ImmutableArray<TResult>.Empty; 416public static ImmutableArray<TResult> SelectManyAsArray<TSource, TResult>(this IEnumerable<TSource>? source, Func<TSource, IEnumerable<TResult>> selector) 419return ImmutableArray<TResult>.Empty; 428public static ImmutableArray<TResult> SelectManyAsArray<TItem, TArg, TResult>(this IEnumerable<TItem>? source, Func<TItem, TArg, IEnumerable<TResult>> selector, TArg arg) 431return ImmutableArray<TResult>.Empty; 440public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, IEnumerable<TResult>> selector) 443return ImmutableArray<TResult>.Empty; 453public static ImmutableArray<TResult> SelectManyAsArray<TItem, TArg, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, TArg, IEnumerable<TResult>> selector, TArg arg) 456return ImmutableArray<TResult>.Empty; 466public static ImmutableArray<TResult> SelectManyAsArray<TSource, TResult>(this IEnumerable<TSource>? source, Func<TSource, OneOrMany<TResult>> selector) 469return ImmutableArray<TResult>.Empty; 481public static async ValueTask<ImmutableArray<TResult>> SelectAsArrayAsync<TItem, TResult>(this IEnumerable<TItem> source, Func<TItem, ValueTask<TResult>> selector) 496public static async ValueTask<ImmutableArray<TResult>> SelectAsArrayAsync<TItem, TResult>(this IEnumerable<TItem> source, Func<TItem, CancellationToken, ValueTask<TResult>> selector, CancellationToken cancellationToken) 511public static async ValueTask<ImmutableArray<TResult>> SelectAsArrayAsync<TItem, TArg, TResult>(this IEnumerable<TItem> source, Func<TItem, TArg, CancellationToken, ValueTask<TResult>> selector, TArg arg, CancellationToken cancellationToken) 523public static async ValueTask<ImmutableArray<TResult>> SelectManyAsArrayAsync<TItem, TArg, TResult>(this IEnumerable<TItem> source, Func<TItem, TArg, CancellationToken, ValueTask<IEnumerable<TResult>>> selector, TArg arg, CancellationToken cancellationToken) 787internal static Dictionary<K, ImmutableArray<T>> ToMultiDictionary<K, T>(this IEnumerable<T> data, Func<T, K> keySelector, IEqualityComparer<K>? comparer = null) 790var dictionary = new Dictionary<K, ImmutableArray<T>>(comparer); 794var items = grouping.AsImmutable();
InternalUtilities\FileLockCheck.cs (2)
125public static ImmutableArray<(int processId, string applicationName)> TryGetLockingProcessInfos(string path) 142private static ImmutableArray<(int processId, string applicationName)> GetLockingProcessInfosImpl(string[] paths)
InternalUtilities\Hash.cs (3)
114internal static int CombineValues<T>(ImmutableArray<T> values, int maxItemsToHash = int.MaxValue) 165internal static int CombineValues(ImmutableArray<string> values, StringComparer stringComparer, int maxItemsToHash = int.MaxValue) 246internal static int GetFNVHashCode(ImmutableArray<byte> data)
InternalUtilities\InterlockedOperations.cs (14)
154public static ImmutableArray<T> Initialize<T>(ref ImmutableArray<T> target, ImmutableArray<T> initializedValue) 157var oldValue = ImmutableInterlocked.InterlockedCompareExchange(ref target, initializedValue, default(ImmutableArray<T>)); 170public static ImmutableArray<T> Initialize<T>(ref ImmutableArray<T> target, Func<ImmutableArray<T>> createArray) 183public static ImmutableArray<T> Initialize<T, TArg>(ref ImmutableArray<T> target, Func<TArg, ImmutableArray<T>> createArray, TArg arg) 193private static ImmutableArray<T> Initialize_Slow<T, TArg>(ref ImmutableArray<T> target, Func<TArg, ImmutableArray<T>> createArray, TArg arg)
InternalUtilities\ISetExtensions.cs (2)
23public static bool AddAll<T>(this ISet<T> set, ImmutableArray<T> values) 45public static bool RemoveAll<T>(this ISet<T> set, ImmutableArray<T> values)
InternalUtilities\OneOrMany.cs (8)
27public static readonly OneOrMany<T> Empty = new OneOrMany<T>(ImmutableArray<T>.Empty); 30private readonly ImmutableArray<T> _many; 38public OneOrMany(ImmutableArray<T> many) 166: new OneOrMany<T>(ImmutableArray<T>.CastUp(from._many)); 184public ImmutableArray<T> ToImmutable() 205public bool SequenceEqual(ImmutableArray<T> other, IEqualityComparer<T>? comparer = null) 277public static OneOrMany<T> Create<T>(ImmutableArray<T> many) 280public static bool SequenceEqual<T>(this ImmutableArray<T> array, OneOrMany<T> other, IEqualityComparer<T>? comparer = null)
InternalUtilities\SetWithInsertionOrder.cs (1)
94public ImmutableArray<T> AsImmutable() => _elements.ToImmutableArrayOrEmpty();
InternalUtilities\SpecializedCollections.Empty.List.cs (1)
18public static readonly IReadOnlyList<T> Instance = ImmutableArray<T>.Empty;
InternalUtilities\StringExtensions.cs (2)
15private static ImmutableArray<string> s_lazyNumerals; 19var numerals = s_lazyNumerals;
IVTConclusion.cs (2)
10/// The result of <see cref="ISymbolExtensions.PerformIVTCheck(AssemblyIdentity, ImmutableArray{byte}, ImmutableArray{byte})"/>
MemberDescriptor.cs (7)
94public readonly ImmutableArray<byte> Signature; 121ImmutableArray<byte> Signature, 131internal static ImmutableArray<MemberDescriptor> InitializeFromStream(Stream stream, string[] nameTable) 180private static void ParseMethodOrPropertySignature(ImmutableArray<byte>.Builder builder, Stream stream) 195private static void ParseType(ImmutableArray<byte>.Builder builder, Stream stream, bool allowByRef = false) 239private static void ParseTypeHandle(ImmutableArray<byte>.Builder builder, Stream stream) 251private static void ParseGenericTypeInstance(ImmutableArray<byte>.Builder builder, Stream stream)
MetadataReader\MetadataDecoder.cs (34)
38internal static bool AnyRequired<TypeSymbol>(this ImmutableArray<ModifierInfo<TypeSymbol>> modifiers) where TypeSymbol : class 48internal readonly ImmutableArray<ModifierInfo<TypeSymbol>> RefCustomModifiers; 50internal readonly ImmutableArray<ModifierInfo<TypeSymbol>> CustomModifiers; 52internal FieldInfo(bool isByRef, ImmutableArray<ModifierInfo<TypeSymbol>> refCustomModifiers, TypeSymbol type, ImmutableArray<ModifierInfo<TypeSymbol>> customModifiers) 72internal ImmutableArray<ModifierInfo<TypeSymbol>> RefCustomModifiers; 73internal ImmutableArray<ModifierInfo<TypeSymbol>> CustomModifiers; 82internal readonly ImmutableArray<ModifierInfo<TypeSymbol>> CustomModifiers; 85internal LocalInfo(TypeSymbol type, ImmutableArray<ModifierInfo<TypeSymbol>> customModifiers, LocalSlotConstraints constraints, byte[] signatureOpt) 209ImmutableArray<ModifierInfo<TypeSymbol>> modifiers; 258ImmutableArray<int> sizes; 262sizes = ImmutableArray<int>.Empty; 291ImmutableArray<int> lowerBounds = default(ImmutableArray<int>); 295lowerBounds = ImmutableArray<int>.Empty; 402var argumentsBuilder = ArrayBuilder<KeyValuePair<TypeSymbol, ImmutableArray<ModifierInfo<TypeSymbol>>>>.GetInstance(argumentCount); 409ImmutableArray<ModifierInfo<TypeSymbol>> modifiers = DecodeModifiersOrThrow(ref ppSig, out typeCode); 417var arguments = argumentsBuilder.ToImmutableAndFree(); 418var argumentRefersToNoPiaLocalType = argumentRefersToNoPiaLocalTypeBuilder.ToImmutableAndFree(); 731private ImmutableArray<ModifierInfo<TypeSymbol>> DecodeModifiersOrThrow( 850internal ImmutableArray<LocalInfo<TypeSymbol>> DecodeLocalSignatureOrThrow(ref BlobReader signatureReader) 905internal TypeSymbol DecodeGenericParameterConstraint(EntityHandle token, out ImmutableArray<ModifierInfo<TypeSymbol>> modifiers) 907modifiers = ImmutableArray<ModifierInfo<TypeSymbol>>.Empty; 944var customModifiers = DecodeModifiersOrThrow(ref signatureReader, out typeCode); 991var customModifiers = DecodeModifiersOrThrow(ref sigReader, out typeCode); 1139internal ImmutableArray<LocalInfo<TypeSymbol>> GetLocalsOrThrow(StandaloneSignatureHandle handle) 1149internal unsafe TypeSymbol DecodeLocalVariableTypeOrThrow(ImmutableArray<byte> signature) 1173internal ImmutableArray<LocalInfo<TypeSymbol>> GetLocalInfo(StandaloneSignatureHandle localSignatureHandle) 1177return ImmutableArray<LocalInfo<TypeSymbol>>.Empty; 1345type = GetSZArrayTypeSymbol(elementType, customModifiers: default(ImmutableArray<ModifierInfo<TypeSymbol>>)); 1861ImmutableArray<ModifierInfo<TypeSymbol>> refCustomModifiers = default; 1862ImmutableArray<ModifierInfo<TypeSymbol>> customModifiers = DecodeModifiersOrThrow( 1899internal ImmutableArray<MethodSymbol> GetExplicitlyOverriddenMethods(TypeDefinitionHandle implementingTypeDef, MethodDefinitionHandle implementingMethodDef, TypeSymbol implementingTypeSymbol) 2142private static TypedConstant CreateArrayTypedConstant(TypeSymbol type, ImmutableArray<TypedConstant> array)
MetadataReader\MetadataHelpers.cs (8)
591private static readonly ImmutableArray<string> s_splitQualifiedNameSystem = ImmutableArray.Create(SystemString); 592private static readonly ImmutableArray<ReadOnlyMemory<char>> s_splitQualifiedNameSystemMemory = ImmutableArray.Create(SystemString.AsMemory()); 594internal static ImmutableArray<string> SplitQualifiedName(string name) 597internal static ImmutableArray<ReadOnlyMemory<char>> SplitQualifiedName(ReadOnlyMemory<char> name) 600internal static ImmutableArray<T> SplitQualifiedNameWorker<T>( 601ReadOnlyMemory<char> nameMemory, ImmutableArray<T> splitSystemString, Func<ReadOnlyMemory<char>, T> convert) 607return ImmutableArray<T>.Empty; 1050internal static bool IsValidPublicKey(ImmutableArray<byte> bytes) => CryptoBlobParser.IsValidPublicKey(bytes);
MetadataReader\MetadataReaderExtensions.cs (3)
62internal static ImmutableArray<AssemblyIdentity> GetReferencedAssembliesOrThrow(this MetadataReader reader) 115ImmutableArray<byte> publicKeyOrToken = reader.GetBlobContent(publicKey); 152publicKeyOrToken = default(ImmutableArray<byte>);
MetadataReader\MetadataTypeName.cs (8)
84private ImmutableArray<string> _namespaceSegments; 90private ImmutableArray<ReadOnlyMemory<char>> _namespaceSegmentsMemory; 113name._namespaceSegments = default(ImmutableArray<string>); 145name._namespaceSegments = default(ImmutableArray<string>); 173name._namespaceSegments = ImmutableArray<string>.Empty; 174name._namespaceSegmentsMemory = ImmutableArray<ReadOnlyMemory<char>>.Empty; 328public ImmutableArray<ReadOnlyMemory<char>> NamespaceSegmentsMemory 344public ImmutableArray<string> NamespaceSegments
MetadataReader\PEAssembly.cs (14)
26internal readonly ImmutableArray<AssemblyIdentity> AssemblyReferences; 31internal readonly ImmutableArray<int> ModuleReferenceCounts; 33private readonly ImmutableArray<PEModule> _modules; 55private Dictionary<string, List<ImmutableArray<byte>>> _lazyInternalsVisibleToMap; 58internal PEAssembly(AssemblyMetadata owner, ImmutableArray<PEModule> modules) 73ImmutableArray<AssemblyIdentity> refsForModule = modules[i].ReferencedAssemblies; 97internal ImmutableArray<PEModule> Modules 132private Dictionary<string, List<ImmutableArray<byte>>> BuildInternalsVisibleToMap() 134var ivtMap = new Dictionary<string, List<ImmutableArray<byte>>>(StringComparer.OrdinalIgnoreCase); 140List<ImmutableArray<byte>> keys; 145keys = new List<ImmutableArray<byte>>(); 162internal IEnumerable<ImmutableArray<byte>> GetInternalsVisibleToPublicKeys(string simpleName) 166List<ImmutableArray<byte>> result; 170return result ?? SpecializedCollections.EmptyEnumerable<ImmutableArray<byte>>();
MetadataReader\PEModule.cs (46)
47private ImmutableArray<AssemblyIdentity> _lazyAssemblyReferences; 110private static readonly AttributeValueExtractor<ImmutableArray<bool>> s_attributeBoolArrayValueExtractor = CrackBoolArrayInAttributeValue; 111private static readonly AttributeValueExtractor<ImmutableArray<byte>> s_attributeByteArrayValueExtractor = CrackByteArrayInAttributeValue; 112private static readonly AttributeValueExtractor<ImmutableArray<string?>> s_attributeStringArrayValueExtractor = CrackStringArrayInAttributeValue; 119public BoolAndStringArrayData(bool sense, ImmutableArray<string?> strings) 126public readonly ImmutableArray<string?> Strings; 163_lazyAssemblyReferences = ImmutableArray<AssemblyIdentity>.Empty; 177internal override unsafe ImmutableArray<byte> ComputeHash(HashAlgorithm algorithm) 342internal ImmutableArray<byte> GetHash(AssemblyHashAlgorithm algorithmId) 379internal ImmutableArray<string> GetMetadataModuleNamesOrThrow() 432internal ImmutableArray<EmbeddedResource> GetEmbeddedResourcesOrThrow() 436return ImmutableArray<EmbeddedResource>.Empty; 464public ImmutableArray<AssemblyIdentity> ReferencedAssemblies 877internal ImmutableArray<TypeDefinitionHandle> GetNestedTypeDefsOrThrow(TypeDefinitionHandle container) 1088private static readonly ImmutableArray<bool> s_simpleTransformFlags = ImmutableArray.Create(true); 1090internal bool HasDynamicAttribute(EntityHandle token, out ImmutableArray<bool> transformFlags) 1110internal bool HasNativeIntegerAttribute(EntityHandle token, out ImmutableArray<bool> transformFlags) 1173internal bool HasTupleElementNamesAttribute(EntityHandle token, out ImmutableArray<string> tupleElementNames) 1180tupleElementNames = default(ImmutableArray<string>); 1439internal (ImmutableArray<string?> Names, bool FoundAttribute) GetInterpolatedStringHandlerArgumentAttributeValues(EntityHandle token) 1456else if (TryExtractStringArrayValueFromAttribute(targetAttribute.Handle, out var paramNames)) 1628internal ImmutableArray<string> GetInternalsVisibleToAttributeValues(EntityHandle token) 1632return result?.ToImmutableAndFree() ?? ImmutableArray<string>.Empty; 1635internal ImmutableArray<string> GetConditionalAttributeValues(EntityHandle token) 1639return result?.ToImmutableAndFree() ?? ImmutableArray<string>.Empty; 1645internal ImmutableArray<string> GetMemberNotNullAttributeValues(EntityHandle token) 1650return ImmutableArray<string>.Empty; 1667else if (TryExtractStringArrayValueFromAttribute(ai.Handle, out ImmutableArray<string> extracted2)) 1685internal (ImmutableArray<string> whenTrue, ImmutableArray<string> whenFalse) GetMemberNotNullWhenAttributeValues(EntityHandle token) 1690return (ImmutableArray<string>.Empty, ImmutableArray<string>.Empty); 1980private bool TryExtractBoolArrayValueFromAttribute(CustomAttributeHandle handle, out ImmutableArray<bool> value) 1985private bool TryExtractByteArrayValueFromAttribute(CustomAttributeHandle handle, out ImmutableArray<byte> value) 1990private bool TryExtractStringArrayValueFromAttribute(CustomAttributeHandle handle, out ImmutableArray<string?> value) 2248internal static bool CrackStringArrayInAttributeValue(out ImmutableArray<string?> value, ref BlobReader sig) 2295CrackStringArrayInAttributeValue(out ImmutableArray<string?> strings, ref sig)) 2414private static bool CrackBoolArrayInAttributeValue(out ImmutableArray<bool> value, ref BlobReader sig) 2439value = default(ImmutableArray<bool>); 2443private static bool CrackByteArrayInAttributeValue(out ImmutableArray<byte> value, ref BlobReader sig) 2468value = default(ImmutableArray<byte>); 3216internal bool HasNullableAttribute(EntityHandle token, out byte defaultTransform, out ImmutableArray<byte> nullableTransforms) 3222nullableTransforms = default(ImmutableArray<byte>); 3658internal ImmutableArray<byte> GetMarshallingDescriptor(EntityHandle fieldOrParameterToken) 3666return ImmutableArray<byte>.Empty; 3673return ImmutableArray<byte>.Empty;
MetadataReader\SymbolFactory.cs (9)
23internal abstract TypeSymbol GetSZArrayTypeSymbol(ModuleSymbol moduleSymbol, TypeSymbol elementType, ImmutableArray<ModifierInfo<TypeSymbol>> customModifiers); 24internal abstract TypeSymbol GetMDArrayTypeSymbol(ModuleSymbol moduleSymbol, int rank, TypeSymbol elementType, ImmutableArray<ModifierInfo<TypeSymbol>> customModifiers, 25ImmutableArray<int> sizes, ImmutableArray<int> lowerBounds); 40internal abstract TypeSymbol SubstituteTypeParameters(ModuleSymbol moduleSymbol, TypeSymbol generic, ImmutableArray<KeyValuePair<TypeSymbol, ImmutableArray<ModifierInfo<TypeSymbol>>>> arguments, ImmutableArray<bool> refersToNoPiaLocalType); 42internal abstract TypeSymbol MakePointerTypeSymbol(ModuleSymbol moduleSymbol, TypeSymbol type, ImmutableArray<ModifierInfo<TypeSymbol>> customModifiers); 43internal abstract TypeSymbol MakeFunctionPointerTypeSymbol(ModuleSymbol moduleSymbol, Cci.CallingConvention callingConvention, ImmutableArray<ParamInfo<TypeSymbol>> returnAndParamTypes);
MetadataReader\TypeNameDecoder.cs (22)
65protected TypeSymbol GetSZArrayTypeSymbol(TypeSymbol elementType, ImmutableArray<ModifierInfo<TypeSymbol>> customModifiers) 70protected TypeSymbol GetMDArrayTypeSymbol(int rank, TypeSymbol elementType, ImmutableArray<ModifierInfo<TypeSymbol>> customModifiers, ImmutableArray<int> sizes, ImmutableArray<int> lowerBounds) 75protected TypeSymbol MakePointerTypeSymbol(TypeSymbol type, ImmutableArray<ModifierInfo<TypeSymbol>> customModifiers) 80protected TypeSymbol MakeFunctionPointerTypeSymbol(Cci.CallingConvention callingConvention, ImmutableArray<ParamInfo<TypeSymbol>> retAndParamInfos) 110protected TypeSymbol SubstituteTypeParameters(TypeSymbol genericType, ImmutableArray<KeyValuePair<TypeSymbol, ImmutableArray<ModifierInfo<TypeSymbol>>>> arguments, ImmutableArray<bool> refersToNoPiaLocalType) 183ImmutableArray<bool> argumentRefersToNoPiaLocalType; 184var typeArguments = ResolveTypeArguments(fullName.TypeArguments, out argumentRefersToNoPiaLocalType); 203container = MakePointerTypeSymbol(container, ImmutableArray<ModifierInfo<TypeSymbol>>.Empty); 213GetSZArrayTypeSymbol(container, default(ImmutableArray<ModifierInfo<TypeSymbol>>)) : 214GetMDArrayTypeSymbol(rank, container, default(ImmutableArray<ModifierInfo<TypeSymbol>>), ImmutableArray<int>.Empty, default(ImmutableArray<int>)); 221private ImmutableArray<KeyValuePair<TypeSymbol, ImmutableArray<ModifierInfo<TypeSymbol>>>> ResolveTypeArguments(MetadataHelpers.AssemblyQualifiedTypeName[] arguments, out ImmutableArray<bool> refersToNoPiaLocalType) 224var typeArgumentsBuilder = ArrayBuilder<KeyValuePair<TypeSymbol, ImmutableArray<ModifierInfo<TypeSymbol>>>>.GetInstance(count); 230typeArgumentsBuilder.Add(new KeyValuePair<TypeSymbol, ImmutableArray<ModifierInfo<TypeSymbol>>>(GetTypeSymbol(argument, out refersToNoPia), ImmutableArray<ModifierInfo<TypeSymbol>>.Empty));
MetadataReference\AssemblyIdentity.cs (18)
41private readonly ImmutableArray<byte> _publicKey; 45private ImmutableArray<byte> _lazyPublicKeyToken; 101ImmutableArray<byte> publicKeyOrToken = default, 160ImmutableArray<byte> publicKeyOrToken, 183ImmutableArray<byte> publicKeyOrToken = default, 216private static void InitializeKey(ImmutableArray<byte> publicKeyOrToken, bool hasPublicKey, 217out ImmutableArray<byte> publicKey, out ImmutableArray<byte> publicKeyToken) 226publicKey = ImmutableArray<byte>.Empty; 314public ImmutableArray<byte> PublicKey 322public ImmutableArray<byte> PublicKeyToken 432internal static ImmutableArray<byte> CalculatePublicKeyToken(ImmutableArray<byte> publicKey) 434var hash = CryptographicHashProvider.ComputeSha1(publicKey); 486var xToken = x._lazyPublicKeyToken; 487var yToken = y._lazyPublicKeyToken; 537ImmutableArray<byte> publicKey = (publicKeyBytes != null) ? ImmutableArray.Create(publicKeyBytes) : ImmutableArray<byte>.Empty;
MetadataReference\AssemblyIdentity.DisplayName.cs (13)
63internal static string PublicKeyToString(ImmutableArray<byte> key) 142private static void AppendKey(StringBuilder sb, ImmutableArray<byte> key) 240var publicKey = default(ImmutableArray<byte>); 241var publicKeyToken = default(ImmutableArray<byte>); 329ImmutableArray<byte> value; 356ImmutableArray<byte> value; 665private static bool TryParsePublicKey(string value, out ImmutableArray<byte> key) 679private static bool TryParsePublicKeyToken(string value, out ImmutableArray<byte> token) 684token = ImmutableArray<byte>.Empty; 688ImmutableArray<byte> result; 699private static bool TryParseHexBytes(string value, out ImmutableArray<byte> result)
MetadataReference\AssemblyIdentityUtils.cs (1)
36ImmutableArray<byte> publicKeyOrToken = !publicKeyHandle.IsNil
MetadataReference\AssemblyMetadata.cs (14)
27public readonly ImmutableArray<ModuleMetadata> Modules; 34public Data(ImmutableArray<ModuleMetadata> modules, PEAssembly assembly) 58private readonly ImmutableArray<ModuleMetadata> _initialModules; 65private ImmutableArray<ModuleMetadata> _lazyPublishedModules; 90internal AssemblyMetadata(ImmutableArray<ModuleMetadata> modules) 114public static AssemblyMetadata CreateFromImage(ImmutableArray<byte> peImage) 198public static AssemblyMetadata Create(ImmutableArray<ModuleMetadata> modules) 279public ImmutableArray<ModuleMetadata> GetModules() 284var newModules = data.Modules; 317ImmutableArray<ModuleMetadata> modules = _initialModules; 318ImmutableArray<ModuleMetadata>.Builder? moduleBuilder = null; 327var additionalModuleNames = _initialModules[0].GetModuleNames(); 410var modules = GetModules(); 449ImmutableArray<string> aliases = default,
MetadataReference\CompilationReference.cs (2)
27internal static MetadataReferenceProperties GetProperties(Compilation compilation, ImmutableArray<string> aliases, bool embedInteropTypes) 62public new CompilationReference WithAliases(ImmutableArray<string> aliases)
MetadataReference\MetadataReference.cs (11)
70public MetadataReference WithAliases(ImmutableArray<string> aliases) 102/// It is recommended to use <see cref="AssemblyMetadata.CreateFromImage(ImmutableArray{byte})"/> or <see cref="ModuleMetadata.CreateFromImage(ImmutableArray{byte})"/> 109/// deterministically use <see cref="AssemblyMetadata.CreateFromImage(ImmutableArray{byte})"/> 111/// <see cref="AssemblyMetadata.GetReference(DocumentationProvider, ImmutableArray{string}, bool, string, string)"/> to get a reference to it. 115/// <see cref="ModuleMetadata.CreateFromImage(ImmutableArray{byte})"/> and <see cref="ModuleMetadata.GetReference(DocumentationProvider, string, string)"/>. 120ImmutableArray<byte> peImage, 149/// The method makes a copy of the data and pins it. To avoid making a copy use an overload that takes an <see cref="ImmutableArray{T}"/>. 153/// <see cref="AssemblyMetadata.GetReference(DocumentationProvider, ImmutableArray{string}, bool, string, string)"/> to get a reference to it. 195/// <see cref="AssemblyMetadata.GetReference(DocumentationProvider, ImmutableArray{string}, bool, string, string)"/> 237/// <see cref="AssemblyMetadata.GetReference(DocumentationProvider, ImmutableArray{string}, bool, string, string)"/>
MetadataReference\MetadataReferenceProperties.cs (5)
19private readonly ImmutableArray<string> _aliases; 38public MetadataReferenceProperties(MetadataImageKind kind = MetadataImageKind.Assembly, ImmutableArray<string> aliases = default, bool embedInteropTypes = false) 75internal MetadataReferenceProperties(MetadataImageKind kind, ImmutableArray<string> aliases, bool embedInteropTypes, bool hasRecursiveAliases) 98public MetadataReferenceProperties WithAliases(ImmutableArray<string> aliases) 139public ImmutableArray<string> Aliases
MetadataReference\MetadataReferenceResolver.cs (1)
17public abstract ImmutableArray<PortableExecutableReference> ResolveReference(string reference, string? baseFilePath, MetadataReferenceProperties properties);
MetadataReference\ModuleMetadata.cs (2)
165public static ModuleMetadata CreateFromImage(ImmutableArray<byte> peImage) 362public ImmutableArray<string> GetModuleNames()
MetadataReference\PortableExecutableReference.cs (1)
89public new PortableExecutableReference WithAliases(ImmutableArray<string> aliases)
NativePdbWriter\PdbWriter.cs (4)
106var localScopes = methodBody.LocalScopes; 421var allAliases = _metadataWriter.Context.Module.GetAssemblyReferenceAliases(_metadataWriter.Context); 461private void DefineLocalScopes(ImmutableArray<LocalScope> scopes, StandaloneSignatureHandle localSignatureHandleOpt) 665private void EmitSequencePoints(ImmutableArray<SequencePoint> sequencePoints)
Operations\BasicBlock.cs (5)
26private ImmutableArray<ControlFlowBranch> _lazyPredecessors; 30ImmutableArray<IOperation> operations, 54public ImmutableArray<IOperation> Operations { get; } 107public ImmutableArray<ControlFlowBranch> Predecessors 150internal void SetPredecessors(ImmutableArray<ControlFlowBranch> predecessors)
Operations\ControlFlowBranch.cs (13)
18private ImmutableArray<ControlFlowRegion> _lazyLeavingRegions; 19private ImmutableArray<ControlFlowRegion> _lazyFinallyRegions; 20private ImmutableArray<ControlFlowRegion> _lazyEnteringRegions; 58public ImmutableArray<ControlFlowRegion> LeavingRegions 64ImmutableArray<ControlFlowRegion> result; 68result = ImmutableArray<ControlFlowRegion>.Empty; 101public ImmutableArray<ControlFlowRegion> EnteringRegions 107ImmutableArray<ControlFlowRegion> result; 111result = ImmutableArray<ControlFlowRegion>.Empty; 131public ImmutableArray<ControlFlowRegion> FinallyRegions 138ImmutableArray<ControlFlowRegion> leavingRegions = LeavingRegions; 154var result = builder == null ? ImmutableArray<ControlFlowRegion>.Empty : builder.ToImmutableAndFree();
Operations\ControlFlowGraph.cs (4)
35ImmutableArray<BasicBlock> blocks, ControlFlowRegion root, 36ImmutableArray<IMethodSymbol> localFunctions, 212public ImmutableArray<BasicBlock> Blocks { get; } 222public ImmutableArray<IMethodSymbol> LocalFunctions { get; }
Operations\ControlFlowGraphBuilder.BasicBlockBuilder.cs (3)
83_statements?.ToImmutableAndFree() ?? ImmutableArray<IOperation>.Empty, 227public ImmutableArray<ControlFlowBranch> ConvertPredecessorsToBranches(ArrayBuilder<BasicBlock> blocks) 233return ImmutableArray<ControlFlowBranch>.Empty;
Operations\ControlFlowGraphBuilder.Context.cs (3)
22public readonly ImmutableArray<KeyValuePair<IPropertySymbol, IOperation>> AnonymousTypePropertyValues; 24internal Context(IOperation? implicitInstance, INamedTypeSymbol? anonymousType, ImmutableArray<KeyValuePair<IPropertySymbol, IOperation>> anonymousTypePropertyValues) 38ImmutableArray<KeyValuePair<IPropertySymbol, IOperation>>.Empty);
Operations\ControlFlowGraphBuilder.cs (87)
172private static ImmutableArray<BasicBlock> ToImmutableBlocks(ArrayBuilder<BasicBlockBuilder> blockBuilders) 1412return result ?? MakeInvalidOperation(originalOperation.Syntax, originalOperation.Type, ImmutableArray<IOperation>.Empty); 1415private void VisitStatements(ImmutableArray<IOperation> statements) 1438private bool VisitStatementsOneOrAll(IOperation? operation, ImmutableArray<IOperation> statements, int startIndex) 1988private void VisitAndPushArray<T>(ImmutableArray<T> array, Func<T, IOperation>? unwrapper = null) where T : IOperation 1997private ImmutableArray<T> PopArray<T>(ImmutableArray<T> originalArray, Func<IOperation, int, ImmutableArray<T>, T>? wrapper = null) where T : IOperation 2003return ImmutableArray<T>.Empty; 2019private ImmutableArray<T> VisitArray<T>(ImmutableArray<T> originalArray, Func<T, IOperation>? unwrapper = null, Func<IOperation, int, ImmutableArray<T>, T>? wrapper = null) where T : IOperation 2026ImmutableArray<T> visitedArray = PopArray(originalArray, wrapper); 2035private ImmutableArray<IArgumentOperation> VisitArguments(ImmutableArray<IArgumentOperation> arguments, bool instancePushed) 2039var visitedArguments = PopArray(arguments, RewriteArgumentFromArray); 2043private void VisitAndPushArguments(ImmutableArray<IArgumentOperation> arguments, bool instancePushed) 2090private IArgumentOperation RewriteArgumentFromArray(IOperation visitedArgument, int index, ImmutableArray<IArgumentOperation> args) 2123ImmutableArray<IOperation> visitedIndices = VisitArray(operation.Indices); 3300private static IOperation MakeInvalidOperation(SyntaxNode syntax, ITypeSymbol? type, ImmutableArray<IOperation> children) 3344ImmutableArray<IArgumentOperation>.Empty, semanticModel: null, value.Syntax, 3932return new NoneOperation(children: ImmutableArray<IOperation>.Empty, semanticModel: null, operation.Syntax, constantValue: null, isImplicit: true, type: null); 3955private void HandleUsingOperationParts(IOperation resources, IOperation body, IMethodSymbol? disposeMethod, ImmutableArray<IArgumentOperation> disposeArguments, ImmutableArray<ILocalSymbol> locals, bool isAsynchronous, 4112private void AddDisposingFinally(IOperation resource, bool requiresRuntimeConversion, ITypeSymbol iDisposable, IMethodSymbol? disposeMethod, ImmutableArray<IArgumentOperation> disposeArguments, bool isAsynchronous) 4177ImmutableArray<IArgumentOperation> args; 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, 4638var visitedArguments = makeArguments(info.CurrentArguments, ref instance); 4695InvocationOperation makeInvocationDroppingInstanceForStaticMethods(IMethodSymbol method, IOperation instance, ImmutableArray<IArgumentOperation> arguments) 4700InvocationOperation makeInvocation(SyntaxNode syntax, IMethodSymbol method, IOperation? instanceOpt, ImmutableArray<IArgumentOperation> arguments) 4703var visitedArguments = makeArguments(arguments, ref instanceOpt); 4710ImmutableArray<IArgumentOperation> makeArguments(ImmutableArray<IArgumentOperation> arguments, ref IOperation? instance) 4725return ImmutableArray<IArgumentOperation>.Empty; 4735ImmutableArray<ILocalSymbol> locals = operation.Locals; 5469ImmutableArray<ILocalSymbol> locals = getLocals(); 5493ImmutableArray<ILocalSymbol> getLocals() 5495ImmutableArray<ILocalSymbol> l = operation.Locals; 5737ImmutableArray<IOperation> initialization = operation.Before; 5931(IOperation? visitedInstance, ImmutableArray<IArgumentOperation> visitedArguments) = VisitInstanceWithArguments(instance, operation.Arguments); 5946(IOperation visitedInstance, ImmutableArray<IArgumentOperation> visitedArguments) handlePointerAndArguments( 5947IOperation targetPointer, ImmutableArray<IArgumentOperation> arguments) 5951ImmutableArray<IArgumentOperation> visitedArguments = VisitArguments(arguments, instancePushed: false); 5958private (IOperation? visitedInstance, ImmutableArray<IArgumentOperation> visitedArguments) VisitInstanceWithArguments(IOperation? instance, ImmutableArray<IArgumentOperation> arguments) 5966ImmutableArray<IArgumentOperation> visitedArguments = VisitArguments(arguments, instancePushed: hasInstance); 5984ImmutableArray<IArgumentOperation> visitedArgs = VisitArguments(operation.Arguments, instancePushed: false); 6004ImmutableArray<IOperation> visitedArguments = VisitArray(operation.Arguments); 6063var validKinds = ImmutableArray.Create(OperationKind.Invocation, OperationKind.DynamicInvocation, OperationKind.Increment, OperationKind.Literal, 6243ImmutableArray<IArgumentOperation> propertyArguments = PopArray(propertyReference.Arguments, RewriteArgumentFromArray); 6249ImmutableArray<IOperation> indices = PopArray(arrayElementReference.Indices); 6262ImmutableArray<IOperation> arguments = PopArray(dynamicAccess.Arguments); 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, 6489ImmutableArray<IOperation> visitedDimensions = PopArray(operation.DimensionSizes); 6545var elements = VisitArray( 6553wrapper: (IOperation operation, int index, ImmutableArray<IOperation> elements) => 6596return MakeInvalidOperation(operation.Syntax, operation.Type, ImmutableArray<IOperation>.Empty); 6625ImmutableArray<IOperation> rewrittenArguments = VisitArray(operation.Arguments); 6649ImmutableArray<IOperation> rewrittenArguments = VisitArray(operation.Arguments); 6761return new NoneOperation(ImmutableArray<IOperation>.Empty, semanticModel: null, operation.Syntax, operation.Type, operation.GetConstantValue(), IsImplicit(operation)); 6813var arguments = ((IObjectCreationOperation)operation.HandlerCreation).Arguments; 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); 7161(IOperation? visitedInstance, ImmutableArray<IArgumentOperation> visitedArguments) = VisitInstanceWithArguments(instance, operation.Arguments); 7243ImmutableArray<IArgumentOperation> arguments; 7250var value = new InvalidOperation(ImmutableArray<IOperation>.Empty, semanticModel: null, 7263arguments = ImmutableArray<IArgumentOperation>.Empty; 7351(IOperation? visitedInstance, ImmutableArray<IArgumentOperation> visitedArguments) = 7496return new InvalidOperation(ImmutableArray<IOperation>.Empty, semanticModel: null, invalidOperation.Syntax, invalidOperation.Type, invalidOperation.GetConstantValue(), IsImplicit(invalidOperation)); 7532var visitedDimensionSizes = VisitArray(clause.DimensionSizes); 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, 7954var initializers = operation.Initializer.Initializers; 8037var visitedValue = new PropertyReferenceOperation(property, constrainedToType: null, ImmutableArray<IArgumentOperation>.Empty, oldInstance, 8063var target = new PropertyReferenceOperation(property, constrainedToType: null, ImmutableArray<IArgumentOperation>.Empty, implicitReceiver, 8071static bool setsAllProperties(ImmutableArray<IOperation> initializers, IEnumerable<IPropertySymbol> properties)
Operations\ControlFlowGraphBuilder.InterpolatedStringContext.cs (2)
17public readonly ImmutableArray<IInterpolatedStringHandlerCreationOperation> ApplicableCreationOperations; 21public InterpolatedStringHandlerArgumentsContext(ImmutableArray<IInterpolatedStringHandlerCreationOperation> applicableCreationOperations, int startingStackDepth, bool hasReceiver)
Operations\ControlFlowGraphBuilder.RegionBuilder.cs (4)
23public ImmutableArray<ILocalSymbol> Locals; 31public RegionBuilder(ControlFlowRegionKind kind, ITypeSymbol? exceptionType = null, ImmutableArray<ILocalSymbol> locals = default, bool isStackSpillRegion = false) 317ImmutableArray<ControlFlowRegion> subRegions; 332subRegions = ImmutableArray<ControlFlowRegion>.Empty;
Operations\ControlFlowRegion.cs (8)
46public ImmutableArray<ControlFlowRegion> NestedRegions { get; } 51public ImmutableArray<ILocalSymbol> Locals { get; } 56public ImmutableArray<IMethodSymbol> LocalFunctions { get; } 61public ImmutableArray<CaptureId> CaptureIds { get; } 64ImmutableArray<ControlFlowRegion> nestedRegions, 65ImmutableArray<ILocalSymbol> locals, 66ImmutableArray<IMethodSymbol> methods, 67ImmutableArray<CaptureId> captureIds,
Operations\DisposeOperationInfo.cs (2)
12public readonly ImmutableArray<IArgumentOperation> DisposeArguments; 14public DisposeOperationInfo(IMethodSymbol? disposeMethod, ImmutableArray<IArgumentOperation> disposeArguments)
Operations\IOperation.OperationList.cs (2)
36public ImmutableArray<IOperation> ToImmutableArray() 41return ImmutableArray<IOperation>.Empty;
Operations\IOperation.OperationList.Reversed.cs (4)
38public ImmutableArray<IOperation> ToImmutableArray() 44return ImmutableArray<IOperation>.Empty; 58static ImmutableArray<IOperation> reverseArray(ImmutableArray<IOperation> input)
Operations\Loops\ForEachLoopOperationInfo.cs (8)
38public readonly ImmutableArray<IArgumentOperation> GetEnumeratorArguments; 39public readonly ImmutableArray<IArgumentOperation> MoveNextArguments; 40public readonly ImmutableArray<IArgumentOperation> CurrentArguments; 41public readonly ImmutableArray<IArgumentOperation> DisposeArguments; 56ImmutableArray<IArgumentOperation> getEnumeratorArguments = default, 57ImmutableArray<IArgumentOperation> moveNextArguments = default, 58ImmutableArray<IArgumentOperation> currentArguments = default, 59ImmutableArray<IArgumentOperation> disposeArguments = default)
Operations\Operation.cs (3)
156public static ImmutableArray<T> SetParentOperation<T>(ImmutableArray<T> operations, IOperation? parent) where T : IOperation 183internal static void VerifyParentOperation<T>(IOperation? parent, ImmutableArray<T> children) where T : IOperation
Operations\OperationExtensions.cs (4)
128public static ImmutableArray<ILocalSymbol> GetDeclaredVariables(this IVariableDeclarationGroupOperation declarationGroup) 148public static ImmutableArray<ILocalSymbol> GetDeclaredVariables(this IVariableDeclarationOperation declaration) 245var argumentNames = dynamicOperation.ArgumentNames; 312var argumentRefKinds = dynamicOperation.ArgumentRefKinds;
Operations\OperationFactory.cs (1)
11public static IInvalidOperation CreateInvalidOperation(SemanticModel semanticModel, SyntaxNode syntax, ImmutableArray<IOperation> children, bool isImplicit)
Operations\OperationNodes.cs (22)
18public NoneOperation(ImmutableArray<IOperation> children, SemanticModel? semanticModel, SyntaxNode syntax, ITypeSymbol? type, ConstantValue? constantValue, bool isImplicit) : 26internal ImmutableArray<IOperation> Children { get; } 87public InvalidOperation(ImmutableArray<IOperation> children, SemanticModel? semanticModel, SyntaxNode syntax, ITypeSymbol? type, ConstantValue? constantValue, bool isImplicit) : 97internal ImmutableArray<IOperation> Children { get; } 235protected HasDynamicArgumentsExpression(ImmutableArray<IOperation> arguments, ImmutableArray<string?> argumentNames, ImmutableArray<RefKind> argumentRefKinds, SemanticModel? semanticModel, SyntaxNode syntax, ITypeSymbol? type, bool isImplicit) : 244public ImmutableArray<string?> ArgumentNames { get; } 245public ImmutableArray<RefKind> ArgumentRefKinds { get; } 246public ImmutableArray<IOperation> Arguments { get; } 252public DynamicObjectCreationOperation(IObjectOrCollectionInitializerOperation? initializer, ImmutableArray<IOperation> arguments, ImmutableArray<string?> argumentNames, ImmutableArray<RefKind> argumentRefKinds, SemanticModel? semanticModel, SyntaxNode syntax, ITypeSymbol? type, bool isImplicit) : 334public DynamicInvocationOperation(IOperation operation, ImmutableArray<IOperation> arguments, ImmutableArray<string?> argumentNames, ImmutableArray<RefKind> argumentRefKinds, SemanticModel? semanticModel, SyntaxNode syntax, ITypeSymbol? type, bool isImplicit) : 416public DynamicIndexerAccessOperation(IOperation operation, ImmutableArray<IOperation> arguments, ImmutableArray<string?> argumentNames, ImmutableArray<RefKind> argumentRefKinds, SemanticModel? semanticModel, SyntaxNode syntax, ITypeSymbol? type, bool isImplicit) : 688public static BlockOperation CreateTemporaryBlock(ImmutableArray<IOperation> statements, SemanticModel semanticModel, SyntaxNode syntax) 691private BlockOperation(ImmutableArray<IOperation> statements, SemanticModel semanticModel, SyntaxNode syntax) 701Locals = ImmutableArray<ILocalSymbol>.Empty;
PEWriter\CustomDebugInfoWriter.cs (2)
212var dynamicTransformFlags = local.DynamicTransformFlags; 229var dynamicTransformFlags = local.DynamicTransformFlags;
PEWriter\DebugSourceDocument.cs (1)
47public DebugSourceDocument(string location, Guid language, ImmutableArray<byte> checksum, Guid algorithm)
PEWriter\DebugSourceInfo.cs (6)
25public readonly ImmutableArray<byte> Checksum; 30public readonly ImmutableArray<byte> EmbeddedTextBlob; 33ImmutableArray<byte> checksum, 35ImmutableArray<byte> embeddedTextBlob = default) 41ImmutableArray<byte> checksum, 43ImmutableArray<byte> embeddedTextBlob = default)
PEWriter\ExtendedPEBuilder.cs (2)
51protected override ImmutableArray<Section> CreateSections() 53var baseSections = base.CreateSections();
PEWriter\ICustomAttribute.cs (2)
19ImmutableArray<IMetadataExpression> GetArguments(EmitContext context); 29ImmutableArray<IMetadataNamedArgument> GetNamedArguments(EmitContext context);
PEWriter\IFileReference.cs (1)
28ImmutableArray<byte> GetHashValue(AssemblyHashAlgorithm algorithmId);
PEWriter\IImportScope.cs (1)
19ImmutableArray<UsedNamespaceOrType> GetUsedNamespaces(EmitContext context);
PEWriter\InstructionOperandTypes.cs (1)
13internal static OperandType ReadOperandType(ImmutableArray<byte> il, ref int position)
PEWriter\LocalScope.cs (6)
27private readonly ImmutableArray<ILocalDefinition> _constants; 28private readonly ImmutableArray<ILocalDefinition> _locals; 30internal LocalScope(int offset, int endOffset, ImmutableArray<ILocalDefinition> constants, ImmutableArray<ILocalDefinition> locals) 49public ImmutableArray<ILocalDefinition> Constants => _constants.NullToEmpty(); 54public ImmutableArray<ILocalDefinition> Variables => _locals.NullToEmpty();
PEWriter\Members.cs (27)
183ImmutableArray<byte> MappedData 235ImmutableArray<byte> MarshallingDescriptor 264ImmutableArray<ICustomModifier> RefCustomModifiers 307ImmutableArray<ICustomModifier> CustomModifiers 343ImmutableArray<bool> DynamicTransformFlags { get; } 348ImmutableArray<string> TupleElementNames { get; } 388ImmutableArray<ExceptionHandlerRegion> ExceptionRegions 407ImmutableArray<ILocalDefinition> LocalVariables { get; } 425ImmutableArray<byte> IL { get; } 426ImmutableArray<SequencePoint> SequencePoints { get; } 436ImmutableArray<LocalScope> LocalScopes { get; } 467ImmutableArray<StateMachineHoistedLocalScope> StateMachineHoistedLocalScopes { get; } 479ImmutableArray<EncHoistedLocalInfo> StateMachineHoistedLocalSlots { get; } 485ImmutableArray<ITypeReference?> StateMachineAwaiterSlots { get; } 487ImmutableArray<EncClosureInfo> ClosureDebugInfo { get; } 488ImmutableArray<EncLambdaInfo> LambdaDebugInfo { get; } 493ImmutableArray<LambdaRuntimeRudeEditInfo> OrderedLambdaRuntimeRudeEdits { get; } 499/// <see cref="ImmutableArray{SourceSpan}.Empty"/> if not applicable. 501ImmutableArray<SourceSpan> CodeCoverageSpans { get; } 617ImmutableArray<IParameterDefinition> Parameters { get; } 656ImmutableArray<byte> ReturnValueMarshallingDescriptor 726ImmutableArray<byte> MarshallingDescriptor 776ImmutableArray<IParameterDefinition> Parameters { get; } 803ImmutableArray<IParameterTypeInformation> GetParameters(EmitContext context); 808ImmutableArray<ICustomModifier> ReturnValueCustomModifiers 816ImmutableArray<ICustomModifier> RefCustomModifiers 947ImmutableArray<IParameterTypeInformation> ExtraParameters { get; }
PEWriter\MetadataVisitor.cs (5)
65public void Visit(ImmutableArray<ICustomModifier> customModifiers) 198public void Visit(ImmutableArray<ILocalDefinition> localDefinitions) 408public void Visit(ImmutableArray<ExceptionHandlerRegion> exceptionRegions) 425public void Visit(ImmutableArray<IParameterDefinition> parameters) 464public void Visit(ImmutableArray<IParameterTypeInformation> parameterTypeInformations)
PEWriter\MetadataWriter.cs (55)
84private readonly Dictionary<(ImmutableArray<byte>, bool), int> _smallMethodBodies; 88private static readonly ImmutableArray<byte> ThrowNullEncodedBody = 114_signatureIndex = new Dictionary<ISignature, KeyValuePair<BlobHandle, ImmutableArray<byte>>>(module.HintNumberOfMethodDefinitions, ReferenceEqualityComparer.Instance); //ignores field signatures 123_smallMethodBodies = new Dictionary<(ImmutableArray<byte>, bool), int>(ByteSequenceBoolTupleComparer.Instance); 421private ImmutableArray<string>.Enumerator _nonSourceDocumentNameEnumerator; 446private readonly Dictionary<ISignature, KeyValuePair<BlobHandle, ImmutableArray<byte>>> _signatureIndex; 588protected ImmutableArray<IParameterDefinition> GetParametersToEmit(IMethodDefinition methodDef) 592return ImmutableArray<IParameterDefinition>.Empty; 598private ImmutableArray<IParameterDefinition> GetParametersToEmitCore(IMethodDefinition methodDef) 601var parameters = methodDef.Parameters; 1083private BlobHandle GetMarshallingDescriptorHandle(ImmutableArray<byte> descriptor) 1110ImmutableArray<byte> signatureBlob; 1115private BlobHandle GetMethodSignatureHandleAndBlob(IMethodReference methodReference, out ImmutableArray<byte> signatureBlob) 1124KeyValuePair<BlobHandle, ImmutableArray<byte>> existing; 1194SerializeReturnValueAndParameters(signatureEncoder, signature, varargParameters: ImmutableArray<IParameterTypeInformation>.Empty); 1232private BlobHandle GetPermissionSetBlobHandle(ImmutableArray<ICustomAttribute> permissionSet) 1274KeyValuePair<BlobHandle, ImmutableArray<byte>> existing; 1285SerializeReturnValueAndParameters(encoder, propertyDef, ImmutableArray<IParameterTypeInformation>.Empty); 1287var blob = builder.ToImmutableArray(); 1718var typeSystemRowCounts = metadata.GetRowCounts(); 1853public virtual void PopulateEncTables(ImmutableArray<int> typeSystemRowCounts) 1865public PortablePdbBuilder GetPortablePdbBuilder(ImmutableArray<int> typeSystemRowCounts, MethodDefinitionHandle debugEntryPoint, Func<IEnumerable<Blob>, BlobContentId> deterministicIdProviderOpt) 1895private ImmutableArray<IGenericParameter> GetSortedGenericParameters() 1913var sortedGenericParameters = GetSortedGenericParameters(); 1997private void PopulateCustomAttributeTableRows(ImmutableArray<IGenericParameter> sortedGenericParameters) 2225var exportedTypes = module.GetExportedTypes(Context.Diagnostics); 2447ImmutableArray<IGenericParameter> sortedGenericParameters) 2999var exceptionRegions = methodBody.ExceptionRegions; 3045var localVariables = body.LocalVariables; 3096private static byte ReadByte(ImmutableArray<byte> buffer, int pos) 3101private static int ReadInt32(ImmutableArray<byte> buffer, int pos) 3234private void WriteInstructions(Blob finalIL, ImmutableArray<byte> generatedIL, ref UserStringHandle mvidStringHandle, ref Blob mvidStringFixup) 3374private void SerializeMethodBodyExceptionHandlerTable(ExceptionRegionEncoder encoder, ImmutableArray<ExceptionHandlerRegion> regions) 3391private static bool MayUseSmallExceptionHeaders(ImmutableArray<ExceptionHandlerRegion> exceptionRegions) 3465var parameters = customAttribute.Constructor(Context, reportDiagnostics: false).GetParameters(Context); 3466var arguments = customAttribute.GetArguments(Context); 3742private void SerializePermissionSet(ImmutableArray<ICustomAttribute> permissionSet, BlobBuilder writer) 3771private void SerializeReturnValueAndParameters(MethodSignatureEncoder encoder, ISignature signature, ImmutableArray<IParameterTypeInformation> varargParameters) 3773var declaredParameters = signature.GetParameters(Context); 3858SerializeReturnValueAndParameters(signatureEncoder, signature, varargParameters: ImmutableArray<IParameterTypeInformation>.Empty); 4115private void SerializeCustomModifiers(CustomModifiersEncoder encoder, ImmutableArray<ICustomModifier> modifiers) 4153ImmutableArray<LocalSlotDebugInfo> encLocalSlots; 4157var encSlotInfo = methodBody.StateMachineHoistedLocalSlots; 4175internal static ImmutableArray<LocalSlotDebugInfo> GetLocalSlotDebugInfos(ImmutableArray<ILocalDefinition> locals) 4179return ImmutableArray<LocalSlotDebugInfo>.Empty; 4185internal static ImmutableArray<LocalSlotDebugInfo> GetLocalSlotDebugInfos(ImmutableArray<EncHoistedLocalInfo> locals) 4189return ImmutableArray<LocalSlotDebugInfo>.Empty; 4329private class ByteSequenceBoolTupleComparer : IEqualityComparer<(ImmutableArray<byte>, bool)> 4337bool IEqualityComparer<(ImmutableArray<byte>, bool)>.Equals((ImmutableArray<byte>, bool) x, (ImmutableArray<byte>, bool) y) 4342int IEqualityComparer<(ImmutableArray<byte>, bool)>.GetHashCode((ImmutableArray<byte>, bool) x)
PEWriter\MetadataWriter.DynamicAnalysis.cs (8)
33private readonly Dictionary<ImmutableArray<byte>, BlobHandle> _blobs; 50_blobs = new Dictionary<ImmutableArray<byte>, BlobHandle>(1 + methodCountEstimate + 4 * documentCountEstimate, ByteSequenceComparer.Instance); 61_blobs.Add(ImmutableArray<byte>.Empty, default(BlobHandle)); 68var spans = body?.CodeCoverageSpans ?? ImmutableArray<SourceSpan>.Empty; 82private BlobHandle GetOrAddBlob(ImmutableArray<byte> blob) 125ImmutableArray<SourceSpan> spans, 312var blob = entry.Key;
PEWriter\MetadataWriter.PortablePdb.cs (9)
489var dynamicFlags = local.DynamicTransformFlags; 492var value = SerializeBitVector(dynamicFlags); 500var tupleElementNames = local.TupleElementNames; 513private static ImmutableArray<byte> SerializeBitVector(ImmutableArray<bool> vector) 557private static void SerializeTupleElementNames(BlobBuilder builder, ImmutableArray<string> names) 602var scopes = methodBody.StateMachineHoistedLocalScopes; 628ImmutableArray<SequencePoint> sequencePoints, 705private static DebugSourceDocument TryGetSingleDocument(ImmutableArray<SequencePoint> sequencePoints)
PEWriter\ModifiedTypeReference.cs (3)
17private readonly ImmutableArray<ICustomModifier> _customModifiers; 19public ModifiedTypeReference(ITypeReference modifiedType, ImmutableArray<ICustomModifier> customModifiers) 28ImmutableArray<ICustomModifier> IModifiedTypeReference.CustomModifiers
PEWriter\PeWriter.cs (2)
196var portablePdbContentHash = default(ImmutableArray<byte>);
PEWriter\ReferenceIndexer.cs (1)
127private void VisitImports(ImmutableArray<UsedNamespaceOrType> imports)
PEWriter\ReturnValueParameter.cs (3)
38public ImmutableArray<Cci.ICustomModifier> RefCustomModifiers 43public ImmutableArray<Cci.ICustomModifier> CustomModifiers 97public ImmutableArray<byte> MarshallingDescriptor
PEWriter\RootModuleStaticConstructor.cs (35)
19public RootModuleStaticConstructor(ITypeDefinition containingTypeDefinition, ImmutableArray<byte> il) 67public ImmutableArray<IParameterDefinition> Parameters => ImmutableArray<IParameterDefinition>.Empty; 78public ImmutableArray<byte> ReturnValueMarshallingDescriptor => default; 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; 130public ImmutableArray<byte> IL { get; } 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;
PEWriter\RootModuleType.cs (1)
28public void SetStaticConstructorBody(ImmutableArray<byte> il)
PEWriter\Types.cs (9)
50ImmutableArray<int> LowerBounds 70ImmutableArray<int> Sizes 102ImmutableArray<ICustomModifier> CustomModifiers 110ImmutableArray<ICustomModifier> RefCustomModifiers 214ImmutableArray<ITypeReference> GetGenericArguments(EmitContext context); 382ImmutableArray<ICustomModifier> CustomModifiers { get; } 435public ImmutableArray<ICustomAttribute> Attributes { get; } 439ImmutableArray<ICustomAttribute> attributes = default(ImmutableArray<ICustomAttribute>))
ReferenceManager\AssemblyData.cs (2)
29public abstract ImmutableArray<AssemblyIdentity> AssemblyReferences { get; } 34public abstract ImmutableArray<TAssemblySymbol> AvailableSymbols { get; }
ReferenceManager\AssemblyDataForAssemblyBeingBuilt.cs (6)
21private readonly ImmutableArray<AssemblyData> _referencedAssemblyData; 24private readonly ImmutableArray<AssemblyIdentity> _referencedAssemblies; 28ImmutableArray<AssemblyData> referencedAssemblyData, 29ImmutableArray<PEModule> modules) 64public override ImmutableArray<AssemblyIdentity> AssemblyReferences 72public override ImmutableArray<TAssemblySymbol> AvailableSymbols
ReferenceManager\CommonReferenceManager.Binding.cs (33)
94ImmutableArray<AssemblyData> explicitAssemblies, 95ImmutableArray<PEModule> explicitModules, 96ImmutableArray<MetadataReference> explicitReferences, 97ImmutableArray<ResolvedReference> explicitReferenceMap, 102out ImmutableArray<AssemblyData> allAssemblies, 103out ImmutableArray<MetadataReference> implicitlyResolvedReferences, 104out ImmutableArray<ResolvedReference> implicitlyResolvedReferenceMap, 154implicitlyResolvedReferences = ImmutableArray<MetadataReference>.Empty; 155implicitlyResolvedReferenceMap = ImmutableArray<ResolvedReference>.Empty; 209ImmutableArray<AssemblyData> explicitAssemblies, 211ImmutableArray<PEModule> explicitModules, 212ImmutableArray<MetadataReference> explicitReferences, 213ImmutableArray<ResolvedReference> explicitReferenceMap, 219out ImmutableArray<AssemblyData> allAssemblies, 220out ImmutableArray<MetadataReference> metadataReferences, 221out ImmutableArray<ResolvedReference> resolvedReferences, 322resolvedReferences = ImmutableArray<ResolvedReference>.Empty; 323metadataReferences = ImmutableArray<MetadataReference>.Empty; 390ImmutableArray<PEModule> explicitModules, 391ImmutableArray<MetadataReference> explicitReferences, 392ImmutableArray<ResolvedReference> explicitReferenceMap, 400var explicitModuleToReferenceMap = CalculateModuleToReferenceMap(explicitModules, explicitReferenceMap); 438private static ImmutableArray<int> CalculateModuleToReferenceMap(ImmutableArray<PEModule> modules, ImmutableArray<ResolvedReference> resolvedReferences) 442return ImmutableArray<int>.Empty; 460private static ImmutableArray<ResolvedReference> ToResolvedAssemblyReferences( 461ImmutableArray<MetadataReference> references, 590private bool ReuseAssemblySymbolsWithNoPiaLocalTypes(BoundInputAssembly[] boundInputs, TAssemblySymbol[] candidateInputAssemblySymbols, ImmutableArray<AssemblyData> assemblies, int corLibraryIndex) 611ImmutableArray<TAssemblySymbol> resolutionAssemblies = GetNoPiaResolutionAssemblies(candidateAssembly); 726private void ReuseAssemblySymbols(BoundInputAssembly[] boundInputs, TAssemblySymbol[] candidateInputAssemblySymbols, ImmutableArray<AssemblyData> assemblies, int corLibraryIndex) 992private static int IndexOfCorLibrary(ImmutableArray<AssemblyData> assemblies, IReadOnlyDictionary<string, List<ReferencedAssemblyIdentity>> assemblyReferencesBySimpleName, bool supersedeLowerVersions) 1086protected abstract ImmutableArray<TAssemblySymbol> GetNoPiaResolutionAssemblies(TAssemblySymbol candidateAssembly);
ReferenceManager\CommonReferenceManager.Resolution.cs (33)
61private readonly ImmutableArray<string> _aliasesOpt; 62private readonly ImmutableArray<string> _recursiveAliasesOpt; 63private readonly ImmutableArray<MetadataReference> _mergedReferencesOpt; 71_aliasesOpt = default(ImmutableArray<string>); 72_recursiveAliasesOpt = default(ImmutableArray<string>); 73_mergedReferencesOpt = default(ImmutableArray<MetadataReference>); 77public ResolvedReference(int index, MetadataImageKind kind, ImmutableArray<string> aliasesOpt, ImmutableArray<string> recursiveAliasesOpt, ImmutableArray<MetadataReference> mergedReferences) 96public ImmutableArray<string> AliasesOpt 110public ImmutableArray<string> RecursiveAliasesOpt 119public ImmutableArray<MetadataReference> MergedReferences 165private static string DisplayAliases(ImmutableArray<string> aliasesOpt, string name) 210protected ImmutableArray<ResolvedReference> ResolveMetadataReferences( 213out ImmutableArray<MetadataReference> references, 215out ImmutableArray<MetadataReference> boundReferenceDirectives, 216out ImmutableArray<AssemblyData> assemblies, 217out ImmutableArray<PEModule> modules, 221ImmutableArray<Location> referenceDirectiveLocations; 402boundReferenceDirectives = ImmutableArray<MetadataReference>.Empty; 428modules = ImmutableArray<PEModule>.Empty; 441ImmutableArray<string> aliasesOpt, recursiveAliasesOpt; 442var mergedReferences = ImmutableArray<MetadataReference>.Empty; 446aliasesOpt = mergedProperties.AliasesOpt?.ToImmutableAndFree() ?? default(ImmutableArray<string>); 447recursiveAliasesOpt = mergedProperties.RecursiveAliasesOpt?.ToImmutableAndFree() ?? default(ImmutableArray<string>); 456aliasesOpt = default(ImmutableArray<string>); 462recursiveAliasesOpt = default(ImmutableArray<string>); 791out ImmutableArray<MetadataReference> references, 793out ImmutableArray<Location> referenceDirectiveLocations) 855referenceDirectiveLocations = referenceDirectiveLocationsBuilder?.ToImmutableAndFree() ?? ImmutableArray<Location>.Empty; 876var references = compilation.Options.MetadataReferenceResolver.ResolveReference(reference, basePath, MetadataReferenceProperties.Assembly.WithRecursiveAliases(true)); 892ImmutableArray<AssemblyIdentity> references,
ReferenceManager\CommonReferenceManager.State.cs (49)
44internal abstract IEnumerable<(IAssemblySymbolInternal AssemblySymbol, ImmutableArray<string> Aliases)> GetReferencedAssemblyAliases(); 47internal abstract ImmutableArray<MetadataReference> ExplicitReferences { get; } 118private ImmutableArray<MetadataReference> _lazyDirectiveReferences; 120private ImmutableArray<MetadataReference> _lazyExplicitReferences; 142private ImmutableArray<Diagnostic> _lazyDiagnostics; 160private ImmutableArray<PEModule> _lazyReferencedModules; 168private ImmutableArray<ModuleReferences<TAssemblySymbol>> _lazyReferencedModulesReferences; 173private ImmutableArray<TAssemblySymbol> _lazyReferencedAssemblies; 181private ImmutableArray<ImmutableArray<string>> _lazyAliasesOfReferencedAssemblies; 188private ImmutableDictionary<MetadataReference, ImmutableArray<MetadataReference>>? _lazyMergedAssemblyReferencesMap; 193private ImmutableArray<UnifiedAssembly<TAssemblySymbol>> _lazyUnifiedAssemblies; 205internal ImmutableArray<Diagnostic> Diagnostics 250internal ImmutableArray<MetadataReference> DirectiveReferences 268internal override ImmutableArray<MetadataReference> ExplicitReferences 288internal ImmutableArray<PEModule> ReferencedModules 297internal ImmutableArray<ModuleReferences<TAssemblySymbol>> ReferencedModulesReferences 306internal ImmutableArray<TAssemblySymbol> ReferencedAssemblies 315internal ImmutableArray<ImmutableArray<string>> AliasesOfReferencedAssemblies 324internal ImmutableDictionary<MetadataReference, ImmutableArray<MetadataReference>> MergedAssemblyReferencesMap 334internal ImmutableArray<UnifiedAssembly<TAssemblySymbol>> UnifiedAssemblies 412ImmutableArray<MetadataReference> directiveReferences, 413ImmutableArray<MetadataReference> explicitReferences, 416ImmutableArray<Diagnostic> diagnostics, 418ImmutableArray<PEModule> referencedModules, 419ImmutableArray<ModuleReferences<TAssemblySymbol>> referencedModulesReferences, 420ImmutableArray<TAssemblySymbol> referencedAssemblies, 421ImmutableArray<ImmutableArray<string>> aliasesOfReferencedAssemblies, 422ImmutableArray<UnifiedAssembly<TAssemblySymbol>> unifiedAssemblies, 423Dictionary<MetadataReference, ImmutableArray<MetadataReference>>? mergedAssemblyReferencesMapOpt) 444_lazyMergedAssemblyReferencesMap = mergedAssemblyReferencesMapOpt?.ToImmutableDictionary() ?? ImmutableDictionary<MetadataReference, ImmutableArray<MetadataReference>>.Empty; 457private static readonly ImmutableArray<string> s_supersededAlias = ImmutableArray.Create("<superseded>"); 461ImmutableArray<MetadataReference> references, 462ImmutableArray<ResolvedReference> referenceMap, 469out ImmutableArray<ImmutableArray<string>> aliasesOfReferencedAssemblies, 470out Dictionary<MetadataReference, ImmutableArray<MetadataReference>>? mergedAssemblyReferencesMapOpt) 474var aliasesOfReferencedAssembliesBuilder = ArrayBuilder<ImmutableArray<string>>.GetInstance(referenceMap.Length - referencedModuleCount); 504(mergedAssemblyReferencesMapOpt ??= new Dictionary<MetadataReference, ImmutableArray<MetadataReference>>()).Add(reference, referenceMap[i].MergedReferences); 542internal static ImmutableDictionary<AssemblyIdentity, AssemblyIdentity> GetAssemblyReferenceIdentityBaselineMap(ImmutableArray<TAssemblySymbol> symbols, ImmutableArray<AssemblyIdentity> originalIdentities) 615ImmutableArray<ResolvedReference> referenceMap, 616ArrayBuilder<ImmutableArray<string>> aliasesOfReferencedAssembliesBuilder) 628var recursiveAliases = reference.RecursiveAliasesOpt; 668aliasesOfReferencedAssembliesBuilder[i] = ImmutableArray<string>.Empty; 713internal override IEnumerable<(IAssemblySymbolInternal AssemblySymbol, ImmutableArray<string> Aliases)> GetReferencedAssemblyAliases() 723var aliases = AliasesOfReferencedAssemblies[referencedAssemblyIndex];
ReferenceManager\MergedAliases.cs (5)
67internal static void Merge(ArrayBuilder<string> aliases, ImmutableArray<string> newAliases) 77internal static ImmutableArray<string> Merge(ImmutableArray<string> aliasesOpt, ImmutableArray<string> newAliases) 98private static void AddNonIncluded(ArrayBuilder<string> builder, ImmutableArray<string> items)
ReferenceManager\ModuleReferences.cs (6)
24public readonly ImmutableArray<AssemblyIdentity> Identities; 33public readonly ImmutableArray<TAssemblySymbol> Symbols; 39public readonly ImmutableArray<UnifiedAssembly<TAssemblySymbol>> UnifiedAssemblies; 42ImmutableArray<AssemblyIdentity> identities, 43ImmutableArray<TAssemblySymbol> symbols, 44ImmutableArray<UnifiedAssembly<TAssemblySymbol>> unifiedAssemblies)
ResourceDescription.cs (2)
110internal override ImmutableArray<byte> ComputeHash(HashAlgorithm algorithm) 141ImmutableArray<byte> Cci.IFileReference.GetHashValue(AssemblyHashAlgorithm algorithmId)
RuleSet\RuleSet.cs (8)
47private readonly ImmutableArray<RuleSetInclude> _includes; 51public ImmutableArray<RuleSetInclude> Includes 59public RuleSet(string filePath, ReportDiagnostic generalOption, ImmutableDictionary<string, ReportDiagnostic> specificOptions, ImmutableArray<RuleSetInclude> includes) 185return new RuleSet(_filePath, effectiveGeneralOption, effectiveSpecificOptions.ToImmutableDictionary(), ImmutableArray<RuleSetInclude>.Empty); 191private ImmutableArray<string> GetEffectiveIncludes() 200private void GetEffectiveIncludesCore(ImmutableArray<string>.Builder arrayBuilder) 267public static ImmutableArray<string> GetEffectiveIncludesFromFile(string filePath) 275return ImmutableArray<string>.Empty;
SignatureComparer.cs (11)
28public bool MatchFieldSignature(FieldSymbol field, ImmutableArray<byte> signature) 43public bool MatchPropertySignature(PropertySymbol property, ImmutableArray<byte> signature) 51ImmutableArray<ParameterSymbol> parameters = GetParameters(property); 87public bool MatchMethodSignature(MethodSymbol method, ImmutableArray<byte> signature) 95ImmutableArray<ParameterSymbol> parameters = GetParameters(method); 128private bool MatchParameter(ParameterSymbol parameter, ImmutableArray<byte> signature, ref int position) 140private static bool IsByRef(ImmutableArray<byte> signature, ref int position) 161private bool MatchType(TypeSymbol? type, ImmutableArray<byte> signature, ref int position) 236private static short ReadTypeId(ImmutableArray<byte> signature, ref int position) 288protected abstract ImmutableArray<ParameterSymbol> GetParameters(MethodSymbol method); 291protected abstract ImmutableArray<ParameterSymbol> GetParameters(PropertySymbol property);
SourceFileResolver.cs (10)
21public static SourceFileResolver Default { get; } = new SourceFileResolver(ImmutableArray<string>.Empty, baseDirectory: null); 24private readonly ImmutableArray<string> _searchPaths; 25private readonly ImmutableArray<KeyValuePair<string, string>> _pathMap; 32public SourceFileResolver(ImmutableArray<string> searchPaths, string? baseDirectory) 33: this(searchPaths, baseDirectory, ImmutableArray<KeyValuePair<string, string>>.Empty) 38ImmutableArray<string> searchPaths, 40ImmutableArray<KeyValuePair<string, string>> pathMap) 86_pathMap = ImmutableArray<KeyValuePair<string, string>>.Empty; 92public ImmutableArray<string> SearchPaths => _searchPaths; 94public ImmutableArray<KeyValuePair<string, string>> PathMap => _pathMap;
SourceGeneration\AdditionalSourcesCollection.cs (2)
136internal ImmutableArray<GeneratedSourceText> ToImmutableAndFree() => _sourcesAdded.ToImmutableAndFree(); 138internal ImmutableArray<GeneratedSourceText> ToImmutable() => _sourcesAdded.ToImmutable();
SourceGeneration\GeneratorAdaptor.cs (1)
81public ImmutableArray<AdditionalText> AdditionalTexts;
SourceGeneration\GeneratorContexts.cs (4)
24internal GeneratorExecutionContext(Compilation compilation, ParseOptions parseOptions, ImmutableArray<AdditionalText> additionalTexts, AnalyzerConfigOptionsProvider optionsProvider, ISyntaxContextReceiver? syntaxReceiver, string sourceExtension, CancellationToken cancellationToken = default) 55public ImmutableArray<AdditionalText> AdditionalFiles { get; } 111internal (ImmutableArray<GeneratedSourceText> sources, ImmutableArray<Diagnostic> diagnostics) ToImmutableAndFree()
SourceGeneration\GeneratorDriver.cs (32)
37internal GeneratorDriver(ParseOptions parseOptions, ImmutableArray<ISourceGenerator> generators, AnalyzerConfigOptionsProvider optionsProvider, ImmutableArray<AdditionalText> additionalTexts, GeneratorDriverOptions driverOptions) 39var incrementalGenerators = GetIncrementalGenerators(generators, SourceExtension); 66public GeneratorDriver RunGeneratorsAndUpdateCompilation(Compilation compilation, out Compilation outputCompilation, out ImmutableArray<Diagnostic> diagnostics, CancellationToken cancellationToken = default) 85public GeneratorDriver AddGenerators(ImmutableArray<ISourceGenerator> generators) 87var incrementalGenerators = GetIncrementalGenerators(generators, SourceExtension); 94public GeneratorDriver ReplaceGenerators(ImmutableArray<ISourceGenerator> generators) 96var incrementalGenerators = GetIncrementalGenerators(generators, SourceExtension); 116public GeneratorDriver RemoveGenerators(ImmutableArray<ISourceGenerator> generators) 118var newGenerators = _state.Generators; 119var newStates = _state.GeneratorStates; 120var newIncrementalGenerators = _state.IncrementalGenerators; 135public GeneratorDriver AddAdditionalTexts(ImmutableArray<AdditionalText> additionalTexts) 141public GeneratorDriver RemoveAdditionalTexts(ImmutableArray<AdditionalText> additionalTexts) 162public GeneratorDriver ReplaceAdditionalTexts(ImmutableArray<AdditionalText> newTexts) => FromState(_state.With(additionalTexts: newTexts)); 174var results = _state.Generators.ZipAsArray( 187static ImmutableArray<GeneratedSourceResult> getGeneratorSources(GeneratorState generatorState) 209var generatorTimings = _state.Generators.ZipAsArray(_state.GeneratorStates, (generator, generatorState) => new GeneratorTimingInfo(generator, generatorState.ElapsedTime)); 245var postInitSources = ImmutableArray<GeneratedSyntaxTree>.Empty; 259var outputNodes = outputBuilder.ToImmutableAndFree(); 260var inputNodes = inputBuilder.ToImmutableAndFree(); 283var reparsedInitSources = ParseAdditionalSources(sourceGenerator, generatorState.PostInitTrees.SelectAsArray(t => new GeneratedSourceText(t.HintName, t.Text)), cancellationToken); 325(var sources, var generatorDiagnostics, var generatorRunStateTable, var hostOutputs) = context.ToImmutableAndFree(); 354private IncrementalExecutionContext UpdateOutputs(ImmutableArray<IIncrementalGeneratorOutputNode> outputNodes, IncrementalGeneratorOutputKind outputKind, GeneratorRunStateTable.Builder generatorRunStateBuilder, CancellationToken cancellationToken, DriverStateTable.Builder? driverStateBuilder = null) 369private ImmutableArray<GeneratedSyntaxTree> ParseAdditionalSources(ISourceGenerator generator, ImmutableArray<GeneratedSourceText> generatedSources, CancellationToken cancellationToken) 419private static ImmutableArray<Diagnostic> FilterDiagnostics(Compilation compilation, ImmutableArray<Diagnostic> generatorDiagnostics, DiagnosticBag? driverDiagnostics, CancellationToken cancellationToken) 446private static ImmutableArray<IIncrementalGenerator> GetIncrementalGenerators(ImmutableArray<ISourceGenerator> generators, string sourceExtension)
SourceGeneration\GeneratorDriverState.cs (12)
16ImmutableArray<ISourceGenerator> sourceGenerators, 17ImmutableArray<IIncrementalGenerator> incrementalGenerators, 18ImmutableArray<AdditionalText> additionalTexts, 19ImmutableArray<GeneratorState> generatorStates, 48internal readonly ImmutableArray<ISourceGenerator> Generators; 57internal readonly ImmutableArray<IIncrementalGenerator> IncrementalGenerators; 66internal readonly ImmutableArray<GeneratorState> GeneratorStates; 71internal readonly ImmutableArray<AdditionalText> AdditionalTexts; 106ImmutableArray<ISourceGenerator>? sourceGenerators = null, 107ImmutableArray<IIncrementalGenerator>? incrementalGenerators = null, 108ImmutableArray<GeneratorState>? generatorStates = null, 109ImmutableArray<AdditionalText>? additionalTexts = null,
SourceGeneration\GeneratorState.cs (35)
21public static readonly GeneratorState Empty = new GeneratorState(ImmutableArray<GeneratedSyntaxTree>.Empty, 22ImmutableArray<SyntaxInputNode>.Empty, 23ImmutableArray<IIncrementalGeneratorOutputNode>.Empty, 24ImmutableArray<GeneratedSyntaxTree>.Empty, 25ImmutableArray<Diagnostic>.Empty, 26ImmutableDictionary<string, ImmutableArray<IncrementalGeneratorRunStep>>.Empty, 27ImmutableDictionary<string, ImmutableArray<IncrementalGeneratorRunStep>>.Empty, 35public GeneratorState(ImmutableArray<GeneratedSyntaxTree> postInitTrees, ImmutableArray<SyntaxInputNode> inputNodes, ImmutableArray<IIncrementalGeneratorOutputNode> outputNodes) 39ImmutableArray<GeneratedSyntaxTree>.Empty, 40ImmutableArray<Diagnostic>.Empty, 41ImmutableDictionary<string, ImmutableArray<IncrementalGeneratorRunStep>>.Empty, 42ImmutableDictionary<string, ImmutableArray<IncrementalGeneratorRunStep>>.Empty, 50ImmutableArray<GeneratedSyntaxTree> postInitTrees, 51ImmutableArray<SyntaxInputNode> inputNodes, 52ImmutableArray<IIncrementalGeneratorOutputNode> outputNodes, 53ImmutableArray<GeneratedSyntaxTree> generatedTrees, 54ImmutableArray<Diagnostic> diagnostics, 55ImmutableDictionary<string, ImmutableArray<IncrementalGeneratorRunStep>> executedSteps, 56ImmutableDictionary<string, ImmutableArray<IncrementalGeneratorRunStep>> outputSteps, 74public GeneratorState WithResults(ImmutableArray<GeneratedSyntaxTree> generatedTrees, 75ImmutableArray<Diagnostic> diagnostics, 76ImmutableDictionary<string, ImmutableArray<IncrementalGeneratorRunStep>> executedSteps, 77ImmutableDictionary<string, ImmutableArray<IncrementalGeneratorRunStep>> outputSteps, 98ImmutableArray<GeneratedSyntaxTree>.Empty, 100ImmutableDictionary<string, ImmutableArray<IncrementalGeneratorRunStep>>.Empty, 101ImmutableDictionary<string, ImmutableArray<IncrementalGeneratorRunStep>>.Empty, 109internal ImmutableArray<GeneratedSyntaxTree> PostInitTrees { get; } 111internal ImmutableArray<SyntaxInputNode> InputNodes { get; } 113internal ImmutableArray<IIncrementalGeneratorOutputNode> OutputNodes { get; } 115internal ImmutableArray<GeneratedSyntaxTree> GeneratedTrees { get; } 121internal ImmutableArray<Diagnostic> Diagnostics { get; } 123internal ImmutableDictionary<string, ImmutableArray<IncrementalGeneratorRunStep>> ExecutedSteps { get; } 125internal ImmutableDictionary<string, ImmutableArray<IncrementalGeneratorRunStep>> OutputSteps { get; }
SourceGeneration\GlobalAliases.cs (5)
18public static readonly GlobalAliases Empty = new(ImmutableArray<(string aliasName, string symbolName)>.Empty); 20public readonly ImmutableArray<(string aliasName, string symbolName)> AliasAndSymbolNames; 24private GlobalAliases(ImmutableArray<(string aliasName, string symbolName)> aliasAndSymbolNames) 29public static GlobalAliases Create(ImmutableArray<(string aliasName, string symbolName)> aliasAndSymbolNames) 34public static GlobalAliases Create(ImmutableArray<GlobalAliases> aliasesArray)
SourceGeneration\IncrementalContexts.cs (2)
266internal (ImmutableArray<GeneratedSourceText> sources, ImmutableArray<Diagnostic> diagnostics, GeneratorRunStateTable executedSteps, ImmutableDictionary<string, object> hostOutputs) ToImmutableAndFree()
SourceGeneration\IncrementalGeneratorRunStep.cs (4)
16internal IncrementalGeneratorRunStep(string? stepName, ImmutableArray<(IncrementalGeneratorRunStep Source, int OutputIndex)> inputs, ImmutableArray<(object Value, IncrementalStepRunReason OutputState)> outputs, TimeSpan elapsedTime) 27public ImmutableArray<(IncrementalGeneratorRunStep Source, int OutputIndex)> Inputs { get; } 28public ImmutableArray<(object Value, IncrementalStepRunReason Reason)> Outputs { get; }
SourceGeneration\Nodes\BatchNode.cs (19)
14internal sealed class BatchNode<TInput> : IIncrementalGeneratorNode<ImmutableArray<TInput>> 16private static readonly string? s_tableType = typeof(ImmutableArray<TInput>).FullName; 19private readonly IEqualityComparer<ImmutableArray<TInput>> _comparer; 22public BatchNode(IIncrementalGeneratorNode<TInput> sourceNode, IEqualityComparer<ImmutableArray<TInput>>? comparer = null, string? name = null) 25_comparer = comparer ?? EqualityComparer<ImmutableArray<TInput>>.Default; 29public IIncrementalGeneratorNode<ImmutableArray<TInput>> WithComparer(IEqualityComparer<ImmutableArray<TInput>> comparer) => new BatchNode<TInput>(_sourceNode, comparer, _name); 31public IIncrementalGeneratorNode<ImmutableArray<TInput>> WithTrackingName(string name) => new BatchNode<TInput>(_sourceNode, _comparer, name); 33private (ImmutableArray<TInput>, ImmutableArray<(IncrementalGeneratorRunStep InputStep, int OutputIndex)>) GetValuesAndInputs( 35NodeStateTable<ImmutableArray<TInput>>? previousTable, 36NodeStateTable<ImmutableArray<TInput>>.Builder newTable) 52var sourceInputs = sourceInputsBuilder != null ? sourceInputsBuilder.ToImmutableAndFree() : default; 56var result = tryReusePreviousTableValues(entryCount) ?? computeCurrentTableValues(entryCount); 59ImmutableArray<TInput>? tryReusePreviousTableValues(int entryCount) 67var previousItems = previousTable.Single().item; 93ImmutableArray<TInput> computeCurrentTableValues(int entryCount) 111public NodeStateTable<ImmutableArray<TInput>> UpdateStateTable(DriverStateTable.Builder builder, NodeStateTable<ImmutableArray<TInput>>? previousTable, CancellationToken cancellationToken)
SourceGeneration\Nodes\CombineNode.cs (2)
65var stepInputs = tableBuilder.TrackIncrementalSteps ? ImmutableArray.Create((entry1.Step!, entry1.OutputIndex), (input2Step!, 0)) : default; 95var stepInputs = ImmutableArray.Create((entry.Step!, entry.OutputIndex), (input2Step!, 0));
SourceGeneration\Nodes\GeneratorRunStateTable.cs (8)
15private GeneratorRunStateTable(ImmutableDictionary<string, ImmutableArray<IncrementalGeneratorRunStep>> executedSteps, ImmutableDictionary<string, ImmutableArray<IncrementalGeneratorRunStep>> outputSteps) 21public ImmutableDictionary<string, ImmutableArray<IncrementalGeneratorRunStep>> ExecutedSteps { get; } 23public ImmutableDictionary<string, ImmutableArray<IncrementalGeneratorRunStep>> OutputSteps { get; } 57private static ImmutableDictionary<string, ImmutableArray<IncrementalGeneratorRunStep>> StepCollectionToImmutable(Dictionary<string, HashSet<IncrementalGeneratorRunStep>>? builder) 61return ImmutableDictionary<string, ImmutableArray<IncrementalGeneratorRunStep>>.Empty; 64ImmutableDictionary<string, ImmutableArray<IncrementalGeneratorRunStep>>.Builder resultBuilder = ImmutableDictionary.CreateBuilder<string, ImmutableArray<IncrementalGeneratorRunStep>>();
SourceGeneration\Nodes\HostOutputNode.cs (12)
13using OutputType = System.Collections.Immutable.ImmutableArray<(string, object)>; 19internal sealed class HostOutputNode<TInput> : IIncrementalGeneratorOutputNode, IIncrementalGeneratorNode<OutputType> 33public NodeStateTable<OutputType> UpdateStateTable(DriverStateTable.Builder graphState, NodeStateTable<OutputType>? previousTable, CancellationToken cancellationToken) 41return previousTable.CreateCachedTableWithUpdatedSteps(sourceTable, stepName, EqualityComparer<OutputType>.Default); 46var nodeTable = graphState.CreateTableBuilder(previousTable, stepName, EqualityComparer<OutputType>.Default); 49var inputs = nodeTable.TrackIncrementalSteps ? ImmutableArray.Create((entry.Step!, entry.OutputIndex)) : default; 98IIncrementalGeneratorNode<OutputType> IIncrementalGeneratorNode<OutputType>.WithComparer(IEqualityComparer<OutputType> comparer) => throw ExceptionUtilities.Unreachable(); 100public IIncrementalGeneratorNode<OutputType> WithTrackingName(string name) => throw ExceptionUtilities.Unreachable(); 102void IIncrementalGeneratorNode<OutputType>.RegisterOutput(IIncrementalGeneratorOutputNode output) => throw ExceptionUtilities.Unreachable();
SourceGeneration\Nodes\InputNode.cs (7)
24private readonly Func<DriverStateTable.Builder, ImmutableArray<T>> _getInput; 30public InputNode(Func<DriverStateTable.Builder, ImmutableArray<T>> getInput, IEqualityComparer<T>? inputComparer = null) 35private InputNode(Func<DriverStateTable.Builder, ImmutableArray<T>> getInput, Action<IIncrementalGeneratorOutputNode>? registerOutput, IEqualityComparer<T>? inputComparer = null, IEqualityComparer<T>? comparer = null, string? name = null) 47var inputItems = _getInput(graphState); 66var noInputStepsStepInfo = tableBuilder.TrackIncrementalSteps ? ImmutableArray<(IncrementalGeneratorRunStep, int)>.Empty : default; 122private void LogTables(NodeStateTable<T>? previousTable, NodeStateTable<T> newTable, ImmutableArray<T> inputs)
SourceGeneration\Nodes\NodeStateTable.cs (32)
52ImmutableArray<IncrementalGeneratorRunStep> Steps { get; } 63internal static NodeStateTable<T> Empty { get; } = new NodeStateTable<T>(ImmutableArray<TableEntry>.Empty, ImmutableArray<IncrementalGeneratorRunStep>.Empty, hasTrackedSteps: true, isCached: false); 65private readonly ImmutableArray<TableEntry> _states; 67private NodeStateTable(ImmutableArray<TableEntry> states, ImmutableArray<IncrementalGeneratorRunStep> steps, bool hasTrackedSteps, bool isCached) 88public ImmutableArray<IncrementalGeneratorRunStep> Steps { get; } 172return new NodeStateTable<T>(compacted.ToImmutableAndFree(), ImmutableArray<IncrementalGeneratorRunStep>.Empty, hasTrackedSteps: false, isCached: true); 192var inputs = ImmutableArray.Create((entry.Step!, entry.OutputIndex)); 268public bool TryRemoveEntries(TimeSpan elapsedTime, ImmutableArray<(IncrementalGeneratorRunStep InputStep, int OutputIndex)> stepInputs) 284public bool TryRemoveEntries(TimeSpan elapsedTime, ImmutableArray<(IncrementalGeneratorRunStep InputStep, int OutputIndex)> stepInputs, out OneOrMany<T> entries) 296public bool TryUseCachedEntries(TimeSpan elapsedTime, ImmutableArray<(IncrementalGeneratorRunStep InputStep, int OutputIndex)> stepInputs) 311internal bool TryUseCachedEntries(TimeSpan elapsedTime, ImmutableArray<(IncrementalGeneratorRunStep InputStep, int OutputIndex)> stepInputs, out TableEntry entry) 323public bool TryModifyEntry(T value, IEqualityComparer<T> comparer, TimeSpan elapsedTime, ImmutableArray<(IncrementalGeneratorRunStep InputStep, int OutputIndex)> stepInputs, EntryState overallInputState) 344public bool TryModifyEntries(ImmutableArray<T> outputs, IEqualityComparer<T> comparer, TimeSpan elapsedTime, ImmutableArray<(IncrementalGeneratorRunStep InputStep, int OutputIndex)> stepInputs, EntryState overallInputState) 436public bool TryModifyEntries(ImmutableArray<T> outputs, IEqualityComparer<T> comparer, TimeSpan elapsedTime, ImmutableArray<(IncrementalGeneratorRunStep InputStep, int OutputIndex)> stepInputs, EntryState overallInputState, out TableEntry entry) 448public void AddEntry(T value, EntryState state, TimeSpan elapsedTime, ImmutableArray<(IncrementalGeneratorRunStep InputStep, int OutputIndex)> stepInputs, EntryState overallInputState) 455public TableEntry AddEntries(ImmutableArray<T> values, EntryState state, TimeSpan elapsedTime, ImmutableArray<(IncrementalGeneratorRunStep InputStep, int OutputIndex)> stepInputs, EntryState overallInputState) 475private void RecordStepInfoForLastEntry(TimeSpan elapsedTime, ImmutableArray<(IncrementalGeneratorRunStep InputStep, int OutputIndex)> stepInputs, EntryState overallInputState) 501public IReadOnlyList<IncrementalGeneratorRunStep> Steps => (IReadOnlyList<IncrementalGeneratorRunStep>?)_steps ?? ImmutableArray<IncrementalGeneratorRunStep>.Empty; 537ImmutableArray<TableEntry> finalStates; 569private static readonly ImmutableArray<EntryState> s_allAddedEntries = ImmutableArray.Create(EntryState.Added); 570private static readonly ImmutableArray<EntryState> s_allCachedEntries = ImmutableArray.Create(EntryState.Cached); 571private static readonly ImmutableArray<EntryState> s_allModifiedEntries = ImmutableArray.Create(EntryState.Modified); 576private static readonly ImmutableArray<EntryState> s_allRemovedEntries = ImmutableArray.Create(EntryState.Removed); 581private static readonly ImmutableArray<EntryState> s_allRemovedDueToInputRemoval = ImmutableArray.Create(EntryState.Removed); 590private readonly ImmutableArray<EntryState> _states; 595private TableEntry(OneOrMany<T> items, ImmutableArray<EntryState> states, bool anyRemoved) 656private static ImmutableArray<EntryState> GetSingleArray(EntryState state) => state switch
SourceGeneration\Nodes\PredicateSyntaxStrategy.cs (4)
68var noInputStepsStepInfo = _filterTable.TrackIncrementalSteps ? ImmutableArray<(IncrementalGeneratorRunStep, int)>.Empty : default; 86var nodes = getFilteredNodes(root.Value, _owner._filterFunc, cancellationToken); 118static ImmutableArray<SyntaxNode> getFilteredNodes(SyntaxNode root, Func<SyntaxNode, CancellationToken, bool> func, CancellationToken token)
SourceGeneration\Nodes\SourceOutputNode.cs (1)
57var inputs = tableBuilder.TrackIncrementalSteps ? ImmutableArray.Create((entry.Step!, entry.OutputIndex)) : 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\SyntaxValueProvider_ForAttributeWithMetadataName.cs (5)
42public ImmutableArray<AttributeData> Attributes { get; } 48ImmutableArray<AttributeData> attributes) 117var attributes = getMatchingAttributes(targetNode, targetSymbol, fullyQualifiedMetadataName); 137static ImmutableArray<AttributeData> getMatchingAttributes( 156void addMatchingAttributes(ImmutableArray<AttributeData>? attributes)
SourceGeneration\Nodes\SyntaxValueProvider_ForAttributeWithSimpleName.cs (3)
55internal IncrementalValuesProvider<(SyntaxTree tree, ImmutableArray<SyntaxNode> matches)> ForAttributeWithSimpleName( 125private static ImmutableArray<(SyntaxTree Tree, SourceGeneratorSyntaxTreeInfo Info)> GetSourceGeneratorInfo( 151private static ImmutableArray<SyntaxNode> GetMatchingNodes(
SourceGeneration\Nodes\TransformNode.cs (4)
20private readonly Func<TInput, CancellationToken, ImmutableArray<TOutput>> _func; 31public TransformNode(IIncrementalGeneratorNode<TInput> sourceNode, Func<TInput, CancellationToken, ImmutableArray<TOutput>> userFunc, bool wrapUserFunc = false, IEqualityComparer<TOutput>? comparer = null, string? name = null) 71var inputs = tableBuilder.TrackIncrementalSteps ? ImmutableArray.Create((entry.Step!, entry.OutputIndex)) : default; 80ImmutableArray<TOutput> newOutputs;
SourceGeneration\Nodes\ValueSourceExtensions.cs (6)
21public static IncrementalValuesProvider<TResult> SelectMany<TSource, TResult>(this IncrementalValueProvider<TSource> source, Func<TSource, CancellationToken, ImmutableArray<TResult>> selector) => new IncrementalValuesProvider<TResult>(new TransformNode<TSource, TResult>(source.Node, selector, wrapUserFunc: source.CatchAnalyzerExceptions), source.CatchAnalyzerExceptions); 25public static IncrementalValuesProvider<TResult> SelectMany<TSource, TResult>(this IncrementalValuesProvider<TSource> source, Func<TSource, CancellationToken, ImmutableArray<TResult>> selector) => new IncrementalValuesProvider<TResult>(new TransformNode<TSource, TResult>(source.Node, selector, wrapUserFunc: source.CatchAnalyzerExceptions), source.CatchAnalyzerExceptions); 29public static IncrementalValueProvider<ImmutableArray<TSource>> Collect<TSource>(this IncrementalValuesProvider<TSource> source) => new IncrementalValueProvider<ImmutableArray<TSource>>(new BatchNode<TSource>(source.Node), source.CatchAnalyzerExceptions); 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);
SourceGeneration\RunResults.cs (16)
19private ImmutableArray<Diagnostic> _lazyDiagnostics; 21private ImmutableArray<SyntaxTree> _lazyGeneratedTrees; 23internal GeneratorDriverRunResult(ImmutableArray<GeneratorRunResult> results, TimeSpan elapsedTime) 32public ImmutableArray<GeneratorRunResult> Results { get; } 45public ImmutableArray<Diagnostic> Diagnostics 63public ImmutableArray<SyntaxTree> GeneratedTrees 83ImmutableArray<GeneratedSourceResult> generatedSources, 84ImmutableArray<Diagnostic> diagnostics, 85ImmutableDictionary<string, ImmutableArray<IncrementalGeneratorRunStep>> namedSteps, 86ImmutableDictionary<string, ImmutableArray<IncrementalGeneratorRunStep>> outputSteps, 113public ImmutableArray<GeneratedSourceResult> GeneratedSources { get; } 122public ImmutableArray<Diagnostic> Diagnostics { get; } 151public ImmutableDictionary<string, ImmutableArray<IncrementalGeneratorRunStep>> TrackedSteps { get; } 159public ImmutableDictionary<string, ImmutableArray<IncrementalGeneratorRunStep>> TrackedOutputSteps { get; } 198internal GeneratorDriverTimingInfo(TimeSpan elapsedTime, ImmutableArray<GeneratorTimingInfo> generatorTimes) 215public ImmutableArray<GeneratorTimingInfo> GeneratorTimes { get; }
SourceGeneration\SyntaxStore.cs (4)
27public Builder ToBuilder(Compilation compilation, ImmutableArray<SyntaxInputNode> syntaxInputNodes, bool enableTracking, CancellationToken cancellationToken) => new Builder(compilation, syntaxInputNodes, enableTracking, this, cancellationToken); 35private readonly ImmutableArray<SyntaxInputNode> _syntaxInputNodes; 40internal Builder(Compilation compilation, ImmutableArray<SyntaxInputNode> syntaxInputNodes, bool enableTracking, SyntaxStore previousStore, CancellationToken cancellationToken) 158public TimeSpan GetRuntimeAdjustment(ImmutableArray<SyntaxInputNode> inputNodes)
SourceGeneration\UserFunction.cs (1)
75internal static Func<TInput, CancellationToken, ImmutableArray<TOutput>> WrapUserFunctionAsImmutableArray<TInput, TOutput>(this Func<TInput, CancellationToken, IEnumerable<TOutput>> userFunction, bool catchAnalyzerExceptions)
SpecialMembers.cs (1)
13private static readonly ImmutableArray<MemberDescriptor> s_descriptors;
src\Compilers\Core\AnalyzerDriver\DeclarationComputer.cs (2)
23var codeBlocks = executableCodeBlocks?.Where(c => c != null).AsImmutableOrEmpty() ?? ImmutableArray<SyntaxNode>.Empty;
src\Compilers\Core\AnalyzerDriver\DeclarationInfo.cs (2)
15internal DeclarationInfo(SyntaxNode declaredNode, ImmutableArray<SyntaxNode> executableCodeBlocks, ISymbol? declaredSymbol) 37public ImmutableArray<SyntaxNode> ExecutableCodeBlocks { get; }
src\Dependencies\CodeAnalysis.Debugging\CustomDebugInfoEncoder.cs (2)
110public void AddStateMachineHoistedLocalScopes(ImmutableArray<StateMachineHoistedLocalScope> scopes) 169public void AddTupleElementNames(IReadOnlyCollection<(string LocalName, int SlotIndex, int ScopeStart, int ScopeEnd, ImmutableArray<string> Names)> tupleLocals)
src\Dependencies\CodeAnalysis.Debugging\CustomDebugInfoReader.cs (29)
54public static ImmutableArray<byte> TryGetCustomDebugInfoRecord(byte[] customDebugInfo, CustomDebugInfoKind recordKind) 125public static ImmutableArray<short> DecodeUsingRecord(ImmutableArray<byte> bytes) 147public static int DecodeForwardRecord(ImmutableArray<byte> bytes) 161public static int DecodeForwardToModuleRecord(ImmutableArray<byte> bytes) 173public static ImmutableArray<StateMachineHoistedLocalScope> DecodeStateMachineHoistedLocalScopesRecord(ImmutableArray<byte> bytes) 212public static string DecodeForwardIteratorRecord(ImmutableArray<byte> bytes) 241public static ImmutableArray<DynamicLocalInfo> DecodeDynamicLocalsRecord(ImmutableArray<byte> bytes) 300public static ImmutableArray<TupleElementNamesInfo> DecodeTupleElementNamesRecord(ImmutableArray<byte> bytes) 313private static TupleElementNamesInfo DecodeTupleElementNamesInfo(ImmutableArray<byte> bytes, ref int offset) 337public static ImmutableArray<ImmutableArray<string>> GetCSharpGroupedImportStrings<TArg>( 341Func<int, TArg, ImmutableArray<string>> getMethodImportStrings, 342out ImmutableArray<string> externAliasStrings) 346ImmutableArray<short> groupSizes = default; 395var allModuleInfoImportStrings = getMethodImportStrings(moduleInfoMethodToken, arg); 419var importStrings = getMethodImportStrings(methodToken, arg); 422var resultBuilder = ArrayBuilder<ImmutableArray<string>>.GetInstance(groupSizes.Length); 485public static ImmutableArray<string> GetVisualBasicImportStrings<TArg>( 488Func<int, TArg, ImmutableArray<string>> getMethodImportStrings) 490var importStrings = getMethodImportStrings(methodToken, arg); 495return ImmutableArray<string>.Empty; 518private static int ReadInt32(ImmutableArray<byte> bytes, ref int offset) 530private static short ReadInt16(ImmutableArray<byte> bytes, ref int offset) 542private static byte ReadByte(ImmutableArray<byte> bytes, ref int offset) 851private static string ReadUtf8String(ImmutableArray<byte> bytes, ref int offset)
src\Dependencies\CodeAnalysis.Debugging\CustomDebugInfoRecord.cs (2)
15public readonly ImmutableArray<byte> Data; 17public CustomDebugInfoRecord(CustomDebugInfoKind kind, byte version, ImmutableArray<byte> data)
src\Dependencies\CodeAnalysis.Debugging\DynamicLocalInfo.cs (2)
13public readonly ImmutableArray<bool> Flags; 17public DynamicLocalInfo(ImmutableArray<bool> flags, int slotId, string localName)
src\Dependencies\CodeAnalysis.Debugging\TupleElementNamesInfo.cs (2)
14internal readonly ImmutableArray<string> ElementNames; 20internal TupleElementNamesInfo(ImmutableArray<string> elementNames, int slotIndex, string localName, int scopeStart, int scopeEnd)
src\Dependencies\Collections\ImmutableSegmentedDictionary`2.cs (1)
21/// the scenarios where <see cref="ImmutableArray{T}"/> is applicable, and
src\Dependencies\Collections\Internal\HashHelpers.cs (1)
38private static readonly ImmutableArray<int> s_primes = ImmutableArray.Create(
src\Dependencies\Collections\RoslynImmutableInterlocked.cs (4)
616public static ImmutableArray<T> VolatileRead<T>(ref readonly ImmutableArray<T> location) 630public static void VolatileWrite<T>(ref ImmutableArray<T> location, ImmutableArray<T> value)
src\Dependencies\PooledObjects\ArrayBuilder.cs (23)
54private readonly ImmutableArray<T>.Builder _builder; 76public ImmutableArray<T> ToImmutable() 84public ImmutableArray<T> ToImmutableAndClear() 86ImmutableArray<T> result; 89result = ImmutableArray<T>.Empty; 353public ImmutableArray<T> ToImmutableOrNull() 366public ImmutableArray<U> ToDowncastedImmutable<U>() 371return ImmutableArray<U>.Empty; 383public ImmutableArray<U> ToDowncastedImmutableAndFree<U>() where U : T 385var result = ToDowncastedImmutable<U>(); 393public ImmutableArray<T> ToImmutableAndFree() 397ImmutableArray<T> result; 400result = ImmutableArray<T>.Empty; 516internal Dictionary<K, ImmutableArray<T>> ToDictionary<K>(Func<T, K> keySelector, IEqualityComparer<K>? comparer = null) 521var dictionary1 = new Dictionary<K, ImmutableArray<T>>(1, comparer); 529return new Dictionary<K, ImmutableArray<T>>(comparer); 548var dictionary = new Dictionary<K, ImmutableArray<T>>(accumulator.Count, comparer); 587public void AddRange(ImmutableArray<T> items) 592public void AddRange(ImmutableArray<T> items, int length) 597public void AddRange(ImmutableArray<T> items, int start, int length) 607public void AddRange<S>(ImmutableArray<S> items) where S : class, T 609AddRange(ImmutableArray<T>.CastUp(items)); 706public ImmutableArray<S> SelectDistinct<S>(Func<T, S> selector)
StrongName\CryptoBlobParser.cs (6)
76private static readonly ImmutableArray<byte> s_ecmaKey = ImmutableArray.Create(new byte[] { 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0 }); 90internal static bool IsValidPublicKey(ImmutableArray<byte> blob) 153private static ImmutableArray<byte> CreateSnPublicKeyBlob( 195public static bool TryParseKey(ImmutableArray<byte> blob, out ImmutableArray<byte> snKey, out RSAParameters? privateKey) 198snKey = default(ImmutableArray<byte>);
StrongName\DesktopStrongNameProvider.cs (13)
36private readonly ImmutableArray<string> _keyFileSearchPaths; 39public DesktopStrongNameProvider(ImmutableArray<string> keyFileSearchPaths) : this(keyFileSearchPaths, StrongNameFileSystem.Instance) 48public DesktopStrongNameProvider(ImmutableArray<string> keyFileSearchPaths = default, string? tempPath = null) 54internal DesktopStrongNameProvider(ImmutableArray<string> keyFileSearchPaths, StrongNameFileSystem strongNameFileSystem) 67var keyPair = default(ImmutableArray<byte>); 68var publicKey = default(ImmutableArray<byte>); 82var fileContent = ImmutableArray.Create(FileSystem.ReadAllBytes(resolvedKeyFile)); 115internal static string? ResolveStrongNameKeyFile(string path, StrongNameFileSystem fileSystem, ImmutableArray<string> keyFileSearchPaths) 145internal virtual void ReadKeysFromContainer(string keyContainer, out ImmutableArray<byte> publicKey) 208internal ImmutableArray<byte> GetPublicKey(string keyContainer) 243private unsafe void Sign(string filePath, ImmutableArray<byte> keyPair)
StrongName\StrongNameKeys.cs (13)
21internal readonly ImmutableArray<byte> KeyPair; 26internal readonly ImmutableArray<byte> PublicKey; 75internal StrongNameKeys(ImmutableArray<byte> keyPair, ImmutableArray<byte> publicKey, RSAParameters? privateKey, string? keyContainerName, string? keyFilePath, bool hasCounterSignature) 88internal static StrongNameKeys Create(ImmutableArray<byte> publicKey, RSAParameters? privateKey, bool hasCounterSignature, CommonMessageProvider messageProvider) 112var fileContent = ImmutableArray.Create(File.ReadAllBytes(keyFilePath)); 125private static Tuple<ImmutableArray<byte>, ImmutableArray<byte>, RSAParameters?>? s_lastSeenKeyPair; 128internal static StrongNameKeys CreateHelper(ImmutableArray<byte> keyFileContent, string keyFilePath, bool hasCounterSignature) 130ImmutableArray<byte> keyPair; 131ImmutableArray<byte> publicKey; 159cachedKeyPair = new Tuple<ImmutableArray<byte>, ImmutableArray<byte>, RSAParameters?>(keyPair, publicKey, privateKey);
SymbolDisplay\AbstractSymbolDisplayVisitor_Minimal.cs (3)
25ImmutableArray<ISymbol> normalSymbols = ShouldRestrictMinimallyQualifyLookupToNamespacesAndTypes() 44ImmutableArray<ISymbol> typeOnlySymbols = SemanticModelOpt.LookupNamespacesAndTypes(PositionOpt, name: symbol.Name); 62private static ISymbol? SingleSymbolWithArity(ImmutableArray<ISymbol> candidates, int desiredArity)
SymbolDisplay\SymbolDisplayExtensions.cs (1)
23public static string ToDisplayString(this ImmutableArray<SymbolDisplayPart> parts)
Symbols\Attributes\AttributeDescription.cs (1)
104internal static ImmutableArray<TypeHandleTargetInfo> TypeHandleTargets;
Symbols\Attributes\CommonAttributeData.cs (12)
42public ImmutableArray<TypedConstant> ConstructorArguments { get { return CommonConstructorArguments; } } 43protected internal abstract ImmutableArray<TypedConstant> CommonConstructorArguments { get; } 48public ImmutableArray<KeyValuePair<string, TypedConstant>> NamedArguments { get { return CommonNamedArguments; } } 49protected internal abstract ImmutableArray<KeyValuePair<string, TypedConstant>> CommonNamedArguments { get; } 149var constructorArgs = this.CommonConstructorArguments; 170private static T? DecodeNamedArgument<T>(ImmutableArray<KeyValuePair<string, TypedConstant>> namedArguments, string name, SpecialType specialType, T? defaultValue = default) 176private static int IndexOfNamedArgument(ImmutableArray<KeyValuePair<string, TypedConstant>> namedArguments, string name) 204var parameters = AttributeConstructor.Parameters; 205ImmutableArray<TypedConstant> args = this.CommonConstructorArguments; 312ImmutableArray<TypedConstant> args = this.CommonConstructorArguments; 369var args = this.CommonConstructorArguments; 562internal static AttributeUsageInfo DecodeAttributeUsageAttribute(TypedConstant positionalArg, ImmutableArray<KeyValuePair<string, TypedConstant>> namedArgs)
Symbols\Attributes\CommonAttributeDataComparer.cs (2)
52private static int GetHashCodeForConstructorArguments(ImmutableArray<TypedConstant> constructorArguments) 64private static int GetHashCodeForNamedArguments(ImmutableArray<KeyValuePair<string, TypedConstant>> namedArguments)
Symbols\Attributes\CommonMethodEarlyWellKnownAttributeData.cs (3)
17private ImmutableArray<string?> _lazyConditionalSymbols = ImmutableArray<string?>.Empty; 26public ImmutableArray<string?> ConditionalSymbols
Symbols\Attributes\CommonTypeEarlyWellKnownAttributeData.cs (3)
55private ImmutableArray<string> _lazyConditionalSymbols = ImmutableArray<string>.Empty; 64public ImmutableArray<string> ConditionalSymbols
Symbols\Attributes\CustomAttributesBag.cs (9)
22private ImmutableArray<T> _customAttributes; 30public static readonly CustomAttributesBag<T> Empty = new CustomAttributesBag<T>(CustomAttributeBagCompletionPart.All, ImmutableArray<T>.Empty); 32private CustomAttributesBag(CustomAttributeBagCompletionPart part, ImmutableArray<T> customAttributes) 39: this(CustomAttributeBagCompletionPart.None, default(ImmutableArray<T>)) 48return new CustomAttributesBag<T>(CustomAttributeBagCompletionPart.EarlyDecodedWellKnownAttributeData | CustomAttributeBagCompletionPart.DecodedWellKnownAttributeData, default(ImmutableArray<T>)); 98public bool SetAttributes(ImmutableArray<T> newCustomAttributes) 101var setOnOurThread = ImmutableInterlocked.InterlockedCompareExchange(ref _customAttributes, newCustomAttributes, default(ImmutableArray<T>)) == default(ImmutableArray<T>); 110public ImmutableArray<T> Attributes
Symbols\Attributes\IMemberNotNullAttributeTarget.cs (3)
18ImmutableArray<string> NotNullMembers { get; } 24ImmutableArray<string> NotNullWhenTrueMembers { get; } 26ImmutableArray<string> NotNullWhenFalseMembers { get; }
Symbols\Attributes\SecurityWellKnownAttributeData.cs (1)
61public IEnumerable<Cci.SecurityAttribute> GetSecurityAttributes<T>(ImmutableArray<T> customAttributes)
Symbols\CustomModifiersTuple.cs (10)
11private readonly ImmutableArray<CustomModifier> _typeCustomModifiers; 12private readonly ImmutableArray<CustomModifier> _refCustomModifiers; 13public static readonly CustomModifiersTuple Empty = new CustomModifiersTuple(ImmutableArray<CustomModifier>.Empty, ImmutableArray<CustomModifier>.Empty); 15private CustomModifiersTuple(ImmutableArray<CustomModifier> typeCustomModifiers, ImmutableArray<CustomModifier> refCustomModifiers) 21public static CustomModifiersTuple Create(ImmutableArray<CustomModifier> typeCustomModifiers, ImmutableArray<CustomModifier> refCustomModifiers) 31public ImmutableArray<CustomModifier> TypeCustomModifiers { get { return _typeCustomModifiers; } } 32public ImmutableArray<CustomModifier> RefCustomModifiers { get { return _refCustomModifiers; } }
Symbols\IArrayTypeSymbol.cs (3)
38ImmutableArray<int> LowerBounds { get; } 45ImmutableArray<int> Sizes { get; } 60ImmutableArray<CustomModifier> CustomModifiers { get; }
Symbols\IAssemblySymbol.cs (1)
81ImmutableArray<INamedTypeSymbol> GetForwardedTypes();
Symbols\IAssemblySymbolInternal.cs (1)
22IEnumerable<ImmutableArray<byte>> GetInternalsVisibleToPublicKeys(string simpleName);
Symbols\IErrorTypeSymbol.cs (1)
33ImmutableArray<ISymbol> CandidateSymbols { get; }
Symbols\IEventSymbol.cs (1)
67ImmutableArray<IEventSymbol> ExplicitInterfaceImplementations { get; }
Symbols\IFieldSymbol.cs (2)
72ImmutableArray<CustomModifier> RefCustomModifiers { get; } 99ImmutableArray<CustomModifier> CustomModifiers { get; }
Symbols\IMethodSymbol.cs (11)
106ImmutableArray<ITypeSymbol> TypeArguments { get; } 113ImmutableArray<NullableAnnotation> TypeArgumentNullableAnnotations { get; } 119ImmutableArray<ITypeParameterSymbol> TypeParameters { get; } 125ImmutableArray<IParameterSymbol> Parameters { get; } 200ImmutableArray<IMethodSymbol> ExplicitInterfaceImplementations { get; } 205ImmutableArray<CustomModifier> ReturnTypeCustomModifiers { get; } 210ImmutableArray<CustomModifier> RefCustomModifiers { get; } 215ImmutableArray<AttributeData> GetReturnTypeAttributes(); 227ImmutableArray<INamedTypeSymbol> UnmanagedCallingConventionTypes { get; } 252IMethodSymbol Construct(ImmutableArray<ITypeSymbol> typeArguments, ImmutableArray<NullableAnnotation> typeArgumentNullableAnnotations);
Symbols\IMethodSymbolInternal.cs (1)
35ImmutableArray<IParameterSymbolInternal> Parameters { get; }
Symbols\IModuleSymbol.cs (2)
35ImmutableArray<AssemblyIdentity> ReferencedAssemblies { get; } 42ImmutableArray<IAssemblySymbol> ReferencedAssemblySymbols { get; }
Symbols\INamedTypeSymbol.cs (10)
73ImmutableArray<ITypeParameterSymbol> TypeParameters { get; } 80ImmutableArray<ITypeSymbol> TypeArguments { get; } 87ImmutableArray<NullableAnnotation> TypeArgumentNullableAnnotations { get; } 94ImmutableArray<CustomModifier> GetTypeArgumentCustomModifiers(int ordinal); 135INamedTypeSymbol Construct(ImmutableArray<ITypeSymbol> typeArguments, ImmutableArray<NullableAnnotation> typeArgumentNullableAnnotations); 145ImmutableArray<IMethodSymbol> InstanceConstructors { get; } 150ImmutableArray<IMethodSymbol> StaticConstructors { get; } 155ImmutableArray<IMethodSymbol> Constructors { get; } 186ImmutableArray<IFieldSymbol> TupleElements { get; }
Symbols\INamedTypeSymbolInternal.cs (2)
18ImmutableArray<ISymbolInternal> GetMembers(); 19ImmutableArray<ISymbolInternal> GetMembers(string name);
Symbols\INamespaceOrTypeSymbol.cs (5)
25ImmutableArray<ISymbol> GetMembers(); 32ImmutableArray<ISymbol> GetMembers(string name); 39ImmutableArray<INamedTypeSymbol> GetTypeMembers(); 47ImmutableArray<INamedTypeSymbol> GetTypeMembers(string name); 55ImmutableArray<INamedTypeSymbol> GetTypeMembers(string name, int arity);
Symbols\INamespaceSymbol.cs (1)
60ImmutableArray<INamespaceSymbol> ConstituentNamespaces { get; }
Symbols\IParameterSymbol.cs (2)
73ImmutableArray<CustomModifier> CustomModifiers { get; } 78ImmutableArray<CustomModifier> RefCustomModifiers { get; }
Symbols\IPointerTypeSymbol.cs (1)
33ImmutableArray<CustomModifier> CustomModifiers { get; }
Symbols\IPropertySymbol.cs (4)
72ImmutableArray<IParameterSymbol> Parameters { get; } 102ImmutableArray<IPropertySymbol> ExplicitInterfaceImplementations { get; } 107ImmutableArray<CustomModifier> RefCustomModifiers { get; } 112ImmutableArray<CustomModifier> TypeCustomModifiers { get; }
Symbols\ISymbol.cs (6)
171ImmutableArray<Location> Locations { get; } 190ImmutableArray<SyntaxReference> DeclaringSyntaxReferences { get; } 193/// Gets the attributes for the symbol. Returns an empty <see cref="ImmutableArray{AttributeData}"/> 196ImmutableArray<AttributeData> GetAttributes(); 244ImmutableArray<SymbolDisplayPart> ToDisplayParts(SymbolDisplayFormat? format = null); 271ImmutableArray<SymbolDisplayPart> ToMinimalDisplayParts(
Symbols\ISymbolExtensions.cs (1)
174var members = type.GetMembers(name);
Symbols\ISymbolExtensions_PerformIVTCheck.cs (2)
21ImmutableArray<byte> assemblyWantingAccessKey, 22ImmutableArray<byte> grantedToPublicKey)
Symbols\ISymbolInternal.cs (1)
97ImmutableArray<Location> Locations { get; }
Symbols\ITypeParameterSymbol.cs (2)
85ImmutableArray<ITypeSymbol> ConstraintTypes { get; } 91ImmutableArray<NullableAnnotation> ConstraintNullableAnnotations { get; }
Symbols\ITypeSymbol.cs (4)
39ImmutableArray<INamedTypeSymbol> Interfaces { get; } 52ImmutableArray<INamedTypeSymbol> AllInterfaces { get; } 153ImmutableArray<SymbolDisplayPart> ToDisplayParts(NullableFlowState topLevelNullability, SymbolDisplayFormat? format = null); 181ImmutableArray<SymbolDisplayPart> ToMinimalDisplayParts(
Symbols\TypedConstant.cs (4)
25Debug.Assert(kind == TypedConstantKind.Array || !(value is ImmutableArray<TypedConstant>)); 34internal TypedConstant(ITypeSymbolInternal type, ImmutableArray<TypedConstant> array) 111public ImmutableArray<TypedConstant> Values 125return (ImmutableArray<TypedConstant>)_value!;
Symbols\TypedConstantValue.cs (5)
29internal TypedConstantValue(ImmutableArray<TypedConstant> array) 45public ImmutableArray<TypedConstant> Array 49return _value == null ? default(ImmutableArray<TypedConstant>) : (ImmutableArray<TypedConstant>)_value; 57Debug.Assert(!(_value is ImmutableArray<TypedConstant>));
Syntax\LineDirectiveMap.cs (2)
25internal readonly ImmutableArray<LineMappingEntry> Entries; 139private ImmutableArray<LineMappingEntry> CreateEntryMap(SyntaxTree tree, IList<TDirective> directives)
Syntax\SyntaxTree.cs (1)
30private ImmutableArray<byte> _lazyChecksum;
Text\ChangedText.cs (13)
19public ChangedText(SourceText oldText, SourceText newText, ImmutableArray<TextChangeRange> changeRanges) 34SourceText oldText, SourceText newText, ImmutableArray<TextChangeRange> changeRanges) 61public ImmutableArray<TextChangeRange> ChangeRanges { get; } 69public ChangeInfo(ImmutableArray<TextChangeRange> changeRanges, WeakReference<SourceText> weakOldText, ChangeInfo? previous) 122internal override ImmutableArray<SourceText> Segments 223private static IReadOnlyList<ImmutableArray<TextChangeRange>> GetChangesBetween(SourceText oldText, ChangedText newText) 225var list = new List<ImmutableArray<TextChangeRange>>(); 252private static ImmutableArray<TextChangeRange> Merge(IReadOnlyList<ImmutableArray<TextChangeRange>> changeSets) 256var merged = changeSets[0]; 270public static ImmutableArray<TextChangeRange> Merge(ImmutableArray<TextChangeRange> oldChanges, ImmutableArray<TextChangeRange> newChanges)
Text\CompositeText.cs (4)
22private readonly ImmutableArray<SourceText> _segments; 28private CompositeText(ImmutableArray<SourceText> segments, Encoding? encoding, SourceHashAlgorithm checksumAlgorithm) 67internal override ImmutableArray<SourceText> Segments 431private readonly ImmutableArray<int> _segmentLineNumbers;
Text\LargeText.cs (13)
28private readonly ImmutableArray<char[]> _chunks; 33internal LargeText(ImmutableArray<char[]> chunks, Encoding? encodingOpt, ImmutableArray<byte> checksum, SourceHashAlgorithm checksumAlgorithm, ImmutableArray<byte> embeddedTextBlob) 50internal LargeText(ImmutableArray<char[]> chunks, Encoding? encodingOpt, SourceHashAlgorithm checksumAlgorithm) 51: this(chunks, encodingOpt, default(ImmutableArray<byte>), checksumAlgorithm, default(ImmutableArray<byte>)) 71var chunks = ReadChunksFromTextReader(reader, maxCharRemainingGuess, throwIfBinaryDetected); 75var checksum = CalculateChecksum(stream, checksumAlgorithm); 76var embeddedTextBlob = canBeEmbedded ? EmbeddedText.CreateBlob(stream) : default(ImmutableArray<byte>); 89var chunks = ReadChunksFromTextReader(reader, length, throwIfBinaryDetected: false); 94private static ImmutableArray<char[]> ReadChunksFromTextReader(TextReader reader, int maxCharRemainingGuess, bool throwIfBinaryDetected)
Text\LargeTextWriter.cs (2)
33return new LargeText(_chunks.ToImmutableAndFree(), _encoding, default(ImmutableArray<byte>), _checksumAlgorithm, default(ImmutableArray<byte>));
Text\SourceText.cs (23)
43private ImmutableArray<byte> _lazyChecksum; 44private readonly ImmutableArray<byte> _precomputedEmbeddedTextBlob; 46private ImmutableArray<byte> _lazyContentHash; 50protected SourceText(ImmutableArray<byte> checksum = default, SourceHashAlgorithm checksumAlgorithm = SourceHashAlgorithm.Sha1, SourceTextContainer? container = null) 64internal SourceText(ImmutableArray<byte> checksum, SourceHashAlgorithm checksumAlgorithm, ImmutableArray<byte> embeddedTextBlob) 74_precomputedEmbeddedTextBlob = ImmutableArray<byte>.Empty; 218var checksum = CalculateChecksum(stream, checksumAlgorithm); 219var embeddedTextBlob = canBeEmbedded ? EmbeddedText.CreateBlob(stream) : default(ImmutableArray<byte>); 277var checksum = CalculateChecksum(buffer, 0, length, checksumAlgorithm); 278var embeddedTextBlob = canBeEmbedded ? EmbeddedText.CreateBlob(new ArraySegment<byte>(buffer, 0, length)) : default(ImmutableArray<byte>); 410internal virtual ImmutableArray<SourceText> Segments 412get { return ImmutableArray<SourceText>.Empty; } 454internal ImmutableArray<byte> PrecomputedEmbeddedTextBlob => _precomputedEmbeddedTextBlob; 595public ImmutableArray<byte> GetChecksum() 620public ImmutableArray<byte> GetContentHash() 629ImmutableArray<byte> computeContentHash() 683internal static ImmutableArray<byte> CalculateChecksum(byte[] buffer, int offset, int count, SourceHashAlgorithm algorithmId) 692internal static ImmutableArray<byte> CalculateChecksum(Stream stream, SourceHashAlgorithm algorithmId) 1157var leftContentHash = _lazyContentHash; 1158var rightContentHash = other._lazyContentHash;
Text\SourceTextComparer.cs (1)
35var checksum = obj.GetChecksum();
Text\StringText.cs (4)
26ImmutableArray<byte> checksum = default(ImmutableArray<byte>), 28ImmutableArray<byte> embeddedTextBlob = default(ImmutableArray<byte>))
Text\TextChangeRangeExtensions.cs (5)
117public static ImmutableArray<TextChangeRange> Merge(ImmutableArray<TextChangeRange> oldChanges, ImmutableArray<TextChangeRange> newChanges) 406/// Represents a new change being processed by <see cref="Merge(ImmutableArray&lt;TextChangeRange&gt;, ImmutableArray&lt;TextChangeRange&gt;)"/>.
TreeDumper.cs (1)
190if (ti.IsGenericType && ti.GetGenericTypeDefinition() == typeof(ImmutableArray<>))
WellKnownMembers.cs (1)
14private static readonly ImmutableArray<MemberDescriptor> s_descriptors;
Microsoft.CodeAnalysis.CodeStyle (794)
src\Analyzers\Core\Analyzers\AbstractBuiltInCodeStyleDiagnosticAnalyzer.cs (2)
83protected AbstractBuiltInCodeStyleDiagnosticAnalyzer(ImmutableArray<(DiagnosticDescriptor Descriptor, IOption2 Option)> supportedDiagnosticsWithOptions) 96protected AbstractBuiltInCodeStyleDiagnosticAnalyzer(ImmutableArray<(DiagnosticDescriptor Descriptor, ImmutableHashSet<IOption2> Options)> supportedDiagnosticsWithOptions)
src\Analyzers\Core\Analyzers\AbstractBuiltInCodeStyleDiagnosticAnalyzer_Core.cs (3)
38protected AbstractBuiltInCodeStyleDiagnosticAnalyzer(ImmutableArray<DiagnosticDescriptor> supportedDiagnostics) 47public sealed override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } 120ImmutableArray<NotificationOption2> notifications,
src\Analyzers\Core\Analyzers\AbstractBuiltInUnnecessaryCodeStyleDiagnosticAnalyzer.cs (3)
88protected AbstractBuiltInUnnecessaryCodeStyleDiagnosticAnalyzer(ImmutableArray<DiagnosticDescriptor> descriptors, PerLanguageOption2<bool> fadingOption) 103protected AbstractBuiltInUnnecessaryCodeStyleDiagnosticAnalyzer(ImmutableArray<(DiagnosticDescriptor Descriptor, IOption2 Option)> supportedDiagnosticsWithOptions, PerLanguageOption2<bool>? fadingOption) 112protected AbstractBuiltInUnnecessaryCodeStyleDiagnosticAnalyzer(ImmutableArray<(DiagnosticDescriptor Descriptor, ImmutableHashSet<IOption2> Options)> supportedDiagnosticsWithOptions, PerLanguageOption2<bool>? fadingOption)
src\Analyzers\Core\Analyzers\AbstractCodeQualityDiagnosticAnalyzer.cs (2)
17ImmutableArray<DiagnosticDescriptor> descriptors, 25public sealed override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; }
src\Analyzers\Core\Analyzers\AddRequiredParentheses\AbstractAddRequiredParenthesesDiagnosticAnalyzer.cs (4)
58protected static ImmutableArray<string> GetAllEquivalenceKeys() 85protected abstract ImmutableArray<TLanguageKindEnum> GetSyntaxNodeKinds(); 122var additionalLocations = ImmutableArray.Create(binaryLike.GetLocation()); 135NotificationOption2 notificationOption, ImmutableArray<Location> additionalLocations,
src\Analyzers\Core\Analyzers\ForEachCast\AbstractForEachCastDiagnosticAnalyzer.cs (1)
40protected abstract ImmutableArray<TSyntaxKind> GetSyntaxKinds();
src\Analyzers\Core\Analyzers\Helpers\DiagnosticHelper.cs (8)
93ImmutableArray<Location> additionalLocations, 94ImmutableArray<Location> additionalUnnecessaryLocations, 113ImmutableArray<Location> additionalLocations, 114ImmutableArray<Location> additionalUnnecessaryLocations) 161ImmutableArray<Location> additionalLocations, 162ImmutableArray<Location> additionalUnnecessaryLocations, 183ImmutableArray<Location> additionalLocations, 184ImmutableArray<Location> additionalUnnecessaryLocations,
src\Analyzers\Core\Analyzers\Helpers\HashCodeAnalyzer\HashCodeAnalyzer.cs (8)
58public (bool accessesBase, ImmutableArray<ISymbol> members, ImmutableArray<IOperation> statements) GetHashedMembers(ISymbol? owningSymbol, IOperation? operation) 80var statements = blockOperation.Operations.WhereAsArray(o => !o.IsImplicit); 89private (bool accessesBase, ImmutableArray<ISymbol> members)? MatchTuplePattern( 90IMethodSymbol method, ImmutableArray<IOperation> statements) 112private (bool accessesBase, ImmutableArray<ISymbol> members)? MatchAccumulatorPattern( 113IMethodSymbol method, ImmutableArray<IOperation> statements) 138var variables = varDeclStatement.GetDeclaredVariables();
src\Analyzers\Core\Analyzers\Helpers\HashCodeAnalyzer\HashCodeAnalyzer.OperationDeconstructor.cs (1)
34public readonly (bool accessesBase, ImmutableArray<ISymbol> hashedSymbol) GetResult()
src\Analyzers\Core\Analyzers\MakeFieldReadonly\AbstractMakeFieldReadonlyDiagnosticAnalyzer.cs (1)
114var members = ((INamedTypeSymbol)symbolEndContext.Symbol).GetMembers();
src\Analyzers\Core\Analyzers\MatchFolderAndNamespace\AbstractMatchFolderAndNamespaceDiagnosticAnalyzer.cs (1)
44protected abstract ImmutableArray<TSyntaxKind> GetSyntaxKindsToAnalyze();
src\Analyzers\Core\Analyzers\NamingStyle\NamingStyleDiagnosticAnalyzerBase.cs (2)
36private static readonly ImmutableArray<SymbolKind> _symbolKinds = [SymbolKind.Event, SymbolKind.Method, SymbolKind.NamedType, SymbolKind.Namespace, SymbolKind.Property]; 40protected abstract ImmutableArray<TLanguageKindEnum> SupportedSyntaxKinds { get; }
src\Analyzers\Core\Analyzers\RemoveUnnecessaryCast\AbstractRemoveUnnecessaryCastDiagnosticAnalyzer.cs (1)
30protected abstract ImmutableArray<TLanguageKindEnum> SyntaxKindsOfInterest { get; }
src\Analyzers\Core\Analyzers\RemoveUnnecessaryImports\AbstractRemoveUnnecessaryImportsDiagnosticAnalyzer.cs (6)
56private static ImmutableArray<DiagnosticDescriptor> GetDescriptors(LocalizableString titleAndMessage, out DiagnosticDescriptor classificationIdDescriptor, out DiagnosticDescriptor generatedCodeClassificationIdDescriptor) 70protected abstract ImmutableArray<SyntaxNode> MergeImports(ImmutableArray<TSyntaxNode> unnecessaryImports); 90var unnecessaryImports = UnnecessaryImportsProvider.GetUnnecessaryImports(context.SemanticModel, context.FilterSpan, cancellationToken); 98var mergedImports = MergeImports(unnecessaryImports); 141private IEnumerable<TextSpan> GetContiguousSpans(ImmutableArray<SyntaxNode> nodes)
src\Analyzers\Core\Analyzers\RemoveUnnecessaryParentheses\AbstractRemoveUnnecessaryParenthesesDiagnosticAnalyzer.cs (2)
107var additionalLocations = ImmutableArray.Create( 109var additionalUnnecessaryLocations = ImmutableArray.Create(
src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (28)
88Func<DiagnosticAnalyzer, ImmutableArray<DiagnosticDescriptor>> getSupportedDiagnostics, 158using var _2 = ArrayBuilder<(SyntaxTrivia pragma, ImmutableArray<string> ids, bool isDisable)>.GetInstance(out var sortedPragmasWithIds); 230ArrayBuilder<(SyntaxTrivia pragma, ImmutableArray<string> ids, bool isDisable)> sortedPragmasWithIds, 232ImmutableArray<string> userExclusions) 346private static (ImmutableArray<string> userIdExclusions, ImmutableArray<string> userCategoryExclusions, bool analyzerDisabled) ParseUserExclusions(string? userExclusions) 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); 389private static async Task<(ImmutableArray<Diagnostic> reportedDiagnostics, ImmutableArray<string> unhandledIds)> GetReportedDiagnosticsForIdsAsync( 394Func<DiagnosticAnalyzer, ImmutableArray<DiagnosticDescriptor>> getSupportedDiagnostics, 462var analyzers = analyzersBuilder.ToImmutable(); 483static void AddAllDiagnostics(ImmutableDictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>> diagnostics, ArrayBuilder<Diagnostic> reportedDiagnostics) 485foreach (var perAnalyzerDiagnostics in diagnostics.Values) 493foreach (var perAnalyzerDiagnostics in analysisResult.CompilationDiagnostics.Values) 507ImmutableArray<Diagnostic> diagnostics, 610ArrayBuilder<(SyntaxTrivia pragma, ImmutableArray<string> ids, bool isDisable)> sortedPragmasWithIds, 632ArrayBuilder<(SyntaxTrivia pragma, ImmutableArray<string> ids, bool isDisable)> sortedPragmasWithIds, 643ImmutableArray<Location> additionalLocations; 679ArrayBuilder<(SyntaxTrivia pragma, ImmutableArray<string> ids, bool isDisable)> sortedPragmasWithIds, 683var idsForPragma = sortedPragmasWithIds[indexOfPragma].ids; 690var intersect = nextPragmaIds.Intersect(idsForPragma).ToImmutableArray(); 738ImmutableArray<string> userIdExclusions, 739ImmutableArray<string> userCategoryExclusions,
src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\SuppressMessageAttributeState.cs (5)
49out ImmutableArray<(string name, IOperation value)> namedAttributeArguments) 73public static bool HasValidScope(ImmutableArray<(string name, IOperation value)> namedAttributeArguments, out TargetScope targetScope) 91ImmutableArray<(string name, IOperation value)> namedAttributeArguments, 96out ImmutableArray<ISymbol> resolvedSymbols) 131ImmutableArray<(string name, IOperation value)> namedAttributeArguments,
src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (1)
571: ImmutableArray<Location>.Empty;
src\Analyzers\Core\Analyzers\SimplifyInterpolation\AbstractSimplifyInterpolationDiagnosticAnalyzer.cs (2)
54out var formatString, out var unnecessaryLocations); 64var remainingUnnecessaryLocations = unnecessaryLocations.RemoveAt(0);
src\Analyzers\Core\Analyzers\SimplifyInterpolation\AbstractSimplifyInterpolationHelpers.cs (1)
29out string? formatString, out ImmutableArray<Location> unnecessaryLocations)
src\Analyzers\Core\Analyzers\SimplifyLinqExpression\AbstractSimplifyLinqExpressionDiagnosticAnalyzer.cs (3)
62TryGetLinqMethodsThatDoNotReturnEnumerables(enumerableType, out var linqMethods)) 98static bool TryGetLinqMethodsThatDoNotReturnEnumerables(INamedTypeSymbol enumerableType, out ImmutableArray<IMethodSymbol> linqMethods) 160var members = targetTypeSymbol.GetMembers(name);
src\Analyzers\Core\Analyzers\SimplifyTypeNames\SimplifyTypeNamesDiagnosticAnalyzerBase.cs (5)
84protected static ImmutableArray<NotificationOption2> GetAllNotifications(SimplifierOptions options) 111protected abstract ImmutableArray<Diagnostic> AnalyzeCodeBlock(CodeBlockAnalysisContext context, SyntaxNode root); 112protected abstract ImmutableArray<Diagnostic> AnalyzeSemanticModel(SemanticModelAnalysisContext context, SyntaxNode root, TextSpanMutableIntervalTree? codeBlockIntervalTree); 238var diagnostics = _analyzer.AnalyzeCodeBlock(context, root); 294var diagnostics = _analyzer.AnalyzeSemanticModel(context, root, intervalTree);
src\Analyzers\Core\Analyzers\UseAutoProperty\AbstractUseAutoPropertyAnalyzer.cs (2)
438var attributes = getterField.GetAttributes(); 649var additionalLocations = ImmutableArray.Create(
src\Analyzers\Core\Analyzers\UseAutoProperty\AccessedFields.cs (1)
17ImmutableArray<IFieldSymbol> NonTrivialFields)
src\Analyzers\Core\Analyzers\UseCoalesceExpression\AbstractUseCoalesceExpressionForNullableTernaryConditionalCheckDiagnosticAnalyzer.cs (1)
119var locations = ImmutableArray.Create(
src\Analyzers\Core\Analyzers\UseCoalesceExpression\AbstractUseCoalesceExpressionForTernaryConditionalCheckDiagnosticAnalyzer.cs (1)
123var locations = ImmutableArray.Create(
src\Analyzers\Core\Analyzers\UseCollectionInitializer\AbstractObjectCreationExpressionAnalyzer.cs (2)
39ImmutableArray<TMatch> PreMatches, 40ImmutableArray<TMatch> PostMatches);
src\Analyzers\Core\Analyzers\UseCollectionInitializer\AbstractUseCollectionInitializerAnalyzer.cs (1)
191var addMethods = this.SemanticModel.LookupSymbols(
src\Analyzers\Core\Analyzers\UseCollectionInitializer\AbstractUseCollectionInitializerDiagnosticAnalyzer.cs (9)
86ImmutableArray<CollectionMatch<SyntaxNode>> preMatches, 111var matchKindsArray = matchKinds.ToImmutableAndClear(); 176? ImmutableArray<SyntaxNode>.Empty 182var locations = ImmutableArray.Create(objectCreationExpression.GetLocation()); 201(ImmutableArray<CollectionMatch<SyntaxNode>> matches, bool shouldUseCollectionExpression, bool changesSemantics)? GetCollectionInitializerMatches() 218(ImmutableArray<CollectionMatch<SyntaxNode>> matches, bool shouldUseCollectionExpression, bool changesSemantics)? GetCollectionExpressionMatches() 244ImmutableArray<CollectionMatch<SyntaxNode>> matches, 245ImmutableArray<Location> locations, 252var additionalUnnecessaryLocations = UseCollectionInitializerHelpers.GetLocationsToFade(
src\Analyzers\Core\Analyzers\UseCollectionInitializer\UpdateExpressionState.cs (3)
27private static readonly ImmutableArray<(string name, bool isLinq)> s_multiAddNames = 418var whenTrueStatements = whenTrue.ToImmutableArray(); 438var whenFalseStatements = whenFalse.ToImmutableArray();
src\Analyzers\Core\Analyzers\UseCollectionInitializer\UseCollectionInitializerHelpers.cs (3)
22public static ImmutableArray<Location> GetLocationsToFade( 35var additionalUnnecessaryLocations = ImmutableArray.Create( 47var additionalUnnecessaryLocations = ImmutableArray.Create(
src\Analyzers\Core\Analyzers\UseCompoundAssignment\AbstractUseCompoundAssignmentDiagnosticAnalyzer.cs (1)
37ImmutableArray<(TSyntaxKind exprKind, TSyntaxKind assignmentKind, TSyntaxKind tokenKind)> kinds)
src\Analyzers\Core\Analyzers\UseCompoundAssignment\UseCompoundAssignmentUtilities.cs (1)
20ImmutableArray<(TSyntaxKind exprKind, TSyntaxKind assignmentKind, TSyntaxKind tokenKind)> kinds,
src\Analyzers\Core\Analyzers\UseIsNullCheck\AbstractUseIsNullForReferenceEqualsDiagnosticAnalyzer.cs (1)
132var additionalLocations = ImmutableArray.Create(invocation.GetLocation());
src\Analyzers\Core\Analyzers\UseNullPropagation\AbstractUseNullPropagationDiagnosticAnalyzer.cs (1)
190var locations = ImmutableArray.Create(
src\Analyzers\Core\Analyzers\UseObjectInitializer\AbstractUseObjectInitializerDiagnosticAnalyzer.cs (7)
77var matchKindsArray = matchKinds.ToImmutableAndClear(); 107var matches = analyzer.Analyze(semanticModel, syntaxFacts, objectCreationExpression, context.CancellationToken); 119var nodes = ImmutableArray.Create<SyntaxNode>(containingStatement).AddRange(matches.Select(m => m.Statement)); 123var locations = ImmutableArray.Create(objectCreationExpression.GetLocation()); 125var unnecessaryLocations = FadeOutCode(context, matches); 136private ImmutableArray<Location> FadeOutCode( 138ImmutableArray<Match<TExpressionSyntax, TStatementSyntax, TMemberAccessExpressionSyntax, TAssignmentStatementSyntax>> matches)
src\Analyzers\Core\Analyzers\UseObjectInitializer\UseNamedMemberInitializerAnalyzer.cs (1)
49public ImmutableArray<Match<TExpressionSyntax, TStatementSyntax, TMemberAccessExpressionSyntax, TAssignmentStatementSyntax>> Analyze(
src\Analyzers\Core\Analyzers\UseThrowExpression\AbstractUseThrowExpressionDiagnosticAnalyzer.cs (2)
129var allLocations = ImmutableArray.Create( 141var statements = containingBlock.Operations;
src\Analyzers\Core\Analyzers\ValidateFormatString\AbstractValidateFormatStringDiagnosticAnalyzer.cs (7)
44public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 113var parameters = method.Parameters; 183ImmutableArray<IParameterSymbol> parameters, 193ImmutableArray<IParameterSymbol> parameters, 210ImmutableArray<IParameterSymbol> parameters) 244private static IParameterSymbol? GetParameterWithMatchingName(ImmutableArray<IParameterSymbol> parameters, string searchArgumentName) 259ImmutableArray<IParameterSymbol> parameters,
src\Analyzers\Core\Analyzers\ValidateFormatString\FormatStringValidationOptionStorage.cs (1)
17public static readonly ImmutableArray<IOption2> UnsupportedOptions = [ReportInvalidPlaceholdersInStringDotFormatCalls];
src\Compilers\Core\Portable\Collections\ArrayBuilderExtensions.cs (8)
71public static ImmutableArray<TResult> SelectAsArray<TItem, TResult>(this ArrayBuilder<TItem> items, Func<TItem, TResult> map) 76return ImmutableArray<TResult>.Empty; 111public static ImmutableArray<TResult> SelectAsArray<TItem, TArg, TResult>(this ArrayBuilder<TItem> items, Func<TItem, TArg, TResult> map, TArg arg) 116return ImmutableArray<TResult>.Empty; 151public static ImmutableArray<TResult> SelectAsArrayWithIndex<TItem, TArg, TResult>(this ArrayBuilder<TItem> items, Func<TItem, int, TArg, TResult> map, TArg arg) 156return ImmutableArray<TResult>.Empty; 222public static ImmutableArray<T> ToImmutableOrEmptyAndFree<T>(this ArrayBuilder<T>? builder) 224return builder?.ToImmutableAndFree() ?? ImmutableArray<T>.Empty;
src\Compilers\Core\Portable\Collections\DictionaryExtensions.cs (2)
91public static ImmutableSegmentedDictionary<K, ImmutableArray<V>> ToImmutableSegmentedDictionaryAndFree<K, V>(this IReadOnlyDictionary<K, ArrayBuilder<V>> builder) 94var result = ImmutableSegmentedDictionary.CreateBuilder<K, ImmutableArray<V>>();
src\Compilers\Core\Portable\Collections\ImmutableArrayExtensions.cs (152)
27/// The collection of extension methods for the <see cref="ImmutableArray{T}"/> type 39public static ImmutableArray<T> AsImmutable<T>(this IEnumerable<T> items) 51public static ImmutableArray<T> AsImmutableOrEmpty<T>(this IEnumerable<T>? items) 55return ImmutableArray<T>.Empty; 68public static ImmutableArray<T> AsImmutableOrNull<T>(this IEnumerable<T>? items) 84public static ImmutableArray<T> AsImmutable<T>(this T[] items) 97public static ImmutableArray<T> AsImmutableOrNull<T>(this T[]? items) 113public static ImmutableArray<T> AsImmutableOrEmpty<T>(this T[]? items) 117return ImmutableArray<T>.Empty; 128public static ImmutableArray<byte> ToImmutable(this MemoryStream stream) 141public static ImmutableArray<TResult> SelectAsArray<TItem, TResult>(this ImmutableArray<TItem> items, Func<TItem, TResult> map) 156public static ImmutableArray<TResult> SelectAsArray<TItem, TArg, TResult>(this ImmutableArray<TItem> items, Func<TItem, TArg, TResult> map, TArg arg) 171public static ImmutableArray<TResult> SelectAsArray<TItem, TArg, TResult>(this ImmutableArray<TItem> items, Func<TItem, int, TArg, TResult> map, TArg arg) 176return ImmutableArray<TResult>.Empty; 210public static ImmutableArray<TResult> SelectAsArray<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, bool> predicate, Func<TItem, TResult> selector) 214return ImmutableArray<TResult>.Empty; 240public static ImmutableArray<TResult> SelectAsArray<TItem, TArg, TResult>(this ImmutableArray<TItem> array, Func<TItem, TArg, bool> predicate, Func<TItem, TArg, TResult> selector, TArg arg) 244return ImmutableArray<TResult>.Empty; 267public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, IEnumerable<TResult>> selector) 270return ImmutableArray<TResult>.Empty; 287public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, ImmutableArray<TResult>> selector) 290return ImmutableArray<TResult>.Empty; 307public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, OneOrMany<TResult>> selector) 310return ImmutableArray<TResult>.Empty; 330public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, bool> predicate, Func<TItem, IEnumerable<TResult>> selector) 333return ImmutableArray<TResult>.Empty; 354public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, bool> predicate, Func<TItem, ImmutableArray<TResult>> selector) 357return ImmutableArray<TResult>.Empty; 378public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, bool> predicate, Func<TItem, OneOrMany<TResult>> selector) 381return ImmutableArray<TResult>.Empty; 403public static ImmutableArray<TResult> SelectManyAsArray<TItem, TArg, TResult>(this ImmutableArray<TItem> array, Func<TItem, TArg, bool> predicate, Func<TItem, TArg, OneOrMany<TResult>> selector, TArg arg) 406return ImmutableArray<TResult>.Empty; 421public static async ValueTask<ImmutableArray<TResult>> SelectAsArrayAsync<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, CancellationToken, ValueTask<TResult>> selector, CancellationToken cancellationToken) 424return ImmutableArray<TResult>.Empty; 439public static async ValueTask<ImmutableArray<TResult>> SelectAsArrayAsync<TItem, TArg, TResult>(this ImmutableArray<TItem> array, Func<TItem, TArg, CancellationToken, ValueTask<TResult>> selector, TArg arg, CancellationToken cancellationToken) 442return ImmutableArray<TResult>.Empty; 454public static ValueTask<ImmutableArray<TResult>> SelectManyAsArrayAsync<TItem, TArg, TResult>(this ImmutableArray<TItem> source, Func<TItem, TArg, CancellationToken, ValueTask<ImmutableArray<TResult>>> selector, TArg arg, CancellationToken cancellationToken) 458return new ValueTask<ImmutableArray<TResult>>(ImmutableArray<TResult>.Empty); 468async ValueTask<ImmutableArray<TResult>> CreateTaskAsync() 485public static ImmutableArray<TResult> ZipAsArray<T1, T2, TResult>(this ImmutableArray<T1> self, ImmutableArray<T2> other, Func<T1, T2, TResult> map) 491return ImmutableArray<TResult>.Empty; 516public static ImmutableArray<TResult> ZipAsArray<T1, T2, TArg, TResult>(this ImmutableArray<T1> self, ImmutableArray<T2> other, TArg arg, Func<T1, T2, int, TArg, TResult> map) 521return ImmutableArray<TResult>.Empty; 537public static ImmutableArray<T> WhereAsArray<T>(this ImmutableArray<T> array, Func<T, bool> predicate) 545public static ImmutableArray<T> WhereAsArray<T, TArg>(this ImmutableArray<T> array, Func<T, TArg, bool> predicate, TArg arg) 548private static ImmutableArray<T> WhereAsArrayImpl<T, TArg>(ImmutableArray<T> array, Func<T, bool>? predicateWithoutArg, Func<T, TArg, bool>? predicateWithArg, TArg arg) 613return ImmutableArray<T>.Empty; 617public static bool Any<T, TArg>(this ImmutableArray<T> array, Func<T, TArg, bool> predicate, TArg arg) 633public static bool All<T, TArg>(this ImmutableArray<T> array, Func<T, TArg, bool> predicate, TArg arg) 649public static async Task<bool> AnyAsync<T>(this ImmutableArray<T> array, Func<T, Task<bool>> predicateAsync) 665public static async Task<bool> AnyAsync<T, TArg>(this ImmutableArray<T> array, Func<T, TArg, Task<bool>> predicateAsync, TArg arg) 681public static async ValueTask<T?> FirstOrDefaultAsync<T>(this ImmutableArray<T> array, Func<T, Task<bool>> predicateAsync) 697public static TValue? FirstOrDefault<TValue, TArg>(this ImmutableArray<TValue> array, Func<TValue, TArg, bool> predicate, TArg arg) 710public static TValue? Single<TValue, TArg>(this ImmutableArray<TValue> array, Func<TValue, TArg, bool> predicate, TArg arg) 740public static ImmutableArray<TBase> Cast<TDerived, TBase>(this ImmutableArray<TDerived> items) 743return ImmutableArray<TBase>.CastUp(items); 754public static bool SetEquals<T>(this ImmutableArray<T> array1, ImmutableArray<T> array2, IEqualityComparer<T> comparer) 795public static ImmutableArray<T> NullToEmpty<T>(this ImmutableArray<T> array) 797return array.IsDefault ? ImmutableArray<T>.Empty : array; 803public static ImmutableArray<T> NullToEmpty<T>(this ImmutableArray<T>? array) 806null or { IsDefault: true } => ImmutableArray<T>.Empty, 814public static ImmutableArray<T> Distinct<T>(this ImmutableArray<T> array, IEqualityComparer<T>? comparer = null) 833var result = (builder.Count == array.Length) ? array : builder.ToImmutable(); 840internal static ImmutableArray<T> ConditionallyDeOrder<T>(this ImmutableArray<T> array) 856internal static ImmutableArray<TValue> Flatten<TKey, TValue>( 857this Dictionary<TKey, ImmutableArray<TValue>> dictionary, 863return ImmutableArray<TValue>.Empty; 882internal static ImmutableArray<T> Concat<T>(this ImmutableArray<T> first, ImmutableArray<T> second) 887internal static ImmutableArray<T> Concat<T>(this ImmutableArray<T> first, ImmutableArray<T> second, ImmutableArray<T> third) 910internal static ImmutableArray<T> Concat<T>(this ImmutableArray<T> first, ImmutableArray<T> second, ImmutableArray<T> third, ImmutableArray<T> fourth) 938internal static ImmutableArray<T> Concat<T>(this ImmutableArray<T> first, ImmutableArray<T> second, ImmutableArray<T> third, ImmutableArray<T> fourth, ImmutableArray<T> fifth) 971internal static ImmutableArray<T> Concat<T>(this ImmutableArray<T> first, ImmutableArray<T> second, ImmutableArray<T> third, ImmutableArray<T> fourth, ImmutableArray<T> fifth, ImmutableArray<T> sixth) 1009internal static ImmutableArray<T> Concat<T>(this ImmutableArray<T> first, T second) 1014internal static ImmutableArray<T> AddRange<T>(this ImmutableArray<T> self, in TemporaryArray<T> items) 1047internal static bool HasDuplicates<T>(this ImmutableArray<T> array) 1083internal static bool HasDuplicates<T>(this ImmutableArray<T> array, IEqualityComparer<T> comparer) 1109public static int Count<T>(this ImmutableArray<T> items, Func<T, bool> predicate) 1128public static int Sum<T>(this ImmutableArray<T> items, Func<T, int> selector) 1137public static int Sum<T>(this ImmutableArray<T> items, Func<T, int, int> selector) 1174(Dictionary<TKey, object> dictionary, Dictionary<TKey, ImmutableArray<TNamespaceOrTypeSymbol>> result) 1185static ImmutableArray<TNamespaceOrTypeSymbol> createMembers(object value) 1196return ImmutableArray<TNamespaceOrTypeSymbol>.CastUp(builder.ToDowncastedImmutableAndFree<TNamedTypeSymbol>()); 1203: ImmutableArray<TNamespaceOrTypeSymbol>.CastUp(ImmutableArray.Create((TNamedTypeSymbol)symbol)); 1208internal static Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>> GetTypesFromMemberMap<TKey, TNamespaceOrTypeSymbol, TNamedTypeSymbol> 1209(Dictionary<TKey, ImmutableArray<TNamespaceOrTypeSymbol>> map, IEqualityComparer<TKey> comparer) 1220var dictionary = new Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>>(capacity, comparer); 1224var namedTypes = getOrCreateNamedTypes(entry.Value); 1231static ImmutableArray<TNamedTypeSymbol> getOrCreateNamedTypes(ImmutableArray<TNamespaceOrTypeSymbol> members) 1238var membersAsNamedTypes = members.As<TNamedTypeSymbol>(); 1251return ImmutableArray<TNamedTypeSymbol>.Empty; 1265internal static bool SequenceEqual<TElement, TArg>(this ImmutableArray<TElement> array1, ImmutableArray<TElement> array2, TArg arg, Func<TElement, TElement, TArg, bool> predicate) 1295internal static int IndexOf<T>(this ImmutableArray<T> array, T item, IEqualityComparer<T> comparer) 1298internal static bool IsSorted<T>(this ImmutableArray<T> array, IComparer<T>? comparer = null) 1314internal static int BinarySearch<TElement, TValue>(this ImmutableArray<TElement> array, TValue value, Func<TElement, TValue, int> comparer) 1373public static bool IsSubsetOf<TElement>(this ImmutableArray<TElement> array, ImmutableArray<TElement> other)
src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (3)
143public ImmutableArray<V> this[K k] 153return ImmutableArray<V>.Empty; 270internal ImmutableArray<V> Items
src\Compilers\Core\Portable\Collections\TemporaryArray`1.cs (6)
21/// <see cref="ImmutableArray{T}"/>. 176public void AddRange(ImmutableArray<T> items) 296/// Create an <see cref="ImmutableArray{T}"/> with the elements currently held in the temporary array, and clear 299public ImmutableArray<T> ToImmutableAndClear() 307var result = _count switch 3090 => ImmutableArray<T>.Empty,
src\Compilers\Core\Portable\Diagnostic\DiagnosticArrayExtensions.cs (1)
11internal static bool HasAnyErrors<T>(this ImmutableArray<T> diagnostics) where T : Diagnostic
src\Compilers\Core\Portable\DiagnosticAnalyzer\SuppressMessageAttributeState.TargetSymbolResolver.cs (12)
65public ImmutableArray<ISymbol> Resolve(out bool resolvedWithDocCommentIdFormat) 70return ImmutableArray<ISymbol>.Empty; 75var docIdResults = DocumentationCommentId.GetSymbolsForDeclarationId(nameWithoutPrefix, _compilation); 110var candidateMembers = containingSymbol.GetMembers(segment); 583var candidateMembers = containingSymbol.GetMembers(segment); 724private ISymbol GetFirstMatchingIndexer(ImmutableArray<ISymbol> candidateMembers, ParameterInfo[] parameters) 738private ImmutableArray<IMethodSymbol> GetMatchingMethods(ImmutableArray<ISymbol> candidateMembers, int? arity, ParameterInfo[] parameters, TypeInfo? returnType) 775private bool AllParametersMatch(ImmutableArray<IParameterSymbol> symbolParameters, ParameterInfo[] expectedParameters) 821private static INamedTypeSymbol GetFirstMatchingNamedType(ImmutableArray<ISymbol> candidateMembers, int arity) 828private static INamespaceOrTypeSymbol GetFirstMatchingNamespaceOrType(ImmutableArray<ISymbol> candidateMembers) 845var typeParameters = typeSymbol.TypeParameters;
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
702public static string NormalizePathPrefix(string filePath, ImmutableArray<KeyValuePair<string, string>> pathMap)
src\Compilers\Core\Portable\FileSystem\RelativePathResolver.cs (3)
18public ImmutableArray<string> SearchPaths { get; } 27public RelativePathResolver(ImmutableArray<string> searchPaths, string? baseDirectory) 54public RelativePathResolver WithSearchPaths(ImmutableArray<string> searchPaths) =>
src\Compilers\Core\Portable\InternalUtilities\EnumerableExtensions.cs (28)
66public static ImmutableArray<T> ToImmutableArrayOrEmpty<T>(this IEnumerable<T>? items) 73if (items is ImmutableArray<T> array) 88if (items is ImmutableArray<T> array) 354public static ImmutableArray<TResult> SelectAsArray<TSource, TResult>(this IEnumerable<TSource>? source, Func<TSource, TResult> selector) 358return ImmutableArray<TResult>.Empty; 367public static ImmutableArray<TResult> SelectAsArray<TSource, TResult>(this IEnumerable<TSource>? source, Func<TSource, int, TResult> selector) 370return ImmutableArray<TResult>.Empty; 384public static ImmutableArray<TResult> SelectAsArray<TSource, TResult>(this IReadOnlyCollection<TSource>? source, Func<TSource, TResult> selector) 387return ImmutableArray<TResult>.Empty; 400public static ImmutableArray<TResult> SelectAsArray<TSource, TResult, TArg>(this IReadOnlyCollection<TSource>? source, Func<TSource, TArg, TResult> selector, TArg arg) 403return ImmutableArray<TResult>.Empty; 416public static ImmutableArray<TResult> SelectManyAsArray<TSource, TResult>(this IEnumerable<TSource>? source, Func<TSource, IEnumerable<TResult>> selector) 419return ImmutableArray<TResult>.Empty; 428public static ImmutableArray<TResult> SelectManyAsArray<TItem, TArg, TResult>(this IEnumerable<TItem>? source, Func<TItem, TArg, IEnumerable<TResult>> selector, TArg arg) 431return ImmutableArray<TResult>.Empty; 440public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, IEnumerable<TResult>> selector) 443return ImmutableArray<TResult>.Empty; 453public static ImmutableArray<TResult> SelectManyAsArray<TItem, TArg, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, TArg, IEnumerable<TResult>> selector, TArg arg) 456return ImmutableArray<TResult>.Empty; 466public static ImmutableArray<TResult> SelectManyAsArray<TSource, TResult>(this IEnumerable<TSource>? source, Func<TSource, OneOrMany<TResult>> selector) 469return ImmutableArray<TResult>.Empty; 481public static async ValueTask<ImmutableArray<TResult>> SelectAsArrayAsync<TItem, TResult>(this IEnumerable<TItem> source, Func<TItem, ValueTask<TResult>> selector) 496public static async ValueTask<ImmutableArray<TResult>> SelectAsArrayAsync<TItem, TResult>(this IEnumerable<TItem> source, Func<TItem, CancellationToken, ValueTask<TResult>> selector, CancellationToken cancellationToken) 511public static async ValueTask<ImmutableArray<TResult>> SelectAsArrayAsync<TItem, TArg, TResult>(this IEnumerable<TItem> source, Func<TItem, TArg, CancellationToken, ValueTask<TResult>> selector, TArg arg, CancellationToken cancellationToken) 523public static async ValueTask<ImmutableArray<TResult>> SelectManyAsArrayAsync<TItem, TArg, TResult>(this IEnumerable<TItem> source, Func<TItem, TArg, CancellationToken, ValueTask<IEnumerable<TResult>>> selector, TArg arg, CancellationToken cancellationToken) 787internal static Dictionary<K, ImmutableArray<T>> ToMultiDictionary<K, T>(this IEnumerable<T> data, Func<T, K> keySelector, IEqualityComparer<K>? comparer = null) 790var dictionary = new Dictionary<K, ImmutableArray<T>>(comparer); 794var items = grouping.AsImmutable();
src\Compilers\Core\Portable\InternalUtilities\Hash.cs (3)
114internal static int CombineValues<T>(ImmutableArray<T> values, int maxItemsToHash = int.MaxValue) 165internal static int CombineValues(ImmutableArray<string> values, StringComparer stringComparer, int maxItemsToHash = int.MaxValue) 246internal static int GetFNVHashCode(ImmutableArray<byte> data)
src\Compilers\Core\Portable\InternalUtilities\InterlockedOperations.cs (14)
154public static ImmutableArray<T> Initialize<T>(ref ImmutableArray<T> target, ImmutableArray<T> initializedValue) 157var oldValue = ImmutableInterlocked.InterlockedCompareExchange(ref target, initializedValue, default(ImmutableArray<T>)); 170public static ImmutableArray<T> Initialize<T>(ref ImmutableArray<T> target, Func<ImmutableArray<T>> createArray) 183public static ImmutableArray<T> Initialize<T, TArg>(ref ImmutableArray<T> target, Func<TArg, ImmutableArray<T>> createArray, TArg arg) 193private static ImmutableArray<T> Initialize_Slow<T, TArg>(ref ImmutableArray<T> target, Func<TArg, ImmutableArray<T>> createArray, TArg arg)
src\Compilers\Core\Portable\InternalUtilities\ISetExtensions.cs (2)
23public static bool AddAll<T>(this ISet<T> set, ImmutableArray<T> values) 45public static bool RemoveAll<T>(this ISet<T> set, ImmutableArray<T> values)
src\Compilers\Core\Portable\InternalUtilities\OneOrMany.cs (8)
27public static readonly OneOrMany<T> Empty = new OneOrMany<T>(ImmutableArray<T>.Empty); 30private readonly ImmutableArray<T> _many; 38public OneOrMany(ImmutableArray<T> many) 166: new OneOrMany<T>(ImmutableArray<T>.CastUp(from._many)); 184public ImmutableArray<T> ToImmutable() 205public bool SequenceEqual(ImmutableArray<T> other, IEqualityComparer<T>? comparer = null) 277public static OneOrMany<T> Create<T>(ImmutableArray<T> many) 280public static bool SequenceEqual<T>(this ImmutableArray<T> array, OneOrMany<T> other, IEqualityComparer<T>? comparer = null)
src\Compilers\Core\Portable\InternalUtilities\SetWithInsertionOrder.cs (1)
94public ImmutableArray<T> AsImmutable() => _elements.ToImmutableArrayOrEmpty();
src\Compilers\Core\Portable\InternalUtilities\SpecializedCollections.Empty.List.cs (1)
18public static readonly IReadOnlyList<T> Instance = ImmutableArray<T>.Empty;
src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (2)
15private static ImmutableArray<string> s_lazyNumerals; 19var numerals = s_lazyNumerals;
src\Compilers\Core\Portable\MetadataReference\AssemblyIdentityUtils.cs (1)
36ImmutableArray<byte> publicKeyOrToken = !publicKeyHandle.IsNil
src\Compilers\Core\Portable\Text\TextChangeRangeExtensions.cs (5)
117public static ImmutableArray<TextChangeRange> Merge(ImmutableArray<TextChangeRange> oldChanges, ImmutableArray<TextChangeRange> newChanges) 406/// Represents a new change being processed by <see cref="Merge(ImmutableArray&lt;TextChangeRange&gt;, ImmutableArray&lt;TextChangeRange&gt;)"/>.
src\Dependencies\Collections\ImmutableSegmentedDictionary`2.cs (1)
21/// the scenarios where <see cref="ImmutableArray{T}"/> is applicable, and
src\Dependencies\Collections\Internal\HashHelpers.cs (1)
38private static readonly ImmutableArray<int> s_primes = ImmutableArray.Create(
src\Dependencies\Collections\RoslynImmutableInterlocked.cs (4)
616public static ImmutableArray<T> VolatileRead<T>(ref readonly ImmutableArray<T> location) 630public static void VolatileWrite<T>(ref ImmutableArray<T> location, ImmutableArray<T> value)
src\Dependencies\PooledObjects\ArrayBuilder.cs (23)
54private readonly ImmutableArray<T>.Builder _builder; 76public ImmutableArray<T> ToImmutable() 84public ImmutableArray<T> ToImmutableAndClear() 86ImmutableArray<T> result; 89result = ImmutableArray<T>.Empty; 353public ImmutableArray<T> ToImmutableOrNull() 366public ImmutableArray<U> ToDowncastedImmutable<U>() 371return ImmutableArray<U>.Empty; 383public ImmutableArray<U> ToDowncastedImmutableAndFree<U>() where U : T 385var result = ToDowncastedImmutable<U>(); 393public ImmutableArray<T> ToImmutableAndFree() 397ImmutableArray<T> result; 400result = ImmutableArray<T>.Empty; 516internal Dictionary<K, ImmutableArray<T>> ToDictionary<K>(Func<T, K> keySelector, IEqualityComparer<K>? comparer = null) 521var dictionary1 = new Dictionary<K, ImmutableArray<T>>(1, comparer); 529return new Dictionary<K, ImmutableArray<T>>(comparer); 548var dictionary = new Dictionary<K, ImmutableArray<T>>(accumulator.Count, comparer); 587public void AddRange(ImmutableArray<T> items) 592public void AddRange(ImmutableArray<T> items, int length) 597public void AddRange(ImmutableArray<T> items, int start, int length) 607public void AddRange<S>(ImmutableArray<S> items) where S : class, T 609AddRange(ImmutableArray<T>.CastUp(items)); 706public ImmutableArray<S> SelectDistinct<S>(Func<T, S> selector)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleHelpers.cs (3)
118this ImmutableArray<IOption2>.Builder optionsBuilder, 131this ImmutableArray<IOption2>.Builder optionsBuilder, 143this ImmutableArray<IOption2>.Builder optionsBuilder,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleOptions2.cs (2)
20private static readonly ImmutableArray<IOption2>.Builder s_editorConfigOptionsBuilder = ImmutableArray.CreateBuilder<IOption2>(); 350internal static readonly ImmutableArray<IOption2> EditorConfigOptions = s_editorConfigOptionsBuilder.ToImmutable();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\VisualBasic\VisualBasicCodeStyleOptions.cs (2)
16private static readonly ImmutableArray<IOption2>.Builder s_allOptionsBuilder = ImmutableArray.CreateBuilder<IOption2>(); 57public static ImmutableArray<IOption2> EditorConfigOptions => s_allOptionsBuilder.ToImmutable();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\IntervalTreeAlgorithms`2.cs (4)
18public ImmutableArray<T> GetIntervalsThatMatch<TIntrospector, TIntervalTester>( 28public ImmutableArray<T> GetIntervalsThatOverlapWith<TIntrospector>( 35public ImmutableArray<T> GetIntervalsThatIntersectWith<TIntrospector>( 42public ImmutableArray<T> GetIntervalsThatContain<TIntrospector>(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\SimpleMutableIntervalTree`2.cs (3)
40public ImmutableArray<T> GetIntervalsThatOverlapWith(int start, int length) 43public ImmutableArray<T> GetIntervalsThatIntersectWith(int start, int length) 46public ImmutableArray<T> GetIntervalsThatContain(int start, int length)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Diagnostics\IPragmaSuppressionsAnalyzer.cs (1)
26Func<DiagnosticAnalyzer, ImmutableArray<DiagnosticDescriptor>> getSupportedDiagnostics,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Editing\GenerationOptions.cs (1)
30public static readonly ImmutableArray<IOption2> EditorConfigOptions = [PlaceSystemNamespaceFirst, SeparateImportDirectiveGroups];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\EditorConfigFile.cs (3)
19internal record class EditorConfigFile<T>(string? FilePath, ImmutableArray<T> Options) 23private readonly Lazy<ImmutableArray<Section>> _sections = new(() => Options.SelectAsArray(x => x.Section).Distinct()); 25public ImmutableArray<Section> Sections => _sections.Value;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\NamingStyles\EditorConfigNamingStyles.cs (1)
14internal record class EditorConfigNamingStyles(string? FileName, ImmutableArray<NamingStyleOption> Rules)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\NamingStyles\NamingStyleOption.cs (3)
37EditorConfigOption<ImmutableArray<SymbolKindOrTypeKind>> SymbolKinds, 38EditorConfigOption<ImmutableArray<Accessibility>> Accessibilities, 39EditorConfigOption<ImmutableArray<ModifierKind>> Modifiers);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\Sections\SectionMatcher.cs (2)
14private readonly ImmutableArray<(int minValue, int maxValue)> _numberRangePairs; 26ImmutableArray<(int minValue, int maxValue)> numberRangePairs)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\Common\EmbeddedSeparatedSyntaxNodeList.cs (2)
17public ImmutableArray<EmbeddedSyntaxNodeOrToken<TSyntaxKind, TSyntaxNode>> NodesAndTokens { get; } 25ImmutableArray<EmbeddedSyntaxNodeOrToken<TSyntaxKind, TSyntaxNode>> nodesAndTokens)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\Common\EmbeddedSyntaxToken.cs (10)
18public readonly ImmutableArray<EmbeddedSyntaxTrivia<TSyntaxKind>> LeadingTrivia; 20public readonly ImmutableArray<EmbeddedSyntaxTrivia<TSyntaxKind>> TrailingTrivia; 21internal readonly ImmutableArray<EmbeddedDiagnostic> Diagnostics; 31ImmutableArray<EmbeddedSyntaxTrivia<TSyntaxKind>> leadingTrivia, 33ImmutableArray<EmbeddedSyntaxTrivia<TSyntaxKind>> trailingTrivia, 34ImmutableArray<EmbeddedDiagnostic> diagnostics, object value) 53public EmbeddedSyntaxToken<TSyntaxKind> WithDiagnostics(ImmutableArray<EmbeddedDiagnostic> diagnostics) 58Optional<ImmutableArray<EmbeddedSyntaxTrivia<TSyntaxKind>>> leadingTrivia = default, 60Optional<ImmutableArray<EmbeddedSyntaxTrivia<TSyntaxKind>>> trailingTrivia = default, 61Optional<ImmutableArray<EmbeddedDiagnostic>> diagnostics = default,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\Common\EmbeddedSyntaxTree.cs (2)
17public readonly ImmutableArray<EmbeddedDiagnostic> Diagnostics; 22ImmutableArray<EmbeddedDiagnostic> diagnostics)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\Common\EmbeddedSyntaxTrivia.cs (2)
24internal readonly ImmutableArray<EmbeddedDiagnostic> Diagnostics; 26public EmbeddedSyntaxTrivia(TSyntaxKind kind, VirtualCharSequence virtualChars, ImmutableArray<EmbeddedDiagnostic> diagnostics)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\VirtualCharSequence.Chunks.cs (1)
17/// is used so we can expose <see cref="VirtualChar"/>s over an <see cref="ImmutableArray{VirtualChar}"/>
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticDescriptorExtensions.cs (3)
23public static ImmutableArray<string> ImmutableCustomTags(this DiagnosticDescriptor descriptor) 25Debug.Assert(descriptor.CustomTags is ImmutableArray<string>); 26return (ImmutableArray<string>)descriptor.CustomTags;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DirectiveInfo.cs (2)
13Dictionary<TDirectiveTriviaSyntax, ImmutableArray<TDirectiveTriviaSyntax>> conditionalMap) 20public Dictionary<TDirectiveTriviaSyntax, ImmutableArray<TDirectiveTriviaSyntax>> ConditionalMap { get; } = conditionalMap;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ICollectionExtensions.cs (1)
14public static ImmutableArray<T> WhereAsArray<T, TState>(this IEnumerable<T> values, Func<T, TState, bool> predicate, TState state)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ICompilationExtensions.cs (4)
23public static ImmutableArray<Compilation> GetReferencedCompilations(this Compilation compilation) 42public static ImmutableArray<IAssemblySymbol> GetReferencedAssemblySymbols(this Compilation compilation, bool excludePreviousSubmissions = false) 46var referencedAssemblySymbols = compilation.Assembly.Modules.First().ReferencedAssemblySymbols; 163=> compilation.GetTypeByMetadataName(typeof(ImmutableArray<>).FullName!);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\IMethodSymbolExtensions.cs (1)
20public static ImmutableArray<IMethodSymbol> GetAllMethodSymbolsOfPartialParts(this IMethodSymbol method)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ImmutableArrayExtensions.cs (9)
12public static ImmutableArray<T> ToImmutableArray<T>(this HashSet<T> set) 21public static bool Contains<T>(this ImmutableArray<T> items, T item, IEqualityComparer<T>? equalityComparer) 24public static ImmutableArray<T> ToImmutableArrayOrEmpty<T>(this T[]? items) 34public static ImmutableArray<T> TakeAsArray<T>(this ImmutableArray<T> array, int count) 43public static ImmutableArray<T> ToImmutableAndClear<T>(this ImmutableArray<T>.Builder builder) 46return ImmutableArray<T>.Empty; 51var result = builder.ToImmutable();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\INamedTypeSymbolExtensions.cs (23)
30public static ImmutableArray<ITypeParameterSymbol> GetAllTypeParameters(this INamedTypeSymbol? symbol) 176public static ImmutableArray<(INamedTypeSymbol type, ImmutableArray<ISymbol> members)> GetAllUnimplementedMembers( 194static ImmutableArray<ISymbol> GetImplicitlyImplementableMembers(INamedTypeSymbol type, ISymbol within) 246public static ImmutableArray<(INamedTypeSymbol type, ImmutableArray<ISymbol> members)> GetAllUnimplementedMembersInThis( 264public static ImmutableArray<(INamedTypeSymbol type, ImmutableArray<ISymbol> members)> GetAllUnimplementedMembersInThis( 267Func<INamedTypeSymbol, ISymbol, ImmutableArray<ISymbol>> interfaceMemberGetter, 283public static ImmutableArray<(INamedTypeSymbol type, ImmutableArray<ISymbol> members)> GetAllUnimplementedExplicitMembers( 297private static ImmutableArray<ISymbol> GetExplicitlyImplementableMembers(INamedTypeSymbol type, ISymbol within) 324private static ImmutableArray<(INamedTypeSymbol type, ImmutableArray<ISymbol> members)> GetAllUnimplementedMembers( 329Func<INamedTypeSymbol, ISymbol, ImmutableArray<ISymbol>> interfaceMemberGetter, 353var typesToImplement = GetTypesToImplement(classOrStructType, interfacesOrAbstractClasses, allowReimplementation, cancellationToken); 358private static ImmutableArray<INamedTypeSymbol> GetTypesToImplement( 369private static ImmutableArray<INamedTypeSymbol> GetAbstractClassesToImplement( 377private static ImmutableArray<INamedTypeSymbol> GetInterfacesToImplement( 401private static ImmutableArray<ISymbol> GetUnimplementedMembers( 406Func<INamedTypeSymbol, ISymbol, ImmutableArray<ISymbol>> interfaceMemberGetter, 516private static ImmutableArray<ISymbol> GetMembers(INamedTypeSymbol type, ISymbol within) 529public static ImmutableArray<ISymbol> GetOverridableMembers(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs (12)
137public static ImmutableArray<ISymbol> ExplicitInterfaceImplementations(this ISymbol symbol) 140IEventSymbol @event => ImmutableArray<ISymbol>.CastUp(@event.ExplicitInterfaceImplementations), 141IMethodSymbol method => ImmutableArray<ISymbol>.CastUp(method.ExplicitInterfaceImplementations), 142IPropertySymbol property => ImmutableArray<ISymbol>.CastUp(property.ExplicitInterfaceImplementations), 146public static ImmutableArray<ISymbol> ExplicitOrImplicitInterfaceImplementations(this ISymbol symbol) 171public static ImmutableArray<ISymbol> ImplicitInterfaceImplementations(this ISymbol symbol) 421public static ImmutableArray<IParameterSymbol> GetParameters(this ISymbol? symbol) 429public static ImmutableArray<ITypeParameterSymbol> GetTypeParameters(this ISymbol? symbol) 437public static ImmutableArray<ITypeParameterSymbol> GetAllTypeParameters(this ISymbol? symbol) 450public static ImmutableArray<ITypeSymbol> GetTypeArguments(this ISymbol? symbol) 458public static ImmutableArray<ITypeSymbol> GetAllTypeArguments(this ISymbol symbol) 662var potentialGetAwaiters = semanticModel.LookupSymbols(position,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.cs (4)
41var allInterfaces = type.AllInterfaces; 443public static ImmutableArray<T> GetAccessibleMembersInThisAndBaseTypes<T>(this ITypeSymbol? containingType, ISymbol within) where T : class, ISymbol 453public static ImmutableArray<T> GetAccessibleMembersInThisAndBaseTypes<T>(this ITypeSymbol? containingType, string memberName, ISymbol within) where T : class, ISymbol 457return ImmutableArray<T>.Empty;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ObjectWriterExtensions.cs (3)
14public static void WriteArray<T>(this ObjectWriter writer, ImmutableArray<T> values, Action<ObjectWriter, T> write) 24public static ImmutableArray<T> ReadArray<T>(this ObjectReader reader, Func<ObjectReader, T> read) 27public static ImmutableArray<T> ReadArray<T, TArg>(this ObjectReader reader, Func<ObjectReader, TArg, T> read, TArg arg)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (3)
338public static bool HasAnyOperationDescendant(this ImmutableArray<IOperation> operationBlocks, Func<IOperation, bool> predicate) 371public static bool HasAnyOperationDescendant(this ImmutableArray<IOperation> operationBlocks, OperationKind kind) 434static IOperation? TryGetSingleExplicitStatement(ImmutableArray<IOperation> operations)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SemanticModelExtensions.cs (2)
153var typeArguments = type.GetAllTypeArguments(); 196ImmutableArray<ITypeSymbol> typeArguments,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\StackExtensions.cs (1)
40public static void Push<T>(this Stack<T> stack, ImmutableArray<T> values)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\StringExtensions.cs (1)
188public static ImmutableArray<SymbolDisplayPart> ToSymbolDisplayParts(this string text)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SymbolInfoExtensions.cs (3)
15public static ImmutableArray<ISymbol> GetAllSymbols(this SymbolInfo info) 18private static ImmutableArray<ISymbol> GetAllSymbolsWorker(this SymbolInfo info) 24public static ImmutableArray<ISymbol> GetBestOrAllSymbols(this SymbolInfo info)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (2)
861var conditionalMap = new Dictionary<TDirectiveTriviaSyntax, ImmutableArray<TDirectiveTriviaSyntax>>( 927var condDirectives = condDirectivesBuilder.ToImmutableAndClear();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\TextSpanExtensions.cs (2)
21public static ImmutableArray<TextSpan> ToNormalizedSpans(this ImmutableArray<TextSpan> spans)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\CustomDataFlowAnalysis.cs (2)
33var blocks = controlFlowGraph.Blocks; 68ImmutableArray<BasicBlock> blocks,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.AnalysisData.cs (2)
144ImmutableArray<IParameterSymbol> parameters) 152ImmutableArray<IParameterSymbol> parameters)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (4)
26private readonly ImmutableArray<IParameterSymbol> _parameters; 74ImmutableArray<IParameterSymbol> parameters, 123var parameters = owningSymbol.GetParameters(); 148var parameters = lambdaOrLocalFunction.GetParameters();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\AbstractSyntaxFormatting.cs (3)
26public abstract ImmutableArray<AbstractFormattingRule> GetDefaultFormattingRules(); 30protected abstract AbstractFormattingResult Format(SyntaxNode node, SyntaxFormattingOptions options, ImmutableArray<AbstractFormattingRule> rules, SyntaxToken startToken, SyntaxToken endToken, CancellationToken cancellationToken); 32public IFormattingResult GetFormattingResult(SyntaxNode node, IEnumerable<TextSpan>? spans, SyntaxFormattingOptions options, ImmutableArray<AbstractFormattingRule> rules, CancellationToken cancellationToken)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.cs (2)
413var intervals = tree.GetIntervalsThatContain(textSpan.Start, textSpan.Length); 543var anchorData = _anchorTree.GetIntervalsThatOverlapWith(baseAnchorData.TextSpan.Start, baseAnchorData.TextSpan.Length);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.InitialContextFinder.cs (3)
44public (List<IndentBlockOperation> indentOperations, ImmutableArray<SuppressOperation> suppressOperations) Do(SyntaxToken startToken, SyntaxToken endToken) 54var initialSuppressOperations = GetInitialSuppressOperations(startToken, endToken); 125private ImmutableArray<SuppressOperation> GetInitialSuppressOperations(SyntaxToken startToken, SyntaxToken endToken)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.cs (3)
58private static Tuple<ImmutableArray<AbstractFormattingRule>, SyntaxFormattingOptions, ChainedFormattingRules>? s_lastRulesAndOptions; 63ImmutableArray<AbstractFormattingRule> formattingRules, 75private static ChainedFormattingRules GetChainedFormattingRules(ImmutableArray<AbstractFormattingRule> formattingRules, SyntaxFormattingOptions options)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\ChainedFormattingRules.cs (9)
22private readonly ImmutableArray<AbstractFormattingRule> _formattingRules; 25private readonly ImmutableArray<AbstractFormattingRule> _addSuppressOperationsRules; 26private readonly ImmutableArray<AbstractFormattingRule> _addAnchorIndentationOperationsRules; 27private readonly ImmutableArray<AbstractFormattingRule> _addIndentBlockOperationsRules; 28private readonly ImmutableArray<AbstractFormattingRule> _addAlignTokensOperationsRules; 29private readonly ImmutableArray<AbstractFormattingRule> _getAdjustNewLinesOperationRules; 30private readonly ImmutableArray<AbstractFormattingRule> _getAdjustSpacesOperationRules; 83private static ImmutableArray<AbstractFormattingRule> FilterToRulesImplementingMethod(ImmutableArray<AbstractFormattingRule> rules, string name)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\ISyntaxFormatting.cs (2)
19ImmutableArray<AbstractFormattingRule> GetDefaultFormattingRules(); 20IFormattingResult GetFormattingResult(SyntaxNode node, IEnumerable<TextSpan>? spans, SyntaxFormattingOptions options, ImmutableArray<AbstractFormattingRule> rules, CancellationToken cancellationToken);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextAlignTokensOperationAction.cs (1)
13ImmutableArray<AbstractFormattingRule> formattingRules,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextAnchorIndentationOperationAction.cs (1)
13ImmutableArray<AbstractFormattingRule> formattingRules,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextGetAdjustNewLinesOperation.cs (1)
12ImmutableArray<AbstractFormattingRule> formattingRules,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextGetAdjustSpacesOperation.cs (1)
12ImmutableArray<AbstractFormattingRule> formattingRules,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextIndentBlockOperationAction.cs (1)
13ImmutableArray<AbstractFormattingRule> formattingRules,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextSuppressOperationAction.cs (1)
14ImmutableArray<AbstractFormattingRule> formattingRules,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\TriviaEngine\AbstractTriviaFormatter.cs (1)
266public ImmutableArray<TextChange> FormatToTextChanges(CancellationToken cancellationToken)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Helpers\RemoveUnnecessaryImports\AbstractUnnecessaryImportsProvider.cs (3)
20public abstract ImmutableArray<TSyntaxNode> GetUnnecessaryImports( 23public ImmutableArray<TSyntaxNode> GetUnnecessaryImports(SemanticModel model, TextSpan? span, CancellationToken cancellationToken) 26public ImmutableArray<TSyntaxNode> GetUnnecessaryImports(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Helpers\RemoveUnnecessaryImports\IUnnecessaryImportsProvider.cs (2)
15ImmutableArray<TSyntaxNode> GetUnnecessaryImports(SemanticModel model, TextSpan? span, CancellationToken cancellationToken); 17ImmutableArray<TSyntaxNode> GetUnnecessaryImports(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Indentation\AbstractIndentation.Indenter.cs (1)
45ImmutableArray<AbstractFormattingRule> rules,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser_SymbolSpec.cs (17)
72(ImmutableArray<SymbolKindOrTypeKind> kinds, TData data), 73(ImmutableArray<Accessibility> accessibilities, TData data), 74(ImmutableArray<ModifierKind> modifiers, TData data), 108private static (ImmutableArray<SymbolKindOrTypeKind> kinds, TData data) GetSymbolsApplicableKinds<T, TData>( 117var kinds = ParseSymbolKindList(symbolSpecApplicableKinds ?? string.Empty); 138private static readonly ImmutableArray<SymbolKindOrTypeKind> _all = 141private static ImmutableArray<SymbolKindOrTypeKind> ParseSymbolKindList(string symbolSpecApplicableKinds) 208private static (ImmutableArray<Accessibility> accessibilities, TData data) GetSymbolsApplicableAccessibilities<T, TData>( 223private static readonly ImmutableArray<Accessibility> s_allAccessibility = 234private static ImmutableArray<Accessibility> ParseAccessibilityKindList(string symbolSpecApplicableAccessibilities) 282private static (ImmutableArray<ModifierKind> modifiers, TData data) GetSymbolsRequiredModifiers<T, TData>( 294return (ImmutableArray<ModifierKind>.Empty, defaultValue()); 302private static readonly ImmutableArray<ModifierKind> _allModifierKind = [s_abstractModifierKind, s_asyncModifierKind, s_constModifierKind, s_readonlyModifierKind, s_staticModifierKind]; 304private static ImmutableArray<ModifierKind> ParseModifiers(string symbolSpecRequiredModifiers) 346public static string ToEditorConfigString(this ImmutableArray<SymbolKindOrTypeKind> symbols) 444public static string ToEditorConfigString(this ImmutableArray<Accessibility> accessibilities, string languageName) 503public static string ToEditorConfigString(this ImmutableArray<ModifierKind> modifiers, string languageName)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Naming\IdentifierNameParts.cs (5)
16internal readonly struct IdentifierNameParts(string baseName, ImmutableArray<string> baseNameParts) 19public readonly ImmutableArray<string> BaseNameParts = baseNameParts; 21public static IdentifierNameParts CreateIdentifierNameParts(ISymbol symbol, ImmutableArray<NamingRule> rules) 37private static string RemovePrefixesAndSuffixes(ISymbol symbol, ImmutableArray<NamingRule> rules, string baseName) 74private static ImmutableArray<string> CreateWords(in TemporaryArray<TextSpan> parts, string name)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (1)
60public string CreateName(ImmutableArray<string> words)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyleRules.cs (5)
13internal sealed class NamingStyleRules(ImmutableArray<NamingRule> namingRules) 15public ImmutableArray<NamingRule> NamingRules { get; } = namingRules; 17private readonly ImmutableArray<SymbolKind> _symbolKindsThatCanBeOverridden = 90var implementedInterfaces = containingType.AllInterfaces; 94var implementedInterfaceMembersWithSameName = implementedInterface.GetMembers(symbol.Name);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (6)
278public readonly ImmutableArray<SymbolSpecification> SymbolSpecifications; 281public readonly ImmutableArray<NamingStyle> NamingStyles; 284public readonly ImmutableArray<SerializableNamingRule> NamingRules; 289ImmutableArray<SymbolSpecification> symbolSpecifications, 290ImmutableArray<NamingStyle> namingStyles, 291ImmutableArray<SerializableNamingRule> namingRules)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferencesEditorConfigSerializer.cs (9)
30ImmutableArray<SymbolSpecification> symbolSpecifications, 31ImmutableArray<NamingStyle> namingStyles, 32ImmutableArray<SerializableNamingRule> serializableNamingRules, 47ImmutableArray<SymbolSpecification> symbolSpecifications, 48ImmutableArray<NamingStyle> namingStyles, 49ImmutableArray<SerializableNamingRule> rules, 120ImmutableArray<SymbolSpecification> symbolSpecifications, 121ImmutableArray<NamingStyle> namingStyles) 171private static ImmutableDictionary<SerializableNamingRule, string> AssignNamesToNamingStyleRules(ImmutableArray<SerializableNamingRule> namingRules, ImmutableDictionary<Guid, string> serializedNameMap)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (10)
31ImmutableArray<SymbolSpecification.SymbolKindOrTypeKind> symbolKindList, 32ImmutableArray<Accessibility> accessibilityList = default, 33ImmutableArray<SymbolSpecification.ModifierKind> modifiers = default) : IEquatable<SymbolSpecification> 44public ImmutableArray<SymbolKindOrTypeKind> ApplicableSymbolKindList { get; } = symbolKindList.IsDefault ? DefaultSymbolSpecificationTemplate.ApplicableSymbolKindList : symbolKindList; 47public ImmutableArray<Accessibility> ApplicableAccessibilityList { get; } = accessibilityList.IsDefault ? DefaultSymbolSpecificationTemplate.ApplicableAccessibilityList : accessibilityList; 50public ImmutableArray<ModifierKind> RequiredModifierList { get; } = modifiers.IsDefault ? DefaultSymbolSpecificationTemplate.RequiredModifierList : modifiers; 125private static DeclarationModifiers CollapseModifiers(ImmutableArray<ModifierKind> requiredModifierList) 290private static ImmutableArray<SymbolKindOrTypeKind> GetSymbolKindListFromXElement(XElement symbolKindListElement) 311private static ImmutableArray<Accessibility> GetAccessibilityListFromXElement(XElement accessibilityListElement) 317private static ImmutableArray<ModifierKind> GetModifierListFromXElement(XElement modifierListElement)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionDefinition.cs (4)
105type == typeof(ImmutableArray<bool>) || 106type == typeof(ImmutableArray<string>) || 107type == typeof(ImmutableArray<int>) || 108type == typeof(ImmutableArray<long>);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\FileBannerFacts\AbstractFileBannerFacts.cs (9)
66public ImmutableArray<SyntaxTrivia> GetLeadingBlankLines(SyntaxNode node) 69public ImmutableArray<SyntaxTrivia> GetLeadingBlankLines<TSyntaxNode>(TSyntaxNode node) 72GetNodeWithoutLeadingBlankLines(node, out var blankLines); 83TSyntaxNode node, out ImmutableArray<SyntaxTrivia> strippedTrivia) 96public ImmutableArray<SyntaxTrivia> GetLeadingBannerAndPreprocessorDirectives<TSyntaxNode>(TSyntaxNode node) 99GetNodeWithoutLeadingBannerAndPreprocessorDirectives(node, out var leadingTrivia); 111TSyntaxNode node, out ImmutableArray<SyntaxTrivia> strippedTrivia) 166public ImmutableArray<SyntaxTrivia> GetFileBanner(SyntaxNode root) 172public ImmutableArray<SyntaxTrivia> GetFileBanner(SyntaxToken firstToken)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\FileBannerFacts\IFileBannerFacts.cs (6)
14ImmutableArray<SyntaxTrivia> GetFileBanner(SyntaxNode root); 15ImmutableArray<SyntaxTrivia> GetFileBanner(SyntaxToken firstToken); 18ImmutableArray<SyntaxTrivia> GetLeadingBlankLines(SyntaxNode node); 22TSyntaxNode node, out ImmutableArray<SyntaxTrivia> strippedTrivia) where TSyntaxNode : SyntaxNode; 24ImmutableArray<SyntaxTrivia> GetLeadingBannerAndPreprocessorDirectives<TSyntaxNode>(TSyntaxNode node) where TSyntaxNode : SyntaxNode; 27TSyntaxNode GetNodeWithoutLeadingBannerAndPreprocessorDirectives<TSyntaxNode>(TSyntaxNode node, out ImmutableArray<SyntaxTrivia> strippedTrivia) where TSyntaxNode : SyntaxNode;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\FileBannerFacts\IFileBannerFactsExtensions.cs (2)
12public static ImmutableArray<SyntaxTrivia> GetTriviaAfterLeadingBlankLines( 15var leadingBlankLines = bannerService.GetLeadingBlankLines(node);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\HeaderFacts\AbstractHeaderFacts.cs (2)
34=> IsOnHeader(root, position, ownerOfHeader, lastTokenOrNodeOfHeader, ImmutableArray<SyntaxNode>.Empty); 41ImmutableArray<THoleSyntax> holes)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SelectedMembers\AbstractSelectedMembers.cs (5)
32protected abstract ImmutableArray<(SyntaxNode declarator, SyntaxToken identifier)> GetDeclaratorsAndIdentifiers(TMemberDeclarationSyntax member); 34public Task<ImmutableArray<SyntaxNode>> GetSelectedFieldsAndPropertiesAsync( 38public Task<ImmutableArray<SyntaxNode>> GetSelectedMembersAsync( 42private async Task<ImmutableArray<SyntaxNode>> GetSelectedMembersAsync( 77private ImmutableArray<SyntaxNode> GetMembersInSpan(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SemanticFacts\ISemanticFacts.cs (4)
86ImmutableArray<IMethodSymbol> GetDeconstructionAssignmentMethods(SemanticModel semanticModel, SyntaxNode node); 88ImmutableArray<IMethodSymbol> GetDeconstructionForEachMethods(SemanticModel semanticModel, SyntaxNode node); 100ImmutableArray<ISymbol> GetBestOrAllSymbols(SemanticModel semanticModel, SyntaxNode? node, SyntaxToken token, CancellationToken cancellationToken); 107ImmutableArray<IMethodSymbol> GetLocalFunctionSymbols(Compilation compilation, ISymbol symbol, CancellationToken cancellationToken);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SyntaxFacts\ISyntaxFacts.cs (1)
184ImmutableArray<SyntaxNode> GetMatchingConditionalDirectives(SyntaxNode directive, CancellationToken cancellationToken);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SyntaxFacts\ISyntaxFactsExtensions.cs (1)
160this ISyntaxFacts syntaxFacts, ImmutableArray<SyntaxNode> nodes, CancellationToken cancellationToken)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Simplification\SymbolAnnotation.cs (2)
23public static ImmutableArray<ISymbol> GetSymbols(SyntaxAnnotation annotation, Compilation compilation) 25? ImmutableArray<ISymbol>.Empty
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.AnonymousTypeSymbolKey.cs (7)
22var properties = symbol.GetMembers().OfType<IPropertySymbol>().ToImmutableArray(); 23var propertyTypes = properties.SelectAsArray(p => p.Type); 24var propertyNames = properties.SelectAsArray(p => p.Name); 25var propertyIsReadOnly = properties.SelectAsArray(p => p.SetMethod == null); 26var propertyLocations = properties.SelectAsArray(p => p.Locations.FirstOrDefault()); 49var propertyLocations = ReadPropertyLocations(reader, out var propertyLocationsFailureReason); 76private static ImmutableArray<Location> ReadPropertyLocations(SymbolKeyReader reader, out string? failureReason)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.BodyLevelSymbolKey.cs (2)
20public static ImmutableArray<Location> GetBodyLevelSourceLocations(ISymbol symbol, CancellationToken cancellationToken) 64var locations = GetBodyLevelSourceLocations(symbol, cancellationToken);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (4)
259ImmutableArray<ISymbol>.CastUp(symbols.Builder.ToImmutableAndClear()), 264private static T? SafeGet<T>(ImmutableArray<T> values, int index) where T : class 274ImmutableArray<IParameterSymbol> parameters, 301var members = metadataName == null
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.ErrorTypeSymbolKey.cs (2)
45visitor.WriteSymbolKeyArray(ImmutableArray<ITypeSymbol>.Empty); 53private static ImmutableArray<string> GetContainingNamespaceNamesInReverse(INamespaceSymbol namespaceSymbol)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.FunctionPointerTypeSymbolKey.cs (2)
39var callingConventionModifiers = ImmutableArray<INamedTypeSymbol>.Empty;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.ModuleSymbolKey.cs (1)
38if (assemblyModules is ImmutableArray<IModuleSymbol> modules)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.NamedTypeSymbolKey.cs (1)
35visitor.WriteSymbolKeyArray(ImmutableArray<ITypeSymbol>.Empty);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.ParameterSymbolKey.cs (1)
81string metadataName, int ordinal, ImmutableArray<IParameterSymbol> parameters)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.PooledArrayBuilder.cs (2)
34public ImmutableArray<T> ToImmutable() => Builder.ToImmutable(); 52public void AddValuesIfNotNull(ImmutableArray<T> values)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
384ImmutableArray<IParameterSymbol> parameters)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (7)
278internal void WriteSymbolKeyArray<TSymbol>(ImmutableArray<TSymbol> symbols) 284internal void WriteParameterTypesArray(ImmutableArray<IParameterSymbol> symbols) 287internal void WriteBooleanArray(ImmutableArray<bool> array) 295internal void WriteStringArray(ImmutableArray<string> strings) 298internal void WriteLocationArray(ImmutableArray<Location> array) 303internal void WriteRefKindArray(ImmutableArray<IParameterSymbol> values) 306private void WriteArray<T, U>(ImmutableArray<T> array, Action<U> writeValue)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TupleTypeSymbolKey.cs (4)
69var elementLocations = ReadElementLocations(reader, out var elementLocationsFailureReason); 82var elementNamesArray = elementNames.ToImmutable(); 97var elementLocations = ReadElementLocations(reader, out var elementLocationsFailureReason); 128private static ImmutableArray<Location> ReadElementLocations(SymbolKeyReader reader, out string? failureReason)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKeyResolution.cs (3)
20private readonly ImmutableArray<ISymbol> _candidateSymbols; 29internal SymbolKeyResolution(ImmutableArray<ISymbol> candidateSymbols, CandidateReason candidateReason) 40public ImmutableArray<ISymbol> CandidateSymbols => _candidateSymbols.NullToEmpty();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (10)
114SemanticModel model, TForEachStatementSyntax forEach, out IMethodSymbol getEnumeratorMethod, out ITypeSymbol elementType, out ImmutableArray<ILocalSymbol> localVariables); 122protected abstract ImmutableArray<TArgumentSyntax> GetArguments(TExpressionSyntax expression); 780GetForEachSymbols(this.OriginalSemanticModel, forEachStatement, out var originalGetEnumerator, out var originalElementType, out var originalLocalVariables); 781GetForEachSymbols(this.SpeculativeSemanticModel, newForEachStatement, out var newGetEnumerator, out var newElementType, out var newLocalVariables); 1068var specifiedArguments = GetArguments(originalInvocation); 1071var symbolParameters = originalSymbol.GetParameters(); 1072var newSymbolParameters = newSymbol.GetParameters(); 1081ImmutableArray<TArgumentSyntax> specifiedArguments, 1082ImmutableArray<IParameterSymbol> signature1Parameters, 1083ImmutableArray<IParameterSymbol> signature2Parameters)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.Builder.cs (2)
139private void BuildArrays(ImmutableArray<Node>.Builder nodes, ImmutableArray<Edge>.Builder edges)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.cs (4)
48private readonly ImmutableArray<Node> _nodes; 49private readonly ImmutableArray<Edge> _edges; 51private BKTree(char[] concatenatedLowerCaseWords, ImmutableArray<Node> nodes, ImmutableArray<Edge> edges)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ComparerWithState.cs (2)
12public static int CompareTo<T, S>(T first, T second, S state, ImmutableArray<Func<T, S, IComparable>> comparableMethods) 26public static int CompareTo<T>(T first, T second, ImmutableArray<Func<T, IComparable>> comparableMethods)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ConcatImmutableArray`1.cs (9)
14internal readonly struct ConcatImmutableArray<T>(ImmutableArray<T> first, ImmutableArray<T> second) : IEnumerable<T> 24public ImmutableArray<T> ToImmutableArray() 33public struct Enumerator(ImmutableArray<T> first, ImmutableArray<T> second) : IEnumerator<T> 35private ImmutableArray<T>.Enumerator _current = first.NullToEmpty().GetEnumerator(); 36private ImmutableArray<T> _next = second.NullToEmpty(); 64public static ConcatImmutableArray<T> ConcatFast<T>(this ImmutableArray<T> first, ImmutableArray<T> second)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EventMap.cs (10)
28var registries = GetRegistries_NoLock<TEventHandler>(eventName); 29var newRegistries = registries.Add(new Registry<TEventHandler>(eventHandler)); 39var registries = GetRegistries_NoLock<TEventHandler>(eventName); 42var newRegistries = registries.RemoveAll(r => r.HasHandler(eventHandler)); 67private ImmutableArray<Registry<TEventHandler>> GetRegistries<TEventHandler>(string eventName) 76private ImmutableArray<Registry<TEventHandler>> GetRegistries_NoLock<TEventHandler>(string eventName) 82return (ImmutableArray<Registry<TEventHandler>>)registries; 88private void SetRegistries_NoLock<TEventHandler>(string eventName, ImmutableArray<Registry<TEventHandler>> registries) 146private readonly ImmutableArray<Registry<TEventHandler>> _registries; 148internal EventHandlerSet(ImmutableArray<Registry<TEventHandler>> registries)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\FixedSizeArrayBuilder.cs (5)
13/// A bare-bones array builder, focused on the case of producing <see cref="ImmutableArray{T}"/>s where the final array 31/// The builder will be moved to an array (see <see cref="MoveToArray"/>) or <see cref="ImmutableArray{T}"/> (see <see 50public void AddRange(ImmutableArray<T> values) 96/// Moves the underlying buffer out of control of this type, into the returned <see cref="ImmutableArray{T}"/>. It 102public ImmutableArray<T> MoveToImmutable()
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IAsyncEnumerableExtensions.cs (2)
36public static async Task<ImmutableArray<T>> ToImmutableArrayAsync<T>(this IAsyncEnumerable<T> values, CancellationToken cancellationToken) 53public static IAsyncEnumerable<T> MergeAsync<T>(this ImmutableArray<IAsyncEnumerable<T>> streams, CancellationToken cancellationToken)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ICollectionExtensions.cs (1)
66public static void AddRange<T>(this ICollection<T> collection, ImmutableArray<T> values)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IDictionaryExtensions.cs (7)
119public static void MultiAdd<TKey, TValue>(this IDictionary<TKey, ImmutableArray<TValue>> dictionary, TKey key, TValue value) 123if (!dictionary.TryGetValue(key, out var existingArray)) 131public static void MultiAdd<TKey, TValue>(this IDictionary<TKey, ImmutableArray<TValue>> dictionary, TKey key, TValue value, ImmutableArray<TValue> defaultArray) 135if (!dictionary.TryGetValue(key, out var existingArray)) 212public static void MultiRemove<TKey, TValue>(this IDictionary<TKey, ImmutableArray<TValue>> dictionary, TKey key, TValue value) 215if (dictionary.TryGetValue(key, out var collection))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ImmutableArrayComparer.cs (4)
13internal sealed class ImmutableArrayComparer<T> : IEqualityComparer<ImmutableArray<T>> 19public bool Equals(ImmutableArray<T> x, ImmutableArray<T> y) 22public int GetHashCode(ImmutableArray<T> obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\InterceptsLocationUtilities.cs (4)
19internal record struct InterceptsLocationData(ImmutableArray<byte> ContentHash, int Position) 30public static ImmutableArray<InterceptsLocationData> GetInterceptsLocationData(ImmutableArray<AttributeData> attributes) 102var contentHash = bytes[HashIndex..HashSize].ToImmutableArray();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PathMetadataUtilities.cs (2)
28var parts = folders.SelectMany(folder => folder.Split(NamespaceSeparatorArray)).SelectAsArray(syntaxFacts.EscapeIdentifier); 60public static ImmutableArray<string> BuildFoldersFromNamespace(string? @namespace, string? rootNamespace = null)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PooledBuilderExtensions.cs (5)
29public static Dictionary<K, ImmutableArray<V>> ToMultiDictionaryAndFree<K, V>(this PooledDictionary<K, ArrayBuilder<V>> builders) 32var dictionary = new Dictionary<K, ImmutableArray<V>>(builders.Count); 43public static ImmutableDictionary<K, ImmutableArray<V>> ToImmutableMultiDictionaryAndFree<K, V>(this PooledDictionary<K, ArrayBuilder<V>> builders) 46var result = ImmutableDictionary.CreateBuilder<K, ImmutableArray<V>>(); 66public static ImmutableArray<T> ToFlattenedImmutableArrayAndFree<T>(this ArrayBuilder<ArrayBuilder<T>> builders)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ProducerConsumer.cs (6)
42Func<ImmutableArray<TItem>, TArgs, CancellationToken, Task> consumeItems, 66Func<ImmutableArray<TItem>, TArgs, CancellationToken, Task> consumeItems, 144Func<ImmutableArray<TItem>, TArgs, CancellationToken, Task> consumeItems, 158Func<ImmutableArray<TItem>, TArgs, CancellationToken, Task> consumeItems, 208public static Task<ImmutableArray<TItem>> RunParallelAsync<TSource, TArgs>( 221public static async Task<ImmutableArray<TItem>> RunParallelAsync<TSource, TArgs>(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\RestrictedInternalsVisibleToAttribute.cs (1)
13public ImmutableArray<string> AllowedNamespaces { get; } = [.. allowedNamespaces];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SerializableBytes.cs (1)
222public ImmutableArray<byte> ToImmutableArray()
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SpecializedTasks.cs (4)
47public static Task<ImmutableArray<T>> EmptyImmutableArray<T>() 88public static async ValueTask<ImmutableArray<TResult>> WhenAll<TResult>(this IReadOnlyCollection<Task<TResult>> tasks) 188public static readonly Task<ImmutableArray<T>> EmptyImmutableArray = Task.FromResult(ImmutableArray<T>.Empty);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.cs (2)
41private readonly ImmutableArray<EquivalenceVisitor> _equivalenceVisitors; 42private readonly ImmutableArray<GetHashCodeVisitor> _getHashCodeVisitors;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.EquivalenceVisitor.cs (8)
75internal bool AreEquivalent(ImmutableArray<CustomModifier> x, ImmutableArray<CustomModifier> y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 422var xElements = x.TupleElements; 423var yElements = y.TupleElements; 461ImmutableArray<IParameterSymbol> xParameters, 462ImmutableArray<IParameterSymbol> yParameters, 492private bool TypeArgumentsAreEquivalent(ImmutableArray<ITypeSymbol> xTypeArguments, ImmutableArray<ITypeSymbol> yTypeArguments, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (1)
106private static int CombineHashCodes<T>(ImmutableArray<T> array, int currentHash, Func<int, T, int> func)
Microsoft.CodeAnalysis.CodeStyle.Fixes (697)
Host\Mef\CodeStyleHostLanguageServices.cs (2)
30var assemblies = CreateAssemblies(languageName); 35private static ImmutableArray<Assembly> CreateAssemblies(string languageName)
src\Analyzers\Core\CodeFixes\AddAccessibilityModifiers\AbstractAddAccessibilityModifiersCodeFixProvider.cs (2)
23public sealed override ImmutableArray<string> FixableDiagnosticIds 44Document document, ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\Core\CodeFixes\AddAnonymousTypeMemberName\AbstractAddAnonymousTypeMemberNameCodeFixProvider.cs (1)
84Document document, ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\Core\CodeFixes\AddExplicitCast\AbstractAddExplicitCastCodeFixProvider.cs (6)
48protected ImmutableArray<(TExpressionSyntax node, ITypeSymbol type)> GetPotentialTargetTypes( 80var potentialConversionTypes = GetPotentialTargetTypes( 171private static ImmutableArray<(TExpressionSyntax, ITypeSymbol)> FilterValidPotentialConversionTypes( 198string argumentName, ImmutableArray<IParameterSymbol> parameters, ref int parameterIndex) 214ImmutableArray<Diagnostic> diagnostics, 229var potentialConversionTypes = GetPotentialTargetTypes(
src\Analyzers\Core\CodeFixes\AddExplicitCast\Fixer.cs (2)
38public ImmutableArray<(TExpressionSyntax, ITypeSymbol)> GetPotentialConversionTypes( 113ImmutableArray<IParameterSymbol> parameters,
src\Analyzers\Core\CodeFixes\AddObsoleteAttribute\AbstractAddObsoleteAttributeCodeFixProvider.cs (1)
72Document document, ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\Core\CodeFixes\AddParameter\AbstractAddParameterCodeFixProvider.cs (14)
43protected abstract ImmutableArray<string> TooManyArgumentsDiagnosticIds { get; } 44protected abstract ImmutableArray<string> CannotConvertDiagnosticIds { get; } 94var argumentInsertPositionInMethodCandidates = GetArgumentInsertPositionForMethodCandidates( 133var candidates = semanticModel.GetMemberGroup(expression, cancellationToken).OfType<IMethodSymbol>().ToImmutableArray(); 184var methodCandidates = type.InstanceConstructors; 192private static ImmutableArray<ArgumentInsertPositionData<TArgumentSyntax>> GetArgumentInsertPositionForMethodCandidates( 197ImmutableArray<IMethodSymbol> methodCandidates) 241ImmutableArray<ArgumentInsertPositionData<TArgumentSyntax>> methodsAndArgumentsToAdd) 243var codeFixData = PrepareCreationOfCodeActions(context.Document, arguments, methodsAndArgumentsToAdd); 248var fixes = codeFixData.Length <= 2 255ImmutableArray<CodeAction> NestByOverload() 292ImmutableArray<CodeAction> NestByCascading() 329private ImmutableArray<CodeFixData> PrepareCreationOfCodeActions( 332ImmutableArray<ArgumentInsertPositionData<TArgumentSyntax>> methodsAndArgumentsToAdd)
src\Analyzers\Core\CodeFixes\AddParameter\AddParameterService.cs (1)
215private static async Task<ImmutableArray<IMethodSymbol>> FindMethodDeclarationReferencesAsync(
src\Analyzers\Core\CodeFixes\AddParameter\RegisterFixData.cs (2)
9internal sealed class RegisterFixData<TArgumentSyntax>(SeparatedSyntaxList<TArgumentSyntax> arguments, ImmutableArray<IMethodSymbol> methodCandidates, bool isConstructorInitializer) 17public ImmutableArray<IMethodSymbol> MethodCandidates { get; } = methodCandidates;
src\Analyzers\Core\CodeFixes\AddRequiredParentheses\AddRequiredParenthesesCodeFixProvider.cs (2)
23public override ImmutableArray<string> FixableDiagnosticIds 43Document document, ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\Core\CodeFixes\AliasAmbiguousType\AbstractAliasAmbiguousTypeCodeFixProvider.cs (4)
82var typeToNameSegments = new Dictionary<ITypeSymbol, ImmutableArray<string>>(); 86var t1NameSegments = GetNameSegments(t1); 87var t2NameSegments = GetNameSegments(t2); 108ImmutableArray<string> GetNameSegments(ITypeSymbol symbol)
src\Analyzers\Core\CodeFixes\ConflictMarkerResolution\AbstractConflictMarkerCodeFixProvider.cs (2)
55public override ImmutableArray<string> FixableDiagnosticIds { get; } 392Document document, ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\Core\CodeFixes\ConvertTypeOfToNameOf\AbstractConvertTypeOfToNameOfCodeFixProvider.cs (2)
24public sealed override ImmutableArray<string> FixableDiagnosticIds 35Document document, ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\Core\CodeFixes\DocumentationComments\AbstractAddDocCommentNodesCodeFixProvider.cs (2)
55protected abstract ImmutableArray<string> GetParameterNames(TMemberDeclarationSyntax method); 64var parameterNames = GetParameterNames(parentMethod);
src\Analyzers\Core\CodeFixes\DocumentationComments\AbstractRemoveDocCommentNodeCodeFixProvider.cs (1)
24public abstract override ImmutableArray<string> FixableDiagnosticIds { get; }
src\Analyzers\Core\CodeFixes\FileHeaders\AbstractFileHeaderCodeFixProvider.cs (1)
28public override ImmutableArray<string> FixableDiagnosticIds { get; }
src\Analyzers\Core\CodeFixes\ForEachCast\AbstractForEachCastCodeFixProvider.cs (2)
27public sealed override ImmutableArray<string> FixableDiagnosticIds 44Document document, ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\Core\CodeFixes\Formatting\FormattingCodeFixProvider.cs (2)
28public sealed override ImmutableArray<string> FixableDiagnosticIds 80protected override async Task FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.cs (6)
33protected abstract bool TryInitializeImplicitObjectCreation(SemanticDocument document, SyntaxNode node, CancellationToken cancellationToken, out SyntaxToken token, out ImmutableArray<Argument<TExpressionSyntax>> arguments, out INamedTypeSymbol typeToGenerateIn); 34protected abstract bool TryInitializeSimpleNameGenerationState(SemanticDocument document, SyntaxNode simpleName, CancellationToken cancellationToken, out SyntaxToken token, out ImmutableArray<Argument<TExpressionSyntax>> arguments, out INamedTypeSymbol typeToGenerateIn); 35protected abstract bool TryInitializeConstructorInitializerGeneration(SemanticDocument document, SyntaxNode constructorInitializer, CancellationToken cancellationToken, out SyntaxToken token, out ImmutableArray<Argument<TExpressionSyntax>> arguments, out INamedTypeSymbol typeToGenerateIn); 36protected abstract bool TryInitializeSimpleAttributeNameGenerationState(SemanticDocument document, SyntaxNode simpleName, CancellationToken cancellationToken, out SyntaxToken token, out ImmutableArray<Argument<TExpressionSyntax>> arguments, out INamedTypeSymbol typeToGenerateIn); 78public async Task<ImmutableArray<CodeAction>> GenerateConstructorAsync(Document document, SyntaxNode node, CancellationToken cancellationToken) 170private ImmutableArray<ParameterName> GenerateParameterNames(
src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.State.cs (24)
43private ImmutableArray<Argument<TExpressionSyntax>> _arguments; 48private ImmutableArray<RefKind> _parameterRefKinds; 49public ImmutableArray<ITypeSymbol> ParameterTypes; 56private ImmutableArray<IParameterSymbol> _parameters; 135var parameterNames = GetParameterNames(_arguments, typeParametersNames, cancellationToken); 142private ImmutableArray<ParameterName> GetParameterNames( 143ImmutableArray<Argument<TExpressionSyntax>> arguments, ImmutableArray<string> typeParametersNames, CancellationToken cancellationToken) 152var parameters = ParameterTypes.Zip(_parameterRefKinds, 166var remainingArguments = _arguments.Skip(argumentCount).ToImmutableArray(); 167var remainingParameterNames = _service.GenerateParameterNames( 178var remainingParameterTypes = ParameterTypes.Skip(argumentCount).ToImmutableArray(); 189ImmutableArray<IParameterSymbol> allParameters, 190ImmutableArray<TExpressionSyntax?> allExpressions, 210ImmutableArray<IParameterSymbol> parameters, 211ImmutableArray<TExpressionSyntax?> expressions, 212ImmutableArray<IMethodSymbol> constructors, 284internal ImmutableArray<ITypeSymbol> GetParameterTypes(CancellationToken cancellationToken) 306out var token, out var arguments, out var typeToGenerateIn)) 324out var token, out var arguments, out var typeToGenerateIn)) 343out var token, out var arguments, out var typeToGenerateIn)) 438var delegatingArguments = this.GetRequiredLanguageService<SyntaxGenerator>(TypeToGenerateIn.Language).CreateArguments(_delegatedConstructor.Parameters); 464private async Task<(ImmutableArray<ISymbol>, ImmutableArray<SyntaxNode>)> GenerateMembersAndAssignmentsAsync(
src\Analyzers\Core\CodeFixes\GenerateConstructor\GenerateConstructorHelpers.cs (8)
28ImmutableArray<IParameterSymbol> parameters, 29ImmutableArray<TExpressionSyntax?> expressions, 84ImmutableArray<TExpressionSyntax?> expressions) 131(ImmutableArray<IParameterSymbol> parameters, 137ImmutableArray<Argument<TExpressionSyntax>> arguments, 138ImmutableArray<ITypeSymbol> parameterTypes, 139ImmutableArray<ParameterName> parameterNames, 153var unavailableMemberNames = GetUnavailableMemberNames(typeToGenerateIn).ToImmutableArray();
src\Analyzers\Core\CodeFixes\GenerateConstructor\IGenerateConstructorService.cs (1)
16Task<ImmutableArray<CodeAction>> GenerateConstructorAsync(Document document, SyntaxNode node, CancellationToken cancellationToken);
src\Analyzers\Core\CodeFixes\GenerateDefaultConstructors\AbstractGenerateDefaultConstructorCodeFixProvider.cs (1)
38var actions = await service.GenerateDefaultConstructorsAsync(
src\Analyzers\Core\CodeFixes\GenerateDefaultConstructors\AbstractGenerateDefaultConstructorsService.cs (1)
25public async Task<ImmutableArray<CodeAction>> GenerateDefaultConstructorsAsync(
src\Analyzers\Core\CodeFixes\GenerateDefaultConstructors\AbstractGenerateDefaultConstructorsService.State.cs (3)
21public ImmutableArray<IMethodSymbol> UnimplementedConstructors { get; private set; } 77var classConstructors = ClassType.InstanceConstructors; 119ImmutableArray<IMethodSymbol> classConstructors,
src\Analyzers\Core\CodeFixes\GenerateDefaultConstructors\GenerateDefaultConstructorsCodeAction.cs (3)
29ImmutableArray<IMethodSymbol> constructors) : CodeAction 31private readonly ImmutableArray<IMethodSymbol> _constructors = constructors; 55var baseConstructorArguments = baseConstructor.Parameters.Length != 0
src\Analyzers\Core\CodeFixes\GenerateDefaultConstructors\IGenerateDefaultConstructorsService.cs (1)
16Task<ImmutableArray<CodeAction>> GenerateDefaultConstructorsAsync(
src\Analyzers\Core\CodeFixes\GenerateEnumMember\AbstractGenerateEnumMemberService.cs (1)
24public async Task<ImmutableArray<CodeAction>> GenerateEnumMemberAsync(Document document, SyntaxNode node, CancellationToken cancellationToken)
src\Analyzers\Core\CodeFixes\GenerateEnumMember\AbstractGenerateEnumMemberService.State.cs (1)
57var existingMembers = TypeToGenerateIn.GetMembers(IdentifierToken.ValueText);
src\Analyzers\Core\CodeFixes\GenerateEnumMember\IGenerateEnumMemberService.cs (1)
15Task<ImmutableArray<CodeAction>> GenerateEnumMemberAsync(Document document, SyntaxNode node, CancellationToken cancellationToken);
src\Analyzers\Core\CodeFixes\GenerateMember\AbstractGenerateMemberCodeFixProvider.cs (2)
27protected abstract Task<ImmutableArray<CodeAction>> GetCodeActionsAsync(Document document, SyntaxNode node, CancellationToken cancellationToken); 47var codeActions = await GetCodeActionsAsync(context.Document, name, context.CancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\GenerateMember\AbstractGenerateMemberService.cs (1)
51var locations = typeToGenerateIn.Locations;
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateConversionService.cs (1)
29public async Task<ImmutableArray<CodeAction>> GenerateConversionAsync(
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateDeconstructMethodService.cs (2)
22public abstract ImmutableArray<IParameterSymbol> TryMakeParameters(SemanticModel semanticModel, SyntaxNode target, CancellationToken cancellationToken); 24public async Task<ImmutableArray<CodeAction>> GenerateDeconstructMethodAsync(
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateDeconstructMethodService.State.cs (1)
65var parameters = service.TryMakeParameters(semanticModel, targetVariables, cancellationToken);
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateMethodService.cs (1)
30public async Task<ImmutableArray<CodeAction>> GenerateMethodAsync(
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateMethodService.State.cs (2)
231private static ImmutableArray<string> GenerateParameterNamesBasedOnParameterTypes(ImmutableArray<IParameterSymbol> parameters)
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.AbstractInvocationInfo.cs (6)
24protected abstract ImmutableArray<ITypeParameterSymbol> GetCapturedTypeParameters(CancellationToken cancellationToken); 25protected abstract ImmutableArray<ITypeParameterSymbol> GenerateTypeParameters(CancellationToken cancellationToken); 32protected override ImmutableArray<ITypeParameterSymbol> DetermineTypeParametersWorker( 35var typeParameters = ComputeTypeParameters(cancellationToken); 39private ImmutableArray<ITypeParameterSymbol> ComputeTypeParameters( 46var capturedTypeParameters = GetCapturedTypeParameters(cancellationToken);
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.cs (1)
42protected async ValueTask<ImmutableArray<CodeAction>> GetActionsAsync(Document document, State state, CancellationToken cancellationToken)
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.MethodSignatureInfo.cs (8)
19ImmutableArray<string> parameterNames = default) : SignatureInfo(document, state) 22private readonly ImmutableArray<string> _parameterNames = parameterNames; 30protected override ImmutableArray<ITypeParameterSymbol> DetermineTypeParametersWorker(CancellationToken cancellationToken) 33protected override ImmutableArray<RefKind> DetermineParameterModifiers(CancellationToken cancellationToken) 36protected override ImmutableArray<bool> DetermineParameterOptionality(CancellationToken cancellationToken) 39protected override ImmutableArray<ITypeSymbol> DetermineParameterTypes(CancellationToken cancellationToken) 42protected override ImmutableArray<ParameterName> DetermineParameterNames(CancellationToken cancellationToken) 47protected override ImmutableArray<ITypeSymbol> DetermineTypeArguments(CancellationToken cancellationToken)
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.SignatureInfo.cs (17)
39private ImmutableArray<ITypeParameterSymbol> _typeParameters; 42public ImmutableArray<ITypeParameterSymbol> DetermineTypeParameters(CancellationToken cancellationToken) 49protected abstract ImmutableArray<ITypeParameterSymbol> DetermineTypeParametersWorker(CancellationToken cancellationToken); 63protected abstract ImmutableArray<ITypeSymbol> DetermineTypeArguments(CancellationToken cancellationToken); 65protected abstract ImmutableArray<RefKind> DetermineParameterModifiers(CancellationToken cancellationToken); 66protected abstract ImmutableArray<ITypeSymbol> DetermineParameterTypes(CancellationToken cancellationToken); 67protected abstract ImmutableArray<bool> DetermineParameterOptionality(CancellationToken cancellationToken); 68protected abstract ImmutableArray<ParameterName> DetermineParameterNames(CancellationToken cancellationToken); 101var parameters = await DetermineParametersAsync(cancellationToken).ConfigureAwait(false); 150var availableMethodTypeParameters = DetermineTypeParameters(cancellationToken); 176var typeArguments = DetermineTypeArguments(cancellationToken); 177var typeParameters = DetermineTypeParameters(cancellationToken); 196private ImmutableArray<SyntaxNode> GenerateStatements( 207private async ValueTask<ImmutableArray<IParameterSymbol>> DetermineParametersAsync(CancellationToken cancellationToken) 209var modifiers = DetermineParameterModifiers(cancellationToken); 211var optionality = DetermineParameterOptionality(cancellationToken); 212var names = DetermineParameterNames(cancellationToken);
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\IGenerateConversionService.cs (1)
15Task<ImmutableArray<CodeAction>> GenerateConversionAsync(Document document, SyntaxNode node, CancellationToken cancellationToken);
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\IGenerateDeconstructMemberService.cs (1)
16Task<ImmutableArray<CodeAction>> GenerateDeconstructMethodAsync(
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\IGenerateParameterizedMemberService.cs (1)
16Task<ImmutableArray<CodeAction>> GenerateMethodAsync(Document document, SyntaxNode node, CancellationToken cancellationToken);
src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.CodeAction.cs (1)
114private ImmutableArray<SyntaxNode> GenerateStatements()
src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.cs (1)
32public async Task<ImmutableArray<CodeAction>> GenerateVariableAsync(
src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.State.cs (1)
36public ImmutableArray<IParameterSymbol> Parameters { get; private set; }
src\Analyzers\Core\CodeFixes\GenerateVariable\IGenerateVariableService.cs (1)
17Task<ImmutableArray<CodeAction>> GenerateVariableAsync(Document document, SyntaxNode node, CancellationToken cancellationToken);
src\Analyzers\Core\CodeFixes\ImplementAbstractClass\AbstractImplementAbstractClassCodeFixProvider.cs (1)
17public sealed override ImmutableArray<string> FixableDiagnosticIds { get; } = [diagnosticId];
src\Analyzers\Core\CodeFixes\ImplementAbstractClass\ImplementAbstractClassData.cs (8)
35ImmutableArray<(INamedTypeSymbol type, ImmutableArray<ISymbol> members)> unimplementedMembers) 41private readonly ImmutableArray<(INamedTypeSymbol type, ImmutableArray<ISymbol> members)> _unimplementedMembers = unimplementedMembers; 126private ImmutableArray<ISymbol> GenerateMembers( 270public ImmutableArray<(ISymbol symbol, bool canDelegateAllMembers)> GetDelegatableMembers(CancellationToken cancellationToken) 272var members = ImplementHelpers.GetDelegatableMembers( 319var constraints = typeParameter.ConstraintTypes;
src\Analyzers\Core\CodeFixes\ImplementInterface\AbstractImplementInterfaceCodeFixProvider.cs (2)
155var delegatableMembers = GetDelegatableMembers(document, state, cancellationToken); 200private static ImmutableArray<ISymbol> GetDelegatableMembers(
src\Analyzers\Core\CodeFixes\ImplementInterface\AbstractImplementInterfaceService.cs (2)
31protected abstract bool TryInitializeState(Document document, SemanticModel model, SyntaxNode interfaceNode, CancellationToken cancellationToken, out SyntaxNode classOrStructDecl, out INamedTypeSymbol classOrStructType, out ImmutableArray<INamedTypeSymbol> interfaceTypes); 98public ImmutableArray<ISymbol> ImplementInterfaceMember(
src\Analyzers\Core\CodeFixes\ImplementInterface\AbstractImplementInterfaceService.State.cs (8)
18ImmutableArray<INamedTypeSymbol> interfaceTypes, 30public ImmutableArray<INamedTypeSymbol> InterfaceTypes => Info.InterfaceTypes; 36public ImmutableArray<(INamedTypeSymbol type, ImmutableArray<ISymbol> members)> MembersWithoutExplicitOrImplicitImplementationWhichCanBeImplicitlyImplemented => Info.MembersWithoutExplicitOrImplicitImplementationWhichCanBeImplicitlyImplemented; 37public ImmutableArray<(INamedTypeSymbol type, ImmutableArray<ISymbol> members)> MembersWithoutExplicitOrImplicitImplementation => Info.MembersWithoutExplicitOrImplicitImplementation; 40public ImmutableArray<(INamedTypeSymbol type, ImmutableArray<ISymbol> members)> MembersWithoutExplicitImplementation => Info.MembersWithoutExplicitImplementation;
src\Analyzers\Core\CodeFixes\ImplementInterface\IImplementInterfaceService.cs (1)
40ImmutableArray<ISymbol> ImplementInterfaceMember(
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementHelpers.cs (9)
18public static ImmutableArray<ISymbol> GetDelegatableMembers( 26var fields = namedType.GetMembers() 32var properties = namedType.GetMembers() 38var parameters = GetNonCapturedPrimaryConstructorParameters(fields, properties); 42ImmutableArray<IParameterSymbol> GetNonCapturedPrimaryConstructorParameters( 43ImmutableArray<IFieldSymbol> fields, 44ImmutableArray<IPropertySymbol> properties) 65bool IsAssignedToFieldOrProperty(ImmutableArray<IFieldSymbol> fields, ImmutableArray<IPropertySymbol> properties, IParameterSymbol parameter)
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementInterfaceGenerator.cs (8)
76ImmutableArray<(INamedTypeSymbol type, ImmutableArray<ISymbol> members)> unimplementedMembers, 77ImmutableArray<ISymbol> extraMembers, 85var memberDefinitions = GenerateMembers( 106private ImmutableArray<ISymbol> GenerateMembers( 109ImmutableArray<(INamedTypeSymbol type, ImmutableArray<ISymbol> members)> unimplementedMembers, 284public ImmutableArray<ISymbol> GenerateMembers(
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementInterfaceGenerator_DisposePattern.cs (5)
37private static readonly ImmutableArray<string> s_disposedValueNameParts = ["disposed", "value"]; 46ImmutableArray<(INamedTypeSymbol type, ImmutableArray<ISymbol> members)> unimplementedMembers, 117private (ImmutableArray<ISymbol>, SyntaxNode) CreateDisposableMethods( 220var explicitInterfaceImplementations = Explicitly || !Service.CanImplementImplicitly
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementInterfaceGenerator_Property.cs (3)
29private ImmutableArray<ISymbol> GeneratePropertyMembers( 153private ImmutableArray<SyntaxNode> GetSetAccessorStatements( 168private ImmutableArray<SyntaxNode> GetGetAccessorStatements(
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementInterfaceInfo.cs (7)
27public ImmutableArray<INamedTypeSymbol> InterfaceTypes { get; init; } 29public ImmutableArray<(INamedTypeSymbol type, ImmutableArray<ISymbol> members)> MembersWithoutExplicitOrImplicitImplementationWhichCanBeImplicitlyImplemented { get; init; } = []; 30public ImmutableArray<(INamedTypeSymbol type, ImmutableArray<ISymbol> members)> MembersWithoutExplicitOrImplicitImplementation { get; init; } = []; 31public ImmutableArray<(INamedTypeSymbol type, ImmutableArray<ISymbol> members)> MembersWithoutExplicitImplementation { get; init; } = [];
src\Analyzers\Core\CodeFixes\ImplementType\ImplementTypeOptions.cs (1)
65public static readonly ImmutableArray<IOption2> EditorConfigOptions = [InsertionBehavior, PropertyGenerationBehavior];
src\Analyzers\Core\CodeFixes\MakeFieldReadonly\AbstractMakeFieldReadonlyCodeFixProvider.cs (2)
26public override ImmutableArray<string> FixableDiagnosticIds 40ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\Core\CodeFixes\MakeMemberStatic\AbstractMakeMemberStaticCodeFixProvider.cs (1)
32protected sealed override Task FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor,
src\Analyzers\Core\CodeFixes\MakeMethodSynchronous\AbstractMakeMethodSynchronousCodeFixProvider.cs (1)
155Solution solution, ImmutableArray<ReferenceLocation> locations, CancellationToken cancellationToken)
src\Analyzers\Core\CodeFixes\MakeTypeAbstract\AbstractMakeTypeAbstractCodeFixProvider.cs (1)
32protected sealed override Task FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor,
src\Analyzers\Core\CodeFixes\MakeTypePartial\AbstractMakeTypePartialCodeFixProvider.cs (1)
29protected override async Task FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\Core\CodeFixes\MatchFolderAndNamespace\AbstractChangeNamespaceToMatchFolderCodeFixProvider.cs (2)
23public override ImmutableArray<string> FixableDiagnosticIds => [IDEDiagnosticIds.MatchFolderAndNamespaceDiagnosticId]; 42private static async Task<Solution> FixAllInDocumentAsync(Document document, ImmutableArray<Diagnostic> diagnostics, CancellationToken cancellationToken)
src\Analyzers\Core\CodeFixes\MatchFolderAndNamespace\AbstractChangeNamespaceToMatchFolderCodeFixProvider.CustomFixAllProvider.cs (4)
30var diagnostics = fixAllContext.Scope switch 51static async Task<ImmutableArray<Diagnostic>> GetSolutionDiagnosticsAsync(FixAllContext fixAllContext) 57var projectDiagnostics = await fixAllContext.GetAllDiagnosticsAsync(project).ConfigureAwait(false); 67ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\Core\CodeFixes\Naming\FallbackNamingRules.cs (3)
20public static readonly ImmutableArray<NamingRule> Default = 51internal static readonly ImmutableArray<NamingRule> CompletionFallbackRules = [CreateCamelCaseFieldsAndParametersRule()]; 57internal static readonly ImmutableArray<NamingRule> CompletionSupplementaryRules = [CreateEndWithAsyncRule(), CreateGetAsyncRule(), CreateMethodStartsWithGetRule()];
src\Analyzers\Core\CodeFixes\Naming\NamingExtensions.cs (2)
20var rules = await document.GetNamingRulesAsync(cancellationToken).ConfigureAwait(false); 35public static async Task<ImmutableArray<NamingRule>> GetNamingRulesAsync(
src\Analyzers\Core\CodeFixes\NamingStyle\NamingStyleCodeFixProvider.cs (3)
37public override ImmutableArray<string> FixableDiagnosticIds { get; } 128public override ImmutableArray<string> Tags => []; 153protected override async Task<ImmutableArray<CodeActionOperation>> ComputeOperationsAsync(IProgress<CodeAnalysisProgress> progress, CancellationToken cancellationToken)
src\Analyzers\Core\CodeFixes\NewLines\ConsecutiveStatementPlacement\ConsecutiveStatementPlacementCodeFixProvider.cs (2)
26public override ImmutableArray<string> FixableDiagnosticIds 44public static async Task<Document> FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, CancellationToken cancellationToken)
src\Analyzers\Core\CodeFixes\NewLines\MultipleBlankLines\AbstractMultipleBlankLinesCodeFixProvider.cs (2)
26public override ImmutableArray<string> FixableDiagnosticIds 45Document document, ImmutableArray<Diagnostic> diagnostics, CancellationToken cancellationToken)
src\Analyzers\Core\CodeFixes\OrderModifiers\AbstractOrderModifiersCodeFixProvider.cs (3)
35protected abstract ImmutableArray<string> FixableCompilerErrorIds { get; } 38public sealed override ImmutableArray<string> FixableDiagnosticIds 53Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\Core\CodeFixes\PopulateSwitch\AbstractPopulateSwitchCodeFixProvider.cs (4)
34public sealed override ImmutableArray<string> FixableDiagnosticIds { get; } 114Document document, ImmutableArray<Diagnostic> diagnostics, 124Document document, SyntaxEditor editor, ImmutableArray<Diagnostic> diagnostics, 221ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\Core\CodeFixes\PopulateSwitch\AbstractPopulateSwitchExpressionCodeFixProvider.cs (1)
60var arms = switchExpression.Arms;
src\Analyzers\Core\CodeFixes\PopulateSwitch\AbstractPopulateSwitchStatementCodeFixProvider.cs (1)
85var cases = switchStatement.Cases;
src\Analyzers\Core\CodeFixes\QualifyMemberAccess\AbstractQualifyMemberAccessCodeFixProvider.cs (2)
25public sealed override ImmutableArray<string> FixableDiagnosticIds 36Document document, ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\Core\CodeFixes\RemoveAsyncModifier\AbstractRemoveAsyncModifierCodeFixProvider.cs (1)
64Document document, ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\Core\CodeFixes\RemoveRedundantEquality\RemoveRedundantEqualityCodeFixProvider.cs (1)
26public override ImmutableArray<string> FixableDiagnosticIds => [IDEDiagnosticIds.RemoveRedundantEqualityDiagnosticId];
src\Analyzers\Core\CodeFixes\RemoveUnnecessaryImports\AbstractRemoveUnnecessaryImportsCodeFixProvider.cs (1)
19public sealed override ImmutableArray<string> FixableDiagnosticIds
src\Analyzers\Core\CodeFixes\RemoveUnnecessaryParentheses\AbstractRemoveUnnecessaryParenthesesCodeFixProvider.cs (2)
22public override ImmutableArray<string> FixableDiagnosticIds 35Document document, ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\Core\CodeFixes\RemoveUnnecessarySuppressions\RemoveUnnecessaryAttributeSuppressionsCodeFixProvider.cs (2)
24public override ImmutableArray<string> FixableDiagnosticIds 40protected override Task FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\Core\CodeFixes\RemoveUnnecessarySuppressions\RemoveUnnecessaryPragmaSuppressionsCodeFixProvider.cs (2)
29public override ImmutableArray<string> FixableDiagnosticIds 47protected override Task FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\Core\CodeFixes\RemoveUnusedMembers\AbstractRemoveUnusedMembersCodeFixProvider.cs (2)
23public sealed override ImmutableArray<string> FixableDiagnosticIds 42ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\Core\CodeFixes\RemoveUnusedParametersAndValues\AbstractRemoveUnusedValuesCodeFixProvider.cs (7)
62public sealed override ImmutableArray<string> FixableDiagnosticIds 240ImmutableArray<Diagnostic> diagnostics, 265ImmutableArray<Diagnostic> diagnostics, 272private static async Task<Document> PreprocessDocumentAsync(Document document, ImmutableArray<Diagnostic> diagnostics, CancellationToken cancellationToken) 284protected sealed override async Task FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken) 295ImmutableArray<Diagnostic> diagnostics, 830var originalDeclStatementsToMoveOrRemove =
src\Analyzers\Core\CodeFixes\SimplifyBooleanExpression\SimplifyConditionalCodeFixProvider.cs (2)
26public sealed override ImmutableArray<string> FixableDiagnosticIds { get; } = 37ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\Core\CodeFixes\SimplifyInterpolation\AbstractSimplifyInterpolationCodeFixProvider.cs (2)
33public override ImmutableArray<string> FixableDiagnosticIds { get; } = 50Document document, ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\Core\CodeFixes\SimplifyLinqExpression\SimplifyLinqExpressionCodeFixProvider.cs (2)
24public sealed override ImmutableArray<string> FixableDiagnosticIds 35ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\Core\CodeFixes\UnsealClass\AbstractUnsealClassCodeFixProvider.cs (1)
58Solution solution, ImmutableArray<SyntaxReference> declarationReferences, CancellationToken cancellationToken)
src\Analyzers\Core\CodeFixes\UpdateLegacySuppressions\UpdateLegacySuppressionsCodeFixProvider.cs (2)
25public override ImmutableArray<string> FixableDiagnosticIds 41protected override Task FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\Core\CodeFixes\UpgradeProject\AbstractUpgradeProjectCodeFixProvider.cs (3)
21public abstract string SuggestedVersion(ImmutableArray<Diagnostic> diagnostics); 35var diagnostics = context.Diagnostics; 41protected ImmutableArray<CodeAction> GetUpgradeProjectCodeActions(CodeFixContext context)
src\Analyzers\Core\CodeFixes\UseCoalesceExpression\AbstractUseCoalesceExpressionForIfNullStatementCheckCodeFixProvider.cs (2)
20public override ImmutableArray<string> FixableDiagnosticIds 35Document document, ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\Core\CodeFixes\UseCoalesceExpression\UseCoalesceExpressionForNullableTernaryConditionalCheckCodeFixProvider.cs (2)
25public override ImmutableArray<string> FixableDiagnosticIds 38Document document, ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\Core\CodeFixes\UseCoalesceExpression\UseCoalesceExpressionForTernaryConditionalCheckCodeFixProvider.cs (2)
26public override ImmutableArray<string> FixableDiagnosticIds 39Document document, ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\Core\CodeFixes\UseCollectionInitializer\AbstractUseCollectionInitializerCodeFixProvider.cs (3)
50public sealed override ImmutableArray<string> FixableDiagnosticIds 57ImmutableArray<CollectionMatch<SyntaxNode>> preMatches, 58ImmutableArray<CollectionMatch<SyntaxNode>> postMatches, CancellationToken cancellationToken);
src\Analyzers\Core\CodeFixes\UseCompoundAssignment\AbstractUseCompoundAssignmentCodeFixProvider.cs (3)
25public override ImmutableArray<string> FixableDiagnosticIds { get; } = 34ImmutableArray<(TSyntaxKind exprKind, TSyntaxKind assignmentKind, TSyntaxKind tokenKind)> kinds) 53Document document, ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\Core\CodeFixes\UseConditionalExpression\AbstractUseConditionalExpressionCodeFixProvider.cs (1)
45Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor,
src\Analyzers\Core\CodeFixes\UseConditionalExpression\ForAssignment\AbstractUseConditionalExpressionForAssignmentCodeFixProvider.cs (2)
41public override ImmutableArray<string> FixableDiagnosticIds 215var declarators = declaration.Declarators;
src\Analyzers\Core\CodeFixes\UseConditionalExpression\ForReturn\AbstractUseConditionalExpressionForReturnCodeFixProvider.cs (1)
34public override ImmutableArray<string> FixableDiagnosticIds
src\Analyzers\Core\CodeFixes\UseExplicitTupleName\UseExplicitTupleNameCodeFixProvider.cs (2)
25public override ImmutableArray<string> FixableDiagnosticIds { get; } 35Document document, ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\Core\CodeFixes\UseInferredMemberName\AbstractUseInferredMemberNameCodeFixProvider.cs (2)
22public override ImmutableArray<string> FixableDiagnosticIds { get; } 32Document document, ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\Core\CodeFixes\UseIsNullCheck\AbstractUseIsNullForReferenceEqualsCodeFixProvider.cs (2)
24public override ImmutableArray<string> FixableDiagnosticIds 51Document document, ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\Core\CodeFixes\UseNullPropagation\AbstractUseNullPropagationCodeFixProvider.cs (2)
56public override ImmutableArray<string> FixableDiagnosticIds 80Document document, ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\Core\CodeFixes\UseObjectInitializer\AbstractUseObjectInitializerCodeFixProvider.cs (2)
59ImmutableArray<Match<TExpressionSyntax, TStatementSyntax, TMemberAccessExpressionSyntax, TAssignmentStatementSyntax>> matches); 61public override ImmutableArray<string> FixableDiagnosticIds
src\Analyzers\Core\CodeFixes\UseSystemHashCode\UseSystemHashCodeCodeFixProvider.cs (3)
26public override ImmutableArray<string> FixableDiagnosticIds { get; } 36Document document, ImmutableArray<Diagnostic> diagnostics, 75var components = generator.GetGetHashCodeComponents(
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\CodeFixContextExtensions.cs (1)
27internal static void RegisterFixes(this CodeFixContext context, IEnumerable<CodeAction> actions, ImmutableArray<Diagnostic> diagnostics)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\ForkingSyntaxEditorBasedCodeFixProvider.cs (1)
59ImmutableArray<Diagnostic> diagnostics,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\SyntaxEditorBasedCodeFixProvider.cs (4)
18private static readonly ImmutableArray<FixAllScope> s_defaultSupportedFixAllScopes = 56var diagnostics = ImmutableArray.Create(diagnostic ?? context.Diagnostics[0]); 61Document document, ImmutableArray<Diagnostic> diagnostics, CancellationToken cancellationToken) 89Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService_FindDeclaration.cs (2)
26var declarations = _symbolDeclarationService.GetDeclarations(destination); 147var declarations = _symbolDeclarationService.GetDeclarations(symbol);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationSymbolFactory.cs (72)
34ImmutableArray<AttributeData> attributes, Accessibility accessibility, 36ImmutableArray<IEventSymbol> explicitInterfaceImplementations, 49ImmutableArray<AttributeData> attributes, 54ImmutableArray<IPropertySymbol> explicitInterfaceImplementations, 56ImmutableArray<IParameterSymbol> parameters, 83ImmutableArray<AttributeData> attributes, Accessibility accessibility, DeclarationModifiers modifiers, 84ITypeSymbol type, RefKind refKind, ImmutableArray<IPropertySymbol> explicitInterfaceImplementations, string name, 85ImmutableArray<IParameterSymbol> parameters, IMethodSymbol? getMethod, IMethodSymbol? setMethod, 108ImmutableArray<AttributeData> attributes, 125ImmutableArray<AttributeData> attributes, 129ImmutableArray<IParameterSymbol> parameters, 130ImmutableArray<SyntaxNode> statements = default, 131ImmutableArray<SyntaxNode> baseConstructorArguments = default, 132ImmutableArray<SyntaxNode> thisConstructorArguments = default, 144ImmutableArray<AttributeData> attributes, string typeName, 145ImmutableArray<SyntaxNode> statements = default) 154ImmutableArray<AttributeData> attributes, 159ImmutableArray<IMethodSymbol> explicitInterfaceImplementations, 161ImmutableArray<ITypeParameterSymbol> typeParameters, 162ImmutableArray<IParameterSymbol> parameters, 163ImmutableArray<SyntaxNode> statements = default, 164ImmutableArray<SyntaxNode> handlesExpressions = default, 165ImmutableArray<AttributeData> returnTypeAttributes = default, 178ImmutableArray<AttributeData> attributes, Accessibility accessibility, DeclarationModifiers modifiers, 181ImmutableArray<IMethodSymbol> explicitInterfaceImplementations, 182string name, ImmutableArray<ITypeParameterSymbol> typeParameters, 183ImmutableArray<IParameterSymbol> parameters, 184ImmutableArray<SyntaxNode> statements = default, 185ImmutableArray<SyntaxNode> handlesExpressions = default, 186ImmutableArray<AttributeData> returnTypeAttributes = default, 197ImmutableArray<AttributeData> attributes, 202ImmutableArray<IParameterSymbol> parameters, 203ImmutableArray<SyntaxNode> statements = default, 204ImmutableArray<AttributeData> returnTypeAttributes = default, 229ImmutableArray<SyntaxNode> statements = default, 230ImmutableArray<AttributeData> toTypeAttributes = default, 250ImmutableArray<AttributeData> attributes, 257ImmutableArray<SyntaxNode> statements = default, 258ImmutableArray<AttributeData> toTypeAttributes = default, 282ImmutableArray<AttributeData> attributes, RefKind refKind, bool isParams, ITypeSymbol type, string name, bool isOptional = false, bool hasDefaultValue = false, object? defaultValue = null) 292ImmutableArray<AttributeData>? attributes = null, 334ImmutableArray<AttributeData> attributes, 336ImmutableArray<ITypeSymbol> constraintTypes, 363ImmutableArray<AttributeData> attributes = default, 365ImmutableArray<IMethodSymbol> explicitInterfaceImplementations = default, 366ImmutableArray<SyntaxNode> statements = default) 388ImmutableArray<AttributeData> attributes, 390ImmutableArray<SyntaxNode> statements) 410ImmutableArray<TypedConstant> constructorArguments = default, 411ImmutableArray<KeyValuePair<string, TypedConstant>> namedArguments = default) 420ImmutableArray<AttributeData> attributes, 424ImmutableArray<ITypeParameterSymbol> typeParameters = default, 426ImmutableArray<INamedTypeSymbol> interfaces = default, 428ImmutableArray<ISymbol> members = default, 439ImmutableArray<AttributeData> attributes, 443ImmutableArray<ITypeParameterSymbol> typeParameters = default, 445ImmutableArray<INamedTypeSymbol> interfaces = default, 447ImmutableArray<ISymbol> members = default, 465ImmutableArray<AttributeData> attributes, 471ImmutableArray<ITypeParameterSymbol> typeParameters = default, 472ImmutableArray<IParameterSymbol> parameters = default, 517ImmutableArray<AttributeData> attributes = default, 520ImmutableArray<IMethodSymbol> explicitInterfaceImplementations = default, 522ImmutableArray<IParameterSymbol>? parameters = null, 523ImmutableArray<SyntaxNode> statements = default, 526Optional<ImmutableArray<AttributeData>> returnTypeAttributes = default) 547ImmutableArray<AttributeData> attributes = default, 548ImmutableArray<IParameterSymbol>? parameters = null, 551ImmutableArray<IPropertySymbol> explicitInterfaceImplementations = default, 575ImmutableArray<AttributeData> attributes = default, 578ImmutableArray<IEventSymbol> explicitInterfaceImplementations = default, 596ImmutableArray<AttributeData> attributes = default,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAbstractMethodSymbol.cs (14)
22private readonly ImmutableArray<AttributeData> _returnTypeAttributes; 24public virtual ImmutableArray<AttributeData> GetReturnTypeAttributes() 29ImmutableArray<AttributeData> attributes, 33ImmutableArray<AttributeData> returnTypeAttributes, 47public abstract ImmutableArray<ITypeSymbol> TypeArguments { get; } 48public abstract ImmutableArray<ITypeParameterSymbol> TypeParameters { get; } 49public abstract ImmutableArray<IParameterSymbol> Parameters { get; } 57public abstract ImmutableArray<IMethodSymbol> ExplicitInterfaceImplementations { get; } 64public ImmutableArray<NullableAnnotation> TypeArgumentNullableAnnotations => TypeArguments.SelectAsArray(a => a.NullableAnnotation); 95public ImmutableArray<CustomModifier> RefCustomModifiers 98public virtual ImmutableArray<CustomModifier> ReturnTypeCustomModifiers 109public ImmutableArray<INamedTypeSymbol> UnmanagedCallingConventionTypes => []; 114public IMethodSymbol Construct(ImmutableArray<ITypeSymbol> typeArguments, ImmutableArray<CodeAnalysis.NullableAnnotation> typeArgumentNullableAnnotations)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAbstractNamedTypeSymbol.cs (13)
23public ImmutableArray<IFieldSymbol> TupleElements { get; protected set; } 25internal readonly ImmutableArray<CodeGenerationAbstractNamedTypeSymbol> TypeMembers; 30ImmutableArray<AttributeData> attributes, 36ImmutableArray<CodeGenerationAbstractNamedTypeSymbol> typeMembers) 69public INamedTypeSymbol Construct(ImmutableArray<ITypeSymbol> typeArguments, ImmutableArray<NullableAnnotation> typeArgumentNullableAnnotations) 86public abstract ImmutableArray<IMethodSymbol> InstanceConstructors { get; } 87public abstract ImmutableArray<IMethodSymbol> StaticConstructors { get; } 88public abstract ImmutableArray<IMethodSymbol> Constructors { get; } 89public abstract ImmutableArray<ITypeSymbol> TypeArguments { get; } 90public abstract ImmutableArray<NullableAnnotation> TypeArgumentNullableAnnotations { get; } 92public ImmutableArray<CustomModifier> GetTypeArgumentCustomModifiers(int ordinal) 102public abstract ImmutableArray<ITypeParameterSymbol> TypeParameters { get; }
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationArrayTypeSymbol.cs (3)
24public ImmutableArray<int> Sizes 32public ImmutableArray<int> LowerBounds 57public ImmutableArray<CustomModifier> CustomModifiers
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAttributeData.cs (6)
14ImmutableArray<TypedConstant> constructorArguments, 15ImmutableArray<KeyValuePair<string, TypedConstant>> namedArguments) : AttributeData 17private readonly ImmutableArray<TypedConstant> _constructorArguments = constructorArguments.NullToEmpty(); 18private readonly ImmutableArray<KeyValuePair<string, TypedConstant>> _namedArguments = namedArguments.NullToEmpty(); 22protected override ImmutableArray<TypedConstant> CommonConstructorArguments => _constructorArguments; 23protected override ImmutableArray<KeyValuePair<string, TypedConstant>> CommonNamedArguments => _namedArguments;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationConstructedMethodSymbol.cs (6)
14private readonly ImmutableArray<ITypeSymbol> _typeArguments; 18ImmutableArray<ITypeSymbol> typeArguments) 56public override ImmutableArray<ITypeSymbol> TypeArguments => _typeArguments; 58public override ImmutableArray<ITypeParameterSymbol> TypeParameters => _constructedFrom.TypeParameters; 60public override ImmutableArray<IParameterSymbol> Parameters 93public override ImmutableArray<IMethodSymbol> ExplicitInterfaceImplementations
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationConstructedNamedTypeSymbol.cs (10)
16private readonly ImmutableArray<ITypeSymbol> _typeArguments; 20ImmutableArray<ITypeSymbol> typeArguments, 21ImmutableArray<CodeGenerationAbstractNamedTypeSymbol> typeMembers) 31public override ImmutableArray<ITypeSymbol> TypeArguments => _typeArguments; 33public override ImmutableArray<NullableAnnotation> TypeArgumentNullableAnnotations => _typeArguments.SelectAsArray(t => t.NullableAnnotation); 60public override ImmutableArray<IMethodSymbol> InstanceConstructors 69public override ImmutableArray<IMethodSymbol> StaticConstructors 78public override ImmutableArray<IMethodSymbol> Constructors 87public override ImmutableArray<INamedTypeSymbol> GetTypeMembers() 103public override ImmutableArray<ITypeParameterSymbol> TypeParameters => _constructedFrom.TypeParameters;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationConstructorInfo.cs (15)
17private readonly ImmutableArray<SyntaxNode> _baseConstructorArguments; 18private readonly ImmutableArray<SyntaxNode> _thisConstructorArguments; 19private readonly ImmutableArray<SyntaxNode> _statements; 25ImmutableArray<SyntaxNode> statements, 26ImmutableArray<SyntaxNode> baseConstructorArguments, 27ImmutableArray<SyntaxNode> thisConstructorArguments) 42ImmutableArray<SyntaxNode> statements, 43ImmutableArray<SyntaxNode> baseConstructorArguments, 44ImmutableArray<SyntaxNode> thisConstructorArguments) 56public static ImmutableArray<SyntaxNode> GetThisConstructorArgumentsOpt(IMethodSymbol constructor) 59public static ImmutableArray<SyntaxNode> GetBaseConstructorArgumentsOpt(IMethodSymbol constructor) 62public static ImmutableArray<SyntaxNode> GetStatements(IMethodSymbol constructor) 74private static ImmutableArray<SyntaxNode> GetThisConstructorArgumentsOpt(CodeGenerationConstructorInfo? info) 77private static ImmutableArray<SyntaxNode> GetBaseConstructorArgumentsOpt(CodeGenerationConstructorInfo? info) 80private static ImmutableArray<SyntaxNode> GetStatements(CodeGenerationConstructorInfo? info)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationConstructorSymbol.cs (4)
19ImmutableArray<AttributeData> attributes, 22ImmutableArray<IParameterSymbol> parameters) : CodeGenerationMethodSymbol(containingType, 30typeParameters: ImmutableArray<ITypeParameterSymbol>.Empty, 32returnTypeAttributes: ImmutableArray<AttributeData>.Empty)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationConversionSymbol.cs (3)
19ImmutableArray<AttributeData> attributes, 25ImmutableArray<AttributeData> toTypeAttributes, 36typeParameters: ImmutableArray<ITypeParameterSymbol>.Empty,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationDestructorInfo.cs (5)
17private readonly ImmutableArray<SyntaxNode> _statements; 21ImmutableArray<SyntaxNode> statements) 30ImmutableArray<SyntaxNode> statements) 42public static ImmutableArray<SyntaxNode> GetStatements(IMethodSymbol destructor) 48private static ImmutableArray<SyntaxNode> GetStatements(CodeGenerationDestructorInfo info)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationDestructorSymbol.cs (4)
13ImmutableArray<AttributeData> attributes) : CodeGenerationMethodSymbol(containingType, 21typeParameters: ImmutableArray<ITypeParameterSymbol>.Empty, 22parameters: ImmutableArray<IParameterSymbol>.Empty, 23returnTypeAttributes: ImmutableArray<AttributeData>.Empty)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationEventSymbol.cs (4)
17ImmutableArray<AttributeData> attributes, 21ImmutableArray<IEventSymbol> explicitInterfaceImplementations, 30public ImmutableArray<IEventSymbol> ExplicitInterfaceImplementations { get; } = explicitInterfaceImplementations.NullToEmpty(); 62public static ImmutableArray<CustomModifier> TypeCustomModifiers => [];
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationFieldSymbol.cs (3)
19ImmutableArray<AttributeData> attributes, 86public ImmutableArray<CustomModifier> RefCustomModifiers => []; 88public ImmutableArray<CustomModifier> CustomModifiers
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationMethodInfo.cs (10)
20private readonly ImmutableArray<SyntaxNode> _statements; 21private readonly ImmutableArray<SyntaxNode> _handlesExpressions; 28ImmutableArray<SyntaxNode> statements, 29ImmutableArray<SyntaxNode> handlesExpressions) 45ImmutableArray<SyntaxNode> statements, 46ImmutableArray<SyntaxNode> handlesExpressions) 58public static ImmutableArray<SyntaxNode> GetStatements(IMethodSymbol method) 61public static ImmutableArray<SyntaxNode> GetHandlesExpressions(IMethodSymbol method) 76private static ImmutableArray<SyntaxNode> GetStatements(CodeGenerationMethodInfo info) 79private static ImmutableArray<SyntaxNode> GetHandlesExpressions(CodeGenerationMethodInfo info)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationMethodSymbol.cs (9)
22public override ImmutableArray<ITypeParameterSymbol> TypeParameters { get; } 23public override ImmutableArray<IParameterSymbol> Parameters { get; } 24public override ImmutableArray<IMethodSymbol> ExplicitInterfaceImplementations { get; } 29ImmutableArray<AttributeData> attributes, 34ImmutableArray<IMethodSymbol> explicitInterfaceImplementations, 36ImmutableArray<ITypeParameterSymbol> typeParameters, 37ImmutableArray<IParameterSymbol> parameters, 38ImmutableArray<AttributeData> returnTypeAttributes, 100public override ImmutableArray<ITypeSymbol> TypeArguments
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationNamedTypeSymbol.cs (18)
23private readonly ImmutableArray<ITypeParameterSymbol> _typeParameters; 24private readonly ImmutableArray<INamedTypeSymbol> _interfaces; 25private readonly ImmutableArray<ISymbol> _members; 30ImmutableArray<AttributeData> attributes, 36ImmutableArray<ITypeParameterSymbol> typeParameters, 38ImmutableArray<INamedTypeSymbol> interfaces, 41ImmutableArray<ISymbol> members, 42ImmutableArray<CodeGenerationAbstractNamedTypeSymbol> typeMembers, 119public static ImmutableArray<ISymbol> CandidateSymbols 127public override ImmutableArray<ITypeSymbol> TypeArguments 135public override ImmutableArray<NullableAnnotation> TypeArgumentNullableAnnotations 144public override ImmutableArray<ITypeParameterSymbol> TypeParameters 154public override ImmutableArray<INamedTypeSymbol> Interfaces 162public override ImmutableArray<ISymbol> GetMembers() 165public override ImmutableArray<INamedTypeSymbol> GetTypeMembers() 168public override ImmutableArray<IMethodSymbol> InstanceConstructors 178public override ImmutableArray<IMethodSymbol> StaticConstructors 188public override ImmutableArray<IMethodSymbol> Constructors
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationNamespaceOrTypeSymbol.cs (6)
22ImmutableArray<AttributeData> attributes, 30public virtual ImmutableArray<ISymbol> GetMembers() 33public ImmutableArray<ISymbol> GetMembers(string name) 36public virtual ImmutableArray<INamedTypeSymbol> GetTypeMembers() 39public ImmutableArray<INamedTypeSymbol> GetTypeMembers(string name) 42public ImmutableArray<INamedTypeSymbol> GetTypeMembers(string name, int arity)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationNamespaceSymbol.cs (1)
59public ImmutableArray<INamespaceSymbol> ConstituentNamespaces
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationOperatorSymbol.cs (4)
20ImmutableArray<AttributeData> attributes, 25ImmutableArray<IParameterSymbol> parameters, 26ImmutableArray<AttributeData> returnTypeAttributes, 35typeParameters: ImmutableArray<ITypeParameterSymbol>.Empty,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationParameterSymbol.cs (3)
19ImmutableArray<AttributeData> attributes, 63public ImmutableArray<CustomModifier> RefCustomModifiers => []; 65public ImmutableArray<CustomModifier> CustomModifiers => [];
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationPointerTypeSymbol.cs (1)
33public ImmutableArray<CustomModifier> CustomModifiers
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationPropertySymbol.cs (7)
19ImmutableArray<AttributeData> attributes, 24ImmutableArray<IPropertySymbol> explicitInterfaceImplementations, 27ImmutableArray<IParameterSymbol> parametersOpt, 35public ImmutableArray<IParameterSymbol> Parameters { get; } = parametersOpt.NullToEmpty(); 36public ImmutableArray<IPropertySymbol> ExplicitInterfaceImplementations { get; } = explicitInterfaceImplementations.NullToEmpty(); 85public ImmutableArray<CustomModifier> RefCustomModifiers => []; 87public ImmutableArray<CustomModifier> TypeCustomModifiers => [];
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationSymbol.cs (10)
26private readonly ImmutableArray<AttributeData> _attributes; 37ImmutableArray<AttributeData> attributes, 140public ImmutableArray<Location> Locations 148public static ImmutableArray<SyntaxNode> DeclaringSyntaxNodes 156public ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 164public ImmutableArray<AttributeData> GetAttributes() 167public ImmutableArray<AttributeData> GetAttributes(INamedTypeSymbol attributeType) 170public ImmutableArray<AttributeData> GetAttributes(IMethodSymbol attributeConstructor) 201public ImmutableArray<SymbolDisplayPart> ToDisplayParts(SymbolDisplayFormat format = null) 207public ImmutableArray<SymbolDisplayPart> ToMinimalDisplayParts(SemanticModel semanticModel, int position, SymbolDisplayFormat format = null)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationTypeParameterSymbol.cs (4)
13ImmutableArray<AttributeData> attributes, 17ImmutableArray<ITypeSymbol> constraintTypes, 27public ImmutableArray<ITypeSymbol> ConstraintTypes { get; internal set; } = constraintTypes; 90public ImmutableArray<NullableAnnotation> ConstraintNullableAnnotations => ConstraintTypes.SelectAsArray(t => t.NullableAnnotation);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationTypeSymbol.cs (7)
20ImmutableArray<AttributeData> attributes, 34public virtual ImmutableArray<INamedTypeSymbol> Interfaces 37public ImmutableArray<INamedTypeSymbol> AllInterfaces 50public static ImmutableArray<ITypeSymbol> TupleElementTypes => default; 52public static ImmutableArray<string> TupleElementNames => default; 61public ImmutableArray<SymbolDisplayPart> ToDisplayParts(NullableFlowState topLevelNullability, SymbolDisplayFormat format = null) 67public ImmutableArray<SymbolDisplayPart> ToMinimalDisplayParts(SemanticModel semanticModel, NullableFlowState topLevelNullability, int position, SymbolDisplayFormat format = null)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\AddParameterEditor.cs (5)
43var leadingIndentation = GetDesiredLeadingIndentation( 68var nextLeadingIndentation = GetDesiredLeadingIndentation( 86var firstLeadingIndentation = GetDesiredLeadingIndentation( 109var leadingIndentation = GetDesiredLeadingIndentation( 121private static ImmutableArray<SyntaxTrivia> GetDesiredLeadingIndentation(
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\ImportAdderService.cs (2)
72ImmutableArray<INamespaceSymbol> namespaceSymbols, 92ImmutableArray<INamespaceSymbol> namespaceSymbols,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\ContextQuery\SyntaxContext.cs (1)
56public ImmutableArray<ITypeSymbol> InferredTypes { get; }
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\DocumentExtensions.cs (3)
171var errors = await GetErrorsAsync(document, cancellationToken, ignoreErrorCode).ConfigureAwait(false); 175public static async Task<ImmutableArray<Diagnostic>> GetErrorsAsync(this Document document, CancellationToken cancellationToken, IList<string>? ignoreErrorCode = null) 193var errors = await newDocument.GetErrorsAsync(cancellationToken, ignoreErrorCodes).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IMethodSymbolExtensions.cs (7)
45public static IMethodSymbol RenameTypeParameters(this IMethodSymbol method, ImmutableArray<string> newNames) 78this IMethodSymbol method, ImmutableArray<string> parameterNames) 80var parameterList = method.Parameters; 86var parameters = parameterList.RenameParameters(parameterNames); 101private static ImmutableArray<ITypeParameterSymbol> RenameTypeParameters( 102ImmutableArray<ITypeParameterSymbol> typeParameters, 103ImmutableArray<string> newNames,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IParameterSymbolExtensions.cs (3)
13public static ImmutableArray<IParameterSymbol> RenameParameters(this IList<IParameterSymbol> parameters, ImmutableArray<string> parameterNames) 37public static IParameterSymbol WithAttributes(this IParameterSymbol parameter, ImmutableArray<AttributeData> attributes)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IPropertySymbolExtensions.cs (3)
15public static IPropertySymbol RenameParameters(this IPropertySymbol property, ImmutableArray<string> parameterNames) 17var parameterList = property.Parameters; 23var parameters = parameterList.RenameParameters(parameterNames);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\ITypeInferenceServiceExtensions.cs (9)
15public static ImmutableArray<ITypeSymbol> InferTypes(this ITypeInferenceService service, SemanticModel semanticModel, SyntaxNode expression, CancellationToken cancellationToken) 18public static ImmutableArray<ITypeSymbol> InferTypes(this ITypeInferenceService service, SemanticModel semanticModel, int position, CancellationToken cancellationToken) 21public static ImmutableArray<TypeInferenceInfo> GetTypeInferenceInfo(this ITypeInferenceService service, SemanticModel semanticModel, int position, CancellationToken cancellationToken) 24public static ImmutableArray<TypeInferenceInfo> GetTypeInferenceInfo(this ITypeInferenceService service, SemanticModel semanticModel, SyntaxNode expression, CancellationToken cancellationToken) 33var types = typeInferenceService.InferTypes(semanticModel, expression, cancellationToken); 43var types = typeInferenceService.InferTypes(semanticModel, position, cancellationToken); 47private static INamedTypeSymbol? GetFirstDelegateType(SemanticModel semanticModel, ImmutableArray<ITypeSymbol> types) 73var types = typeInferenceService.InferTypes(semanticModel, expression, name, cancellationToken); 103var types = typeInferenceService.InferTypes(semanticModel, position, name, cancellationToken);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\StringBuilderExtensions.cs (1)
14public static StringBuilder AppendJoinedValues<T>(this StringBuilder builder, string separator, ImmutableArray<T> values, Action<T, StringBuilder> append)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxEditorExtensions.cs (6)
28ImmutableArray<TType> originalNodes, 51ImmutableArray<TType> originalNodes, 74ImmutableArray<TNode> originalNodes, 95ImmutableArray<TType> originalNodes, 118ImmutableArray<TNode> originalNodes, 152ImmutableArray<TType> originalNodes,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions.cs (13)
55public static ImmutableArray<SyntaxNode> CreateThrowNotImplementedStatementBlock( 59public static ImmutableArray<SyntaxNode> CreateArguments( 61ImmutableArray<IParameterSymbol> parameters) 191public static ImmutableArray<SyntaxNode> GetGetAccessorStatements( 209var arguments = generator.CreateArguments(property.Parameters); 230public static ImmutableArray<SyntaxNode> GetSetAccessorStatements( 248var arguments = generator.CreateArguments(property.Parameters); 291public static ImmutableArray<ISymbol> CreateFieldsForParameters( 292ImmutableArray<IParameterSymbol> parameters, ImmutableDictionary<string, string>? parameterToNewFieldMap, bool isContainedInUnsafeType) 313public static ImmutableArray<ISymbol> CreatePropertiesForParameters( 314ImmutableArray<IParameterSymbol> parameters, ImmutableDictionary<string, string>? parameterToNewPropertyMap, bool isContainedInUnsafeType) 343public static ImmutableArray<SyntaxNode> CreateAssignmentStatements( 347ImmutableArray<IParameterSymbol> parameters,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateEqualsMethod.cs (15)
38ImmutableArray<ISymbol> symbols, 42var statements = CreateEqualsMethodStatements( 49public static IMethodSymbol CreateEqualsMethod(this Compilation compilation, ImmutableArray<SyntaxNode> statements) 69ImmutableArray<ISymbol> symbols, 73var statements = CreateIEquatableEqualsMethodStatements( 85var parameters = ImmutableArray.Create(CodeGenerationSymbolFactory.CreateParameterSymbol( 88attributes: ImmutableArray<AttributeData>.Empty)); 109private static ImmutableArray<SyntaxNode> CreateEqualsMethodStatements( 115ImmutableArray<ISymbol> members, 220ImmutableArray<ISymbol> members, SyntaxNode localNameExpression, 271private static ImmutableArray<SyntaxNode> CreateIEquatableEqualsMethodStatements( 277ImmutableArray<ISymbol> members) 456public static ImmutableArray<ISymbol> CreateMemberDelegatingConstructor( 462ImmutableArray<IParameterSymbol> parameters, 471var newMembers = generateProperties
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateGetHashCodeMethod.cs (7)
17public static ImmutableArray<SyntaxNode> GetGetHashCodeComponents( 22ImmutableArray<ISymbol> members, 41public static ImmutableArray<SyntaxNode> CreateGetHashCodeStatementsUsingSystemHashCode( 43INamedTypeSymbol hashCodeType, ImmutableArray<SyntaxNode> memberReferences) 79public static ImmutableArray<SyntaxNode> CreateGetHashCodeMethodStatements( 84ImmutableArray<ISymbol> members, 87var components = GetGetHashCodeComponents(
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Formatting\ISyntaxFormattingService.cs (2)
16ImmutableArray<TextChange> GetFormattingChangesOnTypedCharacter(ParsedDocument document, int caretPosition, IndentationOptions indentationOptions, CancellationToken cancellationToken); 17ImmutableArray<TextChange> GetFormattingChangesOnPaste(ParsedDocument document, TextSpan textSpan, SyntaxFormattingOptions options, CancellationToken cancellationToken);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Helpers\MefHostServicesHelpers.cs (1)
17public static ImmutableArray<Assembly> LoadNearbyAssemblies(IEnumerable<string> assemblyNames)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\AddImports\AbstractAddImportsService.cs (8)
31protected abstract ImmutableArray<SyntaxNode> GetGlobalImports(Compilation compilation, SyntaxGenerator generator); 61var globalImports = GetGlobalImports(compilation, generator); 62var containers = GetAllContainers(root, contextLocation); 66private static ImmutableArray<SyntaxNode> GetAllContainers(SyntaxNode root, SyntaxNode? contextLocation) 75SyntaxNode import, ImmutableArray<SyntaxNode> containers, ImmutableArray<SyntaxNode> globalImports) 141var globalImports = GetGlobalImports(compilation, generator); 142var containers = GetAllContainers(root, contextLocation);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\InitializeParameter\InitializeParameterHelpersCore.cs (2)
16public static ImmutableArray<(IParameterSymbol parameter, bool before)> GetSiblingParameters(IParameterSymbol parameter) 63public static string GenerateUniqueName(IParameterSymbol parameter, ImmutableArray<string> parameterNameParts, NamingRule rule)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceService.cs (1)
176private static ImmutableArray<SyntaxTrivia> GetMergedTrivia(
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\SemanticsFactsService\AbstractSemanticFactsService.cs (4)
218public ImmutableArray<IMethodSymbol> GetDeconstructionAssignmentMethods(SemanticModel semanticModel, SyntaxNode node) 221public ImmutableArray<IMethodSymbol> GetDeconstructionForEachMethods(SemanticModel semanticModel, SyntaxNode node) 242public ImmutableArray<ISymbol> GetBestOrAllSymbols(SemanticModel semanticModel, SyntaxNode node, SyntaxToken token, CancellationToken cancellationToken) 248public ImmutableArray<IMethodSymbol> GetLocalFunctionSymbols(Compilation compilation, ISymbol symbol, CancellationToken cancellationToken)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\SymbolDeclarationService\ISymbolDeclarationService.cs (1)
17ImmutableArray<SyntaxReference> GetDeclarations(ISymbol symbol);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\SyntaxFactsService\ISyntaxFactsService.cs (1)
20Task<ImmutableArray<SyntaxNode>> GetSelectedFieldsAndPropertiesAsync(SyntaxTree syntaxTree, TextSpan textSpan, bool allowPartialSelection, CancellationToken cancellationToken);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\TypeInferenceService\AbstractTypeInferenceService.AbstractTypeInferrer.cs (4)
43public ImmutableArray<TypeInferenceInfo> InferTypes(int position) 49public ImmutableArray<TypeInferenceInfo> InferTypes(SyntaxNode expression, bool filterUnusable = true) 76private ImmutableArray<TypeInferenceInfo> Filter(IEnumerable<TypeInferenceInfo> types, bool filterUnusable = true) 111var parameters = type.TypeArguments;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\TypeInferenceService\AbstractTypeInferenceService.cs (15)
17private static ImmutableArray<ITypeSymbol> InferTypeBasedOnNameIfEmpty( 18SemanticModel semanticModel, ImmutableArray<ITypeSymbol> result, string nameOpt) 28private static ImmutableArray<TypeInferenceInfo> InferTypeBasedOnNameIfEmpty( 29SemanticModel semanticModel, ImmutableArray<TypeInferenceInfo> result, string nameOpt) 33var types = InferTypeBasedOnName(semanticModel, nameOpt); 40private static readonly ImmutableArray<string> s_booleanPrefixes = 43private static ImmutableArray<ITypeSymbol> InferTypeBasedOnName( 81public ImmutableArray<ITypeSymbol> InferTypes( 85var result = CreateTypeInferrer(semanticModel, cancellationToken) 93public ImmutableArray<ITypeSymbol> InferTypes( 97var result = CreateTypeInferrer(semanticModel, cancellationToken) 105public ImmutableArray<TypeInferenceInfo> GetTypeInferenceInfo( 109var result = CreateTypeInferrer(semanticModel, cancellationToken).InferTypes(position); 113public ImmutableArray<TypeInferenceInfo> GetTypeInferenceInfo( 117var result = CreateTypeInferrer(semanticModel, cancellationToken).InferTypes(expression);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\TypeInferenceService\ITypeInferenceService.cs (4)
29ImmutableArray<ITypeSymbol> InferTypes(SemanticModel semanticModel, SyntaxNode expression, string nameOpt, CancellationToken cancellationToken); 30ImmutableArray<ITypeSymbol> InferTypes(SemanticModel semanticModel, int position, string nameOpt, CancellationToken cancellationToken); 32ImmutableArray<TypeInferenceInfo> GetTypeInferenceInfo(SemanticModel semanticModel, int position, string nameOpt, CancellationToken cancellationToken); 33ImmutableArray<TypeInferenceInfo> GetTypeInferenceInfo(SemanticModel semanticModel, SyntaxNode expression, string nameOpt, CancellationToken cancellationToken);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Options\MemberDisplayOptions.cs (1)
39public static readonly ImmutableArray<IOption2> EditorConfigOptions = [HideAdvancedMembers];
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\AbstractSimplificationService.cs (10)
29TCrefSyntax>(ImmutableArray<AbstractReducer> reducers) : ISimplificationService 38private readonly ImmutableArray<AbstractReducer> _reducers = reducers; 40protected abstract ImmutableArray<NodeOrTokenToReduce> GetNodesAndTokensToReduce(SyntaxNode root, Func<SyntaxNodeOrToken, bool> isNodeOrTokenOutsideSimplifySpans); 56ImmutableArray<TextSpan> spans, 58ImmutableArray<AbstractReducer> reducers = default, 88ImmutableArray<TextSpan> spans, 90ImmutableArray<AbstractReducer> reducers, 111var nodesAndTokensToReduce = this.GetNodesAndTokensToReduce(root, IsNodeOrTokenOutsideSimplifySpans); 153ImmutableArray<NodeOrTokenToReduce> nodesAndTokensToReduce, 154ImmutableArray<AbstractReducer> reducers,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\ISimplificationService.cs (2)
32ImmutableArray<TextSpan> spans, 34ImmutableArray<AbstractReducer> reducers = default,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\NameGenerator.cs (5)
41public static ImmutableArray<string> EnsureUniqueness( 42ImmutableArray<string> names, 60public static ImmutableArray<string> EnsureUniqueness( 61ImmutableArray<string> names, 62ImmutableArray<bool> isFixed,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\LayeredServiceUtilities.cs (1)
18private static readonly ImmutableArray<string> s_orderedProductLayers = [ServiceLayer.Host, ServiceLayer.Editor, ServiceLayer.Desktop, ServiceLayer.Default];
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefLanguageServices.cs (4)
16[assembly: DebuggerTypeProxy(typeof(MefLanguageServices.LazyServiceMetadataDebuggerProxy), Target = typeof(ImmutableArray<Lazy<ILanguageService, WorkspaceServiceMetadata>>))] 24private readonly ImmutableArray<(Lazy<ILanguageService, LanguageServiceMetadata> lazyService, bool usesFactory)> _services; 60ImmutableArray<IDisposable> disposableServices; 140internal sealed class LazyServiceMetadataDebuggerProxy(ImmutableArray<Lazy<ILanguageService, LanguageServiceMetadata>> services)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefWorkspaceServices.cs (8)
17[assembly: DebuggerTypeProxy(typeof(MefWorkspaceServices.LazyServiceMetadataDebuggerProxy), Target = typeof(ImmutableArray<Lazy<IWorkspaceService, WorkspaceServiceMetadata>>))] 25private readonly ImmutableArray<(Lazy<IWorkspaceService, WorkspaceServiceMetadata> lazyService, bool usesFactory)> _services; 38private ImmutableArray<string> _languages; 77ImmutableArray<IDisposable> disposableServices; 149private ImmutableArray<string> ComputeSupportedLanguages() 151var localLanguages = _languages; 168internal ImmutableArray<string> SupportedLanguagesArray => ComputeSupportedLanguages(); 214internal sealed class LazyServiceMetadataDebuggerProxy(ImmutableArray<Lazy<IWorkspaceService, WorkspaceServiceMetadata>> services)
Microsoft.CodeAnalysis.CodeStyle.UnitTestUtilities (19)
src\Features\DiagnosticsTestUtilities\CodeActions\CSharpCodeFixVerifier`2+Test.cs (5)
80public Func<ImmutableArray<Diagnostic>, Diagnostic?>? DiagnosticSelector { get; set; } 82public Action<ImmutableArray<CodeAction>>? CodeActionsVerifier { get; set; } 107protected override Diagnostic? TrySelectDiagnosticToFix(ImmutableArray<Diagnostic> fixableDiagnostics) 113protected override ImmutableArray<CodeAction> FilterCodeActions(ImmutableArray<CodeAction> actions)
src\Features\DiagnosticsTestUtilities\CodeActions\CSharpCodeRefactoringVerifier`1+Test.cs (3)
91protected override ImmutableArray<CodeAction> FilterCodeActions(ImmutableArray<CodeAction> actions) 93var result = base.FilterCodeActions(actions);
src\Features\DiagnosticsTestUtilities\CodeActions\VisualBasicCodeFixVerifier`2+Test.cs (2)
73public Func<ImmutableArray<Diagnostic>, Diagnostic?>? DiagnosticSelector { get; set; } 92protected override Diagnostic? TrySelectDiagnosticToFix(ImmutableArray<Diagnostic> fixableDiagnostics)
src\Features\DiagnosticsTestUtilities\CodeActions\VisualBasicCodeRefactoringVerifier`1+Test.cs (3)
83protected override ImmutableArray<CodeAction> FilterCodeActions(ImmutableArray<CodeAction> actions) 85var result = base.FilterCodeActions(actions);
src\Features\DiagnosticsTestUtilities\NamingStyles\NamingStylesTestOptionSets.cs (6)
95internal OptionsCollection MethodNamesWithAccessibilityArePascalCase(ImmutableArray<Accessibility> accessibilities) 98internal OptionsCollection SymbolKindsArePascalCase(ImmutableArray<SymbolSpecification.SymbolKindOrTypeKind> symbolKinds) 125internal OptionsCollection AccessibilitiesArePascalCase(ImmutableArray<Accessibility> accessibilities) 323private static NamingStylePreferences MethodNamesArePascalCaseOption(ImmutableArray<Accessibility> accessibilities) 354private static NamingStylePreferences SymbolKindsArePascalCaseOption(ImmutableArray<SymbolSpecification.SymbolKindOrTypeKind> symbolKinds) 385private static NamingStylePreferences AccessibilitiesArePascalCaseOption(ImmutableArray<Accessibility> accessibilities)
Microsoft.CodeAnalysis.Collections.Package (6)
ImmutableSegmentedDictionary`2.cs (1)
21/// the scenarios where <see cref="ImmutableArray{T}"/> is applicable, and
Internal\HashHelpers.cs (1)
38private static readonly ImmutableArray<int> s_primes = ImmutableArray.Create(
RoslynImmutableInterlocked.cs (4)
616public static ImmutableArray<T> VolatileRead<T>(ref readonly ImmutableArray<T> location) 630public static void VolatileWrite<T>(ref ImmutableArray<T> location, ImmutableArray<T> value)
Microsoft.CodeAnalysis.Compiler.Test.Resources (7)
Analyzers\DoNothingAnalyzer.cs (2)
14public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray<DiagnosticDescriptor>.Empty;
Analyzers\DoNothingSuppressor.cs (2)
14public override ImmutableArray<SuppressionDescriptor> SupportedSuppressions => ImmutableArray<SuppressionDescriptor>.Empty;
TestKeys.cs (3)
13public static readonly ImmutableArray<byte> PublicKey_ce65828c82a341f2 = ImmutableArray.Create(new byte[] 27public static readonly ImmutableArray<byte> PublicKey_b03f5f7f11d50a3a = ImmutableArray.Create(new byte[] 41public static readonly ImmutableArray<byte> PublicKey_31bf3856ad364e35 = ImmutableArray.Create(new byte[]
Microsoft.CodeAnalysis.CSharp (7112)
Binder\Binder.cs (7)
185internal virtual ImmutableArray<LocalSymbol> GetDeclaredLocalsForScope(SyntaxNode scopeDesignator) 194internal virtual ImmutableArray<LocalFunctionSymbol> GetDeclaredLocalFunctionsForScope(CSharpSyntaxNode scopeDesignator) 859var locals = this.GetDeclaredLocalsForScope(scopeDesignator); 862: new BoundSequence(scopeDesignator, locals, ImmutableArray<BoundExpression>.Empty, expression, getType()) { WasCompilerGenerated = true }; 874var locals = this.GetDeclaredLocalsForScope(scopeDesignator); 889var locals = this.GetDeclaredLocalsForScope(scopeDesignator); 890var localFunctions = this.GetDeclaredLocalFunctionsForScope(scopeDesignator);
Binder\Binder.IdentifierUsedAsValueFinder.cs (2)
186ImmutableArray<TypeWithAnnotations>.Empty, 187ImmutableArray<RefKind>.Empty,
Binder\Binder.QueryTranslationState.cs (1)
57result.Add(vars, ImmutableArray<string>.Empty);
Binder\Binder.QueryUnboundLambdaState.cs (2)
21private readonly ImmutableArray<RangeVariableSymbol> _parameters; 25public QueryUnboundLambdaState(Binder binder, RangeVariableMap rangeVariableMap, ImmutableArray<RangeVariableSymbol> parameters, LambdaBodyFactory bodyFactory, bool includeCache = true)
Binder\Binder.RangeVariableMap.cs (1)
26private class RangeVariableMap : Dictionary<RangeVariableSymbol, ImmutableArray<string>>
Binder\Binder.ValueChecks.cs (86)
405var argsToParams = indexerAccess.ArgsToParamsOpt; 409var parameters = accessorForDefaultArguments.Parameters; 418ImmutableArray<string?> argumentNamesOpt = indexerAccess.ArgumentNamesOpt; 630(object)otherSymbol == null ? ImmutableArray<Symbol>.Empty : ImmutableArray.Create(otherSymbol), 631receiver == null ? ImmutableArray<BoundExpression>.Empty : ImmutableArray.Create(receiver), 954bool checkArrayAccessValueKind(SyntaxNode node, BindValueKind valueKind, ImmutableArray<BoundExpression> indices, BindingDiagnosticBag diagnostics) 1961ImmutableArray<ParameterSymbol> parameters, 1962ImmutableArray<BoundExpression> argsOpt, 1963ImmutableArray<RefKind> argRefKindsOpt, 1964ImmutableArray<int> argsToParamsOpt, 2050ImmutableArray<ParameterSymbol> parameters, 2051ImmutableArray<BoundExpression> argsOpt, 2052ImmutableArray<RefKind> argRefKindsOpt, 2053ImmutableArray<int> argsToParamsOpt, 2115ImmutableArray<ParameterSymbol> parameters, 2116ImmutableArray<BoundExpression> argsOpt, 2117ImmutableArray<RefKind> argRefKindsOpt, 2118ImmutableArray<int> argsToParamsOpt, 2208ImmutableArray<ParameterSymbol> parameters, 2209ImmutableArray<BoundExpression> argsOpt, 2210ImmutableArray<RefKind> argRefKindsOpt, 2211ImmutableArray<int> argsToParamsOpt, 2281ImmutableArray<ParameterSymbol> parameters, 2282ImmutableArray<BoundExpression> argsOpt, 2283ImmutableArray<RefKind> argRefKindsOpt, 2284ImmutableArray<int> argsToParamsOpt, 2429ImmutableArray<BoundExpression> argsOpt, 2430ImmutableArray<RefKind> argRefKindsOpt, 2458ImmutableArray<ParameterSymbol> parameters, 2459ImmutableArray<BoundExpression> argsOpt, 2460ImmutableArray<RefKind> argRefKindsOpt, 2461ImmutableArray<int> argsToParamsOpt, 2528ImmutableArray<ParameterSymbol> parameters, 2529ImmutableArray<BoundExpression> argsOpt, 2530ImmutableArray<RefKind> argRefKindsOpt, 2531ImmutableArray<int> argsToParamsOpt, 2583ImmutableArray<ParameterSymbol> parameters, 2584ImmutableArray<BoundExpression> argsOpt, 2585ImmutableArray<RefKind> argRefKindsOpt, 2586ImmutableArray<int> argsToParamsOpt, 2659ImmutableArray<ParameterSymbol> parameters, 2660ImmutableArray<BoundExpression> argsOpt, 2661ImmutableArray<RefKind> argRefKindsOpt, 2662ImmutableArray<int> argsToParamsOpt, 2773ImmutableArray<ParameterSymbol> parameters, 2774ImmutableArray<BoundExpression> argsOpt, 2775ImmutableArray<RefKind> argRefKindsOpt, 2776ImmutableArray<int> argsToParamsOpt, 2873ImmutableArray<ParameterSymbol> parameters, 2874ImmutableArray<BoundExpression> argsOpt, 2875ImmutableArray<RefKind> argRefKindsOpt, 2876ImmutableArray<int> argsToParamsOpt, 2956ImmutableArray<BoundExpression> argsOpt, 2957ImmutableArray<ParameterSymbol> parameters, 2958ImmutableArray<int> argsToParamsOpt) 3022public override ImmutableArray<Location> Locations 3537ImmutableArray<BoundExpression> arguments; 3538ImmutableArray<RefKind> refKinds; 3858ImmutableArray<BoundExpression> arguments; 3859ImmutableArray<RefKind> refKinds; 4225ImmutableArray<BoundExpression> arguments; 4226ImmutableArray<RefKind> refKinds; 4338ImmutableArray<BoundExpression> arguments; 4339ImmutableArray<RefKind> refKinds; 4563private SafeContext GetTupleValEscape(ImmutableArray<BoundExpression> elements, SafeContext localScopeDepth) 4693private SafeContext GetValEscape(ImmutableArray<BoundExpression> expressions, SafeContext localScopeDepth) 4964ImmutableArray<BoundExpression> arguments; 4965ImmutableArray<RefKind> refKinds; 5118ImmutableArray<BoundExpression> arguments; 5119ImmutableArray<RefKind> refKinds; 5439private SignatureOnlyMethodSymbol GetInlineArrayAccessEquivalentSignatureMethod(BoundInlineArrayAccess elementAccess, out ImmutableArray<BoundExpression> arguments, out ImmutableArray<RefKind> refKinds) 5480ImmutableArray<TypeParameterSymbol>.Empty, 5483ImmutableArray<CustomModifier>.Empty, 5492ImmutableArray<CustomModifier>.Empty, 5493ImmutableArray<MethodSymbol>.Empty); 5501private SignatureOnlyMethodSymbol GetInlineArrayConversionEquivalentSignatureMethod(BoundConversion conversion, out ImmutableArray<BoundExpression> arguments, out ImmutableArray<RefKind> refKinds) 5507private SignatureOnlyMethodSymbol GetInlineArrayConversionEquivalentSignatureMethod(BoundExpression inlineArray, TypeSymbol resultType, out ImmutableArray<BoundExpression> arguments, out ImmutableArray<RefKind> refKinds) 5520ImmutableArray<TypeParameterSymbol>.Empty, 5523ImmutableArray<CustomModifier>.Empty, 5532ImmutableArray<CustomModifier>.Empty, 5533ImmutableArray<MethodSymbol>.Empty); 5541private bool CheckTupleValEscape(ImmutableArray<BoundExpression> elements, SafeContext escapeFrom, SafeContext escapeTo, BindingDiagnosticBag diagnostics) 5572private bool CheckValEscape(ImmutableArray<BoundExpression> expressions, SafeContext escapeFrom, SafeContext escapeTo, BindingDiagnosticBag diagnostics)
Binder\Binder.WithQueryLambdaParametersBinder.cs (2)
42ImmutableArray<string> path; 99var result = BindMemberOfType(node, node, name, 0, indexed: false, receiver, default(SeparatedSyntaxList<TypeSyntax>), default(ImmutableArray<TypeWithAnnotations>), lookupResult, BoundMethodGroupFlags.None, diagnostics);
Binder\Binder_Attributes.cs (37)
30ImmutableArray<Binder> binders, ImmutableArray<AttributeSyntax> attributesToBind, Symbol ownerSymbol, NamedTypeSymbol[] boundAttributeTypes, 72ImmutableArray<Binder> binders, 73ImmutableArray<AttributeSyntax> attributesToBind, 74ImmutableArray<NamedTypeSymbol> boundAttributeTypes, 184ImmutableArray<int> argsToParamsOpt; 188ImmutableArray<BoundExpression> boundConstructorArguments; 206out var candidateConstructors, 259ImmutableArray<string?> boundConstructorArgumentNamesOpt = analyzedArguments.ConstructorArguments.GetNames(); 264ImmutableArray<BoundAssignmentOperator> boundNamedArguments = analyzedArguments.NamedArguments?.ToImmutableAndFree() ?? ImmutableArray<BoundAssignmentOperator>.Empty; 304var arguments = boundAttribute.ConstructorArguments; 305var constructorArgsArray = visitor.VisitArguments(arguments, diagnostics, ref hasErrors); 306var namedArguments = visitor.VisitNamedArguments(boundAttribute.NamedArguments, diagnostics, ref hasErrors); 310ImmutableArray<int> argsToParamsOpt = boundAttribute.ConstructorArgumentsToParamsOpt; 311ImmutableArray<TypedConstant> rewrittenArguments; 344ImmutableArray<int> makeSourceIndices() 396private void ValidateTypeForAttributeParameters(ImmutableArray<ParameterSymbol> parameters, CSharpSyntaxNode syntax, BindingDiagnosticBag diagnostics, ref bool hasErrors) 425ImmutableArray<string> conditionalSymbols = attributeType.GetAppliedConditionalSymbols(); 696private ImmutableArray<TypedConstant> GetRewrittenAttributeConstructorArguments( 698ImmutableArray<TypedConstant> constructorArgsArray, 700ImmutableArray<int> argumentsToParams, 710ImmutableArray<ParameterSymbol> parameters = attributeConstructor.Parameters; 761public ImmutableArray<TypedConstant> VisitArguments(ImmutableArray<BoundExpression> arguments, BindingDiagnosticBag diagnostics, ref bool attrHasErrors, bool parentHasErrors = false) 763var validatedArguments = ImmutableArray<TypedConstant>.Empty; 782public ImmutableArray<KeyValuePair<string, TypedConstant>> VisitNamedArguments(ImmutableArray<BoundAssignmentOperator> arguments, BindingDiagnosticBag diagnostics, ref bool attrHasErrors) 802return ImmutableArray<KeyValuePair<string, TypedConstant>>.Empty; 878var elements = collection.Elements; 973ImmutableArray<BoundExpression> bounds = node.Bounds; 984ImmutableArray<TypedConstant> initializer; 989initializer = ImmutableArray<TypedConstant>.Empty; 995initializer = ImmutableArray<TypedConstant>.Empty; 1013object? simpleValue = null, ImmutableArray<TypedConstant> arrayValue = default(ImmutableArray<TypedConstant>))
Binder\Binder_Await.cs (3)
333getAwaiterCall = MakeInvocationExpression(node, expression, WellKnownMemberNames.GetAwaiter, ImmutableArray<BoundExpression>.Empty, diagnostics); 372var qualified = BindInstanceMemberAccess(node, node, receiver, name, 0, default(SeparatedSyntaxList<TypeSyntax>), default(ImmutableArray<TypeWithAnnotations>), invoked: false, indexed: false, diagnostics); 438getAwaiterGetResultCall = MakeInvocationExpression(node, awaiterExpression, WellKnownMemberNames.GetResult, ImmutableArray<BoundExpression>.Empty, diagnostics);
Binder\Binder_Constraints.cs (6)
23internal ImmutableArray<TypeParameterConstraintClause> BindTypeParameterConstraintClauses( 25ImmutableArray<TypeParameterSymbol> typeParameters, 347return (TypeParameterConstraintClause.Create(constraints, constraintTypes?.ToImmutableAndFree() ?? ImmutableArray<TypeWithAnnotations>.Empty), syntaxBuilder); 364internal ImmutableArray<TypeParameterConstraintClause> GetDefaultTypeParameterConstraintClauses(TypeParameterListSyntax typeParameterList) 385ImmutableArray<TypeParameterSymbol> typeParameters, 409var constraintTypes = constraintClause.ConstraintTypes;
Binder\Binder_Conversions.cs (24)
370ImmutableArray<TypeWithAnnotations> sourceTypes; 371ImmutableArray<TypeWithAnnotations> destTypes; 377var elementConversions = conversion.UnderlyingConversions; 688var members = type.GetMembers(name); 712ImmutableArray<BoundExpression> parts = BindInterpolatedStringPartsForFactory(unconvertedSource, diagnostics, out bool haveErrors); 1238internal bool HasCollectionExpressionApplicableAddMethod(SyntaxNode syntax, TypeSymbol targetType, out ImmutableArray<MethodSymbol> addMethods, BindingDiagnosticBag diagnostics) 1280out ImmutableArray<MethodSymbol> addMethods) 1298out ImmutableArray<MethodSymbol> addMethods) 1303typeArgumentsWithAnnotations: default(ImmutableArray<TypeWithAnnotations>), 1339out ImmutableArray<MethodSymbol> addMethods) 1354out ImmutableArray<MethodSymbol> addMethods) 1447static ImmutableArray<MethodSymbol> filterOutBadGenericMethods( 1449ImmutableArray<MemberResolutionResult<MethodSymbol>> finalApplicableCandidates, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1497parameterTypes: out ImmutableArray<TypeWithAnnotations> parameterTypes, 1498parameterRefKinds: out ImmutableArray<RefKind> parameterRefKinds); 1869var allTypeArguments = builder.ToImmutableAndFree(); 1885var allTypeParameters = TypeMap.TypeParametersAsTypeSymbolsWithAnnotations(targetType.OriginalDefinition.GetAllTypeParameters()); 1933ImmutableArray<Conversion> underlyingConversions = conversion.UnderlyingConversions; 1971ImmutableArray<Conversion> underlyingConversions = conversion.UnderlyingConversions; 1987var newSwitchArms = builder.ToImmutableAndFree(); 2314var delegateParameters = delegateType.DelegateParameters(); 2478var targetElementTypes = targetType.TupleElementTypesWithAnnotations; 2825var delegateOrFuncPtrParameters = delegateOrFuncPtrMethod.Parameters; 2826var methodParameters = method.Parameters;
Binder\Binder_Crefs.cs (46)
18internal ImmutableArray<Symbol> BindCref(CrefSyntax syntax, out Symbol? ambiguityWinner, BindingDiagnosticBag diagnostics) 20ImmutableArray<Symbol> symbols = BindCrefInternal(syntax, out ambiguityWinner, diagnostics); 26private ImmutableArray<Symbol> BindCrefInternal(CrefSyntax syntax, out Symbol? ambiguityWinner, BindingDiagnosticBag diagnostics) 44private ImmutableArray<Symbol> BindTypeCref(TypeCrefSyntax syntax, out Symbol? ambiguityWinner, BindingDiagnosticBag diagnostics) 63private ImmutableArray<Symbol> BindQualifiedCref(QualifiedCrefSyntax syntax, out Symbol? ambiguityWinner, BindingDiagnosticBag diagnostics) 99private ImmutableArray<Symbol> BindMemberCref(MemberCrefSyntax syntax, NamespaceOrTypeSymbol? containerOpt, out Symbol? ambiguityWinner, BindingDiagnosticBag diagnostics) 110return ImmutableArray<Symbol>.Empty; 113ImmutableArray<Symbol> result; 142private ImmutableArray<Symbol> BindNameMemberCref(NameMemberCrefSyntax syntax, NamespaceOrTypeSymbol? containerOpt, out Symbol? ambiguityWinner, BindingDiagnosticBag diagnostics) 172return ImmutableArray<Symbol>.Empty; 175ImmutableArray<Symbol> sortedSymbols = ComputeSortedCrefMembers(syntax, containerOpt, memberName, memberNameText, arity, syntax.Parameters != null, diagnostics); 180return ImmutableArray<Symbol>.Empty; 193private ImmutableArray<Symbol> BindIndexerMemberCref(IndexerMemberCrefSyntax syntax, NamespaceOrTypeSymbol? containerOpt, out Symbol? ambiguityWinner, BindingDiagnosticBag diagnostics) 197ImmutableArray<Symbol> sortedSymbols = ComputeSortedCrefMembers(syntax, containerOpt, WellKnownMemberNames.Indexer, memberNameText: WellKnownMemberNames.Indexer, arity, syntax.Parameters != null, diagnostics); 202return ImmutableArray<Symbol>.Empty; 221private ImmutableArray<Symbol> BindOperatorMemberCref(OperatorMemberCrefSyntax syntax, NamespaceOrTypeSymbol? containerOpt, out Symbol? ambiguityWinner, BindingDiagnosticBag diagnostics) 242return ImmutableArray<Symbol>.Empty; 245ImmutableArray<Symbol> sortedSymbols = ComputeSortedCrefMembers(syntax, containerOpt, memberName, memberNameText: memberName, arity, syntax.Parameters != null, diagnostics); 250return ImmutableArray<Symbol>.Empty; 264private ImmutableArray<Symbol> BindConversionOperatorMemberCref(ConversionOperatorMemberCrefSyntax syntax, NamespaceOrTypeSymbol? containerOpt, out Symbol? ambiguityWinner, BindingDiagnosticBag diagnostics) 277return ImmutableArray<Symbol>.Empty; 291ImmutableArray<Symbol> sortedSymbols = ComputeSortedCrefMembers(syntax, containerOpt, memberName, memberNameText: memberName, arity, syntax.Parameters != null, diagnostics); 296return ImmutableArray<Symbol>.Empty; 308return ImmutableArray<Symbol>.Empty; 329private ImmutableArray<Symbol> ComputeSortedCrefMembers(CSharpSyntaxNode syntax, NamespaceOrTypeSymbol? containerOpt, string memberName, string memberNameText, int arity, bool hasParameterList, BindingDiagnosticBag diagnostics) 332var result = ComputeSortedCrefMembers(containerOpt, memberName, memberNameText, arity, hasParameterList, syntax, diagnostics, ref useSiteInfo); 337private ImmutableArray<Symbol> ComputeSortedCrefMembers(NamespaceOrTypeSymbol? containerOpt, string memberName, string memberNameText, int arity, bool hasParameterList, CSharpSyntaxNode syntax, 442ImmutableArray<MethodSymbol> instanceConstructors = constructorType.InstanceConstructors; 447return ImmutableArray<Symbol>.Empty; 455return ImmutableArray<Symbol>.Empty; 476private ImmutableArray<Symbol> ProcessCrefMemberLookupResults( 477ImmutableArray<Symbol> symbols, 495ImmutableArray<ParameterSymbol> parameterSymbols = BindCrefParameters(parameterListSyntax, diagnostics); 496ImmutableArray<Symbol> results = PerformCrefOverloadResolution(candidates, parameterSymbols, arity, memberSyntax, out ambiguityWinner, diagnostics); 627private ImmutableArray<Symbol> ProcessParameterlessCrefMemberLookupResults( 628ImmutableArray<Symbol> symbols, 732private void GetCrefOverloadResolutionCandidates(ImmutableArray<Symbol> symbols, int arity, TypeArgumentListSyntax? typeArgumentListSyntax, ArrayBuilder<Symbol> candidates) 758private static ImmutableArray<Symbol> PerformCrefOverloadResolution(ArrayBuilder<Symbol> candidates, ImmutableArray<ParameterSymbol> parameterSymbols, int arity, MemberCrefSyntax memberSyntax, out Symbol? ambiguityWinner, BindingDiagnosticBag diagnostics) 798refCustomModifiers: ImmutableArray<CustomModifier>.Empty, 799explicitInterfaceImplementations: ImmutableArray<MethodSymbol>.Empty); 813refCustomModifiers: ImmutableArray<CustomModifier>.Empty, 815explicitInterfaceImplementations: ImmutableArray<PropertySymbol>.Empty); 861return ImmutableArray<Symbol>.Empty; 929private ImmutableArray<ParameterSymbol> BindCrefParameters(BaseCrefParameterListSyntax parameterListSyntax, BindingDiagnosticBag diagnostics) 945parameterBuilder.Add(new SignatureOnlyParameterSymbol(TypeWithAnnotations.Create(type), ImmutableArray<CustomModifier>.Empty, isParamsArray: false, isParamsCollection: false, refKind: refKind));
Binder\Binder_Deconstruct.cs (13)
251ImmutableArray<TypeSymbol> tupleOrDeconstructedTypes; 278inputPlaceholder, rightSyntax, diagnostics, outPlaceholders: out ImmutableArray<BoundDeconstructValuePlaceholder> outPlaceholders, out _, variables); 349private void SetInferredTypes(ArrayBuilder<DeconstructionVariable> variables, ImmutableArray<TypeSymbol> foundTypes, BindingDiagnosticBag diagnostics) 536elementNames: default(ImmutableArray<string?>), 541errorPositions: default(ImmutableArray<bool>), 572ImmutableArray<BoundExpression> arguments = valuesBuilder.ToImmutableAndFree(); 578ImmutableArray<string?> tupleNames = namesBuilder is null ? default : namesBuilder.ToImmutableAndFree(); 579ImmutableArray<bool> inferredPositions = tupleNames.IsDefault ? default : tupleNames.SelectAsArray(n => n != null); 616out ImmutableArray<BoundDeconstructValuePlaceholder> outPlaceholders, 625outPlaceholders = default(ImmutableArray<BoundDeconstructValuePlaceholder>); 655typeArgumentsWithAnnotations: default(ImmutableArray<TypeWithAnnotations>), 684var parameters = deconstructMethod.Parameters; 715out ImmutableArray<BoundDeconstructValuePlaceholder> outPlaceholders, BoundExpression childNode)
Binder\Binder_Expressions.cs (159)
108return BadExpression(syntax, LookupResultKind.Empty, ImmutableArray<Symbol>.Empty); 116return BadExpression(syntax, LookupResultKind.Empty, ImmutableArray<Symbol>.Empty, childNode); 122private BoundBadExpression BadExpression(SyntaxNode syntax, ImmutableArray<BoundExpression> childNodes) 124return BadExpression(syntax, LookupResultKind.Empty, ImmutableArray<Symbol>.Empty, childNodes); 132return BadExpression(syntax, lookupResultKind, ImmutableArray<Symbol>.Empty); 140return BadExpression(syntax, lookupResultKind, ImmutableArray<Symbol>.Empty, childNode); 146private BoundBadExpression BadExpression(SyntaxNode syntax, LookupResultKind resultKind, ImmutableArray<Symbol> symbols) 151ImmutableArray<BoundExpression>.Empty, 159private BoundBadExpression BadExpression(SyntaxNode syntax, LookupResultKind resultKind, ImmutableArray<Symbol> symbols, BoundExpression childNode) 172private BoundBadExpression BadExpression(SyntaxNode syntax, LookupResultKind resultKind, ImmutableArray<Symbol> symbols, ImmutableArray<BoundExpression> childNodes, bool wasCompilerGenerated = false) 854node, LookupResultKind.Empty, ImmutableArray<Symbol>.Empty, ImmutableArray.Create<BoundExpression>(BindToTypeForErrorRecovery(BindValue(node.Expression, BindingDiagnosticBag.Discarded, BindValueKind.RefersToLocation))), 966ImmutableArray<BoundExpression> subExpressions = builder.ToImmutableAndFree(); 972ImmutableArray<string> tupleNames = namesBuilder is null ? default : namesBuilder.ToImmutableAndFree(); 973ImmutableArray<bool> inferredPositions = tupleNames.IsDefault ? default : tupleNames.SelectAsArray(n => n != null); 1007ImmutableArray<BoundExpression>.Empty; 1041argumentSyntax, LookupResultKind.Empty, ImmutableArray<Symbol>.Empty, 1057var elements = elementTypesWithAnnotations.ToImmutableAndFree(); 1058var locations = elementLocations.ToImmutableAndFree(); 1066includeNullability: false, errorPositions: disallowInferredNames ? inferredPositions : default(ImmutableArray<bool>)); 1078private static (ImmutableArray<string> elementNamesArray, ImmutableArray<bool> inferredArray, bool hasErrors) ExtractTupleElementNames( 1122private static (ImmutableArray<string> names, ImmutableArray<bool> inferred) MergeTupleElementNames( 1129return (default(ImmutableArray<string>), default(ImmutableArray<bool>)); 1133var finalNames = inferredElementNames.ToImmutable(); 1140return (elementNames.ToImmutable(), default(ImmutableArray<bool>)); 1590var typeArgumentsWithAnnotations = hasTypeArguments ? 1592default(ImmutableArray<TypeWithAnnotations>); 2758ImmutableArray<MethodSymbol> originalUserDefinedConversions = conversion.OriginalUserDefinedConversions; 2789var targetElementTypesWithAnnotations = default(ImmutableArray<TypeWithAnnotations>); 2848ImmutableArray<BoundExpression> tupleArguments, 2849ImmutableArray<TypeWithAnnotations> targetElementTypesWithAnnotations) 3262foreach (Symbol member in ContainingType?.GetMembers(identifier) ?? ImmutableArray<Symbol>.Empty) 3382out ImmutableArray<int> argsToParamsOpt) 3392var parameters = methodResult.LeastOverriddenMember.GetParameters(); 3505ImmutableArray<ParameterSymbol> parameters, 3561ImmutableArray<ParameterSymbol> parameters, 3594ImmutableArray<ParameterSymbol> parameters, 3598ref ImmutableArray<int> argsToParamsOpt, 3623ImmutableArray<BoundExpression> collectionArgs = paramsArgsBuilder.ToImmutableAndFree(); 3677static ParameterSymbol getCorrespondingParameter(in MemberAnalysisResult result, ImmutableArray<ParameterSymbol> parameters, int arg) 3687ImmutableArray<ParameterSymbol> parameters, 3699var handlerParameterIndexes = correspondingParameter.InterpolatedStringHandlerArgumentIndexes; 3752ImmutableArray<int> handlerArgumentIndexes; 4028ImmutableArray<BoundExpression> arraySizes = sizes.ToImmutableAndFree(); 4068ImmutableArray<BoundExpression> boundInitializerExpressions = BindArrayInitializerExpressions(initializer, diagnostics, dimension: 1, rank: rank); 4089sizes: ImmutableArray<BoundExpression>.Empty, boundInitExprOpt: boundInitializerExpressions); 4095ImmutableArray<BoundExpression> boundInitializerExpressions = BindArrayInitializerExpressions(initializer, diagnostics, dimension: 1, rank: 1); 4127private ImmutableArray<BoundExpression> BindArrayInitializerExpressions(InitializerExpressionSyntax initializer, BindingDiagnosticBag diagnostics, int dimension, int rank) 4215ImmutableArray<BoundExpression> boundInitExpr, 4296ImmutableArray<BoundExpression> boundInitExprOpt = default(ImmutableArray<BoundExpression>)) 4363ImmutableArray<BoundExpression> sizes, 4364ImmutableArray<BoundExpression> boundInitExprOpt = default(ImmutableArray<BoundExpression>), 4454ImmutableArray<Symbol>.Empty, 4455ImmutableArray<BoundExpression>.Empty, 4493ImmutableArray<Symbol>.Empty, 4612ImmutableArray<BoundExpression> boundInitExprOpt = default) 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 4885ImmutableArray<MethodSymbol> candidateConstructors; 4919ImmutableArray<MethodSymbol> candidateConstructors, 4925ImmutableArray<int> argsToParamsOpt; 5011var arguments = analyzedArguments.Arguments.ToImmutable(); 5012var refKinds = analyzedArguments.RefKinds.ToImmutableOrNull(); 5047typeArgumentsWithAnnotations: ImmutableArray<TypeWithAnnotations>.Empty, 5200return new BoundBadExpression(syntax, LookupResultKind.Empty, ImmutableArray<Symbol?>.Empty, ImmutableArray<BoundExpression>.Empty, CreateErrorType()); 5455var childNodes = BuildArgumentsForErrorRecovery(analyzedArguments); 5860ImmutableArray<BoundExpression> arguments = ImmutableArray<BoundExpression>.Empty; 5861ImmutableArray<string> argumentNamesOpt = default; 5862ImmutableArray<int> argsToParamsOpt = default; 5863ImmutableArray<RefKind> argumentRefKindsOpt = default; 5916var handlerPlaceholders = operand.GetInterpolatedStringHandlerData().ArgumentPlaceholders; 6095ImmutableArray<BoundExpression> initializers, 6361ImmutableArray<BoundExpression> boundElementInitializerExpressions, 6389return BadExpression(elementInitializer, LookupResultKind.NotInvocable, ImmutableArray<Symbol>.Empty, boundElementInitializerExpressions); 6413ImmutableArray<BoundExpression> boundElementInitializerExpressions, 6429applicableMethods: ImmutableArray<MethodSymbol>.Empty, 6553internal ImmutableArray<MethodSymbol> FilterInaccessibleConstructors(ImmutableArray<MethodSymbol> constructors, bool allowProtectedConstructorsOfBaseType, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 6649ImmutableArray<MethodSymbol> accessibleConstructors = GetAccessibleConstructorsForOverloadResolution(type, ref useSiteInfo); 6654var finalApplicableCandidates = GetCandidatesPassingFinalValidation(node, overloadResolutionResult, receiverOpt: null, default(ImmutableArray<TypeWithAnnotations>), invokedAsExtensionMethod: false, diagnostics); 6662var argArray = BuildArgumentsForDynamicInvocation(analyzedArguments, diagnostics); 6663var refKindsArray = analyzedArguments.RefKinds.ToImmutableOrNull(); 6699out ImmutableArray<MethodSymbol> candidateConstructors, 6719ImmutableArray<MethodSymbol> candidateConstructors, 6734ImmutableArray<int> argToParams; 6770var arguments = analyzedArguments.Arguments.ToImmutable(); 6771var refKinds = analyzedArguments.RefKinds.ToImmutableOrNull(); 6803ImmutableArray<MethodSymbol> candidateConstructors, 7013var children = BuildArgumentsForErrorRecovery(analyzedArguments); 7020return new BoundBadExpression(node, LookupResultKind.OverloadResolutionFailure, ImmutableArray<Symbol>.Empty, children, interfaceType); 7103out ImmutableArray<MethodSymbol> candidateConstructors, 7109ImmutableArray<MethodSymbol> allInstanceConstructors; 7223private ImmutableArray<MethodSymbol> GetAccessibleConstructorsForOverloadResolution(NamedTypeSymbol type, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 7225ImmutableArray<MethodSymbol> allInstanceConstructors; 7229private ImmutableArray<MethodSymbol> GetAccessibleConstructorsForOverloadResolution(NamedTypeSymbol type, bool allowProtectedConstructorsOfBaseType, out ImmutableArray<MethodSymbol> allInstanceConstructors, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 7542ImmutableArray<TypeWithAnnotations> typeArgumentsWithAnnotations = rightHasTypeArguments ? 7544default(ImmutableArray<TypeWithAnnotations>); 7662var typeArguments = typeArgumentsSyntax.Count > 0 ? BindTypeArguments(typeArgumentsSyntax, diagnostics) : default(ImmutableArray<TypeWithAnnotations>); 7758ImmutableArray<TypeWithAnnotations> typeArguments, 7832ImmutableArray<TypeWithAnnotations> typeArguments, 7928ImmutableArray<TypeWithAnnotations> typeArgumentsWithAnnotations, 7980lookupResult.Symbols.All(s => s.Kind == SymbolKind.Method) ? lookupResult.Symbols.SelectAsArray(s_toMethodSymbolFunc) : ImmutableArray<MethodSymbol>.Empty, 8050ReportQueryLookupFailed(node, boundLeft, plainName, ImmutableArray<Symbol>.Empty, diagnostics); 8124ImmutableArray<Symbol> symbols, 8135var methods = builder.ToImmutableAndFree(); 8144default(ImmutableArray<TypeWithAnnotations>), 8160(object)symbolOpt == null ? ImmutableArray<Symbol>.Empty : ImmutableArray.Create(symbolOpt), 8161boundLeft == null ? ImmutableArray<BoundExpression>.Empty : ImmutableArray.Create(BindToTypeForErrorRecovery(boundLeft)), 8226ImmutableArray<TypeWithAnnotations> typeArgumentsWithAnnotations, 8302boundDimensionsOpt: ImmutableArray<BoundExpression>.Empty, 8342ImmutableArray<TypeWithAnnotations> typeArgumentsWithAnnotations, 8463ImmutableArray<TypeWithAnnotations> typeArgumentsWithAnnotations, 9267var childBoundNodes = BuildArgumentsForErrorRecovery(analyzedArguments).Add(expr); 9268return new BoundBadExpression(node, LookupResultKind.Empty, ImmutableArray<Symbol>.Empty, childBoundNodes, CreateErrorType(), hasErrors: true); 9289return BindDynamicIndexer(node, expr, arguments, ImmutableArray<PropertySymbol>.Empty, diagnostics); 9373var argumentPlaceholders = ImmutableArray.Create(new BoundImplicitIndexerValuePlaceholder(convertedArguments[0].Syntax, int32) { WasCompilerGenerated = true }); 9381indexerOrSliceAccess: new BoundArrayAccess(node, receiverPlaceholder, ImmutableArray<BoundExpression>.CastUp(argumentPlaceholders), resultType) { WasCompilerGenerated = true }, 9654var properties = propertyGroup.Properties; 9666ImmutableArray<BoundExpression>.Empty, 9667default(ImmutableArray<string>), 9668default(ImmutableArray<RefKind>), 9679private BoundExpression BindIndexedPropertyAccess(SyntaxNode syntax, BoundExpression receiver, ImmutableArray<PropertySymbol> propertyGroup, AnalyzedArguments arguments, BindingDiagnosticBag diagnostics) 9696ImmutableArray<PropertySymbol> applicableProperties, 9720var argArray = BuildArgumentsForDynamicInvocation(arguments, diagnostics); 9721var refKindsArray = arguments.RefKinds.ToImmutableOrNull(); 9761var finalApplicableCandidates = GetCandidatesPassingFinalValidation(syntax, overloadResolutionResult, receiver, default(ImmutableArray<TypeWithAnnotations>), invokedAsExtensionMethod: false, diagnostics); 9785ImmutableArray<string> argumentNames = analyzedArguments.GetNames(); 9786ImmutableArray<RefKind> argumentRefKinds = analyzedArguments.RefKinds.ToImmutableOrNull(); 9792ImmutableArray<PropertySymbol> candidates = propertyGroup.ToImmutable(); 9823ImmutableArray<BoundExpression> arguments = BuildArgumentsForErrorRecovery(analyzedArguments, candidates); 9850ImmutableArray<int> argsToParams; 9858var arguments = analyzedArguments.Arguments.ToImmutable(); 9919out var lengthOrCountAccess, out var indexerOrSliceAccess, out var argumentPlaceholders, diagnostics)) 9974out ImmutableArray<BoundImplicitIndexerValuePlaceholder> argumentPlaceholders, 10006out ImmutableArray<BoundImplicitIndexerValuePlaceholder> argumentPlaceholders, 10108out BoundExpression indexerOrSliceAccess, out ImmutableArray<BoundImplicitIndexerValuePlaceholder> argumentPlaceholders) 10215private ErrorPropertySymbol CreateErrorPropertySymbol(ImmutableArray<PropertySymbol> propertyGroup) 10393var methods = node.Methods; 10625var typeArguments = node.TypeArgumentsOpt; 10794ImmutableArray<ScopedKind>? parameterScopesOverride = null, 10795ImmutableArray<bool>? parameterHasUnscopedRefAttributesOverride = null, 10799var parameters = methodSymbol.Parameters; 10800var parameterRefKinds = methodSymbol.ParameterRefKinds; 10801var parameterTypes = methodSymbol.ParameterTypesWithAnnotations; 10819var typeArguments = returnsVoid ? parameterTypes : parameterTypes.Add(returnType); 10882static bool checkConstraints(CSharpCompilation compilation, ConversionsBase conversions, NamedTypeSymbol delegateType, ImmutableArray<TypeWithAnnotations> typeArguments) 10885var typeParameters = delegateType.TypeParameters;
Binder\Binder_Initializers.cs (14)
19internal ImmutableArray<BoundInitializer> BoundInitializers { get; set; } 28ImmutableArray<ImmutableArray<FieldOrPropertyInitializer>> fieldInitializers, 41internal static ImmutableArray<BoundInitializer> BindFieldInitializers( 44ImmutableArray<ImmutableArray<FieldOrPropertyInitializer>> initializers, 51return ImmutableArray<BoundInitializer>.Empty; 72ImmutableArray<ImmutableArray<FieldOrPropertyInitializer>> initializers, 79foreach (ImmutableArray<FieldOrPropertyInitializer> siblingInitializers in initializers) 132boundInitializers.Add(new BoundFieldEqualsValue(parameterSyntax, fieldSymbol, ImmutableArray<LocalSymbol>.Empty, 164ImmutableArray<ImmutableArray<FieldOrPropertyInitializer>> initializers, 173ImmutableArray<FieldOrPropertyInitializer> siblingInitializers = initializers[i];
Binder\Binder_InterpolatedString.cs (56)
257ImmutableArray<BoundExpression> parts = BindInterpolatedStringPartsForFactory(unconvertedInterpolatedString, diagnostics, out bool haveErrors); 266BoundInterpolatedString constructWithoutData(ImmutableArray<BoundExpression> parts) 295bool canLowerToStringConcatenation(ImmutableArray<BoundExpression> parts) 317private ImmutableArray<BoundExpression> BindInterpolatedStringPartsForFactory(BoundUnconvertedInterpolatedString unconvertedInterpolatedString, BindingDiagnosticBag diagnostics, out bool haveErrors) 321ImmutableArray<BoundExpression> parts = BindInterpolatedStringParts(unconvertedInterpolatedString, partsDiagnostics); 333ImmutableArray<BoundExpression> parts, 340ImmutableArray<BoundExpression> expressions = makeInterpolatedStringFactoryArguments(syntax, parts, diagnostics); 348typeArgs: default(ImmutableArray<TypeWithAnnotations>), 370ImmutableArray<BoundExpression> makeInterpolatedStringFactoryArguments(SyntaxNode syntax, ImmutableArray<BoundExpression> parts, BindingDiagnosticBag diagnostics) 435private static bool AllInterpolatedStringPartsAreStrings(ImmutableArray<BoundExpression> parts) 465var partsArrayBuilder = ArrayBuilder<ImmutableArray<BoundExpression>>.GetInstance(); 469static (BoundUnconvertedInterpolatedString unconvertedInterpolatedString, ArrayBuilder<ImmutableArray<BoundExpression>> partsArrayBuilder) => 515private BoundBinaryOperator UpdateBinaryOperatorWithInterpolatedContents(BoundBinaryOperator originalOperator, ImmutableArray<ImmutableArray<BoundExpression>> appendCalls, InterpolatedStringHandlerData data, SyntaxNode rootSyntax, BindingDiagnosticBag diagnostics) 519Func<BoundUnconvertedInterpolatedString, int, (ImmutableArray<ImmutableArray<BoundExpression>>, TypeSymbol), BoundExpression> interpolationFactory = 521Func<BoundBinaryOperator, BoundExpression, BoundExpression, (ImmutableArray<ImmutableArray<BoundExpression>>, TypeSymbol), BoundExpression> binaryOperatorFactory = 528static BoundInterpolatedString createInterpolation(BoundUnconvertedInterpolatedString expression, int i, (ImmutableArray<ImmutableArray<BoundExpression>> AppendCalls, TypeSymbol _) arg) 540static BoundBinaryOperator createBinaryOperator(BoundBinaryOperator original, BoundExpression left, BoundExpression right, (ImmutableArray<ImmutableArray<BoundExpression>> _, TypeSymbol @string) arg) 559ImmutableArray<BoundInterpolatedStringArgumentPlaceholder> additionalConstructorArguments = default, 560ImmutableArray<RefKind> additionalConstructorRefKinds = default) 579ImmutableArray<BoundInterpolatedStringArgumentPlaceholder> additionalConstructorArguments = default, 580ImmutableArray<RefKind> additionalConstructorRefKinds = default) 605ImmutableArray<BoundInterpolatedStringArgumentPlaceholder> additionalConstructorArguments, 606ImmutableArray<RefKind> additionalConstructorRefKinds) 610var partsArrayBuilder = ArrayBuilder<ImmutableArray<BoundExpression>>.GetInstance(); 613static (BoundUnconvertedInterpolatedString unconvertedInterpolatedString, ArrayBuilder<ImmutableArray<BoundExpression>> partsArrayBuilder) => 632private (ImmutableArray<ImmutableArray<BoundExpression>> AppendCalls, InterpolatedStringHandlerData Data) BindUnconvertedInterpolatedPartsToHandlerType( 634ImmutableArray<ImmutableArray<BoundExpression>> partsArray, 638ImmutableArray<BoundInterpolatedStringArgumentPlaceholder> additionalConstructorArguments, 639ImmutableArray<RefKind> additionalConstructorRefKinds) 676foreach (var parts in partsArray) 726var outConstructorAdditionalArguments = additionalConstructorArguments.Add(trailingConstructorValidityPlaceholder); 817static void populateArguments(SyntaxNode syntax, ImmutableArray<BoundInterpolatedStringArgumentPlaceholder> additionalConstructorArguments, int baseStringLength, int numFormatHoles, NamedTypeSymbol intType, ArrayBuilder<BoundExpression> argumentsBuilder) 850private ImmutableArray<BoundExpression> BindInterpolatedStringParts(BoundUnconvertedInterpolatedString unconvertedInterpolatedString, BindingDiagnosticBag diagnostics) 895private (ImmutableArray<ImmutableArray<BoundExpression>> AppendFormatCalls, bool UsesBoolReturn, ImmutableArray<ImmutableArray<(bool IsLiteral, bool HasAlignment, bool HasFormat)>>, int BaseStringLength, int NumFormatHoles) BindInterpolatedStringAppendCalls( 896ImmutableArray<ImmutableArray<BoundExpression>> partsArray, 902return (ImmutableArray<ImmutableArray<BoundExpression>>.Empty, false, ImmutableArray<ImmutableArray<(bool IsLiteral, bool HasAlignment, bool HasFormat)>>.Empty, 0, 0); 907var builderAppendCallsArray = ArrayBuilder<ImmutableArray<BoundExpression>>.GetInstance(partsArray.Length); 909var positionInfoArray = ArrayBuilder<ImmutableArray<(bool IsLiteral, bool HasAlignment, bool HasFormat)>>.GetInstance(partsArray.Length); 916foreach (var parts in partsArray) 962var arguments = argumentsBuilder.ToImmutableAndClear(); 963ImmutableArray<(string, Location)?> parameterNamesAndLocations;
Binder\Binder_Invocation.cs (65)
41private static ImmutableArray<MethodSymbol> GetOriginalMethods(OverloadResolutionResult<MethodSymbol> overloadResolutionResult) 51return ImmutableArray<MethodSymbol>.Empty; 81ImmutableArray<BoundExpression> args, 84ImmutableArray<TypeWithAnnotations> typeArgs = default(ImmutableArray<TypeWithAnnotations>), 85ImmutableArray<(string Name, Location Location)?> names = default, 312ImmutableArray<BoundExpression> arguments = analyzedArguments.Arguments.ToImmutable(); 313ImmutableArray<RefKind> refKinds = analyzedArguments.RefKinds.ToImmutableOrNull(); 348result = BindDynamicInvocation(node, boundExpression, analyzedArguments, ImmutableArray<MethodSymbol>.Empty, diagnostics, queryClause); 394ImmutableArray<MethodSymbol> applicableMethods, 479ImmutableArray<BoundExpression> argArray = BuildArgumentsForDynamicInvocation(arguments, diagnostics); 480var refKindsArray = arguments.RefKinds.ToImmutableOrNull(); 523private ImmutableArray<BoundExpression> BuildArgumentsForDynamicInvocation(AnalyzedArguments arguments, BindingDiagnosticBag diagnostics) 545ImmutableArray<BoundExpression> arguments, 546ImmutableArray<RefKind> refKinds, 664private static bool HasApplicableConditionalMethod(ImmutableArray<MemberResolutionResult<MethodSymbol>> finalApplicableCandidates) 724ImmutableArray<MethodSymbol> originalMethods; 726ImmutableArray<TypeWithAnnotations> typeArguments; 782var finalApplicableCandidates = GetCandidatesPassingFinalValidation(syntax, resolution.OverloadResolutionResult, 846private void ReportDynamicInvocationWarnings(SyntaxNode syntax, BoundMethodGroup methodGroup, BindingDiagnosticBag diagnostics, ImmutableArray<MemberResolutionResult<MethodSymbol>> finalApplicableCandidates) 862var parameters = candidate.Member.GetParameters(); 970private ImmutableArray<MemberResolutionResult<TMethodOrPropertySymbol>> GetCandidatesPassingFinalValidation<TMethodOrPropertySymbol>( 974ImmutableArray<TypeWithAnnotations> typeArgumentsOpt, 1197ImmutableArray<int> argsToParams; 1261var argNames = analyzedArguments.GetNames(); 1262var argRefKinds = analyzedArguments.RefKinds.ToImmutableOrNull(); 1263var args = analyzedArguments.Arguments.ToImmutable(); 1423ImmutableArray<ParameterSymbol> parameters, 1424ImmutableArray<int> argsToParamsOpt, 1465ImmutableArray<ParameterSymbol> parameters, 1469ref ImmutableArray<int> argsToParamsOpt, 1571BoundExpression collection = CreateParamsCollection(node, parameters[paramsIndex], collectionArgs: ImmutableArray<BoundExpression>.Empty, diagnostics); 1597BoundExpression bindDefaultArgument(SyntaxNode syntax, ParameterSymbol parameter, Symbol? containingMember, bool enableCallerInfo, BindingDiagnosticBag diagnostics, ArrayBuilder<BoundExpression> argumentsBuilder, int argumentsCount, ImmutableArray<int> argsToParamsOpt) 1709static int getArgumentIndex(int parameterIndex, ImmutableArray<int> argsToParamsOpt) 1717private BoundExpression CreateParamsCollection(SyntaxNode node, ParameterSymbol paramsParameter, ImmutableArray<BoundExpression> collectionArgs, BindingDiagnosticBag diagnostics) 1741var unconvertedCollection = new BoundUnconvertedCollectionExpression(node, ImmutableArray<BoundNode>.CastUp(collectionArgs)) { WasCompilerGenerated = true, IsParamsArrayOrCollection = true }; 1916ImmutableArray<MethodSymbol> methods, 1918ImmutableArray<TypeWithAnnotations> typeArgumentsWithAnnotations, 1924ImmutableArray<BoundExpression> args; 1950var argNames = analyzedArguments.GetNames(); 1951var argRefKinds = analyzedArguments.RefKinds.ToImmutableOrNull(); 1966private ImmutableArray<BoundExpression> BuildArgumentsForErrorRecovery(AnalyzedArguments analyzedArguments, ImmutableArray<MethodSymbol> methods) 1968var parameterListList = ArrayBuilder<ImmutableArray<ParameterSymbol>>.GetInstance(); 1981var result = BuildArgumentsForErrorRecovery(analyzedArguments, parameterListList); 1986private ImmutableArray<BoundExpression> BuildArgumentsForErrorRecovery(AnalyzedArguments analyzedArguments, ImmutableArray<PropertySymbol> properties) 1988var parameterListList = ArrayBuilder<ImmutableArray<ParameterSymbol>>.GetInstance(); 2001var result = BuildArgumentsForErrorRecovery(analyzedArguments, parameterListList); 2006private ImmutableArray<BoundExpression> BuildArgumentsForErrorRecovery(AnalyzedArguments analyzedArguments, IEnumerable<ImmutableArray<ParameterSymbol>> parameterListList) 2035foreach (var parameterList in parameterListList) 2110foreach (var parameterList in parameterListList) 2140private static TypeSymbol GetCorrespondingParameterType(AnalyzedArguments analyzedArguments, int i, ImmutableArray<ParameterSymbol> parameterList) 2161private ImmutableArray<BoundExpression> BuildArgumentsForErrorRecovery(AnalyzedArguments analyzedArguments) 2163return BuildArgumentsForErrorRecovery(analyzedArguments, Enumerable.Empty<ImmutableArray<ParameterSymbol>>()); 2176var args = BuildArgumentsForErrorRecovery(analyzedArguments); 2177var argNames = analyzedArguments.GetNames(); 2178var argRefKinds = analyzedArguments.RefKinds.ToImmutableOrNull(); 2179var originalMethods = (expr.Kind == BoundKind.MethodGroup) ? ((BoundMethodGroup)expr).Methods : ImmutableArray<MethodSymbol>.Empty; 2184private static TypeSymbol GetCommonTypeOrReturnType<TMember>(ImmutableArray<TMember> members) 2363ImmutableArray<FunctionPointerMethodSymbol> methods = methodsBuilder.ToImmutableAndFree(); 2393var args = analyzedArguments.Arguments.ToImmutable(); 2394var refKinds = analyzedArguments.RefKinds.ToImmutableOrNull();
Binder\Binder_Lambda.cs (8)
44ImmutableArray<string> names = default; 45ImmutableArray<RefKind> refKinds = default; 46ImmutableArray<ScopedKind> scopes = default; 47ImmutableArray<TypeWithAnnotations> types = default; 48ImmutableArray<EqualsValueClauseSyntax?> defaultValues = default; 51ImmutableArray<SyntaxList<AttributeListSyntax>> parameterAttributes = default; 54ImmutableArray<bool> discardsOpt = default; 246static ImmutableArray<bool> computeDiscards(SeparatedSyntaxList<ParameterSyntax> parameters, int underscoresCount)
Binder\Binder_Lookup.cs (20)
399ImmutableArray<AliasAndExternAliasDirective> externAliases, 445var members = GetCandidateMembers(ns, name, options, originalBinder); 617var originalSymbols = symbols.ToImmutable(); 766var members = GetCandidateMembers(type, name, options, originalBinder); 1036private static ImmutableArray<NamedTypeSymbol> GetBaseInterfaces(NamedTypeSymbol type, ConsList<TypeSymbol> basesBeingResolved, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1045return ImmutableArray<NamedTypeSymbol>.Empty; 1048var interfaces = type.GetDeclaredInterfaces(basesBeingResolved); 1052return ImmutableArray<NamedTypeSymbol>.Empty; 1097ImmutableArray<NamedTypeSymbol> baseInterfaces = @interface.GetDeclaredInterfaces(basesBeingResolved); 1117ImmutableArray<NamedTypeSymbol> interfaces, 1293internal static ImmutableArray<Symbol> GetCandidateMembers(NamespaceOrTypeSymbol nsOrType, string name, LookupOptions options, Binder originalBinder) 1305return ImmutableArray<Symbol>.Empty; 1317internal static ImmutableArray<Symbol> GetCandidateMembers(NamespaceOrTypeSymbol nsOrType, LookupOptions options, Binder originalBinder) 1329return ImmutableArray<Symbol>.Empty; 1441var unwrappedSymbols = ImmutableArray.Create<Symbol>(unwrappedSymbol); 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); 1521ImmutableArray<byte> publicKey = this.Compilation.Assembly.PublicKey; 1525foreach (ImmutableArray<byte> key in keys) 1918ImmutableArray<AliasAndExternAliasDirective> externAliases,
Binder\Binder_NameConflicts.cs (2)
28ImmutableArray<TypeParameterSymbol> typeParameters, 29ImmutableArray<ParameterSymbol> parameters,
Binder\Binder_Operators.cs (12)
122ImmutableArray<MethodSymbol> originalUserDefinedOperators; 578ImmutableArray<MethodSymbol> originalUserDefinedOperators; 699out LookupResultKind resultKind, out ImmutableArray<MethodSymbol> originalUserDefinedOperators, 964ImmutableArray<MethodSymbol> originalUserDefinedOperators; 1319out ImmutableArray<MethodSymbol> originalUserDefinedOperators) 1324originalUserDefinedOperators = default(ImmutableArray<MethodSymbol>); 1363originalUserDefinedOperators = ImmutableArray<MethodSymbol>.Empty; 1419out ImmutableArray<MethodSymbol> originalUserDefinedOperators) 1472originalUserDefinedOperators = ImmutableArray<MethodSymbol>.Empty; 2308originalUserDefinedOperatorsOpt: default(ImmutableArray<MethodSymbol>), 2314ImmutableArray<MethodSymbol> originalUserDefinedOperators; 2773ImmutableArray<MethodSymbol> originalUserDefinedOperators;
Binder\Binder_Patterns.cs (16)
258private ImmutableArray<BoundPattern> BindListPatternSubpatterns( 326ImmutableArray<BoundPattern> subpatterns = BindListPatternSubpatterns( 370lengthAccess = new BoundBadExpression(node, LookupResultKind.Empty, ImmutableArray<Symbol?>.Empty, ImmutableArray<BoundExpression>.Empty, CreateErrorType(), hasErrors: true) { WasCompilerGenerated = true }; 465var interfaces = inputType is TypeParameterSymbol typeParam ? typeParam.EffectiveInterfacesNoUseSiteDiagnostics : inputType.AllInterfacesNoUseSiteDiagnostics; 977ImmutableArray<BoundPositionalSubpattern> deconstructionSubpatterns = default; 988positionalClause, declType, ImmutableArray<TypeWithAnnotations>.Empty, permitDesignations, ref hasErrors, patternsBuilder, diagnostics); 1002deconstructDiagnostics, outPlaceholders: out ImmutableArray<BoundDeconstructValuePlaceholder> outPlaceholders, 1026ImmutableArray<BoundPropertySubpattern> properties = default; 1052ImmutableArray<BoundDeconstructValuePlaceholder> outPlaceholders, 1156ImmutableArray<TypeWithAnnotations> elementTypesWithAnnotations, 1384addSubpatternsForTuple(ImmutableArray<TypeWithAnnotations>.Empty); 1398outPlaceholders: out ImmutableArray<BoundDeconstructValuePlaceholder> outPlaceholders, 1433void addSubpatternsForTuple(ImmutableArray<TypeWithAnnotations> elementTypes) 1458private ImmutableArray<BoundPropertySubpattern> BindPropertyPatternClause( 1556typeArgumentsWithAnnotations: default(ImmutableArray<TypeWithAnnotations>),
Binder\Binder_Query.cs (20)
302state.selectOrGroup, LookupResultKind.OverloadResolutionFailure, ImmutableArray<Symbol?>.Empty, 469var arguments = invocation.Arguments; 538var arguments = invocation.Arguments; 628var arguments = invocation.Arguments; 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); 770var locals = this.GetDeclaredLocalsForScope(expression); 803field2Value = new BoundBadExpression(field2Value.Syntax, LookupResultKind.Empty, ImmutableArray<Symbol?>.Empty, ImmutableArray.Create(field2Value), field2Value.Type, true); 831private UnboundLambda MakeQueryUnboundLambda(RangeVariableMap qvm, ImmutableArray<RangeVariableSymbol> parameters, ExpressionSyntax expression, bool withDependencies) 860private UnboundLambda MakeQueryUnboundLambda(RangeVariableMap qvm, ImmutableArray<RangeVariableSymbol> parameters, CSharpSyntaxNode node, LambdaBodyFactory bodyFactory, bool withDependencies) 880return MakeQueryInvocation(node, receiver, methodName, default(SeparatedSyntaxList<TypeSyntax>), default(ImmutableArray<TypeWithAnnotations>), ImmutableArray.Create(arg), diagnostics 887protected BoundCall MakeQueryInvocation(CSharpSyntaxNode node, BoundExpression receiver, string methodName, ImmutableArray<BoundExpression> args, BindingDiagnosticBag diagnostics 893return MakeQueryInvocation(node, receiver, methodName, default(SeparatedSyntaxList<TypeSyntax>), default(ImmutableArray<TypeWithAnnotations>), args, diagnostics 906return MakeQueryInvocation(node, receiver, methodName, new SeparatedSyntaxList<TypeSyntax>(new SyntaxNodeOrTokenList(typeArgSyntax, 0)), ImmutableArray.Create(typeArg), ImmutableArray<BoundExpression>.Empty, diagnostics 913protected BoundCall MakeQueryInvocation(CSharpSyntaxNode node, BoundExpression receiver, string methodName, SeparatedSyntaxList<TypeSyntax> typeArgsSyntax, ImmutableArray<TypeWithAnnotations> typeArgs, ImmutableArray<BoundExpression> args, BindingDiagnosticBag 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()); 1040protected BoundExpression MakeConstruction(CSharpSyntaxNode node, NamedTypeSymbol toCreate, ImmutableArray<BoundExpression> args, BindingDiagnosticBag diagnostics)
Binder\Binder_QueryErrors.cs (3)
29ImmutableArray<Symbol> symbols, 164internal static void ReportQueryInferenceFailed(CSharpSyntaxNode queryClause, string methodName, BoundExpression receiver, AnalyzedArguments arguments, ImmutableArray<Symbol> symbols, BindingDiagnosticBag diagnostics) 213private static bool ReportQueryInferenceFailedSelectMany(FromClauseSyntax fromClause, string methodName, BoundExpression receiver, AnalyzedArguments arguments, ImmutableArray<Symbol> symbols, BindingDiagnosticBag diagnostics)
Binder\Binder_Statements.cs (43)
146result = new BoundBadStatement(node, ImmutableArray<BoundNode>.Empty, hasErrors: true); 200ImmutableArray<BoundLocalDeclaration> declarations; 535ImmutableArray<BoundNode> childNodes; 543childNodes = ImmutableArray<BoundNode>.Empty; 1106ImmutableArray<BoundExpression> arguments = BindDeclaratorArguments(declarator, localDiagnostics); 1172internal ImmutableArray<BoundExpression> BindDeclaratorArguments(VariableDeclaratorSyntax declarator, BindingDiagnosticBag diagnostics) 1181var arguments = default(ImmutableArray<BoundExpression>); 1841ImmutableArray<BoundExpression>.Empty); 1895private BoundBlock FinishBindBlockParts(CSharpSyntaxNode node, ImmutableArray<BoundStatement> boundStatements) 1897ImmutableArray<LocalSymbol> locals = GetDeclaredLocalsForScope(node); 2138var delegateParameters = delegateType.DelegateParameters(); 2270ImmutableArray<MethodSymbol> originalUserDefinedConversions = conversion.OriginalUserDefinedConversions; 2334var targetElementTypes = default(ImmutableArray<TypeWithAnnotations>); 2507ImmutableArray<BoundExpression> tupleArguments, 2508ImmutableArray<TypeWithAnnotations> targetElementTypes) 2706var best = this.UnaryOperatorOverloadResolution(UnaryOperatorKind.True, expr, node, diagnostics, out LookupResultKind resultKind, out ImmutableArray<MethodSymbol> originalUserDefinedOperators); 2794internal BoundStatement BindForOrUsingOrFixedDeclarations(VariableDeclarationSyntax nodeOpt, LocalDeclarationKind localKind, BindingDiagnosticBag diagnostics, out ImmutableArray<BoundLocalDeclaration> declarations) 2798declarations = ImmutableArray<BoundLocalDeclaration>.Empty; 2905return new BoundBadStatement(node, ImmutableArray<BoundNode>.Empty, hasErrors: true); 2916return new BoundBadStatement(node, ImmutableArray<BoundNode>.Empty, hasErrors: true); 3205var catchBlocks = BindCatchBlocks(node.Catches, diagnostics); 3210private ImmutableArray<BoundCatchBlock> BindCatchBlocks(SyntaxList<CatchClauseSyntax> catchClauses, BindingDiagnosticBag diagnostics) 3215return ImmutableArray<BoundCatchBlock>.Empty; 3330ImmutableArray<LocalSymbol> locals = binder.GetDeclaredLocalsForScope(node); 3446internal BoundBlock CreateBlockFromExpression(CSharpSyntaxNode node, ImmutableArray<LocalSymbol> locals, RefKind refKind, BoundExpression expression, ExpressionSyntax expressionSyntax, BindingDiagnosticBag diagnostics) 3683ImmutableArray<LocalSymbol> constructorLocals; 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, 4035internal virtual ImmutableArray<LocalSymbol> Locals 4039return ImmutableArray<LocalSymbol>.Empty; 4043internal virtual ImmutableArray<LocalFunctionSymbol> LocalFunctions 4047return ImmutableArray<LocalFunctionSymbol>.Empty; 4051internal virtual ImmutableArray<LabelSymbol> Labels 4055return ImmutableArray<LabelSymbol>.Empty; 4063internal virtual ImmutableArray<AliasAndExternAliasDirective> ExternAliases 4077internal virtual ImmutableArray<AliasAndUsingDirective> UsingAliases
Binder\Binder_Symbols.cs (11)
725var typesArray = types.ToImmutableAndFree(); 726var locationsArray = locations.ToImmutableAndFree(); 738default(ImmutableArray<string>) : 743errorPositions: default(ImmutableArray<bool>), 1242var boundTypeArguments = BindTypeArguments(typeArguments, diagnostics, basesBeingResolved); 1337private ImmutableArray<TypeWithAnnotations> BindTypeArguments(SeparatedSyntaxList<TypeSyntax> typeArguments, BindingDiagnosticBag diagnostics, ConsList<TypeSymbol> basesBeingResolved = null) 1372private NamedTypeSymbol ConstructNamedTypeUnlessTypeArgumentOmitted(SyntaxNode typeSyntax, NamedTypeSymbol type, SeparatedSyntaxList<TypeSyntax> typeArgumentsSyntax, ImmutableArray<TypeWithAnnotations> typeArguments, BindingDiagnosticBag diagnostics) 1418ImmutableArray<TypeWithAnnotations> typeArguments, 1469receiver = new BoundBadExpression(receiver.Syntax, LookupResultKind.Ambiguous, ImmutableArray<Symbol>.Empty, ImmutableArray.Create(receiver), receiver.Type, hasErrors: true).MakeCompilerGenerated(); 1572ImmutableArray<TypeWithAnnotations> typeArguments, 1955var originalSymbols = symbols.ToImmutable();
Binder\Binder_TupleOperators.cs (18)
54ImmutableArray<BoundExpression> arguments = tuple.Arguments; 159ImmutableArray<MethodSymbol> originalUserDefinedOperators; 229(ImmutableArray<BoundExpression> leftParts, ImmutableArray<string> leftNames) = GetTupleArgumentsOrPlaceholders(left); 230(ImmutableArray<BoundExpression> rightParts, ImmutableArray<string> rightNames) = GetTupleArgumentsOrPlaceholders(right); 244var operators = operatorsBuilder.ToImmutableAndFree(); 266ImmutableArray<string> leftNames, ImmutableArray<string> rightNames, BindingDiagnosticBag diagnostics) 286ImmutableArray<bool> leftInferred = leftIsTupleLiteral ? ((BoundTupleExpression)left).InferredNamesOpt : default; 289ImmutableArray<bool> rightInferred = rightIsTupleLiteral ? ((BoundTupleExpression)right).InferredNamesOpt : default; 375private static (ImmutableArray<BoundExpression> Elements, ImmutableArray<string> Names) GetTupleArgumentsOrPlaceholders(BoundExpression expr) 384ImmutableArray<BoundExpression> placeholders = tupleType.TupleElementTypesWithAnnotations 395private TypeSymbol MakeConvertedType(ImmutableArray<TypeSymbol> convertedTypes, CSharpSyntaxNode syntax, 396ImmutableArray<BoundExpression> elements, ImmutableArray<string> names, 407ImmutableArray<Location> elementLocations = elements.SelectAsArray(e => e.Syntax.Location);
Binder\Binder_XmlNameAttribute.cs (4)
19internal ImmutableArray<Symbol> BindXmlNameAttribute(XmlNameAttributeSyntax syntax, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 25return ImmutableArray<Symbol>.Empty; 36return ImmutableArray<Symbol>.Empty; 49ImmutableArray<Symbol> result = lookupSymbols.ToImmutable();
Binder\BinderFactory.BinderFactoryVisitor.cs (4)
649private static bool InSpan(ImmutableArray<Location> locations, SyntaxTree syntaxTree, TextSpan span) 1270ImmutableArray<ParameterSymbol> parameters = property.Parameters; 1292ImmutableArray<ParameterSymbol> parameters = invokeMethod.Parameters; 1345ImmutableArray<TypeParameterSymbol> typeParameters = delegateType.TypeParameters;
Binder\BindingDiagnosticBag.cs (2)
174internal CSDiagnosticInfo Add(ErrorCode code, Location location, ImmutableArray<Symbol> symbols, params object[] args) 176var info = new CSDiagnosticInfo(code, args, symbols, ImmutableArray<Location>.Empty);
Binder\BlockBinder.cs (6)
33protected override ImmutableArray<LocalSymbol> BuildLocals() 38protected override ImmutableArray<LocalFunctionSymbol> BuildLocalFunctions() 51protected override ImmutableArray<LabelSymbol> BuildLabels() 55return (labels != null) ? labels.ToImmutableAndFree() : ImmutableArray<LabelSymbol>.Empty; 66internal override ImmutableArray<LocalSymbol> GetDeclaredLocalsForScope(SyntaxNode scopeDesignator) 84internal override ImmutableArray<LocalFunctionSymbol> GetDeclaredLocalFunctionsForScope(CSharpSyntaxNode scopeDesignator)
Binder\BuckStopsHereBinder.cs (2)
176internal override ImmutableArray<LocalSymbol> GetDeclaredLocalsForScope(SyntaxNode scopeDesignator) 181internal override ImmutableArray<LocalFunctionSymbol> GetDeclaredLocalFunctionsForScope(CSharpSyntaxNode scopeDesignator)
Binder\CatchClauseBinder.cs (3)
27protected override ImmutableArray<LocalSymbol> BuildLocals() 45internal override ImmutableArray<LocalSymbol> GetDeclaredLocalsForScope(SyntaxNode scopeDesignator) 55internal override ImmutableArray<LocalFunctionSymbol> GetDeclaredLocalFunctionsForScope(CSharpSyntaxNode scopeDesignator)
Binder\DecisionDagBuilder.cs (23)
85ImmutableArray<BoundSwitchSection> switchSections, 101ImmutableArray<BoundSwitchExpressionArm> switchArms, 144ImmutableArray<BoundSwitchSection> switchSections) 169ImmutableArray<BoundSwitchExpressionArm> switchArms) 191Tests tests = MakeAndSimplifyTestsAndBindings(input, pattern, out ImmutableArray<BoundPatternBinding> bindings); 198out ImmutableArray<BoundPatternBinding> bindings) 233var testSequence = seq.RemainingTests; 555ImmutableArray<FieldSymbol> elements = inputType.TupleElements; 556ImmutableArray<TypeWithAnnotations> elementTypes = inputType.TupleElementTypesWithAnnotations; 773var sortedBoundDagNodes = boundDecisionDag.TopologicallySortedNodes; 980bool wasAcyclic = decisionDag.TryGetTopologicallySortedReachableStates(out ImmutableArray<DagState> sortedStates); 1033BoundDecisionDagNode finalState(SyntaxNode syntax, LabelSymbol label, ImmutableArray<BoundPatternBinding> bindings) 1638public bool TryGetTopologicallySortedReachableStates(out ImmutableArray<DagState> result) 1650if (!this.TryGetTopologicallySortedReachableStates(out var allStates)) 1990public readonly ImmutableArray<BoundPatternBinding> Bindings; 1997ImmutableArray<BoundPatternBinding> Bindings, 2291private static ArrayBuilder<Tests> NegateSequenceElements(ImmutableArray<Tests> seq) 2323public readonly ImmutableArray<Tests> RemainingTests; 2324protected SequenceTests(ImmutableArray<Tests> remainingTests) 2385private AndSequence(ImmutableArray<Tests> remainingTests) : base(remainingTests) { } 2410var testsToInsert = seq.RemainingTests; 2464private OrSequence(ImmutableArray<Tests> remainingTests) : base(remainingTests) { } 2491var testsToInsert = seq.RemainingTests;
Binder\DecisionDagBuilder_ListPatterns.cs (1)
22var subpatterns = list.Subpatterns;
Binder\EmbeddedStatementBinder.cs (7)
31protected override ImmutableArray<LocalSymbol> BuildLocals() 38protected override ImmutableArray<LocalFunctionSymbol> BuildLocalFunctions() 42return locals?.ToImmutableAndFree() ?? ImmutableArray<LocalFunctionSymbol>.Empty; 53protected override ImmutableArray<LabelSymbol> BuildLabels() 58return labels?.ToImmutableAndFree() ?? ImmutableArray<LabelSymbol>.Empty; 69internal override ImmutableArray<LocalSymbol> GetDeclaredLocalsForScope(SyntaxNode scopeDesignator) 87internal override ImmutableArray<LocalFunctionSymbol> GetDeclaredLocalFunctionsForScope(CSharpSyntaxNode scopeDesignator)
Binder\ExpressionListVariableBinder.cs (3)
26protected override ImmutableArray<LocalSymbol> BuildLocals() 41internal override ImmutableArray<LocalSymbol> GetDeclaredLocalsForScope(SyntaxNode scopeDesignator) 51internal override ImmutableArray<LocalFunctionSymbol> GetDeclaredLocalFunctionsForScope(CSharpSyntaxNode scopeDesignator)
Binder\ExpressionVariableBinder.cs (3)
26protected override ImmutableArray<LocalSymbol> BuildLocals() 34internal override ImmutableArray<LocalSymbol> GetDeclaredLocalsForScope(SyntaxNode scopeDesignator) 44internal override ImmutableArray<LocalFunctionSymbol> GetDeclaredLocalFunctionsForScope(CSharpSyntaxNode scopeDesignator)
Binder\FixedStatementBinder.cs (4)
29protected override ImmutableArray<LocalSymbol> BuildLocals() 57return ImmutableArray<LocalSymbol>.Empty; 60internal override ImmutableArray<LocalSymbol> GetDeclaredLocalsForScope(SyntaxNode scopeDesignator) 70internal override ImmutableArray<LocalFunctionSymbol> GetDeclaredLocalFunctionsForScope(CSharpSyntaxNode scopeDesignator)
Binder\ForEachLoopBinder.cs (11)
47internal override ImmutableArray<LocalSymbol> GetDeclaredLocalsForScope(SyntaxNode scopeDesignator) 57internal override ImmutableArray<LocalFunctionSymbol> GetDeclaredLocalFunctionsForScope(CSharpSyntaxNode scopeDesignator) 70protected override ImmutableArray<LocalSymbol> BuildLocals() 424ImmutableArray<LocalSymbol> iterationVariables = this.Locals; 482ImmutableArray<MethodSymbol> originalUserDefinedConversions = elementConversionClassification.OriginalUserDefinedConversions; 725ImmutableArray<Symbol>.Empty, 1207var argsToParams = default(ImmutableArray<int>); 1463var argsToParams = overloadResolutionResult.ValidResult.Result.ArgsToParamsOpt; 1811private static void GetIEnumerableOfT(ImmutableArray<NamedTypeSymbol> interfaces, bool isAsync, CSharpCompilation compilation, ref NamedTypeSymbol result, ref bool foundMultiple) 1922ImmutableArray<int> argsToParams = default;
Binder\ForLoopBinder.cs (6)
28protected override ImmutableArray<LocalSymbol> BuildLocals() 92var innerLocals = ImmutableArray<LocalSymbol>.Empty; 110var locals = incrementBinder.GetDeclaredLocalsForScope(scopeDesignator); 140internal override ImmutableArray<LocalSymbol> GetDeclaredLocalsForScope(SyntaxNode scopeDesignator) 150internal override ImmutableArray<LocalFunctionSymbol> GetDeclaredLocalFunctionsForScope(CSharpSyntaxNode scopeDesignator)
Binder\HostObjectModeBinder.cs (2)
42ImmutableArray<Symbol>.Empty, 43ImmutableArray<Location>.Empty
Binder\ImportChain.cs (5)
35ImmutableArray<Cci.UsedNamespaceOrType> Cci.IImportScope.GetUsedNamespaces(EmitContext context) 37bool result = ((Emit.PEModuleBuilder)context.Module).TryGetTranslatedImports(this, out ImmutableArray<Cci.UsedNamespaceOrType> imports); 59private ImmutableArray<Cci.UsedNamespaceOrType> TranslateImports(Emit.PEModuleBuilder moduleBuilder, DiagnosticBag diagnostics) 65ImmutableArray<AliasAndExternAliasDirective> externAliases = Imports.ExternAliases; 74ImmutableArray<NamespaceOrTypeAndUsingDirective> usings = Imports.Usings;
Binder\Imports.cs (15)
29ImmutableArray<NamespaceOrTypeAndUsingDirective>.Empty, 30ImmutableArray<AliasAndExternAliasDirective>.Empty); 33public readonly ImmutableArray<NamespaceOrTypeAndUsingDirective> Usings; 34public readonly ImmutableArray<AliasAndExternAliasDirective> ExternAliases; 38ImmutableArray<NamespaceOrTypeAndUsingDirective> usings, 39ImmutableArray<AliasAndExternAliasDirective> externs) 83var expandedUsings = ExpandPreviousSubmissionImports(previousSubmissionImports.Usings, newSubmission); 91internal static ImmutableArray<NamespaceOrTypeAndUsingDirective> ExpandPreviousSubmissionImports(ImmutableArray<NamespaceOrTypeAndUsingDirective> previousSubmissionUsings, CSharpCompilation newSubmission) 153ImmutableArray<NamespaceOrTypeAndUsingDirective> usings, 154ImmutableArray<AliasAndExternAliasDirective> externs) 187var externAliases = ConcatExternAliases(this.ExternAliases, otherImports.ExternAliases); 192private static ImmutableArray<AliasAndExternAliasDirective> ConcatExternAliases(ImmutableArray<AliasAndExternAliasDirective> externs1, ImmutableArray<AliasAndExternAliasDirective> externs2)
Binder\InMethodBinder.cs (5)
48private static void RecordDefinition<T>(SmallDictionary<string, Symbol> declarationMap, ImmutableArray<T> definitions) where T : Symbol 206var parameters = _methodSymbol.Parameters; 245var locations = parameter.Locations; 324var parameters = _methodSymbol.Parameters; 325var typeParameters = _methodSymbol.TypeParameters;
Binder\InSubmissionClassBinder.cs (2)
60internal override ImmutableArray<AliasAndExternAliasDirective> ExternAliases => ((SourceNamespaceSymbol)Compilation.SourceModule.GlobalNamespace).GetExternAliases(_declarationSyntax); 62internal override ImmutableArray<AliasAndUsingDirective> UsingAliases => ((SourceNamespaceSymbol)Compilation.SourceModule.GlobalNamespace).GetUsingAliases(_declarationSyntax, basesBeingResolved: null);
Binder\LocalBinderFactory.cs (6)
309var parameters = target switch 325static ImmutableArray<ParameterSymbol> getAllParameters(ParameterSymbol parameter) 339static ImmutableArray<ParameterSymbol> getMethodParametersFromTypeParameter(TypeParameterSymbol typeParameter) 353static ImmutableArray<ParameterSymbol> getDelegateParameters(NamedTypeSymbol delegateType) 365static ImmutableArray<ParameterSymbol> getSetterParameters(SourcePropertyAccessorSymbol setter) 367var parameters = setter.Parameters;
Binder\LocalScopeBinder.cs (19)
21private ImmutableArray<LocalSymbol> _locals; 22private ImmutableArray<LocalFunctionSymbol> _localFunctions; 23private ImmutableArray<LabelSymbol> _labels; 35internal sealed override ImmutableArray<LocalSymbol> Locals 41ImmutableInterlocked.InterlockedCompareExchange(ref _locals, BuildLocals(), default(ImmutableArray<LocalSymbol>)); 48protected virtual ImmutableArray<LocalSymbol> BuildLocals() 50return ImmutableArray<LocalSymbol>.Empty; 53internal sealed override ImmutableArray<LocalFunctionSymbol> LocalFunctions 59ImmutableInterlocked.InterlockedCompareExchange(ref _localFunctions, BuildLocalFunctions(), default(ImmutableArray<LocalFunctionSymbol>)); 66protected virtual ImmutableArray<LocalFunctionSymbol> BuildLocalFunctions() 68return ImmutableArray<LocalFunctionSymbol>.Empty; 71internal sealed override ImmutableArray<LabelSymbol> Labels 77ImmutableInterlocked.InterlockedCompareExchange(ref _labels, BuildLabels(), default(ImmutableArray<LabelSymbol>)); 84protected virtual ImmutableArray<LabelSymbol> BuildLabels() 86return ImmutableArray<LabelSymbol>.Empty; 131private static SmallDictionary<string, TSymbol> BuildMap<TSymbol>(ImmutableArray<TSymbol> array) 148protected ImmutableArray<LocalSymbol> BuildLocals(SyntaxList<StatementSyntax> statements, Binder enclosingBinder) 296protected ImmutableArray<LocalFunctionSymbol> BuildLocalFunctions(SyntaxList<StatementSyntax> statements) 304return locals?.ToImmutableAndFree() ?? ImmutableArray<LocalFunctionSymbol>.Empty;
Binder\LockBinder.cs (1)
112var members = type.GetMembers(name);
Binder\MethodArgumentInfo.cs (3)
18public readonly ImmutableArray<BoundExpression> Arguments; 24ImmutableArray<BoundExpression> arguments, 37return new MethodArgumentInfo(method, arguments: ImmutableArray<BoundExpression>.Empty, defaultArguments: default, expanded: false);
Binder\NamespaceOrTypeAndUsingDirective.cs (2)
15public readonly ImmutableArray<AssemblySymbol> Dependencies; 17public NamespaceOrTypeAndUsingDirective(NamespaceOrTypeSymbol namespaceOrType, UsingDirectiveSyntax? usingDirective, ImmutableArray<AssemblySymbol> dependencies)
Binder\PatternExplainer.cs (12)
31private static ImmutableArray<BoundDecisionDagNode> ShortestPathToNode( 32ImmutableArray<BoundDecisionDagNode> nodes, 111Func<ImmutableArray<BoundDecisionDagNode>, bool, bool> handler) 181ImmutableArray<BoundDecisionDagNode> nodes, 196var shortestPathToNode = ShortestPathToNode(nodes, targetNode, nullPaths, out requiresFalseWhenClause); 244static void gatherConstraintsAndEvaluations(BoundDecisionDagNode targetNode, ImmutableArray<BoundDecisionDagNode> pathToNode, 298var constraints = getArray(constraintMap, input); 299var evaluations = getArray(evaluationMap, input); 311static ImmutableArray<T> getArray<T>(Dictionary<BoundDagTemp, ArrayBuilder<T>> map, BoundDagTemp temp) 313return map.TryGetValue(temp, out var builder) ? builder.ToImmutable() : ImmutableArray<T>.Empty; 473var elements = input.Type.TupleElements; 596IValueSet computeRemainingValues(IValueSetFactory fac, ImmutableArray<(BoundDagTest test, bool sense)> constraints)
Binder\RefSafetyAnalysis.cs (10)
92private readonly ImmutableArray<LocalSymbol> _locals; 94public LocalScope(RefSafetyAnalysis analysis, ImmutableArray<LocalSymbol> locals) 660private void VisitArgumentsAndGetArgumentPlaceholders(BoundExpression? receiverOpt, ImmutableArray<BoundExpression> arguments) 703ImmutableArray<BoundExpression> arguments) 973var parameters = deconstructMethod.Parameters; 1032var arguments = tuple.Arguments; 1048private static ImmutableArray<BoundExpression> GetDeconstructionRightParts(BoundExpression expr) 1074ImmutableArray<BoundExpression> arguments; 1075ImmutableArray<RefKind> refKinds; 1099using var _ = new LocalScope(this, ImmutableArray<LocalSymbol>.Empty);
Binder\ScriptLocalScopeBinder.cs (6)
29protected override ImmutableArray<LabelSymbol> BuildLabels() 42internal override ImmutableArray<LocalSymbol> GetDeclaredLocalsForScope(SyntaxNode scopeDesignator) 47internal override ImmutableArray<LocalFunctionSymbol> GetDeclaredLocalFunctionsForScope(CSharpSyntaxNode scopeDesignator) 57private ImmutableArray<LabelSymbol> _lazyLabels; 70internal ImmutableArray<LabelSymbol> GetLabels() 79private static ImmutableArray<LabelSymbol> GetLabels(SynthesizedInteractiveInitializerMethod scriptInitializer, CompilationUnitSyntax syntax)
Binder\Semantics\AccessCheck.cs (2)
234var typeArgs = type.TypeArgumentsWithDefinitionUseSiteDiagnostics(ref useSiteInfo); 642ImmutableArray<NamedTypeSymbol> declaredInterfaces;
Binder\Semantics\BestTypeInferrer.cs (1)
52ImmutableArray<BoundExpression> exprs,
Binder\Semantics\Conversions\Conversion.cs (33)
35conversionResult: UserDefinedConversionResult.NoApplicableOperators(ImmutableArray<UserDefinedConversionAnalysis>.Empty), 83public NestedUncommonData(ImmutableArray<Conversion> nestedConversions) 88internal readonly ImmutableArray<Conversion> _nestedConversionsOpt; 96internal DeconstructionUncommonData(DeconstructMethodInfo deconstructMethodInfoOpt, ImmutableArray<(BoundValuePlaceholder? placeholder, BoundExpression? conversion)> deconstructConversionInfo) 104internal readonly ImmutableArray<(BoundValuePlaceholder? placeholder, BoundExpression? conversion)> DeconstructConversionInfo; 112ImmutableArray<Conversion> elementConversions) : 132ImmutableArray<Conversion> elementConversions) 173internal Conversion(ConversionKind kind, ImmutableArray<Conversion> nestedConversions) 180internal Conversion(ConversionKind kind, DeconstructMethodInfo deconstructMethodInfo, ImmutableArray<(BoundValuePlaceholder? placeholder, BoundExpression? conversion)> deconstructConversionInfo) 304internal static ImmutableArray<Conversion> IdentityUnderlying => ConversionSingletons.IdentityUnderlying; 305internal static ImmutableArray<Conversion> ImplicitConstantUnderlying => ConversionSingletons.ImplicitConstantUnderlying; 306internal static ImmutableArray<Conversion> ImplicitNumericUnderlying => ConversionSingletons.ImplicitNumericUnderlying; 307internal static ImmutableArray<Conversion> ExplicitNumericUnderlying => ConversionSingletons.ExplicitNumericUnderlying; 308internal static ImmutableArray<Conversion> ExplicitEnumerationUnderlying => ConversionSingletons.ExplicitEnumerationUnderlying; 309internal static ImmutableArray<Conversion> PointerToIntegerUnderlying => ConversionSingletons.PointerToIntegerUnderlying; 330internal static ImmutableArray<Conversion> IdentityUnderlying = ImmutableArray.Create(Identity); 331internal static ImmutableArray<Conversion> ImplicitConstantUnderlying = ImmutableArray.Create(ImplicitConstant); 332internal static ImmutableArray<Conversion> ImplicitNumericUnderlying = ImmutableArray.Create(ImplicitNumeric); 333internal static ImmutableArray<Conversion> ExplicitNumericUnderlying = ImmutableArray.Create(ExplicitNumeric); 334internal static ImmutableArray<Conversion> ExplicitEnumerationUnderlying = ImmutableArray.Create(ExplicitEnumeration); 335internal static ImmutableArray<Conversion> PointerToIntegerUnderlying = ImmutableArray.Create(PointerToInteger); 364internal static Conversion MakeSwitchExpression(ImmutableArray<Conversion> innerConversions) 369internal static Conversion MakeConditionalExpression(ImmutableArray<Conversion> innerConversions) 398internal ImmutableArray<Conversion> UnderlyingConversions 404default(ImmutableArray<Conversion>); 421var underlyingConversions = UnderlyingConversions; 460var underlyingConversions = UnderlyingConversions; 538internal ImmutableArray<(BoundValuePlaceholder? placeholder, BoundExpression? conversion)> DeconstructConversionInfo 1104internal ImmutableArray<MethodSymbol> OriginalUserDefinedConversions 1124return ImmutableArray<MethodSymbol>.Empty; 1237var underlyingConversions = self.UnderlyingConversions; 1254ImmutableArray<BoundDeconstructValuePlaceholder> outputPlaceholders) 1262internal readonly ImmutableArray<BoundDeconstructValuePlaceholder> OutputPlaceholders;
Binder\Semantics\Conversions\Conversions.cs (2)
184var elements = node.Elements; 402public static void GetDelegateOrFunctionPointerArguments(SyntaxNode syntax, AnalyzedArguments analyzedArguments, ImmutableArray<ParameterSymbol> delegateParameters, CSharpCompilation compilation)
Binder\Semantics\Conversions\ConversionsBase.cs (8)
1494var delegateParameters = invokeMethod.Parameters; 1702var allInterfaces = targetType.GetAllInterfacesOrEffectiveInterfaces(); 2331var arguments = source.Arguments; 2339var targetElementTypes = destination.TupleElementTypesWithAnnotations; 2407ImmutableArray<TypeWithAnnotations> sourceTypes; 2408ImmutableArray<TypeWithAnnotations> destTypes; 3683var sourceTypeArguments = sourceType.TypeArgumentsWithDefinitionUseSiteDiagnostics(ref useSiteInfo); 3684var destinationTypeArguments = destinationType.TypeArgumentsWithDefinitionUseSiteDiagnostics(ref useSiteInfo);
Binder\Semantics\Conversions\UserDefinedConversionResult.cs (7)
25public readonly ImmutableArray<UserDefinedConversionAnalysis> Results; 29public static UserDefinedConversionResult NoApplicableOperators(ImmutableArray<UserDefinedConversionAnalysis> results) 37public static UserDefinedConversionResult NoBestSourceType(ImmutableArray<UserDefinedConversionAnalysis> results) 45public static UserDefinedConversionResult NoBestTargetType(ImmutableArray<UserDefinedConversionAnalysis> results) 53public static UserDefinedConversionResult Ambiguous(ImmutableArray<UserDefinedConversionAnalysis> results) 61public static UserDefinedConversionResult Valid(ImmutableArray<UserDefinedConversionAnalysis> results, int best) 71ImmutableArray<UserDefinedConversionAnalysis> results,
Binder\Semantics\Conversions\UserDefinedConversions.cs (1)
97ImmutableArray<NamedTypeSymbol> interfaces = includeBaseTypes ?
Binder\Semantics\Conversions\UserDefinedExplicitConversions.cs (3)
43ImmutableArray<UserDefinedConversionAnalysis> u = ubuild.ToImmutableAndFree(); 372ImmutableArray<UserDefinedConversionAnalysis> u, 430ImmutableArray<UserDefinedConversionAnalysis> u,
Binder\Semantics\Conversions\UserDefinedImplicitConversions.cs (12)
87ImmutableArray<UserDefinedConversionAnalysis> u = ubuild.ToImmutableAndFree(); 365private TypeSymbol MostSpecificSourceTypeForImplicitUserDefinedConversion(ImmutableArray<UserDefinedConversionAnalysis> u, TypeSymbol source, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 381private TypeSymbol MostSpecificTargetTypeForImplicitUserDefinedConversion(ImmutableArray<UserDefinedConversionAnalysis> u, TypeSymbol target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 428private static int? MostSpecificConversionOperator(TypeSymbol sx, TypeSymbol tx, ImmutableArray<UserDefinedConversionAnalysis> u) 436private static int? MostSpecificConversionOperator(Func<UserDefinedConversionAnalysis, bool> constraint, ImmutableArray<UserDefinedConversionAnalysis> u) 547private static BestIndex UniqueIndex<T>(ImmutableArray<T> items, Func<T, bool> predicate) 690ImmutableArray<T> items, 698ImmutableArray<T> items, 752ImmutableArray<T> items, 760ImmutableArray<T> items, 804private static int? UniqueBestValidIndex<T>(ImmutableArray<T> items, Func<T, bool> valid, Func<T, T, BetterResult> better) 970ImmutableArray<UserDefinedConversionAnalysis> u = ubuild.ToImmutableAndFree();
Binder\Semantics\Operators\BinaryOperatorOverloadResolution.cs (3)
222ImmutableArray<NamedTypeSymbol> interfaces = default; 1325var p = op1.Method.OriginalDefinition.GetParameters(); 1342var p = op2.Method.OriginalDefinition.GetParameters();
Binder\Semantics\Operators\UnaryOperatorOverloadResolution.cs (1)
419ImmutableArray<NamedTypeSymbol> interfaces = default;
Binder\Semantics\OverloadResolution\AnalyzedArguments.cs (4)
58public ImmutableArray<string?> GetNames() 148ImmutableArray<BoundExpression> arguments, 149ImmutableArray<RefKind> argumentRefKindsOpt, 150ImmutableArray<(string, Location)?> argumentNamesOpt)
Binder\Semantics\OverloadResolution\ArgumentAnalysisResult.cs (10)
14public readonly ImmutableArray<int> ArgsToParamsOpt; 33ImmutableArray<int> argsToParamsOpt) 51return new ArgumentAnalysisResult(ArgumentAnalysisResultKind.NameUsedForPositional, argumentPosition, 0, default(ImmutableArray<int>)); 56return new ArgumentAnalysisResult(ArgumentAnalysisResultKind.NoCorrespondingParameter, argumentPosition, 0, default(ImmutableArray<int>)); 61return new ArgumentAnalysisResult(ArgumentAnalysisResultKind.NoCorrespondingNamedParameter, argumentPosition, 0, default(ImmutableArray<int>)); 66return new ArgumentAnalysisResult(ArgumentAnalysisResultKind.DuplicateNamedArgument, argumentPosition, 0, default(ImmutableArray<int>)); 71return new ArgumentAnalysisResult(ArgumentAnalysisResultKind.RequiredParameterMissing, 0, parameterPosition, default(ImmutableArray<int>)); 76return new ArgumentAnalysisResult(ArgumentAnalysisResultKind.BadNonTrailingNamedArgument, argumentPosition, 0, default(ImmutableArray<int>)); 79public static ArgumentAnalysisResult NormalForm(ImmutableArray<int> argsToParamsOpt) 84public static ArgumentAnalysisResult ExpandedForm(ImmutableArray<int> argsToParamsOpt)
Binder\Semantics\OverloadResolution\MemberAnalysisResult.cs (16)
24private readonly ImmutableArray<Conversion> _conversionsOpt; 25public ImmutableArray<Conversion> ConversionsOpt 60private readonly ImmutableArray<int> _argsToParamsOpt; 61public ImmutableArray<int> ArgsToParamsOpt 74private readonly ImmutableArray<TypeParameterDiagnosticInfo> _constraintFailureDiagnostics; 75public ImmutableArray<TypeParameterDiagnosticInfo> ConstraintFailureDiagnostics 120ImmutableArray<int> argsToParamsOpt = default, 121ImmutableArray<Conversion> conversionsOpt = default, 124ImmutableArray<TypeParameterDiagnosticInfo> constraintFailureDiagnosticsOpt = default, 321public static MemberAnalysisResult BadArgumentConversions(ImmutableArray<int> argsToParamsOpt, BitVector badArguments, ImmutableArray<Conversion> conversions, TypeWithAnnotations definitionParamsElementTypeOpt, TypeWithAnnotations paramsElementTypeOpt) 376public static MemberAnalysisResult NormalForm(ImmutableArray<int> argsToParamsOpt, ImmutableArray<Conversion> conversions, bool hasAnyRefOmittedArgument) 381public static MemberAnalysisResult ExpandedForm(ImmutableArray<int> argsToParamsOpt, ImmutableArray<Conversion> conversions, bool hasAnyRefOmittedArgument, TypeWithAnnotations definitionParamsElementType, TypeWithAnnotations paramsElementType) 398internal static MemberAnalysisResult ConstraintFailure(ImmutableArray<TypeParameterDiagnosticInfo> constraintFailureDiagnostics)
Binder\Semantics\OverloadResolution\MethodGroup.cs (3)
44ImmutableArray<TypeWithAnnotations> typeArguments, 62ImmutableArray<MethodSymbol> methods, 63ImmutableArray<TypeWithAnnotations> typeArguments,
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (38)
73public readonly ImmutableArray<TypeWithAnnotations> InferredTypeArguments; 82ImmutableArray<TypeWithAnnotations> inferredTypeArguments, 134private readonly ImmutableArray<TypeParameterSymbol> _methodTypeParameters; 136private readonly ImmutableArray<TypeWithAnnotations> _formalParameterTypes; 137private readonly ImmutableArray<RefKind> _formalParameterRefKinds; 138private readonly ImmutableArray<BoundExpression> _arguments; 169ImmutableArray<TypeParameterSymbol> methodTypeParameters, 174ImmutableArray<TypeWithAnnotations> formalParameterTypes, 271ImmutableArray<RefKind> formalParameterRefKinds, // Optional; assume all value if missing. 272ImmutableArray<BoundExpression> arguments,// Required; in scenarios like method group conversions where there are 317ImmutableArray<TypeParameterSymbol> methodTypeParameters, 319ImmutableArray<TypeWithAnnotations> formalParameterTypes, 320ImmutableArray<RefKind> formalParameterRefKinds, 321ImmutableArray<BoundExpression> arguments, 429private ImmutableArray<TypeWithAnnotations> GetResults(out bool inferredFromFunctionType) 564var inferredTypeArguments = GetResults(out bool inferredFromFunctionType); 706var sourceArguments = argument.Arguments; 715var destTypes = destination.TupleElementTypesWithAnnotations; 904var sourceArguments = argument.Arguments; 912var destTypes = destination.TupleElementTypesWithAnnotations; 1001var parameters = delegateOrFunctionPointerType.DelegateOrFunctionPointerParameters(); 1455var fixedParameters = GetFixedDelegateOrFunctionPointer(delegateOrFunctionPointerType).DelegateOrFunctionPointerParameters(); 1478ImmutableArray<ParameterSymbol> delegateParameters, 1547var delegateParameters = delegateType.DelegateParameters(); 1810ImmutableArray<TypeWithAnnotations> sourceTypes; 1811ImmutableArray<TypeWithAnnotations> targetTypes; 2291ImmutableArray<NamedTypeSymbol> allInterfaces; 2323internal static ImmutableArray<NamedTypeSymbol> ModuloReferenceTypeNullabilityDifferences(ImmutableArray<NamedTypeSymbol> interfaces, VarianceKind variance) 2680ImmutableArray<NamedTypeSymbol> allInterfaces = target.AllInterfacesWithDefinitionUseSiteDiagnostics(ref useSiteInfo); 2991var constraintTypes = typeParameter.ConstraintTypesNoUseSiteDiagnostics; 3076var originalDelegateParameters = target.DelegateParameters(); 3089var fixedDelegateParameters = fixedDelegate.DelegateParameters(); 3127private static NamedTypeSymbol GetInterfaceInferenceBound(ImmutableArray<NamedTypeSymbol> interfaces, NamedTypeSymbol target) 3173public static ImmutableArray<TypeWithAnnotations> InferTypeArgumentsFromFirstArgument( 3177ImmutableArray<BoundExpression> arguments, 3192ImmutableArray<BoundExpression> arguments, 3269private ImmutableArray<TypeWithAnnotations> GetInferredTypeArguments(out bool inferredFromFunctionType)
Binder\Semantics\OverloadResolution\OverloadResolution.cs (48)
101public void ObjectCreationOverloadResolution(ImmutableArray<MethodSymbol> constructors, AnalyzedArguments arguments, OverloadResolutionResult<MethodSymbol> result, bool dynamicResolution, bool isEarlyAttributeBinding, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 285var applicableMethods = result.GetAllApplicableMembers(); 539static ImmutableArray<Symbol> getHiddenMembers(Symbol member) 550return ImmutableArray<Symbol>.Empty; 1472private bool TypeArgumentsAccessible(ImmutableArray<TypeSymbol> typeArguments, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1724ImmutableArray<MethodSymbol> constructors, 2071private static ParameterSymbol GetParameter(int argIndex, MemberAnalysisResult result, ImmutableArray<ParameterSymbol> parameters) 2149var m1LeastOverriddenParameters = m1.LeastOverriddenMember.GetParameters(); 2150var m2LeastOverriddenParameters = m2.LeastOverriddenMember.GetParameters(); 2456var m1DefinitionParameters = m1.LeastOverriddenMember.OriginalDefinition.GetParameters(); 2457var m2DefinitionParameters = m2.LeastOverriddenMember.OriginalDefinition.GetParameters(); 2558static TypeSymbol getParameterTypeAndRefKind(int i, MemberAnalysisResult result, ImmutableArray<ParameterSymbol> parameters, TypeWithAnnotations paramsElementTypeOpt, out RefKind parameter1RefKind) 2592var conversionsOpt = m.Result.ConversionsOpt; 2604ImmutableArray<ParameterSymbol> parameters1, 2606ImmutableArray<ParameterSymbol> parameters2) 2674ImmutableArray<int> argsToParamsOpt = m.Result.ArgsToParamsOpt; 3043ImmutableArray<BoundNode> collectionExpressionElements, 3044TypeSymbol t1, CollectionExpressionTypeKind kind1, TypeSymbol elementType1, ImmutableArray<Conversion> underlyingElementConversions1, 3045TypeSymbol t2, CollectionExpressionTypeKind kind2, TypeSymbol elementType2, ImmutableArray<Conversion> underlyingElementConversions2, 3351var sourceArguments = tupleSource.Arguments; 3359var destTypes = destination.TupleElementTypesWithAnnotations; 3700private static bool IdenticalParameters(ImmutableArray<ParameterSymbol> p1, ImmutableArray<ParameterSymbol> p2) 3777ImmutableArray<int> argToParamMap, 3783out ImmutableArray<TypeWithAnnotations> parameterTypes, 3784out ImmutableArray<RefKind> parameterRefKinds) 3799internal readonly ImmutableArray<TypeWithAnnotations> ParameterTypes; 3800internal readonly ImmutableArray<RefKind> ParameterRefKinds; 3803internal EffectiveParameters(ImmutableArray<TypeWithAnnotations> types, ImmutableArray<RefKind> refKinds, int firstParamsElementIndex) 3816ImmutableArray<int> argToParamMap, 3825ImmutableArray<ParameterSymbol> parameters = member.GetParameters(); 3832ImmutableArray<RefKind> parameterRefKinds = member.GetParameterRefKinds(); 3871var refKinds = refs != null ? refs.ToImmutableAndFree() : default(ImmutableArray<RefKind>); 3957ImmutableArray<int> argToParamMap, 3968ImmutableArray<int> argToParamMap, 3979var parameters = member.GetParameters(); 4017var refKinds = anyRef ? refs.ToImmutable() : default(ImmutableArray<RefKind>); 4172ImmutableArray<int> argsToParamsMap, 4191ImmutableArray<TypeWithAnnotations> typeArguments; 4262var parameterTypes = leastOverriddenMember.GetParameterTypes(); 4304private ImmutableArray<TypeWithAnnotations> InferMethodTypeArguments( 4306ImmutableArray<TypeParameterSymbol> originalTypeParameters, 4313var args = arguments.Arguments.ToImmutable(); 4350return default(ImmutableArray<TypeWithAnnotations>); 4356return default(ImmutableArray<TypeWithAnnotations>); 4365ImmutableArray<int> argsToParameters, 4536var conversionsArray = conversions != null ? conversions.ToImmutableAndFree() : default(ImmutableArray<Conversion>);
Binder\Semantics\OverloadResolution\OverloadResolution_ArgsToParameters.cs (6)
52public ImmutableArray<int> ToImmutableArray() 67ImmutableArray<ParameterSymbol> parameters = symbol.GetParameters(); 233ImmutableArray<ParameterSymbol> memberParameters, 341ImmutableArray<ParameterSymbol> parameters, 378return ArgumentAnalysisResult.NormalForm(default(ImmutableArray<int>)); 434ImmutableArray<ParameterSymbol> parameters,
Binder\Semantics\OverloadResolution\OverloadResolutionResult.cs (21)
102public ImmutableArray<MemberResolutionResult<TMember>> Results 134internal ImmutableArray<TMember> GetAllApplicableMembers() 197ImmutableArray<T> memberGroup, // the T is just a convenience for the caller 580private static void ReportUnsupportedMetadata(Location location, BindingDiagnosticBag diagnostics, ImmutableArray<Symbol> symbols, MemberResolutionResult<TMember> firstUnsupported) 595private static void ReportWrongCallingConvention(Location location, BindingDiagnosticBag diagnostics, ImmutableArray<Symbol> symbols, MemberResolutionResult<TMember> firstSupported, MethodSymbol target) 622ImmutableArray<Symbol> symbols, 641ImmutableArray<Symbol> symbols, 740ImmutableArray<Symbol> symbols, 793ImmutableArray<Symbol> symbols) 813ImmutableArray<Symbol> symbols) 846ImmutableArray<Symbol> symbols) 881ImmutableArray<Symbol> symbols, 898ImmutableArray<ParameterSymbol> parameters = badMember.GetParameters(); 926ImmutableArray<Symbol> symbols, 1085ImmutableArray<Symbol> symbols, 1118var parameters = method.GetParameters(); 1154ImmutableArray<Symbol> symbols, 1338ImmutableArray<CustomModifier>.Empty, 1389private bool HadAmbiguousWorseMethods(BindingDiagnosticBag diagnostics, ImmutableArray<Symbol> symbols, Location location, bool isQuery, BoundExpression receiver, string name) 1453private bool HadAmbiguousBestMethods(BindingDiagnosticBag diagnostics, ImmutableArray<Symbol> symbols, Location location) 1505private static DiagnosticInfoWithSymbols CreateAmbiguousCallDiagnosticInfo(Symbol first, Symbol second, ImmutableArray<Symbol> symbols)
Binder\SimpleLocalScopeBinder.cs (5)
17private readonly ImmutableArray<LocalSymbol> _locals; 19public SimpleLocalScopeBinder(ImmutableArray<LocalSymbol> locals, Binder next) : 25protected override ImmutableArray<LocalSymbol> BuildLocals() 30internal override ImmutableArray<LocalSymbol> GetDeclaredLocalsForScope(SyntaxNode scopeDesignator) 35internal override ImmutableArray<LocalFunctionSymbol> GetDeclaredLocalFunctionsForScope(CSharpSyntaxNode scopeDesignator)
Binder\SimpleProgramBinder.cs (7)
26protected override ImmutableArray<LocalSymbol> BuildLocals() 41protected override ImmutableArray<LocalFunctionSymbol> BuildLocalFunctions() 53return locals?.ToImmutableAndFree() ?? ImmutableArray<LocalFunctionSymbol>.Empty; 64protected override ImmutableArray<LabelSymbol> BuildLabels() 76return labels?.ToImmutableAndFree() ?? ImmutableArray<LabelSymbol>.Empty; 87internal override ImmutableArray<LocalSymbol> GetDeclaredLocalsForScope(SyntaxNode scopeDesignator) 105internal override ImmutableArray<LocalFunctionSymbol> GetDeclaredLocalFunctionsForScope(CSharpSyntaxNode scopeDesignator)
Binder\SimpleProgramUnitBinder.cs (6)
26protected override ImmutableArray<LocalSymbol> BuildLocals() 31protected override ImmutableArray<LocalFunctionSymbol> BuildLocalFunctions() 44protected override ImmutableArray<LabelSymbol> BuildLabels() 46return ImmutableArray<LabelSymbol>.Empty; 57internal override ImmutableArray<LocalSymbol> GetDeclaredLocalsForScope(SyntaxNode scopeDesignator) 70internal override ImmutableArray<LocalFunctionSymbol> GetDeclaredLocalFunctionsForScope(CSharpSyntaxNode scopeDesignator)
Binder\SwitchBinder.cs (10)
25private ImmutableArray<Diagnostic> _switchGoverningDiagnostics; 26private ImmutableArray<AssemblySymbol> _switchGoverningDependencies; 93private static Dictionary<object, SourceLabelSymbol> BuildLabelsByValue(ImmutableArray<LabelSymbol> labels) 134protected override ImmutableArray<LocalSymbol> BuildLocals() 146protected override ImmutableArray<LocalFunctionSymbol> BuildLocalFunctions() 174protected override ImmutableArray<LabelSymbol> BuildLabels() 328internal override ImmutableArray<LocalSymbol> GetDeclaredLocalsForScope(SyntaxNode scopeDesignator) 338internal override ImmutableArray<LocalFunctionSymbol> GetDeclaredLocalFunctionsForScope(CSharpSyntaxNode scopeDesignator) 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\SwitchBinder_Patterns.cs (5)
42ImmutableArray<BoundSwitchSection> switchSections = BindSwitchSections(originalBinder, diagnostics, out BoundSwitchLabel defaultLabel); 43ImmutableArray<LocalSymbol> locals = GetDeclaredLocalsForScope(node); 44ImmutableArray<LocalFunctionSymbol> functions = GetDeclaredLocalFunctionsForScope(node); 73ref ImmutableArray<BoundSwitchSection> switchSections, 160private ImmutableArray<BoundSwitchSection> BindSwitchSections(
Binder\SwitchExpressionArmBinder.cs (1)
41ImmutableArray<LocalSymbol> locals = _armScopeBinder.Locals;
Binder\SwitchExpressionBinder.cs (4)
32ImmutableArray<BoundSwitchExpressionArm> switchArms = BindSwitchExpressionArms(node, originalBinder, boundInputExpression, diagnostics); 57ImmutableArray<BoundSwitchExpressionArm> switchArms, 139private TypeSymbol? InferResultType(ImmutableArray<BoundSwitchExpressionArm> switchCases, BindingDiagnosticBag diagnostics) 175private ImmutableArray<BoundSwitchExpressionArm> BindSwitchExpressionArms(SwitchExpressionSyntax node, Binder originalBinder, BoundExpression inputExpression, BindingDiagnosticBag diagnostics)
Binder\UsingStatementBinder.cs (5)
27protected override ImmutableArray<LocalSymbol> BuildLocals() 108ImmutableArray<BoundLocalDeclaration> declarationsOpt = default; 207ImmutableArray<int> argsToParams = default; 306internal override ImmutableArray<LocalSymbol> GetDeclaredLocalsForScope(SyntaxNode scopeDesignator) 316internal override ImmutableArray<LocalFunctionSymbol> GetDeclaredLocalFunctionsForScope(CSharpSyntaxNode scopeDesignator)
Binder\WhileBinder.cs (3)
48protected override ImmutableArray<LocalSymbol> BuildLocals() 69internal override ImmutableArray<LocalSymbol> GetDeclaredLocalsForScope(SyntaxNode scopeDesignator) 79internal override ImmutableArray<LocalFunctionSymbol> GetDeclaredLocalFunctionsForScope(CSharpSyntaxNode scopeDesignator)
Binder\WithExternAliasesBinder.cs (7)
27internal abstract override ImmutableArray<AliasAndExternAliasDirective> ExternAliases 77internal static WithExternAliasesBinder Create(ImmutableArray<AliasAndExternAliasDirective> externAliases, Binder next) 86private ImmutableArray<AliasAndExternAliasDirective> _lazyExternAliases; 96internal override ImmutableArray<AliasAndExternAliasDirective> ExternAliases 112private readonly ImmutableArray<AliasAndExternAliasDirective> _externAliases; 114internal FromSymbols(ImmutableArray<AliasAndExternAliasDirective> externAliases, Binder next) 121internal override ImmutableArray<AliasAndExternAliasDirective> ExternAliases
Binder\WithExternAndUsingAliasesBinder.cs (10)
32internal abstract override ImmutableArray<AliasAndUsingDirective> UsingAliases { get; } 103internal static WithExternAndUsingAliasesBinder Create(ImmutableArray<AliasAndExternAliasDirective> externAliases, ImmutableDictionary<string, AliasAndUsingDirective> usingAliases, WithUsingNamespacesAndTypesBinder next) 112private ImmutableArray<AliasAndExternAliasDirective> _lazyExternAliases; 113private ImmutableArray<AliasAndUsingDirective> _lazyUsingAliases; 125internal sealed override ImmutableArray<AliasAndExternAliasDirective> ExternAliases 138internal override ImmutableArray<AliasAndUsingDirective> UsingAliases 228private readonly ImmutableArray<AliasAndExternAliasDirective> _externAliases; 231internal FromSymbols(ImmutableArray<AliasAndExternAliasDirective> externAliases, ImmutableDictionary<string, AliasAndUsingDirective> usingAliases, WithUsingNamespacesAndTypesBinder next) 239internal override ImmutableArray<AliasAndExternAliasDirective> ExternAliases 247internal override ImmutableArray<AliasAndUsingDirective> UsingAliases
Binder\WithLambdaParametersBinder.cs (3)
28var parameters = lambdaSymbol.Parameters; 170internal override ImmutableArray<LocalSymbol> GetDeclaredLocalsForScope(SyntaxNode scopeDesignator) 175internal override ImmutableArray<LocalFunctionSymbol> GetDeclaredLocalFunctionsForScope(CSharpSyntaxNode scopeDesignator)
Binder\WithParametersBinder.cs (2)
22private readonly ImmutableArray<ParameterSymbol> _parameters; 24internal WithParametersBinder(ImmutableArray<ParameterSymbol> parameters, Binder next)
Binder\WithPrimaryConstructorParametersBinder.cs (1)
83var parameters = _lazyPrimaryCtorWithParameters.Parameters;
Binder\WithUsingNamespacesAndTypesBinder.cs (10)
35internal abstract ImmutableArray<NamespaceOrTypeAndUsingDirective> GetUsings(ConsList<TypeSymbol>? basesBeingResolved); 141ImmutableArray<Symbol> candidates = Binder.GetCandidateMembers(typeOrNamespace.NamespaceOrType, name, options, originalBinder: originalBinder); 264internal static WithUsingNamespacesAndTypesBinder Create(ImmutableArray<NamespaceOrTypeAndUsingDirective> namespacesOrTypes, Binder next, bool withImportChainEntry = false) 273private ImmutableArray<NamespaceOrTypeAndUsingDirective> _lazyUsings; 283internal override ImmutableArray<NamespaceOrTypeAndUsingDirective> GetUsings(ConsList<TypeSymbol>? basesBeingResolved) 313internal override ImmutableArray<NamespaceOrTypeAndUsingDirective> GetUsings(ConsList<TypeSymbol>? basesBeingResolved) 338private readonly ImmutableArray<NamespaceOrTypeAndUsingDirective> _usings; 340internal FromNamespacesOrTypes(ImmutableArray<NamespaceOrTypeAndUsingDirective> namespacesOrTypes, Binder next, bool withImportChainEntry) 347internal override ImmutableArray<NamespaceOrTypeAndUsingDirective> GetUsings(ConsList<TypeSymbol>? basesBeingResolved) 354return Imports.Create(ImmutableDictionary<string, AliasAndUsingDirective>.Empty, _usings, ImmutableArray<AliasAndExternAliasDirective>.Empty);
BoundTree\BoundArrayInitialization.cs (1)
11public BoundArrayInitialization Update(ImmutableArray<BoundExpression> initializers)
BoundTree\BoundBinaryOperator.UncommonData.cs (3)
33public static UncommonData? CreateIfNeeded(ConstantValue? constantValue, MethodSymbol? method, TypeSymbol? constrainedToType, ImmutableArray<MethodSymbol> originalUserDefinedOperatorsOpt) 52public readonly ImmutableArray<MethodSymbol> OriginalUserDefinedOperatorsOpt; 54private UncommonData(ConstantValue? constantValue, MethodSymbol? method, TypeSymbol? constrainedToType, ImmutableArray<MethodSymbol> originalUserDefinedOperatorsOpt, bool isUnconvertedInterpolatedStringAddition, InterpolatedStringHandlerData? interpolatedStringHandlerData)
BoundTree\BoundDecisionDag.cs (4)
22private ImmutableArray<BoundDecisionDagNode> _topologicallySortedNodes; 71public ImmutableArray<BoundDecisionDagNode> TopologicallySortedNodes 98ImmutableArray<BoundDecisionDagNode> sortedNodes = this.TopologicallySortedNodes; 215var allStates = this.TopologicallySortedNodes;
BoundTree\BoundDynamicObjectCreationExpression.cs (1)
14public override ImmutableArray<int> ArgsToParamsOpt => default;
BoundTree\BoundExpression.cs (6)
416internal ImmutableArray<MethodSymbol> OriginalUserDefinedOperatorsOpt => Data?.OriginalUserDefinedOperatorsOpt ?? default(ImmutableArray<MethodSymbol>); 538ImmutableArray<BoundExpression> newArguments, 539ImmutableArray<RefKind> newRefKinds, 546argumentNamesOpt: default(ImmutableArray<string?>), 549argsToParamsOpt: default(ImmutableArray<int>),
BoundTree\BoundExpressionExtensions.cs (2)
209var originalMethods = ((BoundCall)node).OriginalMethodsOpt; 221var originalIndexers = ((BoundIndexerAccess)node).OriginalIndexersOpt;
BoundTree\BoundMethodGroup.cs (2)
15ImmutableArray<TypeWithAnnotations> typeArgumentsOpt, 18ImmutableArray<MethodSymbol> methods,
BoundTree\BoundNewT.cs (5)
13public override ImmutableArray<BoundExpression> Arguments => ImmutableArray<BoundExpression>.Empty; 14public override ImmutableArray<string?> ArgumentNamesOpt => default; 15public override ImmutableArray<RefKind> ArgumentRefKindsOpt => default; 17public override ImmutableArray<int> ArgsToParamsOpt => default;
BoundTree\BoundNode.cs (3)
368ImmutableArray<BoundNode>.CastUp(collection.Elements.CastArray<BoundExpression>()) == collection.Elements); 500private void AddAll(ImmutableArray<LocalSymbol> locals) 511private void RemoveAll(ImmutableArray<LocalSymbol> locals)
BoundTree\BoundNode_Source.cs (2)
33var catchBlocks = tryStatement.CatchBlocks; 86var statements = block.Statements;
BoundTree\BoundNodeExtensions.cs (2)
18public static bool HasErrors<T>(this ImmutableArray<T> nodeArray) 73public static bool ContainsAwaitExpression(this ImmutableArray<BoundExpression> expressions)
BoundTree\BoundNoPiaObjectCreationExpression.cs (5)
13public override ImmutableArray<BoundExpression> Arguments => ImmutableArray<BoundExpression>.Empty; 14public override ImmutableArray<string?> ArgumentNamesOpt => default; 15public override ImmutableArray<RefKind> ArgumentRefKindsOpt => default; 17public override ImmutableArray<int> ArgsToParamsOpt => default;
BoundTree\BoundObjectCreationExpression.cs (15)
12public BoundObjectCreationExpression(SyntaxNode syntax, MethodSymbol constructor, ImmutableArray<BoundExpression> arguments, ImmutableArray<string?> argumentNamesOpt, 13ImmutableArray<RefKind> argumentRefKindsOpt, bool expanded, ImmutableArray<int> argsToParamsOpt, BitVector defaultArguments, ConstantValue? constantValueOpt, 15: this(syntax, constructor, ImmutableArray<MethodSymbol>.Empty, arguments, argumentNamesOpt, argumentRefKindsOpt, expanded, argsToParamsOpt, defaultArguments, constantValueOpt, initializerExpressionOpt, wasTargetTyped: false, type, hasErrors) 18public BoundObjectCreationExpression Update(MethodSymbol constructor, ImmutableArray<BoundExpression> arguments, ImmutableArray<string?> argumentNamesOpt, ImmutableArray<RefKind> argumentRefKindsOpt, bool expanded, 19ImmutableArray<int> argsToParamsOpt, BitVector defaultArguments, ConstantValue? constantValueOpt, BoundObjectInitializerExpressionBase? initializerExpressionOpt, TypeSymbol type) 21return this.Update(constructor, ImmutableArray<MethodSymbol>.Empty, arguments, argumentNamesOpt, argumentRefKindsOpt, expanded, argsToParamsOpt, defaultArguments, constantValueOpt, initializerExpressionOpt, this.WasTargetTyped, type); 24public BoundObjectCreationExpression Update(MethodSymbol constructor, ImmutableArray<MethodSymbol> constructorsGroup, ImmutableArray<BoundExpression> arguments, 25ImmutableArray<string?> argumentNamesOpt, ImmutableArray<RefKind> argumentRefKindsOpt, bool expanded, ImmutableArray<int> argsToParamsOpt,
BoundTree\BoundObjectCreationExpressionBase.cs (4)
13public abstract ImmutableArray<BoundExpression> Arguments { get; } 14public abstract ImmutableArray<string?> ArgumentNamesOpt { get; } 15public abstract ImmutableArray<RefKind> ArgumentRefKindsOpt { get; } 17public abstract ImmutableArray<int> ArgsToParamsOpt { get; }
BoundTree\BoundSpillSequence.cs (4)
17ImmutableArray<LocalSymbol> locals, 18ImmutableArray<BoundExpression> sideEffects, 26private static ImmutableArray<BoundStatement> MakeStatements(ImmutableArray<BoundExpression> expressions)
BoundTree\BoundTreeRewriter.cs (4)
21public ImmutableArray<T> VisitList<T>(ImmutableArray<T> list) where T : BoundNode 31private ImmutableArray<T> DoVisitList<T>(ImmutableArray<T> list) where T : BoundNode
BoundTree\BoundTreeWalker.cs (2)
17public void VisitList<T>(ImmutableArray<T> list) where T : BoundNode 41var arguments = call.Arguments;
BoundTree\Constructors.cs (59)
91ImmutableArray<BoundExpression> arguments, 92ImmutableArray<string?> argumentNamesOpt, 93ImmutableArray<RefKind> argumentRefKindsOpt, 97ImmutableArray<int> argsToParamsOpt, 109ImmutableArray<BoundExpression> arguments, 110ImmutableArray<string?> argumentNamesOpt, 111ImmutableArray<RefKind> argumentRefKindsOpt, 115ImmutableArray<int> argsToParamsOpt, 125ImmutableArray<BoundExpression> arguments, 126ImmutableArray<string?> namedArguments, 127ImmutableArray<RefKind> refKinds, 130ImmutableArray<MethodSymbol> originalMethods, 150argsToParamsOpt: default(ImmutableArray<int>), 158public BoundCall Update(ImmutableArray<BoundExpression> arguments) 163public BoundCall Update(BoundExpression? receiverOpt, ThreeState initialBindingReceiverIsSubjectToCloning, MethodSymbol method, ImmutableArray<BoundExpression> arguments) 170return Synthesized(syntax, receiverOpt, initialBindingReceiverIsSubjectToCloning: initialBindingReceiverIsSubjectToCloning, method, ImmutableArray<BoundExpression>.Empty); 183public static BoundCall Synthesized(SyntaxNode syntax, BoundExpression? receiverOpt, ThreeState initialBindingReceiverIsSubjectToCloning, MethodSymbol method, ImmutableArray<BoundExpression> arguments, ImmutableArray<RefKind> argumentRefKindsOpt = default) 216argumentNamesOpt: default(ImmutableArray<string?>), 221argsToParamsOpt: default(ImmutableArray<int>), 230static ImmutableArray<RefKind> getArgumentRefKinds(MethodSymbol method) 232var result = method.ParameterRefKinds; 254: this(syntax, constructor, ImmutableArray.Create<BoundExpression>(arguments), default(ImmutableArray<string?>), default(ImmutableArray<RefKind>), false, default(ImmutableArray<int>), default(BitVector), null, null, constructor.ContainingType) 257public BoundObjectCreationExpression(SyntaxNode syntax, MethodSymbol constructor, ImmutableArray<BoundExpression> arguments) 258: this(syntax, constructor, arguments, default(ImmutableArray<string?>), default(ImmutableArray<RefKind>), false, default(ImmutableArray<int>), default(BitVector), null, null, constructor.ContainingType) 269ImmutableArray<BoundExpression> arguments, 270ImmutableArray<string?> namedArguments, 271ImmutableArray<RefKind> refKinds, 272ImmutableArray<PropertySymbol> originalIndexers) 284argsToParamsOpt: default(ImmutableArray<int>), 295ImmutableArray<BoundExpression> arguments, 296ImmutableArray<string?> argumentNamesOpt, 297ImmutableArray<RefKind> argumentRefKindsOpt, 300ImmutableArray<int> argsToParamsOpt, 310ImmutableArray<BoundExpression> arguments, 311ImmutableArray<string?> argumentNamesOpt, 312ImmutableArray<RefKind> argumentRefKindsOpt, 315ImmutableArray<int> argsToParamsOpt, 436ImmutableArray<MethodSymbol> originalUserDefinedOperatorsOpt, 496ImmutableArray<MethodSymbol> originalUserDefinedOperatorsOpt, 543public BoundTypeExpression(SyntaxNode syntax, AliasSymbol? aliasOpt, BoundTypeExpression? boundContainingTypeOpt, ImmutableArray<BoundExpression> boundDimensionsOpt, TypeWithAnnotations typeWithAnnotations, bool hasErrors = false) 550: this(syntax, aliasOpt, boundContainingTypeOpt, ImmutableArray<BoundExpression>.Empty, typeWithAnnotations, hasErrors) 564public BoundTypeExpression(SyntaxNode syntax, AliasSymbol? aliasOpt, ImmutableArray<BoundExpression> dimensionsOpt, TypeWithAnnotations typeWithAnnotations, bool hasErrors = false) 599public BoundBadExpression(SyntaxNode syntax, LookupResultKind resultKind, ImmutableArray<Symbol?> symbols, ImmutableArray<BoundExpression> childBoundNodes, TypeSymbol type) 618public static BoundStatementList Synthesized(SyntaxNode syntax, ImmutableArray<BoundStatement> statements) 623public static BoundStatementList Synthesized(SyntaxNode syntax, bool hasErrors, ImmutableArray<BoundStatement> statements) 655public BoundBlock(SyntaxNode syntax, ImmutableArray<LocalSymbol> locals, ImmutableArray<BoundStatement> statements, bool hasErrors = false) 656: this(syntax, locals, ImmutableArray<LocalFunctionSymbol>.Empty, hasUnsafeModifier: false, instrumentation: null, statements, hasErrors) 662return new BoundBlock(syntax, ImmutableArray<LocalSymbol>.Empty, ImmutableArray.Create(statement)) 666public static BoundBlock SynthesizedNoLocals(SyntaxNode syntax, ImmutableArray<BoundStatement> statements) 668return new BoundBlock(syntax, ImmutableArray<LocalSymbol>.Empty, statements) { WasCompilerGenerated = true }; 673return new BoundBlock(syntax, ImmutableArray<LocalSymbol>.Empty, statements.AsImmutableOrNull()) { WasCompilerGenerated = true }; 687public BoundTryStatement(SyntaxNode syntax, BoundBlock tryBlock, ImmutableArray<BoundCatchBlock> catchBlocks, BoundBlock? finallyBlockOpt, LabelSymbol? finallyLabelOpt = null)
BoundTree\Expression.cs (37)
12internal static ImmutableArray<BoundExpression> GetChildInitializers(BoundExpression? objectOrCollectionInitializer) 26return ImmutableArray<BoundExpression>.Empty; 29ImmutableArray<BoundNode> IBoundInvalidNode.InvalidNodeChildren => CSharpOperationFactory.CreateInvalidChildrenFromArgumentsExpression(receiverOpt: null, Arguments, InitializerExpressionOpt); 34ImmutableArray<BoundNode> IBoundInvalidNode.InvalidNodeChildren => StaticCast<BoundNode>.From(Arguments); 39ImmutableArray<BoundNode> IBoundInvalidNode.InvalidNodeChildren => CSharpOperationFactory.CreateInvalidChildrenFromArgumentsExpression(ImplicitReceiverOpt, Arguments); 44protected override ImmutableArray<BoundNode?> Children => ImmutableArray.Create<BoundNode?>(this.Left, this.Right); 49protected override ImmutableArray<BoundNode?> Children => StaticCast<BoundNode?>.From(this.ChildBoundNodes); 51ImmutableArray<BoundNode> IBoundInvalidNode.InvalidNodeChildren => StaticCast<BoundNode>.From(this.ChildBoundNodes); 56ImmutableArray<BoundNode> IBoundInvalidNode.InvalidNodeChildren => CSharpOperationFactory.CreateInvalidChildrenFromArgumentsExpression(ReceiverOpt, Arguments); 61ImmutableArray<BoundNode> IBoundInvalidNode.InvalidNodeChildren => CSharpOperationFactory.CreateInvalidChildrenFromArgumentsExpression(ReceiverOpt, Arguments); 66protected override ImmutableArray<BoundNode?> Children => StaticCast<BoundNode?>.From(this.Arguments.Insert(0, this.Receiver)); 71protected override ImmutableArray<BoundNode?> Children => StaticCast<BoundNode?>.From(this.Arguments); 76protected override ImmutableArray<BoundNode?> Children => StaticCast<BoundNode?>.From(this.ConstructorArguments.AddRange(StaticCast<BoundExpression>.From(this.NamedArguments))); 81protected override ImmutableArray<BoundNode?> Children => ImmutableArray.Create<BoundNode?>(this.Value); 86protected override ImmutableArray<BoundNode?> Children => StaticCast<BoundNode?>.From(this.Arguments); 91protected override ImmutableArray<BoundNode?> Children => ImmutableArray.Create<BoundNode?>(this.Argument); 96protected override ImmutableArray<BoundNode?> Children => ImmutableArray.Create<BoundNode?>(this.Expression, this.Index); 101protected override ImmutableArray<BoundNode?> Children => ImmutableArray.Create<BoundNode?>(this.Operand); 106protected override ImmutableArray<BoundNode?> Children => ImmutableArray.Create<BoundNode?>(this.Receiver); 111protected override ImmutableArray<BoundNode?> Children => ImmutableArray.Create<BoundNode?>(this.Operand); 116protected override ImmutableArray<BoundNode?> Children => ImmutableArray.Create<BoundNode?>(this.Operand); 121protected override ImmutableArray<BoundNode?> Children => StaticCast<BoundNode?>.From(this.Arguments.Insert(0, this.Expression)); 126protected override ImmutableArray<BoundNode?> Children => ImmutableArray.Create<BoundNode?>(this.Expression); 131internal static ImmutableArray<BoundExpression> GetChildInitializers(BoundArrayInitialization? arrayInitializer) 133return arrayInitializer?.Initializers ?? ImmutableArray<BoundExpression>.Empty; 139protected override ImmutableArray<BoundNode?> Children => StaticCast<BoundNode?>.From(GetChildInitializers(this.InitializerOpt).Insert(0, this.Count)); 144protected override ImmutableArray<BoundNode?> Children => StaticCast<BoundNode?>.From(GetChildInitializers(this.InitializerOpt).Insert(0, this.Count)); 149protected override ImmutableArray<BoundNode?> Children => StaticCast<BoundNode?>.From(this.Arguments.AddRange(BoundObjectCreationExpression.GetChildInitializers(this.InitializerExpressionOpt))); 154protected override ImmutableArray<BoundNode?> Children => ImmutableArray.Create<BoundNode?>(this.Expression); 159protected override ImmutableArray<BoundNode?> Children => ImmutableArray.Create<BoundNode?>(this.ReceiverOpt); 164protected override ImmutableArray<BoundNode?> Children => StaticCast<BoundNode?>.From(this.SideEffects.Add(this.Value)); 169protected override ImmutableArray<BoundNode?> Children => 170(this.Kind == BoundKind.StatementList || this.Kind == BoundKind.Scope) ? StaticCast<BoundNode?>.From(this.Statements) : ImmutableArray<BoundNode?>.Empty; 175protected override ImmutableArray<BoundNode?> Children => ImmutableArray.Create<BoundNode?>(this.Expression); 180protected override ImmutableArray<BoundNode?> Children => ImmutableArray.Create<BoundNode?>(this.Receiver, Argument); 185ImmutableArray<BoundNode> IBoundInvalidNode.InvalidNodeChildren => CSharpOperationFactory.CreateInvalidChildrenFromArgumentsExpression(receiverOpt: this.InvokedExpression, Arguments); 186protected override ImmutableArray<BoundNode?> Children => StaticCast<BoundNode?>.From(((IBoundInvalidNode)this).InvalidNodeChildren);
BoundTree\Formatting.cs (2)
83var arguments = this.Arguments; 192var arguments = this.Arguments;
BoundTree\IBoundInvalidNode.cs (1)
16ImmutableArray<BoundNode> InvalidNodeChildren { get; }
BoundTree\InterpolatedStringHandlerData.cs (6)
19public readonly ImmutableArray<BoundInterpolatedStringArgumentPlaceholder> ArgumentPlaceholders; 21public readonly ImmutableArray<ImmutableArray<(bool IsLiteral, bool HasAlignment, bool HasFormat)>> PositionInfo; 33ImmutableArray<BoundInterpolatedStringArgumentPlaceholder> placeholders, 34ImmutableArray<ImmutableArray<(bool IsLiteral, bool HasAlignment, bool HasFormat)>> positionInfo,
BoundTree\LengthBasedStringSwitchData.cs (16)
74internal readonly ImmutableArray<CharJumpTable> CharBasedJumpTables; 75internal readonly ImmutableArray<StringJumpTable> StringBasedJumpTables; 78ImmutableArray<CharJumpTable> charJumpTables, ImmutableArray<StringJumpTable> stringJumpTables) 88public readonly ImmutableArray<(int value, LabelSymbol label)> LengthCaseLabels; 90public LengthJumpTable(LabelSymbol? nullCaseLabel, ImmutableArray<(int value, LabelSymbol label)> lengthCaseLabels) 103public readonly ImmutableArray<(char value, LabelSymbol label)> CharCaseLabels; 105internal CharJumpTable(LabelSymbol label, int selectedCharPosition, ImmutableArray<(char value, LabelSymbol label)> charCaseLabels) 118public readonly ImmutableArray<(string value, LabelSymbol label)> StringCaseLabels; 120internal StringJumpTable(LabelSymbol label, ImmutableArray<(string value, LabelSymbol label)> stringCaseLabels) 137internal static LengthBasedStringSwitchData Create(ImmutableArray<(ConstantValue value, LabelSymbol label)> inputCases) 165private static LabelSymbol CreateAndRegisterCharJumpTables(int stringLength, ImmutableArray<(string value, LabelSymbol label)> casesWithGivenLength, 202static int selectBestCharacterIndex(int stringLength, ImmutableArray<(string value, LabelSymbol label)> caseLabels) 229static (int singleEntryCount, int largestBucket) positionScore(int position, ImmutableArray<(string value, LabelSymbol label)> caseLabels) 253private static LabelSymbol CreateAndRegisterStringJumpTable(ImmutableArray<(string value, LabelSymbol label)> cases, ArrayBuilder<StringJumpTable> stringJumpTables) 290void dump<T>(ImmutableArray<(T value, LabelSymbol label)> cases)
BoundTree\NullabilityRewriter.cs (2)
228private ImmutableArray<T> GetUpdatedArray<T>(BoundNode expr, ImmutableArray<T> symbols) where T : Symbol?
BoundTree\Statement.cs (7)
12ImmutableArray<BoundNode?> IBoundNodeWithIOperationChildren.Children => this.Children; 18protected virtual ImmutableArray<BoundNode?> Children => ImmutableArray<BoundNode?>.Empty; 23protected override ImmutableArray<BoundNode?> Children => this.ChildBoundNodes!; 25ImmutableArray<BoundNode> IBoundInvalidNode.InvalidNodeChildren => this.ChildBoundNodes; 30protected override ImmutableArray<BoundNode?> Children => ImmutableArray.Create<BoundNode?>(this.Declarations, this.Body); 35protected override ImmutableArray<BoundNode?> Children => ImmutableArray.Create<BoundNode?>(this.Operand);
BoundTree\TupleBinaryOperatorInfo.cs (3)
103internal readonly ImmutableArray<TupleBinaryOperatorInfo> Operators; 106new Multiple(operators: ImmutableArray<TupleBinaryOperatorInfo>.Empty, leftConvertedTypeOpt: null, rightConvertedTypeOpt: null); 108internal Multiple(ImmutableArray<TupleBinaryOperatorInfo> operators, TypeSymbol? leftConvertedTypeOpt, TypeSymbol? rightConvertedTypeOpt)
BoundTree\UnboundLambda.cs (66)
46internal readonly ImmutableArray<DiagnosticInfo> UseSiteDiagnostics; 47internal readonly ImmutableArray<AssemblySymbol> Dependencies; 56ImmutableArray<DiagnosticInfo> useSiteDiagnostics, 57ImmutableArray<AssemblySymbol> dependencies) 170ImmutableArray<TypeWithAnnotations> parameterTypes, 171ImmutableArray<RefKind> parameterRefKinds, 239useSiteInfo.AccumulatesDependencies ? useSiteInfo.Dependencies.AsImmutableOrEmpty() : ImmutableArray<AssemblySymbol>.Empty); 396ImmutableArray<SyntaxList<AttributeListSyntax>> parameterAttributes, 397ImmutableArray<RefKind> refKinds, 398ImmutableArray<ScopedKind> declaredScopes, 399ImmutableArray<TypeWithAnnotations> types, 400ImmutableArray<string> names, 401ImmutableArray<bool> discardsOpt, 403ImmutableArray<EqualsValueClauseSyntax?> defaultValues, 649internal (ImmutableArray<RefKind>, ArrayBuilder<ScopedKind>, ImmutableArray<TypeWithAnnotations>, bool) CollectParameterProperties() 691var parameterRefKinds = parameterRefKindsBuilder.ToImmutableAndFree(); 692var parameterTypes = parameterTypesBuilder.ToImmutableAndFree(); 823var lambdaParameters = lambdaSymbol.Parameters; 884ImmutableArray<TypeWithAnnotations> parameterTypes, 885ImmutableArray<RefKind> parameterRefKinds, 901ReturnInferenceCacheKey.GetFields(delegateType, IsAsync, out var parameterTypes, out var parameterRefKinds, out _); 905private void ValidateUnsafeParameters(BindingDiagnosticBag diagnostics, ImmutableArray<TypeWithAnnotations> targetParameterTypes) 932ImmutableArray<TypeWithAnnotations> parameterTypes, 933ImmutableArray<RefKind> parameterRefKinds) 949ImmutableArray<DiagnosticInfo>.Empty, 950ImmutableArray<AssemblySymbol>.Empty); 989ImmutableArray<TypeWithAnnotations> parameterTypes, 990ImmutableArray<RefKind> parameterRefKinds, 1025public readonly ImmutableArray<TypeWithAnnotations> ParameterTypes; 1026public readonly ImmutableArray<RefKind> ParameterRefKinds; 1029public static readonly ReturnInferenceCacheKey Empty = new ReturnInferenceCacheKey(ImmutableArray<TypeWithAnnotations>.Empty, ImmutableArray<RefKind>.Empty, null); 1031private ReturnInferenceCacheKey(ImmutableArray<TypeWithAnnotations> parameterTypes, ImmutableArray<RefKind> parameterRefKinds, NamedTypeSymbol? taskLikeReturnTypeOpt) 1080GetFields(delegateType, isAsync, out var parameterTypes, out var parameterRefKinds, out var taskLikeReturnTypeOpt); 1091out ImmutableArray<TypeWithAnnotations> parameterTypes, 1092out ImmutableArray<RefKind> parameterRefKinds, 1097parameterTypes = ImmutableArray<TypeWithAnnotations>.Empty; 1098parameterRefKinds = ImmutableArray<RefKind>.Empty; 1183?? rebind(ReallyInferReturnType(delegateType: null, ImmutableArray<TypeWithAnnotations>.Empty, ImmutableArray<RefKind>.Empty)); 1191ReturnInferenceCacheKey.GetFields(delegateType, IsAsync, out var parameterTypes, out var parameterRefKinds, out _); 1199ImmutableArray<TypeWithAnnotations> parameterTypes, 1200ImmutableArray<RefKind> parameterRefKinds) 1234ImmutableArray<DiagnosticInfo>.Empty, 1235ImmutableArray<AssemblySymbol>.Empty)) 1375private static FirstAmongEqualsSet<Diagnostic> CreateFirstAmongEqualsSet(ImmutableArray<Diagnostic> bag) 1430private readonly ImmutableArray<SyntaxList<AttributeListSyntax>> _parameterAttributes; 1431private readonly ImmutableArray<string> _parameterNames; 1432private readonly ImmutableArray<bool> _parameterIsDiscardOpt; 1433private readonly ImmutableArray<TypeWithAnnotations> _parameterTypesWithAnnotations; 1434private readonly ImmutableArray<RefKind> _parameterRefKinds; 1435private readonly ImmutableArray<ScopedKind> _parameterDeclaredScopes; 1436private readonly ImmutableArray<EqualsValueClauseSyntax?> _defaultValues; 1445ImmutableArray<SyntaxList<AttributeListSyntax>> parameterAttributes, 1446ImmutableArray<string> parameterNames, 1447ImmutableArray<bool> parameterIsDiscardOpt, 1448ImmutableArray<TypeWithAnnotations> parameterTypesWithAnnotations, 1449ImmutableArray<RefKind> parameterRefKinds, 1450ImmutableArray<ScopedKind> parameterDeclaredScopes, 1451ImmutableArray<EqualsValueClauseSyntax?> defaultValues, 1568var statements = body.Statements;
CodeGen\CodeGenerator.cs (6)
187dynamicTransformFlags: ImmutableArray<bool>.Empty, 188tupleElementNames: ImmutableArray<string>.Empty, 219out ImmutableArray<int> asyncYieldPoints, 220out ImmutableArray<int> asyncResumePoints, 236asyncYieldPoints = ImmutableArray<int>.Empty; 237asyncResumePoints = ImmutableArray<int>.Empty;
CodeGen\EmitAddress.cs (1)
383private void EmitArrayIndices(ImmutableArray<BoundExpression> indices)
CodeGen\EmitArrayInitializer.cs (20)
47var initExprs = inits.Initializers; 56ImmutableArray<byte> data = this.GetRawData(initExprs); 68ImmutableArray<BoundExpression> inits, 82ImmutableArray<BoundExpression> inits, 124public IndexDesc(int index, ImmutableArray<BoundExpression> initializers) 131public readonly ImmutableArray<BoundExpression> Initializers; 135ImmutableArray<BoundExpression> inits, 246private ArrayInitializerStyle ShouldEmitBlockInitializer(TypeSymbol elementType, ImmutableArray<BoundExpression> inits) 297private void InitializerCountRecursive(ImmutableArray<BoundExpression> inits, ref int initCount, ref int constInits) 332private ImmutableArray<byte> GetRawData(ImmutableArray<BoundExpression> initializers) 344private void SerializeArrayRecursive(BlobBuilder bw, ImmutableArray<BoundExpression> inits) 368private static bool IsMultidimensionalInitializer(ImmutableArray<BoundExpression> inits) 482ImmutableArray<BoundExpression> initializers = initializer.Initializers; 511ImmutableArray<byte> data = GetRawDataForArrayInit(initializers); 632bool tryEmitAsCachedArrayFromBlob(NamedTypeSymbol spanType, BoundExpression wrappedExpression, int elementCount, ImmutableArray<byte> data, ref ArrayTypeSymbol arrayType, TypeSymbol elementType) 694var initializers = initializer.Initializers; 708ImmutableArray<ConstantValue> constants = initializers.SelectAsArray(static init => init.ConstantValueOpt!); 813private ImmutableArray<byte> GetRawDataForArrayInit(ImmutableArray<BoundExpression> initializers)
CodeGen\EmitConversion.cs (1)
383var parameters = m.Parameters;
CodeGen\EmitExpression.cs (11)
936var sideEffects = sequence.SideEffects; 946private void EmitArguments(ImmutableArray<BoundExpression> arguments, ImmutableArray<ParameterSymbol> parameters, ImmutableArray<RefKind> argRefKindsOpt) 967internal static RefKind GetArgumentRefKind(ImmutableArray<BoundExpression> arguments, ImmutableArray<ParameterSymbol> parameters, ImmutableArray<RefKind> argRefKindsOpt, int i) 1659var arguments = call.Arguments; 1993var arguments = call.Arguments; 2114internal static bool IsSafeToDereferenceReceiverRefAfterEvaluatingArguments(ImmutableArray<BoundExpression> arguments) 2235private static int GetCallStackBehavior(MethodSymbol method, ImmutableArray<BoundExpression> arguments)
CodeGen\EmitStackAllocInitializer.cs (5)
31var initExprs = inits.Initializers; 47ImmutableArray<byte> data = GetRawData(initExprs); 129private ArrayInitializerStyle ShouldEmitBlockInitializerForStackAlloc(TypeSymbol elementType, ImmutableArray<BoundExpression> inits) 163private void StackAllocInitializerCount(ImmutableArray<BoundExpression> inits, ref int initCount, ref int constInits) 182private void EmitElementStackAllocInitializers(TypeSymbol elementType, ImmutableArray<BoundExpression> inits, bool includeConstants)
CodeGen\EmitStatement.cs (7)
752var declaringReferences = local.DeclaringSyntaxReferences; 784private void EmitStatements(ImmutableArray<BoundStatement> statements) 1116var declaringReferences = local.DeclaringSyntaxReferences; 1758var dynamicTransformFlags = !local.IsCompilerGenerated && local.Type.ContainsDynamic() ? 1760ImmutableArray<bool>.Empty; 1761var tupleElementNames = !local.IsCompilerGenerated && local.Type.ContainsTupleNames() ? 1763ImmutableArray<string>.Empty;
CodeGen\Optimizer.cs (21)
692var locals = node.Locals; 720var sideeffects = node.SideEffects; 764var sideeffects = node.SideEffects; 1174receiver = typeExpression.Update(aliasOpt: null, boundContainingTypeOpt: null, boundDimensionsOpt: ImmutableArray<BoundExpression>.Empty, 1188var rewrittenArguments = VisitArguments(node.Arguments, node.Method.Parameters, node.ArgumentRefKindsOpt); 1255private ImmutableArray<BoundExpression> VisitArguments(ImmutableArray<BoundExpression> arguments, ImmutableArray<ParameterSymbol> parameters, ImmutableArray<RefKind> argRefKindsOpt) 1272private void VisitArgument(ImmutableArray<BoundExpression> arguments, ref ArrayBuilder<BoundExpression> rewrittenArguments, int i, RefKind argRefKind) 1295ImmutableArray<BoundExpression> arguments = node.Arguments; 1296ImmutableArray<RefKind> argRefKindsOpt = node.ArgumentRefKindsOpt; 1319var rewrittenArguments = VisitArguments(node.Arguments, constructor.Parameters, node.ArgumentRefKindsOpt); 1673var catchBlocks = this.VisitList(node.CatchBlocks); 1759var initializers = node.Initializers; 1989private void DeclareLocals(ImmutableArray<LocalSymbol> locals, int stack) 2143ImmutableArray<BoundExpression> arguments = this.VisitList(node.Arguments); 2265receiverOpt = typeExpression.Update(aliasOpt: null, boundContainingTypeOpt: null, boundDimensionsOpt: ImmutableArray<BoundExpression>.Empty, 2279ImmutableArray<BoundExpression> arguments = this.VisitList(node.Arguments); 2396public override ImmutableArray<Location> Locations 2401public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
CommandLine\CSharpCommandLineParser.cs (6)
77ImmutableArray<KeyValuePair<string, string>> pathMap = ImmutableArray<KeyValuePair<string, string>>.Empty; 1424ImmutableArray<string> referencePaths = BuildSearchPaths(sdkDirectory, libPaths, responsePaths); 1719private ImmutableArray<string> BuildSearchPaths(string? sdkDirectoryOpt, List<string> libPaths, List<string>? responsePathsOpt) 1955var aliases = (alias != null) ? ImmutableArray.Create(alias) : ImmutableArray<string>.Empty;
CommandLine\CSharpCompiler.cs (8)
42ImmutableArray<AnalyzerConfigOptionsResult> analyzerConfigOptions, 53var sourceFiles = Arguments.SourceFiles; 148var sourceFileResolver = new LoggingSourceFileResolver(ImmutableArray<string>.Empty, Arguments.BaseDirectory, Arguments.PathMap, touchedFilesLogger); 338out ImmutableArray<DiagnosticAnalyzer> analyzers, 339out ImmutableArray<ISourceGenerator> generators) 376private protected override GeneratorDriver CreateGeneratorDriver(string baseDirectory, ParseOptions parseOptions, ImmutableArray<ISourceGenerator> generators, AnalyzerConfigOptionsProvider analyzerConfigOptionsProvider, ImmutableArray<AdditionalText> additionalTexts) 381private protected override void DiagnoseBadAccesses(TextWriter consoleOutput, ErrorLogger? errorLogger, Compilation compilation, ImmutableArray<Diagnostic> diagnostics)
Compilation\BuiltInOperators.cs (24)
28private ImmutableArray<UnaryOperatorSignature>[] _builtInUnaryOperators; 29private ImmutableArray<BinaryOperatorSignature>[][] _builtInOperators; 39private ImmutableArray<UnaryOperatorSignature> GetSignaturesFromUnaryOperatorKinds(int[] operatorKinds) 54var allOperators = new ImmutableArray<UnaryOperatorSignature>[] 237ImmutableArray<UnaryOperatorSignature>.Empty, 238ImmutableArray<UnaryOperatorSignature>.Empty, 292private ImmutableArray<BinaryOperatorSignature> GetSignaturesFromBinaryOperatorKinds(int[] operatorKinds) 307var logicalOperators = new ImmutableArray<BinaryOperatorSignature>[] 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 328var nonLogicalOperators = new ImmutableArray<BinaryOperatorSignature>[]
Compilation\CSharpCompilation.cs (64)
55private ImmutableArray<NamespaceOrTypeAndUsingDirective> _lazyGlobalImports; 70private ConcurrentDictionary<ImportInfo, ImmutableArray<AssemblySymbol>>? _lazyImportInfos; 74private ImmutableArray<Diagnostic> _lazyClsComplianceDiagnostics; 75private ImmutableArray<AssemblySymbol> _lazyClsComplianceDependencies; 412var validatedReferences = ValidateReferences<CSharpCompilationReference>(references); 434ImmutableArray<SyntaxTree>.Empty, 454ImmutableArray<MetadataReference> references, 471ImmutableArray<MetadataReference> references, 534private static LanguageVersion CommonLanguageVersion(ImmutableArray<SyntaxTree> syntaxTrees) 820public new ImmutableArray<SyntaxTree> SyntaxTrees 976syntaxAndDeclarations: syntaxAndDeclarations.WithExternalSyntaxTrees(ImmutableArray<SyntaxTree>.Empty)); 1161public override ImmutableArray<MetadataReference> DirectiveReferences 1289public override CompilationReference ToMetadataReference(ImmutableArray<string> aliases = default, bool embedInteropTypes = false) 1567internal ImmutableArray<NamespaceOrTypeAndUsingDirective> GlobalImports 1570private ImmutableArray<NamespaceOrTypeAndUsingDirective> BindGlobalImports() 1574var previousSubmissionImports = previousSubmission is object ? Imports.ExpandPreviousSubmissionImports(previousSubmission.GlobalImports, this) : ImmutableArray<NamespaceOrTypeAndUsingDirective>.Empty; 1778ImmutableArray<Symbol>.Empty, 1779ImmutableArray<Location>.Empty 2431private sealed class InterceptorKeyComparer : IEqualityComparer<(ImmutableArray<byte> ContentHash, int Position)> 2436public bool Equals((ImmutableArray<byte> ContentHash, int Position) x, (ImmutableArray<byte> ContentHash, int Position) y) 2441public int GetHashCode((ImmutableArray<byte> ContentHash, int Position) obj) 2450private ConcurrentDictionary<(ImmutableArray<byte> ContentHash, int Position), OneOrMany<(Location AttributeLocation, MethodSymbol Interceptor)>>? _interceptions; 2452internal void AddInterception(ImmutableArray<byte> contentHash, int position, Location attributeLocation, MethodSymbol interceptor) 2458() => new ConcurrentDictionary<(ImmutableArray<byte> ContentHash, int Position), OneOrMany<(Location AttributeLocation, MethodSymbol Interceptor)>>(comparer: InterceptorKeyComparer.Instance)); 2674ImmutableArray<AssemblySymbol> dependencies = pair.Value; 2780internal void RecordImportDependencies(UsingDirectiveSyntax syntax, ImmutableArray<AssemblySymbol> dependencies) 2885public override ImmutableArray<Diagnostic> GetParseDiagnostics(CancellationToken cancellationToken = default) 2894public override ImmutableArray<Diagnostic> GetDeclarationDiagnostics(CancellationToken cancellationToken = default) 2902public override ImmutableArray<Diagnostic> GetMethodBodyDiagnostics(CancellationToken cancellationToken = default) 2911public override ImmutableArray<Diagnostic> GetDiagnostics(CancellationToken cancellationToken = default) 2916internal ImmutableArray<Diagnostic> GetDiagnostics(CompilationStage stage, bool includeEarlierStages, Predicate<ISymbolInternal>? symbolFilter, CancellationToken cancellationToken) 2945var syntaxTrees = this.SyntaxTrees; 3027ImmutableArray<LoadDirective> loadDirectives; 3087private ImmutableArray<Diagnostic> GetDiagnosticsForMethodBodiesInTree(SyntaxTree tree, TextSpan? span, CancellationToken cancellationToken) 3264return new ReadOnlyBindingDiagnostic<AssemblySymbol>(result.AsImmutable(), ImmutableArray<AssemblySymbol>.Empty); 3302internal ImmutableArray<Diagnostic> GetDiagnosticsForSyntaxTree( 3571public bool CheckDuplicateFilePathsAndFree(ImmutableArray<SyntaxTree> syntaxTrees, NamespaceSymbol globalNamespace) 3727ImmutableArray<ModuleSymbol> modules = SourceAssembly.Modules; 3732ImmutableArray<EmbeddedResource> resources; 3861private static bool ChecksumMatches(string bytesText, ImmutableArray<byte> bytes) 3883private static ImmutableArray<byte> MakeChecksumBytes(string bytesText) 3951protected internal override ImmutableArray<SyntaxTree> CommonSyntaxTrees 4042ImmutableArray<ITypeSymbol> parameterTypes, 4043ImmutableArray<RefKind> parameterRefKinds, 4045ImmutableArray<INamedTypeSymbol> callingConventionTypes) 4098: ImmutableArray<CustomModifier>.Empty; 4137ImmutableArray<ITypeSymbol> elementTypes, 4138ImmutableArray<string?> elementNames, 4139ImmutableArray<Location?> elementLocations, 4140ImmutableArray<CodeAnalysis.NullableAnnotation> elementNullableAnnotations) 4164ImmutableArray<string?> elementNames, 4165ImmutableArray<Location?> elementLocations, 4166ImmutableArray<CodeAnalysis.NullableAnnotation> elementNullableAnnotations) 4192ImmutableArray<ITypeSymbol> memberTypes, 4193ImmutableArray<string> memberNames, 4194ImmutableArray<Location> memberLocations, 4195ImmutableArray<bool> memberIsReadOnly, 4196ImmutableArray<CodeAnalysis.NullableAnnotation> memberNullableAnnotations) 4753internal override AnalyzerDriver CreateAnalyzerDriver(ImmutableArray<DiagnosticAnalyzer> analyzers, AnalyzerManager analyzerManager, SeverityFilter severityFilter) 4786var preprocessorSymbols = GetPreprocessorSymbols(); 4801private ImmutableArray<string> GetPreprocessorSymbols() 4807return ImmutableArray<string>.Empty;
Compilation\CSharpCompilation.UsingsFromOptionsAndDiagnostics.cs (3)
19public static readonly UsingsFromOptionsAndDiagnostics Empty = new UsingsFromOptionsAndDiagnostics() { UsingNamespacesOrTypes = ImmutableArray<NamespaceOrTypeAndUsingDirective>.Empty, Diagnostics = null }; 21public ImmutableArray<NamespaceOrTypeAndUsingDirective> UsingNamespacesOrTypes { get; init; } 29var usings = compilation.Options.Usings;
Compilation\CSharpCompilationReference.cs (2)
36ImmutableArray<string> aliases = default(ImmutableArray<string>),
Compilation\CSharpCompilerDiagnosticAnalyzer.cs (1)
21internal override ImmutableArray<int> GetSupportedErrorCodes()
Compilation\CSharpDiagnosticFilter.cs (1)
142ImmutableArray<string> customTags,
Compilation\CSharpSemanticModel.cs (81)
167internal abstract BoundExpression GetSpeculativelyBoundExpression(int position, ExpressionSyntax expression, SpeculativeBindingOption bindingOption, out Binder binder, out ImmutableArray<Symbol> crefSymbols); 177internal abstract ImmutableArray<Symbol> GetMemberGroupWorker(CSharpSyntaxNode node, SymbolInfoOptions options, CancellationToken cancellationToken = default(CancellationToken)); 187internal abstract ImmutableArray<IPropertySymbol> GetIndexerGroupWorker(CSharpSyntaxNode node, SymbolInfoOptions options, CancellationToken cancellationToken = default(CancellationToken)); 279protected BoundExpression GetSpeculativelyBoundExpressionWithoutNullability(int position, ExpressionSyntax expression, SpeculativeBindingOption bindingOption, out Binder binder, out ImmutableArray<Symbol> crefSymbols) 286crefSymbols = default(ImmutableArray<Symbol>); 324internal static ImmutableArray<Symbol> BindCref(CrefSyntax crefSyntax, Binder binder) 327var symbols = binder.BindCref(crefSyntax, out unusedAmbiguityWinner, BindingDiagnosticBag.Discarded); 336ImmutableArray<Symbol> symbols = BindCref(crefSyntax, binder); 721ImmutableArray<Symbol> crefSymbols; 1051ImmutableArray<Symbol> crefSymbols; 1084public ImmutableArray<ISymbol> GetMemberGroup(ExpressionSyntax expression, CancellationToken cancellationToken = default(CancellationToken)) 1090: ImmutableArray<ISymbol>.Empty; 1098public ImmutableArray<ISymbol> GetMemberGroup(AttributeSyntax attribute, CancellationToken cancellationToken = default(CancellationToken)) 1104: ImmutableArray<ISymbol>.Empty; 1112public ImmutableArray<ISymbol> GetMemberGroup(ConstructorInitializerSyntax initializer, CancellationToken cancellationToken = default(CancellationToken)) 1118: ImmutableArray<ISymbol>.Empty; 1135public ImmutableArray<IPropertySymbol> GetIndexerGroup(ExpressionSyntax expression, CancellationToken cancellationToken = default(CancellationToken)) 1141: ImmutableArray<IPropertySymbol>.Empty; 1198ImmutableArray<Symbol> crefSymbols; 1413public ImmutableArray<ISymbol> LookupSymbols( 1458public new ImmutableArray<ISymbol> LookupBaseMembers( 1483public ImmutableArray<ISymbol> LookupStaticMembers( 1509public ImmutableArray<ISymbol> LookupNamespacesAndTypes( 1531public new ImmutableArray<ISymbol> LookupLabels( 1558private ImmutableArray<ISymbol> LookupSymbolsInternal( 1585return ImmutableArray<ISymbol>.Empty; 1597return ImmutableArray<ISymbol>.Empty; 1903boundExpr, boundNodeForSyntacticParent, binderOpt, options, out bool isDynamic, out LookupResultKind resultKind, out ImmutableArray<Symbol> unusedMemberGroup); 1909ImmutableArray<Symbol> unusedHighestMemberGroup; 1949return SymbolInfoFactory.Create(ImmutableArray<Symbol>.Empty, LookupResultKind.Empty, isDynamic); 2155conversion = Conversion.MakeConditionalExpression(ImmutableArray<Conversion>.Empty); 2272internal ImmutableArray<Symbol> GetMemberGroupForNode( 2281ImmutableArray<Symbol> memberGroup; 2288return ImmutableArray<Symbol>.Empty; 2295internal ImmutableArray<IPropertySymbol> GetIndexerGroupForNode( 2305return ImmutableArray<IPropertySymbol>.Empty; 3221internal abstract ImmutableArray<ISymbol> GetDeclaredSymbols(BaseFieldDeclarationSyntax declarationSyntax, CancellationToken cancellationToken = default(CancellationToken)); 3224ImmutableArray<ParameterSymbol> parameters, 3348out ImmutableArray<Symbol> memberGroup) 3350memberGroup = ImmutableArray<Symbol>.Empty; 3486ImmutableArray<PropertySymbol> originalIndexersOpt = indexerAccess.OriginalIndexersOpt; 3595var candidateSymbols = errorType.CandidateSymbols; 3939private static void GetSymbolsAndResultKind(BoundExpression node, Symbol symbolOpt, ImmutableArray<MethodSymbol> originalCandidates, out OneOrMany<Symbol> symbols, out LookupResultKind resultKind) 3967ref ImmutableArray<Symbol> memberGroup) 4020ref ImmutableArray<Symbol> memberGroup) 4033ImmutableArray<MethodSymbol> candidateConstructors; 4037var instanceConstructors = typeSymbolOpt.IsInterfaceType() && (object)typeSymbolOpt.ComImportCoClass != null ? 4054candidateConstructors = ImmutableArray<MethodSymbol>.Empty; 4081private ImmutableArray<IPropertySymbol> GetIndexerGroupSemanticSymbols(BoundExpression boundNode, Binder binderOpt) 4089return ImmutableArray<IPropertySymbol>.Empty; 4099return ImmutableArray<IPropertySymbol>.Empty; 4102var result = FilterOverriddenOrHiddenIndexers(symbols); 4108private static ImmutableArray<IPropertySymbol> FilterOverriddenOrHiddenIndexers(ArrayBuilder<ISymbol> symbols) 4195private static ImmutableArray<MethodSymbol> FilterOverriddenOrHiddenMethods(ImmutableArray<MethodSymbol> methods) 4238out ImmutableArray<Symbol> methodGroup) 4332ImmutableArray<Symbol> myMethodGroup = methodGroup; 4390out ImmutableArray<Symbol> propertyGroup) 4433ImmutableArray<Symbol> myPropertyGroup = propertyGroup; 4550private static ParameterSymbol FindNamedParameter(ImmutableArray<ParameterSymbol> parameters, string argumentName) 4561internal static ImmutableArray<MethodSymbol> GetReducedAndFilteredMethodGroupSymbols(Binder binder, BoundMethodGroup node) 4566var typeArguments = node.TypeArgumentsOpt; 4574ImmutableArray<MethodSymbol> nonHiddenMethods = FilterOverriddenOrHiddenMethods(node.Methods); 4666ImmutableArray<TypeWithAnnotations> typeArguments, 4705ImmutableArray<TypeWithAnnotations> typeArguments, 4749var methods = call.OriginalMethodsOpt; 4773AddReducedAndFilteredMethodGroupSymbol(methodBuilder, filteredMethodBuilder, method, default(ImmutableArray<TypeWithAnnotations>), extensionThisType, compilation); 4998private ImmutableArray<ISymbol> GetMemberGroupFromNode(SyntaxNode node, CancellationToken cancellationToken) 5012return ImmutableArray<ISymbol>.Empty; 5015protected sealed override ImmutableArray<ISymbol> GetMemberGroupCore(SyntaxNode node, CancellationToken cancellationToken) 5017var methodGroup = this.GetMemberGroupFromNode(node, cancellationToken); 5164protected sealed override ImmutableArray<ISymbol> GetDeclaredSymbolsCore(SyntaxNode declaration, CancellationToken cancellationToken = default(CancellationToken)) 5190: ImmutableArray<ISymbol>.Empty; 5226var checksum = text.GetContentHash(); 5279protected sealed override ImmutableArray<ISymbol> LookupSymbolsCore(int position, INamespaceOrTypeSymbol container, string name, bool includeReducedExtensionMethods) 5284protected sealed override ImmutableArray<ISymbol> LookupBaseMembersCore(int position, string name) 5289protected sealed override ImmutableArray<ISymbol> LookupStaticMembersCore(int position, INamespaceOrTypeSymbol container, string name) 5294protected sealed override ImmutableArray<ISymbol> LookupNamespacesAndTypesCore(int position, INamespaceOrTypeSymbol container, string name) 5299protected sealed override ImmutableArray<ISymbol> LookupLabelsCore(int position, string name) 5405private protected sealed override ImmutableArray<IImportScope> GetImportScopesCore(int position, CancellationToken cancellationToken) 5423xmlNamespaces: ImmutableArray<ImportedXmlNamespace>.Empty));
Compilation\DeconstructionInfo.cs (4)
60public ImmutableArray<DeconstructionInfo> Nested 66return ImmutableArray<DeconstructionInfo>.Empty; 69var deconstructConversionInfo = _conversion.DeconstructConversionInfo; 72? ImmutableArray<DeconstructionInfo>.Empty
Compilation\MemberSemanticModel.cs (10)
191internal override BoundExpression GetSpeculativelyBoundExpression(int position, ExpressionSyntax expression, SpeculativeBindingOption bindingOption, out Binder binder, out ImmutableArray<Symbol> crefSymbols) 571public sealed override ImmutableArray<Diagnostic> GetSyntaxDiagnostics(TextSpan? span = null, CancellationToken cancellationToken = default(CancellationToken)) 576public sealed override ImmutableArray<Diagnostic> GetDeclarationDiagnostics(TextSpan? span = null, CancellationToken cancellationToken = default(CancellationToken)) 581public sealed override ImmutableArray<Diagnostic> GetMethodBodyDiagnostics(TextSpan? span = null, CancellationToken cancellationToken = default(CancellationToken)) 586public sealed override ImmutableArray<Diagnostic> GetDiagnostics(TextSpan? span = null, CancellationToken cancellationToken = default(CancellationToken)) 822internal override ImmutableArray<ISymbol> GetDeclaredSymbols(BaseFieldDeclarationSyntax declarationSyntax, CancellationToken cancellationToken = default(CancellationToken)) 1128var elements = tupleLiteralType.TupleElements; 1232internal override ImmutableArray<Symbol> GetMemberGroupWorker(CSharpSyntaxNode node, SymbolInfoOptions options, CancellationToken cancellationToken = default(CancellationToken)) 1244internal override ImmutableArray<IPropertySymbol> GetIndexerGroupWorker(CSharpSyntaxNode node, SymbolInfoOptions options, CancellationToken cancellationToken = default(CancellationToken)) 1831private static BoundExpression GetContainingArgument(ImmutableArray<BoundExpression> arguments, int position)
Compilation\SpeculativeSemanticModelWithMemberModel.cs (8)
235public override ImmutableArray<Diagnostic> GetSyntaxDiagnostics(TextSpan? span = null, CancellationToken cancellationToken = default(CancellationToken)) 240public override ImmutableArray<Diagnostic> GetDeclarationDiagnostics(TextSpan? span = null, CancellationToken cancellationToken = default(CancellationToken)) 245public override ImmutableArray<Diagnostic> GetMethodBodyDiagnostics(TextSpan? span = null, CancellationToken cancellationToken = default(CancellationToken)) 250public override ImmutableArray<Diagnostic> GetDiagnostics(TextSpan? span = null, CancellationToken cancellationToken = default(CancellationToken)) 370internal override ImmutableArray<ISymbol> GetDeclaredSymbols(BaseFieldDeclarationSyntax declarationSyntax, CancellationToken cancellationToken = default(CancellationToken)) 460internal override ImmutableArray<Symbol> GetMemberGroupWorker(CSharpSyntaxNode node, SymbolInfoOptions options, CancellationToken cancellationToken = default(CancellationToken)) 465internal override ImmutableArray<IPropertySymbol> GetIndexerGroupWorker(CSharpSyntaxNode node, SymbolInfoOptions options, CancellationToken cancellationToken = default(CancellationToken)) 565internal override BoundExpression GetSpeculativelyBoundExpression(int position, ExpressionSyntax expression, SpeculativeBindingOption bindingOption, out Binder binder, out ImmutableArray<Symbol> crefSymbols)
Compilation\SymbolInfoFactory.cs (2)
19internal static SymbolInfo Create(ImmutableArray<Symbol> symbols, LookupResultKind resultKind, bool isDynamic) 52static ImmutableArray<ISymbol> getPublicSymbols(OneOrMany<Symbol> symbols)
Compilation\SyntaxAndDeclarationManager.cs (21)
28ImmutableArray<SyntaxTree> externalSyntaxTrees, 50ImmutableArray<SyntaxTree> externalSyntaxTrees, 58var loadDirectiveMapBuilder = PooledDictionary<SyntaxTree, ImmutableArray<LoadDirective>>.GetInstance(); 161IDictionary<SyntaxTree, ImmutableArray<LoadDirective>> loadDirectiveMapBuilder, 196IDictionary<SyntaxTree, ImmutableArray<LoadDirective>> loadDirectiveMapBuilder, 313var syntaxTrees = state.SyntaxTrees; 320ImmutableArray<LoadDirective> unused2; 385ImmutableArray<SyntaxTree> syntaxTrees, 387ImmutableDictionary<SyntaxTree, ImmutableArray<LoadDirective>> loadDirectiveMap, 391out ImmutableArray<LoadDirective> oldLoadDirectives) 400oldLoadDirectives = ImmutableArray<LoadDirective>.Empty; 415ImmutableArray<LoadDirective> loadDirectives; 433ImmutableArray<LoadDirective> loadDirectives, 434ImmutableDictionary<SyntaxTree, ImmutableArray<LoadDirective>> loadDirectiveMap, 445ImmutableArray<LoadDirective> nestedLoadDirectives; 477var syntaxTrees = state.SyntaxTrees; 483ImmutableArray<LoadDirective> oldLoadDirectives; 514ImmutableArray<SyntaxTree> newTrees; 663internal SyntaxAndDeclarationManager WithExternalSyntaxTrees(ImmutableArray<SyntaxTree> trees) 678ImmutableDictionary<SyntaxTree, ImmutableArray<LoadDirective>> loadDirectiveMap, 684ImmutableArray<LoadDirective> loadDirectives;
Compilation\SyntaxAndDeclarationManager.LazyState.cs (4)
20internal readonly ImmutableArray<SyntaxTree> SyntaxTrees; // In ordinal order. 22internal readonly ImmutableDictionary<SyntaxTree, ImmutableArray<LoadDirective>> LoadDirectiveMap; 47ImmutableArray<SyntaxTree> syntaxTrees, 49ImmutableDictionary<SyntaxTree, ImmutableArray<LoadDirective>> loadDirectiveMap,
Compilation\SyntaxTreeSemanticModel.cs (15)
114public override ImmutableArray<Diagnostic> GetSyntaxDiagnostics(TextSpan? span = null, CancellationToken cancellationToken = default(CancellationToken)) 121public override ImmutableArray<Diagnostic> GetDeclarationDiagnostics(TextSpan? span = null, CancellationToken cancellationToken = default(CancellationToken)) 128public override ImmutableArray<Diagnostic> GetMethodBodyDiagnostics(TextSpan? span = null, CancellationToken cancellationToken = default(CancellationToken)) 135public override ImmutableArray<Diagnostic> GetDiagnostics(TextSpan? span = null, CancellationToken cancellationToken = default(CancellationToken)) 255var symbols = binder.BindXmlNameAttribute(attrSyntax, ref discardedUseSiteInfo); 397internal override ImmutableArray<Symbol> GetMemberGroupWorker(CSharpSyntaxNode node, SymbolInfoOptions options, CancellationToken cancellationToken = default(CancellationToken)) 403return model == null ? ImmutableArray<Symbol>.Empty : model.GetMemberGroupWorker(node, options, cancellationToken); 406internal override ImmutableArray<IPropertySymbol> GetIndexerGroupWorker(CSharpSyntaxNode node, SymbolInfoOptions options, CancellationToken cancellationToken = default(CancellationToken)) 412return model == null ? ImmutableArray<IPropertySymbol>.Empty : model.GetIndexerGroupWorker(node, options, cancellationToken); 738internal override BoundExpression GetSpeculativelyBoundExpression(int position, ExpressionSyntax expression, SpeculativeBindingOption bindingOption, out Binder binder, out ImmutableArray<Symbol> crefSymbols) 1759var collection = name != null ? container.GetMembers(name) : container.GetMembersUnordered(); 1930var usingAliases = binder.UsingAliases; 1963var externAliases = binder.ExternAliases; 1988internal override ImmutableArray<ISymbol> GetDeclaredSymbols(BaseFieldDeclarationSyntax declarationSyntax, CancellationToken cancellationToken = default(CancellationToken)) 2174private TypeParameterSymbol GetTypeParameterSymbol(ImmutableArray<TypeParameterSymbol> parameters, TypeParameterSyntax parameter)
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\ClsComplianceChecker.cs (10)
553private void CheckTypeParameterCompliance(ImmutableArray<TypeParameterSymbol> typeParameters, NamedTypeSymbol context) 572private void CheckParameterCompliance(ImmutableArray<ParameterSymbol> parameters, NamedTypeSymbol context) 599private void CheckForAttributeWithArrayArgumentInternal(ImmutableArray<CSharpAttributeData> attributes) 674private void CheckForMeaninglessOnParameter(ImmutableArray<ParameterSymbol> parameters) 766private bool TryGetClsComplianceAttributeLocation(ImmutableArray<CSharpAttributeData> attributes, out Location attributeLocation) 1208ImmutableArray<TypedConstant> args = data.CommonConstructorArguments; 1325ImmutableArray<TypeWithAnnotations> xParameterTypes; 1326ImmutableArray<TypeWithAnnotations> yParameterTypes; 1327ImmutableArray<RefKind> xRefKinds; 1328ImmutableArray<RefKind> yRefKinds;
Compiler\DocumentationCommentCompiler.cs (19)
294if (!TryGetDocumentationCommentNodes(symbolForDocComments, out var maxDocumentationMode, out var docCommentNodes)) 330ImmutableArray<CSharpSyntaxNode> includeElementNodes; 419ImmutableArray<DocumentationCommentTriviaSyntax> docCommentNodes, 421out ImmutableArray<CSharpSyntaxNode> includeElementNodes) 452static ArrayBuilder<XmlElementSyntax>? getMatchingParamTags(string propertyName, ImmutableArray<DocumentationCommentTriviaSyntax> docCommentNodes) 494ImmutableArray<DocumentationCommentTriviaSyntax> docCommentNodes, 499out ImmutableArray<CSharpSyntaxNode> includeElementNodes) 579includeElementNodes = default(ImmutableArray<CSharpSyntaxNode>); 594includeElementNodes = _processIncludes ? includeElementNodesBuilder.ToImmutableAndFree() : default(ImmutableArray<CSharpSyntaxNode>); 615private static ImmutableArray<ParameterSymbol> GetParameters(Symbol symbol) 632return ImmutableArray<ParameterSymbol>.Empty; 638private static ImmutableArray<TypeParameterSymbol> GetTypeParameters(Symbol symbol) 648return ImmutableArray<TypeParameterSymbol>.Empty; 687private bool TryGetDocumentationCommentNodes(Symbol symbol, out DocumentationMode maxDocumentationMode, out ImmutableArray<DocumentationCommentTriviaSyntax> nodes) 690nodes = default(ImmutableArray<DocumentationCommentTriviaSyntax>); 700ImmutableArray<DocumentationCommentTriviaSyntax> triviaList = SourceDocumentationCommentUtils.GetDocumentationCommentTriviaFromSyntaxNode((CSharpSyntaxNode)reference.GetSyntax(), diagnosticBag); 727nodes = ImmutableArray<DocumentationCommentTriviaSyntax>.Empty; 1072ImmutableArray<Symbol> symbols = binder.BindCref(crefSyntax, out ambiguityWinner, diagnostics); 1161ImmutableArray<Symbol> referencedSymbols = binder.BindXmlNameAttribute(syntax, ref useSiteInfo);
Compiler\DocumentationCommentCompiler.IncludeElementExpander.cs (5)
31private readonly ImmutableArray<CSharpSyntaxNode> _sourceIncludeElementNodes; 44ImmutableArray<CSharpSyntaxNode> sourceIncludeElementNodes, 68ImmutableArray<CSharpSyntaxNode> sourceIncludeElementNodes, 558ImmutableArray<ParameterSymbol> parameters = ImmutableArray<ParameterSymbol>.Empty;
Compiler\MethodBodySynthesizer.cs (8)
22internal static ImmutableArray<BoundStatement> ConstructScriptConstructorBody( 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 (44)
168var embeddedTypes = moduleBeingBuiltOpt.GetEmbeddedTypes(diagnostics); 279out ImmutableArray<SourceSpan> codeCoverageSpans, 308ImmutableArray<EncLambdaInfo>.Empty, 309ImmutableArray<LambdaRuntimeRudeEditInfo>.Empty, 310ImmutableArray<EncClosureInfo>.Empty, 311ImmutableArray<StateMachineStateDebugInfo>.Empty, 318codeCoverageSpans: ImmutableArray<SourceSpan>.Empty, 493var members = containingType.GetMembers(); 638var processedInitializers = new Binder.ProcessedFieldInitializers() { BoundInitializers = ImmutableArray<BoundInitializer>.Empty }; 682private void CompileSynthesizedMethods(ImmutableArray<NamedTypeSymbol> additionalTypes, BindingDiagnosticBag diagnostics) 765ImmutableArray<EncLambdaInfo>.Empty, 766ImmutableArray<LambdaRuntimeRudeEditInfo>.Empty, 767ImmutableArray<EncClosureInfo>.Empty, 775codeCoverageSpans: ImmutableArray<SourceSpan>.Empty, 823var interfaces = sourceTypeSymbol.GetInterfacesToEmit(); 900sourceMethod.SetDiagnostics(ImmutableArray<Diagnostic>.Empty, out diagsWritten); 913var cachedDiagnostics = sourceMethod.Diagnostics; 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 1162ImmutableArray<SourceSpan> codeCoverageSpans; 1198codeCoverageSpans = ImmutableArray<SourceSpan>.Empty; 1214ImmutableArray<BoundStatement> boundStatements; 1222boundStatements = ImmutableArray<BoundStatement>.Empty; 1260out ImmutableArray<SourceSpan> initializerCodeCoverageSpans, 1370out ImmutableArray<SourceSpan> codeCoverageSpans, 1384codeCoverageSpans = ImmutableArray<SourceSpan>.Empty; 1476codeCoverageSpans = ImmutableArray<SourceSpan>.Empty; 1490ImmutableArray<EncLambdaInfo> lambdaDebugInfo, 1491ImmutableArray<LambdaRuntimeRudeEditInfo> orderedLambdaRuntimeRudeEdits, 1492ImmutableArray<EncClosureInfo> closureDebugInfo, 1493ImmutableArray<StateMachineStateDebugInfo> stateMachineStateDebugInfos, 1500ImmutableArray<SourceSpan> codeCoverageSpans, 1548codeGen.Generate(out int asyncCatchHandlerOffset, out var asyncYieldPoints, out var asyncResumePoints, out hasStackalloc); 1580builder.GetHoistedLocalScopes() : default(ImmutableArray<StateMachineHoistedLocalScope>); 1603var stateMachineHoistedLocalSlots = default(ImmutableArray<EncHoistedLocalInfo>); 1604var stateMachineAwaiterSlots = default(ImmutableArray<Cci.ITypeReference>); 1655out ImmutableArray<EncHoistedLocalInfo> hoistedVariableSlots, 1656out ImmutableArray<Cci.ITypeReference> awaiterSlots) 1942ImmutableArray<BoundStatement> statements; 1951statements = ImmutableArray<BoundStatement>.Empty;
Compiler\SynthesizedMetadataCompiler.cs (1)
71var interfaces = sourceTypeSymbol.GetInterfacesToEmit();
CSharpCompilationOptions.cs (14)
33public ImmutableArray<string> Usings { get; private set; } 60ImmutableArray<byte> cryptoPublicKey = default, 110ImmutableArray<byte> cryptoPublicKey, 155ImmutableArray<byte> cryptoPublicKey, 197ImmutableArray<byte> cryptoPublicKey, 274internal override ImmutableArray<string> GetImports() => Usings; 343public new CSharpCompilationOptions WithCryptoPublicKey(ImmutableArray<byte> value) 347value = ImmutableArray<byte>.Empty; 368public CSharpCompilationOptions WithUsings(ImmutableArray<string> usings) 657protected override CompilationOptions CommonWithFeatures(ImmutableArray<string> features) 798protected override CompilationOptions CommonWithCryptoPublicKey(ImmutableArray<byte> cryptoPublicKey) 826ImmutableArray<byte> cryptoPublicKey, 865ImmutableArray<byte> cryptoPublicKey, 909ImmutableArray<byte> cryptoPublicKey,
CSharpExtensions.cs (5)
412internal static bool IsAnyPreprocessorSymbolDefined([NotNullWhen(true)] this SyntaxTree? tree, ImmutableArray<string> conditionalSymbols) 940public static ImmutableArray<ISymbol> GetMemberGroup(this SemanticModel? semanticModel, ExpressionSyntax expression, CancellationToken cancellationToken = default(CancellationToken)) 953public static ImmutableArray<ISymbol> GetMemberGroup(this SemanticModel? semanticModel, AttributeSyntax attribute, CancellationToken cancellationToken = default(CancellationToken)) 966public static ImmutableArray<ISymbol> GetMemberGroup(this SemanticModel? semanticModel, ConstructorInitializerSyntax initializer, CancellationToken cancellationToken = default(CancellationToken)) 982public static ImmutableArray<IPropertySymbol> GetIndexerGroup(this SemanticModel? semanticModel, ExpressionSyntax expression, CancellationToken cancellationToken = default(CancellationToken))
CSharpParseOptions.cs (16)
25private ImmutableArray<ImmutableArray<string>> _interceptorsNamespaces; 40internal ImmutableArray<string> PreprocessorSymbols { get; private set; } 67ImmutableArray<string> preprocessorSymbols, 120public CSharpParseOptions WithPreprocessorSymbols(ImmutableArray<string> symbols) 124symbols = ImmutableArray<string>.Empty; 180internal ImmutableArray<ImmutableArray<string>> InterceptorsNamespaces 190ImmutableArray<ImmutableArray<string>> previewNamespaces = Features.TryGetValue("InterceptorsNamespaces", out var namespaces) && namespaces.Length > 0 192: ImmutableArray<ImmutableArray<string>>.Empty; 197static ImmutableArray<ImmutableArray<string>> makeNamespaces(string namespaces) 199var builder = ArrayBuilder<ImmutableArray<string>>.GetInstance(); 213static void addSingleNamespaceParts(ArrayBuilder<ImmutableArray<string>> namespacesBuilder, ArrayBuilder<string> singleNamespaceBuilder, ReadOnlySpan<char> @namespace)
Declarations\Declaration.cs (2)
59public ImmutableArray<Declaration> Children 68protected abstract ImmutableArray<Declaration> GetDeclarationChildren();
Declarations\DeclarationTable.Cache.cs (2)
32private ImmutableArray<ReferenceDirective> _referenceDirectives; 77public ImmutableArray<ReferenceDirective> ReferenceDirectives
Declarations\DeclarationTable.cs (2)
127var oldRootDeclarations = oldRoot.Declarations; 188var cachedReferenceDirectives = _cache.ReferenceDirectives;
Declarations\DeclarationTreeBuilder.cs (22)
123private ImmutableArray<SingleNamespaceOrTypeDeclaration> VisitNamespaceChildren( 134return ImmutableArray<SingleNamespaceOrTypeDeclaration>.Empty; 190var diagnostics = ImmutableArray<Diagnostic>.Empty; 227children: ImmutableArray<SingleTypeDeclaration>.Empty, 228diagnostics: ImmutableArray<Diagnostic>.Empty, 232private static SingleNamespaceOrTypeDeclaration CreateSimpleProgram(GlobalStatementSyntax firstGlobalStatement, bool hasAwaitExpressions, bool isIterator, bool hasReturnWithExpression, ImmutableArray<Diagnostic> diagnostics) 255children: ImmutableArray<SingleTypeDeclaration>.Empty, 303private static ImmutableArray<ReferenceDirective> GetReferenceDirectives(CompilationUnitSyntax compilationUnit) 309return ImmutableArray<ReferenceDirective>.Empty; 322ImmutableArray<SingleTypeDeclaration> children, 343diagnostics: ImmutableArray<Diagnostic>.Empty, 355diagnostics: ImmutableArray<Diagnostic>.Empty); 399var children = VisitNamespaceChildren(compilationUnit, compilationUnit.Members, ((Syntax.InternalSyntax.CompilationUnitSyntax)(compilationUnit.Green)).Members); 432private RootSingleNamespaceDeclaration CreateRootSingleNamespaceDeclaration(CompilationUnitSyntax compilationUnit, ImmutableArray<SingleNamespaceOrTypeDeclaration> children, bool isForScript) 469referenceDirectives: isForScript ? GetReferenceDirectives(compilationUnit) : ImmutableArray<ReferenceDirective>.Empty, 501var children = VisitNamespaceChildren(node, node.Members, ((Syntax.InternalSyntax.BaseNamespaceDeclarationSyntax)node.Green).Members); 516diagnostics: ImmutableArray<Diagnostic>.Empty); 783private ImmutableArray<SingleTypeDeclaration> VisitTypeChildren(TypeDeclarationSyntax node) 787return ImmutableArray<SingleTypeDeclaration>.Empty; 826children: ImmutableArray<SingleTypeDeclaration>.Empty, 864children: ImmutableArray<SingleTypeDeclaration>.Empty,
Declarations\MergedNamespaceDeclaration.cs (9)
19private readonly ImmutableArray<SingleNamespaceDeclaration> _declarations; 20private ImmutableArray<MergedNamespaceOrTypeDeclaration> _lazyChildren; 22private MergedNamespaceDeclaration(ImmutableArray<SingleNamespaceDeclaration> declarations) 28public static MergedNamespaceDeclaration Create(ImmutableArray<SingleNamespaceDeclaration> declarations) 57public ImmutableArray<Location> NameLocations 79public ImmutableArray<SingleNamespaceDeclaration> Declarations 84protected override ImmutableArray<Declaration> GetDeclarationChildren() 89private ImmutableArray<MergedNamespaceOrTypeDeclaration> MakeChildren() 241public new ImmutableArray<MergedNamespaceOrTypeDeclaration> Children
Declarations\MergedTypeDeclaration.cs (10)
23private readonly ImmutableArray<SingleTypeDeclaration> _declarations; 24private ImmutableArray<MergedTypeDeclaration> _lazyChildren; 27internal MergedTypeDeclaration(ImmutableArray<SingleTypeDeclaration> declarations) 33public ImmutableArray<SingleTypeDeclaration> Declarations 41public ImmutableArray<SyntaxReference> SyntaxReferences 55public ImmutableArray<SyntaxList<AttributeListSyntax>> GetAttributeDeclarations(QuickAttributes? quickAttributes) 186private ImmutableArray<MergedTypeDeclaration> MakeChildren() 213foreach (var typeGroup in typesGrouped.Values) 222public new ImmutableArray<MergedTypeDeclaration> Children 235protected override ImmutableArray<Declaration> GetDeclarationChildren()
Declarations\RootSingleNamespaceDeclaration.cs (5)
15private readonly ImmutableArray<ReferenceDirective> _referenceDirectives; 32ImmutableArray<SingleNamespaceOrTypeDeclaration> children, 33ImmutableArray<ReferenceDirective> referenceDirectives, 35ImmutableArray<Diagnostic> diagnostics, 53public ImmutableArray<ReferenceDirective> ReferenceDirectives
Declarations\SingleNamespaceDeclaration.cs (6)
13private readonly ImmutableArray<SingleNamespaceOrTypeDeclaration> _children; 19ImmutableArray<SingleNamespaceOrTypeDeclaration> children, 20ImmutableArray<Diagnostic> diagnostics) 34protected override ImmutableArray<SingleNamespaceOrTypeDeclaration> GetNamespaceOrTypeDeclarationChildren() 69ImmutableArray<SingleNamespaceOrTypeDeclaration> children, 70ImmutableArray<Diagnostic> diagnostics)
Declarations\SingleNamespaceDeclarationEx.cs (2)
19ImmutableArray<SingleNamespaceOrTypeDeclaration> children, 20ImmutableArray<Diagnostic> diagnostics)
Declarations\SingleNamespaceOrTypeDeclaration.cs (5)
21public readonly ImmutableArray<Diagnostic> Diagnostics; 27ImmutableArray<Diagnostic> diagnostics) 59protected override ImmutableArray<Declaration> GetDeclarationChildren() 64public new ImmutableArray<SingleNamespaceOrTypeDeclaration> Children 72protected abstract ImmutableArray<SingleNamespaceOrTypeDeclaration> GetNamespaceOrTypeDeclarationChildren();
Declarations\SingleTypeDeclaration.cs (5)
23private readonly ImmutableArray<SingleTypeDeclaration> _children; 81ImmutableArray<SingleTypeDeclaration> children, 82ImmutableArray<Diagnostic> diagnostics, 105public new ImmutableArray<SingleTypeDeclaration> Children 207protected override ImmutableArray<SingleNamespaceOrTypeDeclaration> GetNamespaceOrTypeDeclarationChildren()
DocumentationComments\DocumentationCommentIDVisitor.PartVisitor.cs (1)
75private void VisitParameters(ImmutableArray<ParameterSymbol> parameters, bool isVararg, StringBuilder builder)
DocumentationComments\SourceDocumentationCommentUtils.cs (3)
33internal static ImmutableArray<DocumentationCommentTriviaSyntax> GetDocumentationCommentTriviaFromSyntaxNode(CSharpSyntaxNode syntaxNode, DiagnosticBag diagnostics) 37return ImmutableArray<DocumentationCommentTriviaSyntax>.Empty; 112return ImmutableArray<DocumentationCommentTriviaSyntax>.Empty;
Emitter\EditAndContinue\CSharpDefinitionMap.cs (5)
56ImmutableArray<LocalSlotDebugInfo> localSlotDebugInfo, 121protected override ImmutableArray<EncLocalInfo> GetLocalSlotMapFromMetadata(StandaloneSignatureHandle handle, EditAndContinueMethodDebugInformation debugInfo) 142private static ImmutableArray<EncLocalInfo> CreateLocalSlotMap( 144ImmutableArray<LocalInfo<TypeSymbol>> slotMetadata) 148var localSlots = methodEncInfo.LocalSlots;
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (36)
32IReadOnlyDictionary<ISymbolInternal, ImmutableArray<ISymbolInternal>>? otherSynthesizedMembers, 33IReadOnlyDictionary<ISymbolInternal, ImmutableArray<ISymbolInternal>>? otherDeletedMembers) 101private readonly IReadOnlyDictionary<ISymbolInternal, ImmutableArray<ISymbolInternal>>? _otherSynthesizedMembers; 103private readonly IReadOnlyDictionary<ISymbolInternal, ImmutableArray<ISymbolInternal>>? _otherDeletedMembers; 114private readonly ConcurrentDictionary<ISymbolInternal, IReadOnlyDictionary<string, ImmutableArray<ISymbolInternal>>> _otherMembers = new(ReferenceEqualityComparer.Instance); 120IReadOnlyDictionary<ISymbolInternal, ImmutableArray<ISymbolInternal>>? otherSynthesizedMembers, 121IReadOnlyDictionary<ISymbolInternal, ImmutableArray<ISymbolInternal>>? otherDeletedMembers, 156var otherModifiers = VisitCustomModifiers(symbol.ElementTypeWithAnnotations.CustomModifiers); 290var otherTypeParameters = otherDef.GetAllTypeParameters(); 382var otherModifiers = VisitCustomModifiers(symbol.PointedAtTypeWithAnnotations.CustomModifiers); 396var otherRefCustomModifiers = VisitCustomModifiers(sig.RefCustomModifiers); 399var otherParameterTypes = ImmutableArray<TypeWithAnnotations>.Empty; 400ImmutableArray<ImmutableArray<CustomModifier>> otherParamRefCustomModifiers = default; 405var otherParamRefCustomModifiersBuilder = ArrayBuilder<ImmutableArray<CustomModifier>>.GetInstance(sig.ParameterCount); 451private ImmutableArray<CustomModifier> VisitCustomModifiers(ImmutableArray<CustomModifier> modifiers) 552if (otherMembersByName.TryGetValue(sourceMember.MetadataName, out var otherMembers)) 611var typeParameters = method.TypeParameters; 636var typeParameters = type.TypeParameters; 694private static void ValidateFunctionPointerParamOrReturn(TypeWithAnnotations type, RefKind refKind, ImmutableArray<CustomModifier> refCustomModifiers, bool allowOut) 699static bool verifyRefModifiers(ImmutableArray<CustomModifier> modifiers, RefKind refKind, bool allowOut) 777private IReadOnlyDictionary<string, ImmutableArray<ISymbolInternal>> GetAllEmittedMembers(ISymbolInternal symbol) 795if (_otherSynthesizedMembers != null && _otherSynthesizedMembers.TryGetValue(symbol, out var synthesizedMembers)) 800if (_otherDeletedMembers?.TryGetValue(symbol, out var deletedMembers) == true) 862var translatedModifiers = VisitCustomModifiers(symbol.ElementTypeWithAnnotations.CustomModifiers); 905var translatedModifiers = VisitCustomModifiers(symbol.PointedAtTypeWithAnnotations.CustomModifiers); 914var translatedRefCustomModifiers = VisitCustomModifiers(sig.RefCustomModifiers); 916var translatedParameterTypes = ImmutableArray<TypeWithAnnotations>.Empty; 917ImmutableArray<ImmutableArray<CustomModifier>> translatedParamRefCustomModifiers = default; 922var translatedParamRefCustomModifiersBuilder = ArrayBuilder<ImmutableArray<CustomModifier>>.GetInstance(sig.ParameterCount); 943private ImmutableArray<CustomModifier> VisitCustomModifiers(ImmutableArray<CustomModifier> modifiers)
Emitter\EditAndContinue\PEDeltaAssemblyBuilder.cs (2)
257internal override ImmutableArray<AnonymousTypeKey> GetPreviousAnonymousTypes() 262internal override ImmutableArray<SynthesizedDelegateKey> GetPreviousAnonymousDelegates()
Emitter\Model\ArrayTypeSymbolAdapter.cs (3)
35return new Cci.ModifiedTypeReference(type, ImmutableArray<Cci.ICustomModifier>.CastUp(elementType.CustomModifiers)); 47ImmutableArray<int> Cci.IArrayTypeReference.LowerBounds => AdaptedArrayTypeSymbol.LowerBounds; 49ImmutableArray<int> Cci.IArrayTypeReference.Sizes => AdaptedArrayTypeSymbol.Sizes;
Emitter\Model\AttributeDataAdapter.cs (8)
19ImmutableArray<Cci.IMetadataExpression> Cci.ICustomAttribute.GetArguments(EmitContext context) 21var commonArgs = this.CommonConstructorArguments; 24return ImmutableArray<Cci.IMetadataExpression>.Empty; 56ImmutableArray<Cci.IMetadataNamedArgument> Cci.ICustomAttribute.GetNamedArguments(EmitContext context) 58var commonArgs = this.CommonNamedArguments; 61return ImmutableArray<Cci.IMetadataNamedArgument>.Empty; 122var values = argument.Values; 129ImmutableArray<Cci.IMetadataExpression>.Empty);
Emitter\Model\ExpandedVarargsMethodReference.cs (6)
23private readonly ImmutableArray<Cci.IParameterTypeInformation> _argListParams; 25public ExpandedVarargsMethodReference(Cci.IMethodReference underlyingMethod, ImmutableArray<Cci.IParameterTypeInformation> argListParams) 49ImmutableArray<Cci.IParameterTypeInformation> Cci.IMethodReference.ExtraParameters 95ImmutableArray<Cci.IParameterTypeInformation> Cci.ISignature.GetParameters(EmitContext context) 100ImmutableArray<Cci.ICustomModifier> Cci.ISignature.ReturnValueCustomModifiers 105ImmutableArray<Cci.ICustomModifier> Cci.ISignature.RefCustomModifiers
Emitter\Model\FieldSymbolAdapter.cs (9)
36var customModifiers = fieldTypeWithAnnotations.CustomModifiers; 49return new Cci.ModifiedTypeReference(type, ImmutableArray<Cci.ICustomModifier>.CastUp(customModifiers)); 53ImmutableArray<Cci.ICustomModifier> Cci.IFieldReference.RefCustomModifiers => 54ImmutableArray<Cci.ICustomModifier>.CastUp(AdaptedFieldSymbol.RefCustomModifiers); 170ImmutableArray<byte> Cci.IFieldDefinition.MappedData 175return default(ImmutableArray<byte>); 253ImmutableArray<byte> Cci.IFieldDefinition.MarshallingDescriptor 333internal virtual ImmutableArray<byte> MarshallingDescriptor 338return default(ImmutableArray<byte>);
Emitter\Model\FunctionPointerTypeSymbolAdapter.cs (3)
74public ImmutableArray<ICustomModifier> ReturnValueCustomModifiers => Underlying.ReturnValueCustomModifiers; 75public ImmutableArray<ICustomModifier> RefCustomModifiers => Underlying.RefCustomModifiers; 78public ImmutableArray<IParameterTypeInformation> GetParameters(EmitContext context)
Emitter\Model\GenericTypeInstanceReference.cs (1)
38ImmutableArray<Cci.ITypeReference> Cci.IGenericTypeInstanceReference.GetGenericArguments(EmitContext context)
Emitter\Model\MethodReference.cs (7)
63ImmutableArray<Cci.IParameterTypeInformation> Cci.IMethodReference.ExtraParameters 67return ImmutableArray<Cci.IParameterTypeInformation>.Empty; 79ImmutableArray<Cci.IParameterTypeInformation> Cci.ISignature.GetParameters(EmitContext context) 85ImmutableArray<Cci.ICustomModifier> Cci.ISignature.ReturnValueCustomModifiers 89return ImmutableArray<Cci.ICustomModifier>.CastUp(UnderlyingMethod.ReturnTypeWithAnnotations.CustomModifiers); 93ImmutableArray<Cci.ICustomModifier> Cci.ISignature.RefCustomModifiers 97return ImmutableArray<Cci.ICustomModifier>.CastUp(UnderlyingMethod.RefCustomModifiers);
Emitter\Model\MethodSymbolAdapter.cs (13)
174ImmutableArray<Cci.IParameterTypeInformation> Cci.IMethodReference.ExtraParameters 178return ImmutableArray<Cci.IParameterTypeInformation>.Empty; 190ImmutableArray<Cci.IParameterTypeInformation> Cci.ISignature.GetParameters(EmitContext context) 205private ImmutableArray<Cci.IParameterDefinition> EnumerateDefinitionParameters() 216ImmutableArray<Cci.ICustomModifier> Cci.ISignature.ReturnValueCustomModifiers 220return ImmutableArray<Cci.ICustomModifier>.CastUp(AdaptedMethodSymbol.ReturnTypeWithAnnotations.CustomModifiers); 224ImmutableArray<Cci.ICustomModifier> Cci.ISignature.RefCustomModifiers 228return ImmutableArray<Cci.ICustomModifier>.CastUp(AdaptedMethodSymbol.RefCustomModifiers); 489ImmutableArray<Cci.IParameterDefinition> Cci.IMethodDefinition.Parameters 512ImmutableArray<CSharpAttributeData> userDefined = AdaptedMethodSymbol.GetReturnTypeAttributes(); 539ImmutableArray<byte> Cci.IMethodDefinition.ReturnValueMarshallingDescriptor 689internal virtual ImmutableArray<byte> ReturnValueMarshallingDescriptor 694return default(ImmutableArray<byte>);
Emitter\Model\ModuleReference.cs (1)
60ImmutableArray<byte> Cci.IFileReference.GetHashValue(AssemblyHashAlgorithm algorithmId)
Emitter\Model\NamedTypeSymbolAdapter.cs (8)
330var explicitImplementations = method.ExplicitInterfaceImplementations; 385var interfaces = container.GetInterfacesToEmit(); 865ImmutableArray<Cci.ITypeReference> Cci.IGenericTypeInstanceReference.GetGenericArguments(EmitContext context) 871var arguments = AdaptedNamedTypeSymbol.TypeArgumentsWithAnnotationsNoUseSiteDiagnostics; 876var modifiers = arguments[i].CustomModifiers; 879arg = new Cci.ModifiedTypeReference(arg, ImmutableArray<Cci.ICustomModifier>.CastUp(modifiers)); 956internal abstract ImmutableArray<NamedTypeSymbol> GetInterfacesToEmit(); 958protected ImmutableArray<NamedTypeSymbol> CalculateInterfacesToEmit()
Emitter\Model\ParameterSymbolAdapter.cs (7)
29ImmutableArray<Cci.ICustomModifier> Cci.IParameterTypeInformation.CustomModifiers 33return ImmutableArray<Cci.ICustomModifier>.CastUp(AdaptedParameterSymbol.TypeWithAnnotations.CustomModifiers); 45ImmutableArray<Cci.ICustomModifier> Cci.IParameterTypeInformation.RefCustomModifiers 49return ImmutableArray<Cci.ICustomModifier>.CastUp(AdaptedParameterSymbol.RefCustomModifiers); 157ImmutableArray<byte> Cci.IParameterDefinition.MarshallingDescriptor 258internal virtual ImmutableArray<byte> MarshallingDescriptor 263return default(ImmutableArray<byte>);
Emitter\Model\ParameterTypeInformation.cs (8)
27ImmutableArray<Cci.ICustomModifier> Cci.IParameterTypeInformation.CustomModifiers 31return ImmutableArray<Cci.ICustomModifier>.CastUp(_underlyingParameter.TypeWithAnnotations.CustomModifiers); 43ImmutableArray<Cci.ICustomModifier> Cci.IParameterTypeInformation.RefCustomModifiers 47return ImmutableArray<Cci.ICustomModifier>.CastUp(_underlyingParameter.RefCustomModifiers); 95ImmutableArray<Cci.ICustomModifier> Cci.IParameterTypeInformation.CustomModifiers 97get { return ImmutableArray<Cci.ICustomModifier>.Empty; } 105ImmutableArray<Cci.ICustomModifier> Cci.IParameterTypeInformation.RefCustomModifiers 107get { return ImmutableArray<Cci.ICustomModifier>.Empty; }
Emitter\Model\PEAssemblyBuilder.cs (34)
28private readonly ImmutableArray<NamedTypeSymbol> _additionalTypes; 30private ImmutableArray<Cci.IFileReference> _lazyFiles; 33private ImmutableArray<Cci.IFileReference> _lazyFilesWithoutManifestResources; 73ImmutableArray<NamedTypeSymbol> additionalTypes) 88public sealed override ImmutableArray<NamedTypeSymbol> GetAdditionalTopLevelTypes() 91internal sealed override ImmutableArray<NamedTypeSymbol> GetEmbeddedTypes(BindingDiagnosticBag diagnostics) 121ImmutableArray<Cci.IFileReference> getFiles(ref ImmutableArray<Cci.IFileReference> lazyFiles) 128var modules = _sourceAssembly.Modules; 167var modules = _sourceAssembly.Modules; 203ImmutableArray<TypedConstant>.Empty, 204ImmutableArray<KeyValuePair<string, TypedConstant>>.Empty); 207internal override SynthesizedAttributeData SynthesizeNullableAttribute(WellKnownMember member, ImmutableArray<TypedConstant> arguments) 216ImmutableArray<KeyValuePair<string, TypedConstant>>.Empty); 222internal override SynthesizedAttributeData SynthesizeNullableContextAttribute(ImmutableArray<TypedConstant> arguments) 230ImmutableArray<KeyValuePair<string, TypedConstant>>.Empty); 236internal override SynthesizedAttributeData SynthesizeNullablePublicOnlyAttribute(ImmutableArray<TypedConstant> arguments) 244ImmutableArray<KeyValuePair<string, TypedConstant>>.Empty); 250internal override SynthesizedAttributeData SynthesizeNativeIntegerAttribute(WellKnownMember member, ImmutableArray<TypedConstant> arguments) 259ImmutableArray<KeyValuePair<string, TypedConstant>>.Empty); 272ImmutableArray<TypedConstant>.Empty, 273ImmutableArray<KeyValuePair<string, TypedConstant>>.Empty); 279internal override SynthesizedAttributeData SynthesizeRefSafetyRulesAttribute(ImmutableArray<TypedConstant> arguments) 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 (33)
31private readonly ConcurrentDictionary<ImportChain, ImmutableArray<Cci.UsedNamespaceOrType>> _translatedImportsMap = 32new ConcurrentDictionary<ImportChain, ImmutableArray<Cci.UsedNamespaceOrType>>(ReferenceEqualityComparer.Instance); 43private ImmutableArray<Cci.ExportedType> _lazyExportedTypes; 147public sealed override ImmutableArray<Cci.UsedNamespaceOrType> GetImports() => ImmutableArray<Cci.UsedNamespaceOrType>.Empty; 154ImmutableArray<ModuleSymbol> modules = SourceModule.ContainingAssembly.Modules; 216public sealed override IEnumerable<(Cci.ITypeDefinition, ImmutableArray<Cci.DebugSourceDocument>)> GetTypeToDebugDocumentMap(EmitContext context) 508internal virtual ImmutableArray<AnonymousTypeKey> GetPreviousAnonymousTypes() 510return ImmutableArray<AnonymousTypeKey>.Empty; 513internal virtual ImmutableArray<SynthesizedDelegateKey> GetPreviousAnonymousDelegates() 515return ImmutableArray<SynthesizedDelegateKey>.Empty; 610public sealed override ImmutableArray<Cci.ExportedType> GetExportedTypes(DiagnosticBag diagnostics) 631private ImmutableArray<Cci.ExportedType> CalculateExportedTypes() 638var modules = sourceAssembly.Modules; 669private void ReportExportedTypeNameCollisions(ImmutableArray<Cci.ExportedType> exportedTypes, DiagnosticBag diagnostics) 789ImmutableArray<NamedTypeSymbol> nested = type.GetTypeMembers(); // Ordered. 1364internal ImmutableArray<Cci.IParameterTypeInformation> Translate(ImmutableArray<ParameterSymbol> @params) 1403private ImmutableArray<Cci.IParameterTypeInformation> TranslateAll(ImmutableArray<ParameterSymbol> @params) 1605internal virtual SynthesizedAttributeData SynthesizeNullableAttribute(WellKnownMember member, ImmutableArray<TypedConstant> arguments) 1625internal virtual SynthesizedAttributeData SynthesizeNullableContextAttribute(ImmutableArray<TypedConstant> arguments) 1658attribute = SynthesizeNativeIntegerAttribute(WellKnownMember.System_Runtime_CompilerServices_NativeIntegerAttribute__ctor, ImmutableArray<TypedConstant>.Empty); 1666var arguments = ImmutableArray.Create(new TypedConstant(boolArray, transformFlags)); 1674internal virtual SynthesizedAttributeData SynthesizeNativeIntegerAttribute(WellKnownMember member, ImmutableArray<TypedConstant> arguments) 1705internal virtual SynthesizedAttributeData SynthesizeRefSafetyRulesAttribute(ImmutableArray<TypedConstant> arguments) 1719internal virtual SynthesizedAttributeData SynthesizeNullablePublicOnlyAttribute(ImmutableArray<TypedConstant> arguments) 2068public sealed override ImmutableArray<NamedTypeSymbol> GetEmbeddedTypes(DiagnosticBag diagnostics) 2072var result = GetEmbeddedTypes(bindingDiagnostics); 2079internal virtual ImmutableArray<NamedTypeSymbol> GetEmbeddedTypes(BindingDiagnosticBag diagnostics) 2084internal bool TryGetTranslatedImports(ImportChain chain, out ImmutableArray<Cci.UsedNamespaceOrType> imports) 2089internal ImmutableArray<Cci.UsedNamespaceOrType> GetOrAddTranslatedImports(ImportChain chain, ImmutableArray<Cci.UsedNamespaceOrType> imports)
Emitter\Model\PointerTypeSymbolAdapter.cs (1)
31return new Cci.ModifiedTypeReference(type, ImmutableArray<Cci.ICustomModifier>.CastUp(AdaptedPointerTypeSymbol.PointedAtTypeWithAnnotations.CustomModifiers));
Emitter\Model\PropertySymbolAdapter.cs (4)
109ImmutableArray<IParameterDefinition> IPropertyDefinition.Parameters 169ImmutableArray<IParameterTypeInformation> ISignature.GetParameters(EmitContext context) 179ImmutableArray<ICustomModifier> ISignature.ReturnValueCustomModifiers 188ImmutableArray<ICustomModifier> ISignature.RefCustomModifiers
Emitter\Model\SourceAssemblySymbolAdapter.cs (1)
20ImmutableArray<CSharpAttributeData> userDefined = this.GetAttributes();
Emitter\Model\SpecializedFieldReference.cs (4)
64var customModifiers = oldType.CustomModifiers; 73return new Cci.ModifiedTypeReference(type, ImmutableArray<Cci.ICustomModifier>.CastUp(customModifiers)); 77ImmutableArray<Cci.ICustomModifier> Cci.IFieldReference.RefCustomModifiers => 78ImmutableArray<Cci.ICustomModifier>.CastUp(_underlyingField.RefCustomModifiers);
Emitter\Model\SpecializedGenericNestedTypeInstanceReference.cs (1)
37ImmutableArray<Cci.ITypeReference> Cci.IGenericTypeInstanceReference.GetGenericArguments(EmitContext context)
Emitter\Model\SymbolAdapter.cs (3)
97ImmutableArray<CSharpAttributeData> userDefined; 112ImmutableArray<CSharpAttributeData> userDefined, 129ImmutableArray<CSharpAttributeData> userDefined,
Emitter\Model\SynthesizedPrivateImplementationDetailsStaticConstructor.cs (1)
21this.SetParameters(ImmutableArray<ParameterSymbol>.Empty);
Emitter\NoPia\EmbeddedField.cs (1)
108protected override ImmutableArray<byte> MarshallingDescriptor
Emitter\NoPia\EmbeddedMethod.cs (3)
40protected override ImmutableArray<EmbeddedParameter> GetParameters() 45protected override ImmutableArray<EmbeddedTypeParameter> GetTypeParameters() 167protected override ImmutableArray<byte> ReturnValueMarshallingDescriptor
Emitter\NoPia\EmbeddedParameter.cs (1)
89protected override ImmutableArray<byte> MarshallingDescriptor
Emitter\NoPia\EmbeddedProperty.cs (1)
30protected override ImmutableArray<EmbeddedParameter> GetParameters()
Emitter\NoPia\EmbeddedType.cs (4)
70ImmutableArray<AssemblySymbol> refs = TypeManager.ModuleBeingBuilt.SourceModule.GetReferencedAssemblySymbols(); 263return SynthesizedAttributeData.Create(TypeManager.ModuleBeingBuilt.Compilation, ctor, ImmutableArray<TypedConstant>.Empty, ImmutableArray<KeyValuePair<string, TypedConstant>>.Empty); 283ImmutableArray<KeyValuePair<string, TypedConstant>>.Empty);
Emitter\NoPia\EmbeddedTypesManager.cs (9)
124internal override CSharpAttributeData CreateSynthesizedAttribute(WellKnownMember constructor, ImmutableArray<TypedConstant> constructorArguments, ImmutableArray<KeyValuePair<string, TypedConstant>> namedArguments, SyntaxNode syntaxNodeOpt, DiagnosticBag diagnostics) 140ImmutableArray<KeyValuePair<string, TypedConstant>>.Empty); 149ImmutableArray<KeyValuePair<string, TypedConstant>>.Empty); 156internal override bool TryGetAttributeArguments(CSharpAttributeData attrData, out ImmutableArray<TypedConstant> constructorArguments, out ImmutableArray<KeyValuePair<string, TypedConstant>> namedArguments, SyntaxNode syntaxNodeOpt, DiagnosticBag diagnostics) 189protected override void OnGetTypesCompleted(ImmutableArray<EmbeddedType> types, DiagnosticBag diagnostics) 628internal static ImmutableArray<EmbeddedParameter> EmbedParameters( 630ImmutableArray<ParameterSymbol> underlyingParameters)
Errors\CSDiagnosticInfo.cs (8)
23: this(code, Array.Empty<object>(), ImmutableArray<Symbol>.Empty, ImmutableArray<Location>.Empty) 28: this(code, args, ImmutableArray<Symbol>.Empty, ImmutableArray<Location>.Empty) 32internal CSDiagnosticInfo(ErrorCode code, ImmutableArray<Symbol> symbols, object[] args) 33: this(code, args, symbols, ImmutableArray<Location>.Empty) 37internal CSDiagnosticInfo(ErrorCode code, object[] args, ImmutableArray<Symbol> symbols, ImmutableArray<Location> additionalLocations)
Errors\DiagnosticBagExtensions.cs (2)
45internal static CSDiagnosticInfo Add(this DiagnosticBag diagnostics, ErrorCode code, Location location, ImmutableArray<Symbol> symbols, params object[] args) 47var info = new CSDiagnosticInfo(code, args, symbols, ImmutableArray<Location>.Empty);
Errors\DiagnosticInfoWithSymbols.cs (3)
14internal readonly ImmutableArray<Symbol> Symbols; 16internal DiagnosticInfoWithSymbols(ErrorCode errorCode, object[] arguments, ImmutableArray<Symbol> symbols) 22internal DiagnosticInfoWithSymbols(bool isWarningAsError, ErrorCode errorCode, object[] arguments, ImmutableArray<Symbol> symbols)
Errors\ErrorFacts.cs (1)
2538internal static bool PreventsSuccessfulDelegateConversion(ImmutableArray<Diagnostic> diagnostics)
Errors\MessageProvider.cs (2)
89var info = new CSDiagnosticInfo((ErrorCode)code, args, ImmutableArray<Symbol>.Empty, ImmutableArray<Location>.Empty);
FlowAnalysis\AbstractFlowPass.cs (27)
316protected virtual void EnterParameters(ImmutableArray<ParameterSymbol> parameters) 328ImmutableArray<ParameterSymbol> parameters, 421protected virtual ImmutableArray<PendingBranch> Scan(ref bool badRegion) 432ImmutableArray<PendingBranch> result = RemoveReturns(); 436protected ImmutableArray<PendingBranch> Analyze(ref bool badRegion, Optional<TLocalState> initialState = default) 438ImmutableArray<PendingBranch> returns; 466protected ImmutableArray<ParameterSymbol> MethodParameters 471return (object)method == null ? ImmutableArray<ParameterSymbol>.Empty : method.Parameters; 531protected virtual ImmutableArray<PendingBranch> RemoveReturns() 533ImmutableArray<PendingBranch> result; 1132VisitArguments(node.Arguments, default(ImmutableArray<RefKind>), null); 1311private void VisitStatements(ImmutableArray<BoundStatement> statements) 1516protected virtual void VisitArguments(ImmutableArray<BoundExpression> arguments, ImmutableArray<RefKind> refKindsOpt, MethodSymbol method) 1523private void VisitArgumentsBeforeCall(ImmutableArray<BoundExpression> arguments, ImmutableArray<RefKind> refKindsOpt) 1543private void VisitArgumentsAfterCall(ImmutableArray<BoundExpression> arguments, ImmutableArray<RefKind> refKindsOpt, MethodSymbol method) 1566protected static RefKind GetRefKind(ImmutableArray<RefKind> refKindsOpt, int index) 2080private void VisitCollectionExpression(ImmutableArray<BoundNode> elements) 3157var sideEffects = node.SideEffects; 3533VisitArguments(node.Arguments, default(ImmutableArray<RefKind>), node.Constructor); 3572private BoundNode VisitObjectOrCollectionInitializerExpression(ImmutableArray<BoundExpression> initializers) 3584var arguments = node.Arguments; 3617VisitArguments(node.Arguments, default(ImmutableArray<RefKind>), node.AddMethod); 3623VisitArguments(node.Arguments, default(ImmutableArray<RefKind>), node.AddMethod); 3631VisitArguments(node.Arguments, default(ImmutableArray<RefKind>), method: null);
FlowAnalysis\AbstractFlowPass.PendingBranchesCollection.cs (1)
53internal ImmutableArray<PendingBranch> ToImmutable()
FlowAnalysis\AbstractFlowPass_LocalFunctions.cs (1)
111ImmutableArray<PendingBranch> pendingReturns = RemoveReturns();
FlowAnalysis\AbstractFlowPass_Switch.cs (1)
24var switchSections = node.SwitchSections;
FlowAnalysis\AbstractRegionControlFlowPass.cs (1)
39ImmutableArray<PendingBranch> pendingReturns = RemoveReturns();
FlowAnalysis\AbstractRegionDataFlowPass.cs (3)
32protected override ImmutableArray<PendingBranch> Scan(ref bool badRegion) 36var result = base.Scan(ref badRegion); 57private void MakeSlots(ImmutableArray<ParameterSymbol> parameters)
FlowAnalysis\ControlFlowAnalysis.cs (11)
24private ImmutableArray<SyntaxNode> _entryPoints; 25private ImmutableArray<SyntaxNode> _exitPoints; 38public override ImmutableArray<SyntaxNode> EntryPoints 45var result = _context.Failed ? ImmutableArray<SyntaxNode>.Empty : 57public override ImmutableArray<SyntaxNode> ExitPoints 63var result = Succeeded 64? ImmutableArray<SyntaxNode>.CastUp(ExitPointsWalker.Analyze(_context.Compilation, _context.Member, _context.BoundNode, _context.FirstInRegion, _context.LastInRegion)) 65: ImmutableArray<SyntaxNode>.Empty; 125public override ImmutableArray<SyntaxNode> ReturnStatements 145var discarded = EntryPoints;
FlowAnalysis\ControlFlowPass.cs (5)
133protected override ImmutableArray<PendingBranch> Scan(ref bool badRegion) 136var result = base.Scan(ref badRegion); 193ImmutableArray<PendingBranch> returns = Analyze(ref badRegion); 204protected override ImmutableArray<PendingBranch> RemoveReturns() 206var result = base.RemoveReturns();
FlowAnalysis\CSharpDataFlowAnalysis.cs (48)
28private ImmutableArray<ISymbol> _variablesDeclared; 30private ImmutableArray<ISymbol> _dataFlowsIn; 31private ImmutableArray<ISymbol> _dataFlowsOut; 32private ImmutableArray<ISymbol> _definitelyAssignedOnEntry; 33private ImmutableArray<ISymbol> _definitelyAssignedOnExit; 34private ImmutableArray<ISymbol> _alwaysAssigned; 35private ImmutableArray<ISymbol> _readInside; 36private ImmutableArray<ISymbol> _writtenInside; 37private ImmutableArray<ISymbol> _readOutside; 38private ImmutableArray<ISymbol> _writtenOutside; 39private ImmutableArray<ISymbol> _captured; 40private ImmutableArray<IMethodSymbol> _usedLocalFunctions; 41private ImmutableArray<ISymbol> _capturedInside; 42private ImmutableArray<ISymbol> _capturedOutside; 43private ImmutableArray<ISymbol> _unsafeAddressTaken; 57public override ImmutableArray<ISymbol> VariablesDeclared 66var result = Succeeded 68: ImmutableArray<ISymbol>.Empty; 95public override ImmutableArray<ISymbol> DataFlowsIn 102var result = _context.Failed ? ImmutableArray<ISymbol>.Empty : 115public override ImmutableArray<ISymbol> DefinitelyAssignedOnEntry 122public override ImmutableArray<ISymbol> DefinitelyAssignedOnExit 125private (ImmutableArray<ISymbol> onEntry, ImmutableArray<ISymbol> onExit) ComputeDefinitelyAssignedValues() 132var entryResult = ImmutableArray<ISymbol>.Empty; 133var exitResult = ImmutableArray<ISymbol>.Empty; 152public override ImmutableArray<ISymbol> DataFlowsOut 156var discarded = DataFlowsIn; // force DataFlowsIn to be computed 159var result = Succeeded 161: ImmutableArray<ISymbol>.Empty; 172public override ImmutableArray<ISymbol> AlwaysAssigned 178var result = Succeeded 180: ImmutableArray<ISymbol>.Empty; 191public override ImmutableArray<ISymbol> ReadInside 207public override ImmutableArray<ISymbol> WrittenInside 223public override ImmutableArray<ISymbol> ReadOutside 239public override ImmutableArray<ISymbol> WrittenOutside 285public override ImmutableArray<ISymbol> Captured 298public override ImmutableArray<ISymbol> CapturedInside 311public override ImmutableArray<ISymbol> CapturedOutside 331public override ImmutableArray<ISymbol> UnsafeAddressTaken 344public override ImmutableArray<IMethodSymbol> UsedLocalFunctions 383var discarded = DataFlowsIn; 390private static ImmutableArray<ISymbol> Normalize(IEnumerable<Symbol> data) 395private static ImmutableArray<IMethodSymbol> Normalize(IEnumerable<MethodSymbol> data)
FlowAnalysis\DataFlowsOutWalker.cs (4)
25private readonly ImmutableArray<ISymbol> _dataFlowsIn; 27private DataFlowsOutWalker(CSharpCompilation compilation, Symbol member, BoundNode node, BoundNode firstInRegion, BoundNode lastInRegion, HashSet<Symbol> unassignedVariables, ImmutableArray<ISymbol> dataFlowsIn) 33internal static HashSet<Symbol> Analyze(CSharpCompilation compilation, Symbol member, BoundNode node, BoundNode firstInRegion, BoundNode lastInRegion, HashSet<Symbol> unassignedVariables, ImmutableArray<ISymbol> dataFlowsIn) 67protected override ImmutableArray<PendingBranch> Scan(ref bool badRegion)
FlowAnalysis\DefiniteAssignment.cs (17)
329protected override ImmutableArray<PendingBranch> Scan(ref bool badRegion) 332ImmutableArray<ParameterSymbol> methodParameters = MethodParameters; 371ImmutableArray<PendingBranch> pendingReturns = base.Scan(ref badRegion); 397protected override ImmutableArray<PendingBranch> RemoveReturns() 399var result = base.RemoveReturns(); 546out ImmutableArray<FieldSymbol> implicitlyInitializedFieldsOpt, 562(DiagnosticBag compatDiagnostics, var unused) = analyze(strictAnalysis: false); 624(DiagnosticBag, ImmutableArray<FieldSymbol> implicitlyInitializedFieldsOpt) analyze(bool strictAnalysis) 627ImmutableArray<FieldSymbol> implicitlyInitializedFieldsOpt = default; 682ImmutableArray<PendingBranch> returns = Analyze(ref badRegion); 1906private void VisitAttributes(ImmutableArray<(CSharpAttributeData, BoundAttribute)> boundAttributes) 1932protected override void LeaveParameters(ImmutableArray<ParameterSymbol> parameters, SyntaxNode syntax, Location location) 2254var localsOpt = node.Locals; 2287private void DeclareVariables(ImmutableArray<LocalSymbol> locals) 2313private void ReportUnusedVariables(ImmutableArray<LocalSymbol> locals) 2332private void ReportUnusedVariables(ImmutableArray<LocalFunctionSymbol> locals) 2441ImmutableArray<PendingBranch> pendingReturns = RemoveReturns();
FlowAnalysis\ExitPointsWalker.cs (3)
41internal static ImmutableArray<StatementSyntax> Analyze(CSharpCompilation compilation, Symbol member, BoundNode node, BoundNode firstInRegion, BoundNode lastInRegion) 54private ImmutableArray<StatementSyntax> Analyze() 63return ImmutableArray<StatementSyntax>.Empty;
FlowAnalysis\FlowAnalysisPass.cs (8)
48ImmutableArray<FieldSymbol> implicitlyInitializedFields = default; 69else if (Analyze(compilation, method, block, diagnostics.DiagnosticBag, out var needsImplicitReturn, out var unusedImplicitlyInitializedFields)) 85var newStatements = block.Statements.Add(new BoundReturnStatement(trailingExpression.Syntax, RefKind.None, trailingExpression, @checked: false)); 86block = new BoundBlock(block.Syntax, ImmutableArray<LocalSymbol>.Empty, newStatements) { WasCompilerGenerated = true }; 110private static BoundBlock PrependImplicitInitializations(BoundBlock body, MethodSymbol method, ImmutableArray<FieldSymbol> implicitlyInitializedFields, TypeCompilationState compilationState, BindingDiagnosticBag diagnostics) 169var statements = body.Statements; 176return body.Update(body.Locals, ImmutableArray<LocalFunctionSymbol>.Empty, body.HasUnsafeModifier, body.Instrumentation, builder.ToImmutableAndFree()); 213out ImmutableArray<FieldSymbol> implicitlyInitializedFieldsOpt)
FlowAnalysis\NullableWalker.cs (153)
269private static readonly ImmutableArray<BoundKind> s_skippedExpressions = ImmutableArray.Create(BoundKind.ArrayInitialization, 579protected override ImmutableArray<PendingBranch> Scan(ref bool badRegion) 601ImmutableArray<PendingBranch> pendingReturns = base.Scan(ref badRegion); 657: ImmutableArray<string>.Empty; 682checkMemberStateOnConstructorExit(method, member, state, thisSlot, exitLocation, membersWithStateEnforcedByRequiredMembers: ImmutableArray<string>.Empty, forcePropertyAnalysis: true); 704void checkMemberStateOnConstructorExit(MethodSymbol constructor, Symbol member, LocalState state, int thisSlot, Location? exitLocation, ImmutableArray<string> membersWithStateEnforcedByRequiredMembers, bool forcePropertyAnalysis) 790var info = new CSDiagnosticInfo(errorCode, new object[] { symbol.Kind.Localize(), symbol.Name }, ImmutableArray<Symbol>.Empty, additionalLocations: symbol.Locations); 862ImmutableArray<Symbol> getMembersNeedingDefaultInitialState() 866return ImmutableArray<Symbol>.Empty; 906static ImmutableArray<Symbol> membersToBeInitialized(NamedTypeSymbol containingType, bool includeAllMembers, bool includeCurrentTypeRequiredMembers, bool includeBaseRequiredMembers) 911=> ImmutableArray<Symbol>.Empty, 944static ImmutableArray<Symbol> getAllTypeAndRequiredMembers(TypeSymbol containingType) 946var members = containingType.GetMembersUnordered(); 1091void enforceMemberNotNullWhenIfAffected(SyntaxNode? syntaxOpt, bool sense, ImmutableArray<Symbol> members, LocalState state, LocalState otherState) 1107var notNullMembers = sense ? method.NotNullWhenTrueMembers : method.NotNullWhenFalseMembers; 1153private void MakeMembersMaybeNull(MethodSymbol method, ImmutableArray<string> members) 1216var parameters = this.MethodParameters; 1292private void EnforceParameterNotNullWhenOnExit(SyntaxNode syntax, ImmutableArray<ParameterSymbol> parameters, bool sense, LocalState stateWhen) 1352private void EnforceNotNullIfNotNull(SyntaxNode? syntaxOpt, LocalState state, ImmutableArray<ParameterSymbol> parameters, ImmutableHashSet<string> inputParamNames, NullableFlowState outputState, ParameterSymbol? outputParam) 1849ImmutableArray<PendingBranch> returns = walker.Analyze(ref badRegion, initialState); 2234private void VisitAndUnsplitAll<T>(ImmutableArray<T> nodes) where T : BoundNode 2863var methodParameters = methodSymbol.Parameters; 2864var signatureParameters = (_useDelegateInvokeParameterTypes ? _delegateInvokeMethod! : methodSymbol).Parameters; 3356ImmutableArray<PendingBranch> pendingReturns = RemoveReturns(); 3517private void DeclareLocals(ImmutableArray<LocalSymbol> locals) 3919var arguments = node.Arguments; 3921(_, ImmutableArray<VisitResult> argumentResults, _, ArgumentsCompletionDelegate? argumentsCompletion) = 3945ImmutableArray<VisitResult> argumentResults, 3974ImmutableArray<VisitResult> argumentResults, 4014ImmutableArray<BoundExpression> arguments, ImmutableArray<VisitResult> argumentResults, 4084ImmutableArray<BoundExpression> arguments, 4085ImmutableArray<VisitResult> argumentResults) 4175ImmutableArray<VisitResult> argumentResults = default; 4211ImmutableArray<VisitResult> argumentResults, 4233ImmutableArray<VisitResult> argumentResults, 4364ImmutableArray<VisitResult> argumentResults = default; 4399ImmutableArray<VisitResult> argumentResults, 4424ImmutableArray<VisitResult> argumentResults, 4437static MethodSymbol addMethodAsMemberOfContainingType(BoundCollectionElementInitializer node, TypeSymbol containingType, ref ImmutableArray<VisitResult> argumentResults) 4503var members = ((NamedTypeSymbol)type).GetMembersUnordered(); 4551var arguments = node.Arguments; 4673var placeholders = placeholderBuilder.ToImmutableAndFree(); 4792var placeholders = placeholdersBuilder.ToImmutableAndFree(); 5164var parameters = method.Parameters; 5577static ImmutableArray<NamedTypeSymbol> inheritedInterfaces(TypeSymbol type) => type switch 5581_ => ImmutableArray<NamedTypeSymbol>.Empty, 6339ImmutableArray<RefKind> refKindsOpt = node.ArgumentRefKindsOpt; 6346ImmutableArray<VisitResult> results; 6366private void LearnFromEqualsMethod(MethodSymbol method, BoundCall node, TypeWithState receiverType, ImmutableArray<VisitResult> results) 6370var arguments = node.Arguments; 6544public readonly ImmutableArray<BoundExpression> Arguments; 6545public readonly ImmutableArray<VisitResult> Results; 6546public readonly ImmutableArray<int> ArgsToParamsOpt; 6548public CompareExchangeInfo(ImmutableArray<BoundExpression> arguments, ImmutableArray<VisitResult> results, ImmutableArray<int> argsToParamsOpt) 6581var argsToParamsOpt = compareExchangeInfo.ArgsToParamsOpt; 6769protected override void VisitArguments(ImmutableArray<BoundExpression> arguments, ImmutableArray<RefKind> refKindsOpt, MethodSymbol method) 6775private (MethodSymbol? method, ImmutableArray<VisitResult> results, bool returnNotNull) VisitArguments( 6777ImmutableArray<BoundExpression> arguments, 6778ImmutableArray<RefKind> refKindsOpt, 6780ImmutableArray<int> argsToParamsOpt, 6788private ImmutableArray<VisitResult> VisitArguments( 6790ImmutableArray<BoundExpression> arguments, 6791ImmutableArray<RefKind> refKindsOpt, 6793ImmutableArray<int> argsToParamsOpt, 6803private (MethodSymbol? method, ImmutableArray<VisitResult> results, bool returnNotNull) VisitArguments( 6805ImmutableArray<BoundExpression> arguments, 6806ImmutableArray<RefKind> refKindsOpt, 6807ImmutableArray<ParameterSymbol> parametersOpt, 6808ImmutableArray<int> argsToParamsOpt, 6821private delegate (MethodSymbol? method, bool returnNotNull) ArgumentsCompletionDelegate(ImmutableArray<VisitResult> argumentResults, ImmutableArray<ParameterSymbol> parametersOpt, MethodSymbol? method); 6823private (MethodSymbol? method, ImmutableArray<VisitResult> results, bool returnNotNull, ArgumentsCompletionDelegate? completion) 6826ImmutableArray<BoundExpression> arguments, 6827ImmutableArray<RefKind> refKindsOpt, 6828ImmutableArray<ParameterSymbol> parametersOpt, 6829ImmutableArray<int> argsToParamsOpt, 6851(ImmutableArray<BoundExpression> argumentsNoConversions, ImmutableArray<Conversion> conversions) = RemoveArgumentConversions(arguments, refKindsOpt); 6854ImmutableArray<VisitResult> results = VisitArgumentsEvaluate(argumentsNoConversions, refKindsOpt, GetParametersAnnotations(arguments, parametersOpt, argsToParamsOpt, expanded), defaultArguments, firstArgumentResult: firstArgumentResult); 6861(MethodSymbol? method, ImmutableArray<VisitResult> results, bool returnNotNull, ArgumentsCompletionDelegate? completion) 6864ImmutableArray<BoundExpression> arguments, 6865ImmutableArray<BoundExpression> argumentsNoConversions, 6866ImmutableArray<Conversion> conversions, 6867ImmutableArray<VisitResult> results, 6868ImmutableArray<RefKind> refKindsOpt, 6869ImmutableArray<ParameterSymbol> parametersOpt, 6870ImmutableArray<int> argsToParamsOpt, 7035ImmutableArray<BoundExpression> arguments, 7036ImmutableArray<BoundExpression> argumentsNoConversions, 7037ImmutableArray<Conversion> conversions, 7038ImmutableArray<RefKind> refKindsOpt, 7039ImmutableArray<int> argsToParamsOpt, 7044return (ImmutableArray<VisitResult> results, ImmutableArray<ParameterSymbol> parametersOpt, MethodSymbol? method) => 7056static void expandParamsCollection(ref ImmutableArray<BoundExpression> arguments, ref ImmutableArray<RefKind> refKindsOpt, ImmutableArray<ParameterSymbol> parametersOpt, ref ImmutableArray<int> argsToParamsOpt, ref BitVector defaultArguments) 7070ImmutableArray<BoundExpression> elements; 7205var notNullMembers = method.NotNullMembers; 7206var notNullWhenTrueMembers = method.NotNullWhenTrueMembers; 7207var notNullWhenFalseMembers = method.NotNullWhenFalseMembers; 7231void applyMemberPostConditions(int receiverSlot, TypeSymbol type, ImmutableArray<string> members, ref LocalState state) 7277private ImmutableArray<VisitResult> VisitArgumentsEvaluate( 7278ImmutableArray<BoundExpression> arguments, 7279ImmutableArray<RefKind> refKindsOpt, 7280ImmutableArray<FlowAnalysisAnnotations> parameterAnnotationsOpt, 7288return ImmutableArray<VisitResult>.Empty; 7312private ImmutableArray<FlowAnalysisAnnotations> GetParametersAnnotations(ImmutableArray<BoundExpression> arguments, ImmutableArray<ParameterSymbol> parametersOpt, ImmutableArray<int> argsToParamsOpt, bool expanded) 7314ImmutableArray<FlowAnalysisAnnotations> parameterAnnotationsOpt = default; 7795private (ImmutableArray<BoundExpression> arguments, ImmutableArray<Conversion> conversions) RemoveArgumentConversions( 7796ImmutableArray<BoundExpression> arguments, 7797ImmutableArray<RefKind> refKindsOpt) 7800var conversions = default(ImmutableArray<Conversion>); 7844ImmutableArray<ParameterSymbol> parametersOpt, 7845ImmutableArray<int> argsToParamsOpt, 7878ImmutableArray<BoundExpression> arguments, 7879ImmutableArray<RefKind> argumentRefKindsOpt, 7880ImmutableArray<int> argsToParamsOpt, 7908parameterTypes: out ImmutableArray<TypeWithAnnotations> parameterTypes, 7909parameterRefKinds: out ImmutableArray<RefKind> parameterRefKinds); 7987private ImmutableArray<BoundExpression> GetArgumentsForMethodTypeInference(ImmutableArray<VisitResult> argumentResults, ImmutableArray<BoundExpression> arguments) 8480var arguments = node.Arguments; 8481ImmutableArray<TypeWithState> elementTypes = arguments.SelectAsArray((a, w) => w.VisitRvalueWithState(a), this); 8482ImmutableArray<TypeWithAnnotations> elementTypesWithAnnotations = elementTypes.SelectAsArray(a => a.ToTypeWithAnnotations(compilation)); 8523ImmutableArray<BoundExpression> values, 8524ImmutableArray<TypeWithState> types, 8525ImmutableArray<int> argsToParamsOpt, 8534var tupleElements = tupleType.TupleElements; 8603var conversions = conversion.UnderlyingConversions; 8604var targetElements = ((NamedTypeSymbol)targetType).TupleElements; 8605var valueElements = valueTuple.TupleElements; 8921static (MethodSymbol invokeSignature, ImmutableArray<ParameterSymbol>) getDelegateOrFunctionPointerInfo(TypeSymbol targetType) 8926_ => (null, ImmutableArray<ParameterSymbol>.Empty), 9866private MethodSymbol CheckMethodGroupReceiverNullability(BoundMethodGroup group, ImmutableArray<ParameterSymbol> parameters, MethodSymbol method, bool invokedAsExtensionMethod) 10257var parameters = deconstructMethod.Parameters; 10304private void VisitTupleDeconstructionArguments(ArrayBuilder<DeconstructionVariable> variables, ImmutableArray<(BoundValuePlaceholder? placeholder, BoundExpression? conversion)> deconstructConversionInfo, BoundExpression right, TypeWithState? rightResultOpt) 10307var rightParts = GetDeconstructionRightParts(right, rightResultOpt); 10411var arguments = tuple.Arguments; 10437private ImmutableArray<BoundExpression> GetDeconstructionRightParts(BoundExpression expr, TypeWithState? rightResultOpt) 10466var fields = tupleType.TupleElements; 12096VisitArguments(node, node.ConstructorArguments, ImmutableArray<RefKind>.Empty, node.Constructor, argsToParamsOpt: node.ConstructorArgumentsToParamsOpt, defaultArguments: node.ConstructorDefaultArguments,
FlowAnalysis\NullableWalker.PlaceholderLocal.cs (4)
50public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences => ImmutableArray<SyntaxReference>.Empty; 51public override ImmutableArray<Location> Locations => ImmutableArray<Location>.Empty;
FlowAnalysis\NullableWalker.SnapshotManager.cs (4)
23private readonly ImmutableArray<SharedWalkerState> _walkerSharedStates; 29private readonly ImmutableArray<(int position, Snapshot snapshot)> _incrementalSnapshots; 35private SnapshotManager(ImmutableArray<SharedWalkerState> walkerSharedStates, ImmutableArray<(int position, Snapshot snapshot)> incrementalSnapshots, ImmutableDictionary<(BoundNode?, Symbol), Symbol> updatedSymbolsMap)
FlowAnalysis\NullableWalker.Variables.cs (2)
43internal readonly ImmutableArray<KeyValuePair<VariableIdentifier, int>> VariableSlot; 50internal VariablesSnapshot(int id, VariablesSnapshot? container, Symbol? symbol, ImmutableArray<KeyValuePair<VariableIdentifier, int>> variableSlot, ImmutableDictionary<Symbol, TypeWithAnnotations> variableTypes)
FlowAnalysis\NullableWalker_Patterns.cs (3)
198var elements = inputType.TupleElements; 900var nodes = node.ReachabilityDecisionDag.TopologicallySortedNodes; 948var placeholders = placeholderBuilder.ToImmutableAndFree();
Generated\BoundNodes.xml.Generated.cs (485)
292protected BoundEqualsValue(BoundKind kind, SyntaxNode syntax, ImmutableArray<LocalSymbol> locals, BoundExpression value, bool hasErrors = false) 303public ImmutableArray<LocalSymbol> Locals { get; } 309public BoundFieldEqualsValue(SyntaxNode syntax, FieldSymbol field, ImmutableArray<LocalSymbol> locals, BoundExpression value, bool hasErrors = false) 325public BoundFieldEqualsValue Update(FieldSymbol field, ImmutableArray<LocalSymbol> locals, BoundExpression value) 339public BoundPropertyEqualsValue(SyntaxNode syntax, PropertySymbol property, ImmutableArray<LocalSymbol> locals, BoundExpression value, bool hasErrors = false) 355public BoundPropertyEqualsValue Update(PropertySymbol property, ImmutableArray<LocalSymbol> locals, BoundExpression value) 369public BoundParameterEqualsValue(SyntaxNode syntax, ParameterSymbol parameter, ImmutableArray<LocalSymbol> locals, BoundExpression value, bool hasErrors = false) 385public BoundParameterEqualsValue Update(ParameterSymbol parameter, ImmutableArray<LocalSymbol> locals, BoundExpression value) 980public BoundBadExpression(SyntaxNode syntax, LookupResultKind resultKind, ImmutableArray<Symbol?> symbols, ImmutableArray<BoundExpression> childBoundNodes, TypeSymbol? type, bool hasErrors = false) 993public ImmutableArray<Symbol?> Symbols { get; } 994public ImmutableArray<BoundExpression> ChildBoundNodes { get; } 999public BoundBadExpression Update(LookupResultKind resultKind, ImmutableArray<Symbol?> symbols, ImmutableArray<BoundExpression> childBoundNodes, TypeSymbol? type) 1013public BoundBadStatement(SyntaxNode syntax, ImmutableArray<BoundNode> childBoundNodes, bool hasErrors = false) 1022public ImmutableArray<BoundNode> ChildBoundNodes { get; } 1027public BoundBadStatement Update(ImmutableArray<BoundNode> childBoundNodes) 1069public BoundTypeExpression(SyntaxNode syntax, AliasSymbol? aliasOpt, BoundTypeExpression? boundContainingTypeOpt, ImmutableArray<BoundExpression> boundDimensionsOpt, TypeWithAnnotations typeWithAnnotations, TypeSymbol type, bool hasErrors = false) 1083public ImmutableArray<BoundExpression> BoundDimensionsOpt { get; } 1090public BoundTypeExpression Update(AliasSymbol? aliasOpt, BoundTypeExpression? boundContainingTypeOpt, ImmutableArray<BoundExpression> boundDimensionsOpt, TypeWithAnnotations typeWithAnnotations, TypeSymbol type) 1183public BoundUnaryOperator(SyntaxNode syntax, UnaryOperatorKind operatorKind, BoundExpression operand, ConstantValue? constantValueOpt, MethodSymbol? methodOpt, TypeSymbol? constrainedToTypeOpt, LookupResultKind resultKind, ImmutableArray<MethodSymbol> originalUserDefinedOperatorsOpt, TypeSymbol type, bool hasErrors = false) 1206public ImmutableArray<MethodSymbol> OriginalUserDefinedOperatorsOpt { get; } 1211public BoundUnaryOperator Update(UnaryOperatorKind operatorKind, BoundExpression operand, ConstantValue? constantValueOpt, MethodSymbol? methodOpt, TypeSymbol? constrainedToTypeOpt, LookupResultKind resultKind, ImmutableArray<MethodSymbol> originalUserDefinedOperatorsOpt, TypeSymbol type) 1225public BoundIncrementOperator(SyntaxNode syntax, UnaryOperatorKind operatorKind, BoundExpression operand, MethodSymbol? methodOpt, TypeSymbol? constrainedToTypeOpt, BoundValuePlaceholder? operandPlaceholder, BoundExpression? operandConversion, BoundValuePlaceholder? resultPlaceholder, BoundExpression? resultConversion, LookupResultKind resultKind, ImmutableArray<MethodSymbol> originalUserDefinedOperatorsOpt, TypeSymbol type, bool hasErrors = false) 1254public ImmutableArray<MethodSymbol> OriginalUserDefinedOperatorsOpt { get; } 1259public BoundIncrementOperator Update(UnaryOperatorKind operatorKind, BoundExpression operand, MethodSymbol? methodOpt, TypeSymbol? constrainedToTypeOpt, BoundValuePlaceholder? operandPlaceholder, BoundExpression? operandConversion, BoundValuePlaceholder? resultPlaceholder, BoundExpression? resultConversion, LookupResultKind resultKind, ImmutableArray<MethodSymbol> originalUserDefinedOperatorsOpt, TypeSymbol type) 1446public BoundFunctionPointerInvocation(SyntaxNode syntax, BoundExpression invokedExpression, ImmutableArray<BoundExpression> arguments, ImmutableArray<RefKind> argumentRefKindsOpt, LookupResultKind resultKind, TypeSymbol type, bool hasErrors = false) 1462public ImmutableArray<BoundExpression> Arguments { get; } 1463public ImmutableArray<RefKind> ArgumentRefKindsOpt { get; } 1469public BoundFunctionPointerInvocation Update(BoundExpression invokedExpression, ImmutableArray<BoundExpression> arguments, ImmutableArray<RefKind> argumentRefKindsOpt, LookupResultKind resultKind, TypeSymbol type) 1733public BoundUserDefinedConditionalLogicalOperator(SyntaxNode syntax, BinaryOperatorKind operatorKind, MethodSymbol logicalOperator, MethodSymbol trueOperator, MethodSymbol falseOperator, TypeSymbol? constrainedToTypeOpt, LookupResultKind resultKind, ImmutableArray<MethodSymbol> originalUserDefinedOperatorsOpt, BoundExpression left, BoundExpression right, TypeSymbol type, bool hasErrors = false) 1759public ImmutableArray<MethodSymbol> OriginalUserDefinedOperatorsOpt { get; } 1764public BoundUserDefinedConditionalLogicalOperator Update(BinaryOperatorKind operatorKind, MethodSymbol logicalOperator, MethodSymbol trueOperator, MethodSymbol falseOperator, TypeSymbol? constrainedToTypeOpt, LookupResultKind resultKind, ImmutableArray<MethodSymbol> originalUserDefinedOperatorsOpt, BoundExpression left, BoundExpression right, TypeSymbol type) 1778public BoundCompoundAssignmentOperator(SyntaxNode syntax, BinaryOperatorSignature @operator, BoundExpression left, BoundExpression right, BoundValuePlaceholder? leftPlaceholder, BoundExpression? leftConversion, BoundValuePlaceholder? finalPlaceholder, BoundExpression? finalConversion, LookupResultKind resultKind, ImmutableArray<MethodSymbol> originalUserDefinedOperatorsOpt, TypeSymbol type, bool hasErrors = false) 1806public ImmutableArray<MethodSymbol> OriginalUserDefinedOperatorsOpt { get; } 1811public BoundCompoundAssignmentOperator Update(BinaryOperatorSignature @operator, BoundExpression left, BoundExpression right, BoundValuePlaceholder? leftPlaceholder, BoundExpression? leftConversion, BoundValuePlaceholder? finalPlaceholder, BoundExpression? finalConversion, LookupResultKind resultKind, ImmutableArray<MethodSymbol> originalUserDefinedOperatorsOpt, TypeSymbol type) 2049public BoundArrayAccess(SyntaxNode syntax, BoundExpression expression, ImmutableArray<BoundExpression> indices, TypeSymbol type, bool hasErrors = false) 2063public ImmutableArray<BoundExpression> Indices { get; } 2068public BoundArrayAccess Update(BoundExpression expression, ImmutableArray<BoundExpression> indices, TypeSymbol type) 2952public BoundConversion(SyntaxNode syntax, BoundExpression operand, Conversion conversion, bool isBaseConversion, bool @checked, bool explicitCastInCode, ConstantValue? constantValueOpt, ConversionGroup? conversionGroupOpt, ImmutableArray<MethodSymbol> originalUserDefinedConversionsOpt, TypeSymbol type, bool hasErrors = false) 2977public ImmutableArray<MethodSymbol> OriginalUserDefinedConversionsOpt { get; } 2982public BoundConversion Update(BoundExpression operand, Conversion conversion, bool isBaseConversion, bool @checked, bool explicitCastInCode, ConstantValue? constantValueOpt, ConversionGroup? conversionGroupOpt, ImmutableArray<MethodSymbol> originalUserDefinedConversionsOpt, TypeSymbol type) 3064public BoundArgListOperator(SyntaxNode syntax, ImmutableArray<BoundExpression> arguments, ImmutableArray<RefKind> argumentRefKindsOpt, TypeSymbol? type, bool hasErrors = false) 3075public ImmutableArray<BoundExpression> Arguments { get; } 3076public ImmutableArray<RefKind> ArgumentRefKindsOpt { get; } 3081public BoundArgListOperator Update(ImmutableArray<BoundExpression> arguments, ImmutableArray<RefKind> argumentRefKindsOpt, TypeSymbol? type) 3305public BoundBlock(SyntaxNode syntax, ImmutableArray<LocalSymbol> locals, ImmutableArray<LocalFunctionSymbol> localFunctions, bool hasUnsafeModifier, BoundBlockInstrumentation? instrumentation, ImmutableArray<BoundStatement> statements, bool hasErrors = false) 3319public ImmutableArray<LocalSymbol> Locals { get; } 3320public ImmutableArray<LocalFunctionSymbol> LocalFunctions { get; } 3327public BoundBlock Update(ImmutableArray<LocalSymbol> locals, ImmutableArray<LocalFunctionSymbol> localFunctions, bool hasUnsafeModifier, BoundBlockInstrumentation? instrumentation, ImmutableArray<BoundStatement> statements) 3341public BoundScope(SyntaxNode syntax, ImmutableArray<LocalSymbol> locals, ImmutableArray<BoundStatement> statements, bool hasErrors = false) 3351public ImmutableArray<LocalSymbol> Locals { get; } 3356public BoundScope Update(ImmutableArray<LocalSymbol> locals, ImmutableArray<BoundStatement> statements) 3370public BoundStateMachineScope(SyntaxNode syntax, ImmutableArray<StateMachineFieldSymbol> fields, BoundStatement statement, bool hasErrors = false) 3381public ImmutableArray<StateMachineFieldSymbol> Fields { get; } 3387public BoundStateMachineScope Update(ImmutableArray<StateMachineFieldSymbol> fields, BoundStatement statement) 3401public BoundLocalDeclaration(SyntaxNode syntax, LocalSymbol localSymbol, BoundTypeExpression? declaredTypeOpt, BoundExpression? initializerOpt, ImmutableArray<BoundExpression> argumentsOpt, bool inferredType, bool hasErrors = false) 3417public ImmutableArray<BoundExpression> ArgumentsOpt { get; } 3423public BoundLocalDeclaration Update(LocalSymbol localSymbol, BoundTypeExpression? declaredTypeOpt, BoundExpression? initializerOpt, ImmutableArray<BoundExpression> argumentsOpt, bool inferredType) 3437protected BoundMultipleLocalDeclarationsBase(BoundKind kind, SyntaxNode syntax, ImmutableArray<BoundLocalDeclaration> localDeclarations, bool hasErrors = false) 3446public ImmutableArray<BoundLocalDeclaration> LocalDeclarations { get; } 3451public BoundMultipleLocalDeclarations(SyntaxNode syntax, ImmutableArray<BoundLocalDeclaration> localDeclarations, bool hasErrors = false) 3463public BoundMultipleLocalDeclarations Update(ImmutableArray<BoundLocalDeclaration> localDeclarations) 3477public BoundUsingLocalDeclarations(SyntaxNode syntax, MethodArgumentInfo? patternDisposeInfoOpt, BoundAwaitableInfo? awaitOpt, ImmutableArray<BoundLocalDeclaration> localDeclarations, bool hasErrors = false) 3493public BoundUsingLocalDeclarations Update(MethodArgumentInfo? patternDisposeInfoOpt, BoundAwaitableInfo? awaitOpt, ImmutableArray<BoundLocalDeclaration> localDeclarations) 3771public BoundSwitchStatement(SyntaxNode syntax, BoundExpression expression, ImmutableArray<LocalSymbol> innerLocals, ImmutableArray<LocalFunctionSymbol> innerLocalFunctions, ImmutableArray<BoundSwitchSection> switchSections, BoundDecisionDag reachabilityDecisionDag, BoundSwitchLabel? defaultLabel, GeneratedLabelSymbol breakLabel, bool hasErrors = false) 3792public ImmutableArray<LocalSymbol> InnerLocals { get; } 3793public ImmutableArray<LocalFunctionSymbol> InnerLocalFunctions { get; } 3794public ImmutableArray<BoundSwitchSection> SwitchSections { get; } 3802public BoundSwitchStatement Update(BoundExpression expression, ImmutableArray<LocalSymbol> innerLocals, ImmutableArray<LocalFunctionSymbol> innerLocalFunctions, ImmutableArray<BoundSwitchSection> switchSections, BoundDecisionDag reachabilityDecisionDag, BoundSwitchLabel? defaultLabel, GeneratedLabelSymbol breakLabel) 3816public BoundSwitchDispatch(SyntaxNode syntax, BoundExpression expression, ImmutableArray<(ConstantValue value, LabelSymbol label)> cases, LabelSymbol defaultLabel, LengthBasedStringSwitchData? lengthBasedStringSwitchDataOpt, bool hasErrors = false) 3831public ImmutableArray<(ConstantValue value, LabelSymbol label)> Cases { get; } 3838public BoundSwitchDispatch Update(BoundExpression expression, ImmutableArray<(ConstantValue value, LabelSymbol label)> cases, LabelSymbol defaultLabel, LengthBasedStringSwitchData? lengthBasedStringSwitchDataOpt) 3913protected BoundConditionalLoopStatement(BoundKind kind, SyntaxNode syntax, ImmutableArray<LocalSymbol> locals, BoundExpression condition, BoundStatement body, GeneratedLabelSymbol breakLabel, GeneratedLabelSymbol continueLabel, bool hasErrors = false) 3928public ImmutableArray<LocalSymbol> Locals { get; } 3935public BoundDoStatement(SyntaxNode syntax, ImmutableArray<LocalSymbol> locals, BoundExpression condition, BoundStatement body, GeneratedLabelSymbol breakLabel, GeneratedLabelSymbol continueLabel, bool hasErrors = false) 3951public BoundDoStatement Update(ImmutableArray<LocalSymbol> locals, BoundExpression condition, BoundStatement body, GeneratedLabelSymbol breakLabel, GeneratedLabelSymbol continueLabel) 3965public BoundWhileStatement(SyntaxNode syntax, ImmutableArray<LocalSymbol> locals, BoundExpression condition, BoundStatement body, GeneratedLabelSymbol breakLabel, GeneratedLabelSymbol continueLabel, bool hasErrors = false) 3981public BoundWhileStatement Update(ImmutableArray<LocalSymbol> locals, BoundExpression condition, BoundStatement body, GeneratedLabelSymbol breakLabel, GeneratedLabelSymbol continueLabel) 3995public BoundForStatement(SyntaxNode syntax, ImmutableArray<LocalSymbol> outerLocals, BoundStatement? initializer, ImmutableArray<LocalSymbol> innerLocals, BoundExpression? condition, BoundStatement? increment, BoundStatement body, GeneratedLabelSymbol breakLabel, GeneratedLabelSymbol continueLabel, bool hasErrors = false) 4013public ImmutableArray<LocalSymbol> OuterLocals { get; } 4015public ImmutableArray<LocalSymbol> InnerLocals { get; } 4023public BoundForStatement Update(ImmutableArray<LocalSymbol> outerLocals, BoundStatement? initializer, ImmutableArray<LocalSymbol> innerLocals, BoundExpression? condition, BoundStatement? increment, BoundStatement body, GeneratedLabelSymbol breakLabel, GeneratedLabelSymbol continueLabel) 4037public BoundForEachStatement(SyntaxNode syntax, ForEachEnumeratorInfo? enumeratorInfoOpt, BoundValuePlaceholder? elementPlaceholder, BoundExpression? elementConversion, BoundTypeExpression iterationVariableType, ImmutableArray<LocalSymbol> iterationVariables, BoundExpression? iterationErrorExpressionOpt, BoundExpression expression, BoundForEachDeconstructStep? deconstructionOpt, BoundAwaitableInfo? awaitOpt, BoundStatement body, GeneratedLabelSymbol breakLabel, GeneratedLabelSymbol continueLabel, bool hasErrors = false) 4064public ImmutableArray<LocalSymbol> IterationVariables { get; } 4074public BoundForEachStatement Update(ForEachEnumeratorInfo? enumeratorInfoOpt, BoundValuePlaceholder? elementPlaceholder, BoundExpression? elementConversion, BoundTypeExpression iterationVariableType, ImmutableArray<LocalSymbol> iterationVariables, BoundExpression? iterationErrorExpressionOpt, BoundExpression expression, BoundForEachDeconstructStep? deconstructionOpt, BoundAwaitableInfo? awaitOpt, BoundStatement body, GeneratedLabelSymbol breakLabel, GeneratedLabelSymbol continueLabel) 4119public BoundUsingStatement(SyntaxNode syntax, ImmutableArray<LocalSymbol> locals, BoundMultipleLocalDeclarations? declarationsOpt, BoundExpression? expressionOpt, BoundStatement body, BoundAwaitableInfo? awaitOpt, MethodArgumentInfo? patternDisposeInfoOpt, bool hasErrors = false) 4134public ImmutableArray<LocalSymbol> Locals { get; } 4144public BoundUsingStatement Update(ImmutableArray<LocalSymbol> locals, BoundMultipleLocalDeclarations? declarationsOpt, BoundExpression? expressionOpt, BoundStatement body, BoundAwaitableInfo? awaitOpt, MethodArgumentInfo? patternDisposeInfoOpt) 4158public BoundFixedStatement(SyntaxNode syntax, ImmutableArray<LocalSymbol> locals, BoundMultipleLocalDeclarations declarations, BoundStatement body, bool hasErrors = false) 4171public ImmutableArray<LocalSymbol> Locals { get; } 4178public BoundFixedStatement Update(ImmutableArray<LocalSymbol> locals, BoundMultipleLocalDeclarations declarations, BoundStatement body) 4223public BoundTryStatement(SyntaxNode syntax, BoundBlock tryBlock, ImmutableArray<BoundCatchBlock> catchBlocks, BoundBlock? finallyBlockOpt, LabelSymbol? finallyLabelOpt, bool preferFaultHandler, bool hasErrors = false) 4238public ImmutableArray<BoundCatchBlock> CatchBlocks { get; } 4246public BoundTryStatement Update(BoundBlock tryBlock, ImmutableArray<BoundCatchBlock> catchBlocks, BoundBlock? finallyBlockOpt, LabelSymbol? finallyLabelOpt, bool preferFaultHandler) 4260public BoundCatchBlock(SyntaxNode syntax, ImmutableArray<LocalSymbol> locals, BoundExpression? exceptionSourceOpt, TypeSymbol? exceptionTypeOpt, BoundStatementList? exceptionFilterPrologueOpt, BoundExpression? exceptionFilterOpt, BoundBlock body, bool isSynthesizedAsyncCatchAll, bool hasErrors = false) 4276public ImmutableArray<LocalSymbol> Locals { get; } 4287public BoundCatchBlock Update(ImmutableArray<LocalSymbol> locals, BoundExpression? exceptionSourceOpt, TypeSymbol? exceptionTypeOpt, BoundStatementList? exceptionFilterPrologueOpt, BoundExpression? exceptionFilterOpt, BoundBlock body, bool isSynthesizedAsyncCatchAll) 4810protected BoundStatementList(BoundKind kind, SyntaxNode syntax, ImmutableArray<BoundStatement> statements, bool hasErrors = false) 4819public BoundStatementList(SyntaxNode syntax, ImmutableArray<BoundStatement> statements, bool hasErrors = false) 4828public ImmutableArray<BoundStatement> Statements { get; } 4833public BoundStatementList Update(ImmutableArray<BoundStatement> statements) 4880protected BoundSwitchExpression(BoundKind kind, SyntaxNode syntax, BoundExpression expression, ImmutableArray<BoundSwitchExpressionArm> switchArms, BoundDecisionDag reachabilityDecisionDag, LabelSymbol? defaultLabel, bool reportedNotExhaustive, TypeSymbol? type, bool hasErrors = false) 4896public ImmutableArray<BoundSwitchExpressionArm> SwitchArms { get; } 4904public BoundSwitchExpressionArm(SyntaxNode syntax, ImmutableArray<LocalSymbol> locals, BoundPattern pattern, BoundExpression? whenClause, BoundExpression value, LabelSymbol label, bool hasErrors = false) 4920public ImmutableArray<LocalSymbol> Locals { get; } 4929public BoundSwitchExpressionArm Update(ImmutableArray<LocalSymbol> locals, BoundPattern pattern, BoundExpression? whenClause, BoundExpression value, LabelSymbol label) 4943public BoundUnconvertedSwitchExpression(SyntaxNode syntax, BoundExpression expression, ImmutableArray<BoundSwitchExpressionArm> switchArms, BoundDecisionDag reachabilityDecisionDag, LabelSymbol? defaultLabel, bool reportedNotExhaustive, TypeSymbol? type, bool hasErrors = false) 4957public BoundUnconvertedSwitchExpression Update(BoundExpression expression, ImmutableArray<BoundSwitchExpressionArm> switchArms, BoundDecisionDag reachabilityDecisionDag, LabelSymbol? defaultLabel, bool reportedNotExhaustive, TypeSymbol? type) 4971public BoundConvertedSwitchExpression(SyntaxNode syntax, TypeSymbol? naturalTypeOpt, bool wasTargetTyped, BoundExpression expression, ImmutableArray<BoundSwitchExpressionArm> switchArms, BoundDecisionDag reachabilityDecisionDag, LabelSymbol? defaultLabel, bool reportedNotExhaustive, TypeSymbol type, bool hasErrors = false) 4991public BoundConvertedSwitchExpression Update(TypeSymbol? naturalTypeOpt, bool wasTargetTyped, BoundExpression expression, ImmutableArray<BoundSwitchExpressionArm> switchArms, BoundDecisionDag reachabilityDecisionDag, LabelSymbol? defaultLabel, bool reportedNotExhaustive, TypeSymbol type) 5112public BoundWhenDecisionDagNode(SyntaxNode syntax, ImmutableArray<BoundPatternBinding> bindings, BoundExpression? whenExpression, BoundDecisionDagNode whenTrue, BoundDecisionDagNode? whenFalse, bool hasErrors = false) 5125public ImmutableArray<BoundPatternBinding> Bindings { get; } 5133public BoundWhenDecisionDagNode Update(ImmutableArray<BoundPatternBinding> bindings, BoundExpression? whenExpression, BoundDecisionDagNode whenTrue, BoundDecisionDagNode? whenFalse) 5659public BoundSwitchSection(SyntaxNode syntax, ImmutableArray<LocalSymbol> locals, ImmutableArray<BoundSwitchLabel> switchLabels, ImmutableArray<BoundStatement> statements, bool hasErrors = false) 5671public ImmutableArray<LocalSymbol> Locals { get; } 5672public ImmutableArray<BoundSwitchLabel> SwitchLabels { get; } 5677public BoundSwitchSection Update(ImmutableArray<LocalSymbol> locals, ImmutableArray<BoundSwitchLabel> switchLabels, ImmutableArray<BoundStatement> statements) 5766public BoundSequence(SyntaxNode syntax, ImmutableArray<LocalSymbol> locals, ImmutableArray<BoundExpression> sideEffects, BoundExpression value, TypeSymbol type, bool hasErrors = false) 5781public ImmutableArray<LocalSymbol> Locals { get; } 5782public ImmutableArray<BoundExpression> SideEffects { get; } 5788public BoundSequence Update(ImmutableArray<LocalSymbol> locals, ImmutableArray<BoundExpression> sideEffects, BoundExpression value, TypeSymbol type) 5802public BoundSpillSequence(SyntaxNode syntax, ImmutableArray<LocalSymbol> locals, ImmutableArray<BoundStatement> sideEffects, BoundExpression value, TypeSymbol type, bool hasErrors = false) 5817public ImmutableArray<LocalSymbol> Locals { get; } 5818public ImmutableArray<BoundStatement> SideEffects { get; } 5824public BoundSpillSequence Update(ImmutableArray<LocalSymbol> locals, ImmutableArray<BoundStatement> sideEffects, BoundExpression value, TypeSymbol type) 5838public BoundDynamicMemberAccess(SyntaxNode syntax, BoundExpression receiver, ImmutableArray<TypeWithAnnotations> typeArgumentsOpt, string name, bool invoked, bool indexed, TypeSymbol type, bool hasErrors = false) 5855public ImmutableArray<TypeWithAnnotations> TypeArgumentsOpt { get; } 5863public BoundDynamicMemberAccess Update(BoundExpression receiver, ImmutableArray<TypeWithAnnotations> typeArgumentsOpt, string name, bool invoked, bool indexed, TypeSymbol type) 5877protected BoundDynamicInvocableBase(BoundKind kind, SyntaxNode syntax, BoundExpression expression, ImmutableArray<BoundExpression> arguments, TypeSymbol? type, bool hasErrors = false) 5889public ImmutableArray<BoundExpression> Arguments { get; } 5894public BoundDynamicInvocation(SyntaxNode syntax, ImmutableArray<string?> argumentNamesOpt, ImmutableArray<RefKind> argumentRefKindsOpt, ImmutableArray<MethodSymbol> applicableMethods, BoundExpression expression, ImmutableArray<BoundExpression> arguments, TypeSymbol type, bool hasErrors = false) 5909public ImmutableArray<string?> ArgumentNamesOpt { get; } 5910public ImmutableArray<RefKind> ArgumentRefKindsOpt { get; } 5911public ImmutableArray<MethodSymbol> ApplicableMethods { get; } 5916public BoundDynamicInvocation Update(ImmutableArray<string?> argumentNamesOpt, ImmutableArray<RefKind> argumentRefKindsOpt, ImmutableArray<MethodSymbol> applicableMethods, BoundExpression expression, ImmutableArray<BoundExpression> arguments, TypeSymbol type) 6075public BoundMethodGroup(SyntaxNode syntax, ImmutableArray<TypeWithAnnotations> typeArgumentsOpt, string name, ImmutableArray<MethodSymbol> methods, Symbol? lookupSymbolOpt, DiagnosticInfo? lookupError, BoundMethodGroupFlags? flags, FunctionTypeSymbol? functionType, BoundExpression? receiverOpt, LookupResultKind resultKind, bool hasErrors = false) 6091public ImmutableArray<TypeWithAnnotations> TypeArgumentsOpt { get; } 6093public ImmutableArray<MethodSymbol> Methods { get; } 6102public BoundMethodGroup Update(ImmutableArray<TypeWithAnnotations> typeArgumentsOpt, string name, ImmutableArray<MethodSymbol> methods, Symbol? lookupSymbolOpt, DiagnosticInfo? lookupError, BoundMethodGroupFlags? flags, FunctionTypeSymbol? functionType, BoundExpression? receiverOpt, LookupResultKind resultKind) 6116public BoundPropertyGroup(SyntaxNode syntax, ImmutableArray<PropertySymbol> properties, BoundExpression? receiverOpt, LookupResultKind resultKind, bool hasErrors = false) 6125public ImmutableArray<PropertySymbol> Properties { get; } 6130public BoundPropertyGroup Update(ImmutableArray<PropertySymbol> properties, BoundExpression? receiverOpt, LookupResultKind resultKind) 6144public BoundCall(SyntaxNode syntax, BoundExpression? receiverOpt, ThreeState initialBindingReceiverIsSubjectToCloning, MethodSymbol method, ImmutableArray<BoundExpression> arguments, ImmutableArray<string?> argumentNamesOpt, ImmutableArray<RefKind> argumentRefKindsOpt, bool isDelegateCall, bool expanded, bool invokedAsExtensionMethod, ImmutableArray<int> argsToParamsOpt, BitVector defaultArguments, LookupResultKind resultKind, ImmutableArray<MethodSymbol> originalMethodsOpt, TypeSymbol type, bool hasErrors = false) 6171public ImmutableArray<BoundExpression> Arguments { get; } 6172public ImmutableArray<string?> ArgumentNamesOpt { get; } 6173public ImmutableArray<RefKind> ArgumentRefKindsOpt { get; } 6177public ImmutableArray<int> ArgsToParamsOpt { get; } 6180public ImmutableArray<MethodSymbol> OriginalMethodsOpt { get; } 6185public BoundCall Update(BoundExpression? receiverOpt, ThreeState initialBindingReceiverIsSubjectToCloning, MethodSymbol method, ImmutableArray<BoundExpression> arguments, ImmutableArray<string?> argumentNamesOpt, ImmutableArray<RefKind> argumentRefKindsOpt, bool isDelegateCall, bool expanded, bool invokedAsExtensionMethod, ImmutableArray<int> argsToParamsOpt, BitVector defaultArguments, LookupResultKind resultKind, ImmutableArray<MethodSymbol> originalMethodsOpt, TypeSymbol type) 6238public BoundAttribute(SyntaxNode syntax, MethodSymbol? constructor, ImmutableArray<BoundExpression> constructorArguments, ImmutableArray<string?> constructorArgumentNamesOpt, ImmutableArray<int> constructorArgumentsToParamsOpt, bool constructorExpanded, BitVector constructorDefaultArguments, ImmutableArray<BoundAssignmentOperator> namedArguments, LookupResultKind resultKind, TypeSymbol type, bool hasErrors = false) 6258public ImmutableArray<BoundExpression> ConstructorArguments { get; } 6259public ImmutableArray<string?> ConstructorArgumentNamesOpt { get; } 6260public ImmutableArray<int> ConstructorArgumentsToParamsOpt { get; } 6263public ImmutableArray<BoundAssignmentOperator> NamedArguments { get; } 6269public BoundAttribute Update(MethodSymbol? constructor, ImmutableArray<BoundExpression> constructorArguments, ImmutableArray<string?> constructorArgumentNamesOpt, ImmutableArray<int> constructorArgumentsToParamsOpt, bool constructorExpanded, BitVector constructorDefaultArguments, ImmutableArray<BoundAssignmentOperator> namedArguments, LookupResultKind resultKind, TypeSymbol type) 6283public BoundUnconvertedObjectCreationExpression(SyntaxNode syntax, ImmutableArray<BoundExpression> arguments, ImmutableArray<(string Name, Location Location)?> argumentNamesOpt, ImmutableArray<RefKind> argumentRefKindsOpt, InitializerExpressionSyntax? initializerOpt, Binder binder, bool hasErrors = false) 6298public ImmutableArray<BoundExpression> Arguments { get; } 6299public ImmutableArray<(string Name, Location Location)?> ArgumentNamesOpt { get; } 6300public ImmutableArray<RefKind> ArgumentRefKindsOpt { get; } 6307public BoundUnconvertedObjectCreationExpression Update(ImmutableArray<BoundExpression> arguments, ImmutableArray<(string Name, Location Location)?> argumentNamesOpt, ImmutableArray<RefKind> argumentRefKindsOpt, InitializerExpressionSyntax? initializerOpt, Binder binder) 6342public BoundObjectCreationExpression(SyntaxNode syntax, MethodSymbol constructor, ImmutableArray<MethodSymbol> constructorsGroup, ImmutableArray<BoundExpression> arguments, ImmutableArray<string?> argumentNamesOpt, ImmutableArray<RefKind> argumentRefKindsOpt, bool expanded, ImmutableArray<int> argsToParamsOpt, BitVector defaultArguments, ConstantValue? constantValueOpt, BoundObjectInitializerExpressionBase? initializerExpressionOpt, bool wasTargetTyped, TypeSymbol type, bool hasErrors = false) 6365public ImmutableArray<MethodSymbol> ConstructorsGroup { get; } 6366public override ImmutableArray<BoundExpression> Arguments { get; } 6367public override ImmutableArray<string?> ArgumentNamesOpt { get; } 6368public override ImmutableArray<RefKind> ArgumentRefKindsOpt { get; } 6370public override ImmutableArray<int> ArgsToParamsOpt { get; } 6379public BoundObjectCreationExpression Update(MethodSymbol constructor, ImmutableArray<MethodSymbol> constructorsGroup, ImmutableArray<BoundExpression> arguments, ImmutableArray<string?> argumentNamesOpt, ImmutableArray<RefKind> argumentRefKindsOpt, bool expanded, ImmutableArray<int> argsToParamsOpt, BitVector defaultArguments, ConstantValue? constantValueOpt, BoundObjectInitializerExpressionBase? initializerExpressionOpt, bool wasTargetTyped, TypeSymbol type) 6393protected BoundCollectionExpressionBase(BoundKind kind, SyntaxNode syntax, ImmutableArray<BoundNode> elements, TypeSymbol? type, bool hasErrors = false) 6402public ImmutableArray<BoundNode> Elements { get; } 6407public BoundUnconvertedCollectionExpression(SyntaxNode syntax, ImmutableArray<BoundNode> elements, bool hasErrors = false) 6420public BoundUnconvertedCollectionExpression Update(ImmutableArray<BoundNode> elements) 6434public BoundCollectionExpression(SyntaxNode syntax, CollectionExpressionTypeKind collectionTypeKind, BoundObjectOrCollectionValuePlaceholder? placeholder, BoundExpression? collectionCreation, MethodSymbol? collectionBuilderMethod, BoundValuePlaceholder? collectionBuilderInvocationPlaceholder, BoundExpression? collectionBuilderInvocationConversion, bool wasTargetTyped, BoundUnconvertedCollectionExpression unconvertedCollectionExpression, ImmutableArray<BoundNode> elements, TypeSymbol type, bool hasErrors = false) 6465public BoundCollectionExpression Update(CollectionExpressionTypeKind collectionTypeKind, BoundObjectOrCollectionValuePlaceholder? placeholder, BoundExpression? collectionCreation, MethodSymbol? collectionBuilderMethod, BoundValuePlaceholder? collectionBuilderInvocationPlaceholder, BoundExpression? collectionBuilderInvocationConversion, bool wasTargetTyped, BoundUnconvertedCollectionExpression unconvertedCollectionExpression, ImmutableArray<BoundNode> elements, TypeSymbol type) 6547protected BoundTupleExpression(BoundKind kind, SyntaxNode syntax, ImmutableArray<BoundExpression> arguments, ImmutableArray<string?> argumentNamesOpt, ImmutableArray<bool> inferredNamesOpt, TypeSymbol? type, bool hasErrors = false) 6558public ImmutableArray<BoundExpression> Arguments { get; } 6559public ImmutableArray<string?> ArgumentNamesOpt { get; } 6560public ImmutableArray<bool> InferredNamesOpt { get; } 6565public BoundTupleLiteral(SyntaxNode syntax, ImmutableArray<BoundExpression> arguments, ImmutableArray<string?> argumentNamesOpt, ImmutableArray<bool> inferredNamesOpt, TypeSymbol? type, bool hasErrors = false) 6578public BoundTupleLiteral Update(ImmutableArray<BoundExpression> arguments, ImmutableArray<string?> argumentNamesOpt, ImmutableArray<bool> inferredNamesOpt, TypeSymbol? type) 6592public BoundConvertedTupleLiteral(SyntaxNode syntax, BoundTupleLiteral? sourceTuple, bool wasTargetTyped, ImmutableArray<BoundExpression> arguments, ImmutableArray<string?> argumentNamesOpt, ImmutableArray<bool> inferredNamesOpt, TypeSymbol? type, bool hasErrors = false) 6608public BoundConvertedTupleLiteral Update(BoundTupleLiteral? sourceTuple, bool wasTargetTyped, ImmutableArray<BoundExpression> arguments, ImmutableArray<string?> argumentNamesOpt, ImmutableArray<bool> inferredNamesOpt, TypeSymbol? type) 6622public BoundDynamicObjectCreationExpression(SyntaxNode syntax, string name, ImmutableArray<BoundExpression> arguments, ImmutableArray<string?> argumentNamesOpt, ImmutableArray<RefKind> argumentRefKindsOpt, BoundObjectInitializerExpressionBase? initializerExpressionOpt, ImmutableArray<MethodSymbol> applicableMethods, bool wasTargetTyped, TypeSymbol type, bool hasErrors = false) 6641public override ImmutableArray<BoundExpression> Arguments { get; } 6642public override ImmutableArray<string?> ArgumentNamesOpt { get; } 6643public override ImmutableArray<RefKind> ArgumentRefKindsOpt { get; } 6645public ImmutableArray<MethodSymbol> ApplicableMethods { get; } 6651public BoundDynamicObjectCreationExpression Update(string name, ImmutableArray<BoundExpression> arguments, ImmutableArray<string?> argumentNamesOpt, ImmutableArray<RefKind> argumentRefKindsOpt, BoundObjectInitializerExpressionBase? initializerExpressionOpt, ImmutableArray<MethodSymbol> applicableMethods, bool wasTargetTyped, TypeSymbol type) 6697protected BoundObjectInitializerExpressionBase(BoundKind kind, SyntaxNode syntax, BoundObjectOrCollectionValuePlaceholder placeholder, ImmutableArray<BoundExpression> initializers, TypeSymbol type, bool hasErrors = false) 6711public ImmutableArray<BoundExpression> Initializers { get; } 6716public BoundObjectInitializerExpression(SyntaxNode syntax, BoundObjectOrCollectionValuePlaceholder placeholder, ImmutableArray<BoundExpression> initializers, TypeSymbol type, bool hasErrors = false) 6730public BoundObjectInitializerExpression Update(BoundObjectOrCollectionValuePlaceholder placeholder, ImmutableArray<BoundExpression> initializers, TypeSymbol type) 6744public BoundObjectInitializerMember(SyntaxNode syntax, Symbol? memberSymbol, ImmutableArray<BoundExpression> arguments, ImmutableArray<string?> argumentNamesOpt, ImmutableArray<RefKind> argumentRefKindsOpt, bool expanded, ImmutableArray<int> argsToParamsOpt, BitVector defaultArguments, LookupResultKind resultKind, AccessorKind accessorKind, TypeSymbol receiverType, TypeSymbol type, bool hasErrors = false) 6766public ImmutableArray<BoundExpression> Arguments { get; } 6767public ImmutableArray<string?> ArgumentNamesOpt { get; } 6768public ImmutableArray<RefKind> ArgumentRefKindsOpt { get; } 6770public ImmutableArray<int> ArgsToParamsOpt { get; } 6779public BoundObjectInitializerMember Update(Symbol? memberSymbol, ImmutableArray<BoundExpression> arguments, ImmutableArray<string?> argumentNamesOpt, ImmutableArray<RefKind> argumentRefKindsOpt, bool expanded, ImmutableArray<int> argsToParamsOpt, BitVector defaultArguments, LookupResultKind resultKind, AccessorKind accessorKind, TypeSymbol receiverType, TypeSymbol type) 6838public BoundCollectionInitializerExpression(SyntaxNode syntax, BoundObjectOrCollectionValuePlaceholder placeholder, ImmutableArray<BoundExpression> initializers, TypeSymbol type, bool hasErrors = false) 6852public BoundCollectionInitializerExpression Update(BoundObjectOrCollectionValuePlaceholder placeholder, ImmutableArray<BoundExpression> initializers, TypeSymbol type) 6866public BoundCollectionElementInitializer(SyntaxNode syntax, MethodSymbol addMethod, ImmutableArray<BoundExpression> arguments, BoundExpression? implicitReceiverOpt, bool expanded, ImmutableArray<int> argsToParamsOpt, BitVector defaultArguments, bool invokedAsExtensionMethod, LookupResultKind resultKind, TypeSymbol type, bool hasErrors = false) 6886public ImmutableArray<BoundExpression> Arguments { get; } 6889public ImmutableArray<int> ArgsToParamsOpt { get; } 6897public BoundCollectionElementInitializer Update(MethodSymbol addMethod, ImmutableArray<BoundExpression> arguments, BoundExpression? implicitReceiverOpt, bool expanded, ImmutableArray<int> argsToParamsOpt, BitVector defaultArguments, bool invokedAsExtensionMethod, LookupResultKind resultKind, TypeSymbol type) 6911public BoundDynamicCollectionElementInitializer(SyntaxNode syntax, ImmutableArray<MethodSymbol> applicableMethods, BoundExpression expression, ImmutableArray<BoundExpression> arguments, TypeSymbol type, bool hasErrors = false) 6924public ImmutableArray<MethodSymbol> ApplicableMethods { get; } 6929public BoundDynamicCollectionElementInitializer Update(ImmutableArray<MethodSymbol> applicableMethods, BoundExpression expression, ImmutableArray<BoundExpression> arguments, TypeSymbol type) 6978public BoundAnonymousObjectCreationExpression(SyntaxNode syntax, MethodSymbol constructor, ImmutableArray<BoundExpression> arguments, ImmutableArray<BoundAnonymousPropertyDeclaration> declarations, TypeSymbol type, bool hasErrors = false) 6994public ImmutableArray<BoundExpression> Arguments { get; } 6995public ImmutableArray<BoundAnonymousPropertyDeclaration> Declarations { get; } 7000public BoundAnonymousObjectCreationExpression Update(MethodSymbol constructor, ImmutableArray<BoundExpression> arguments, ImmutableArray<BoundAnonymousPropertyDeclaration> declarations, TypeSymbol type) 7120public BoundArrayCreation(SyntaxNode syntax, ImmutableArray<BoundExpression> bounds, BoundArrayInitialization? initializerOpt, TypeSymbol type, bool hasErrors = false) 7132public ImmutableArray<BoundExpression> Bounds { get; } 7138public BoundArrayCreation Update(ImmutableArray<BoundExpression> bounds, BoundArrayInitialization? initializerOpt, TypeSymbol type) 7152public BoundArrayInitialization(SyntaxNode syntax, bool isInferred, ImmutableArray<BoundExpression> initializers, bool hasErrors = false) 7164public ImmutableArray<BoundExpression> Initializers { get; } 7169public BoundArrayInitialization Update(bool isInferred, ImmutableArray<BoundExpression> initializers) 7412public BoundIndexerAccess(SyntaxNode syntax, BoundExpression? receiverOpt, ThreeState initialBindingReceiverIsSubjectToCloning, PropertySymbol indexer, ImmutableArray<BoundExpression> arguments, ImmutableArray<string?> argumentNamesOpt, ImmutableArray<RefKind> argumentRefKindsOpt, bool expanded, AccessorKind accessorKind, ImmutableArray<int> argsToParamsOpt, BitVector defaultArguments, ImmutableArray<PropertySymbol> originalIndexersOpt, TypeSymbol type, bool hasErrors = false) 7437public ImmutableArray<BoundExpression> Arguments { get; } 7438public ImmutableArray<string?> ArgumentNamesOpt { get; } 7439public ImmutableArray<RefKind> ArgumentRefKindsOpt { get; } 7442public ImmutableArray<int> ArgsToParamsOpt { get; } 7444public ImmutableArray<PropertySymbol> OriginalIndexersOpt { get; } 7449public BoundIndexerAccess Update(BoundExpression? receiverOpt, ThreeState initialBindingReceiverIsSubjectToCloning, PropertySymbol indexer, ImmutableArray<BoundExpression> arguments, ImmutableArray<string?> argumentNamesOpt, ImmutableArray<RefKind> argumentRefKindsOpt, bool expanded, AccessorKind accessorKind, ImmutableArray<int> argsToParamsOpt, BitVector defaultArguments, ImmutableArray<PropertySymbol> originalIndexersOpt, TypeSymbol type) 7463public BoundImplicitIndexerAccess(SyntaxNode syntax, BoundExpression receiver, BoundExpression argument, BoundExpression lengthOrCountAccess, BoundImplicitIndexerReceiverPlaceholder receiverPlaceholder, BoundExpression indexerOrSliceAccess, ImmutableArray<BoundImplicitIndexerValuePlaceholder> argumentPlaceholders, TypeSymbol type, bool hasErrors = false) 7493public ImmutableArray<BoundImplicitIndexerValuePlaceholder> ArgumentPlaceholders { get; } 7498public BoundImplicitIndexerAccess Update(BoundExpression receiver, BoundExpression argument, BoundExpression lengthOrCountAccess, BoundImplicitIndexerReceiverPlaceholder receiverPlaceholder, BoundExpression indexerOrSliceAccess, ImmutableArray<BoundImplicitIndexerValuePlaceholder> argumentPlaceholders, TypeSymbol type) 7553public BoundDynamicIndexerAccess(SyntaxNode syntax, BoundExpression receiver, ImmutableArray<BoundExpression> arguments, ImmutableArray<string?> argumentNamesOpt, ImmutableArray<RefKind> argumentRefKindsOpt, ImmutableArray<PropertySymbol> applicableIndexers, TypeSymbol type, bool hasErrors = false) 7571public ImmutableArray<BoundExpression> Arguments { get; } 7572public ImmutableArray<string?> ArgumentNamesOpt { get; } 7573public ImmutableArray<RefKind> ArgumentRefKindsOpt { get; } 7574public ImmutableArray<PropertySymbol> ApplicableIndexers { get; } 7579public BoundDynamicIndexerAccess Update(BoundExpression receiver, ImmutableArray<BoundExpression> arguments, ImmutableArray<string?> argumentNamesOpt, ImmutableArray<RefKind> argumentRefKindsOpt, ImmutableArray<PropertySymbol> applicableIndexers, TypeSymbol type) 7718public BoundTypeOrInstanceInitializers(SyntaxNode syntax, ImmutableArray<BoundStatement> statements, bool hasErrors = false) 7730public new BoundTypeOrInstanceInitializers Update(ImmutableArray<BoundStatement> statements) 7777protected BoundInterpolatedStringBase(BoundKind kind, SyntaxNode syntax, ImmutableArray<BoundExpression> parts, ConstantValue? constantValueOpt, TypeSymbol? type, bool hasErrors = false) 7787public ImmutableArray<BoundExpression> Parts { get; } 7793public BoundUnconvertedInterpolatedString(SyntaxNode syntax, ImmutableArray<BoundExpression> parts, ConstantValue? constantValueOpt, TypeSymbol? type, bool hasErrors = false) 7805public BoundUnconvertedInterpolatedString Update(ImmutableArray<BoundExpression> parts, ConstantValue? constantValueOpt, TypeSymbol? type) 7819public BoundInterpolatedString(SyntaxNode syntax, InterpolatedStringHandlerData? interpolationData, ImmutableArray<BoundExpression> parts, ConstantValue? constantValueOpt, TypeSymbol? type, bool hasErrors = false) 7833public BoundInterpolatedString Update(InterpolatedStringHandlerData? interpolationData, ImmutableArray<BoundExpression> parts, ConstantValue? constantValueOpt, TypeSymbol? type) 8148public BoundRecursivePattern(SyntaxNode syntax, BoundTypeExpression? declaredType, MethodSymbol? deconstructMethod, ImmutableArray<BoundPositionalSubpattern> deconstruction, ImmutableArray<BoundPropertySubpattern> properties, bool isExplicitNotNullTest, Symbol? variable, BoundExpression? variableAccess, TypeSymbol inputType, TypeSymbol narrowedType, bool hasErrors = false) 8168public ImmutableArray<BoundPositionalSubpattern> Deconstruction { get; } 8169public ImmutableArray<BoundPropertySubpattern> Properties { get; } 8175public BoundRecursivePattern Update(BoundTypeExpression? declaredType, MethodSymbol? deconstructMethod, ImmutableArray<BoundPositionalSubpattern> deconstruction, ImmutableArray<BoundPropertySubpattern> properties, bool isExplicitNotNullTest, Symbol? variable, BoundExpression? variableAccess, TypeSymbol inputType, TypeSymbol narrowedType) 8189public BoundListPattern(SyntaxNode syntax, ImmutableArray<BoundPattern> subpatterns, bool hasSlice, BoundExpression? lengthAccess, BoundExpression? indexerAccess, BoundListPatternReceiverPlaceholder? receiverPlaceholder, BoundListPatternIndexPlaceholder? argumentPlaceholder, Symbol? variable, BoundExpression? variableAccess, TypeSymbol inputType, TypeSymbol narrowedType, bool hasErrors = false) 8209public ImmutableArray<BoundPattern> Subpatterns { get; } 8219public BoundListPattern Update(ImmutableArray<BoundPattern> subpatterns, bool hasSlice, BoundExpression? lengthAccess, BoundExpression? indexerAccess, BoundListPatternReceiverPlaceholder? receiverPlaceholder, BoundListPatternIndexPlaceholder? argumentPlaceholder, Symbol? variable, BoundExpression? variableAccess, TypeSymbol inputType, TypeSymbol narrowedType) 8272public BoundITuplePattern(SyntaxNode syntax, MethodSymbol getLengthMethod, MethodSymbol getItemMethod, ImmutableArray<BoundPositionalSubpattern> subpatterns, TypeSymbol inputType, TypeSymbol narrowedType, bool hasErrors = false) 8293public ImmutableArray<BoundPositionalSubpattern> Subpatterns { get; } 8298public BoundITuplePattern Update(MethodSymbol getLengthMethod, MethodSymbol getItemMethod, ImmutableArray<BoundPositionalSubpattern> subpatterns, TypeSymbol inputType, TypeSymbol narrowedType) 8767public BoundConstructorMethodBody(SyntaxNode syntax, ImmutableArray<LocalSymbol> locals, BoundStatement? initializer, BoundBlock? blockBody, BoundBlock? expressionBody, bool hasErrors = false) 8777public ImmutableArray<LocalSymbol> Locals { get; } 8783public BoundConstructorMethodBody Update(ImmutableArray<LocalSymbol> locals, BoundStatement? initializer, BoundBlock? blockBody, BoundBlock? expressionBody) 10935ImmutableArray<BoundExpression> childBoundNodes = this.VisitList(node.ChildBoundNodes); 10941ImmutableArray<BoundNode> childBoundNodes = this.VisitList(node.ChildBoundNodes); 10952ImmutableArray<BoundExpression> boundDimensionsOpt = this.VisitList(node.BoundDimensionsOpt); 11018ImmutableArray<BoundExpression> arguments = this.VisitList(node.Arguments); 11136ImmutableArray<BoundExpression> indices = this.VisitList(node.Indices); 11294ImmutableArray<BoundExpression> arguments = this.VisitList(node.Arguments); 11323ImmutableArray<BoundStatement> statements = this.VisitList(node.Statements); 11328ImmutableArray<BoundStatement> statements = this.VisitList(node.Statements); 11340ImmutableArray<BoundExpression> argumentsOpt = this.VisitList(node.ArgumentsOpt); 11345ImmutableArray<BoundLocalDeclaration> localDeclarations = this.VisitList(node.LocalDeclarations); 11351ImmutableArray<BoundLocalDeclaration> localDeclarations = this.VisitList(node.LocalDeclarations); 11387ImmutableArray<BoundSwitchSection> switchSections = this.VisitList(node.SwitchSections); 11465ImmutableArray<BoundCatchBlock> catchBlocks = this.VisitList(node.CatchBlocks); 11548ImmutableArray<BoundStatement> statements = this.VisitList(node.Statements); 11566ImmutableArray<BoundSwitchExpressionArm> switchArms = this.VisitList(node.SwitchArms); 11574ImmutableArray<BoundSwitchExpressionArm> switchArms = this.VisitList(node.SwitchArms); 11692ImmutableArray<BoundSwitchLabel> switchLabels = this.VisitList(node.SwitchLabels); 11693ImmutableArray<BoundStatement> statements = this.VisitList(node.Statements); 11710ImmutableArray<BoundExpression> sideEffects = this.VisitList(node.SideEffects); 11717ImmutableArray<BoundStatement> sideEffects = this.VisitList(node.SideEffects); 11731ImmutableArray<BoundExpression> arguments = this.VisitList(node.Arguments); 11777ImmutableArray<BoundExpression> arguments = this.VisitList(node.Arguments); 11790ImmutableArray<BoundExpression> constructorArguments = this.VisitList(node.ConstructorArguments); 11791ImmutableArray<BoundAssignmentOperator> namedArguments = this.VisitList(node.NamedArguments); 11797ImmutableArray<BoundExpression> arguments = this.VisitList(node.Arguments); 11803ImmutableArray<BoundExpression> arguments = this.VisitList(node.Arguments); 11810ImmutableArray<BoundNode> elements = this.VisitList(node.Elements); 11821ImmutableArray<BoundNode> elements = this.VisitList(node.Elements); 11842ImmutableArray<BoundExpression> arguments = this.VisitList(node.Arguments); 11849ImmutableArray<BoundExpression> arguments = this.VisitList(node.Arguments); 11855ImmutableArray<BoundExpression> arguments = this.VisitList(node.Arguments); 11869ImmutableArray<BoundExpression> initializers = this.VisitList(node.Initializers); 11875ImmutableArray<BoundExpression> arguments = this.VisitList(node.Arguments); 11889ImmutableArray<BoundExpression> initializers = this.VisitList(node.Initializers); 11895ImmutableArray<BoundExpression> arguments = this.VisitList(node.Arguments); 11903ImmutableArray<BoundExpression> arguments = this.VisitList(node.Arguments); 11914ImmutableArray<BoundExpression> arguments = this.VisitList(node.Arguments); 11915ImmutableArray<BoundAnonymousPropertyDeclaration> declarations = this.VisitList(node.Declarations); 11938ImmutableArray<BoundExpression> bounds = this.VisitList(node.Bounds); 11945ImmutableArray<BoundExpression> initializers = this.VisitList(node.Initializers); 11991ImmutableArray<BoundExpression> arguments = this.VisitList(node.Arguments); 12002ImmutableArray<BoundImplicitIndexerValuePlaceholder> argumentPlaceholders = node.ArgumentPlaceholders; 12016ImmutableArray<BoundExpression> arguments = this.VisitList(node.Arguments); 12043ImmutableArray<BoundStatement> statements = this.VisitList(node.Statements); 12054ImmutableArray<BoundExpression> parts = this.VisitList(node.Parts); 12060ImmutableArray<BoundExpression> parts = this.VisitList(node.Parts); 12114ImmutableArray<BoundPositionalSubpattern> deconstruction = this.VisitList(node.Deconstruction); 12115ImmutableArray<BoundPropertySubpattern> properties = this.VisitList(node.Properties); 12123ImmutableArray<BoundPattern> subpatterns = this.VisitList(node.Subpatterns); 12145ImmutableArray<BoundPositionalSubpattern> subpatterns = this.VisitList(node.Subpatterns); 12268ImmutableArray<LocalSymbol> locals = GetUpdatedArray(node, node.Locals); 12276ImmutableArray<LocalSymbol> locals = GetUpdatedArray(node, node.Locals); 12284ImmutableArray<LocalSymbol> locals = GetUpdatedArray(node, node.Locals); 12486ImmutableArray<Symbol?> symbols = GetUpdatedArray(node, node.Symbols); 12487ImmutableArray<BoundExpression> childBoundNodes = this.VisitList(node.ChildBoundNodes); 12505ImmutableArray<BoundExpression> boundDimensionsOpt = this.VisitList(node.BoundDimensionsOpt); 12548ImmutableArray<MethodSymbol> originalUserDefinedOperatorsOpt = GetUpdatedArray(node, node.OriginalUserDefinedOperatorsOpt); 12568ImmutableArray<MethodSymbol> originalUserDefinedOperatorsOpt = GetUpdatedArray(node, node.OriginalUserDefinedOperatorsOpt); 12678ImmutableArray<BoundExpression> arguments = this.VisitList(node.Arguments); 12802ImmutableArray<MethodSymbol> originalUserDefinedOperatorsOpt = GetUpdatedArray(node, node.OriginalUserDefinedOperatorsOpt); 12939ImmutableArray<BoundExpression> indices = this.VisitList(node.Indices); 13304ImmutableArray<MethodSymbol> originalUserDefinedConversionsOpt = GetUpdatedArray(node, node.OriginalUserDefinedConversionsOpt); 13352ImmutableArray<BoundExpression> arguments = this.VisitList(node.Arguments); 13390ImmutableArray<LocalSymbol> locals = GetUpdatedArray(node, node.Locals); 13391ImmutableArray<LocalFunctionSymbol> localFunctions = GetUpdatedArray(node, node.LocalFunctions); 13393ImmutableArray<BoundStatement> statements = this.VisitList(node.Statements); 13399ImmutableArray<LocalSymbol> locals = GetUpdatedArray(node, node.Locals); 13400ImmutableArray<BoundStatement> statements = this.VisitList(node.Statements); 13406ImmutableArray<StateMachineFieldSymbol> fields = GetUpdatedArray(node, node.Fields); 13416ImmutableArray<BoundExpression> argumentsOpt = this.VisitList(node.ArgumentsOpt); 13430ImmutableArray<LocalSymbol> innerLocals = GetUpdatedArray(node, node.InnerLocals); 13431ImmutableArray<LocalFunctionSymbol> innerLocalFunctions = GetUpdatedArray(node, node.InnerLocalFunctions); 13433ImmutableArray<BoundSwitchSection> switchSections = this.VisitList(node.SwitchSections); 13441ImmutableArray<LocalSymbol> locals = GetUpdatedArray(node, node.Locals); 13449ImmutableArray<LocalSymbol> locals = GetUpdatedArray(node, node.Locals); 13457ImmutableArray<LocalSymbol> outerLocals = GetUpdatedArray(node, node.OuterLocals); 13458ImmutableArray<LocalSymbol> innerLocals = GetUpdatedArray(node, node.InnerLocals); 13468ImmutableArray<LocalSymbol> iterationVariables = GetUpdatedArray(node, node.IterationVariables); 13482ImmutableArray<LocalSymbol> locals = GetUpdatedArray(node, node.Locals); 13492ImmutableArray<LocalSymbol> locals = GetUpdatedArray(node, node.Locals); 13500ImmutableArray<LocalSymbol> locals = GetUpdatedArray(node, node.Locals); 13664ImmutableArray<LocalSymbol> locals = GetUpdatedArray(node, node.Locals); 13674ImmutableArray<BoundSwitchExpressionArm> switchArms = this.VisitList(node.SwitchArms); 13694ImmutableArray<BoundSwitchExpressionArm> switchArms = this.VisitList(node.SwitchArms); 13762ImmutableArray<LocalSymbol> locals = GetUpdatedArray(node, node.Locals); 13763ImmutableArray<BoundSwitchLabel> switchLabels = this.VisitList(node.SwitchLabels); 13764ImmutableArray<BoundStatement> statements = this.VisitList(node.Statements); 13787ImmutableArray<LocalSymbol> locals = GetUpdatedArray(node, node.Locals); 13788ImmutableArray<BoundExpression> sideEffects = this.VisitList(node.SideEffects); 13806ImmutableArray<LocalSymbol> locals = GetUpdatedArray(node, node.Locals); 13807ImmutableArray<BoundStatement> sideEffects = this.VisitList(node.SideEffects); 13842ImmutableArray<MethodSymbol> applicableMethods = GetUpdatedArray(node, node.ApplicableMethods); 13844ImmutableArray<BoundExpression> arguments = this.VisitList(node.Arguments); 13929ImmutableArray<MethodSymbol> methods = GetUpdatedArray(node, node.Methods); 13949ImmutableArray<PropertySymbol> properties = GetUpdatedArray(node, node.Properties); 13968ImmutableArray<MethodSymbol> originalMethodsOpt = GetUpdatedArray(node, node.OriginalMethodsOpt); 13970ImmutableArray<BoundExpression> arguments = this.VisitList(node.Arguments); 14007ImmutableArray<BoundExpression> constructorArguments = this.VisitList(node.ConstructorArguments); 14008ImmutableArray<BoundAssignmentOperator> namedArguments = this.VisitList(node.NamedArguments); 14025ImmutableArray<BoundExpression> arguments = this.VisitList(node.Arguments); 14043ImmutableArray<MethodSymbol> constructorsGroup = GetUpdatedArray(node, node.ConstructorsGroup); 14044ImmutableArray<BoundExpression> arguments = this.VisitList(node.Arguments); 14062ImmutableArray<BoundNode> elements = this.VisitList(node.Elements); 14085ImmutableArray<BoundNode> elements = this.VisitList(node.Elements); 14114ImmutableArray<BoundExpression> arguments = this.VisitList(node.Arguments); 14132ImmutableArray<BoundExpression> arguments = this.VisitList(node.Arguments); 14149ImmutableArray<MethodSymbol> applicableMethods = GetUpdatedArray(node, node.ApplicableMethods); 14150ImmutableArray<BoundExpression> arguments = this.VisitList(node.Arguments); 14186ImmutableArray<BoundExpression> initializers = this.VisitList(node.Initializers); 14205ImmutableArray<BoundExpression> arguments = this.VisitList(node.Arguments); 14240ImmutableArray<BoundExpression> initializers = this.VisitList(node.Initializers); 14258ImmutableArray<BoundExpression> arguments = this.VisitList(node.Arguments); 14276ImmutableArray<MethodSymbol> applicableMethods = GetUpdatedArray(node, node.ApplicableMethods); 14278ImmutableArray<BoundExpression> arguments = this.VisitList(node.Arguments); 14308ImmutableArray<BoundExpression> arguments = this.VisitList(node.Arguments); 14309ImmutableArray<BoundAnonymousPropertyDeclaration> declarations = this.VisitList(node.Declarations); 14378ImmutableArray<BoundExpression> bounds = this.VisitList(node.Bounds); 14396ImmutableArray<BoundExpression> initializers = this.VisitList(node.Initializers); 14523ImmutableArray<PropertySymbol> originalIndexersOpt = GetUpdatedArray(node, node.OriginalIndexersOpt); 14525ImmutableArray<BoundExpression> arguments = this.VisitList(node.Arguments); 14560ImmutableArray<PropertySymbol> applicableIndexers = GetUpdatedArray(node, node.ApplicableIndexers); 14562ImmutableArray<BoundExpression> arguments = this.VisitList(node.Arguments); 14653ImmutableArray<BoundExpression> parts = this.VisitList(node.Parts); 14670ImmutableArray<BoundExpression> parts = this.VisitList(node.Parts); 14779ImmutableArray<BoundPositionalSubpattern> deconstruction = this.VisitList(node.Deconstruction); 14780ImmutableArray<BoundPropertySubpattern> properties = this.VisitList(node.Properties); 14790ImmutableArray<BoundPattern> subpatterns = this.VisitList(node.Subpatterns); 14816ImmutableArray<BoundPositionalSubpattern> subpatterns = this.VisitList(node.Subpatterns); 14951ImmutableArray<LocalSymbol> locals = GetUpdatedArray(node, node.Locals);
Lowering\AsyncRewriter\AsyncExceptionHandlerRewriter.cs (4)
176return _F.Try((BoundBlock)finalizedRegion, ImmutableArray<BoundCatchBlock>.Empty, rewrittenFinally); 465var catches = node.CatchBlocks; 572ImmutableArray<LocalSymbol> handlerLocals; 598handlerLocals = ImmutableArray<LocalSymbol>.Empty;
Lowering\AsyncRewriter\AsyncIteratorMethodToStateMachineRewriter.cs (3)
58ImmutableArray<FieldSymbol> nonReusableFieldsForCleanup, 93protected override BoundStatement GenerateCleanupForExit(ImmutableArray<StateMachineFieldSymbol> rootHoistedLocals) 161ImmutableArray<BoundExpression>.Empty));
Lowering\AsyncRewriter\AsyncMethodBuilderMemberCollection.cs (2)
476var members = builderType.GetMembers(methodName); 504var members = builderType.GetMembers(propertyName);
Lowering\AsyncRewriter\AsyncMethodToStateMachineRewriter.cs (13)
76ImmutableArray<FieldSymbol> nonReusableFieldsForCleanup, 141ImmutableArray<StateMachineFieldSymbol> rootScopeHoistedLocals; 153F.Block(ImmutableArray<LocalSymbol>.Empty, 189var newStatements = bodyBuilder.ToImmutableAndFree(); 213BoundCatchBlock generateExceptionHandling(LocalSymbol exceptionLocal, ImmutableArray<StateMachineFieldSymbol> rootHoistedLocals) 249protected virtual BoundStatement GenerateTopLevelTry(BoundBlock tryBlock, ImmutableArray<BoundCatchBlock> catchBlocks) 261: ImmutableArray<BoundExpression>.Empty)); 264protected virtual BoundStatement GenerateCleanupForExit(ImmutableArray<StateMachineFieldSymbol> rootHoistedLocals) 435typeArgumentsWithAnnotations: ImmutableArray<TypeWithAnnotations>.Empty, 436loweredArguments: ImmutableArray<BoundExpression>.Empty, 437argumentNames: ImmutableArray<string>.Empty, 438refKinds: ImmutableArray<RefKind>.Empty, 651private static ImmutableArray<LocalSymbol> SingletonOrPair(LocalSymbol first, LocalSymbol secondOpt)
Lowering\AsyncRewriter\AsyncRewriter.cs (1)
223return new BoundBadStatement(F.Syntax, ImmutableArray<BoundNode>.Empty, hasErrors: true);
Lowering\AsyncRewriter\AsyncStateMachine.cs (2)
22private readonly ImmutableArray<NamedTypeSymbol> _interfaces; 78internal override ImmutableArray<NamedTypeSymbol> InterfacesNoUseSiteDiagnostics(ConsList<TypeSymbol> basesBeingResolved)
Lowering\ClosureConversion\ClosureConversion.Analysis.Tree.cs (2)
710private void PushOrReuseScope<TSymbol>(BoundNode node, ImmutableArray<TSymbol> locals) 786private void DeclareLocals<TSymbol>(Scope scope, ImmutableArray<TSymbol> locals, bool declareAsFree = false)
Lowering\ClosureConversion\ClosureConversion.cs (25)
118private ImmutableArray<TypeParameterSymbol> _currentTypeParameters; 460var structEnvironments = getStructEnvironments(nestedFunction); 479static ImmutableArray<SynthesizedClosureEnvironment> getStructEnvironments(Analysis.NestedFunction function) 873ref ImmutableArray<BoundExpression> arguments, 874ref ImmutableArray<RefKind> argRefKinds) 903var typeParameters = ((SynthesizedClosureEnvironment)frameType).ConstructedFromTypeParameters; 905var subst = this.TypeMap.SubstituteTypeParameters(typeParameters); 960private ImmutableArray<TypeWithAnnotations> SubstituteTypeArguments(ImmutableArray<TypeWithAnnotations> typeArguments) 1013ImmutableArray<TypeWithAnnotations> typeArgumentsOpt, 1073var args = VisitList(node.Arguments); 1074var argRefKinds = node.ArgumentRefKindsOpt; 1123locals: ImmutableArray<LocalSymbol>.Empty, 1204var statements = VisitList(node.Statements); 1233var rewrittenCatchLocals = newLocals.ToImmutableAndFree(); 1340var arguments = default(ImmutableArray<BoundExpression>); 1341var argRefKinds = default(ImmutableArray<RefKind>); 1367ImmutableArray<BoundExpression> arguments = default; 1368ImmutableArray<RefKind> argRefKinds = default; 1439private DebugId GetLambdaId(SyntaxNode syntax, ClosureKind closureKind, int closureOrdinal, ImmutableArray<DebugId> structClosureIds, RuntimeRudeEdit? closureRudeEdit) 1559var oldTypeParameters = _currentTypeParameters; 1651RemapLambdaOrLocalFunction(node.Syntax, node.Symbol, default(ImmutableArray<TypeWithAnnotations>), closureKind, ref referencedMethod, out receiver, out constructedFrame); 1731return new BoundBadExpression(F.Syntax, LookupResultKind.Empty, ImmutableArray<Symbol>.Empty, ImmutableArray.Create<BoundExpression>(node), node.Type);
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (7)
310private BoundExpression Indices(ImmutableArray<BoundExpression> expressions) 326private BoundExpression Expressions(ImmutableArray<BoundExpression> expressions) 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 (3)
107var typeArguments = frame.TypeArgumentsWithAnnotationsNoUseSiteDiagnostics; 122public override ImmutableArray<CustomModifier> RefCustomModifiers => ImmutableArray<CustomModifier>.Empty;
Lowering\ClosureConversion\SynthesizedClosureEnvironment.cs (2)
36private ImmutableArray<Symbol> _members; 109public override ImmutableArray<Symbol> GetMembers()
Lowering\ClosureConversion\SynthesizedClosureMethod.cs (9)
20private readonly ImmutableArray<NamedTypeSymbol> _structEnvironments; 27ImmutableArray<SynthesizedClosureEnvironment> structEnvironments, 52ImmutableArray<TypeParameterSymbol> typeParameters; 93var originals = env.ConstructedFromTypeParameters; 94var newArgs = typeMap.SubstituteTypeParameters(originals); 103_structEnvironments = ImmutableArray<NamedTypeSymbol>.CastUp(structEnvironments); 214protected override ImmutableArray<ParameterSymbol> BaseMethodParameters => this.BaseMethod.Parameters; 216protected override ImmutableArray<TypeSymbol> ExtraSynthesizedRefParameters 217=> ImmutableArray<TypeSymbol>.CastUp(_structEnvironments);
Lowering\DiagnosticsPass_ExpressionTrees.cs (6)
307ImmutableArray<BoundExpression> arguments, 308ImmutableArray<RefKind> argumentRefKindsOpt, 309ImmutableArray<string> argumentNamesOpt, 357static bool hasDefaultArgument(ImmutableArray<BoundExpression> arguments, BitVector defaultArguments) 516VisitCall(node.AddMethod, null, node.Arguments, default(ImmutableArray<RefKind>), default(ImmutableArray<string>), node.DefaultArguments, node);
Lowering\DiagnosticsPass_Warnings.cs (6)
21private void CheckArguments(ImmutableArray<RefKind> argumentRefKindsOpt, ImmutableArray<BoundExpression> arguments, Symbol method) 235private static bool IsComCallWithRefOmitted(MethodSymbol method, ImmutableArray<BoundExpression> arguments, ImmutableArray<RefKind> argumentRefKindsOpt) 369var parameters = op.GetParameters(); 910var leftArguments = leftTuple.Arguments;
Lowering\Extensions.cs (1)
17public static RefKind RefKinds(this ImmutableArray<RefKind> ArgumentRefKinds, int index)
Lowering\InitializerRewriter.cs (2)
19internal static BoundTypeOrInstanceInitializers RewriteConstructor(ImmutableArray<BoundInitializer> boundInitializers, MethodSymbol method) 29internal static BoundTypeOrInstanceInitializers RewriteScriptInitializer(ImmutableArray<BoundInitializer> boundInitializers, SynthesizedInteractiveInitializerMethod method, out bool hasTrailingExpression)
Lowering\Instrumentation\CodeCoverageInstrumenter.cs (4)
31private ImmutableArray<SourceSpan> _dynamicAnalysisSpans = ImmutableArray<SourceSpan>.Empty; 166ImmutableArray<SourceSpan> dynamicAnalysisSpans, 317public ImmutableArray<SourceSpan> DynamicAnalysisSpans => _dynamicAnalysisSpans;
Lowering\Instrumentation\CompoundInstrumenter.cs (2)
167ref ImmutableArray<BoundExpression> arguments, 168ref ImmutableArray<RefKind> argumentRefKindsOpt)
Lowering\Instrumentation\Instrumenter.cs (2)
241ref ImmutableArray<BoundExpression> arguments, 242ref ImmutableArray<RefKind> argumentRefKindsOpt)
Lowering\Instrumentation\LocalStateTracingInstrumenter.cs (4)
435private ImmutableArray<BoundExpression> MakeStoreLoggerArguments( 552private BoundExpression InstrumentCall(BoundExpression invocation, ImmutableArray<BoundExpression> arguments, ImmutableArray<RefKind> refKinds) 609return _factory.Sequence(ImmutableArray<LocalSymbol>.Empty, builder.ToImmutableAndFree(), lastExpression);
Lowering\Instrumentation\ModuleCancellationInstrumenter.cs (2)
121ref ImmutableArray<BoundExpression> arguments, 122ref ImmutableArray<RefKind> argumentRefKindsOpt)
Lowering\IteratorRewriter\IteratorConstructor.cs (2)
21private readonly ImmutableArray<ParameterSymbol> _parameters; 39public override ImmutableArray<ParameterSymbol> Parameters
Lowering\IteratorRewriter\IteratorFinallyMethodSymbol.cs (13)
154public override ImmutableArray<TypeWithAnnotations> TypeArgumentsWithAnnotations 156get { return ImmutableArray<TypeWithAnnotations>.Empty; } 159public override ImmutableArray<TypeParameterSymbol> TypeParameters 161get { return ImmutableArray<TypeParameterSymbol>.Empty; } 164public override ImmutableArray<ParameterSymbol> Parameters 166get { return ImmutableArray<ParameterSymbol>.Empty; } 169public override ImmutableArray<MethodSymbol> ExplicitInterfaceImplementations 171get { return ImmutableArray<MethodSymbol>.Empty; } 174public override ImmutableArray<CustomModifier> RefCustomModifiers 176get { return ImmutableArray<CustomModifier>.Empty; } 184internal override ImmutableArray<string> GetAppliedConditionalSymbols() 186return ImmutableArray<string>.Empty; 204public override ImmutableArray<Location> Locations
Lowering\IteratorRewriter\IteratorMethodToStateMachineRewriter.cs (3)
64ImmutableArray<FieldSymbol> nonReusableFieldsForCleanup, 282ImmutableArray<BoundCatchBlock>.Empty, 412ImmutableArray<LocalSymbol>.Empty,
Lowering\IteratorRewriter\IteratorStateMachine.cs (2)
22private readonly ImmutableArray<NamedTypeSymbol> _interfaces; 56internal override ImmutableArray<NamedTypeSymbol> InterfacesNoUseSiteDiagnostics(ConsList<TypeSymbol> basesBeingResolved)
Lowering\LocalRewriter\DelegateCacheRewriter.cs (1)
193static bool usedTypeParametersContains(HashSet<TypeParameterSymbol> used, ImmutableArray<TypeParameterSymbol> typeParameters)
Lowering\LocalRewriter\LocalRewriter.cs (10)
96out ImmutableArray<SourceSpan> codeCoverageSpans, 161codeCoverageSpans = codeCoverageInstrumenter?.DynamicAnalysisSpans ?? ImmutableArray<SourceSpan>.Empty; 172codeCoverageSpans = ImmutableArray<SourceSpan>.Empty; 389var typeParameters = localFunction.TypeParameters; 591private static BoundExpression BadExpression(SyntaxNode syntax, TypeSymbol resultType, ImmutableArray<BoundExpression> children) 593return new BoundBadExpression(syntax, LookupResultKind.NotReferencable, ImmutableArray<Symbol?>.Empty, children, resultType); 715var locals = block.Locals; 747ImmutableArray<BoundStatement> originalStatements = node.Statements; 778ImmutableArray<BoundStatement> rewrittenStatements; 783rewrittenStatements = ImmutableArray<BoundStatement>.Empty;
Lowering\LocalRewriter\LocalRewriter.DecisionDagRewriter.cs (13)
369protected ImmutableArray<BoundStatement> LowerDecisionDagCore(BoundDecisionDag decisionDag) 373ImmutableArray<BoundDecisionDagNode> sortedNodes = decisionDag.TopologicallySortedNodes; 388ImmutableArray<BoundDecisionDagNode> nodesToLower = sortedNodes.WhereAsArray(n => n.Kind != BoundKind.WhenDecisionDagNode && n.Kind != BoundKind.LeafDecisionDagNode); 428var result = _loweredDecisionDag.ToImmutableAndFree(); 441ImmutableArray<BoundDecisionDagNode> nodesToLower, 620ImmutableArray<(ConstantValue value, LabelSymbol label)> cases, 643(ImmutableArray<(ConstantValue value, LabelSymbol label)> whenTrueCases, ImmutableArray<(ConstantValue value, LabelSymbol label)> whenFalseCases) 644splitCases(ImmutableArray<(ConstantValue value, LabelSymbol label)> cases, BinaryOperatorKind op, ConstantValue value) 787ImmutableArray<(ConstantValue value, LabelSymbol label)> cases; 821var cases = node.Cases.Sort(new CasesComparer(input.Type)); 970private void LowerWhenClauses(ImmutableArray<BoundDecisionDagNode> sortedNodes) 1177void lowerBindings(ImmutableArray<BoundPatternBinding> bindings, ArrayBuilder<BoundStatement> sectionBuilder)
Lowering\LocalRewriter\LocalRewriter.DecisionDagRewriter.ValueDispatchNode.cs (2)
38public readonly ImmutableArray<(ConstantValue value, LabelSymbol label)> Cases; 40public SwitchDispatch(SyntaxNode syntax, ImmutableArray<(ConstantValue value, LabelSymbol label)> dispatches, LabelSymbol otherwise) : base(syntax)
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (1)
126public ImmutableArray<LocalSymbol> AllTemps()
Lowering\LocalRewriter\LocalRewriter_AnonymousObjectCreation.cs (4)
21var rewrittenArguments = VisitList(node.Arguments); 27argumentNamesOpt: default(ImmutableArray<string?>), 28argumentRefKindsOpt: default(ImmutableArray<RefKind>), 30argsToParamsOpt: default(ImmutableArray<int>),
Lowering\LocalRewriter\LocalRewriter_AsOperator.cs (1)
73locals: ImmutableArray<LocalSymbol>.Empty,
Lowering\LocalRewriter\LocalRewriter_AssignmentOperator.cs (14)
69var loweredArguments = VisitList(indexerAccess.Arguments); 142ImmutableArray<BoundExpression> loweredArguments, 143ImmutableArray<string?> argumentNames, 144ImmutableArray<RefKind> refKinds, 190ImmutableArray<BoundExpression>.Empty, 191default(ImmutableArray<RefKind>), 193default(ImmutableArray<int>), 203ImmutableArray<BoundExpression> arguments = indexerAccess.Arguments; 271ImmutableArray<BoundExpression> arguments, 272ImmutableArray<RefKind> argumentRefKindsOpt, 274ImmutableArray<int> argsToParamsOpt, 367ImmutableArray<BoundExpression>.Empty, 374private static ImmutableArray<T> AppendToPossibleNull<T>(ImmutableArray<T> possibleNull, T newElement)
Lowering\LocalRewriter\LocalRewriter_BasePatternSwitchLocalRewriter.cs (4)
42ImmutableArray<SyntaxNode> arms, 68protected (ImmutableArray<BoundStatement> loweredDag, ImmutableDictionary<SyntaxNode, ImmutableArray<BoundStatement>> switchSections) LowerDecisionDag(BoundDecisionDag decisionDag) 70var loweredDag = LowerDecisionDagCore(decisionDag);
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (5)
118ImmutableArray<BoundExpression> parts = CollectBinaryOperatorInterpolatedStringParts(node); 160private static ImmutableArray<BoundExpression> CollectBinaryOperatorInterpolatedStringParts(BoundBinaryOperator node) 852locals: ImmutableArray<LocalSymbol>.Empty, 1396locals: ImmutableArray<LocalSymbol>.Empty, 1964locals: ImmutableArray<LocalSymbol>.Empty,
Lowering\LocalRewriter\LocalRewriter_Block.cs (6)
52var locals = node.Locals; 76/// <returns>An <see cref="ImmutableArray{T}"/> of <see cref="BoundStatement"/></returns> 77public void VisitStatementSubList(ArrayBuilder<BoundStatement> builder, ImmutableArray<BoundStatement> statements, int startIndex = 0) 107public BoundStatement? VisitPossibleUsingDeclaration(BoundStatement node, ImmutableArray<BoundStatement> statements, int statementIndex, out bool replacedLocalDeclarations) 130? new BoundBlock(node.Syntax, ImmutableArray<LocalSymbol>.Empty, ImmutableArray<BoundStatement>.Empty)
Lowering\LocalRewriter\LocalRewriter_Call.cs (57)
27var loweredArguments = VisitList(node.Arguments); 31ImmutableArray<TypeWithAnnotations> typeArguments; 97private void EmbedIfNeedTo(BoundExpression receiver, ImmutableArray<MethodSymbol> methods, SyntaxNode syntaxNode) 116private void EmbedIfNeedTo(BoundExpression receiver, ImmutableArray<PropertySymbol> properties, SyntaxNode syntaxNode) 138ref ImmutableArray<BoundExpression> arguments, 139ref ImmutableArray<RefKind> argumentRefKindsOpt, 384ImmutableArray<int> argsToParamsOpt = node.ArgsToParamsOpt; 385ImmutableArray<RefKind> argRefKindsOpt = node.ArgumentRefKindsOpt; 386ImmutableArray<BoundExpression> arguments = node.Arguments; 399var rewrittenArguments = VisitArgumentsAndCaptureReceiverIfNeeded( 442ImmutableArray<BoundExpression> rewrittenArguments, 443ImmutableArray<RefKind> argumentRefKinds, 445ImmutableArray<LocalSymbol> temps) 479argumentNamesOpt: default(ImmutableArray<string?>), 484argsToParamsOpt: default(ImmutableArray<int>), 496argumentNamesOpt: default(ImmutableArray<string?>), 501argsToParamsOpt: default(ImmutableArray<int>), 514sideEffects: ImmutableArray<BoundExpression>.Empty, 522private BoundExpression MakeCall(SyntaxNode syntax, BoundExpression? rewrittenReceiver, MethodSymbol method, ImmutableArray<BoundExpression> rewrittenArguments) 530argumentRefKinds: default(ImmutableArray<RefKind>), 653private ImmutableArray<BoundExpression> VisitArgumentsAndCaptureReceiverIfNeeded( 656ImmutableArray<BoundExpression> arguments, 658ImmutableArray<int> argsToParamsOpt, 659ImmutableArray<RefKind> argumentRefKindsOpt, 721ImmutableArray<BoundExpression> rewrittenArguments; 731var parameters = methodOrIndexer.GetParameters(); 748ImmutableArray<BoundInterpolatedStringArgumentPlaceholder> argumentPlaceholders = addInterpolationPlaceholderReplacements( 807ImmutableArray<LocalSymbol>.Empty, 825ImmutableArray<BoundInterpolatedStringArgumentPlaceholder> addInterpolationPlaceholderReplacements( 826ImmutableArray<ParameterSymbol> parameters, 884visitedArgumentsBuilder[argIndex] = _factory.Sequence(ImmutableArray<LocalSymbol>.Empty, ImmutableArray.Create<BoundExpression>(store), local); 903return ImmutableArray<BoundInterpolatedStringArgumentPlaceholder>.Empty; 997private ImmutableArray<BoundExpression> MakeArguments( 998ImmutableArray<BoundExpression> rewrittenArguments, 1001ImmutableArray<int> argsToParamsOpt, 1002ref ImmutableArray<RefKind> argumentRefKindsOpt, 1016ImmutableArray<ParameterSymbol> parameters = methodOrIndexer.GetParameters(); 1155private static ImmutableArray<RefKind> GetEffectiveArgumentRefKinds(ImmutableArray<RefKind> argumentRefKindsOpt, ImmutableArray<ParameterSymbol> parameters) 1190static void fillRefKindsBuilder(ImmutableArray<RefKind> argumentRefKindsOpt, ImmutableArray<ParameterSymbol> parameters, [NotNull] ref ArrayBuilder<RefKind>? refKindsBuilder) 1210ImmutableArray<BoundExpression> rewrittenArguments, 1212ImmutableArray<int> argsToParamsOpt, 1243private static ImmutableArray<RefKind> GetRefKindsOrNull(ArrayBuilder<RefKind> refKinds) 1252return default(ImmutableArray<RefKind>); 1303ImmutableArray<int> argsToParamsOpt, 1304ImmutableArray<ParameterSymbol> parameters, 1305ImmutableArray<RefKind> argumentRefKinds, 1306ImmutableArray<BoundExpression> rewrittenArguments, 1440ImmutableArray<BoundExpression>.Empty, 1441default(ImmutableArray<string?>), 1442default(ImmutableArray<RefKind>), 1446argsToParamsOpt: default(ImmutableArray<int>), 1579ImmutableArray<LocalSymbol>.Empty, 1600ImmutableArray<ParameterSymbol> parameters, 1643locals: ImmutableArray<LocalSymbol>.Empty,
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (17)
101var elements = node.Elements; 254var elements = node.Elements; 336var elements = node.Elements; 406var elements = node.Elements; 425var typeArgs = ImmutableArray.Create(elementType); 543ImmutableArray<BoundNode> elements, 616locals: ImmutableArray<LocalSymbol>.Empty, 722var elements = node.Elements; 1021private BoundExpression CreateAndPopulateList(BoundCollectionExpression node, TypeWithAnnotations elementType, ImmutableArray<BoundNode> elements) 1025var typeArguments = ImmutableArray.Create(elementType); 1083rewrittenReceiver = _factory.New(constructor, ImmutableArray<BoundExpression>.Empty); 1213ImmutableArray<BoundNode> elements, 1229ImmutableArray<BoundNode> elements, 1262new BoundBlock(iteratorBody.Syntax, locals: ImmutableArray<LocalSymbol>.Empty, statements); 1274private BoundExpression GetKnownLengthExpression(ImmutableArray<BoundNode> elements, int numberIncludingLastSpread, ArrayBuilder<BoundLocal> rewrittenExpressions) 1348var iterationVariables = ImmutableArray.Create(iterationVariable); 1420ImmutableArray<LocalSymbol>.Empty,
Lowering\LocalRewriter\LocalRewriter_CompoundAssignmentOperator.cs (10)
296ImmutableArray<BoundExpression> rewrittenArguments = VisitArgumentsAndCaptureReceiverIfNeeded( 318ImmutableArray<BoundExpression> rewrittenArguments, 323ImmutableArray<int> argsToParamsOpt = indexerAccess.ArgsToParamsOpt; 324ImmutableArray<RefKind> argumentRefKinds = indexerAccess.ArgumentRefKindsOpt; 329ImmutableArray<ParameterSymbol> parameters = indexer.Parameters; 396argumentNamesOpt: default(ImmutableArray<string?>), 400argsToParamsOpt: default(ImmutableArray<int>), 518var arguments = indexerAccess.Arguments; 670var loweredIndices = VisitList(arrayAccess.Indices); 778ImmutableArray<BoundExpression> loweredIndices,
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (5)
106BadExpression(node.Syntax, byteArray, ImmutableArray<BoundExpression>.Empty) : 111result = BadExpression(node.Syntax, node.Type, ImmutableArray<BoundExpression>.Empty); 955var destElementTypes = rewrittenType.TupleElementTypesWithAnnotations; 959var srcElementFields = tupleTypeSymbol.TupleElements; 964var elementConversions = conversion.UnderlyingConversions;
Lowering\LocalRewriter\LocalRewriter_DeconstructionAssignmentOperator.cs (9)
220ImmutableArray<BoundExpression> rightParts = GetRightParts(right, conversion, temps, effects, ref inInit); 222ImmutableArray<(BoundValuePlaceholder?, BoundExpression?)> deconstructConversionInfo = conversion.DeconstructConversionInfo; 277private ImmutableArray<BoundExpression> GetRightParts(BoundExpression right, Conversion conversion, 334private ImmutableArray<BoundExpression> AccessTupleFields(BoundExpression expression, ArrayBuilder<LocalSymbol> temps, 340var tupleElementTypes = tupleType.TupleElementTypesWithAnnotations; 360var fields = tupleType.TupleElements; 381private ImmutableArray<BoundExpression> InvokeDeconstructMethod(DeconstructMethodInfo deconstruction, BoundExpression target, 386var outputPlaceholders = deconstruction.OutputPlaceholders; 515internal ImmutableArray<BoundExpression> ToImmutableAndFree()
Lowering\LocalRewriter\LocalRewriter_Event.cs (8)
54var rewrittenArguments = ImmutableArray.Create<BoundExpression>(rewrittenArgument); 128clearCall = new BoundBadExpression(syntax, LookupResultKind.NotInvocable, ImmutableArray<Symbol?>.Empty, ImmutableArray.Create<BoundExpression>(removeDelegate), ErrorTypeSymbol.UnknownResultType); 132ImmutableArray<BoundExpression> marshalArguments; 170marshalCall = new BoundBadExpression(syntax, LookupResultKind.NotInvocable, ImmutableArray<Symbol?>.Empty, marshalArguments, ErrorTypeSymbol.UnknownResultType); 179ImmutableArray<LocalSymbol> tempSymbols = boundTemp == null 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 (6)
19ImmutableArray<BoundLocalDeclaration> localDecls = node.Declarations.LocalDeclarations; 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 (12)
141ImmutableArray<LocalSymbol> iterationVariables, 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); 603ImmutableArray<LocalSymbol> iterationVariables, 812ImmutableArray<LocalSymbol> iterationVariables, 838ImmutableArray<LocalSymbol> iterationVariables, 899ImmutableArray<LocalSymbol> iterationVariables, 1048ImmutableArray<LocalSymbol> iterationVariables, 1096ImmutableArray<BoundExpression> dimensionArgument = ImmutableArray.Create( 1150ImmutableArray<BoundExpression> dimensionArgument = ImmutableArray.Create(
Lowering\LocalRewriter\LocalRewriter_ForStatement.cs (3)
42ImmutableArray<LocalSymbol> outerLocals, 168var statements = statementBuilder.ToImmutableAndFree(); 270var statements = statementBuilder.ToImmutableAndFree();
Lowering\LocalRewriter\LocalRewriter_FunctionPointerInvocation.cs (3)
23var argumentRefKindsOpt = node.ArgumentRefKindsOpt; 26var rewrittenArgs = VisitArgumentsAndCaptureReceiverIfNeeded( 60rewrittenInvocation = new BoundSequence(rewrittenInvocation.Syntax, temps.ToImmutableAndFree(), sideEffects: ImmutableArray<BoundExpression>.Empty, rewrittenInvocation, node.Type);
Lowering\LocalRewriter\LocalRewriter_IfStatement.cs (1)
141var statements = builder.ToImmutableAndFree();
Lowering\LocalRewriter\LocalRewriter_IndexerAccess.cs (11)
44var loweredArguments = VisitList(node.Arguments); 52ImmutableArray<BoundExpression> loweredArguments, 53ImmutableArray<string?> argumentNames, 54ImmutableArray<RefKind> refKinds) 105ImmutableArray<BoundExpression> arguments, 106ImmutableArray<string?> argumentNamesOpt, 107ImmutableArray<RefKind> argumentRefKindsOpt, 109ImmutableArray<int> argsToParamsOpt, 160ImmutableArray<BoundExpression> rewrittenArguments = VisitArgumentsAndCaptureReceiverIfNeeded( 192ImmutableArray<BoundExpression>.Empty, 576ImmutableArray<BoundExpression> rewrittenArguments = VisitArgumentsAndCaptureReceiverIfNeeded(
Lowering\LocalRewriter\LocalRewriter_IsOperator.cs (1)
91locals: ImmutableArray<LocalSymbol>.Empty,
Lowering\LocalRewriter\LocalRewriter_IsPatternOperator.cs (4)
117ImmutableArray<BoundStatement> loweredDag = LowerDecisionDagCore(decisionDag); 181test = _factory.Sequence(ImmutableArray<LocalSymbol>.Empty, _sideEffectBuilder.ToImmutable(), test); 316var allTemps = _tempAllocator.AllTemps(); 319result = _factory.Sequence(allTemps, ImmutableArray<BoundExpression>.Empty, result);
Lowering\LocalRewriter\LocalRewriter_Literal.cs (6)
137argumentNamesOpt: default(ImmutableArray<string?>), argumentRefKindsOpt: default(ImmutableArray<RefKind>), expanded: false, 138argsToParamsOpt: default(ImmutableArray<int>), defaultArguments: default(BitVector), 157argumentNamesOpt: default(ImmutableArray<string?>), argumentRefKindsOpt: default(ImmutableArray<RefKind>), expanded: false, 158argsToParamsOpt: default(ImmutableArray<int>), defaultArguments: default(BitVector),
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 (17)
20var loweredArguments = VisitList(node.Arguments); 43ImmutableArray<RefKind> argumentRefKindsOpt = node.ArgumentRefKindsOpt; 45ImmutableArray<BoundExpression> rewrittenArguments = VisitArgumentsAndCaptureReceiverIfNeeded( 107ImmutableArray<BoundExpression>.Empty, 199ImmutableArray<BoundExpression> getAnonymousTypeValues(BoundWithExpression withExpr, BoundExpression oldValue, AnonymousTypeManager.AnonymousTypePublicSymbol anonymousType, 247var rewrittenInitializers = MakeObjectOrCollectionInitializersForExpressionTree(initializerExpressionOpt); 288ImmutableArray<LocalSymbol> locals; 350ImmutableArray<BoundExpression>.Empty, 351default(ImmutableArray<string?>), 352default(ImmutableArray<RefKind>), 356argsToParamsOpt: default(ImmutableArray<int>), 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 (19)
18private static BoundObjectInitializerExpressionBase UpdateInitializers(BoundObjectInitializerExpressionBase initializerExpression, ImmutableArray<BoundExpression> newInitializers) 66private ImmutableArray<BoundExpression> MakeObjectOrCollectionInitializersForExpressionTree(BoundExpression initializerExpression) 88private void AddCollectionInitializers(ArrayBuilder<BoundExpression> result, BoundExpression? rewrittenReceiver, ImmutableArray<BoundExpression> initializers) 120var rewrittenArguments = VisitList(initializer.Arguments); 129ImmutableArray<TypeWithAnnotations>.Empty, 131default(ImmutableArray<string?>), 132default(ImmutableArray<RefKind>), 163var argumentRefKindsOpt = default(ImmutableArray<RefKind>); 176ImmutableArray<BoundExpression> rewrittenArguments = VisitArgumentsAndCaptureReceiverIfNeeded( 221var rewrittenArguments = VisitArgumentsAndCaptureReceiverIfNeeded(ref rewrittenReceiver, captureReceiverMode: ReceiverCaptureMode.Default, node.Arguments, node.MemberSymbol, node.ArgsToParamsOpt, node.ArgumentRefKindsOpt, 254ImmutableArray<BoundExpression> initializers) 305var args = EvaluateSideEffectingArgumentsToTemps( 307memberInit.MemberSymbol?.GetParameterRefKinds() ?? default(ImmutableArray<RefKind>), 410var indices = EvaluateSideEffectingArgumentsToTemps( 587private ImmutableArray<BoundExpression> EvaluateSideEffectingArgumentsToTemps( 588ImmutableArray<BoundExpression> args, 589ImmutableArray<RefKind> paramRefKindsOpt, 680var arguments = rewrittenLeft.Arguments;
Lowering\LocalRewriter\LocalRewriter_PatternSwitchStatement.cs (3)
115(ImmutableArray<BoundStatement> loweredDag, ImmutableDictionary<SyntaxNode, ImmutableArray<BoundStatement>> switchSections) = 145ImmutableArray<BoundStatement> statements = sectionBuilder.ToImmutableAndFree();
Lowering\LocalRewriter\LocalRewriter_PropertyAccess.cs (3)
70return MakePropertyGetAccess(syntax, rewrittenReceiver, property, ImmutableArray<BoundExpression>.Empty, default, null, oldNodeOpt); 77ImmutableArray<BoundExpression> rewrittenArguments, 78ImmutableArray<RefKind> argumentRefKindsOpt,
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_StringConcat.cs (6)
151if (TryExtractStringConcatArgs(lowered, out var arguments)) 167private bool TryExtractStringConcatArgs(BoundExpression lowered, out ImmutableArray<BoundExpression> arguments) 224var wrappedArgs = sequenceCall.Arguments; 405private BoundExpression RewriteStringConcatenationManyExprs(SyntaxNode syntax, ImmutableArray<BoundExpression> loweredArgs) 530ImmutableArray<BoundExpression> args) 666var typeToStringMembers = type.GetMembers(objectToStringMethod.Name);
Lowering\LocalRewriter\LocalRewriter_StringInterpolation.cs (10)
29private InterpolationHandlerResult RewriteToInterpolatedStringHandlerPattern(InterpolatedStringHandlerData data, ImmutableArray<BoundExpression> parts, SyntaxNode syntax) 219private BoundExpression LowerPartsToString(InterpolatedStringHandlerData data, ImmutableArray<BoundExpression> parts, SyntaxNode syntax, TypeSymbol type) 228: new BoundBadExpression(syntax, LookupResultKind.Empty, symbols: ImmutableArray<Symbol?>.Empty, childBoundNodes: ImmutableArray<BoundExpression>.Empty, type); 234private static void AssertNoImplicitInterpolatedStringHandlerConversions(ImmutableArray<BoundExpression> arguments, bool allowConversionsWithNoContext = false) 257private readonly ImmutableArray<BoundStatement> _statements; 258private readonly ImmutableArray<BoundExpression> _expressions; 264public InterpolationHandlerResult(ImmutableArray<BoundStatement> statements, BoundLocal handlerTemp, LocalSymbol outTemp, LocalRewriter rewriter) 273public InterpolationHandlerResult(ImmutableArray<BoundExpression> expressions, BoundLocal handlerTemp, LocalSymbol? outTemp, LocalRewriter rewriter) 285var locals = _outTemp != null
Lowering\LocalRewriter\LocalRewriter_SwitchExpression.cs (3)
63(ImmutableArray<BoundStatement> loweredDag, ImmutableDictionary<SyntaxNode, ImmutableArray<BoundStatement>> switchSections) = 103var statements = sectionBuilder.ToImmutableAndFree();
Lowering\LocalRewriter\LocalRewriter_TryStatement.cs (2)
23ImmutableArray<BoundCatchBlock> catchBlocks = 25(optimizing && !HasSideEffects(tryBlock)) ? ImmutableArray<BoundCatchBlock>.Empty
Lowering\LocalRewriter\LocalRewriter_TupleBinaryOperator.cs (22)
61var underlyingConversions = c.UnderlyingConversions; 63var resultTypes = conversion.Type.TupleElementTypesWithAnnotations; 82var newArguments = builder.ToImmutableAndFree(); 84tuple.Syntax, sourceTuple: null, wasTargetTyped: true, newArguments, ImmutableArray<string?>.Empty, 85ImmutableArray<bool>.Empty, conversion.Type, conversion.HasErrors); 108var destElementTypes = expr.Type.TupleElementTypesWithAnnotations; 111var srcElementFields = boundConversion.Operand.Type.TupleElements; 114var elementConversions = conversion.UnderlyingConversions; 126syntax, sourceTuple: null, wasTargetTyped: true, fieldAccessorsBuilder.ToImmutableAndFree(), ImmutableArray<string?>.Empty, 127ImmutableArray<bool>.Empty, expr.Type, expr.HasErrors); 160var newArguments = builder.ToImmutableAndFree(); 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(), 444var types = expr.Type.GetNullableUnderlyingType().TupleElementTypesWithAnnotations; 446var underlyingConversions = tupleConversion.UnderlyingConversions; 459argumentNamesOpt: ImmutableArray<string?>.Empty, 460inferredNamesOpt: ImmutableArray<bool>.Empty, 488ImmutableArray<TupleBinaryOperatorInfo> nestedOperators = operators.Operators;
Lowering\LocalRewriter\LocalRewriter_TupleCreationExpression.cs (7)
27ImmutableArray<BoundExpression> rewrittenArguments = VisitList(node.Arguments); 37private BoundExpression RewriteTupleCreationExpression(BoundTupleExpression node, ImmutableArray<BoundExpression> rewrittenArguments) 43private BoundExpression MakeTupleCreationExpression(SyntaxNode syntax, NamedTypeSymbol type, ImmutableArray<BoundExpression> rewrittenArguments) 54ImmutableArray<BoundExpression> smallestCtorArguments = ImmutableArray.Create(rewrittenArguments, 69Binder.CheckRequiredMembersInObjectInitializer(smallestConstructor, initializers: ImmutableArray<BoundExpression>.Empty, syntax, _diagnostics); 83Binder.CheckRequiredMembersInObjectInitializer(tuple8Ctor, initializers: ImmutableArray<BoundExpression>.Empty, syntax, _diagnostics); 88ImmutableArray<BoundExpression> ctorArguments = ImmutableArray.Create(rewrittenArguments,
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (2)
516ImmutableArray<BoundExpression> assignments = ImmutableArray.Create<BoundExpression>( 549ImmutableArray<LocalSymbol>.Empty,
Lowering\LocalRewriter\LocalRewriter_UsingStatement.cs (9)
64ImmutableArray<LocalSymbol> locals, 65ImmutableArray<BoundLocalDeclaration> declarations, 89private BoundStatement MakeLocalUsingDeclarationStatement(BoundUsingLocalDeclarations usingDeclarations, ImmutableArray<BoundStatement> statements) 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); 512ImmutableArray<RefKind> argumentRefKindsOpt = default; 514var rewrittenArguments = VisitArgumentsAndCaptureReceiverIfNeeded(
Lowering\LocalRewriter\LocalRewriter_WhileStatement.cs (1)
108ImmutableArray<LocalSymbol> locals,
Lowering\LocalRewriter\LoweredDynamicOperation.cs (6)
25private readonly ImmutableArray<LocalSymbol> _temps; 29public LoweredDynamicOperation(SyntheticBoundNodeFactory? factory, BoundExpression? siteInitialization, BoundExpression siteInvocation, TypeSymbol resultType, ImmutableArray<LocalSymbol> temps) 40ImmutableArray<BoundExpression> loweredArguments, 52public static LoweredDynamicOperation Bad(TypeSymbol resultType, ImmutableArray<BoundExpression> children) 55var bad = new BoundBadExpression(children[0].Syntax, LookupResultKind.Empty, ImmutableArray<Symbol?>.Empty, children, resultType); 56return new LoweredDynamicOperation(null, null, bad, resultType, default(ImmutableArray<LocalSymbol>));
Lowering\LocalRewriter\LoweredDynamicOperationFactory.cs (50)
97var loweredArguments = ImmutableArray.Create(loweredOperand); 111return MakeDynamicOperation(binderConstruction, null, RefKind.None, loweredArguments, default(ImmutableArray<RefKind>), null, resultType); 129var loweredArguments = ImmutableArray.Create(loweredOperand); 147return MakeDynamicOperation(binderConstruction, null, RefKind.None, loweredArguments, default(ImmutableArray<RefKind>), null, resultType); 172var loweredArguments = ImmutableArray.Create<BoundExpression>(loweredLeft, loweredRight); 190return MakeDynamicOperation(binderConstruction, null, RefKind.None, loweredArguments, default(ImmutableArray<RefKind>), null, resultType); 196ImmutableArray<TypeWithAnnotations> typeArgumentsWithAnnotations, 197ImmutableArray<BoundExpression> loweredArguments, 198ImmutableArray<string?> argumentNames, 199ImmutableArray<RefKind> refKinds, 270var loweredArguments = ImmutableArray<BoundExpression>.Empty; 292return MakeDynamicOperation(binderConstruction, loweredReceiver, RefKind.None, loweredArguments, default(ImmutableArray<RefKind>), loweredHandler, resultType); 297ImmutableArray<BoundExpression> loweredArguments, 298ImmutableArray<string?> argumentNames, 299ImmutableArray<RefKind> refKinds, 335ImmutableArray<BoundExpression> loweredArguments, 336ImmutableArray<string?> argumentNames, 337ImmutableArray<RefKind> refKinds) 372var loweredArguments = ImmutableArray<BoundExpression>.Empty; 391return MakeDynamicOperation(binderConstruction, loweredReceiver, RefKind.None, loweredArguments, default(ImmutableArray<RefKind>), null, resultType); 414var loweredArguments = ImmutableArray<BoundExpression>.Empty; 432return MakeDynamicOperation(binderConstruction, loweredReceiver, RefKind.None, loweredArguments, default(ImmutableArray<RefKind>), loweredRight, AssemblySymbol.DynamicType); 437ImmutableArray<BoundExpression> loweredArguments, 438ImmutableArray<string?> argumentNames, 439ImmutableArray<RefKind> refKinds) 463ImmutableArray<BoundExpression> loweredArguments, 464ImmutableArray<string?> argumentNames, 465ImmutableArray<RefKind> refKinds, 516return MakeDynamicOperation(binderConstruction, loweredReceiver, RefKind.None, ImmutableArray<BoundExpression>.Empty, default(ImmutableArray<RefKind>), null, resultType); 560ImmutableArray<BoundExpression> loweredArguments, 561ImmutableArray<string?> argumentNames = default(ImmutableArray<string?>), 562ImmutableArray<RefKind> refKinds = default(ImmutableArray<RefKind>), 602ImmutableArray<BoundExpression> loweredArguments, 603ImmutableArray<RefKind> refKinds, 640ImmutableArray<LocalSymbol> temps = MakeTempsForDiscardArguments(ref loweredArguments); 647var callSiteArguments = GetCallSiteArguments(callSiteFieldAccess, loweredReceiver, loweredArguments, loweredRight); 670private ImmutableArray<LocalSymbol> MakeTempsForDiscardArguments(ref ImmutableArray<BoundExpression> loweredArguments) 676return ImmutableArray<LocalSymbol>.Empty; 721ImmutableArray<BoundExpression> loweredArguments, 722ImmutableArray<RefKind> refKinds, 873private static ImmutableArray<BoundExpression> GetCallSiteArguments(BoundExpression callSiteFieldAccess, BoundExpression? receiver, ImmutableArray<BoundExpression> arguments, BoundExpression? right) 896private TypeSymbol[] MakeCallSiteDelegateSignature(TypeSymbol callSiteType, BoundExpression? receiver, ImmutableArray<BoundExpression> arguments, BoundExpression? right, TypeSymbol resultType)
Lowering\MethodToClassRewriter.cs (21)
80protected void RewriteLocals(ImmutableArray<LocalSymbol> locals, ArrayBuilder<LocalSymbol> newLocals) 119private ImmutableArray<LocalSymbol> RewriteLocals(ImmutableArray<LocalSymbol> locals) 133var newLocals = RewriteLocals(node.Locals); 155var newLocals = RewriteLocals(node.Locals); 156var newLocalFunctions = node.LocalFunctions; 157var newStatements = VisitList(node.Statements); 166var newLocals = RewriteLocals(node.Locals); 167var newSideEffects = VisitList<BoundExpression>(node.SideEffects); 175var newOuterLocals = RewriteLocals(node.OuterLocals); 177var newInnerLocals = RewriteLocals(node.InnerLocals); 186var newLocals = RewriteLocals(node.Locals); 194var newLocals = RewriteLocals(node.Locals); 202var newLocals = RewriteLocals(node.Locals); 233var rewrittenArguments = (ImmutableArray<BoundExpression>)this.VisitList(node.Arguments); 333var typeArgs = methodBeingCalled.TypeArgumentsWithAnnotations; 697ImmutableArray<BoundExpression> arguments = (ImmutableArray<BoundExpression>)this.VisitList(node.Arguments); 747ImmutableArray<TypeParameterSymbol> typeParameters; 750typeParameters = ImmutableArray<TypeParameterSymbol>.Empty;
Lowering\SpillSequenceSpiller.cs (27)
67public ImmutableArray<LocalSymbol> GetLocals() 69return (_locals == null) ? ImmutableArray<LocalSymbol>.Empty : _locals.ToImmutable(); 72public ImmutableArray<BoundStatement> GetStatements() 76return ImmutableArray<BoundStatement>.Empty; 132public void AddLocals(ImmutableArray<LocalSymbol> locals) 150public void AddStatements(ImmutableArray<BoundStatement> statements) 158internal void AddExpressions(ImmutableArray<BoundExpression> expressions) 320var newInitializers = VisitExpressionList(ref builder, arrayInitialization.Initializers, forceSpill: true); 327var newArgs = VisitExpressionList(ref builder, argumentList.Arguments, argumentList.ArgumentRefKindsOpt, forceSpill: true); 487var argRefKinds = objectCreationExpression.ArgumentRefKindsOpt; 583private ImmutableArray<BoundExpression> VisitExpressionList( 585ImmutableArray<BoundExpression> args, 586ImmutableArray<RefKind> refKinds = default(ImmutableArray<RefKind>), 598var newList = VisitList(args); 710var locals = node.Locals; 772var newArgs = VisitExpressionList(ref builder, node.Arguments); 782var indices = this.VisitExpressionList(ref indicesBuilder, node.Indices); 809ImmutableArray<BoundExpression> bounds; 829var initializers = this.VisitExpressionList(ref builder, node.Initializers); 893var indices = this.VisitExpressionList(ref leftBuilder, arrayAccess.Indices, forceSpill: true); 940var indices = this.VisitExpressionList(ref leftBuilder, arrayAccess.Indices, forceSpill: true); 1019var arguments = this.VisitExpressionList(ref builder, node.Arguments, node.ArgumentRefKindsOpt); 1085var arguments = this.VisitExpressionList(ref builder, node.Arguments, node.ArgumentRefKindsOpt); 1416var arguments = this.VisitExpressionList(ref builder, node.Arguments, node.ArgumentRefKindsOpt); 1455var sideEffects = VisitExpressionList(ref builder, node.SideEffects, forceSpill: valueBuilder != null, sideEffectsOnly: true); 1487private void PromoteAndAddLocals(BoundSpillSequenceBuilder builder, ImmutableArray<LocalSymbol> locals)
Lowering\StateMachineRewriter\CapturedSymbol.cs (2)
68public readonly ImmutableArray<StateMachineFieldSymbol> HoistedFields; 70public CapturedToExpressionSymbolReplacement(BoundExpression replacement, ImmutableArray<StateMachineFieldSymbol> hoistedFields, bool isReusable)
Lowering\StateMachineRewriter\IteratorAndAsyncCaptureWalker.cs (2)
201protected override ImmutableArray<PendingBranch> Scan(ref bool badRegion) 373private void AddVariables(ImmutableArray<LocalSymbol> locals)
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (10)
107ImmutableArray<FieldSymbol> nonReusableFieldsForCleanup, 297private BoundStatement PossibleIteratorScope(ImmutableArray<LocalSymbol> locals, Func<BoundStatement> wrapped) 403internal BoundBlock MakeStateMachineScope(ImmutableArray<StateMachineFieldSymbol> hoistedLocals, BoundStatement statement) 411internal static bool TryUnwrapBoundStateMachineScope(ref BoundStatement statement, out ImmutableArray<StateMachineFieldSymbol> hoistedLocals) 416var rewrittenStatements = rewrittenBlock.Statements; 426hoistedLocals = ImmutableArray<StateMachineFieldSymbol>.Empty; 571return F.Sequence(ImmutableArray<LocalSymbol>.Empty, sideEffects.ToImmutableAndFree(), last); 771var statements = VisitList(node.Statements); 793ImmutableArray<LocalSymbol> newLocals; 899ImmutableArray<BoundCatchBlock> catchBlocks = this.VisitList(node.CatchBlocks);
Lowering\StateMachineRewriter\StateMachineFieldSymbol.cs (2)
64public override ImmutableArray<CustomModifier> RefCustomModifiers => ImmutableArray<CustomModifier>.Empty;
Lowering\StateMachineRewriter\StateMachineRewriter.cs (4)
31protected ImmutableArray<FieldSymbol> nonReusableFieldsForCleanup; 123return new BoundBadStatement(F.Syntax, ImmutableArray<BoundNode>.Empty, hasErrors: true); 139out ImmutableArray<FieldSymbol> nonReusableFieldsForCleanup, 341var builtBody = bodyBuilder.ToImmutableAndFree();
Lowering\StateMachineRewriter\StateMachineTypeSymbol.cs (4)
18private ImmutableArray<CSharpAttributeData> _attributes; 53public sealed override ImmutableArray<CSharpAttributeData> GetAttributes() 78builder == null ? ImmutableArray<CSharpAttributeData>.Empty : builder.ToImmutableAndFree(), 79default(ImmutableArray<CSharpAttributeData>));
Lowering\StateMachineRewriter\SynthesizedStateMachineMethod.cs (4)
63private ImmutableArray<CSharpAttributeData> _attributes; 70public override ImmutableArray<CSharpAttributeData> GetAttributes() 97builder == null ? ImmutableArray<CSharpAttributeData>.Empty : builder.ToImmutableAndFree(), 98default(ImmutableArray<CSharpAttributeData>));
Lowering\StateMachineRewriter\SynthesizedStateMachineProperty.cs (7)
51public override ImmutableArray<CustomModifier> RefCustomModifiers 56public override ImmutableArray<ParameterSymbol> Parameters 99public override ImmutableArray<PropertySymbol> ExplicitInterfaceImplementations 109public override ImmutableArray<Location> Locations 111get { return ImmutableArray<Location>.Empty; } 114public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 116get { return ImmutableArray<SyntaxReference>.Empty; }
Lowering\SynthesizedMethodBaseSymbol.cs (21)
29private ImmutableArray<TypeParameterSymbol> _typeParameters; 30private ImmutableArray<ParameterSymbol> _parameters; 60protected void AssignTypeMapAndTypeParameters(TypeMap typeMap, ImmutableArray<TypeParameterSymbol> typeParameters) 91public sealed override ImmutableArray<TypeParameterSymbol> TypeParameters 96public sealed override ImmutableArray<ImmutableArray<TypeWithAnnotations>> GetTypeParameterConstraintTypes() 97=> ImmutableArray<ImmutableArray<TypeWithAnnotations>>.Empty; 99public sealed override ImmutableArray<TypeParameterConstraintKind> GetTypeParameterConstraintKinds() 100=> ImmutableArray<TypeParameterConstraintKind>.Empty; 107public sealed override ImmutableArray<ParameterSymbol> Parameters 119protected virtual ImmutableArray<TypeSymbol> ExtraSynthesizedRefParameters 121get { return default(ImmutableArray<TypeSymbol>); } 124protected virtual ImmutableArray<ParameterSymbol> BaseMethodParameters 129private ImmutableArray<ParameterSymbol> MakeParameters() 133var parameters = this.BaseMethodParameters; 149var extraSynthed = ExtraSynthesizedRefParameters; 165public sealed override ImmutableArray<CSharpAttributeData> GetAttributes() 170: ImmutableArray<CSharpAttributeData>.Empty; 173public sealed override ImmutableArray<CSharpAttributeData> GetReturnTypeAttributes() 176return InheritsBaseMethodAttributes ? BaseMethod.GetReturnTypeAttributes() : ImmutableArray<CSharpAttributeData>.Empty;
Lowering\SyntheticBoundNodeFactory.cs (63)
233return new BoundBadExpression(Syntax, LookupResultKind.Empty, ImmutableArray<Symbol?>.Empty, ImmutableArray<BoundExpression>.Empty, type, hasErrors: true); 445return Block(ImmutableArray<BoundStatement>.Empty); 448public BoundBlock Block(ImmutableArray<BoundStatement> statements) 450return Block(ImmutableArray<LocalSymbol>.Empty, statements); 458public BoundBlock Block(ImmutableArray<LocalSymbol> locals, params BoundStatement[] statements) 463public BoundBlock Block(ImmutableArray<LocalSymbol> locals, ImmutableArray<BoundStatement> statements) 468public BoundBlock Block(ImmutableArray<LocalSymbol> locals, ImmutableArray<LocalFunctionSymbol> localFunctions, params BoundStatement[] statements) 473public BoundBlock Block(ImmutableArray<LocalSymbol> locals, ImmutableArray<LocalFunctionSymbol> localFunctions, ImmutableArray<BoundStatement> statements) 485return StatementList(ImmutableArray<BoundStatement>.Empty); 488public BoundStatementList StatementList(ImmutableArray<BoundStatement> statements) 533statements.Add(Try(Block(statement), ImmutableArray<BoundCatchBlock>.Empty, Block(instrumentation.Epilogue))); 740public BoundObjectCreationExpression New(NamedTypeSymbol type, ImmutableArray<BoundExpression> args) 746public BoundObjectCreationExpression New(MethodSymbol ctor, ImmutableArray<BoundExpression> args) 749public BoundObjectCreationExpression New(MethodSymbol constructor, ImmutableArray<BoundExpression> arguments, ImmutableArray<RefKind> argumentRefKinds) 764public BoundObjectCreationExpression New(WellKnownMember wm, ImmutableArray<BoundExpression> args) 789return new BoundBadExpression(Syntax, default(LookupResultKind), ImmutableArray<Symbol?>.Empty, args.AsImmutable(), receiver); 795public BoundExpression StaticCall(MethodSymbol method, ImmutableArray<BoundExpression> args) 806public BoundExpression StaticCall(WellKnownMember method, ImmutableArray<TypeSymbol> typeArgs, params BoundExpression[] args) 826return Call(receiver, method, ImmutableArray<BoundExpression>.Empty); 847public BoundCall Call(BoundExpression? receiver, MethodSymbol method, ImmutableArray<BoundExpression> args, bool useStrictArgumentRefKinds = false) 853argumentNamesOpt: default(ImmutableArray<string?>), argumentRefKindsOpt: getArgumentRefKinds(method, useStrictArgumentRefKinds), isDelegateCall: false, expanded: false, 854invokedAsExtensionMethod: false, argsToParamsOpt: default(ImmutableArray<int>), defaultArguments: default(BitVector), resultKind: LookupResultKind.Viable, 858static ImmutableArray<RefKind> getArgumentRefKinds(MethodSymbol method, bool useStrictArgumentRefKinds) 860var result = method.ParameterRefKinds; 884public BoundCall Call(BoundExpression? receiver, MethodSymbol method, ImmutableArray<RefKind> refKinds, ImmutableArray<BoundExpression> args) 889argumentNamesOpt: default(ImmutableArray<String?>), argumentRefKindsOpt: refKinds, isDelegateCall: false, expanded: false, invokedAsExtensionMethod: false, 890argsToParamsOpt: ImmutableArray<int>.Empty, defaultArguments: default(BitVector), resultKind: LookupResultKind.Viable, type: method.ReturnType) 916return If(condition, ImmutableArray<LocalSymbol>.Empty, thenClause, elseClauseOpt); 924public BoundStatement If(BoundExpression condition, ImmutableArray<LocalSymbol> locals, BoundStatement thenClause, BoundStatement? elseClauseOpt = null) 992return MakeSequence(ImmutableArray<LocalSymbol>.Empty, parts); 995public BoundExpression MakeSequence(ImmutableArray<LocalSymbol> locals, params BoundExpression[] parts) 1021return new BoundSequence(Syntax, ImmutableArray<LocalSymbol>.Empty, sideEffects.AsImmutableOrNull(), result, resultType) { WasCompilerGenerated = true }; 1024public BoundExpression Sequence(ImmutableArray<LocalSymbol> locals, ImmutableArray<BoundExpression> sideEffects, BoundExpression result) 1033public BoundSpillSequence SpillSequence(ImmutableArray<LocalSymbol> locals, ImmutableArray<BoundStatement> sideEffects, BoundExpression result) 1044public readonly ImmutableArray<int> Values; 1045public readonly ImmutableArray<BoundStatement> Statements; 1047public SyntheticSwitchSection(ImmutableArray<int> values, ImmutableArray<BoundStatement> statements) 1057public SyntheticSwitchSection SwitchSection(ImmutableArray<int> values, params BoundStatement[] statements) 1063public BoundStatement Switch(BoundExpression ex, ImmutableArray<SyntheticSwitchSection> sections) 1102private static void CheckSwitchSections(ImmutableArray<SyntheticSwitchSection> sections) 1168ImmutableArray<BoundExpression> firstElementIndices = ArrayBuilder<BoundExpression>.GetInstance(rank, Literal(0)).ToImmutableAndFree(); 1177public BoundArrayAccess ArrayAccess(BoundExpression array, ImmutableArray<BoundExpression> indices) 1279public ImmutableArray<BoundExpression> TypeOfs(ImmutableArray<TypeWithAnnotations> typeArguments, TypeSymbol systemType) 1531public BoundExpression ArrayOrEmpty(TypeSymbol elementType, ImmutableArray<BoundExpression> elements) 1546public BoundExpression Array(TypeSymbol elementType, ImmutableArray<BoundExpression> elements) 1577ImmutableArray<BoundCatchBlock> catchBlocks, 1584internal ImmutableArray<BoundCatchBlock> CatchBlocks( 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); 1726internal ImmutableArray<BoundExpression> MakeTempsForDiscardArguments(ImmutableArray<BoundExpression> arguments, ArrayBuilder<LocalSymbol> builder) 1844locals: ImmutableArray<LocalSymbol>.Empty,
Operations\CSharpOperationFactory.cs (118)
319ImmutableArray<IOperation> children = GetIOperationChildren(boundNode); 337public ImmutableArray<TOperation> CreateFromArray<TBoundNode, TOperation>(ImmutableArray<TBoundNode> boundNodes) where TBoundNode : BoundNode where TOperation : class, IOperation 341return ImmutableArray<TOperation>.Empty; 373internal ImmutableArray<IOperation> GetIOperationChildren(IBoundNodeWithIOperationChildren boundNodeWithChildren) 375var children = boundNodeWithChildren.Children; 378return ImmutableArray<IOperation>.Empty; 396internal ImmutableArray<IVariableDeclaratorOperation> CreateVariableDeclarator(BoundNode declaration, SyntaxNode declarationSyntax) 450ImmutableArray<IOperation> children = CreateFromArray<BoundNode, IOperation>(((IBoundInvalidNode)boundCall).InvalidNodeChildren); 457ImmutableArray<IArgumentOperation> arguments = DeriveArguments(boundCall); 480ImmutableArray<IOperation> children = CreateFromArray<BoundNode, IOperation>(((IBoundInvalidNode)boundFunctionPointerInvocation).InvalidNodeChildren); 485var arguments = DeriveArguments(boundFunctionPointerInvocation); 511var namedArguments = CreateFromArray<BoundAssignmentOperator, IOperation>(boundAttribute.NamedArguments); 520internal ImmutableArray<IOperation> CreateIgnoredDimensions(BoundNode declaration) 533var declarations = ((BoundMultipleLocalDeclarationsBase)declaration).LocalDeclarations; 534ImmutableArray<BoundExpression> dimensions; 543dimensions = ImmutableArray<BoundExpression>.Empty; 615var arguments = ImmutableArray<IArgumentOperation>.Empty; 633var children = CreateFromArray<BoundNode, IOperation>(((IBoundInvalidNode)boundIndexerAccess).InvalidNodeChildren); 637ImmutableArray<IArgumentOperation> arguments = DeriveArguments(boundIndexerAccess); 697ImmutableArray<IOperation> initializers = GetAnonymousObjectCreationInitializers(boundAnonymousObjectCreationExpression.Arguments, boundAnonymousObjectCreationExpression.Declarations, syntax, type, isImplicit); 713var children = CreateFromArray<BoundNode, IOperation>(((IBoundInvalidNode)boundObjectCreationExpression).InvalidNodeChildren); 721ImmutableArray<IOperation> initializers = GetAnonymousObjectCreationInitializers( 723declarations: ImmutableArray<BoundAnonymousPropertyDeclaration>.Empty, 730ImmutableArray<IArgumentOperation> arguments = DeriveArguments(boundObjectCreationExpression); 750ImmutableArray<IOperation> arguments = CreateFromArray<BoundExpression, IOperation>(boundDynamicObjectCreationExpression.Arguments); 751ImmutableArray<string?> argumentNames = boundDynamicObjectCreationExpression.ArgumentNamesOpt.NullToEmpty(); 752ImmutableArray<RefKind> argumentRefKinds = boundDynamicObjectCreationExpression.ArgumentRefKindsOpt.NullToEmpty(); 764return CreateBoundDynamicMemberAccessOperation(implicitReceiver, typeArgumentsOpt: ImmutableArray<TypeSymbol>.Empty, memberName: "Add", 779ImmutableArray<IOperation> arguments = CreateFromArray<BoundExpression, IOperation>(boundDynamicInvocation.Arguments); 780ImmutableArray<string?> argumentNames = boundDynamicInvocation.ArgumentNamesOpt.NullToEmpty(); 781ImmutableArray<RefKind> argumentRefKinds = boundDynamicInvocation.ArgumentRefKindsOpt.NullToEmpty(); 803internal ImmutableArray<IOperation> CreateBoundDynamicIndexerAccessArguments(BoundExpression indexer) 822ImmutableArray<IOperation> arguments = CreateBoundDynamicIndexerAccessArguments(boundDynamicIndexerAccess); 823ImmutableArray<string?> argumentNames = boundDynamicIndexerAccess.ArgumentNamesOpt.NullToEmpty(); 824ImmutableArray<RefKind> argumentRefKinds = boundDynamicIndexerAccess.ArgumentRefKindsOpt.NullToEmpty(); 833ImmutableArray<IOperation> initializers = CreateFromArray<BoundExpression, IOperation>(BoundObjectCreationExpression.GetChildInitializers(boundObjectInitializerExpression)); 842ImmutableArray<IOperation> initializers = CreateFromArray<BoundExpression, IOperation>(BoundObjectCreationExpression.GetChildInitializers(boundCollectionInitializerExpression)); 861ImmutableArray<IOperation> arguments = CreateBoundDynamicIndexerAccessArguments(boundObjectInitializerMember); 862ImmutableArray<string?> argumentNames = boundObjectInitializerMember.ArgumentNamesOpt.NullToEmpty(); 863ImmutableArray<RefKind> argumentRefKinds = boundObjectInitializerMember.ArgumentRefKindsOpt.NullToEmpty(); 879ImmutableArray<IArgumentOperation> arguments; 889var children = CreateFromArray<BoundNode, IOperation>(((IBoundInvalidNode)boundObjectInitializerMember).InvalidNodeChildren); 897arguments = ImmutableArray<IArgumentOperation>.Empty; 914ImmutableArray<ITypeSymbol> typeArguments = ImmutableArray<ITypeSymbol>.Empty; 927ImmutableArray<IArgumentOperation> arguments = DeriveArguments(boundCollectionElementInitializer); 935var children = CreateFromArray<BoundNode, IOperation>(((IBoundInvalidNode)boundCollectionElementInitializer).InvalidNodeChildren); 951ImmutableArray<TypeSymbol> typeArgumentsOpt, 964ImmutableArray<ITypeSymbol> typeArguments = ImmutableArray<ITypeSymbol>.Empty; 977ImmutableArray<IOperation> arguments = CreateFromArray<BoundExpression, IOperation>(boundCollectionElementInitializer.Arguments); 981return new DynamicInvocationOperation(operation, arguments, argumentNames: ImmutableArray<string?>.Empty, argumentRefKinds: ImmutableArray<RefKind>.Empty, _semanticModel, syntax, type, isImplicit); 1206ImmutableArray<IOperation> dimensionSizes = CreateFromArray<BoundExpression, IOperation>(boundArrayCreation.Bounds); 1217ImmutableArray<IOperation> elementValues = CreateFromArray<BoundExpression, IOperation>(boundArrayInitialization.Initializers); 1229ImmutableArray<IOperation> elements = expr.Elements.SelectAsArray((element, expr) => CreateBoundCollectionExpressionElement(expr, element), expr); 1409var children = CreateFromArray<BoundExpression, IOperation>(boundBadExpression.ChildBoundNodes); 1627ImmutableArray<IOperation> indices = CreateFromArray<BoundExpression, IOperation>(boundArrayAccess.Indices); 1726ImmutableArray<IFieldSymbol> initializedFields = ImmutableArray.Create<IFieldSymbol>(boundFieldEqualsValue.Field.GetPublicSymbol()); 1735ImmutableArray<IPropertySymbol> initializedProperties = ImmutableArray.Create<IPropertySymbol>(boundPropertyEqualsValue.Property.GetPublicSymbol()); 1753ImmutableArray<IOperation> operations = CreateFromArray<BoundStatement, IOperation>(boundBlock.Statements); 1754ImmutableArray<ILocalSymbol> locals = boundBlock.Locals.GetPublicSymbols(); 1848ImmutableArray<ILocalSymbol> locals = boundWhileStatement.Locals.GetPublicSymbols(); 1866ImmutableArray<ILocalSymbol> locals = boundDoStatement.Locals.GetPublicSymbols(); 1874ImmutableArray<IOperation> before = CreateFromArray<BoundStatement, IOperation>(ToStatements(boundForStatement.Initializer)); 1876ImmutableArray<IOperation> atLoopBottom = CreateFromArray<BoundStatement, IOperation>(ToStatements(boundForStatement.Increment)); 1878ImmutableArray<ILocalSymbol> locals = boundForStatement.OuterLocals.GetPublicSymbols(); 1879ImmutableArray<ILocalSymbol> conditionLocals = boundForStatement.InnerLocals.GetPublicSymbols(); 1932ImmutableArray<IArgumentOperation> createArgumentOperations(MethodArgumentInfo? info) 1940return ImmutableArray<IArgumentOperation>.Empty; 1942var args = DeriveArguments( 1969return new VariableDeclaratorOperation(local.GetPublicSymbol(), initializer: null, ignoredArguments: ImmutableArray<IOperation>.Empty, semanticModel: _semanticModel, syntax: declaratorSyntax, isImplicit: false); 1981var nextVariables = ImmutableArray<IOperation>.Empty; 1985ImmutableArray<ILocalSymbol> locals = boundForEachStatement.IterationVariables.GetPublicSymbols(); 1998ImmutableArray<ICatchClauseOperation> catches = CreateFromArray<BoundCatchBlock, ICatchClauseOperation>(boundTryStatement.CatchBlocks); 2013ImmutableArray<ILocalSymbol> locals = boundCatchBlock.Locals.GetPublicSymbols(); 2023ImmutableArray<ILocalSymbol> locals = boundFixedStatement.Locals.GetPublicSymbols(); 2035ImmutableArray<ILocalSymbol> locals = boundUsingStatement.Locals.GetPublicSymbols(); 2095var children = CreateFromArray<BoundNode, IOperation>(boundBadStatement.ChildBoundNodes); 2141ImmutableArray<IVariableDeclaratorOperation> declarators = CreateVariableDeclarator(boundLocalDeclaration, varDeclaration); 2142ImmutableArray<IOperation> ignoredDimensions = CreateIgnoredDimensions(boundLocalDeclaration); 2161ImmutableArray<IVariableDeclaratorOperation> declarators = CreateVariableDeclarator(boundMultipleLocalDeclarations, declarationSyntax); 2162ImmutableArray<IOperation> ignoredDimensions = CreateIgnoredDimensions(boundMultipleLocalDeclarations); 2250ImmutableArray<IOperation> elements = CreateFromArray<BoundExpression, IOperation>(boundTupleExpression.Arguments); 2254private IInterpolatedStringOperation CreateBoundInterpolatedStringExpressionOperation(BoundInterpolatedString boundInterpolatedString, ImmutableArray<(bool IsLiteral, bool HasAlignment, bool HasFormat)>? positionInfo = null) 2263ImmutableArray<IInterpolatedStringContentOperation> parts = CreateBoundInterpolatedStringContentOperation(boundInterpolatedString.Parts, positionInfo); 2271internal ImmutableArray<IInterpolatedStringContentOperation> CreateBoundInterpolatedStringContentOperation(ImmutableArray<BoundExpression> parts, ImmutableArray<(bool IsLiteral, bool HasAlignment, bool HasFormat)>? positionInfo) 2275ImmutableArray<IInterpolatedStringContentOperation> createNonHandlerInterpolatedStringContent() 2293ImmutableArray<IInterpolatedStringContentOperation> createHandlerInterpolatedStringContent(ImmutableArray<(bool IsLiteral, bool HasAlignment, bool HasFormat)> positionInfo) 2377static (BoundExpression Value, BoundExpression? Alignment, BoundExpression? Format) getCallInfo(ImmutableArray<BoundExpression> arguments, ImmutableArray<string?> argumentNamesOpt, (bool IsLiteral, bool HasAlignment, bool HasFormat) currentPosition) 2489return new InvalidOperation(ImmutableArray<IOperation>.Empty, _semanticModel, syntax, type, placeholder.ConstantValueOpt, isImplicit); 2556ImmutableArray<IPatternOperation> deconstructionSubpatterns = boundRecursivePattern.Deconstruction is { IsDefault: false } deconstructions 2558: ImmutableArray<IPatternOperation>.Empty; 2559ImmutableArray<IPropertySubpatternOperation> propertySubpatterns = boundRecursivePattern.Properties is { IsDefault: false } properties 2561: ImmutableArray<IPropertySubpatternOperation>.Empty; 2577ImmutableArray<IPatternOperation> deconstructionSubpatterns = boundITuplePattern.Subpatterns is { IsDefault: false } subpatterns 2579: ImmutableArray<IPatternOperation>.Empty; 2585propertySubpatterns: ImmutableArray<IPropertySubpatternOperation>.Empty, 2687ImmutableArray<ISwitchCaseOperation> cases = CreateFromArray<BoundSwitchSection, ISwitchCaseOperation>(boundSwitchStatement.SwitchSections); 2688ImmutableArray<ILocalSymbol> locals = boundSwitchStatement.InnerLocals.GetPublicSymbols(); 2697ImmutableArray<ICaseClauseOperation> clauses = CreateFromArray<BoundSwitchLabel, ICaseClauseOperation>(boundSwitchSection.SwitchLabels); 2698ImmutableArray<IOperation> body = CreateFromArray<BoundStatement, IOperation>(boundSwitchSection.Statements); 2699ImmutableArray<ILocalSymbol> locals = boundSwitchSection.Locals.GetPublicSymbols(); 2707ImmutableArray<ISwitchExpressionArmOperation> arms = CreateFromArray<BoundSwitchExpressionArm, ISwitchExpressionArmOperation>(boundSwitchExpression.SwitchArms); 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); 2940private ImmutableArray<IArgumentOperation> CreateDisposeArguments(MethodArgumentInfo patternDisposeInfo) 2947return ImmutableArray<IArgumentOperation>.Empty; 2950var args = DeriveArguments(
Operations\CSharpOperationFactory_Methods.cs (26)
18internal ImmutableArray<BoundStatement> ToStatements(BoundStatement? statement) 22return ImmutableArray<BoundStatement>.Empty; 75return new VariableInitializerOperation(locals: ImmutableArray<ILocalSymbol>.Empty, value, _semanticModel, initializerSyntax, initializerIsImplicit); 87ImmutableArray<IOperation> ignoredDimensions = CreateFromArray<BoundExpression, IOperation>(boundLocalDeclaration.ArgumentsOpt); 95return boundLocal == null ? null : new VariableDeclaratorOperation(boundLocal.LocalSymbol.GetPublicSymbol(), initializer: null, ignoredArguments: ImmutableArray<IOperation>.Empty, semanticModel: _semanticModel, syntax: boundLocal.Syntax, isImplicit: false); 194internal ImmutableArray<IArgumentOperation> DeriveArguments(BoundNode containingExpression) 264private ImmutableArray<IArgumentOperation> DeriveArguments( 266ImmutableArray<BoundExpression> boundArguments, 267ImmutableArray<int> argumentsToParametersOpt, 276return ImmutableArray<IArgumentOperation>.Empty; 288private static ImmutableArray<IArgumentOperation> MakeArgumentsInEvaluationOrder( 290ImmutableArray<BoundExpression> arguments, 292ImmutableArray<int> argsToParamsOpt, 307ImmutableArray<ParameterSymbol> parameters = methodOrIndexer.GetParameters(); 359private static ImmutableArray<IArgumentOperation> BuildArgumentsInEvaluationOrder( 362ImmutableArray<int> argsToParamsOpt, 364ImmutableArray<BoundExpression> arguments) 366ImmutableArray<ParameterSymbol> parameters = methodOrIndexer.GetParameters(); 387internal static ImmutableArray<BoundNode> CreateInvalidChildrenFromArgumentsExpression(BoundNode? receiverOpt, ImmutableArray<BoundExpression> arguments, BoundExpression? additionalNodeOpt = null) 407internal ImmutableArray<IOperation> GetAnonymousObjectCreationInitializers( 408ImmutableArray<BoundExpression> arguments, 409ImmutableArray<BoundAnonymousPropertyDeclaration> declarations, 443arguments: ImmutableArray<IArgumentOperation>.Empty, 455ImmutableArray<IArgumentOperation>.Empty, 474static BoundAnonymousPropertyDeclaration? getDeclaration(ImmutableArray<BoundAnonymousPropertyDeclaration> declarations, PropertySymbol currentProperty, ref int currentDeclarationIndex)
Operations\IBoundNodeWithIOperationChildren.cs (1)
16ImmutableArray<BoundNode?> Children { get; }
SourceGeneration\CSharpGeneratorDriver.cs (2)
27internal CSharpGeneratorDriver(CSharpParseOptions parseOptions, ImmutableArray<ISourceGenerator> generators, AnalyzerConfigOptionsProvider optionsProvider, ImmutableArray<AdditionalText> additionalTexts, GeneratorDriverOptions driverOptions)
src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (1)
95builder.Add(new DeclarationInfo(name, ImmutableArray<SyntaxNode>.Empty, declaredSymbol));
SymbolDisplay\SymbolDisplay.cs (8)
135public static ImmutableArray<SymbolDisplayPart> ToDisplayParts( 147public static ImmutableArray<SymbolDisplayPart> ToDisplayParts( 158public static ImmutableArray<SymbolDisplayPart> ToDisplayParts( 182public static ImmutableArray<SymbolDisplayPart> ToMinimalDisplayParts( 194public static ImmutableArray<SymbolDisplayPart> ToMinimalDisplayParts( 205public static ImmutableArray<SymbolDisplayPart> ToMinimalDisplayParts( 217private static ImmutableArray<SymbolDisplayPart> ToDisplayParts( 228private static ImmutableArray<SymbolDisplayPart> ToDisplayParts(
SymbolDisplay\SymbolDisplayVisitor.Members.cs (6)
577AddTypeArguments(symbol, default(ImmutableArray<ImmutableArray<CustomModifier>>)); 592var conventionTypes = symbol.UnmanagedCallingConventionTypes; 978private void AddParametersIfNeeded(bool hasThisParameter, bool isVarargs, ImmutableArray<IParameterSymbol> parameters) 1046private void AddExplicitInterfaceIfNeeded<T>(ImmutableArray<T> implementedMembers) where T : ISymbol 1062private void AddCustomModifiersIfNeeded(ImmutableArray<CustomModifier> customModifiers, bool leadingSpace = false, bool trailingSpace = true)
SymbolDisplay\SymbolDisplayVisitor.Types.cs (9)
433private ImmutableArray<ImmutableArray<CustomModifier>> GetTypeArgumentsModifiers(NamedTypeSymbol? underlyingTypeSymbol) 517ImmutableArray<ImmutableArray<CustomModifier>> modifiers = GetTypeArgumentsModifiers(underlyingTypeSymbol); 547ImmutableArray<IFieldSymbol> elements = symbol.TupleElements; 780private void AddTypeArguments(ISymbol owner, ImmutableArray<ImmutableArray<CustomModifier>> modifiers) 782ImmutableArray<ITypeSymbol> typeArguments; 843private void AddTypeParameterConstraints(ImmutableArray<ITypeSymbol> typeArguments)
Symbols\AbstractTypeMap.cs (22)
60ImmutableArray<TypeWithAnnotations> oldTypeArguments = previous.TypeArgumentsWithAnnotationsNoUseSiteDiagnostics; 133internal virtual ImmutableArray<CustomModifier> SubstituteCustomModifiers(ImmutableArray<CustomModifier> customModifiers) 195ImmutableArray<NamedTypeSymbol> interfaces = t.InterfacesNoUseSiteDiagnostics(); 242var refCustomModifiers = f.Signature.RefCustomModifiers; 243var substitutedRefCustomModifiers = SubstituteCustomModifiers(refCustomModifiers); 245var parameterTypesWithAnnotations = f.Signature.ParameterTypesWithAnnotations; 246ImmutableArray<TypeWithAnnotations> substitutedParamTypes = SubstituteTypes(parameterTypesWithAnnotations); 248ImmutableArray<ImmutableArray<CustomModifier>> substitutedParamModifiers = default; 253var builder = ArrayBuilder<ImmutableArray<CustomModifier>>.GetInstance(paramCount); 257var substituted = SubstituteCustomModifiers(param.RefCustomModifiers); 286internal ImmutableArray<TypeSymbol> SubstituteTypesWithoutModifiers(ImmutableArray<TypeSymbol> original) 320internal ImmutableArray<TypeWithAnnotations> SubstituteTypes(ImmutableArray<TypeWithAnnotations> original) 324return default(ImmutableArray<TypeWithAnnotations>); 343ImmutableArray<TypeWithAnnotations> original, 400internal ImmutableArray<TypeParameterSymbol> SubstituteTypeParameters(ImmutableArray<TypeParameterSymbol> original) 408internal ImmutableArray<NamedTypeSymbol> SubstituteNamedTypes(ImmutableArray<NamedTypeSymbol> original)
Symbols\AliasSymbol.cs (6)
50private readonly ImmutableArray<Location> _locations; // NOTE: can be empty for the "global" alias. 55protected AliasSymbol(string aliasName, Symbol containingSymbol, ImmutableArray<Location> locations, bool isExtern) 70return new AliasSymbolFromResolvedTarget(globalNamespace, "global", globalNamespace, ImmutableArray<Location>.Empty, isExtern: false); 118public override ImmutableArray<Location> Locations 126public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 436internal AliasSymbolFromResolvedTarget(NamespaceOrTypeSymbol target, string aliasName, Symbol containingSymbol, ImmutableArray<Location> locations, bool isExtern)
Symbols\AnonymousTypes\AnonymousTypeDescriptor.cs (5)
21public readonly ImmutableArray<AnonymousTypeField> Fields; 32public AnonymousTypeDescriptor(ImmutableArray<AnonymousTypeField> fields, Location location) 39internal static string ComputeKey<T>(ImmutableArray<T> fields, Func<T, string> getName) 101internal AnonymousTypeDescriptor WithNewFieldsTypes(ImmutableArray<TypeWithAnnotations> newFieldTypes) 113var newFieldTypes = map.SubstituteTypes(oldFieldTypes);
Symbols\AnonymousTypes\AnonymousTypeManager.cs (3)
56internal static ImmutableArray<TypeWithAnnotations> GetAnonymousTypeFieldTypes(NamedTypeSymbol type) 60var fields = anonymous.TypeDescriptor.Fields; 68public static NamedTypeSymbol ConstructAnonymousTypeSymbol(NamedTypeSymbol type, ImmutableArray<TypeWithAnnotations> newFieldTypes)
Symbols\AnonymousTypes\AnonymousTypeManager.Templates.cs (12)
197var fields = typeDescr.Fields; 219var typeArguments = typeArgumentsBuilder.ToImmutableAndFree(); 227var genericFieldTypes = IndexedTypeParameterSymbol.Take(nTypeArguments); 277var typeParameters = GetReferencedTypeParameters(typeDescr); 302var fields = typeDescr.Fields; 339static SynthesizedDelegateKey getTemplateKey(AnonymousTypeDescriptor typeDescr, ImmutableArray<TypeParameterSymbol> typeParameters) 351private static ImmutableArray<TypeParameterSymbol> GetReferencedTypeParameters(AnonymousTypeDescriptor typeDescr) 371ImmutableArray<TypeParameterSymbol> typeParameters; 374typeParameters = ImmutableArray<TypeParameterSymbol>.Empty; 699internal ImmutableSegmentedDictionary<AnonymousDelegateWithIndexedNamePartialKey, ImmutableArray<AnonymousTypeValue>> GetAnonymousDelegatesWithIndexedNames() 720internal ImmutableArray<NamedTypeSymbol> GetAllCreatedTemplates() 756internal static ImmutableArray<MethodSymbol> GetAnonymousTypeHiddenMethods(NamedTypeSymbol type)
Symbols\AnonymousTypes\PublicSymbols\AnonymousManager.TypeOrDelegatePublicSymbol.cs (21)
47internal sealed override ImmutableArray<Symbol> GetEarlyAttributeDecodingMembers() 52internal sealed override ImmutableArray<Symbol> GetEarlyAttributeDecodingMembers(string name) 90public sealed override ImmutableArray<TypeParameterSymbol> TypeParameters 92get { return ImmutableArray<TypeParameterSymbol>.Empty; } 95internal sealed override ImmutableArray<TypeWithAnnotations> TypeArgumentsWithAnnotationsNoUseSiteDiagnostics 97get { return ImmutableArray<TypeWithAnnotations>.Empty; } 132public sealed override ImmutableArray<NamedTypeSymbol> GetTypeMembers() 134return ImmutableArray<NamedTypeSymbol>.Empty; 137public sealed override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name) 139return ImmutableArray<NamedTypeSymbol>.Empty; 142public sealed override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name, int arity) 144return ImmutableArray<NamedTypeSymbol>.Empty; 152internal sealed override ImmutableArray<NamedTypeSymbol> InterfacesNoUseSiteDiagnostics(ConsList<TypeSymbol> basesBeingResolved) 154return ImmutableArray<NamedTypeSymbol>.Empty; 157internal sealed override ImmutableArray<NamedTypeSymbol> GetInterfacesToEmit() 171public sealed override ImmutableArray<Location> Locations 176public abstract override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 246internal sealed override ImmutableArray<string> GetAppliedConditionalSymbols() 248return ImmutableArray<string>.Empty; 261internal sealed override ImmutableArray<NamedTypeSymbol> GetDeclaredInterfaces(ConsList<TypeSymbol> basesBeingResolved) 263return ImmutableArray<NamedTypeSymbol>.Empty;
Symbols\AnonymousTypes\PublicSymbols\AnonymousType.DelegatePublicSymbol.cs (7)
17private ImmutableArray<Symbol> _lazyMembers; 43public override ImmutableArray<Symbol> GetMembers() 52private ImmutableArray<Symbol> CreateMembers() 55var fields = TypeDescriptor.Fields; 71public override ImmutableArray<Symbol> GetMembers(string name) => GetMembers().WhereAsArray((member, name) => member.Name == name, name); 75public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences => ImmutableArray<SyntaxReference>.Empty;
Symbols\AnonymousTypes\PublicSymbols\AnonymousType.TypePublicSymbol.cs (7)
23private readonly ImmutableArray<Symbol> _members; 26internal readonly ImmutableArray<AnonymousTypePropertySymbol> Properties; 36var fields = typeDescr.Fields; 72var newFieldTypes = map.SubstituteTypes(oldFieldTypes); 85public override ImmutableArray<Symbol> GetMembers() 90public override ImmutableArray<Symbol> GetMembers(string name) 112public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.ConstructorSymbol.cs (5)
20private readonly ImmutableArray<ParameterSymbol> _parameters; 22internal AnonymousTypeConstructorSymbol(NamedTypeSymbol container, ImmutableArray<AnonymousTypePropertySymbol> properties) 39_parameters = ImmutableArray<ParameterSymbol>.Empty; 63public override ImmutableArray<ParameterSymbol> Parameters 86public override ImmutableArray<Location> Locations
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.DelegateTemplateSymbol.cs (16)
18private readonly ImmutableArray<Symbol> _members; 53var typeParams = containingType.TypeParameters; 73private static ImmutableArray<TypeParameterSymbol> CreateTypeParameters(AnonymousDelegateTemplateSymbol containingType, int parameterCount, bool returnsVoid, bool hasParamsArray) 119ImmutableArray<AnonymousTypeField> fields) 121var typeParams = containingType.TypeParameters; 158internal AnonymousDelegateTemplateSymbol(AnonymousTypeManager manager, AnonymousTypeDescriptor typeDescr, ImmutableArray<TypeParameterSymbol> typeParametersToSubstitute) 171TypeParameters = ImmutableArray<TypeParameterSymbol>.Empty; 193ImmutableArray<AnonymousTypeField> fields, 215private static ImmutableArray<Symbol> CreateMembers(MethodSymbol constructor, MethodSymbol invokeMethod) 232public override ImmutableArray<Symbol> GetMembers() => _members; 234public override ImmutableArray<Symbol> GetMembers(string name) => GetMembers().WhereAsArray((member, name) => member.Name == name, name); 238internal override ImmutableArray<NamedTypeSymbol> GetInterfacesToEmit() => ImmutableArray<NamedTypeSymbol>.Empty; 240internal override ImmutableArray<NamedTypeSymbol> InterfacesNoUseSiteDiagnostics(ConsList<TypeSymbol>? basesBeingResolved = null) => ImmutableArray<NamedTypeSymbol>.Empty; 244public override ImmutableArray<TypeParameterSymbol> TypeParameters { get; }
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.EqualsMethodSymbol.cs (2)
19private readonly ImmutableArray<ParameterSymbol> _parameters; 48public override ImmutableArray<ParameterSymbol> Parameters
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.FieldSymbol.cs (6)
37public override ImmutableArray<CustomModifier> RefCustomModifiers => ImmutableArray<CustomModifier>.Empty; 118public override ImmutableArray<Location> Locations 120get { return ImmutableArray<Location>.Empty; } 123public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 127return ImmutableArray<SyntaxReference>.Empty;
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.GetHashCodeMethodSymbol.cs (2)
52public override ImmutableArray<ParameterSymbol> Parameters 54get { return ImmutableArray<ParameterSymbol>.Empty; }
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.PropertyAccessorSymbol.cs (3)
49public override ImmutableArray<ParameterSymbol> Parameters 51get { return ImmutableArray<ParameterSymbol>.Empty; } 59public override ImmutableArray<Location> Locations
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.PropertySymbol.cs (11)
25private readonly ImmutableArray<Location> _locations; 30this(container, field, fieldTypeWithAnnotations, index, ImmutableArray<Location>.Empty, includeBackingField: true) 44ImmutableArray<Location> locations, 89public override ImmutableArray<Location> Locations 94public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 141public override ImmutableArray<ParameterSymbol> Parameters 143get { return ImmutableArray<ParameterSymbol>.Empty; } 151public override ImmutableArray<CustomModifier> RefCustomModifiers 153get { return ImmutableArray<CustomModifier>.Empty; } 161public override ImmutableArray<PropertySymbol> ExplicitInterfaceImplementations 163get { return ImmutableArray<PropertySymbol>.Empty; }
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.SynthesizedMethodBase.cs (12)
54public override ImmutableArray<Location> Locations 56get { return ImmutableArray<Location>.Empty; } 108public sealed override ImmutableArray<TypeWithAnnotations> TypeArgumentsWithAnnotations 110get { return ImmutableArray<TypeWithAnnotations>.Empty; } 113public sealed override ImmutableArray<TypeParameterSymbol> TypeParameters 115get { return ImmutableArray<TypeParameterSymbol>.Empty; } 123public sealed override ImmutableArray<MethodSymbol> ExplicitInterfaceImplementations 125get { return ImmutableArray<MethodSymbol>.Empty; } 133public sealed override ImmutableArray<CustomModifier> RefCustomModifiers 135get { return ImmutableArray<CustomModifier>.Empty; } 210internal sealed override ImmutableArray<string> GetAppliedConditionalSymbols() 212return ImmutableArray<string>.Empty;
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.TemplateSymbol.cs (11)
26private readonly ImmutableArray<TypeParameterSymbol> _typeParameters; 27private readonly ImmutableArray<Symbol> _members; 31internal readonly ImmutableArray<MethodSymbol> SpecialMembers; 34internal readonly ImmutableArray<AnonymousTypePropertySymbol> Properties; 108public override ImmutableArray<Symbol> GetMembers() 126public override ImmutableArray<Symbol> GetMembers(string name) 138internal override ImmutableArray<NamedTypeSymbol> InterfacesNoUseSiteDiagnostics(ConsList<TypeSymbol> basesBeingResolved) 140return ImmutableArray<NamedTypeSymbol>.Empty; 143internal override ImmutableArray<NamedTypeSymbol> GetInterfacesToEmit() 145return ImmutableArray<NamedTypeSymbol>.Empty; 150public override ImmutableArray<TypeParameterSymbol> TypeParameters
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.ToStringMethodSymbol.cs (2)
52public override ImmutableArray<ParameterSymbol> Parameters 54get { return ImmutableArray<ParameterSymbol>.Empty; }
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.TypeOrDelegateTemplateSymbol.cs (17)
125internal sealed override ImmutableArray<Symbol> GetEarlyAttributeDecodingMembers() 130internal sealed override ImmutableArray<Symbol> GetEarlyAttributeDecodingMembers(string name) 185public sealed override ImmutableArray<NamedTypeSymbol> GetTypeMembers() 187return ImmutableArray<NamedTypeSymbol>.Empty; 190public sealed override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name) 192return ImmutableArray<NamedTypeSymbol>.Empty; 195public sealed override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name, int arity) 197return ImmutableArray<NamedTypeSymbol>.Empty; 210public sealed override ImmutableArray<Location> Locations 212get { return ImmutableArray<Location>.Empty; } 215public sealed override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 217get { return ImmutableArray<SyntaxReference>.Empty; } 237internal sealed override ImmutableArray<NamedTypeSymbol> GetDeclaredInterfaces(ConsList<TypeSymbol> basesBeingResolved) 239return ImmutableArray<NamedTypeSymbol>.Empty; 250internal sealed override ImmutableArray<TypeWithAnnotations> TypeArgumentsWithAnnotationsNoUseSiteDiagnostics 305internal sealed override ImmutableArray<string> GetAppliedConditionalSymbols() 307return ImmutableArray<string>.Empty;
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.TypeParameterSymbol.cs (8)
44public override ImmutableArray<Location> Locations 46get { return ImmutableArray<Location>.Empty; } 49public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 53return ImmutableArray<SyntaxReference>.Empty; 122internal override ImmutableArray<TypeWithAnnotations> GetConstraintTypes(ConsList<TypeParameterSymbol> inProgress) 124return ImmutableArray<TypeWithAnnotations>.Empty; 132internal override ImmutableArray<NamedTypeSymbol> GetInterfaces(ConsList<TypeParameterSymbol> inProgress) 134return ImmutableArray<NamedTypeSymbol>.Empty;
Symbols\ArrayTypeSymbol.cs (40)
46return CreateMDArray(declaringAssembly, elementTypeWithAnnotations, rank, default(ImmutableArray<int>), default(ImmutableArray<int>)); 52ImmutableArray<int> sizes, 53ImmutableArray<int> lowerBounds, 69ImmutableArray<int> sizes, 70ImmutableArray<int> lowerBounds) 85ImmutableArray<NamedTypeSymbol> constructedInterfaces) 104private static ImmutableArray<NamedTypeSymbol> GetSZArrayInterfaces( 149public virtual ImmutableArray<int> Sizes 153return ImmutableArray<int>.Empty; 162public virtual ImmutableArray<int> LowerBounds 166return default(ImmutableArray<int>); 177var thisLowerBounds = this.LowerBounds; 184var otherLowerBounds = other.LowerBounds; 261public override ImmutableArray<Symbol> GetMembers() 263return ImmutableArray<Symbol>.Empty; 266public override ImmutableArray<Symbol> GetMembers(string name) 268return ImmutableArray<Symbol>.Empty; 271public override ImmutableArray<NamedTypeSymbol> GetTypeMembers() 273return ImmutableArray<NamedTypeSymbol>.Empty; 276public override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name) 278return ImmutableArray<NamedTypeSymbol>.Empty; 281public override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name, int arity) 283return ImmutableArray<NamedTypeSymbol>.Empty; 310public override ImmutableArray<Location> Locations 314return ImmutableArray<Location>.Empty; 318public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 322return ImmutableArray<SyntaxReference>.Empty; 391internal override bool ApplyNullableTransforms(byte defaultTransformFlag, ImmutableArray<byte> transforms, ref int position, out TypeSymbol result) 509private readonly ImmutableArray<NamedTypeSymbol> _interfaces; 514ImmutableArray<NamedTypeSymbol> constructedInterfaces) 548internal override ImmutableArray<NamedTypeSymbol> InterfacesNoUseSiteDiagnostics(ConsList<TypeSymbol>? basesBeingResolved = null) 595internal sealed override ImmutableArray<NamedTypeSymbol> InterfacesNoUseSiteDiagnostics(ConsList<TypeSymbol>? basesBeingResolved = null) 597return ImmutableArray<NamedTypeSymbol>.Empty; 627private readonly ImmutableArray<int> _sizes; 628private readonly ImmutableArray<int> _lowerBounds; 633ImmutableArray<int> sizes, 634ImmutableArray<int> lowerBounds, 649public override ImmutableArray<int> Sizes 657public override ImmutableArray<int> LowerBounds
Symbols\AssemblySymbol.cs (10)
179public abstract ImmutableArray<ModuleSymbol> Modules { get; } 281public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 285return ImmutableArray<SyntaxReference>.Empty; 534internal abstract ImmutableArray<AssemblySymbol> GetNoPiaResolutionAssemblies(); 535internal abstract void SetNoPiaResolutionAssemblies(ImmutableArray<AssemblySymbol> assemblies); 542internal abstract ImmutableArray<AssemblySymbol> GetLinkedReferencedAssemblies(); 543internal abstract void SetLinkedReferencedAssemblies(ImmutableArray<AssemblySymbol> assemblies); 545IEnumerable<ImmutableArray<byte>> IAssemblySymbolInternal.GetInternalsVisibleToPublicKeys(string simpleName) 548internal abstract IEnumerable<ImmutableArray<byte>> GetInternalsVisibleToPublicKeys(string simpleName); 1072internal abstract ImmutableArray<byte> PublicKey { get; }
Symbols\Attributes\AttributeData.cs (5)
345var ctorArgs = this.CommonConstructorArguments; 513var namedArgs = this.CommonNamedArguments; 557var members = permissionSetType.GetMembers(propName); 792internal static int IndexOfAttribute(this ImmutableArray<CSharpAttributeData> attributes, AttributeDescription description) 808var arguments = attribute.CommonConstructorArguments;
Symbols\Attributes\PEAttributeData.cs (4)
24private ImmutableArray<TypedConstant> _lazyConstructorArguments; 25private ImmutableArray<KeyValuePair<string, TypedConstant>> _lazyNamedArguments; 57protected internal override ImmutableArray<TypedConstant> CommonConstructorArguments 66protected internal override ImmutableArray<KeyValuePair<string, TypedConstant>> CommonNamedArguments
Symbols\Attributes\RetargetingAttributeData.cs (6)
20private readonly ImmutableArray<TypedConstant> _constructorArguments; 21private readonly ImmutableArray<KeyValuePair<string, TypedConstant>> _namedArguments; 27ImmutableArray<TypedConstant> constructorArguments, 28ImmutableArray<KeyValuePair<string, TypedConstant>> namedArguments) 42protected internal override ImmutableArray<TypedConstant> CommonConstructorArguments => _constructorArguments; 43protected internal override ImmutableArray<KeyValuePair<string, TypedConstant>> CommonNamedArguments => _namedArguments;
Symbols\Attributes\SourceAttributeData.cs (16)
23private readonly ImmutableArray<TypedConstant> _constructorArguments; 24private readonly ImmutableArray<int> _constructorArgumentsSourceIndices; 25private readonly ImmutableArray<KeyValuePair<string, TypedConstant>> _namedArguments; 35ImmutableArray<TypedConstant> constructorArguments, 36ImmutableArray<int> constructorArgumentsSourceIndices, 37ImmutableArray<KeyValuePair<string, TypedConstant>> namedArguments, 67constructorArguments: ImmutableArray<TypedConstant>.Empty, 69namedArguments: ImmutableArray<KeyValuePair<string, TypedConstant>>.Empty, 80ImmutableArray<TypedConstant> constructorArguments, 81ImmutableArray<int> constructorArgumentsSourceIndices, 82ImmutableArray<KeyValuePair<string, TypedConstant>> namedArguments, 118internal ImmutableArray<int> ConstructorArgumentsSourceIndices 202protected internal sealed override ImmutableArray<TypedConstant> CommonConstructorArguments 207protected internal sealed override ImmutableArray<KeyValuePair<string, TypedConstant>> CommonNamedArguments 242ImmutableArray<ParameterSymbol> parameters = ctor.Parameters; 256bool matches(byte[] targetSignature, ImmutableArray<ParameterSymbol> parameters, ref TypeSymbol? lazySystemType)
Symbols\Attributes\WellKnownAttributeData\MethodWellKnownAttributeData.cs (9)
63private ImmutableArray<string> _memberNotNullAttributeData = ImmutableArray<string>.Empty; 79public ImmutableArray<string> NotNullMembers 88private ImmutableArray<string> _memberNotNullWhenTrueAttributeData = ImmutableArray<string>.Empty; 89private ImmutableArray<string> _memberNotNullWhenFalseAttributeData = ImmutableArray<string>.Empty; 119public ImmutableArray<string> NotNullWhenTrueMembers 128public ImmutableArray<string> NotNullWhenFalseMembers
Symbols\Attributes\WellKnownAttributeData\ParameterWellKnownAttributeData.cs (3)
162private ImmutableArray<int> _interpolatedStringHandlerArguments = ImmutableArray<int>.Empty; 163public ImmutableArray<int> InterpolatedStringHandlerArguments
Symbols\Attributes\WellKnownAttributeData\PropertyWellKnownAttributeData.cs (9)
113private ImmutableArray<string> _memberNotNullAttributeData = ImmutableArray<string>.Empty; 129public ImmutableArray<string> NotNullMembers 138private ImmutableArray<string> _memberNotNullWhenTrueAttributeData = ImmutableArray<string>.Empty; 139private ImmutableArray<string> _memberNotNullWhenFalseAttributeData = ImmutableArray<string>.Empty; 169public ImmutableArray<string> NotNullWhenTrueMembers 178public ImmutableArray<string> NotNullWhenFalseMembers
Symbols\Compilation_UsedAssemblies.cs (4)
23public override ImmutableArray<MetadataReference> GetUsedAssemblyReferences(CancellationToken cancellationToken = default) 29return ImmutableArray<MetadataReference>.Empty; 33ImmutableDictionary<MetadataReference, ImmutableArray<MetadataReference>> mergedAssemblyReferencesMap = GetBoundReferenceManager().MergedAssemblyReferencesMap; 42mergedAssemblyReferencesMap.TryGetValue(reference, out ImmutableArray<MetadataReference> merged))
Symbols\Compilation_WellKnownMembers.cs (22)
247var members = declaringType.GetMembers(descriptor.Name); 251internal static Symbol? GetRuntimeMember(ImmutableArray<Symbol> members, in MemberDescriptor descriptor, SignatureComparer<MethodSymbol, FieldSymbol, PropertySymbol, TypeSymbol, ParameterSymbol> comparer, AssemblySymbol? accessWithinOpt) 390ImmutableArray<TypedConstant> arguments = default, 391ImmutableArray<KeyValuePair<WellKnownMember, TypedConstant>> namedArguments = default, 405arguments = ImmutableArray<TypedConstant>.Empty; 408ImmutableArray<KeyValuePair<string, TypedConstant>> namedStringArguments; 411namedStringArguments = ImmutableArray<KeyValuePair<string, TypedConstant>>.Empty; 452arguments: ImmutableArray<TypedConstant>.Empty, 453namedArguments: ImmutableArray<KeyValuePair<string, TypedConstant>>.Empty); 788var transformFlags = DynamicTransformsEncoder.Encode(type, refKindOpt, customModifiersCount, booleanType); 790var arguments = ImmutableArray.Create(new TypedConstant(boolArray, transformFlags)); 807var args = ImmutableArray.Create(new TypedConstant(stringArray, names)); 815var arguments = ImmutableArray.Create( 817var namedArguments = ImmutableArray.Create( 825public static ImmutableArray<string?> Encode(TypeSymbol type) 838public static ImmutableArray<TypedConstant> Encode(TypeSymbol type, TypeSymbol stringType) 889internal static ImmutableArray<TypedConstant> Encode(TypeSymbol type, RefKind refKind, int customModifiersCount, TypeSymbol booleanType) 901internal static ImmutableArray<bool> Encode(TypeSymbol type, RefKind refKind, int customModifiersCount) 908internal static ImmutableArray<bool> EncodeWithoutCustomModifierFlags(TypeSymbol type, RefKind refKind) 1010void handle(RefKind refKind, ImmutableArray<CustomModifier> customModifiers, TypeWithAnnotations twa) 1131protected override ImmutableArray<ParameterSymbol> GetParameters(MethodSymbol method) 1136protected override ImmutableArray<ParameterSymbol> GetParameters(PropertySymbol property)
Symbols\ConstraintsHelper.cs (29)
75ImmutableArray<TypeWithAnnotations> constraintTypes, 132ImmutableArray<TypeWithAnnotations> constraintTypes, 141ImmutableArray<NamedTypeSymbol> interfaces; 148interfaces = ImmutableArray<NamedTypeSymbol>.Empty; 344internal static ImmutableArray<ImmutableArray<TypeWithAnnotations>> MakeTypeParameterConstraintTypes( 347ImmutableArray<TypeParameterSymbol> typeParameters, 354return ImmutableArray<ImmutableArray<TypeWithAnnotations>>.Empty; 362ImmutableArray<TypeParameterConstraintClause> clauses; 368return ImmutableArray<ImmutableArray<TypeWithAnnotations>>.Empty; 374internal static ImmutableArray<TypeParameterConstraintKind> MakeTypeParameterConstraintKinds( 377ImmutableArray<TypeParameterSymbol> typeParameters, 383return ImmutableArray<TypeParameterConstraintKind>.Empty; 386ImmutableArray<TypeParameterConstraintClause> clauses; 409return ImmutableArray<TypeParameterConstraintKind>.Empty; 415internal static ImmutableArray<TypeParameterConstraintClause> AdjustConstraintKindsBasedOnConstraintTypes(ImmutableArray<TypeParameterSymbol> typeParameters, ImmutableArray<TypeParameterConstraintClause> constraintClauses) 470var constraintTypes = bounds.ConstraintTypes; 602ImmutableArray<Location> elementLocations, 761var array = type.OriginalDefinition.InterfacesNoUseSiteDiagnostics(basesBeingResolved); 892ImmutableArray<TypeParameterSymbol> typeParameters, 893ImmutableArray<TypeWithAnnotations> typeArguments, 1061ImmutableArray<TypeWithAnnotations> originalConstraintTypes = typeParameter.ConstraintTypesWithDefinitionUseSiteDiagnostics(ref useSiteInfo); 1412private static bool IsReferenceType(TypeParameterSymbol typeParameter, ImmutableArray<TypeWithAnnotations> constraintTypes) 1417private static bool IsValueType(TypeParameterSymbol typeParameter, ImmutableArray<TypeWithAnnotations> constraintTypes) 1428private static void AddInterfaces(ArrayBuilder<NamedTypeSymbol> builder, ImmutableArray<NamedTypeSymbol> interfaces)
Symbols\ConstructedMethodSymbol.cs (3)
16private readonly ImmutableArray<TypeWithAnnotations> _typeArgumentsWithAnnotations; 18internal ConstructedMethodSymbol(MethodSymbol constructedFrom, ImmutableArray<TypeWithAnnotations> typeArgumentsWithAnnotations) 27public override ImmutableArray<TypeWithAnnotations> TypeArgumentsWithAnnotations
Symbols\ConstructedNamedTypeSymbol.cs (7)
33internal override ImmutableArray<TypeWithAnnotations> TypeArgumentsWithAnnotationsNoUseSiteDiagnostics 59private readonly ImmutableArray<TypeWithAnnotations> _typeArgumentsWithAnnotations; 62internal ConstructedNamedTypeSymbol(NamedTypeSymbol constructedFrom, ImmutableArray<TypeWithAnnotations> typeArgumentsWithAnnotations, bool unbound = false, TupleExtraData tupleData = null) 88internal override ImmutableArray<TypeWithAnnotations> TypeArgumentsWithAnnotationsNoUseSiteDiagnostics 96internal static bool TypeParametersMatchTypeArguments(ImmutableArray<TypeParameterSymbol> typeParameters, ImmutableArray<TypeWithAnnotations> typeArguments) 121var typeArguments = this.TypeArgumentsWithAnnotationsNoUseSiteDiagnostics;
Symbols\CustomModifier.cs (3)
58internal static ImmutableArray<CustomModifier> Convert(ImmutableArray<ModifierInfo<TypeSymbol>> customModifiers) 62return ImmutableArray<CustomModifier>.Empty;
Symbols\DiscardSymbol.cs (4)
23public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences => ImmutableArray<SyntaxReference>.Empty; 32public override ImmutableArray<Location> Locations => ImmutableArray<Location>.Empty;
Symbols\DynamicTypeSymbol.cs (15)
70public override ImmutableArray<Location> Locations 74return ImmutableArray<Location>.Empty; 78public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 82return ImmutableArray<SyntaxReference>.Empty; 88internal override ImmutableArray<NamedTypeSymbol> InterfacesNoUseSiteDiagnostics(ConsList<TypeSymbol>? basesBeingResolved) 90return ImmutableArray<NamedTypeSymbol>.Empty; 132public override ImmutableArray<Symbol> GetMembers() 134return ImmutableArray<Symbol>.Empty; 137public override ImmutableArray<Symbol> GetMembers(string name) 139return ImmutableArray<Symbol>.Empty; 142public override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name) 144return ImmutableArray<NamedTypeSymbol>.Empty; 147public override ImmutableArray<NamedTypeSymbol> GetTypeMembers() 149return ImmutableArray<NamedTypeSymbol>.Empty; 220internal override bool ApplyNullableTransforms(byte defaultTransformFlag, ImmutableArray<byte> transforms, ref int position, out TypeSymbol result)
Symbols\ErrorMethodSymbol.cs (16)
91public override ImmutableArray<Location> Locations 93get { return ImmutableArray<Location>.Empty; } 96public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 100return ImmutableArray<SyntaxReference>.Empty; 119public override ImmutableArray<CustomModifier> RefCustomModifiers 121get { return ImmutableArray<CustomModifier>.Empty; } 129public override ImmutableArray<MethodSymbol> ExplicitInterfaceImplementations 131get { return ImmutableArray<MethodSymbol>.Empty; } 143public override ImmutableArray<ParameterSymbol> Parameters 145get { return ImmutableArray<ParameterSymbol>.Empty; } 148public override ImmutableArray<TypeParameterSymbol> TypeParameters 150get { return ImmutableArray<TypeParameterSymbol>.Empty; } 153public override ImmutableArray<TypeWithAnnotations> TypeArgumentsWithAnnotations 155get { return ImmutableArray<TypeWithAnnotations>.Empty; } 252internal sealed override ImmutableArray<string> GetAppliedConditionalSymbols() 254return ImmutableArray<string>.Empty;
Symbols\ErrorPropertySymbol.cs (10)
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 (42)
24private ImmutableArray<TypeParameterSymbol> _lazyTypeParameters; 54public virtual ImmutableArray<Symbol> CandidateSymbols 58return ImmutableArray<Symbol>.Empty; 142public override ImmutableArray<Symbol> GetMembers() 146var result = MakeSynthesizedTupleMembers(ImmutableArray<Symbol>.Empty); 151return ImmutableArray<Symbol>.Empty; 159public override ImmutableArray<Symbol> GetMembers(string name) 169internal override ImmutableArray<Symbol> GetEarlyAttributeDecodingMembers() 174internal override ImmutableArray<Symbol> GetEarlyAttributeDecodingMembers(string name) 184public override ImmutableArray<NamedTypeSymbol> GetTypeMembers() 186return ImmutableArray<NamedTypeSymbol>.Empty; 195public override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name) 197return ImmutableArray<NamedTypeSymbol>.Empty; 206public override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name, int arity) 208return ImmutableArray<NamedTypeSymbol>.Empty; 254public override ImmutableArray<Location> Locations 258return ImmutableArray<Location>.Empty; 262public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 266return ImmutableArray<SyntaxReference>.Empty; 299internal override ImmutableArray<TypeWithAnnotations> TypeArgumentsWithAnnotationsNoUseSiteDiagnostics 311public override ImmutableArray<TypeParameterSymbol> TypeParameters 319default(ImmutableArray<TypeParameterSymbol>)); 325private ImmutableArray<TypeParameterSymbol> GetTypeParameters() 330return ImmutableArray<TypeParameterSymbol>.Empty; 446internal override ImmutableArray<NamedTypeSymbol> InterfacesNoUseSiteDiagnostics(ConsList<TypeSymbol>? basesBeingResolved) 448return ImmutableArray<NamedTypeSymbol>.Empty; 451internal override ImmutableArray<NamedTypeSymbol> GetInterfacesToEmit() 453return ImmutableArray<NamedTypeSymbol>.Empty; 461internal override ImmutableArray<NamedTypeSymbol> GetDeclaredInterfaces(ConsList<TypeSymbol> basesBeingResolved) 463return ImmutableArray<NamedTypeSymbol>.Empty; 466protected override NamedTypeSymbol ConstructCore(ImmutableArray<TypeWithAnnotations> typeArguments, bool unbound) 523internal sealed override ImmutableArray<string> GetAppliedConditionalSymbols() 525return ImmutableArray<string>.Empty; 626public override ImmutableArray<Location> Locations 631public override ImmutableArray<Symbol> CandidateSymbols 659private readonly ImmutableArray<TypeWithAnnotations> _typeArgumentsWithAnnotations; 662public ConstructedErrorTypeSymbol(ErrorTypeSymbol constructedFrom, ImmutableArray<TypeWithAnnotations> typeArgumentsWithAnnotations, TupleExtraData? tupleData = null) : 675public override ImmutableArray<TypeParameterSymbol> TypeParameters 680internal override ImmutableArray<TypeWithAnnotations> TypeArgumentsWithAnnotationsNoUseSiteDiagnostics 704private readonly ImmutableArray<TypeParameterSymbol> _typeParameters; 714public override ImmutableArray<TypeParameterSymbol> TypeParameters 719internal override ImmutableArray<TypeWithAnnotations> TypeArgumentsWithAnnotationsNoUseSiteDiagnostics
Symbols\ErrorTypeSymbol.ErrorTypeParameterSymbol.cs (8)
126public override ImmutableArray<Location> Locations 130return ImmutableArray<Location>.Empty; 134public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 138return ImmutableArray<SyntaxReference>.Empty; 162internal override ImmutableArray<TypeWithAnnotations> GetConstraintTypes(ConsList<TypeParameterSymbol> inProgress) 164return ImmutableArray<TypeWithAnnotations>.Empty; 167internal override ImmutableArray<NamedTypeSymbol> GetInterfaces(ConsList<TypeParameterSymbol> inProgress) 169return ImmutableArray<NamedTypeSymbol>.Empty;
Symbols\EventSymbol.cs (4)
109/// Returns an empty <see cref="ImmutableArray&lt;AttributeData&gt;"/> if 115public ImmutableArray<CSharpAttributeData> GetFieldAttributes() 118ImmutableArray<CSharpAttributeData>.Empty : 229public abstract ImmutableArray<EventSymbol> ExplicitInterfaceImplementations { get; }
Symbols\ExtendedErrorTypeSymbol.cs (10)
25private readonly ImmutableArray<Symbol> _candidateSymbols; // Best guess at what user meant, but was wrong. 52private ExtendedErrorTypeSymbol(NamespaceOrTypeSymbol? containingSymbol, string name, int arity, DiagnosticInfo? errorInfo, bool unreported, bool variableUsedBeforeDeclaration, ImmutableArray<Symbol> candidateSymbols, LookupResultKind resultKind) 74internal ExtendedErrorTypeSymbol(NamespaceOrTypeSymbol? containingSymbol, ImmutableArray<Symbol> candidateSymbols, LookupResultKind resultKind, DiagnosticInfo errorInfo, int arity, bool unreported = false) 88private static ImmutableArray<Symbol> UnwrapErrorCandidates(ImmutableArray<Symbol> candidateSymbols) 115public override ImmutableArray<Symbol> CandidateSymbols => _candidateSymbols.NullToEmpty(); 176public override ImmutableArray<Location> Locations 180return ImmutableArray<Location>.Empty; 197internal override ImmutableArray<NamedTypeSymbol> GetDeclaredInterfaces(ConsList<TypeSymbol> basesBeingResolved) 199return ImmutableArray<NamedTypeSymbol>.Empty;
Symbols\FieldSymbol.cs (1)
68public abstract ImmutableArray<CustomModifier> RefCustomModifiers { get; }
Symbols\FileIdentifier.cs (6)
15private class FileIdentifierData(string? encoderFallbackErrorMessage, string displayFilePath, ImmutableArray<byte> filePathChecksumOpt) 19public readonly ImmutableArray<byte> FilePathChecksumOpt = filePathChecksumOpt; 32private FileIdentifier(ImmutableArray<byte> filePathChecksumOpt, string displayFilePath) 44ImmutableArray<byte> hash = default; 82public ImmutableArray<byte> FilePathChecksumOpt 98public static FileIdentifier Create(ImmutableArray<byte> filePathChecksumOpt, string displayFilePath)
Symbols\FunctionPointers\FunctionPointerMethodSymbol.cs (65)
20private readonly ImmutableArray<FunctionPointerParameterSymbol> _parameters; 87var refCustomModifiers = ImmutableArray<CustomModifier>.Empty; 246ImmutableArray<CustomModifier> refCustomModifiers, 248ImmutableArray<TypeWithAnnotations> parameterTypes, 249ImmutableArray<ImmutableArray<CustomModifier>> parameterRefCustomModifiers, 250ImmutableArray<RefKind> parameterRefKinds, 269ImmutableArray<CustomModifier> callingConventionModifiers, 272ImmutableArray<TypeWithAnnotations> parameterTypes, 273ImmutableArray<RefKind> parameterRefKinds, 284ImmutableArray<CustomModifier> refCustomModifiers; 287refCustomModifiers = ImmutableArray<CustomModifier>.Empty; 330public static FunctionPointerMethodSymbol CreateFromMetadata(ModuleSymbol containingModule, CallingConvention callingConvention, ImmutableArray<ParamInfo<TypeSymbol>> retAndParamTypes) 335ImmutableArray<TypeWithAnnotations> substitutedParameterTypes, 336ImmutableArray<CustomModifier> refCustomModifiers = default, 337ImmutableArray<ImmutableArray<CustomModifier>> paramRefCustomModifiers = default) 354var mergedParameterTypes = ImmutableArray<TypeWithAnnotations>.Empty; 404var transformedParameterTypes = ImmutableArray<TypeWithAnnotations>.Empty; 445ImmutableArray<CustomModifier> refCustomModifiers, 446ImmutableArray<ParameterSymbol> originalParameters, 447ImmutableArray<TypeWithAnnotations> substitutedParameterTypes, 448ImmutableArray<ImmutableArray<CustomModifier>> substitutedRefCustomModifiers, 466var customModifiers = substitutedRefCustomModifiers.IsDefault ? originalParam.RefCustomModifiers : substitutedRefCustomModifiers[i]; 479_parameters = ImmutableArray<FunctionPointerParameterSymbol>.Empty; 490ImmutableArray<CustomModifier> refCustomModifiers, 491ImmutableArray<TypeWithAnnotations> parameterTypes, 492ImmutableArray<ImmutableArray<CustomModifier>> parameterRefCustomModifiers, 493ImmutableArray<RefKind> parameterRefKinds, 513static ImmutableArray<CustomModifier> getCustomModifierArrayForRefKind(RefKind refKind, CSharpCompilation compilation) 514=> GetCustomModifierForRefKind(refKind, compilation) is { } modifier ? ImmutableArray.Create(modifier) : ImmutableArray<CustomModifier>.Empty; 521ImmutableArray<CustomModifier> refCustomModifiers, 540: ImmutableArray<FunctionPointerParameterSymbol>.Empty; 543private FunctionPointerMethodSymbol(CallingConvention callingConvention, ImmutableArray<ParamInfo<TypeSymbol>> retAndParamTypes, bool useUpdatedEscapeRules) 558static ImmutableArray<FunctionPointerParameterSymbol> makeParametersFromMetadata(ReadOnlySpan<ParamInfo<TypeSymbol>> parameterTypes, FunctionPointerMethodSymbol parent) 567var paramRefCustomMods = CSharpCustomModifier.Convert(param.RefCustomModifiers); 577return ImmutableArray<FunctionPointerParameterSymbol>.Empty; 581static RefKind getRefKind(ParamInfo<TypeSymbol> param, ImmutableArray<CustomModifier> paramRefCustomMods, RefKind hasInRefKind, RefKind hasOutRefKind, bool requiresLocationAllowed) 603internal FunctionPointerMethodSymbol ApplyNullableTransforms(byte defaultTransformFlag, ImmutableArray<byte> transforms, ref int position) 606var newParamTypes = ImmutableArray<TypeWithAnnotations>.Empty; 639internal override ImmutableArray<NamedTypeSymbol> UnmanagedCallingConventionTypes 645return ImmutableArray<NamedTypeSymbol>.Empty; 648var modifiersToSearch = RefKind != RefKind.None ? RefCustomModifiers : ReturnTypeWithAnnotations.CustomModifiers; 651return ImmutableArray<NamedTypeSymbol>.Empty; 671var modifiersToSearch = RefKind != RefKind.None ? RefCustomModifiers : ReturnTypeWithAnnotations.CustomModifiers; 769public override ImmutableArray<ParameterSymbol> Parameters => 771public override ImmutableArray<CustomModifier> RefCustomModifiers { get; } 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 (8)
16public FunctionPointerParameterSymbol(TypeWithAnnotations typeWithAnnotations, RefKind refKind, int ordinal, FunctionPointerMethodSymbol containingSymbol, ImmutableArray<CustomModifier> refCustomModifiers) 30public override ImmutableArray<CustomModifier> RefCustomModifiers { get; } 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 (28)
34ImmutableArray<CustomModifier> refCustomModifiers, 36ImmutableArray<TypeWithAnnotations> parameterTypes, 37ImmutableArray<ImmutableArray<CustomModifier>> parameterRefCustomModifiers, 38ImmutableArray<RefKind> parameterRefKinds, 47ImmutableArray<CustomModifier> callingConventionModifiers, 50ImmutableArray<TypeWithAnnotations> parameterTypes, 51ImmutableArray<RefKind> parameterRefKinds, 55public static FunctionPointerTypeSymbol CreateFromMetadata(ModuleSymbol containingModule, Cci.CallingConvention callingConvention, ImmutableArray<ParamInfo<TypeSymbol>> retAndParamTypes) 61ImmutableArray<TypeWithAnnotations> substitutedParameterTypes, 62ImmutableArray<CustomModifier> refCustomModifiers, 63ImmutableArray<ImmutableArray<CustomModifier>> paramRefCustomModifiers) 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; 135internal override bool ApplyNullableTransforms(byte defaultTransformFlag, ImmutableArray<byte> transforms, ref int position, out TypeSymbol result)
Symbols\FunctionTypeSymbol.cs (9)
112public override ImmutableArray<Location> Locations => throw ExceptionUtilities.Unreachable(); 114public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences => throw ExceptionUtilities.Unreachable(); 136public override ImmutableArray<Symbol> GetMembers() => throw ExceptionUtilities.Unreachable(); 138public override ImmutableArray<Symbol> GetMembers(string name) => throw ExceptionUtilities.Unreachable(); 140public override ImmutableArray<NamedTypeSymbol> GetTypeMembers() => throw ExceptionUtilities.Unreachable(); 142public override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name) => throw ExceptionUtilities.Unreachable(); 152internal override bool ApplyNullableTransforms(byte defaultTransformFlag, ImmutableArray<byte> transforms, ref int position, out TypeSymbol result) => throw ExceptionUtilities.Unreachable(); 158internal override ImmutableArray<NamedTypeSymbol> InterfacesNoUseSiteDiagnostics(ConsList<TypeSymbol>? basesBeingResolved = null) => ImmutableArray<NamedTypeSymbol>.Empty;
Symbols\LabelSymbol.cs (1)
109public override ImmutableArray<Location> Locations
Symbols\MemberSignatureComparer.cs (16)
519var explicitInterfaceImplementations1 = member1.GetExplicitInterfaceImplementations(); 520var explicitInterfaceImplementations2 = member2.GetExplicitInterfaceImplementations(); 568ImmutableArray<CustomModifier> refCustomModifiers1; 573ImmutableArray<CustomModifier> refCustomModifiers2; 617var typeParameters = member.GetMemberTypeParameters(); 636var typeParameters1 = member1.GetMemberTypeParameters(); 637var typeParameters2 = member2.GetMemberTypeParameters(); 641public static bool HaveSameConstraints(ImmutableArray<TypeParameterSymbol> typeParameters1, TypeMap? typeMap1, ImmutableArray<TypeParameterSymbol> typeParameters2, TypeMap? typeMap2) 680var constraintTypes1 = typeParameter1.ConstraintTypesNoUseSiteDiagnostics; 681var constraintTypes2 = typeParameter2.ConstraintTypesNoUseSiteDiagnostics; 751private static void SubstituteConstraintTypes(ImmutableArray<TypeWithAnnotations> types, TypeMap? typeMap, HashSet<TypeSymbol> result) 839private static bool HaveSameCustomModifiers(ImmutableArray<CustomModifier> customModifiers1, TypeMap? typeMap1, ImmutableArray<CustomModifier> customModifiers2, TypeMap? typeMap2) 845private static ImmutableArray<CustomModifier> SubstituteModifiers(TypeMap? typeMap, ImmutableArray<CustomModifier> customModifiers)
Symbols\MemberSymbolExtensions.cs (13)
26var @params = member.GetParameters(); 33internal static ImmutableArray<ParameterSymbol> GetParameters(this Symbol member) 42return ImmutableArray<ParameterSymbol>.Empty; 51internal static ImmutableArray<TypeWithAnnotations> GetParameterTypes(this Symbol member) 60return ImmutableArray<TypeWithAnnotations>.Empty; 83internal static ImmutableArray<RefKind> GetParameterRefKinds(this Symbol member) 92return default(ImmutableArray<RefKind>); 322internal static ImmutableArray<TypeParameterSymbol> GetMemberTypeParameters(this Symbol symbol) 334return ImmutableArray<TypeParameterSymbol>.Empty; 340internal static ImmutableArray<TypeSymbol> GetMemberTypeArgumentsNoUseSiteDiagnostics(this Symbol symbol) 352return ImmutableArray<TypeSymbol>.Empty; 592internal static ImmutableArray<Symbol> GetExplicitInterfaceImplementations(this Symbol member) 603return ImmutableArray<Symbol>.Empty;
Symbols\MergedNamespaceSymbol.cs (13)
37private readonly ImmutableArray<NamespaceSymbol> _namespacesToMerge; 51private ImmutableArray<Symbol> _allMembers; 68ImmutableArray<NamespaceSymbol> namespacesToMerge, 91private MergedNamespaceSymbol(NamespaceExtent extent, NamespaceSymbol containingNamespace, ImmutableArray<NamespaceSymbol> namespacesToMerge, string nameOpt) 135private ImmutableArray<Symbol> SlowGetChildrenOfName(ReadOnlyMemory<char> name) 208public override ImmutableArray<NamespaceSymbol> ConstituentNamespaces 216public override ImmutableArray<Symbol> GetMembers() 229public override ImmutableArray<Symbol> GetMembers(ReadOnlyMemory<char> name) 234internal sealed override ImmutableArray<NamedTypeSymbol> GetTypeMembersUnordered() 239public sealed override ImmutableArray<NamedTypeSymbol> GetTypeMembers() 244public override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name) 277public override ImmutableArray<Location> Locations 287public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
Symbols\Metadata\PE\DynamicTypeDecoder.cs (13)
34private readonly ImmutableArray<bool> _dynamicTransformFlags; 44private DynamicTypeDecoder(ImmutableArray<bool> dynamicTransformFlags, bool haveCustomModifierFlags, bool checkLength, AssemblySymbol containingAssembly) 73ImmutableArray<bool> dynamicTransformFlags; 90ImmutableArray<bool> dynamicTransformFlags, 108ImmutableArray<bool> dynamicTransformFlags, 242ImmutableArray<TypeWithAnnotations> typeArguments = namedType.TypeArgumentsWithAnnotationsNoUseSiteDiagnostics; 244ImmutableArray<TypeWithAnnotations> transformedTypeArguments = TransformTypeArguments(typeArguments); // Note, modifiers are not involved, this is behavior of the native compiler. 270private ImmutableArray<TypeWithAnnotations> TransformTypeArguments(ImmutableArray<TypeWithAnnotations> typeArguments) 285return default(ImmutableArray<TypeWithAnnotations>); 360var transformedParameters = ImmutableArray<TypeWithAnnotations>.Empty; 398static (TypeWithAnnotations, bool madeChanges) handle(ref DynamicTypeDecoder decoder, RefKind refKind, ImmutableArray<CustomModifier> refCustomModifiers, TypeWithAnnotations typeWithAnnotations)
Symbols\Metadata\PE\MemberRefMetadataDecoder.cs (2)
303private static bool CustomModifiersMatch(ImmutableArray<CustomModifier> candidateCustomModifiers, ImmutableArray<ModifierInfo<TypeSymbol>> targetCustomModifiers)
Symbols\Metadata\PE\MetadataDecoder.cs (3)
76var typeParameters = _methodContextOpt.TypeParameters; 214public static bool IsOrClosedOverATypeFromAssemblies(TypeSymbol symbol, ImmutableArray<AssemblySymbol> assemblies) 250var arguments = namedType.TypeArgumentsWithAnnotationsNoUseSiteDiagnostics;
Symbols\Metadata\PE\NativeIntegerTypeDecoder.cs (6)
24return containingModule.Module.HasNativeIntegerAttribute(handle, out var transformFlags) ? 29internal static TypeSymbol TransformType(TypeSymbol type, ImmutableArray<bool> transformFlags) 61private readonly ImmutableArray<bool> _transformFlags; 65private NativeIntegerTypeDecoder(ImmutableArray<bool> transformFlags) 180var transformedParameterTypes = ImmutableArray<TypeWithAnnotations>.Empty;
Symbols\Metadata\PE\NullableTypeDecoder.cs (2)
37ImmutableArray<byte> nullableTransformFlags; 56internal static TypeWithAnnotations TransformType(TypeWithAnnotations metadataType, byte defaultTransformFlag, ImmutableArray<byte> nullableTransformFlags)
Symbols\Metadata\PE\PEAssemblySymbol.cs (13)
39private readonly ImmutableArray<ModuleSymbol> _modules; 47private ImmutableArray<AssemblySymbol> _noPiaResolutionAssemblies; 55private ImmutableArray<AssemblySymbol> _linkedReferencedAssemblies; 65private ImmutableArray<CSharpAttributeData> _lazyCustomAttributes; 110public override ImmutableArray<ModuleSymbol> Modules 118public override ImmutableArray<Location> Locations 140public override ImmutableArray<CSharpAttributeData> GetAttributes() 214internal override ImmutableArray<AssemblySymbol> GetNoPiaResolutionAssemblies() 219internal override void SetNoPiaResolutionAssemblies(ImmutableArray<AssemblySymbol> assemblies) 224internal override void SetLinkedReferencedAssemblies(ImmutableArray<AssemblySymbol> assemblies) 229internal override ImmutableArray<AssemblySymbol> GetLinkedReferencedAssemblies() 234internal override ImmutableArray<byte> PublicKey 253internal override IEnumerable<ImmutableArray<byte>> GetInternalsVisibleToPublicKeys(string simpleName)
Symbols\Metadata\PE\PEEventSymbol.cs (7)
33private ImmutableArray<CSharpAttributeData> _lazyCustomAttributes; 344public override ImmutableArray<Location> Locations 352public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 356return ImmutableArray<SyntaxReference>.Empty; 360public override ImmutableArray<CSharpAttributeData> GetAttributes() 379public override ImmutableArray<EventSymbol> ExplicitInterfaceImplementations 386return ImmutableArray<EventSymbol>.Empty;
Symbols\Metadata\PE\PEFieldSymbol.cs (11)
120private ImmutableArray<CSharpAttributeData> _lazyCustomAttributes; 132private ImmutableArray<CustomModifier> _lazyRefCustomModifiers; 255internal override ImmutableArray<byte> MarshallingDescriptor 261return default(ImmutableArray<byte>); 312ImmutableArray<CustomModifier> customModifiersArray = CSharpCustomModifier.Convert(fieldInfo.CustomModifiers); 386public override ImmutableArray<CustomModifier> RefCustomModifiers 514public override ImmutableArray<Location> Locations 522public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 526return ImmutableArray<SyntaxReference>.Empty; 580public override ImmutableArray<CSharpAttributeData> GetAttributes() 586var attributes = containingPEModuleSymbol.GetCustomAttributesForToken(
Symbols\Metadata\PE\PEMethodSymbol.cs (63)
34public readonly ImmutableArray<ParameterSymbol> Parameters; 37public SignatureData(SignatureHeader header, ImmutableArray<ParameterSymbol> parameters, PEParameterSymbol returnParam) 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> 308public ImmutableArray<CSharpAttributeData> _lazyCustomAttributes; 309public ImmutableArray<string> _lazyConditionalAttributeSymbols; 313public ImmutableArray<string> _lazyNotNullMembers; 314public ImmutableArray<string> _lazyNotNullMembersWhenTrue; 315public ImmutableArray<string> _lazyNotNullMembersWhenFalse; 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; 387private ImmutableArray<TypeParameterSymbol> _lazyTypeParameters; 389private ImmutableArray<MethodSymbol> _lazyExplicitMethodImplementations; 479internal override ImmutableArray<byte> ReturnValueMarshallingDescriptor => ReturnTypeParameter.MarshallingDescriptor; 610var unused = this.ExplicitInterfaceImplementations; 623var unused = this.ExplicitInterfaceImplementations; 658public override ImmutableArray<ParameterSymbol> Parameters => Signature.Parameters; 685internal override ImmutableArray<string> NotNullMembers 697return ImmutableArray<string>.Empty; 701var result = uncommonFields._lazyNotNullMembers; 702return result.IsDefault ? ImmutableArray<string>.Empty : result; 710var memberNotNull = module.GetMemberNotNullAttributeValues(_handle); 734internal override ImmutableArray<string> NotNullWhenTrueMembers 746return ImmutableArray<string>.Empty; 750var result = uncommonFields._lazyNotNullMembersWhenTrue; 751return result.IsDefault ? ImmutableArray<string>.Empty : result; 756internal override ImmutableArray<string> NotNullWhenFalseMembers 768return ImmutableArray<string>.Empty; 772var result = uncommonFields._lazyNotNullMembersWhenFalse; 773return result.IsDefault ? ImmutableArray<string>.Empty : result; 778public override ImmutableArray<CustomModifier> RefCustomModifiers => Signature.ReturnParam.RefCustomModifiers; 843ImmutableArray<TypeParameterSymbol>.Empty); 847ImmutableArray<ParameterSymbol> @params; 869@params = ImmutableArray<ParameterSymbol>.Empty; 906public override ImmutableArray<TypeParameterSymbol> TypeParameters 911var typeParams = EnsureTypeParametersAreLoaded(ref diagnosticInfo); 921private ImmutableArray<TypeParameterSymbol> EnsureTypeParametersAreLoaded(ref DiagnosticInfo diagnosticInfo) 923var typeParams = _lazyTypeParameters; 932private ImmutableArray<TypeParameterSymbol> LoadTypeParameters(ref DiagnosticInfo diagnosticInfo) 941return ImmutableArray<TypeParameterSymbol>.Empty; 957return ImmutableArray<TypeParameterSymbol>.Empty; 961public override ImmutableArray<TypeWithAnnotations> TypeArgumentsWithAnnotations => IsGenericMethod ? GetTypeParametersAsTypeArguments() : ImmutableArray<TypeWithAnnotations>.Empty; 987public override ImmutableArray<Location> Locations => _containingType.ContainingPEModule.MetadataLocation.Cast<MetadataLocation, Location>(); 989public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences => ImmutableArray<SyntaxReference>.Empty; 991public override ImmutableArray<CSharpAttributeData> GetAttributes() 996var attributeData = default(ImmutableArray<CSharpAttributeData>); 1066return ImmutableArray<CSharpAttributeData>.Empty; 1070var attributeData = uncommonFields._lazyCustomAttributes; 1072? InterlockedOperations.Initialize(ref uncommonFields._lazyCustomAttributes, ImmutableArray<CSharpAttributeData>.Empty) 1079public override ImmutableArray<CSharpAttributeData> GetReturnTypeAttributes() => Signature.ReturnParam.GetAttributes(); 1118var parameters = this.Parameters; 1292public override ImmutableArray<MethodSymbol> ExplicitInterfaceImplementations 1296var explicitInterfaceImplementations = _lazyExplicitMethodImplementations; 1523internal override ImmutableArray<string> GetAppliedConditionalSymbols() 1527var result = _containingType.ContainingPEModule.Module.GetConditionalAttributeValues(_handle); 1541return ImmutableArray<string>.Empty; 1545var result = uncommonFields._lazyConditionalAttributeSymbols; 1547? InterlockedOperations.Initialize(ref uncommonFields._lazyConditionalAttributeSymbols, ImmutableArray<string>.Empty)
Symbols\Metadata\PE\PEModuleSymbol.cs (25)
79internal readonly ImmutableArray<MetadataLocation> MetadataLocation; 86private ImmutableArray<CSharpAttributeData> _lazyCustomAttributes; 91private ImmutableArray<CSharpAttributeData> _lazyAssemblyAttributes; 234public override ImmutableArray<Location> Locations 242public override ImmutableArray<CSharpAttributeData> GetAttributes() 251internal ImmutableArray<CSharpAttributeData> GetAssemblyAttributes() 290(moduleAssemblyAttributesBuilder != null) ? moduleAssemblyAttributesBuilder.ToImmutableAndFree() : ImmutableArray<CSharpAttributeData>.Empty, 291default(ImmutableArray<CSharpAttributeData>)); 296internal void LoadCustomAttributes(EntityHandle token, ref ImmutableArray<CSharpAttributeData> customAttributes) 298var loaded = GetCustomAttributesForToken(token); 303ref ImmutableArray<CSharpAttributeData> customAttributes) 305var loadedCustomAttributes = GetCustomAttributesFilterCompilerAttributes(token, out _, out _); 309internal ImmutableArray<CSharpAttributeData> GetCustomAttributesForToken(EntityHandle token, 316internal ImmutableArray<CSharpAttributeData> GetCustomAttributesForToken(EntityHandle token, 329internal ImmutableArray<CSharpAttributeData> GetCustomAttributesForToken(EntityHandle token, 410return ImmutableArray<CSharpAttributeData>.Empty; 416internal ImmutableArray<CSharpAttributeData> GetCustomAttributesForToken(EntityHandle token) 428internal ImmutableArray<CSharpAttributeData> GetCustomAttributesForToken(EntityHandle token, 466private ImmutableArray<CSharpAttributeData> GetCustomAttributesFilterCompilerAttributes(EntityHandle token, out bool foundExtension, out bool foundReadOnly) 468var result = GetCustomAttributesForToken( 481Dictionary<ReadOnlyMemory<char>, ImmutableArray<PENamedTypeSymbol>> typesDict) 485foreach (var types in typesDict.Values) 529internal override ImmutableArray<byte> GetHash(AssemblyHashAlgorithm algorithmId) 667ImmutableArray<CSharpAttributeData> assemblyAttributes = GetAssemblyAttributes(); 680ImmutableArray<CSharpAttributeData> assemblyAttributes = GetAssemblyAttributes();
Symbols\Metadata\PE\PENamedTypeSymbol.cs (72)
31private static readonly Dictionary<ReadOnlyMemory<char>, ImmutableArray<PENamedTypeSymbol>> s_emptyNestedTypes = 32new Dictionary<ReadOnlyMemory<char>, ImmutableArray<PENamedTypeSymbol>>(EmptyReadOnlyMemoryOfCharComparer.Instance); 53private ImmutableArray<Symbol> _lazyMembersInDeclarationOrder; 59private Dictionary<string, ImmutableArray<Symbol>> _lazyMembersByName; 65private Dictionary<ReadOnlyMemory<char>, ImmutableArray<PENamedTypeSymbol>> _lazyNestedTypes; 75private ImmutableArray<NamedTypeSymbol> _lazyInterfaces = default(ImmutableArray<NamedTypeSymbol>); 77private ImmutableArray<NamedTypeSymbol> _lazyDeclaredInterfaces = default(ImmutableArray<NamedTypeSymbol>); 133internal ImmutableArray<PEFieldSymbol> lazyInstanceEnumFields; 137internal ImmutableArray<CSharpAttributeData> lazyCustomAttributes; 138internal ImmutableArray<string> lazyConditionalAttributeSymbols; 151internal ImmutableArray<byte> lazyFilePathChecksum = default; 484internal override ImmutableArray<NamedTypeSymbol> InterfacesNoUseSiteDiagnostics(ConsList<TypeSymbol> basesBeingResolved = null) 488ImmutableInterlocked.InterlockedCompareExchange(ref _lazyInterfaces, MakeAcyclicInterfaces(), default(ImmutableArray<NamedTypeSymbol>)); 494internal override ImmutableArray<NamedTypeSymbol> GetInterfacesToEmit() 531internal override ImmutableArray<NamedTypeSymbol> GetDeclaredInterfaces(ConsList<TypeSymbol> basesBeingResolved) 535ImmutableInterlocked.InterlockedCompareExchange(ref _lazyDeclaredInterfaces, MakeDeclaredInterfaces(), default(ImmutableArray<NamedTypeSymbol>)); 563private ImmutableArray<NamedTypeSymbol> MakeDeclaredInterfaces() 591return ImmutableArray<NamedTypeSymbol>.Empty; 695public override ImmutableArray<CSharpAttributeData> GetAttributes() 700return ImmutableArray<CSharpAttributeData>.Empty; 705var loadedCustomAttributes = ContainingPEModule.GetCustomAttributesForToken( 899public override ImmutableArray<Symbol> GetMembers() 953ImmutableArray<Symbol> staticFields = GetMembers(); 1063ImmutableArray<Symbol> members = GetMembers(); 1166internal override ImmutableArray<Symbol> GetEarlyAttributeDecodingMembers() 1171internal override ImmutableArray<Symbol> GetEarlyAttributeDecodingMembers(string name) 1394foreach (var typeArray in _lazyNestedTypes.Values) 1423var peMembers = members.ToImmutableAndFree(); 1430var membersInDeclarationOrder = members.ToImmutable(); 1459Dictionary<string, ImmutableArray<Symbol>> membersDict = GroupByName(members); 1492internal override ImmutableArray<Symbol> GetSimpleNonTypeMembers(string name) 1496ImmutableArray<Symbol> m; 1499m = ImmutableArray<Symbol>.Empty; 1505public override ImmutableArray<Symbol> GetMembers(string name) 1509ImmutableArray<Symbol> m; 1512m = ImmutableArray<Symbol>.Empty; 1516ImmutableArray<PENamedTypeSymbol> t; 1534var candidates = this.GetMembers(FixedFieldImplementationType.FixedElementFieldName); 1544internal override ImmutableArray<NamedTypeSymbol> GetTypeMembersUnordered() 1549public override ImmutableArray<NamedTypeSymbol> GetTypeMembers() 1555private ImmutableArray<NamedTypeSymbol> GetMemberTypesPrivate() 1558foreach (var typeArray in _lazyNestedTypes.Values) 1586public override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name) 1590ImmutableArray<PENamedTypeSymbol> t; 1597return ImmutableArray<NamedTypeSymbol>.Empty; 1600public override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name, int arity) 1605public override ImmutableArray<Location> Locations 1613public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 1617return ImmutableArray<SyntaxReference>.Empty; 1637internal override ImmutableArray<TypeWithAnnotations> TypeArgumentsWithAnnotationsNoUseSiteDiagnostics 1641return ImmutableArray<TypeWithAnnotations>.Empty; 1645public override ImmutableArray<TypeParameterSymbol> TypeParameters 1649return ImmutableArray<TypeParameterSymbol>.Empty; 1842private ImmutableArray<NamedTypeSymbol> MakeAcyclicInterfaces() 1844var declaredInterfaces = GetDeclaredInterfaces(null); 1865ImmutableArray<TypeDefinitionHandle> nestedTypeDefs; 2086private static Dictionary<string, ImmutableArray<Symbol>> GroupByName(ArrayBuilder<Symbol> symbols) 2091private static Dictionary<ReadOnlyMemory<char>, ImmutableArray<PENamedTypeSymbol>> GroupByName(ArrayBuilder<PENamedTypeSymbol> symbols) 2371internal override ImmutableArray<string> GetAppliedConditionalSymbols() 2376return ImmutableArray<string>.Empty; 2381ImmutableArray<string> conditionalSymbols = this.ContainingPEModule.Module.GetConditionalAttributeValues(_handle); 2383ImmutableInterlocked.InterlockedCompareExchange(ref uncommon.lazyConditionalAttributeSymbols, conditionalSymbols, default(ImmutableArray<string>)); 2440private static int GetIndexOfFirstMember(ImmutableArray<Symbol> members, SymbolKind kind) 2457private static IEnumerable<TSymbol> GetMembers<TSymbol>(ImmutableArray<Symbol> members, SymbolKind kind, int offset = -1) 2614private ImmutableArray<TypeParameterSymbol> _lazyTypeParameters; 2634_lazyTypeParameters = ImmutableArray<TypeParameterSymbol>.Empty; 2668internal override ImmutableArray<TypeWithAnnotations> TypeArgumentsWithAnnotationsNoUseSiteDiagnostics 2677public override ImmutableArray<TypeParameterSymbol> TypeParameters 2744var containingTypeParameters = container.GetAllTypeParameters(); 2758var nestedTypeParameters = nestedType.TypeParameters;
Symbols\Metadata\PE\PENamespaceSymbol.cs (18)
36protected Dictionary<ReadOnlyMemory<char>, ImmutableArray<PENamedTypeSymbol>> lazyTypes; 48private ImmutableArray<PENamedTypeSymbol> _lazyFlattenedTypes; 53private ImmutableArray<Symbol> _lazyFlattenedNamespacesAndTypes; 67public sealed override ImmutableArray<Symbol> GetMembers() 77ImmutableArray<Symbol> calculateMembers() 79var memberTypes = GetMemberTypesPrivate(); 96private ImmutableArray<NamedTypeSymbol> GetMemberTypesPrivate() 120public sealed override ImmutableArray<Symbol> GetMembers(ReadOnlyMemory<char> name) 125ImmutableArray<PENamedTypeSymbol> t; 144return ImmutableArray<Symbol>.Empty; 147public sealed override ImmutableArray<NamedTypeSymbol> GetTypeMembers() 154public sealed override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name) 158ImmutableArray<PENamedTypeSymbol> t; 162: ImmutableArray<NamedTypeSymbol>.Empty; 165public sealed override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name, int arity) 170public sealed override ImmutableArray<Location> Locations 178public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 182return ImmutableArray<SyntaxReference>.Empty;
Symbols\Metadata\PE\PEParameterSymbol.cs (31)
159private ImmutableArray<CSharpAttributeData> _lazyCustomAttributes; 173private static readonly ImmutableArray<int> s_defaultStringHandlerAttributeIndexes = ImmutableArray.Create(int.MinValue); 174private ImmutableArray<int> _lazyInterpolatedStringHandlerAttributeIndexes = s_defaultStringHandlerAttributeIndexes; 185private ImmutableArray<CSharpAttributeData> _lazyHiddenAttributes; 270_lazyCustomAttributes = ImmutableArray<CSharpAttributeData>.Empty; 271_lazyHiddenAttributes = ImmutableArray<CSharpAttributeData>.Empty; 381ImmutableArray<ModifierInfo<TypeSymbol>> refCustomModifiers, 385ImmutableArray<ModifierInfo<TypeSymbol>> customModifiers, 420private readonly ImmutableArray<CustomModifier> _refCustomModifiers; 427ImmutableArray<ModifierInfo<TypeSymbol>> refCustomModifiers, 442public override ImmutableArray<CustomModifier> RefCustomModifiers 762var parameters = ContainingSymbol.GetParameters(); 825internal override ImmutableArray<int> InterpolatedStringHandlerArgumentIndexes 830ImmutableArray<int> indexes = _lazyInterpolatedStringHandlerAttributeIndexes; 841ImmutableArray<int> indexes = _lazyInterpolatedStringHandlerAttributeIndexes; 849ImmutableArray<int> indexes = _lazyInterpolatedStringHandlerAttributeIndexes; 854var initialized = ImmutableInterlocked.InterlockedCompareExchange(ref _lazyInterpolatedStringHandlerAttributeIndexes, value: indexes, comparand: s_defaultStringHandlerAttributeIndexes); 859private ImmutableArray<int> DecodeInterpolatedStringHandlerArgumentAttribute() 865return ImmutableArray<int>.Empty; 874return ImmutableArray<int>.Empty; 878var parameters = ContainingSymbol.GetParameters(); 929public override ImmutableArray<CustomModifier> RefCustomModifiers 933return ImmutableArray<CustomModifier>.Empty; 964internal override ImmutableArray<byte> MarshallingDescriptor 970return default(ImmutableArray<byte>); 1033public override ImmutableArray<Location> Locations 1041public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 1045return ImmutableArray<SyntaxReference>.Empty; 1055public override ImmutableArray<CSharpAttributeData> GetAttributes() 1089ImmutableArray<CSharpAttributeData> attributes = 1128ImmutableInterlocked.InterlockedInitialize(ref _lazyHiddenAttributes, ImmutableArray<CSharpAttributeData>.Empty);
Symbols\Metadata\PE\PEPropertySymbol.cs (22)
33private readonly ImmutableArray<ParameterSymbol> _parameters; 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> 179public ImmutableArray<CSharpAttributeData> _lazyCustomAttributes; 275var typeCustomModifiers = CSharpCustomModifier.Convert(returnInfo.CustomModifiers); 367retVal._lazyCustomAttributes = ImmutableArray<CSharpAttributeData>.Empty; 640public override ImmutableArray<ParameterSymbol> Parameters 690public override ImmutableArray<CustomModifier> RefCustomModifiers 692get { return ImmutableArray<CustomModifier>.Empty; } 714public override ImmutableArray<Location> Locations 722public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 726return ImmutableArray<SyntaxReference>.Empty; 730public override ImmutableArray<CSharpAttributeData> GetAttributes() 736ImmutableArray<CSharpAttributeData> attributes = containingPEModuleSymbol.GetCustomAttributesForToken( 755return ImmutableArray<CSharpAttributeData>.Empty; 759var result = uncommonFields._lazyCustomAttributes; 762result = ImmutableArray<CSharpAttributeData>.Empty; 786public override ImmutableArray<PropertySymbol> ExplicitInterfaceImplementations 793return ImmutableArray<PropertySymbol>.Empty; 880private static ImmutableArray<ParameterSymbol> GetParameters( 893return ImmutableArray<ParameterSymbol>.Empty; 1072private readonly ImmutableArray<CustomModifier> _refCustomModifiers; 1090public override ImmutableArray<CustomModifier> RefCustomModifiers
Symbols\Metadata\PE\PETypeParameterSymbol.cs (19)
44private ImmutableArray<TypeWithAnnotations> _lazyDeclaredConstraintTypes; 45private ImmutableArray<CSharpAttributeData> _lazyCustomAttributes; 151private ImmutableArray<TypeWithAnnotations> GetDeclaredConstraintTypes(ConsList<PETypeParameterSymbol> inProgress) 158ImmutableArray<TypeWithAnnotations> declaredConstraintTypes; 230declaredConstraintTypes = ImmutableArray<TypeWithAnnotations>.Empty; 268var typeSymbol = tokenDecoder.DecodeGenericParameterConstraint(constraint.Type, out ImmutableArray<ModifierInfo<TypeSymbol>> modifiers); 354ImmutableArray<TypeWithAnnotations> constraintTypes = this.GetDeclaredConstraintTypes(inProgress); 380private static bool? IsNotNullableFromConstraintTypes(ImmutableArray<TypeWithAnnotations> constraintTypes, ConsList<PETypeParameterSymbol> inProgress, out bool isNonNullableValueType) 431public override ImmutableArray<Location> Locations 439public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 443return ImmutableArray<SyntaxReference>.Empty; 609var typeParameters = (_containingSymbol.Kind == SymbolKind.Method) ? 616internal override ImmutableArray<TypeWithAnnotations> GetConstraintTypes(ConsList<TypeParameterSymbol> inProgress) 619return (bounds != null) ? bounds.ConstraintTypes : ImmutableArray<TypeWithAnnotations>.Empty; 622internal override ImmutableArray<NamedTypeSymbol> GetInterfaces(ConsList<TypeParameterSymbol> inProgress) 625return (bounds != null) ? bounds.Interfaces : ImmutableArray<NamedTypeSymbol>.Empty; 640public override ImmutableArray<CSharpAttributeData> GetAttributes() 646var loadedCustomAttributes = containingPEModuleSymbol.GetCustomAttributesForToken( 665var constraintTypes = GetDeclaredConstraintTypes(ConsList<PETypeParameterSymbol>.Empty);
Symbols\Metadata\PE\SymbolFactory.cs (12)
18internal override TypeSymbol GetMDArrayTypeSymbol(PEModuleSymbol moduleSymbol, int rank, TypeSymbol elementType, ImmutableArray<ModifierInfo<TypeSymbol>> customModifiers, 19ImmutableArray<int> sizes, ImmutableArray<int> lowerBounds) 39internal override TypeSymbol MakePointerTypeSymbol(PEModuleSymbol moduleSymbol, TypeSymbol type, ImmutableArray<ModifierInfo<TypeSymbol>> customModifiers) 49internal override TypeSymbol MakeFunctionPointerTypeSymbol(PEModuleSymbol moduleSymbol, Cci.CallingConvention callingConvention, ImmutableArray<ParamInfo<TypeSymbol>> retAndParamTypes) 64internal override TypeSymbol GetSZArrayTypeSymbol(PEModuleSymbol moduleSymbol, TypeSymbol elementType, ImmutableArray<ModifierInfo<TypeSymbol>> customModifiers) 82ImmutableArray<KeyValuePair<TypeSymbol, ImmutableArray<ModifierInfo<TypeSymbol>>>> arguments, 83ImmutableArray<bool> refersToNoPiaLocalType) 103ImmutableArray<AssemblySymbol> linkedAssemblies = moduleSymbol.ContainingAssembly.GetLinkedReferencedAssemblies(); 141ImmutableArray<TypeParameterSymbol> typeParameters = genericType.GetAllTypeParameters(); 167private static TypeWithAnnotations CreateType(TypeSymbol type, ImmutableArray<ModifierInfo<TypeSymbol>> customModifiers)
Symbols\Metadata\PE\TupleTypeDecoder.cs (14)
65private readonly ImmutableArray<string?> _elementNames; 72private TupleTypeDecoder(ImmutableArray<string?> elementNames) 85ImmutableArray<string?> elementNames; 105ImmutableArray<string?> elementNames; 126ImmutableArray<string?> elementNames) 131private static TypeSymbol DecodeTupleTypesInternal(TypeSymbol metadataType, ImmutableArray<string?> elementNames, bool hasTupleElementNamesAttribute) 211var parameterTypes = ImmutableArray<TypeWithAnnotations>.Empty; 253var typeArgs = type.TypeArgumentsWithAnnotationsNoUseSiteDiagnostics; 254var decodedArgs = DecodeTypeArguments(typeArgs); 295var elementNames = EatElementNamesIfAvailable(tupleCardinality); 306private ImmutableArray<TypeWithAnnotations> DecodeTypeArguments(ImmutableArray<TypeWithAnnotations> typeArgs) 349private ImmutableArray<string?> EatElementNamesIfAvailable(int numberOfElements)
Symbols\MetadataOrSourceAssemblySymbol.cs (2)
236IEnumerable<ImmutableArray<byte>> publicKeys = potentialGiverOfAccess.GetInternalsVisibleToPublicKeys(this.Name); 247foreach (var key in publicKeys)
Symbols\MethodSymbol.cs (23)
104internal virtual ImmutableArray<string> NotNullMembers => ImmutableArray<string>.Empty; 106internal virtual ImmutableArray<string> NotNullWhenTrueMembers => ImmutableArray<string>.Empty; 108internal virtual ImmutableArray<string> NotNullWhenFalseMembers => ImmutableArray<string>.Empty; 263public abstract ImmutableArray<TypeWithAnnotations> TypeArgumentsWithAnnotations { get; } 269public abstract ImmutableArray<TypeParameterSymbol> TypeParameters { get; } 271internal ImmutableArray<TypeWithAnnotations> GetTypeParametersAsTypeArguments() 322public abstract ImmutableArray<ParameterSymbol> Parameters { get; } 378public abstract ImmutableArray<MethodSymbol> ExplicitInterfaceImplementations { get; } 383public abstract ImmutableArray<CustomModifier> RefCustomModifiers { get; } 389public virtual ImmutableArray<CSharpAttributeData> GetReturnTypeAttributes() 396return ImmutableArray<CSharpAttributeData>.Empty; 528ImmutableArray<string> conditionalSymbols = this.GetAppliedConditionalSymbols(); 555internal abstract ImmutableArray<string> GetAppliedConditionalSymbols(); 852public MethodSymbol Construct(ImmutableArray<TypeSymbol> typeArguments) 857internal MethodSymbol Construct(ImmutableArray<TypeWithAnnotations> typeArguments) 898internal ImmutableArray<TypeWithAnnotations> ParameterTypesWithAnnotations 911internal ImmutableArray<RefKind> ParameterRefKinds 925internal virtual ImmutableArray<NamedTypeSymbol> UnmanagedCallingConventionTypes => ImmutableArray<NamedTypeSymbol>.Empty; 1232ImmutableArray<IParameterSymbolInternal> IMethodSymbolInternal.Parameters => Parameters.Cast<ParameterSymbol, IParameterSymbolInternal>();
Symbols\MethodSymbolExtensions.cs (1)
84public static MethodSymbol ConstructIfGeneric(this MethodSymbol method, ImmutableArray<TypeWithAnnotations> typeArguments)
Symbols\MissingAssemblySymbol.cs (13)
29private ImmutableArray<ModuleSymbol> _lazyModules; 69internal override ImmutableArray<byte> PublicKey 74public override ImmutableArray<ModuleSymbol> Modules 116public override ImmutableArray<Location> Locations 120return ImmutableArray<Location>.Empty; 124internal override void SetLinkedReferencedAssemblies(ImmutableArray<AssemblySymbol> assemblies) 129internal override ImmutableArray<AssemblySymbol> GetLinkedReferencedAssemblies() 131return ImmutableArray<AssemblySymbol>.Empty; 134internal override void SetNoPiaResolutionAssemblies(ImmutableArray<AssemblySymbol> assemblies) 139internal override ImmutableArray<AssemblySymbol> GetNoPiaResolutionAssemblies() 141return ImmutableArray<AssemblySymbol>.Empty; 192internal override IEnumerable<ImmutableArray<byte>> GetInternalsVisibleToPublicKeys(string simpleName) 194return SpecializedCollections.EmptyEnumerable<ImmutableArray<byte>>();
Symbols\MissingModuleSymbol.cs (6)
122public override ImmutableArray<Location> Locations 126return ImmutableArray<Location>.Empty; 153internal override ImmutableArray<AssemblyIdentity> GetReferencedAssemblies() 155return ImmutableArray<AssemblyIdentity>.Empty; 158internal override ImmutableArray<AssemblySymbol> GetReferencedAssemblySymbols() 160return ImmutableArray<AssemblySymbol>.Empty;
Symbols\MissingNamespaceSymbol.cs (14)
94public override ImmutableArray<Location> Locations 98return ImmutableArray<Location>.Empty; 102public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 106return ImmutableArray<SyntaxReference>.Empty; 110public override ImmutableArray<NamedTypeSymbol> GetTypeMembers() 112return ImmutableArray<NamedTypeSymbol>.Empty; 115public override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name) 117return ImmutableArray<NamedTypeSymbol>.Empty; 120public override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name, int arity) 122return ImmutableArray<NamedTypeSymbol>.Empty; 125public override ImmutableArray<Symbol> GetMembers() 127return ImmutableArray<Symbol>.Empty; 130public override ImmutableArray<Symbol> GetMembers(ReadOnlyMemory<char> name) 132return ImmutableArray<Symbol>.Empty;
Symbols\ModuleSymbol.cs (8)
188public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 192return ImmutableArray<SyntaxReference>.Empty; 201public ImmutableArray<AssemblyIdentity> ReferencedAssemblies 217internal abstract ImmutableArray<AssemblyIdentity> GetReferencedAssemblies(); // TODO: Remove this method and make ReferencedAssemblies property abstract instead. 224public ImmutableArray<AssemblySymbol> ReferencedAssemblySymbols 241internal abstract ImmutableArray<AssemblySymbol> GetReferencedAssemblySymbols(); // TODO: Remove this method and make ReferencedAssemblySymbols property abstract instead. 245var referencedAssemblies = GetReferencedAssemblySymbols(); 327internal virtual ImmutableArray<byte> GetHash(AssemblyHashAlgorithm algorithmId)
Symbols\NamedTypeSymbol.cs (48)
63public abstract ImmutableArray<TypeParameterSymbol> TypeParameters { get; } 70internal abstract ImmutableArray<TypeWithAnnotations> TypeArgumentsWithAnnotationsNoUseSiteDiagnostics { get; } 72internal ImmutableArray<TypeWithAnnotations> TypeArgumentsWithDefinitionUseSiteDiagnostics(ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 74var result = TypeArgumentsWithAnnotationsNoUseSiteDiagnostics; 184var methods = GetMembers(WellKnownMemberNames.DelegateInvokeName); 211ImmutableArray<Symbol> candidates = GetSimpleNonTypeMembers(name); 227public ImmutableArray<MethodSymbol> InstanceConstructors 238public ImmutableArray<MethodSymbol> StaticConstructors 249public ImmutableArray<MethodSymbol> Constructors 257private ImmutableArray<MethodSymbol> GetConstructors(bool includeInstance, bool includeStatic) 261ImmutableArray<Symbol> instanceCandidates = includeInstance 263: ImmutableArray<Symbol>.Empty; 264ImmutableArray<Symbol> staticCandidates = includeStatic 266: ImmutableArray<Symbol>.Empty; 270return ImmutableArray<MethodSymbol>.Empty; 299public ImmutableArray<PropertySymbol> Indexers 303ImmutableArray<Symbol> candidates = GetSimpleNonTypeMembers(WellKnownMemberNames.Indexer); 307return ImmutableArray<PropertySymbol>.Empty; 344var members = nameOpt == null 646public abstract override ImmutableArray<Symbol> GetMembers(); 653public abstract override ImmutableArray<Symbol> GetMembers(string name); 662internal virtual ImmutableArray<Symbol> GetSimpleNonTypeMembers(string name) 672public abstract override ImmutableArray<NamedTypeSymbol> GetTypeMembers(); 680public abstract override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name, int arity); 740internal abstract ImmutableArray<Symbol> GetEarlyAttributeDecodingMembers(); 750internal abstract ImmutableArray<Symbol> GetEarlyAttributeDecodingMembers(string name); 765internal abstract ImmutableArray<NamedTypeSymbol> GetDeclaredInterfaces(ConsList<TypeSymbol> basesBeingResolved); 872var typeArguments = this.TypeArgumentsWithAnnotationsNoUseSiteDiagnostics; 873var otherTypeArguments = other.TypeArgumentsWithAnnotationsNoUseSiteDiagnostics; 901var elementNames = TupleElementNames; 902var otherElementNames = other.TupleElementNames; 920internal override bool ApplyNullableTransforms(byte defaultTransformFlag, ImmutableArray<byte> transforms, ref int position, out TypeSymbol result) 981internal NamedTypeSymbol WithTypeArguments(ImmutableArray<TypeWithAnnotations> allTypeArguments) 1042var typeParameters = definition.TypeParameters; 1045var typeArgumentsA = typeA.TypeArgumentsWithAnnotationsNoUseSiteDiagnostics; 1046var typeArgumentsB = typeB.TypeArgumentsWithAnnotationsNoUseSiteDiagnostics; 1111public NamedTypeSymbol Construct(ImmutableArray<TypeSymbol> typeArguments) 1161private NamedTypeSymbol ConstructWithoutModifiers(ImmutableArray<TypeSymbol> typeArguments, bool unbound) 1163ImmutableArray<TypeWithAnnotations> modifiedArguments; 1167modifiedArguments = default(ImmutableArray<TypeWithAnnotations>); 1177internal NamedTypeSymbol Construct(ImmutableArray<TypeWithAnnotations> typeArguments) 1182internal NamedTypeSymbol Construct(ImmutableArray<TypeWithAnnotations> typeArguments, bool unbound) 1219protected virtual NamedTypeSymbol ConstructCore(ImmutableArray<TypeWithAnnotations> typeArguments, bool unbound) 1274internal ImmutableArray<TypeWithAnnotations> GetAllTypeArguments(ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1311internal ImmutableArray<TypeWithAnnotations> GetTypeParametersAsTypeArguments() 1572internal abstract ImmutableArray<string> GetAppliedConditionalSymbols(); 1703ImmutableArray<ISymbolInternal> INamedTypeSymbolInternal.GetMembers() 1706ImmutableArray<ISymbolInternal> INamedTypeSymbolInternal.GetMembers(string name)
Symbols\NamespaceOrTypeSymbol.cs (10)
110public abstract ImmutableArray<Symbol> GetMembers(); 118internal virtual ImmutableArray<Symbol> GetMembersUnordered() 131public abstract ImmutableArray<Symbol> GetMembers(string name); 139internal virtual ImmutableArray<NamedTypeSymbol> GetTypeMembersUnordered() 152public abstract ImmutableArray<NamedTypeSymbol> GetTypeMembers(); 160public ImmutableArray<NamedTypeSymbol> GetTypeMembers(string name) 169public ImmutableArray<NamedTypeSymbol> GetTypeMembers(string name, int arity) 173public abstract ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name); 176public virtual ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name, int arity) 269ImmutableArray<NamedTypeSymbol> namespaceOrTypeMembers;
Symbols\NamespaceSymbol.cs (9)
23private ImmutableArray<NamedTypeSymbol> _lazyTypesMightContainExtensionMethods; 82public virtual ImmutableArray<NamespaceSymbol> ConstituentNamespaces 228var types = this.GetTypeMembers(TypeSymbol.ImplicitTypeName); 249internal NamespaceSymbol LookupNestedNamespace(ImmutableArray<ReadOnlyMemory<char>> names) 278public abstract ImmutableArray<Symbol> GetMembers(ReadOnlyMemory<char> name); 280public sealed override ImmutableArray<Symbol> GetMembers(string name) 310private ImmutableArray<NamedTypeSymbol> TypesMightContainExtensionMethods 314var typesWithExtensionMethods = this._lazyTypesMightContainExtensionMethods; 346var typesWithExtensionMethods = this.TypesMightContainExtensionMethods;
Symbols\NativeIntegerTypeSymbol.cs (40)
25private ImmutableArray<NamedTypeSymbol> _lazyInterfaces; 26private ImmutableArray<Symbol> _lazyMembers; 38public override ImmutableArray<TypeParameterSymbol> TypeParameters => ImmutableArray<TypeParameterSymbol>.Empty; 44internal override ImmutableArray<TypeWithAnnotations> TypeArgumentsWithAnnotationsNoUseSiteDiagnostics => ImmutableArray<TypeWithAnnotations>.Empty; 69public override ImmutableArray<Symbol> GetMembers() 77ImmutableArray<Symbol> makeMembers(ImmutableArray<Symbol> underlyingMembers) 140public override ImmutableArray<Symbol> GetMembers(string name) => GetMembers().WhereAsArray((member, name) => member.Name == name, name); 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; 150internal override ImmutableArray<NamedTypeSymbol> GetDeclaredInterfaces(ConsList<TypeSymbol> basesBeingResolved) => GetInterfaces(basesBeingResolved); 152internal override ImmutableArray<Symbol> GetEarlyAttributeDecodingMembers() => throw ExceptionUtilities.Unreachable(); 154internal override ImmutableArray<Symbol> GetEarlyAttributeDecodingMembers(string name) => throw ExceptionUtilities.Unreachable(); 158internal override ImmutableArray<NamedTypeSymbol> GetInterfacesToEmit() => throw ExceptionUtilities.Unreachable(); 160internal override ImmutableArray<NamedTypeSymbol> InterfacesNoUseSiteDiagnostics(ConsList<TypeSymbol>? basesBeingResolved = null) => GetInterfaces(basesBeingResolved); 216private ImmutableArray<NamedTypeSymbol> GetInterfaces(ConsList<TypeSymbol>? basesBeingResolved) 318internal override ImmutableArray<CustomModifier> SubstituteCustomModifiers(ImmutableArray<CustomModifier> customModifiers) 332private ImmutableArray<ParameterSymbol> _lazyParameters; 349public override ImmutableArray<TypeWithAnnotations> TypeArgumentsWithAnnotations => ImmutableArray<TypeWithAnnotations>.Empty; 351public override ImmutableArray<TypeParameterSymbol> TypeParameters => ImmutableArray<TypeParameterSymbol>.Empty; 353public override ImmutableArray<ParameterSymbol> Parameters 366public override ImmutableArray<MethodSymbol> ExplicitInterfaceImplementations => ImmutableArray<MethodSymbol>.Empty; 368public override ImmutableArray<CustomModifier> RefCustomModifiers => UnderlyingMethod.RefCustomModifiers; 421public override ImmutableArray<CustomModifier> RefCustomModifiers => _underlyingParameter.RefCustomModifiers; 431internal override ImmutableArray<int> InterpolatedStringHandlerArgumentIndexes => _underlyingParameter.InterpolatedStringHandlerArgumentIndexes; 472public override ImmutableArray<CustomModifier> RefCustomModifiers => UnderlyingProperty.RefCustomModifiers; 474public override ImmutableArray<ParameterSymbol> Parameters => ImmutableArray<ParameterSymbol>.Empty; 480public override ImmutableArray<PropertySymbol> ExplicitInterfaceImplementations => ImmutableArray<PropertySymbol>.Empty;
Symbols\NonMissingModuleSymbol.cs (6)
47internal sealed override ImmutableArray<AssemblyIdentity> GetReferencedAssemblies() 60internal sealed override ImmutableArray<AssemblySymbol> GetReferencedAssemblySymbols() 66internal ImmutableArray<UnifiedAssembly<AssemblySymbol>> GetUnifiedAssemblies() 100var involvedAssemblies = ImmutableArray.Create<Symbol>(ownerAssembly, dependentAssembly); 120ImmutableArray<Location>.Empty); 138ImmutableArray<Location>.Empty);
Symbols\NullableAnnotationExtensions.cs (4)
113internal static ImmutableArray<ITypeSymbol> GetPublicSymbols(this ImmutableArray<TypeWithAnnotations> types) 121internal static ImmutableArray<CodeAnalysis.NullableAnnotation> ToPublicAnnotations(this ImmutableArray<TypeWithAnnotations> types) =>
Symbols\OverriddenOrHiddenMembersHelpers.cs (18)
135ImmutableArray<Symbol> overriddenMembers; 138ImmutableArray<Symbol> hiddenMembers = hiddenBuilder == null ? ImmutableArray<Symbol>.Empty : hiddenBuilder.ToImmutableAndFree(); 144out ImmutableArray<Symbol> overriddenMembers) 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(); 709out ImmutableArray<Symbol> overriddenMembers, 712overriddenMembers = ImmutableArray<Symbol>.Empty;
Symbols\OverriddenOrHiddenMembersResult.cs (10)
23ImmutableArray<Symbol>.Empty, 24ImmutableArray<Symbol>.Empty); 26private readonly ImmutableArray<Symbol> _overriddenMembers; 27public ImmutableArray<Symbol> OverriddenMembers { get { return _overriddenMembers; } } 29private readonly ImmutableArray<Symbol> _hiddenMembers; 30public ImmutableArray<Symbol> HiddenMembers { get { return _hiddenMembers; } } 33ImmutableArray<Symbol> overriddenMembers, 34ImmutableArray<Symbol> hiddenMembers) 41ImmutableArray<Symbol> overriddenMembers, 42ImmutableArray<Symbol> hiddenMembers)
Symbols\ParameterSignature.cs (10)
18internal readonly ImmutableArray<TypeWithAnnotations> parameterTypesWithAnnotations; 19internal readonly ImmutableArray<RefKind> parameterRefKinds; 22new ParameterSignature(ImmutableArray<TypeWithAnnotations>.Empty, default(ImmutableArray<RefKind>)); 24private ParameterSignature(ImmutableArray<TypeWithAnnotations> parameterTypesWithAnnotations, 25ImmutableArray<RefKind> parameterRefKinds) 31private static ParameterSignature MakeParamTypesAndRefKinds(ImmutableArray<ParameterSymbol> parameters) 61ImmutableArray<RefKind> refKinds = refs != null ? refs.ToImmutableAndFree() : default(ImmutableArray<RefKind>); 65internal static void PopulateParameterSignature(ImmutableArray<ParameterSymbol> parameters, ref ParameterSignature lazySignature)
Symbols\ParameterSymbol.cs (2)
69public abstract ImmutableArray<CustomModifier> RefCustomModifiers { get; } 414internal abstract ImmutableArray<int> InterpolatedStringHandlerArgumentIndexes { get; }
Symbols\PlaceholderTypeArgumentSymbol.cs (2)
20public static ImmutableArray<TypeWithAnnotations> CreateTypeArguments(ImmutableArray<TypeParameterSymbol> typeParameters)
Symbols\PointerTypeSymbol.cs (17)
87internal override ImmutableArray<NamedTypeSymbol> InterfacesNoUseSiteDiagnostics(ConsList<TypeSymbol>? basesBeingResolved) 90return ImmutableArray<NamedTypeSymbol>.Empty; 132public override ImmutableArray<Symbol> GetMembers() 134return ImmutableArray<Symbol>.Empty; 137public override ImmutableArray<Symbol> GetMembers(string name) 139return ImmutableArray<Symbol>.Empty; 142public override ImmutableArray<NamedTypeSymbol> GetTypeMembers() 144return ImmutableArray<NamedTypeSymbol>.Empty; 147public override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name) 149return ImmutableArray<NamedTypeSymbol>.Empty; 152public override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name, int arity) 154return ImmutableArray<NamedTypeSymbol>.Empty; 181public override ImmutableArray<Location> Locations 185return ImmutableArray<Location>.Empty; 189public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 193return ImmutableArray<SyntaxReference>.Empty; 253internal override bool ApplyNullableTransforms(byte defaultTransformFlag, ImmutableArray<byte> transforms, ref int position, out TypeSymbol result)
Symbols\PropertyOrEventSymbolExtensions.cs (1)
39ImmutableArray<MethodSymbol> implementedAccessors = accessor.ExplicitInterfaceImplementations;
Symbols\PropertySymbol.cs (11)
62internal virtual ImmutableArray<string> NotNullMembers => ImmutableArray<string>.Empty; 64internal virtual ImmutableArray<string> NotNullWhenTrueMembers => ImmutableArray<string>.Empty; 66internal virtual ImmutableArray<string> NotNullWhenFalseMembers => ImmutableArray<string>.Empty; 96public abstract ImmutableArray<CustomModifier> RefCustomModifiers { get; } 103public abstract ImmutableArray<ParameterSymbol> Parameters { get; } 117internal ImmutableArray<TypeWithAnnotations> ParameterTypesWithAnnotations 126internal ImmutableArray<RefKind> ParameterRefKinds 323public abstract ImmutableArray<PropertySymbol> ExplicitInterfaceImplementations { get; }
Symbols\PublicModel\ArrayTypeSymbol.cs (3)
39ImmutableArray<int> IArrayTypeSymbol.LowerBounds => _underlying.LowerBounds; 41ImmutableArray<int> IArrayTypeSymbol.Sizes => _underlying.Sizes; 64ImmutableArray<CustomModifier> IArrayTypeSymbol.CustomModifiers => _underlying.ElementTypeWithAnnotations.CustomModifiers;
Symbols\PublicModel\AssemblySymbol.cs (2)
57ImmutableArray<INamedTypeSymbol> IAssemblySymbol.GetForwardedTypes() 84foreach (var key in myKeys)
Symbols\PublicModel\ErrorTypeSymbol.cs (1)
34ImmutableArray<ISymbol> IErrorTypeSymbol.CandidateSymbols => _underlying.CandidateSymbols.SelectAsArray(s => s.GetPublicSymbol());
Symbols\PublicModel\EventSymbol.cs (1)
81ImmutableArray<IEventSymbol> IEventSymbol.ExplicitInterfaceImplementations
Symbols\PublicModel\FieldSymbol.cs (2)
36ImmutableArray<CustomModifier> IFieldSymbol.RefCustomModifiers => _underlying.RefCustomModifiers; 53ImmutableArray<CustomModifier> IFieldSymbol.CustomModifiers
Symbols\PublicModel\MethodSymbol.cs (13)
20private ImmutableArray<ITypeSymbol> _lazyTypeArguments; 21private ImmutableArray<IParameterSymbol> _lazyParameters; 100ImmutableArray<ITypeSymbol> IMethodSymbol.TypeArguments 111ImmutableArray<CodeAnalysis.NullableAnnotation> IMethodSymbol.TypeArgumentNullableAnnotations => 114ImmutableArray<ITypeParameterSymbol> IMethodSymbol.TypeParameters 122ImmutableArray<IParameterSymbol> IMethodSymbol.Parameters 210ImmutableArray<IMethodSymbol> IMethodSymbol.ExplicitInterfaceImplementations 250ImmutableArray<CustomModifier> IMethodSymbol.ReturnTypeCustomModifiers 258ImmutableArray<CustomModifier> IMethodSymbol.RefCustomModifiers 266ImmutableArray<AttributeData> IMethodSymbol.GetReturnTypeAttributes() 273ImmutableArray<INamedTypeSymbol> IMethodSymbol.UnmanagedCallingConventionTypes => _underlying.UnmanagedCallingConventionTypes.SelectAsArray(t => t.GetPublicSymbol()); 280IMethodSymbol IMethodSymbol.Construct(ImmutableArray<ITypeSymbol> typeArguments, ImmutableArray<CodeAnalysis.NullableAnnotation> typeArgumentNullableAnnotations)
Symbols\PublicModel\ModuleSymbol.cs (2)
37ImmutableArray<IAssemblySymbol> IModuleSymbol.ReferencedAssemblySymbols 45ImmutableArray<AssemblyIdentity> IModuleSymbol.ReferencedAssemblies => _underlying.ReferencedAssemblies;
Symbols\PublicModel\NamedTypeSymbol.cs (11)
15private ImmutableArray<ITypeSymbol> _lazyTypeArguments; 32ImmutableArray<IMethodSymbol> INamedTypeSymbol.InstanceConstructors 40ImmutableArray<IMethodSymbol> INamedTypeSymbol.StaticConstructors 48ImmutableArray<IMethodSymbol> INamedTypeSymbol.Constructors 64ImmutableArray<ITypeParameterSymbol> INamedTypeSymbol.TypeParameters 72ImmutableArray<ITypeSymbol> INamedTypeSymbol.TypeArguments 86ImmutableArray<CodeAnalysis.NullableAnnotation> INamedTypeSymbol.TypeArgumentNullableAnnotations 94ImmutableArray<CustomModifier> INamedTypeSymbol.GetTypeArgumentCustomModifiers(int ordinal) 136INamedTypeSymbol INamedTypeSymbol.Construct(ImmutableArray<ITypeSymbol> typeArguments, ImmutableArray<CodeAnalysis.NullableAnnotation> typeArgumentNullableAnnotations) 159ImmutableArray<IFieldSymbol> INamedTypeSymbol.TupleElements
Symbols\PublicModel\NamespaceOrTypeSymbol.cs (5)
13ImmutableArray<ISymbol> INamespaceOrTypeSymbol.GetMembers() 18ImmutableArray<ISymbol> INamespaceOrTypeSymbol.GetMembers(string name) 23ImmutableArray<INamedTypeSymbol> INamespaceOrTypeSymbol.GetTypeMembers() 28ImmutableArray<INamedTypeSymbol> INamespaceOrTypeSymbol.GetTypeMembers(string name) 33ImmutableArray<INamedTypeSymbol> INamespaceOrTypeSymbol.GetTypeMembers(string name, int arity)
Symbols\PublicModel\NamespaceSymbol.cs (1)
33ImmutableArray<INamespaceSymbol> INamespaceSymbol.ConstituentNamespaces
Symbols\PublicModel\ParameterSymbol.cs (2)
41ImmutableArray<CustomModifier> IParameterSymbol.CustomModifiers 46ImmutableArray<CustomModifier> IParameterSymbol.RefCustomModifiers
Symbols\PublicModel\PointerTypeSymbol.cs (1)
47ImmutableArray<CustomModifier> IPointerTypeSymbol.CustomModifiers
Symbols\PublicModel\PreprocessingSymbol.cs (8)
60ImmutableArray<Location> ISymbol.Locations => ImmutableArray<Location>.Empty; 62ImmutableArray<SyntaxReference> ISymbol.DeclaringSyntaxReferences => ImmutableArray<SyntaxReference>.Empty; 64ImmutableArray<AttributeData> ISymbol.GetAttributes() => ImmutableArray<AttributeData>.Empty; 83ImmutableArray<SymbolDisplayPart> ISymbol.ToDisplayParts(SymbolDisplayFormat? format) 93ImmutableArray<SymbolDisplayPart> ISymbol.ToMinimalDisplayParts(SemanticModel semanticModel, int position, SymbolDisplayFormat? format)
Symbols\PublicModel\PropertySymbol.cs (4)
46ImmutableArray<IParameterSymbol> IPropertySymbol.Parameters 74ImmutableArray<IPropertySymbol> IPropertySymbol.ExplicitInterfaceImplementations 96ImmutableArray<CustomModifier> IPropertySymbol.TypeCustomModifiers 101ImmutableArray<CustomModifier> IPropertySymbol.RefCustomModifiers
Symbols\PublicModel\Symbol.cs (9)
19protected static ImmutableArray<TypeWithAnnotations> ConstructTypeArguments(ITypeSymbol[] typeArguments) 31protected static ImmutableArray<TypeWithAnnotations> ConstructTypeArguments(ImmutableArray<ITypeSymbol> typeArguments, ImmutableArray<CodeAnalysis.NullableAnnotation> typeArgumentNullableAnnotations) 104ImmutableArray<Location> ISymbol.Locations 112ImmutableArray<SyntaxReference> ISymbol.DeclaringSyntaxReferences 120ImmutableArray<AttributeData> ISymbol.GetAttributes() 169ImmutableArray<SymbolDisplayPart> ISymbol.ToDisplayParts(SymbolDisplayFormat format) 179ImmutableArray<SymbolDisplayPart> ISymbol.ToMinimalDisplayParts(SemanticModel semanticModel, int position, SymbolDisplayFormat format)
Symbols\PublicModel\TypeParameterSymbol.cs (2)
62ImmutableArray<ITypeSymbol> ITypeParameterSymbol.ConstraintTypes 70ImmutableArray<CodeAnalysis.NullableAnnotation> ITypeParameterSymbol.ConstraintNullableAnnotations =>
Symbols\PublicModel\TypeSymbol.cs (4)
94ImmutableArray<INamedTypeSymbol> ITypeSymbol.Interfaces 102ImmutableArray<INamedTypeSymbol> ITypeSymbol.AllInterfaces 152ImmutableArray<SymbolDisplayPart> ITypeSymbol.ToDisplayParts(CodeAnalysis.NullableFlowState topLevelNullability, SymbolDisplayFormat format) 162ImmutableArray<SymbolDisplayPart> ITypeSymbol.ToMinimalDisplayParts(SemanticModel semanticModel, CodeAnalysis.NullableFlowState topLevelNullability, int position, SymbolDisplayFormat format)
Symbols\RangeVariableSymbol.cs (4)
48public override ImmutableArray<Location> Locations 49=> _location is null ? ImmutableArray<Location>.Empty : ImmutableArray.Create(_location); 54public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 59return ImmutableArray<SyntaxReference>.Empty;
Symbols\ReducedExtensionMethodSymbol.cs (22)
26private readonly ImmutableArray<TypeParameterSymbol> _typeParameters; 27private readonly ImmutableArray<TypeWithAnnotations> _typeArguments; 28private ImmutableArray<ParameterSymbol> _lazyParameters; 157var typeArgs = MethodTypeInferrer.InferTypeArgumentsFromFirstArgument( 174var typeParams = method.TypeParameters; 175var typeArgsForConstraintsCheck = typeArgs; 229ImmutableArray<TypeWithAnnotations> typeArgsForConstruct = typeArgs; 286public override ImmutableArray<TypeParameterSymbol> TypeParameters 291public override ImmutableArray<TypeWithAnnotations> TypeArgumentsWithAnnotations 351internal override ImmutableArray<string> GetAppliedConditionalSymbols() 361public override ImmutableArray<Location> Locations 366public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 457public override ImmutableArray<CSharpAttributeData> GetAttributes() 503public override ImmutableArray<CustomModifier> RefCustomModifiers 518public override ImmutableArray<ParameterSymbol> Parameters 541public override ImmutableArray<MethodSymbol> ExplicitInterfaceImplementations 543get { return ImmutableArray<MethodSymbol>.Empty; } 556private ImmutableArray<ParameterSymbol> MakeParameters() 558var reducedFromParameters = _reducedFrom.Parameters; 564return ImmutableArray<ParameterSymbol>.Empty; 643public override ImmutableArray<CustomModifier> RefCustomModifiers 675internal override ImmutableArray<int> InterpolatedStringHandlerArgumentIndexes => throw ExceptionUtilities.Unreachable();
Symbols\ReferenceManager.cs (38)
142protected override ImmutableArray<AssemblySymbol> GetNoPiaResolutionAssemblies(AssemblySymbol candidateAssembly) 149return ImmutableArray<AssemblySymbol>.Empty; 323private void InitializeAssemblyReuseData(AssemblySymbol assemblySymbol, ImmutableArray<AssemblySymbol> referencedAssemblies, ImmutableArray<UnifiedAssembly<AssemblySymbol>> unifiedAssemblies) 332var assemblyModules = assemblySymbol.Modules; 352ImmutableArray<MetadataReference> boundReferenceDirectives; 353ImmutableArray<AssemblyData> referencedAssemblies; 354ImmutableArray<PEModule> modules; // To make sure the modules are not collected ahead of time. 355ImmutableArray<MetadataReference> explicitReferences; 357ImmutableArray<ResolvedReference> referenceMap = ResolveMetadataReferences( 368var explicitAssemblyData = referencedAssemblies.Insert(0, assemblyBeingBuiltData); 373ImmutableArray<MetadataReference> implicitlyResolvedReferences; 374ImmutableArray<ResolvedReference> implicitlyResolvedReferenceMap; 375ImmutableArray<AssemblyData> allAssemblyData; 401var references = explicitReferences.AddRange(implicitlyResolvedReferences); 405ImmutableArray<ImmutableArray<string>> aliasesOfReferencedAssemblies; 406Dictionary<MetadataReference, ImmutableArray<MetadataReference>>? mergedAssemblyReferencesMapOpt; 464ImmutableArray<ModuleReferences<AssemblySymbol>> moduleReferences; 540ImmutableArray<AssemblyData> assemblies, 567var noPiaResolutionAssemblies = sourceAssembly.Modules[0].GetReferencedAssemblySymbols(); 619private static void UpdateSymbolCacheNoLock(List<int> newSymbols, ImmutableArray<AssemblyData> assemblies, BoundInputAssembly[] bindingResult) 649ImmutableArray<ModuleSymbol> modules = retargetingAssemblySymbol.Modules; 655ImmutableArray<AssemblyIdentity> referencedAssemblies = 661ImmutableArray<AssemblySymbol> underlyingReferencedAssemblySymbols = 727ImmutableArray<ModuleSymbol> modules = portableExecutableAssemblySymbol.Modules; 762ImmutableArray<PEModule> modules, 766out ImmutableArray<ModuleReferences<AssemblySymbol>> moduleReferences) 768var moduleSymbols = sourceAssembly.Modules; 865private ImmutableArray<AssemblySymbol> _assemblies; 867private readonly ImmutableArray<AssemblyIdentity> _referencedAssemblies; 872ImmutableArray<AssemblyIdentity> referencedAssemblies, 893public override ImmutableArray<AssemblySymbol> AvailableSymbols 915public override ImmutableArray<AssemblyIdentity> AssemblyReferences 1094private static ImmutableArray<AssemblyIdentity> GetReferencedAssemblies(CSharpCompilation compilation) 1097var modules = compilation.Assembly.Modules; 1100var sourceReferencedAssemblies = modules[0].GetReferencedAssemblies(); 1101var sourceReferencedAssemblySymbols = modules[0].GetReferencedAssemblySymbols();
Symbols\Retargeting\RetargetingAssemblySymbol.cs (13)
54private readonly ImmutableArray<ModuleSymbol> _modules; 62private ImmutableArray<AssemblySymbol> _noPiaResolutionAssemblies; 70private ImmutableArray<AssemblySymbol> _linkedReferencedAssemblies; 91private ImmutableArray<CSharpAttributeData> _lazyCustomAttributes; 156internal override ImmutableArray<byte> PublicKey 166public override ImmutableArray<ModuleSymbol> Modules 183public override ImmutableArray<Location> Locations 195internal override IEnumerable<ImmutableArray<byte>> GetInternalsVisibleToPublicKeys(string simpleName) 210public override ImmutableArray<CSharpAttributeData> GetAttributes() 228internal override ImmutableArray<AssemblySymbol> GetNoPiaResolutionAssemblies() 233internal override void SetNoPiaResolutionAssemblies(ImmutableArray<AssemblySymbol> assemblies) 238internal override void SetLinkedReferencedAssemblies(ImmutableArray<AssemblySymbol> assemblies) 243internal override ImmutableArray<AssemblySymbol> GetLinkedReferencedAssemblies()
Symbols\Retargeting\RetargetingEventSymbol.cs (6)
28private ImmutableArray<EventSymbol> _lazyExplicitInterfaceImplementations; 92public override ImmutableArray<EventSymbol> ExplicitInterfaceImplementations 101default(ImmutableArray<EventSymbol>)); 107private ImmutableArray<EventSymbol> RetargetExplicitInterfaceImplementations() 109var impls = _underlyingEvent.ExplicitInterfaceImplementations; 156public override ImmutableArray<CSharpAttributeData> GetAttributes()
Symbols\Retargeting\RetargetingFieldSymbol.cs (3)
31private ImmutableArray<CSharpAttributeData> _lazyCustomAttributes; 75public override ImmutableArray<CustomModifier> RefCustomModifiers => 78public override ImmutableArray<CSharpAttributeData> GetAttributes()
Symbols\Retargeting\RetargetingMethodSymbol.cs (22)
36private ImmutableArray<TypeParameterSymbol> _lazyTypeParameters; 38private ImmutableArray<ParameterSymbol> _lazyParameters; 40private ImmutableArray<CustomModifier> _lazyRefCustomModifiers; 45private ImmutableArray<CSharpAttributeData> _lazyCustomAttributes; 50private ImmutableArray<CSharpAttributeData> _lazyReturnTypeCustomAttributes; 52private ImmutableArray<MethodSymbol> _lazyExplicitInterfaceImplementations; 93public override ImmutableArray<TypeParameterSymbol> TypeParameters 101_lazyTypeParameters = ImmutableArray<TypeParameterSymbol>.Empty; 106this.RetargetingTranslator.Retarget(_underlyingMethod.TypeParameters), default(ImmutableArray<TypeParameterSymbol>)); 114public override ImmutableArray<TypeWithAnnotations> TypeArgumentsWithAnnotations 124return ImmutableArray<TypeWithAnnotations>.Empty; 143public override ImmutableArray<CustomModifier> RefCustomModifiers 151public override ImmutableArray<ParameterSymbol> Parameters 164private ImmutableArray<ParameterSymbol> RetargetParameters() 166var list = _underlyingMethod.Parameters; 171return ImmutableArray<ParameterSymbol>.Empty; 211public override ImmutableArray<CSharpAttributeData> GetAttributes() 222public override ImmutableArray<CSharpAttributeData> GetReturnTypeAttributes() 295public override ImmutableArray<MethodSymbol> ExplicitInterfaceImplementations 304default(ImmutableArray<MethodSymbol>)); 310private ImmutableArray<MethodSymbol> RetargetExplicitInterfaceImplementations() 312var impls = _underlyingMethod.ExplicitInterfaceImplementations;
Symbols\Retargeting\RetargetingModuleSymbol.cs (5)
69private ImmutableArray<CSharpAttributeData> _lazyCustomAttributes; 176public override ImmutableArray<Location> Locations 195ImmutableArray<AssemblySymbol> underlyingBoundReferences = _underlyingModule.GetReferencedAssemblySymbols(); 196ImmutableArray<AssemblySymbol> referencedAssemblySymbols = moduleReferences.Symbols; 276public override ImmutableArray<CSharpAttributeData> GetAttributes()
Symbols\Retargeting\RetargetingNamedTypeSymbol.cs (28)
29private ImmutableArray<TypeParameterSymbol> _lazyTypeParameters; 32private ImmutableArray<NamedTypeSymbol> _lazyInterfaces = default(ImmutableArray<NamedTypeSymbol>); 35private ImmutableArray<NamedTypeSymbol> _lazyDeclaredInterfaces; 37private ImmutableArray<CSharpAttributeData> _lazyCustomAttributes; 63public override ImmutableArray<TypeParameterSymbol> TypeParameters 71_lazyTypeParameters = ImmutableArray<TypeParameterSymbol>.Empty; 76this.RetargetingTranslator.Retarget(_underlyingType.TypeParameters), default(ImmutableArray<TypeParameterSymbol>)); 84internal override ImmutableArray<TypeWithAnnotations> TypeArgumentsWithAnnotationsNoUseSiteDiagnostics 120public override ImmutableArray<Symbol> GetMembers() 125internal override ImmutableArray<Symbol> GetMembersUnordered() 130public override ImmutableArray<Symbol> GetMembers(string name) 184internal override ImmutableArray<Symbol> GetEarlyAttributeDecodingMembers() 189internal override ImmutableArray<Symbol> GetEarlyAttributeDecodingMembers(string name) 194internal override ImmutableArray<NamedTypeSymbol> GetTypeMembersUnordered() 199public override ImmutableArray<NamedTypeSymbol> GetTypeMembers() 204public override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name) 209public override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name, int arity) 222public override ImmutableArray<CSharpAttributeData> GetAttributes() 303internal override ImmutableArray<NamedTypeSymbol> InterfacesNoUseSiteDiagnostics(ConsList<TypeSymbol> basesBeingResolved) 307var declaredInterfaces = GetDeclaredInterfaces(basesBeingResolved); 314ImmutableArray<NamedTypeSymbol> result = declaredInterfaces 317ImmutableInterlocked.InterlockedCompareExchange(ref _lazyInterfaces, result, default(ImmutableArray<NamedTypeSymbol>)); 323internal override ImmutableArray<NamedTypeSymbol> GetInterfacesToEmit() 340internal override ImmutableArray<NamedTypeSymbol> GetDeclaredInterfaces(ConsList<TypeSymbol> basesBeingResolved) 344var underlyingBaseInterfaces = _underlyingType.GetDeclaredInterfaces(basesBeingResolved); 345var result = this.RetargetingTranslator.Retarget(underlyingBaseInterfaces); 346ImmutableInterlocked.InterlockedCompareExchange(ref _lazyDeclaredInterfaces, result, default(ImmutableArray<NamedTypeSymbol>));
Symbols\Retargeting\RetargetingNamespaceSymbol.cs (13)
73public override ImmutableArray<Symbol> GetMembers() 78private ImmutableArray<Symbol> RetargetMembers(ImmutableArray<Symbol> underlyingMembers) 96internal override ImmutableArray<Symbol> GetMembersUnordered() 101public override ImmutableArray<Symbol> GetMembers(ReadOnlyMemory<char> name) 106internal override ImmutableArray<NamedTypeSymbol> GetTypeMembersUnordered() 111public override ImmutableArray<NamedTypeSymbol> GetTypeMembers() 116private ImmutableArray<NamedTypeSymbol> RetargetTypeMembers(ImmutableArray<NamedTypeSymbol> underlyingMembers) 135public override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name) 140public override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name, int arity) 153public override ImmutableArray<Location> Locations 161public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
Symbols\Retargeting\RetargetingParameterSymbol.cs (6)
20private ImmutableArray<CustomModifier> _lazyRefCustomModifiers; 25private ImmutableArray<CSharpAttributeData> _lazyCustomAttributes; 55public sealed override ImmutableArray<CustomModifier> RefCustomModifiers 71public sealed override ImmutableArray<CSharpAttributeData> GetAttributes() 121internal override ImmutableArray<byte> MarshallingDescriptor 143internal sealed override ImmutableArray<int> InterpolatedStringHandlerArgumentIndexes => _underlyingParameter.InterpolatedStringHandlerArgumentIndexes;
Symbols\Retargeting\RetargetingPropertySymbol.cs (15)
25private ImmutableArray<PropertySymbol> _lazyExplicitInterfaceImplementations; 26private ImmutableArray<ParameterSymbol> _lazyParameters; 27private ImmutableArray<CustomModifier> _lazyRefCustomModifiers; 32private ImmutableArray<CSharpAttributeData> _lazyCustomAttributes; 80public override ImmutableArray<CustomModifier> RefCustomModifiers 88public override ImmutableArray<ParameterSymbol> Parameters 94ImmutableInterlocked.InterlockedCompareExchange(ref _lazyParameters, this.RetargetParameters(), default(ImmutableArray<ParameterSymbol>)); 101private ImmutableArray<ParameterSymbol> RetargetParameters() 103var list = _underlyingProperty.Parameters; 108return ImmutableArray<ParameterSymbol>.Empty; 151public override ImmutableArray<PropertySymbol> ExplicitInterfaceImplementations 160default(ImmutableArray<PropertySymbol>)); 166private ImmutableArray<PropertySymbol> RetargetExplicitInterfaceImplementations() 168var impls = _underlyingProperty.ExplicitInterfaceImplementations; 216public override ImmutableArray<CSharpAttributeData> GetAttributes()
Symbols\Retargeting\RetargetingSymbolTranslator.cs (47)
190var newModifiers = RetargetModifiers(underlyingType.CustomModifiers, out modifiersHaveChanged); 610ImmutableArray<AssemblySymbol> assembliesToEmbedTypesFrom = this.UnderlyingModule.GetAssembliesToEmbedTypesFrom(); 623ImmutableArray<AssemblySymbol> linkedAssemblies = RetargetingAssembly.GetLinkedReferencedAssemblies(); 713internal ImmutableArray<CustomModifier> RetargetModifiers(ImmutableArray<CustomModifier> oldModifiers, out bool modifiersHaveChanged) 763var newRefModifiers = RetargetModifiers(signature.RefCustomModifiers, out bool symbolModified); 766var newParameterTypes = ImmutableArray<TypeWithAnnotations>.Empty; 767ImmutableArray<ImmutableArray<CustomModifier>> newParamModifiers = default; 773var newParameterCustomModifiersBuilder = ArrayBuilder<ImmutableArray<CustomModifier>>.GetInstance(paramCount); 779var newModifiers = RetargetModifiers(parameter.RefCustomModifiers, out bool customModifiersChanged); 827public ImmutableArray<Symbol> Retarget(ImmutableArray<Symbol> arr) 834public ImmutableArray<NamedTypeSymbol> Retarget(ImmutableArray<NamedTypeSymbol> sequence) 848public ImmutableArray<TypeSymbol> Retarget(ImmutableArray<TypeSymbol> sequence) 860public ImmutableArray<TypeWithAnnotations> Retarget(ImmutableArray<TypeWithAnnotations> sequence) 867public ImmutableArray<TypeParameterSymbol> Retarget(ImmutableArray<TypeParameterSymbol> list) 1027ImmutableArray<MethodSymbol>.Empty); 1093ImmutableArray<PropertySymbol>.Empty); 1129internal ImmutableArray<CustomModifier> RetargetModifiers( 1130ImmutableArray<CustomModifier> oldModifiers, 1131ref ImmutableArray<CustomModifier> lazyCustomModifiers) 1136ImmutableArray<CustomModifier> newModifiers = this.RetargetModifiers(oldModifiers, out modifiersHaveChanged); 1137ImmutableInterlocked.InterlockedCompareExchange(ref lazyCustomModifiers, newModifiers, default(ImmutableArray<CustomModifier>)); 1143private ImmutableArray<CSharpAttributeData> RetargetAttributes(ImmutableArray<CSharpAttributeData> oldAttributes) 1178ImmutableArray<TypedConstant> oldAttributeCtorArguments = oldAttributeData.CommonConstructorArguments; 1179ImmutableArray<TypedConstant> newAttributeCtorArguments = RetargetAttributeConstructorArguments(oldAttributeCtorArguments); 1181ImmutableArray<KeyValuePair<string, TypedConstant>> oldAttributeNamedArguments = oldAttributeData.CommonNamedArguments; 1182ImmutableArray<KeyValuePair<string, TypedConstant>> newAttributeNamedArguments = RetargetAttributeNamedArguments(oldAttributeNamedArguments); 1195private ImmutableArray<TypedConstant> RetargetAttributeConstructorArguments(ImmutableArray<TypedConstant> constructorArguments) 1197ImmutableArray<TypedConstant> retargetedArguments = constructorArguments; 1230var newArray = RetargetAttributeConstructorArguments(oldConstant.Values); 1264private ImmutableArray<KeyValuePair<string, TypedConstant>> RetargetAttributeNamedArguments(ImmutableArray<KeyValuePair<string, TypedConstant>> namedArguments) 1266var retargetedArguments = namedArguments; 1302internal ImmutableArray<CSharpAttributeData> GetRetargetedAttributes( 1303ImmutableArray<CSharpAttributeData> underlyingAttributes, 1304ref ImmutableArray<CSharpAttributeData> lazyCustomAttributes) 1309ImmutableArray<CSharpAttributeData> retargetedAttributes = this.RetargetAttributes(underlyingAttributes); 1311ImmutableInterlocked.InterlockedCompareExchange(ref lazyCustomAttributes, retargetedAttributes, default(ImmutableArray<CSharpAttributeData>));
Symbols\Retargeting\RetargetingTypeParameterSymbol.cs (4)
36private ImmutableArray<CSharpAttributeData> _lazyCustomAttributes; 63public override ImmutableArray<CSharpAttributeData> GetAttributes() 84internal override ImmutableArray<TypeWithAnnotations> GetConstraintTypes(ConsList<TypeParameterSymbol> inProgress) 97internal override ImmutableArray<NamedTypeSymbol> GetInterfaces(ConsList<TypeParameterSymbol> inProgress)
Symbols\SignatureOnlyMethodSymbol.cs (16)
25private readonly ImmutableArray<TypeParameterSymbol> _typeParameters; 26private readonly ImmutableArray<ParameterSymbol> _parameters; 31private readonly ImmutableArray<CustomModifier> _refCustomModifiers; 32private readonly ImmutableArray<MethodSymbol> _explicitInterfaceImplementations; 39ImmutableArray<TypeParameterSymbol> typeParameters, 40ImmutableArray<ParameterSymbol> parameters, 45ImmutableArray<CustomModifier> refCustomModifiers, 46ImmutableArray<MethodSymbol> explicitInterfaceImplementations) 71public override ImmutableArray<TypeParameterSymbol> TypeParameters { get { return _typeParameters; } } 85public override ImmutableArray<CustomModifier> RefCustomModifiers { get { return _refCustomModifiers; } } 87public override ImmutableArray<ParameterSymbol> Parameters { get { return _parameters; } } 89public override ImmutableArray<MethodSymbol> ExplicitInterfaceImplementations { get { return _explicitInterfaceImplementations; } } 127internal override ImmutableArray<string> GetAppliedConditionalSymbols() { throw ExceptionUtilities.Unreachable(); } 129public override ImmutableArray<TypeWithAnnotations> TypeArgumentsWithAnnotations { get { throw ExceptionUtilities.Unreachable(); } } 137public override ImmutableArray<Location> Locations { get { throw ExceptionUtilities.Unreachable(); } } 139public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences { get { throw ExceptionUtilities.Unreachable(); } }
Symbols\SignatureOnlyParameterSymbol.cs (6)
18private readonly ImmutableArray<CustomModifier> _refCustomModifiers; 25ImmutableArray<CustomModifier> refCustomModifiers, 42public override ImmutableArray<CustomModifier> RefCustomModifiers { get { return _refCustomModifiers; } } 95public override ImmutableArray<Location> Locations { get { throw ExceptionUtilities.Unreachable(); } } 97public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences { get { throw ExceptionUtilities.Unreachable(); } } 103internal override ImmutableArray<int> InterpolatedStringHandlerArgumentIndexes => throw ExceptionUtilities.Unreachable();
Symbols\SignatureOnlyPropertySymbol.cs (11)
23private readonly ImmutableArray<ParameterSymbol> _parameters; 26private readonly ImmutableArray<CustomModifier> _refCustomModifiers; 28private readonly ImmutableArray<PropertySymbol> _explicitInterfaceImplementations; 33ImmutableArray<ParameterSymbol> parameters, 36ImmutableArray<CustomModifier> refCustomModifiers, 38ImmutableArray<PropertySymbol> explicitInterfaceImplementations) 54public override ImmutableArray<CustomModifier> RefCustomModifiers { get { return _refCustomModifiers; } } 58public override ImmutableArray<ParameterSymbol> Parameters { get { return _parameters; } } 60public override ImmutableArray<PropertySymbol> ExplicitInterfaceImplementations { get { return _explicitInterfaceImplementations; } } 74public override ImmutableArray<Location> Locations { get { throw ExceptionUtilities.Unreachable(); } } 76public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences { get { throw ExceptionUtilities.Unreachable(); } }
Symbols\Source\CrefTypeParameterSymbol.cs (6)
177public override ImmutableArray<Location> Locations 185public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 197internal override ImmutableArray<TypeWithAnnotations> GetConstraintTypes(ConsList<TypeParameterSymbol> inProgress) 199return ImmutableArray<TypeWithAnnotations>.Empty; 202internal override ImmutableArray<NamedTypeSymbol> GetInterfaces(ConsList<TypeParameterSymbol> inProgress) 204return ImmutableArray<NamedTypeSymbol>.Empty;
Symbols\Source\CustomModifierUtils.cs (13)
25out ImmutableArray<CustomModifier> customModifiers, 26out ImmutableArray<ParameterSymbol> parameters, 43destinationMethod.RefKind != RefKind.None ? constructedSourceMethod.RefCustomModifiers : ImmutableArray<CustomModifier>.Empty; 78ImmutableArray<bool> flags = CSharpCompilation.DynamicTransformsEncoder.EncodeWithoutCustomModifierFlags(destinationType, refKind); 91ImmutableArray<string> names = CSharpCompilation.TupleNamesEncoder.Encode(destinationType); 115internal static ImmutableArray<ParameterSymbol> CopyParameterCustomModifiers(ImmutableArray<ParameterSymbol> sourceParameters, ImmutableArray<ParameterSymbol> destinationParameters, bool alsoCopyParamsModifier) 146destinationParameter.RefKind != RefKind.None ? sourceParameter.RefCustomModifiers : ImmutableArray<CustomModifier>.Empty, 158internal static bool HasInAttributeModifier(this ImmutableArray<CustomModifier> modifiers) 163internal static bool HasRequiresLocationAttributeModifier(this ImmutableArray<CustomModifier> modifiers) 168internal static bool HasIsExternalInitModifier(this ImmutableArray<CustomModifier> modifiers) 173internal static bool HasOutAttributeModifier(this ImmutableArray<CustomModifier> modifiers)
Symbols\Source\ExplicitInterfaceHelpers.cs (4)
113public static ImmutableArray<T> SubstituteExplicitInterfaceImplementations<T>(ImmutableArray<T> unsubstitutedExplicitInterfaceImplementations, TypeMap map) where T : Symbol 397ImmutableArray<ParameterSymbol> implementedMemberParameters = implementedMember.GetParameters(); 398ImmutableArray<ParameterSymbol> collisionCandidateParameters = collisionCandidateMember.GetParameters();
Symbols\Source\FieldSymbolWithAttributesAndModifiers.cs (3)
71public sealed override ImmutableArray<CSharpAttributeData> GetAttributes() 312internal override void PostDecodeWellKnownAttributes(ImmutableArray<CSharpAttributeData> boundAttributes, ImmutableArray<AttributeSyntax> allAttributeSyntaxNodes, BindingDiagnosticBag diagnostics, AttributeLocation symbolPart, WellKnownAttributeData decodedData)
Symbols\Source\ImplicitNamedTypeSymbol.cs (12)
34public override ImmutableArray<CSharpAttributeData> GetAttributes() 37return ImmutableArray<CSharpAttributeData>.Empty; 71internal override ImmutableArray<NamedTypeSymbol> InterfacesNoUseSiteDiagnostics(ConsList<TypeSymbol> basesBeingResolved) 73return ImmutableArray<NamedTypeSymbol>.Empty; 76internal override ImmutableArray<NamedTypeSymbol> GetDeclaredInterfaces(ConsList<TypeSymbol> basesBeingResolved) 78return ImmutableArray<NamedTypeSymbol>.Empty; 86public override ImmutableArray<TypeParameterSymbol> TypeParameters 88get { return ImmutableArray<TypeParameterSymbol>.Empty; } 91internal override ImmutableArray<TypeWithAnnotations> TypeArgumentsWithAnnotationsNoUseSiteDiagnostics 93get { return ImmutableArray<TypeWithAnnotations>.Empty; } 162internal override ImmutableArray<string> GetAppliedConditionalSymbols() 164return ImmutableArray<string>.Empty;
Symbols\Source\IndexedTypeParameterSymbol.cs (10)
85internal static ImmutableArray<TypeParameterSymbol> TakeSymbols(int count) 102internal static ImmutableArray<TypeWithAnnotations> Take(int count) 192public override ImmutableArray<Location> Locations 196return ImmutableArray<Location>.Empty; 200public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 204return ImmutableArray<SyntaxReference>.Empty; 212internal override ImmutableArray<TypeWithAnnotations> GetConstraintTypes(ConsList<TypeParameterSymbol> inProgress) 214return ImmutableArray<TypeWithAnnotations>.Empty; 217internal override ImmutableArray<NamedTypeSymbol> GetInterfaces(ConsList<TypeParameterSymbol> inProgress) 219return ImmutableArray<NamedTypeSymbol>.Empty;
Symbols\Source\LambdaParameterSymbol.cs (2)
39public override ImmutableArray<CustomModifier> RefCustomModifiers 41get { return ImmutableArray<CustomModifier>.Empty; }
Symbols\Source\LambdaSymbol.cs (24)
21private readonly ImmutableArray<ParameterSymbol> _parameters; 46ImmutableArray<TypeWithAnnotations> parameterTypes, 47ImmutableArray<RefKind> parameterRefKinds, 167public override ImmutableArray<CustomModifier> RefCustomModifiers 169get { return ImmutableArray<CustomModifier>.Empty; } 177public override ImmutableArray<MethodSymbol> ExplicitInterfaceImplementations 179get { return ImmutableArray<MethodSymbol>.Empty; } 187public override ImmutableArray<TypeWithAnnotations> TypeArgumentsWithAnnotations 189get { return ImmutableArray<TypeWithAnnotations>.Empty; } 192public override ImmutableArray<TypeParameterSymbol> TypeParameters 194get { return ImmutableArray<TypeParameterSymbol>.Empty; } 202public override ImmutableArray<ParameterSymbol> Parameters 219public override ImmutableArray<Location> Locations 246public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 321private ImmutableArray<ParameterSymbol> MakeParameters( 324ImmutableArray<TypeWithAnnotations> parameterTypes, 325ImmutableArray<RefKind> parameterRefKinds) 387var result = builder.ToImmutableAndFree(); 427public override ImmutableArray<ImmutableArray<TypeWithAnnotations>> GetTypeParameterConstraintTypes() => ImmutableArray<ImmutableArray<TypeWithAnnotations>>.Empty; 429public override ImmutableArray<TypeParameterConstraintKind> GetTypeParameterConstraintKinds() => ImmutableArray<TypeParameterConstraintKind>.Empty;
Symbols\Source\LocalFunctionSymbol.cs (20)
22private readonly ImmutableArray<SourceMethodTypeParameterSymbol> _typeParameters; 25private ImmutableArray<ParameterSymbol> _lazyParameters; 28private ImmutableArray<ImmutableArray<TypeWithAnnotations>> _lazyTypeParameterConstraintTypes; 29private ImmutableArray<TypeParameterConstraintKind> _lazyTypeParameterConstraintKinds; 71_typeParameters = ImmutableArray<SourceMethodTypeParameterSymbol>.Empty; 174public override ImmutableArray<ParameterSymbol> Parameters 310public override ImmutableArray<TypeWithAnnotations> TypeArgumentsWithAnnotations => GetTypeParametersAsTypeArguments(); 312public override ImmutableArray<TypeParameterSymbol> TypeParameters 335public override ImmutableArray<MethodSymbol> ExplicitInterfaceImplementations => ImmutableArray<MethodSymbol>.Empty; 337public override ImmutableArray<Location> Locations => ImmutableArray.Create(Syntax.Identifier.GetLocation()); 343public override ImmutableArray<CustomModifier> RefCustomModifiers => ImmutableArray<CustomModifier>.Empty; 408private ImmutableArray<SourceMethodTypeParameterSymbol> MakeTypeParameters(BindingDiagnosticBag diagnostics) 468public override ImmutableArray<ImmutableArray<TypeWithAnnotations>> GetTypeParameterConstraintTypes() 479var constraints = this.MakeTypeParameterConstraintTypes( 500public override ImmutableArray<TypeParameterConstraintKind> GetTypeParameterConstraintKinds() 505var constraints = this.MakeTypeParameterConstraintKinds(
Symbols\Source\ParameterHelpers.cs (27)
20public static ImmutableArray<SourceParameterSymbol> MakeParameters( 63public static ImmutableArray<FunctionPointerParameterSymbol> MakeFunctionPointerParameters( 90ImmutableArray<CustomModifier> customModifiers = refKind switch 95_ => ImmutableArray<CustomModifier>.Empty 113private static ImmutableArray<TParameterSymbol> MakeParameters<TParameterSyntax, TParameterSymbol, TOwningSymbol>( 202ImmutableArray<TParameterSymbol> parameters = builder.ToImmutableAndFree(); 207var typeParameters = (object)methodOwner != null ? 209default(ImmutableArray<TypeParameterSymbol>); 222internal static void EnsureRefKindAttributesExist(PEModuleBuilder moduleBuilder, ImmutableArray<ParameterSymbol> parameters) 227internal static void EnsureRefKindAttributesExist(CSharpCompilation? compilation, ImmutableArray<ParameterSymbol> parameters, BindingDiagnosticBag diagnostics, bool modifyCompilation) 239private static void EnsureRefKindAttributesExist(CSharpCompilation compilation, ImmutableArray<ParameterSymbol> parameters, BindingDiagnosticBag? diagnostics, bool modifyCompilation, PEModuleBuilder? moduleBuilder) 268internal static void EnsureParamCollectionAttributeExistsAndModifyCompilation(CSharpCompilation compilation, ImmutableArray<ParameterSymbol> parameters, BindingDiagnosticBag diagnostics) 276internal static void EnsureNativeIntegerAttributeExists(PEModuleBuilder moduleBuilder, ImmutableArray<ParameterSymbol> parameters) 282internal static void EnsureNativeIntegerAttributeExists(CSharpCompilation? compilation, ImmutableArray<ParameterSymbol> parameters, BindingDiagnosticBag diagnostics, bool modifyCompilation) 299private static void EnsureNativeIntegerAttributeExists(CSharpCompilation compilation, ImmutableArray<ParameterSymbol> parameters, BindingDiagnosticBag? diagnostics, bool modifyCompilation, PEModuleBuilder? moduleBuilder) 344internal static void EnsureScopedRefAttributeExists(PEModuleBuilder moduleBuilder, ImmutableArray<ParameterSymbol> parameters) 349internal static void EnsureScopedRefAttributeExists(CSharpCompilation? compilation, ImmutableArray<ParameterSymbol> parameters, BindingDiagnosticBag diagnostics, bool modifyCompilation) 361private static void EnsureScopedRefAttributeExists(CSharpCompilation compilation, ImmutableArray<ParameterSymbol> parameters, BindingDiagnosticBag? diagnostics, bool modifyCompilation, PEModuleBuilder? moduleBuilder) 379internal static void EnsureNullableAttributeExists(PEModuleBuilder moduleBuilder, Symbol container, ImmutableArray<ParameterSymbol> parameters) 384internal static void EnsureNullableAttributeExists(CSharpCompilation? compilation, Symbol container, ImmutableArray<ParameterSymbol> parameters, BindingDiagnosticBag? diagnostics, bool modifyCompilation) 396private static void EnsureNullableAttributeExists(CSharpCompilation compilation, Symbol container, ImmutableArray<ParameterSymbol> parameters, BindingDiagnosticBag? diagnostics, bool modifyCompilation, PEModuleBuilder? moduleBuilder) 986internal static ImmutableArray<CustomModifier> ConditionallyCreateInModifiers(RefKind refKind, bool addRefReadOnlyModifier, Binder binder, BindingDiagnosticBag diagnostics, SyntaxNode syntax) 994return ImmutableArray<CustomModifier>.Empty; 998internal static ImmutableArray<CustomModifier> CreateInModifiers(Binder binder, BindingDiagnosticBag diagnostics, SyntaxNode syntax) 1004private static ImmutableArray<CustomModifier> CreateRefReadonlyParameterModifiers(Binder binder, BindingDiagnosticBag diagnostics, SyntaxNode syntax) 1010internal static ImmutableArray<CustomModifier> CreateOutModifiers(Binder binder, BindingDiagnosticBag diagnostics, SyntaxNode syntax) 1015private static ImmutableArray<CustomModifier> CreateModifiers(WellKnownType modifier, Binder binder, BindingDiagnosticBag diagnostics, SyntaxNode syntax)
Symbols\Source\SourceAssemblySymbol.cs (42)
60private readonly ImmutableArray<ModuleSymbol> _modules; 113private ImmutableArray<Diagnostic> _unusedFieldWarnings; 119ImmutableArray<PEModule> netModules) 559internal override ImmutableArray<byte> PublicKey 564public override ImmutableArray<ModuleSymbol> Modules 573public override ImmutableArray<Location> Locations 1062ImmutableArray<NamespaceSymbol> constituent = mergedNs.ConstituentNamespaces; 1190ImmutableArray<CSharpAttributeData> appliedSourceAttributes = this.GetSourceAttributesBag().Attributes; 1280private ImmutableArray<CSharpAttributeData> GetNetModuleAttributes(out ImmutableArray<string> netModuleNames) 1304netModuleNames = ImmutableArray<string>.Empty; 1305return ImmutableArray<CSharpAttributeData>.Empty; 1313ImmutableArray<CSharpAttributeData> attributesFromNetModules, 1314ImmutableArray<string> netModuleNames, 1372ImmutableArray<string> netModuleNames; 1373ImmutableArray<CSharpAttributeData> attributesFromNetModules = GetNetModuleAttributes(out netModuleNames); 1469ImmutableArray<string> netModuleNames; 1470ImmutableArray<CSharpAttributeData> attributesFromNetModules = GetNetModuleAttributes(out netModuleNames); 1483WellKnownAttributeData limitedDecodeWellKnownAttributes(ImmutableArray<CSharpAttributeData> attributesFromNetModules, 1484ImmutableArray<string> netModuleNames, QuickAttributes attributeMatches) 1550internal ImmutableArray<SyntaxList<AttributeListSyntax>> GetAttributeDeclarations() 1553var declarations = DeclaringCompilation.MergedRootDeclaration.Declarations; 1595public sealed override ImmutableArray<CSharpAttributeData> GetAttributes() 1597var attributes = this.GetSourceAttributesBag().Attributes; 1598var netmoduleAttributes = this.GetNetModuleAttributesBag().Attributes; 1852internal override ImmutableArray<AssemblySymbol> GetNoPiaResolutionAssemblies() 1857internal override void SetNoPiaResolutionAssemblies(ImmutableArray<AssemblySymbol> assemblies) 1862internal override ImmutableArray<AssemblySymbol> GetLinkedReferencedAssemblies() 1866return default(ImmutableArray<AssemblySymbol>); 1869internal override void SetLinkedReferencedAssemblies(ImmutableArray<AssemblySymbol> assemblies) 1995ImmutableArray<TypedConstant>.Empty, 2057private static bool ContainsExtensionMethods(ImmutableArray<ModuleSymbol> modules) 2119internal override IEnumerable<ImmutableArray<byte>> GetInternalsVisibleToPublicKeys(string simpleName) 2128return SpecializedCollections.EmptyEnumerable<ImmutableArray<byte>>(); 2130ConcurrentDictionary<ImmutableArray<byte>, Tuple<Location, string>> result = null; 2134return (result != null) ? result.Keys : SpecializedCollections.EmptyEnumerable<ImmutableArray<byte>>(); 2194private ConcurrentDictionary<string, ConcurrentDictionary<ImmutableArray<byte>, Tuple<Location, string>>> _lazyInternalsVisibleToMap; 2272ref ConcurrentDictionary<string, ConcurrentDictionary<ImmutableArray<byte>, Tuple<Location, string>>> lazyInternalsVisibleToMap) 2306new ConcurrentDictionary<string, ConcurrentDictionary<ImmutableArray<byte>, Tuple<Location, String>>>(StringComparer.OrdinalIgnoreCase), null); 2326ConcurrentDictionary<ImmutableArray<byte>, Tuple<Location, string>> keys = null; 2333keys = new ConcurrentDictionary<ImmutableArray<byte>, Tuple<Location, String>>(); 2664internal ImmutableArray<Diagnostic> GetUnusedFieldWarnings(CancellationToken cancellationToken)
Symbols\Source\SourceClonedParameterSymbol.cs (6)
37public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 43return ImmutableArray<SyntaxReference>.Empty; 108public override ImmutableArray<Location> Locations 113public override ImmutableArray<CSharpAttributeData> GetAttributes() 123public override ImmutableArray<CustomModifier> RefCustomModifiers 153internal override ImmutableArray<int> InterpolatedStringHandlerArgumentIndexes => throw ExceptionUtilities.Unreachable();
Symbols\Source\SourceComplexParameterSymbol.cs (19)
137internal override ImmutableArray<int> InterpolatedStringHandlerArgumentIndexes 346ImmutableArray<LocalSymbol>.Empty, 474ImmutableArray<ParameterSymbol> implParameters = this.ContainingSymbol switch 495ImmutableArray<ParameterSymbol> defParameters = this.ContainingSymbol switch 617public ImmutableArray<(CSharpAttributeData, BoundAttribute)> BindParameterAttributes() 690var parameters = ContainingSymbol.GetParameters(); 892var arguments = attribute.CommonConstructorArguments; 1269ImmutableArray<ParameterSymbol> containingSymbolParameters = ContainingSymbol.GetParameters(); 1271ImmutableArray<int> parameterOrdinals; 1394internal override void PostDecodeWellKnownAttributes(ImmutableArray<CSharpAttributeData> boundAttributes, ImmutableArray<AttributeSyntax> allAttributeSyntaxNodes, BindingDiagnosticBag diagnostics, AttributeLocation symbolPart, WellKnownAttributeData decodedData) 1478var attributes = GetAttributes(); 1521public abstract override ImmutableArray<CustomModifier> RefCustomModifiers { get; } 1594if (!binder.HasCollectionExpressionApplicableAddMethod(syntax, Type, out ImmutableArray<MethodSymbol> addMethods, diagnostics)) 1715public override ImmutableArray<CustomModifier> RefCustomModifiers => ImmutableArray<CustomModifier>.Empty; 1720private readonly ImmutableArray<CustomModifier> _refCustomModifiers; 1728ImmutableArray<CustomModifier> refCustomModifiers, 1747public override ImmutableArray<CustomModifier> RefCustomModifiers => _refCustomModifiers;
Symbols\Source\SourceConstructorSymbolBase.cs (10)
19protected ImmutableArray<ParameterSymbol> _lazyParameters; 123public sealed override ImmutableArray<ParameterSymbol> Parameters 132public sealed override ImmutableArray<TypeParameterSymbol> TypeParameters 134get { return ImmutableArray<TypeParameterSymbol>.Empty; } 137public sealed override ImmutableArray<ImmutableArray<TypeWithAnnotations>> GetTypeParameterConstraintTypes() 138=> ImmutableArray<ImmutableArray<TypeWithAnnotations>>.Empty; 140public sealed override ImmutableArray<TypeParameterConstraintKind> GetTypeParameterConstraintKinds() 141=> ImmutableArray<TypeParameterConstraintKind>.Empty;
Symbols\Source\SourceCustomEventSymbol.cs (3)
24private readonly ImmutableArray<EventSymbol> _explicitInterfaceImplementations; 169ImmutableArray<EventSymbol>.Empty : 208public override ImmutableArray<EventSymbol> ExplicitInterfaceImplementations
Symbols\Source\SourceDelegateClonedParameterSymbolForBeginAndEndInvoke.cs (2)
29internal override ParameterSymbol WithCustomModifiersAndParams(TypeSymbol newType, ImmutableArray<CustomModifier> newCustomModifiers, ImmutableArray<CustomModifier> newRefCustomModifiers, bool newIsParams)
Symbols\Source\SourceDelegateMethodSymbol.cs (16)
19private ImmutableArray<ParameterSymbol> _parameters; 39protected void InitializeParameters(ImmutableArray<ParameterSymbol> parameters) 135public sealed override ImmutableArray<ParameterSymbol> Parameters 144public override ImmutableArray<TypeParameterSymbol> TypeParameters 148return ImmutableArray<TypeParameterSymbol>.Empty; 152public override ImmutableArray<ImmutableArray<TypeWithAnnotations>> GetTypeParameterConstraintTypes() 153=> ImmutableArray<ImmutableArray<TypeWithAnnotations>>.Empty; 155public override ImmutableArray<TypeParameterConstraintKind> GetTypeParameterConstraintKinds() 156=> ImmutableArray<TypeParameterConstraintKind>.Empty; 253private readonly ImmutableArray<CustomModifier> _refCustomModifiers; 265var parameters = ParameterHelpers.MakeParameters( 287_refCustomModifiers = ImmutableArray<CustomModifier>.Empty; 344public override ImmutableArray<CustomModifier> RefCustomModifiers => _refCustomModifiers; 417public override ImmutableArray<CustomModifier> RefCustomModifiers => _invoke.RefCustomModifiers;
Symbols\Source\SourceDestructorSymbol.cs (10)
104public override ImmutableArray<ParameterSymbol> Parameters 106get { return ImmutableArray<ParameterSymbol>.Empty; } 109public override ImmutableArray<TypeParameterSymbol> TypeParameters 111get { return ImmutableArray<TypeParameterSymbol>.Empty; } 114public override ImmutableArray<ImmutableArray<TypeWithAnnotations>> GetTypeParameterConstraintTypes() 115=> ImmutableArray<ImmutableArray<TypeWithAnnotations>>.Empty; 117public override ImmutableArray<TypeParameterConstraintKind> GetTypeParameterConstraintKinds() 118=> ImmutableArray<TypeParameterConstraintKind>.Empty;
Symbols\Source\SourceEventAccessorSymbol.cs (17)
19private readonly ImmutableArray<MethodSymbol> _explicitInterfaceImplementations; 21private readonly ImmutableArray<ParameterSymbol> _parameters; 52ImmutableArray<MethodSymbol> explicitInterfaceImplementations; 56explicitInterfaceImplementations = ImmutableArray<MethodSymbol>.Empty; 64explicitInterfaceImplementations = (object)implementedAccessor == null ? ImmutableArray<MethodSymbol>.Empty : ImmutableArray.Create<MethodSymbol>(implementedAccessor); 81public override ImmutableArray<MethodSymbol> ExplicitInterfaceImplementations 170public sealed override ImmutableArray<CustomModifier> RefCustomModifiers 174return ImmutableArray<CustomModifier>.Empty; // Same as base, but this is clear and explicit. 178public sealed override ImmutableArray<ParameterSymbol> Parameters 186public sealed override ImmutableArray<TypeParameterSymbol> TypeParameters 188get { return ImmutableArray<TypeParameterSymbol>.Empty; } 191public sealed override ImmutableArray<ImmutableArray<TypeWithAnnotations>> GetTypeParameterConstraintTypes() 192=> ImmutableArray<ImmutableArray<TypeWithAnnotations>>.Empty; 194public sealed override ImmutableArray<TypeParameterConstraintKind> GetTypeParameterConstraintKinds() 195=> ImmutableArray<TypeParameterConstraintKind>.Empty;
Symbols\Source\SourceEventSymbol.cs (5)
89public abstract override ImmutableArray<EventSymbol> ExplicitInterfaceImplementations { get; } 114public sealed override ImmutableArray<Location> Locations 125public sealed override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 213public sealed override ImmutableArray<CSharpAttributeData> GetAttributes() 668ImmutableArray<EventSymbol> explicitInterfaceImplementations = this.ExplicitInterfaceImplementations;
Symbols\Source\SourceFieldLikeEventSymbol.cs (2)
172public override ImmutableArray<EventSymbol> ExplicitInterfaceImplementations 174get { return ImmutableArray<EventSymbol>.Empty; }
Symbols\Source\SourceFieldSymbol.cs (6)
78protected ImmutableArray<CustomModifier> RequiredCustomModifiers 84return ImmutableArray<CustomModifier>.Empty; 96public sealed override ImmutableArray<CustomModifier> RefCustomModifiers => ImmutableArray<CustomModifier>.Empty; 219public sealed override ImmutableArray<Location> Locations 225public sealed override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
Symbols\Source\SourceFixedFieldSymbol.cs (4)
156: base(GeneratedNames.MakeFixedFieldImplementationName(field.Name), typeParameters: ImmutableArray<TypeParameterSymbol>.Empty, typeMap: TypeMap.Empty) 218public override ImmutableArray<Symbol> GetMembers() 223public override ImmutableArray<Symbol> GetMembers(string name) 228ImmutableArray<Symbol>.Empty;
Symbols\Source\SourceLabelSymbol.cs (4)
77public override ImmutableArray<Location> Locations 82? ImmutableArray<Location>.Empty 87public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 103return node == null ? ImmutableArray<SyntaxReference>.Empty : ImmutableArray.Create<SyntaxReference>(node.GetReference());
Symbols\Source\SourceLocalSymbol.cs (2)
414public override ImmutableArray<Location> Locations 424public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
Symbols\Source\SourceMemberContainerSymbol.cs (185)
189private ImmutableArray<DiagnosticInfo> _managedKindUseSiteDiagnostics; 190private ImmutableArray<AssemblySymbol> _managedKindUseSiteDependencies; 199private ImmutableArray<SynthesizedSimpleProgramEntryPointSymbol> _lazySimpleProgramEntryPoints; 206private Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>>? _lazyMembersDictionary; 207private Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>>? _lazyEarlyAttributeDecodingMembersDictionary; 209private static readonly Dictionary<ReadOnlyMemory<char>, ImmutableArray<NamedTypeSymbol>> s_emptyTypeMembers = 210new Dictionary<ReadOnlyMemory<char>, ImmutableArray<NamedTypeSymbol>>(EmptyReadOnlyMemoryOfCharComparer.Instance); 212private Dictionary<ReadOnlyMemory<char>, ImmutableArray<NamedTypeSymbol>>? _lazyTypeMembers; 213private ImmutableArray<Symbol> _lazyMembersFlattened; 586var tmp = this.TypeArgumentsWithAnnotationsNoUseSiteDiagnostics; // force type arguments 632ImmutableArray<Symbol> members = this.GetMembersUnordered(); 815ImmutableInterlocked.InterlockedInitialize(ref _managedKindUseSiteDiagnostics, managedKindUseSiteInfo.Diagnostics?.ToImmutableArray() ?? ImmutableArray<DiagnosticInfo>.Empty); 816ImmutableInterlocked.InterlockedInitialize(ref _managedKindUseSiteDependencies, managedKindUseSiteInfo.Dependencies?.ToImmutableArray() ?? ImmutableArray<AssemblySymbol>.Empty); 822ImmutableArray<DiagnosticInfo> useSiteDiagnostics = _managedKindUseSiteDiagnostics; 831ImmutableArray<AssemblySymbol> useSiteDependencies = _managedKindUseSiteDependencies; 988public sealed override ImmutableArray<Location> Locations 989=> ImmutableArray<Location>.CastUp(declaration.NameLocations.ToImmutable()); 994public ImmutableArray<SyntaxReference> SyntaxReferences 1002public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 1013var declarations = declaration.Declarations; 1048internal readonly ImmutableArray<Symbol> NonTypeMembers; 1049internal readonly ImmutableArray<ImmutableArray<FieldOrPropertyInitializer>> StaticInitializers; 1050internal readonly ImmutableArray<ImmutableArray<FieldOrPropertyInitializer>> InstanceInitializers; 1057ImmutableArray<Symbol> nonTypeMembers, 1058ImmutableArray<ImmutableArray<FieldOrPropertyInitializer>> staticInitializers, 1059ImmutableArray<ImmutableArray<FieldOrPropertyInitializer>> instanceInitializers, 1083internal ImmutableArray<ImmutableArray<FieldOrPropertyInitializer>> StaticInitializers 1088internal ImmutableArray<ImmutableArray<FieldOrPropertyInitializer>> InstanceInitializers 1141var allInitializers = isStatic ? membersAndInitializers.StaticInitializers : membersAndInitializers.InstanceInitializers; 1167static bool findInitializer(ImmutableArray<ImmutableArray<FieldOrPropertyInitializer>> initializers, int position, SyntaxTree tree, 1171foreach (var group in initializers) 1196static int getGroupLength(ImmutableArray<FieldOrPropertyInitializer> initializers) 1207static int getPrecedingInitializersLength(ImmutableArray<FieldOrPropertyInitializer> initializers, int index) 1218static int getInitializersLength(ImmutableArray<ImmutableArray<FieldOrPropertyInitializer>> initializers) 1221foreach (var group in initializers) 1244private static int IndexOfInitializerContainingPosition(ImmutableArray<FieldOrPropertyInitializer> initializers, int position) 1274internal override ImmutableArray<NamedTypeSymbol> GetTypeMembersUnordered() 1279public override ImmutableArray<NamedTypeSymbol> GetTypeMembers() 1284public override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name) 1286ImmutableArray<NamedTypeSymbol> members; 1292return ImmutableArray<NamedTypeSymbol>.Empty; 1295public override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name, int arity) 1300private Dictionary<ReadOnlyMemory<char>, ImmutableArray<NamedTypeSymbol>> GetTypeMembersDictionary() 1318private Dictionary<ReadOnlyMemory<char>, ImmutableArray<NamedTypeSymbol>> MakeTypeMembers(BindingDiagnosticBag diagnostics) 1443internal override ImmutableArray<Symbol> GetMembersUnordered() 1445var result = _lazyMembersFlattened; 1457public override ImmutableArray<Symbol> GetMembers() 1465var allMembers = this.GetMembersUnordered(); 1479public sealed override ImmutableArray<Symbol> GetMembers(string name) 1481ImmutableArray<Symbol> members; 1487return ImmutableArray<Symbol>.Empty; 1498internal override ImmutableArray<Symbol> GetSimpleNonTypeMembers(string name) 1505return ImmutableArray<Symbol>.Empty; 1548internal override ImmutableArray<Symbol> GetEarlyAttributeDecodingMembers() 1560internal override ImmutableArray<Symbol> GetEarlyAttributeDecodingMembers(string name) 1562ImmutableArray<Symbol> result; 1563return GetEarlyAttributeDecodingMembersDictionary().TryGetValue(name.AsMemory(), out result) ? result : ImmutableArray<Symbol>.Empty; 1566private Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> GetEarlyAttributeDecodingMembersDictionary() 1570if (Volatile.Read(ref _lazyMembersDictionary) is Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> result) 1580Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> membersByName; 1603private static Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> ToNameKeyedDictionary(ImmutableArray<Symbol> symbols) 1607return new Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>>(1, ReadOnlyMemoryOfCharComparer.Instance) 1615return new Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>>(ReadOnlyMemoryOfCharComparer.Instance); 1628var dictionary = new Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>>(accumulator.Count, ReadOnlyMemoryOfCharComparer.Instance); 1745protected Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> GetMembersByName() 1755private Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> GetMembersByNameSlow() 1826var interfaces = GetInterfacesToEmit(); 1942Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> membersByName = GetMembersByName(); 2176private void CheckIndexerNameConflicts(BindingDiagnosticBag diagnostics, Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> membersByName) 2192foreach (var members in membersByName.Values) 2229Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> membersByName, 2379foreach (var valuesByName in GetMembersByName().Values) 2436foreach (var valuesByName in GetMembersByName().Values) 2843private Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> MakeAllMembers(BindingDiagnosticBag diagnostics) 2845Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> membersByName; 2869Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> membersByName, 2870Dictionary<ReadOnlyMemory<char>, ImmutableArray<NamedTypeSymbol>> typesByName) 2872foreach ((ReadOnlyMemory<char> name, ImmutableArray<NamedTypeSymbol> types) in typesByName) 2874ImmutableArray<Symbol> typesAsSymbols = StaticCast<Symbol>.From(types); 2876ImmutableArray<Symbol> membersForName; 2951public readonly ImmutableArray<Symbol> NonTypeMembers; 2952public readonly ImmutableArray<ImmutableArray<FieldOrPropertyInitializer>> StaticInitializers; 2953public readonly ImmutableArray<ImmutableArray<FieldOrPropertyInitializer>> InstanceInitializers; 2967ImmutableArray<Symbol> nonTypeMembers, 2968ImmutableArray<ImmutableArray<FieldOrPropertyInitializer>> staticInitializers, 2969ImmutableArray<ImmutableArray<FieldOrPropertyInitializer>> instanceInitializers, 2995public static void AssertInitializers(ImmutableArray<ImmutableArray<FieldOrPropertyInitializer>> initializers, CSharpCompilation compilation) 3003foreach (ImmutableArray<FieldOrPropertyInitializer> group in initializers) 3047var instanceInitializers = InstanceInitializersForPositionalMembers is null 3060ImmutableArray<ImmutableArray<FieldOrPropertyInitializer>> mergeInitializers() 3088ArrayBuilder<ImmutableArray<FieldOrPropertyInitializer>> groupsBuilder; 3095var declaredInitializers = declaredMembers.InstanceInitializers[insertAt]; 3105groupsBuilder = ArrayBuilder<ImmutableArray<FieldOrPropertyInitializer>>.GetInstance(groupCount); 3115groupsBuilder = ArrayBuilder<ImmutableArray<FieldOrPropertyInitializer>>.GetInstance(groupCount + 1); 3122var result = groupsBuilder.ToImmutableAndFree(); 3172internal static ImmutableArray<ImmutableArray<FieldOrPropertyInitializer>> ToReadOnlyAndFree(ArrayBuilder<ArrayBuilder<FieldOrPropertyInitializer>> initializers) 3177return ImmutableArray<ImmutableArray<FieldOrPropertyInitializer>>.Empty; 3180var builder = ArrayBuilder<ImmutableArray<FieldOrPropertyInitializer>>.GetInstance(initializers.Count); 3290internal ImmutableArray<SynthesizedSimpleProgramEntryPointSymbol> GetSimpleProgramEntryPoints() 3296var simpleProgramEntryPoints = buildSimpleProgramEntryPoint(diagnostics); 3309ImmutableArray<SynthesizedSimpleProgramEntryPointSymbol> buildSimpleProgramEntryPoint(BindingDiagnosticBag diagnostics) 3314return ImmutableArray<SynthesizedSimpleProgramEntryPointSymbol>.Empty; 3338return ImmutableArray<SynthesizedSimpleProgramEntryPointSymbol>.Empty; 3372ImmutableArray<Symbol> nonTypeMembersToCheck; 3418internal ImmutableArray<Symbol> GetMembersToMatchAgainstDeclarationSpan() 3434internal ImmutableArray<Symbol> GetCandidateMembersForLookup(string name) 3442ImmutableArray<Symbol> nonTypeMembersToCheck; 3465ImmutableArray<Symbol> types = GetTypeMembers(name).Cast<NamedTypeSymbol, Symbol>(); 3612ref Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> membersByName, 3696void mergePartialMethods(ref Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> membersByName, ReadOnlyMemory<char> name, SourceOrdinaryMethodSymbol currentMethod, SourceOrdinaryMethodSymbol prevMethod, BindingDiagnosticBag diagnostics) 3717void mergePartialProperties(ref Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> membersByName, ReadOnlyMemory<char> name, SourcePropertySymbol currentProperty, SourcePropertySymbol prevProperty, BindingDiagnosticBag diagnostics) 3742void mergeAccessors(ref Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> membersByName, SourcePropertyAccessorSymbol? currentAccessor, SourcePropertyAccessorSymbol? prevAccessor) 3769private void DuplicateMembersByNameIfCached(ref Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> membersByName) 3774membersByName = new Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>>(membersByName, ReadOnlyMemoryOfCharComparer.Instance); 3779private static ImmutableArray<Symbol> FixPartialMethod(ImmutableArray<Symbol> symbols, SourceOrdinaryMethodSymbol part1, SourceOrdinaryMethodSymbol part2) 3801private static void FixPartialProperty(ref Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> membersByName, ReadOnlyMemory<char> name, SourcePropertySymbol part1, SourcePropertySymbol part2) 3829private static ImmutableArray<Symbol> Remove(ImmutableArray<Symbol> symbols, Symbol symbol) 3948private static bool ParametersMatchPropertyAccessor(PropertySymbol propertySymbol, bool getNotSet, ImmutableArray<ParameterSymbol> methodParams) 3950var propertyParams = propertySymbol.Parameters; 3979private static bool ParametersMatchEventAccessor(EventSymbol eventSymbol, ImmutableArray<ParameterSymbol> methodParams) 4051private static void CheckInterfaceMembers(ImmutableArray<Symbol> nonTypeMembers, BindingDiagnosticBag diagnostics) 4166var simpleProgramEntryPoints = GetSimpleProgramEntryPoints(); 4243var existingOrAddedMembers = addProperties(ctor.Parameters); 4294void addDeconstruct(SynthesizedPrimaryConstructor ctor, ImmutableArray<Symbol> positionalMembers) 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); 4528ImmutableArray<Symbol> addProperties(ImmutableArray<ParameterSymbol> recordParameters) 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); 4872static bool hasNonConstantInitializer(ImmutableArray<ImmutableArray<FieldOrPropertyInitializer>> initializers) 5440public static readonly SynthesizedExplicitImplementations Empty = new SynthesizedExplicitImplementations(ImmutableArray<SynthesizedExplicitImplementationForwardingMethod>.Empty, 5441ImmutableArray<(MethodSymbol Body, MethodSymbol Implemented)>.Empty); 5443public readonly ImmutableArray<SynthesizedExplicitImplementationForwardingMethod> ForwardingMethods; 5444public readonly ImmutableArray<(MethodSymbol Body, MethodSymbol Implemented)> MethodImpls; 5447ImmutableArray<SynthesizedExplicitImplementationForwardingMethod> forwardingMethods, 5448ImmutableArray<(MethodSymbol Body, MethodSymbol Implemented)> methodImpls) 5455ImmutableArray<SynthesizedExplicitImplementationForwardingMethod> forwardingMethods, 5456ImmutableArray<(MethodSymbol Body, MethodSymbol Implemented)> methodImpls)
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (13)
229var info = new CSDiagnosticInfo(ErrorCode.ERR_MixingWinRTEventWithRegular, args, ImmutableArray<Symbol>.Empty, ImmutableArray.Create<Location>(this.GetFirstLocation())); 759var overriddenMembers = overriddenOrHiddenMembers.OverriddenMembers; 764var hiddenMembers = overriddenOrHiddenMembers.HiddenMembers; 789var parameterTypes = overridingMemberIsMethod 1258var baseParameters = baseMethod.Parameters; 1259var overrideParameters = overrideMethod.Parameters; 1383var parameters = method.Parameters; 1449var baseParameters = baseMethod.Parameters; 1450var overrideParameters = overrideMethod.Parameters; 1500var baseParameters = baseMethod.Parameters; 1501var overrideParameters = overrideMethod.Parameters; 1563var hiddenMembers = overriddenOrHiddenMembers.HiddenMembers; 1933internal sealed override ImmutableArray<NamedTypeSymbol> GetInterfacesToEmit()
Symbols\Source\SourceMemberFieldSymbol.cs (2)
131internal override void PostDecodeWellKnownAttributes(ImmutableArray<CSharpAttributeData> boundAttributes, ImmutableArray<AttributeSyntax> allAttributeSyntaxNodes, BindingDiagnosticBag diagnostics, AttributeLocation symbolPart, WellKnownAttributeData decodedData)
Symbols\Source\SourceMemberMethodSymbol.cs (12)
307private ImmutableArray<Diagnostic> _cachedDiagnostics; 308internal ImmutableArray<Diagnostic> Diagnostics 313internal ImmutableArray<Diagnostic> SetDiagnostics(ImmutableArray<Diagnostic> newSet, out bool diagsWritten) 338protected void CheckEffectiveAccessibility(TypeWithAnnotations returnType, ImmutableArray<ParameterSymbol> parameters, BindingDiagnosticBag diagnostics) 372protected void CheckFileTypeUsage(TypeWithAnnotations returnType, ImmutableArray<ParameterSymbol> parameters, BindingDiagnosticBag diagnostics) 776public override ImmutableArray<Location> Locations 790public override ImmutableArray<CustomModifier> RefCustomModifiers 794return ImmutableArray<CustomModifier>.Empty; 798public sealed override ImmutableArray<TypeWithAnnotations> TypeArgumentsWithAnnotations 828public override ImmutableArray<MethodSymbol> ExplicitInterfaceImplementations 832return ImmutableArray<MethodSymbol>.Empty;
Symbols\Source\SourceMethodSymbol.cs (3)
23public abstract ImmutableArray<ImmutableArray<TypeWithAnnotations>> GetTypeParameterConstraintTypes(); 29public abstract ImmutableArray<TypeParameterConstraintKind> GetTypeParameterConstraintKinds();
Symbols\Source\SourceMethodSymbolWithAttributes.cs (20)
101public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 105return (this.syntaxReferenceOpt == null) ? ImmutableArray<SyntaxReference>.Empty : ImmutableArray.Create(this.syntaxReferenceOpt); 317public override ImmutableArray<CSharpAttributeData> GetAttributes() 326public override ImmutableArray<CSharpAttributeData> GetReturnTypeAttributes() 402public ImmutableArray<(CSharpAttributeData, BoundAttribute)> BindMethodAttributes() 504internal sealed override ImmutableArray<string> GetAppliedConditionalSymbols() 507return data != null ? data.ConditionalSymbols : ImmutableArray<string>.Empty; 664internal override ImmutableArray<string> NotNullMembers => 665GetDecodedWellKnownAttributeData()?.NotNullMembers ?? ImmutableArray<string>.Empty; 667internal override ImmutableArray<string> NotNullWhenTrueMembers => 668GetDecodedWellKnownAttributeData()?.NotNullWhenTrueMembers ?? ImmutableArray<string>.Empty; 670internal override ImmutableArray<string> NotNullWhenFalseMembers => 671GetDecodedWellKnownAttributeData()?.NotNullWhenFalseMembers ?? ImmutableArray<string>.Empty; 1028var interceptorsNamespaces = ((CSharpParseOptions)attributeNameSyntax.SyntaxTree.Options).InterceptorsNamespaces; 1125static bool isDeclaredInNamespace(ArrayBuilder<string> thisNamespaceNames, ImmutableArray<string> namespaceSegments) 1179var interceptorsNamespaces = ((CSharpParseOptions)attributeSyntax.SyntaxTree.Options).InterceptorsNamespaces; 1242var syntaxTrees = DeclaringCompilation.SyntaxTrees; 1339static bool isDeclaredInNamespace(ArrayBuilder<string> thisNamespaceNames, ImmutableArray<string> namespaceSegments) 1463internal override void PostDecodeWellKnownAttributes(ImmutableArray<CSharpAttributeData> boundAttributes, ImmutableArray<AttributeSyntax> allAttributeSyntaxNodes, BindingDiagnosticBag diagnostics, AttributeLocation symbolPart, WellKnownAttributeData decodedData)
Symbols\Source\SourceModuleSymbol.cs (13)
33private ImmutableArray<AssemblySymbol> _lazyAssembliesToEmbedTypesFrom; 44private ImmutableArray<Location> _locations; 127internal ImmutableArray<AssemblySymbol> GetAssembliesToEmbedTypesFrom() 144default(ImmutableArray<AssemblySymbol>)); 346ImmutableArray<ImmutableArray<string>> interceptorsNamespaces = ((CSharpParseOptions)location.SourceTree.Options).InterceptorsNamespaces; 347foreach (ImmutableArray<string> namespaceParts in interceptorsNamespaces) 403public override ImmutableArray<Location> Locations 510var mergedAttributes = ((SourceAssemblySymbol)this.ContainingAssembly).GetAttributeDeclarations(); 529public sealed override ImmutableArray<CSharpAttributeData> GetAttributes() 641var version = ImmutableArray.Create(new TypedConstant(compilation.GetSpecialType(SpecialType.System_Int32), TypedConstantKind.Primitive, 11)); 647var includesInternals = ImmutableArray.Create( 720var attributesDeclarations = ((SourceAssemblySymbol)ContainingAssembly).GetAttributeDeclarations();
Symbols\Source\SourceNamedTypeSymbol.cs (53)
138private ImmutableArray<TypeParameterSymbol> MakeTypeParameters(BindingDiagnosticBag diagnostics) 142return ImmutableArray<TypeParameterSymbol>.Empty; 265internal ImmutableArray<TypeWithAnnotations> GetTypeParameterConstraintTypes(int ordinal) 267var constraintTypes = GetTypeParameterConstraintTypes(); 268return (constraintTypes.Length > 0) ? constraintTypes[ordinal] : ImmutableArray<TypeWithAnnotations>.Empty; 271private ImmutableArray<ImmutableArray<TypeWithAnnotations>> GetTypeParameterConstraintTypes() 296var constraintKinds = GetTypeParameterConstraintKinds(); 300private ImmutableArray<TypeParameterConstraintKind> GetTypeParameterConstraintKinds() 313private ImmutableArray<ImmutableArray<TypeWithAnnotations>> MakeTypeParameterConstraintTypes(BindingDiagnosticBag diagnostics) 315var typeParameters = this.TypeParameters; 316var results = ImmutableArray<TypeParameterConstraintClause>.Empty; 322ArrayBuilder<ImmutableArray<TypeParameterConstraintClause>> otherPartialClauses = null; 336ImmutableArray<TypeParameterConstraintClause> constraints; 364(otherPartialClauses ??= ArrayBuilder<ImmutableArray<TypeParameterConstraintClause>>.GetInstance()).Add(constraints); 372results = ImmutableArray<TypeParameterConstraintClause>.Empty; 394private ImmutableArray<TypeParameterConstraintKind> MakeTypeParameterConstraintKinds() 396var typeParameters = this.TypeParameters; 397var results = ImmutableArray<TypeParameterConstraintClause>.Empty; 403ArrayBuilder<ImmutableArray<TypeParameterConstraintClause>> otherPartialClauses = null; 417ImmutableArray<TypeParameterConstraintClause> constraints; 446(otherPartialClauses ??= ArrayBuilder<ImmutableArray<TypeParameterConstraintClause>>.GetInstance()).Add(constraints); 455results = ImmutableArray<TypeParameterConstraintClause>.Empty; 488private ImmutableArray<TypeParameterConstraintClause> MergeConstraintTypesForPartialDeclarations(ImmutableArray<TypeParameterConstraintClause> constraintClauses, 489ArrayBuilder<ImmutableArray<TypeParameterConstraintClause>> otherPartialClauses, 498var typeParameters = TypeParameters; 507ImmutableArray<TypeWithAnnotations> originalConstraintTypes = constraint.ConstraintTypes; 514foreach (ImmutableArray<TypeParameterConstraintClause> otherPartialConstraints in otherPartialClauses) 556static bool mergeConstraints(ImmutableArray<TypeWithAnnotations> originalConstraintTypes, 626static SmallDictionary<TypeWithAnnotations, int> toDictionary(ImmutableArray<TypeWithAnnotations> constraintTypes, IEqualityComparer<TypeWithAnnotations> comparer) 642private ImmutableArray<TypeParameterConstraintClause> MergeConstraintKindsForPartialDeclarations(ImmutableArray<TypeParameterConstraintClause> constraintClauses, 643ArrayBuilder<ImmutableArray<TypeParameterConstraintClause>> otherPartialClauses) 651var typeParameters = TypeParameters; 661ImmutableArray<TypeWithAnnotations> originalConstraintTypes = constraint.ConstraintTypes; 663foreach (ImmutableArray<TypeParameterConstraintClause> otherPartialConstraints in otherPartialClauses) 694static void mergeConstraints(ref TypeParameterConstraintKind mergedKind, ImmutableArray<TypeWithAnnotations> originalConstraintTypes, TypeParameterConstraintClause clause) 735internal sealed override ImmutableArray<TypeWithAnnotations> TypeArgumentsWithAnnotationsNoUseSiteDiagnostics 743public override ImmutableArray<TypeParameterSymbol> TypeParameters 776internal ImmutableArray<SyntaxList<AttributeListSyntax>> GetAttributeDeclarations(QuickAttributes? quickAttributes = null) 857public sealed override ImmutableArray<CSharpAttributeData> GetAttributes() 1266ImmutableArray<SyntaxList<AttributeListSyntax>> attributeLists = GetAttributeDeclarations(QuickAttributes.TypeIdentifier); 1557internal override ImmutableArray<string> GetAppliedConditionalSymbols() 1560return data != null ? data.ConditionalSymbols : ImmutableArray<string>.Empty; 1563internal override void PostDecodeWellKnownAttributes(ImmutableArray<CSharpAttributeData> boundAttributes, ImmutableArray<AttributeSyntax> allAttributeSyntaxNodes, BindingDiagnosticBag diagnostics, AttributeLocation symbolPart, WellKnownAttributeData decodedData) 1594var initializers = this.StaticInitializers; 1597foreach (var initializerGroup in initializers) 1613foreach (var initializerGroup in initializers)
Symbols\Source\SourceNamedTypeSymbol_Bases.cs (20)
24private Tuple<NamedTypeSymbol, ImmutableArray<NamedTypeSymbol>> _lazyDeclaredBases; 27private ImmutableArray<NamedTypeSymbol> _lazyInterfaces; 66internal sealed override ImmutableArray<NamedTypeSymbol> InterfacesNoUseSiteDiagnostics(ConsList<TypeSymbol> basesBeingResolved) 72return ImmutableArray<NamedTypeSymbol>.Empty; 76var acyclicInterfaces = MakeAcyclicInterfaces(basesBeingResolved, diagnostics); 77if (ImmutableInterlocked.InterlockedCompareExchange(ref _lazyInterfaces, acyclicInterfaces, default(ImmutableArray<NamedTypeSymbol>)).IsDefault) 255internal Tuple<NamedTypeSymbol, ImmutableArray<NamedTypeSymbol>> GetDeclaredBases(ConsList<TypeSymbol> basesBeingResolved) 275internal override ImmutableArray<NamedTypeSymbol> GetDeclaredInterfaces(ConsList<TypeSymbol> basesBeingResolved) 280private Tuple<NamedTypeSymbol, ImmutableArray<NamedTypeSymbol>> MakeDeclaredBases(ConsList<TypeSymbol> basesBeingResolved, BindingDiagnosticBag diagnostics) 285return new Tuple<NamedTypeSymbol, ImmutableArray<NamedTypeSymbol>>(null, ImmutableArray<NamedTypeSymbol>.Empty); 300Tuple<NamedTypeSymbol, ImmutableArray<NamedTypeSymbol>> one = MakeOneDeclaredBases(newBasesBeingResolved, decl, diagnostics); 304var partInterfaces = one.Item2; 401var baseInterfacesRO = baseInterfaces.ToImmutableAndFree(); 423return new Tuple<NamedTypeSymbol, ImmutableArray<NamedTypeSymbol>>(baseType, baseInterfacesRO); 438private Tuple<NamedTypeSymbol, ImmutableArray<NamedTypeSymbol>> MakeOneDeclaredBases(ConsList<TypeSymbol> newBasesBeingResolved, SingleTypeDeclaration decl, BindingDiagnosticBag diagnostics) 628return new Tuple<NamedTypeSymbol, ImmutableArray<NamedTypeSymbol>>(localBase, localInterfaces.ToImmutableAndFree()); 658private ImmutableArray<NamedTypeSymbol> MakeAcyclicInterfaces(ConsList<TypeSymbol> basesBeingResolved, BindingDiagnosticBag diagnostics) 665return ImmutableArray<NamedTypeSymbol>.Empty; 668var declaredInterfaces = GetDeclaredInterfaces(basesBeingResolved: basesBeingResolved);
Symbols\Source\SourceNamespaceSymbol.AliasesAndUsings.cs (41)
112public ImmutableArray<AliasAndExternAliasDirective> GetExternAliases(CSharpSyntaxNode declarationSyntax) 122return ImmutableArray<AliasAndExternAliasDirective>.Empty; 132return ImmutableArray<AliasAndExternAliasDirective>.Empty; 143public ImmutableArray<AliasAndUsingDirective> GetUsingAliases(CSharpSyntaxNode declarationSyntax, ConsList<TypeSymbol>? basesBeingResolved) 153return ImmutableArray<AliasAndUsingDirective>.Empty; 163return ImmutableArray<AliasAndUsingDirective>.Empty; 206public ImmutableArray<NamespaceOrTypeAndUsingDirective> GetUsingNamespacesOrTypes(CSharpSyntaxNode declarationSyntax, ConsList<TypeSymbol>? basesBeingResolved) 213var result = GetGlobalUsingNamespacesOrTypes(basesBeingResolved); 227return ImmutableArray<NamespaceOrTypeAndUsingDirective>.Empty; 248private ImmutableArray<NamespaceOrTypeAndUsingDirective> GetGlobalUsingNamespacesOrTypes(ConsList<TypeSymbol>? basesBeingResolved) 319var namespacesOrTypes = GetAliasesAndUsings(singleDeclaration).GetGlobalUsingNamespacesOrTypes(this, singleDeclaration.SyntaxReference, basesBeingResolved); 355var externAliases = GetAliasesAndUsings(singleDeclaration).GetExternAliases(this, singleDeclaration.SyntaxReference); 413internal ImmutableArray<AliasAndExternAliasDirective> GetExternAliases(SourceNamespaceSymbol declaringSymbol, CSharpSyntaxNode declarationSyntax) 418internal ImmutableArray<AliasAndExternAliasDirective> GetExternAliases(SourceNamespaceSymbol declaringSymbol, SyntaxReference declarationSyntax) 446var result = buildExternAliases(externAliasDirectives, declaringSymbol, diagnostics); 465static ImmutableArray<AliasAndExternAliasDirective> buildExternAliases( 510internal ImmutableArray<AliasAndUsingDirective> GetUsingAliases(SourceNamespaceSymbol declaringSymbol, CSharpSyntaxNode declarationSyntax, ConsList<TypeSymbol>? basesBeingResolved) 515internal ImmutableArray<AliasAndUsingDirective> GetGlobalUsingAliases(SourceNamespaceSymbol declaringSymbol, CSharpSyntaxNode declarationSyntax, ConsList<TypeSymbol>? basesBeingResolved) 530internal ImmutableArray<NamespaceOrTypeAndUsingDirective> GetUsingNamespacesOrTypes(SourceNamespaceSymbol declaringSymbol, CSharpSyntaxNode declarationSyntax, ConsList<TypeSymbol>? basesBeingResolved) 540internal ImmutableArray<NamespaceOrTypeAndUsingDirective> GetGlobalUsingNamespacesOrTypes(SourceNamespaceSymbol declaringSymbol, SyntaxReference declarationSyntax, ConsList<TypeSymbol>? basesBeingResolved) 623var externAliases = GetExternAliases(declaringSymbol, declarationSyntax); 625var globalUsingNamespacesOrTypes = ImmutableArray<NamespaceOrTypeAndUsingDirective>.Empty; 626var globalUsingAliases = ImmutableArray<AliasAndUsingDirective>.Empty; 863static PooledHashSet<NamespaceOrTypeSymbol> getOrCreateUniqueUsings(ref PooledHashSet<NamespaceOrTypeSymbol>? uniqueUsings, ImmutableArray<NamespaceOrTypeAndUsingDirective> globalUsingNamespacesOrTypes) 874static PooledHashSet<NamespaceOrTypeSymbol> getOrCreateUniqueGlobalUsingsNotInTree(ref PooledHashSet<NamespaceOrTypeSymbol>? uniqueUsings, ImmutableArray<NamespaceOrTypeAndUsingDirective> globalUsingNamespacesOrTypes, SyntaxTree tree) 885static ArrayBuilder<NamespaceOrTypeAndUsingDirective> getOrCreateUsingsBuilder(ref ArrayBuilder<NamespaceOrTypeAndUsingDirective>? usings, ImmutableArray<NamespaceOrTypeAndUsingDirective> globalUsingNamespacesOrTypes) 1086public static readonly ExternAliasesAndDiagnostics Empty = new ExternAliasesAndDiagnostics() { ExternAliases = ImmutableArray<AliasAndExternAliasDirective>.Empty, Diagnostics = ImmutableArray<Diagnostic>.Empty }; 1088public ImmutableArray<AliasAndExternAliasDirective> ExternAliases { get; init; } 1089public ImmutableArray<Diagnostic> Diagnostics { get; init; } 1097UsingAliases = ImmutableArray<AliasAndUsingDirective>.Empty, 1099UsingNamespacesOrTypes = ImmutableArray<NamespaceOrTypeAndUsingDirective>.Empty, 1103public ImmutableArray<AliasAndUsingDirective> UsingAliases { get; init; } 1105public ImmutableArray<NamespaceOrTypeAndUsingDirective> UsingNamespacesOrTypes { get; init; } 1123UsingNamespacesOrTypes = ImmutableArray<NamespaceOrTypeAndUsingDirective>.Empty, 1124Diagnostics = ImmutableArray<Diagnostic>.Empty, 1129public ImmutableArray<NamespaceOrTypeAndUsingDirective> UsingNamespacesOrTypes { get; init; } 1130public ImmutableArray<Diagnostic> Diagnostics { get; init; } 1141ImmutableArray<AliasAndExternAliasDirective>.Empty),
Symbols\Source\SourceNamespaceSymbol.cs (28)
30private ImmutableArray<Location> _locations; 31private Dictionary<ReadOnlyMemory<char>, ImmutableArray<NamespaceOrTypeSymbol>> _nameToMembersMap; 32private Dictionary<ReadOnlyMemory<char>, ImmutableArray<NamedTypeSymbol>> _nameToTypeMembersMap; 33private ImmutableArray<Symbol> _lazyAllMembers; 34private ImmutableArray<NamedTypeSymbol> _lazyTypeMembersUnordered; 88public override ImmutableArray<Location> Locations 124public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 127private ImmutableArray<SyntaxReference> ComputeDeclaringReferencesCore() 135internal override ImmutableArray<Symbol> GetMembersUnordered() 137var result = _lazyAllMembers; 149public override ImmutableArray<Symbol> GetMembers() 157var allMembers = this.GetMembersUnordered(); 171public override ImmutableArray<Symbol> GetMembers(ReadOnlyMemory<char> name) 173ImmutableArray<NamespaceOrTypeSymbol> members; 176: ImmutableArray<Symbol>.Empty; 179internal override ImmutableArray<NamedTypeSymbol> GetTypeMembersUnordered() 190public override ImmutableArray<NamedTypeSymbol> GetTypeMembers() 195public override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name) 197ImmutableArray<NamedTypeSymbol> members; 200: ImmutableArray<NamedTypeSymbol>.Empty; 203public override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name, int arity) 224private Dictionary<ReadOnlyMemory<char>, ImmutableArray<NamespaceOrTypeSymbol>> GetNameToMembersMap() 248private Dictionary<ReadOnlyMemory<char>, ImmutableArray<NamedTypeSymbol>> GetNameToTypeMembersMap() 264private Dictionary<ReadOnlyMemory<char>, ImmutableArray<NamespaceOrTypeSymbol>> MakeNameToMembersMap(BindingDiagnosticBag diagnostics) 282var result = new Dictionary<ReadOnlyMemory<char>, ImmutableArray<NamespaceOrTypeSymbol>>(builder.Count, ReadOnlyMemoryOfCharComparer.Instance); 291private static void CheckMembers(NamespaceSymbol @namespace, Dictionary<ReadOnlyMemory<char>, ImmutableArray<NamespaceOrTypeSymbol>> result, BindingDiagnosticBag diagnostics) 329var types = constituent.GetTypeMembers(symbol.Name, arity); 436foreach (var array in _nameToMembersMap.Values)
Symbols\Source\SourceNamespaceSymbol_Completion.cs (1)
55var members = this.GetMembers();
Symbols\Source\SourceOrdinaryMethodOrUserDefinedOperatorSymbol.cs (10)
19private ImmutableArray<MethodSymbol> _lazyExplicitInterfaceImplementations; 20private ImmutableArray<CustomModifier> _lazyRefCustomModifiers; 21private ImmutableArray<ParameterSymbol> _lazyParameters; 40protected MethodSymbol? MethodChecks(TypeWithAnnotations returnType, ImmutableArray<ParameterSymbol> parameters, BindingDiagnosticBag diagnostics) 85_lazyRefCustomModifiers = ImmutableArray<CustomModifier>.Empty; 95_lazyExplicitInterfaceImplementations = ImmutableArray<MethodSymbol>.Empty; 144_lazyExplicitInterfaceImplementations = ImmutableArray<MethodSymbol>.Empty; 176public sealed override ImmutableArray<ParameterSymbol> Parameters 202public sealed override ImmutableArray<MethodSymbol> ExplicitInterfaceImplementations 211public sealed override ImmutableArray<CustomModifier> RefCustomModifiers
Symbols\Source\SourceOrdinaryMethodSymbol.cs (25)
113private (TypeWithAnnotations ReturnType, ImmutableArray<ParameterSymbol> Parameters, ImmutableArray<TypeParameterConstraintClause> DeclaredConstraintsForOverrideOrImplementation) MakeParametersAndBindReturnType(BindingDiagnosticBag diagnostics) 125ImmutableArray<ParameterSymbol> parameters = ParameterHelpers.MakeParameters( 155ImmutableArray<TypeParameterConstraintClause> declaredConstraints = default; 187static void forceMethodTypeParameters(TypeWithAnnotations type, SourceOrdinaryMethodSymbol method, ImmutableArray<TypeParameterConstraintClause> declaredConstraints) 590var typeParameters1 = definition.TypeParameters; 598var typeParameters2 = implementation.TypeParameters; 599var indexedTypeParameters = IndexedTypeParameterSymbol.Take(arity); 938public sealed override ImmutableArray<TypeParameterSymbol> TypeParameters 939=> ImmutableArray<TypeParameterSymbol>.Empty; 941public sealed override ImmutableArray<ImmutableArray<TypeWithAnnotations>> GetTypeParameterConstraintTypes() 942=> ImmutableArray<ImmutableArray<TypeWithAnnotations>>.Empty; 944public sealed override ImmutableArray<TypeParameterConstraintKind> GetTypeParameterConstraintKinds() 945=> ImmutableArray<TypeParameterConstraintKind>.Empty; 989var typeParameters = MakeTypeParameters(syntax, diagnostics); 1019public sealed override ImmutableArray<TypeParameterSymbol> TypeParameters 1028public sealed override ImmutableArray<ImmutableArray<TypeWithAnnotations>> GetTypeParameterConstraintTypes() 1040var constraints = this.MakeTypeParameterConstraintTypes( 1058public sealed override ImmutableArray<TypeParameterConstraintKind> GetTypeParameterConstraintKinds() 1067var constraints = this.MakeTypeParameterConstraintKinds( 1091private ImmutableArray<TypeParameterSymbol> MakeTypeParameters(MethodDeclarationSyntax syntax, BindingDiagnosticBag diagnostics) 1095return ImmutableArray<TypeParameterSymbol>.Empty;
Symbols\Source\SourceOrdinaryMethodSymbolBase.cs (1)
79public abstract override ImmutableArray<TypeParameterSymbol> TypeParameters { get; }
Symbols\Source\SourceParameterSymbol.cs (10)
58ImmutableArray<CustomModifier> inModifiers = ParameterHelpers.ConditionallyCreateInModifiers(refKind, addRefReadOnlyModifier, context, declarationDiagnostics, syntax); 118internal override ParameterSymbol WithCustomModifiersAndParams(TypeSymbol newType, ImmutableArray<CustomModifier> newCustomModifiers, ImmutableArray<CustomModifier> newRefCustomModifiers, bool newIsParams) 123internal SourceParameterSymbol WithCustomModifiersAndParamsCore(TypeSymbol newType, ImmutableArray<CustomModifier> newCustomModifiers, ImmutableArray<CustomModifier> newRefCustomModifiers, bool newIsParams) 197public sealed override ImmutableArray<CSharpAttributeData> GetAttributes() 264public sealed override ImmutableArray<Location> Locations 265=> _location is null ? ImmutableArray<Location>.Empty : ImmutableArray.Create(_location); 274public sealed override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 279ImmutableArray<SyntaxReference>.Empty :
Symbols\Source\SourceParameterSymbolBase.cs (2)
132internal abstract ParameterSymbol WithCustomModifiersAndParams(TypeSymbol newType, ImmutableArray<CustomModifier> newCustomModifiers, ImmutableArray<CustomModifier> newRefCustomModifiers, bool newIsParams);
Symbols\Source\SourcePropertyAccessorSymbol.cs (26)
20private ImmutableArray<ParameterSymbol> _lazyParameters; 22private ImmutableArray<CustomModifier> _lazyRefCustomModifiers; 23private ImmutableArray<MethodSymbol> _lazyExplicitInterfaceImplementations; 130internal sealed override ImmutableArray<string> NotNullMembers 133internal sealed override ImmutableArray<string> NotNullWhenTrueMembers 136internal sealed override ImmutableArray<string> NotNullWhenFalseMembers 265_lazyRefCustomModifiers = ImmutableArray<CustomModifier>.Empty; 267var explicitInterfaceImplementations = ExplicitInterfaceImplementations; 325public sealed override ImmutableArray<ParameterSymbol> Parameters 334public sealed override ImmutableArray<TypeParameterSymbol> TypeParameters 336get { return ImmutableArray<TypeParameterSymbol>.Empty; } 339public sealed override ImmutableArray<ImmutableArray<TypeWithAnnotations>> GetTypeParameterConstraintTypes() 340=> ImmutableArray<ImmutableArray<TypeWithAnnotations>>.Empty; 342public sealed override ImmutableArray<TypeParameterConstraintKind> GetTypeParameterConstraintKinds() 343=> ImmutableArray<TypeParameterConstraintKind>.Empty; 394var modifiers = ImmutableArray.Create<CustomModifier>( 411public sealed override ImmutableArray<CustomModifier> RefCustomModifiers 602public sealed override ImmutableArray<MethodSymbol> ExplicitInterfaceImplementations 609ImmutableArray<MethodSymbol> explicitInterfaceImplementations; 613explicitInterfaceImplementations = ImmutableArray<MethodSymbol>.Empty; 622? ImmutableArray<MethodSymbol>.Empty 759private ImmutableArray<ParameterSymbol> ComputeParameters() 762var propertyParameters = _property.Parameters; 768return ImmutableArray<ParameterSymbol>.Empty;
Symbols\Source\SourcePropertyClonedParameterSymbolForAccessors.cs (2)
25internal override ParameterSymbol WithCustomModifiersAndParams(TypeSymbol newType, ImmutableArray<CustomModifier> newCustomModifiers, ImmutableArray<CustomModifier> newRefCustomModifiers, bool newIsParams)
Symbols\Source\SourcePropertySymbol.cs (5)
553protected override (TypeWithAnnotations Type, ImmutableArray<ParameterSymbol> Parameters) MakeParametersAndBindType(BindingDiagnosticBag diagnostics) 599private static ImmutableArray<ParameterSymbol> MakeParameters( 604return ImmutableArray<ParameterSymbol>.Empty; 640private ImmutableArray<ParameterSymbol> ComputeParameters(Binder binder, CSharpSyntaxNode syntax, BindingDiagnosticBag diagnostics) 643var parameters = MakeParameters(binder, this, parameterSyntaxOpt, diagnostics, addRefReadOnlyModifier: IsVirtual || IsAbstract);
Symbols\Source\SourcePropertySymbolBase.cs (26)
49private ImmutableArray<CustomModifier> _lazyRefCustomModifiers; 55private ImmutableArray<PropertySymbol> _lazyExplicitInterfaceImplementations; 60private ImmutableArray<ParameterSymbol> _lazyParameters; 120_lazyExplicitInterfaceImplementations = ImmutableArray<PropertySymbol>.Empty; 204_lazyRefCustomModifiers = ImmutableArray<CustomModifier>.Empty; 249_lazyRefCustomModifiers = _refKind != RefKind.None ? overriddenOrImplementedProperty.RefCustomModifiers : ImmutableArray<CustomModifier>.Empty; 278ImmutableArray<PropertySymbol>.Empty : 286internal sealed override ImmutableArray<string> NotNullMembers => 287GetDecodedWellKnownAttributeData()?.NotNullMembers ?? ImmutableArray<string>.Empty; 289internal sealed override ImmutableArray<string> NotNullWhenTrueMembers => 290GetDecodedWellKnownAttributeData()?.NotNullWhenTrueMembers ?? ImmutableArray<string>.Empty; 292internal sealed override ImmutableArray<string> NotNullWhenFalseMembers => 293GetDecodedWellKnownAttributeData()?.NotNullWhenFalseMembers ?? ImmutableArray<string>.Empty; 526public override ImmutableArray<Location> Locations 534public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 644public sealed override ImmutableArray<ParameterSymbol> Parameters 656public sealed override ImmutableArray<PropertySymbol> ExplicitInterfaceImplementations 673public sealed override ImmutableArray<CustomModifier> RefCustomModifiers 1324public sealed override ImmutableArray<CSharpAttributeData> GetAttributes() 1667internal ImmutableArray<SourceAttributeData> MemberNotNullAttributeIfExists 1670internal ImmutableArray<SourceAttributeData> MemberNotNullWhenAttributeIfExists 1678private ImmutableArray<SourceAttributeData> FindAttributes(AttributeDescription attributeDescription) 1681internal override void PostDecodeWellKnownAttributes(ImmutableArray<CSharpAttributeData> boundAttributes, ImmutableArray<AttributeSyntax> allAttributeSyntaxNodes, BindingDiagnosticBag diagnostics, AttributeLocation symbolPart, WellKnownAttributeData decodedData) 1760var parameters = this.Parameters; 1866protected abstract (TypeWithAnnotations Type, ImmutableArray<ParameterSymbol> Parameters) MakeParametersAndBindType(BindingDiagnosticBag diagnostics);
Symbols\Source\SourceSimpleParameterSymbol.cs (5)
26ImmutableArray<Location> locations) 78public override ImmutableArray<CustomModifier> RefCustomModifiers 80get { return ImmutableArray<CustomModifier>.Empty; } 123internal override ImmutableArray<int> InterpolatedStringHandlerArgumentIndexes => ImmutableArray<int>.Empty;
Symbols\Source\SourceTypeParameterSymbol.cs (34)
25private readonly ImmutableArray<SyntaxReference> _syntaxRefs; 26private readonly ImmutableArray<Location> _locations; 34protected SourceTypeParameterSymbolBase(string name, int ordinal, ImmutableArray<Location> locations, ImmutableArray<SyntaxReference> syntaxRefs) 44public override ImmutableArray<Location> Locations 52public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 60internal ImmutableArray<SyntaxReference> SyntaxReferences 92internal override ImmutableArray<TypeWithAnnotations> GetConstraintTypes(ConsList<TypeParameterSymbol> inProgress) 95return (bounds != null) ? bounds.ConstraintTypes : ImmutableArray<TypeWithAnnotations>.Empty; 98internal override ImmutableArray<NamedTypeSymbol> GetInterfaces(ConsList<TypeParameterSymbol> inProgress) 101return (bounds != null) ? bounds.Interfaces : ImmutableArray<NamedTypeSymbol>.Empty; 116internal ImmutableArray<SyntaxList<AttributeListSyntax>> MergedAttributeDeclarationSyntaxLists 166public sealed override ImmutableArray<CSharpAttributeData> GetAttributes() 216protected abstract ImmutableArray<TypeParameterSymbol> ContainerTypeParameters 256var constraintTypes = this.ConstraintTypesNoUseSiteDiagnostics; 363var constraintTypes = this.ConstraintTypesNoUseSiteDiagnostics; 464public SourceTypeParameterSymbol(SourceNamedTypeSymbol owner, string name, int ordinal, VarianceKind varianceKind, ImmutableArray<Location> locations, ImmutableArray<SyntaxReference> syntaxRefs) 583protected override ImmutableArray<TypeParameterSymbol> ContainerTypeParameters 590var constraintTypes = _owner.GetTypeParameterConstraintTypes(this.Ordinal); 609public SourceMethodTypeParameterSymbol(SourceMethodSymbol owner, string name, int ordinal, ImmutableArray<Location> locations, ImmutableArray<SyntaxReference> syntaxRefs) 725protected override ImmutableArray<TypeParameterSymbol> ContainerTypeParameters 732var constraints = _owner.GetTypeParameterConstraintTypes(); 733var constraintTypes = constraints.IsEmpty ? ImmutableArray<TypeWithAnnotations>.Empty : constraints[Ordinal]; 745var constraintKinds = _owner.GetTypeParameterConstraintKinds(); 791var overriddenTypeParameters = overriddenMethod.TypeParameters; 792var overridingTypeParameters = _overridingMethod.TypeParameters; 851var explicitImplementations = overridingMethod.ExplicitInterfaceImplementations; 870public SourceOverridingMethodTypeParameterSymbol(OverriddenMethodTypeParameterMapBase map, string name, int ordinal, ImmutableArray<Location> locations, ImmutableArray<SyntaxReference> syntaxRefs) 982protected override ImmutableArray<TypeParameterSymbol> ContainerTypeParameters 997var constraintTypes = map.SubstituteTypes(typeParameter.ConstraintTypesNoUseSiteDiagnostics);
Symbols\Source\SourceUserDefinedConversionSymbol.cs (1)
127protected override (TypeWithAnnotations ReturnType, ImmutableArray<ParameterSymbol> Parameters) MakeParametersAndBindReturnType(BindingDiagnosticBag diagnostics)
Symbols\Source\SourceUserDefinedOperatorSymbol.cs (1)
127protected override (TypeWithAnnotations ReturnType, ImmutableArray<ParameterSymbol> Parameters) MakeParametersAndBindReturnType(BindingDiagnosticBag diagnostics)
Symbols\Source\SourceUserDefinedOperatorSymbolBase.cs (11)
219protected (TypeWithAnnotations ReturnType, ImmutableArray<ParameterSymbol> Parameters) MakeParametersAndBindReturnType(BaseMethodDeclarationSyntax declarationSyntax, TypeSyntax returnTypeSyntax, BindingDiagnosticBag diagnostics) 222ImmutableArray<ParameterSymbol> parameters; 290protected abstract (TypeWithAnnotations ReturnType, ImmutableArray<ParameterSymbol> Parameters) MakeParametersAndBindReturnType(BindingDiagnosticBag diagnostics); 777public sealed override ImmutableArray<TypeParameterSymbol> TypeParameters 779get { return ImmutableArray<TypeParameterSymbol>.Empty; } 782public sealed override ImmutableArray<ImmutableArray<TypeWithAnnotations>> GetTypeParameterConstraintTypes() 783=> ImmutableArray<ImmutableArray<TypeWithAnnotations>>.Empty; 785public sealed override ImmutableArray<TypeParameterConstraintKind> GetTypeParameterConstraintKinds() 786=> ImmutableArray<TypeParameterConstraintKind>.Empty;
Symbols\Source\SynthesizedAttributeData.cs (10)
17public static SynthesizedAttributeData Create(CSharpCompilation compilation, MethodSymbol wellKnownMember, ImmutableArray<TypedConstant> arguments, ImmutableArray<KeyValuePair<string, TypedConstant>> namedArguments) 31private readonly ImmutableArray<TypedConstant> _arguments; 32private readonly ImmutableArray<KeyValuePair<string, TypedConstant>> _namedArguments; 34internal FromMethodAndArguments(CSharpCompilation compilation, MethodSymbol wellKnownMember, ImmutableArray<TypedConstant> arguments, ImmutableArray<KeyValuePair<string, TypedConstant>> namedArguments) 49protected internal override ImmutableArray<TypedConstant> CommonConstructorArguments => _arguments; 50protected internal override ImmutableArray<KeyValuePair<string, TypedConstant>> CommonNamedArguments => _namedArguments; 79protected internal override ImmutableArray<TypedConstant> CommonConstructorArguments => _original.CommonConstructorArguments; 80protected internal override ImmutableArray<KeyValuePair<string, TypedConstant>> CommonNamedArguments => _original.CommonNamedArguments;
Symbols\Source\ThisParameterSymbol.cs (8)
18public sealed override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 20get { return ImmutableArray<SyntaxReference>.Empty; } 88public sealed override ImmutableArray<CustomModifier> RefCustomModifiers 90get { return ImmutableArray<CustomModifier>.Empty; } 119internal sealed override ImmutableArray<int> InterpolatedStringHandlerArgumentIndexes => ImmutableArray<int>.Empty; 166public override ImmutableArray<Location> Locations 168get { return _containingMethod is not null ? _containingMethod.Locations : ImmutableArray<Location>.Empty; }
Symbols\Source\TypeParameterBuilder.cs (2)
54private static ImmutableArray<Location> ToLocations(IList<TypeParameterBuilder> builders) 65private static ImmutableArray<SyntaxReference> ToSyntaxRefs(IList<TypeParameterBuilder> builders)
Symbols\Source\TypeParameterConstraintClause.cs (11)
76ImmutableArray<TypeWithAnnotations>.Empty); 80ImmutableArray<TypeWithAnnotations>.Empty); 84ImmutableArray<TypeWithAnnotations> constraintTypes) 104ImmutableArray<TypeWithAnnotations> constraintTypes) 130public readonly ImmutableArray<TypeWithAnnotations> ConstraintTypes; 133ImmutableArray<TypeParameterSymbol> typeParameters, 134ImmutableArray<TypeParameterConstraintClause> constraintClauses) 147static bool isValueType(TypeParameterSymbol thisTypeParameter, ImmutableArray<TypeParameterConstraintClause> constraintClauses, SmallDictionary<TypeParameterSymbol, bool> isValueTypeMap, ConsList<TypeParameterSymbol> inProgress) 198ImmutableArray<TypeParameterSymbol> typeParameters, 199ImmutableArray<TypeParameterConstraintClause> constraintClauses) 212static bool isReferenceTypeFromConstraintTypes(TypeParameterSymbol thisTypeParameter, ImmutableArray<TypeParameterConstraintClause> constraintClauses,
Symbols\Source\TypeParameterInfo.cs (8)
16public ImmutableArray<TypeParameterSymbol> LazyTypeParameters; 22public ImmutableArray<ImmutableArray<TypeWithAnnotations>> LazyTypeParameterConstraintTypes; 28public ImmutableArray<TypeParameterConstraintKind> LazyTypeParameterConstraintKinds; 32LazyTypeParameters = ImmutableArray<TypeParameterSymbol>.Empty, 33LazyTypeParameterConstraintTypes = ImmutableArray<ImmutableArray<TypeWithAnnotations>>.Empty, 34LazyTypeParameterConstraintKinds = ImmutableArray<TypeParameterConstraintKind>.Empty,
Symbols\SubstitutedEventSymbol.cs (4)
54public override ImmutableArray<CSharpAttributeData> GetAttributes() 92private ImmutableArray<EventSymbol> _lazyExplicitInterfaceImplementations; 96public override ImmutableArray<EventSymbol> ExplicitInterfaceImplementations 105default(ImmutableArray<EventSymbol>));
Symbols\SubstitutedFieldSymbol.cs (2)
77public override ImmutableArray<CSharpAttributeData> GetAttributes() 108public override ImmutableArray<CustomModifier> RefCustomModifiers =>
Symbols\SubstitutedMethodSymbol.cs (19)
30private ImmutableArray<ParameterSymbol> _lazyParameters; 32private ImmutableArray<TypeParameterSymbol> _lazyTypeParameters; 35private ImmutableArray<MethodSymbol> _lazyExplicitInterfaceImplementations; 92public sealed override ImmutableArray<TypeParameterSymbol> TypeParameters 108ImmutableArray<TypeParameterSymbol> typeParameters; 122ImmutableInterlocked.InterlockedCompareExchange(ref _lazyTypeParameters, typeParameters, default(ImmutableArray<TypeParameterSymbol>)); 134public override ImmutableArray<TypeWithAnnotations> TypeArgumentsWithAnnotations 206public sealed override ImmutableArray<CSharpAttributeData> GetAttributes() 211public override ImmutableArray<CSharpAttributeData> GetReturnTypeAttributes() 241public sealed override ImmutableArray<CustomModifier> RefCustomModifiers 249public sealed override ImmutableArray<ParameterSymbol> Parameters 267public sealed override ImmutableArray<MethodSymbol> ExplicitInterfaceImplementations 273return ImmutableArray<MethodSymbol>.Empty; 281default(ImmutableArray<MethodSymbol>)); 332private ImmutableArray<ParameterSymbol> SubstituteParameters() 334var unsubstitutedParameters = OriginalDefinition.Parameters; 339return ImmutableArray<ParameterSymbol>.Empty; 409var typeArguments = method.TypeArgumentsWithAnnotations; 410var typeParameters = method.OriginalDefinition.TypeParameters;
Symbols\SubstitutedNamedTypeSymbol.cs (29)
41private ImmutableArray<TypeParameterSymbol> _lazyTypeParameters; 49private ConcurrentCache<string, ImmutableArray<Symbol>> _lazyMembersByNameCache; 51private ImmutableArray<Symbol> _lazyMembers; 89public sealed override ImmutableArray<TypeParameterSymbol> TypeParameters 105ImmutableArray<TypeParameterSymbol> typeParameters; 118ImmutableInterlocked.InterlockedCompareExchange(ref _lazyTypeParameters, typeParameters, default(ImmutableArray<TypeParameterSymbol>)); 150internal sealed override ImmutableArray<NamedTypeSymbol> GetDeclaredInterfaces(ConsList<TypeSymbol> basesBeingResolved) 152return _unbound ? ImmutableArray<NamedTypeSymbol>.Empty : Map.SubstituteNamedTypes(OriginalDefinition.GetDeclaredInterfaces(basesBeingResolved)); 175internal sealed override ImmutableArray<NamedTypeSymbol> InterfacesNoUseSiteDiagnostics(ConsList<TypeSymbol> basesBeingResolved) 177return _unbound ? ImmutableArray<NamedTypeSymbol>.Empty : Map.SubstituteNamedTypes(OriginalDefinition.InterfacesNoUseSiteDiagnostics(basesBeingResolved)); 180internal override ImmutableArray<NamedTypeSymbol> GetInterfacesToEmit() 205public sealed override ImmutableArray<CSharpAttributeData> GetAttributes() 210internal sealed override ImmutableArray<NamedTypeSymbol> GetTypeMembersUnordered() 215public sealed override ImmutableArray<NamedTypeSymbol> GetTypeMembers() 220public sealed override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name) 225public sealed override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name, int arity) 232public sealed override ImmutableArray<Symbol> GetMembers() 262var result = builder.ToImmutableAndFree(); 271var existingMembers = builder.ToImmutableAndFree(); 288internal sealed override ImmutableArray<Symbol> GetMembersUnordered() 315public sealed override ImmutableArray<Symbol> GetMembers(string name) 319ImmutableArray<Symbol> result; 329private ImmutableArray<Symbol> GetMembersWorker(string name) 338var originalMembers = OriginalDefinition.GetMembers(name); 350var substitutedMembers = builder.ToImmutableAndFree(); 354void cacheResult(ImmutableArray<Symbol> result) 360(_lazyMembersByNameCache = new ConcurrentCache<string, ImmutableArray<Symbol>>(8)); 388internal override ImmutableArray<Symbol> GetEarlyAttributeDecodingMembers() 395internal override ImmutableArray<Symbol> GetEarlyAttributeDecodingMembers(string name)
Symbols\SubstitutedParameterSymbol.cs (2)
68internal override ImmutableArray<int> InterpolatedStringHandlerArgumentIndexes => _underlyingParameter.InterpolatedStringHandlerArgumentIndexes; 72public override ImmutableArray<CustomModifier> RefCustomModifiers
Symbols\SubstitutedPropertySymbol.cs (10)
17private ImmutableArray<ParameterSymbol> _lazyParameters; 63public override ImmutableArray<CSharpAttributeData> GetAttributes() 68public override ImmutableArray<CustomModifier> RefCustomModifiers 73public override ImmutableArray<ParameterSymbol> Parameters 79ImmutableInterlocked.InterlockedCompareExchange(ref _lazyParameters, SubstituteParameters(), default(ImmutableArray<ParameterSymbol>)); 110private ImmutableArray<PropertySymbol> _lazyExplicitInterfaceImplementations; 114public override ImmutableArray<PropertySymbol> ExplicitInterfaceImplementations 123default(ImmutableArray<PropertySymbol>)); 147private ImmutableArray<ParameterSymbol> SubstituteParameters() 149var unsubstitutedParameters = OriginalDefinition.Parameters;
Symbols\SubstitutedTypeParameterSymbol.cs (2)
99internal override ImmutableArray<TypeWithAnnotations> GetConstraintTypes(ConsList<TypeParameterSymbol> inProgress) 170internal override ImmutableArray<NamedTypeSymbol> GetInterfaces(ConsList<TypeParameterSymbol> inProgress)
Symbols\Symbol.cs (17)
317ImmutableArray<Location> ISymbolInternal.Locations => this.Locations; 417public abstract ImmutableArray<Location> Locations { get; } 424var locations = this.Locations; 488public abstract ImmutableArray<SyntaxReference> DeclaringSyntaxReferences { get; } 494internal static ImmutableArray<SyntaxReference> GetDeclaringSyntaxReferenceHelper<TNode>(ImmutableArray<Location> locations) 499return ImmutableArray<SyntaxReference>.Empty; 934var declaringReferences = this.DeclaringSyntaxReferences; 1243internal bool DeriveUseSiteInfoFromParameters(ref UseSiteInfo<AssemblySymbol> result, ImmutableArray<ParameterSymbol> parameters) 1266internal bool DeriveUseSiteInfoFromCustomModifiers(ref UseSiteInfo<AssemblySymbol> result, ImmutableArray<CustomModifier> customModifiers, AllowedRequiredModifierType allowedRequiredModifierType) 1329internal static bool GetUnificationUseSiteDiagnosticRecursive<T>(ref DiagnosticInfo result, ImmutableArray<T> types, Symbol owner, ref HashSet<TypeSymbol> checkedTypes) where T : TypeSymbol 1342internal static bool GetUnificationUseSiteDiagnosticRecursive(ref DiagnosticInfo result, ImmutableArray<TypeWithAnnotations> types, Symbol owner, ref HashSet<TypeSymbol> checkedTypes) 1355internal static bool GetUnificationUseSiteDiagnosticRecursive(ref DiagnosticInfo result, ImmutableArray<CustomModifier> modifiers, Symbol owner, ref HashSet<TypeSymbol> checkedTypes) 1368internal static bool GetUnificationUseSiteDiagnosticRecursive(ref DiagnosticInfo result, ImmutableArray<ParameterSymbol> parameters, Symbol owner, ref HashSet<TypeSymbol> checkedTypes) 1382internal static bool GetUnificationUseSiteDiagnosticRecursive(ref DiagnosticInfo result, ImmutableArray<TypeParameterSymbol> typeParameters, Symbol owner, ref HashSet<TypeSymbol> checkedTypes) 1461public ImmutableArray<SymbolDisplayPart> ToDisplayParts(SymbolDisplayFormat format = null) 1474public ImmutableArray<SymbolDisplayPart> ToMinimalDisplayParts(
Symbols\Symbol_Attributes.cs (27)
25/// Gets the attributes for this symbol. Returns an empty <see cref="ImmutableArray&lt;AttributeData&gt;"/> if 28public virtual ImmutableArray<CSharpAttributeData> GetAttributes() 35return ImmutableArray<CSharpAttributeData>.Empty; 260internal virtual void PostDecodeWellKnownAttributes(ImmutableArray<CSharpAttributeData> boundAttributes, ImmutableArray<AttributeSyntax> allAttributeSyntaxNodes, BindingDiagnosticBag diagnostics, AttributeLocation symbolPart, WellKnownAttributeData decodedData) 312ImmutableArray<Binder> binders; 314ImmutableArray<AttributeSyntax> attributesToBind = this.GetAttributesToBind(attributesSyntaxLists, symbolPart, diagnostics, compilation, attributeMatchesOpt, binderOpt, out binders); 318ImmutableArray<CSharpAttributeData> boundAttributes; 349ImmutableArray<NamedTypeSymbol> boundAttributeTypes = attributeTypesBuilder.AsImmutableOrNull(); 393boundAttributes = ImmutableArray<CSharpAttributeData>.Empty; 425Binder.CheckRequiredMembersInObjectInitializer(ctor, ImmutableArray<BoundExpression>.CastUp(boundAttribute.NamedArguments), boundAttribute.Syntax, diagnostics); 442void removeObsoleteDiagnosticsForForwardedTypes(ImmutableArray<CSharpAttributeData> boundAttributes, ImmutableArray<AttributeSyntax> attributesToBind, ref BindingDiagnosticBag diagnostics) 540protected ImmutableArray<(CSharpAttributeData, BoundAttribute)> BindAttributes(OneOrMany<SyntaxList<AttributeListSyntax>> attributeDeclarations, Binder? rootBinder) 562private void RecordPresenceOfBadAttributes(ImmutableArray<CSharpAttributeData> boundAttributes) 584private ImmutableArray<AttributeSyntax> GetAttributesToBind( 591out ImmutableArray<Binder> binders) 658binders = ImmutableArray<Binder>.Empty; 659return ImmutableArray<AttributeSyntax>.Empty; 766ImmutableArray<Binder> binders, 767ImmutableArray<NamedTypeSymbol> boundAttributeTypes, 768ImmutableArray<AttributeSyntax> attributesToBind, 814private void EarlyDecodeWellKnownAttributeTypes(ImmutableArray<NamedTypeSymbol> attributeTypes, ImmutableArray<AttributeSyntax> attributeSyntaxList) 838ImmutableArray<Binder> binders, 839ImmutableArray<AttributeSyntax> attributeSyntaxList, 840ImmutableArray<CSharpAttributeData> boundAttributes,
Symbols\SymbolDistinguisher.cs (2)
31private ImmutableArray<string> _lazyDescriptions; 165ImmutableArray<SyntaxReference> syntaxReferences = unwrappedSymbol.DeclaringSyntaxReferences;
Symbols\SymbolExtensions.cs (33)
33public static NamedTypeSymbol ConstructIfGeneric(this NamedTypeSymbol type, ImmutableArray<TypeWithAnnotations> typeArguments) 241public static bool IsContainingSymbolOfAllTypeParameters(this Symbol containingSymbol, ImmutableArray<TypeSymbol> types) 488out ImmutableArray<CustomModifier> refCustomModifiers) 496refCustomModifiers = ImmutableArray<CustomModifier>.Empty; 514refCustomModifiers = ImmutableArray<CustomModifier>.Empty; 520refCustomModifiers = ImmutableArray<CustomModifier>.Empty; 531refCustomModifiers = ImmutableArray<CustomModifier>.Empty; 693private static ImmutableArray<TISymbol> GetPublicSymbols<TISymbol>(this ImmutableArray<Symbol> symbols) 704internal static ImmutableArray<ISymbol> GetPublicSymbols(this ImmutableArray<Symbol> symbols) 709internal static ImmutableArray<IPropertySymbol> GetPublicSymbols(this ImmutableArray<PropertySymbol> symbols) 714internal static ImmutableArray<ITypeSymbol> GetPublicSymbols(this ImmutableArray<TypeSymbol> symbols) 719internal static ImmutableArray<INamedTypeSymbol> GetPublicSymbols(this ImmutableArray<NamedTypeSymbol> symbols) 724internal static ImmutableArray<ILocalSymbol> GetPublicSymbols(this ImmutableArray<LocalSymbol> symbols) 729internal static ImmutableArray<IEventSymbol> GetPublicSymbols(this ImmutableArray<EventSymbol> symbols) 734internal static ImmutableArray<ITypeParameterSymbol> GetPublicSymbols(this ImmutableArray<TypeParameterSymbol> symbols) 739internal static ImmutableArray<IParameterSymbol> GetPublicSymbols(this ImmutableArray<ParameterSymbol> symbols) 744internal static ImmutableArray<IMethodSymbol> GetPublicSymbols(this ImmutableArray<MethodSymbol> symbols) 749internal static ImmutableArray<IAssemblySymbol> GetPublicSymbols(this ImmutableArray<AssemblySymbol> symbols) 754internal static ImmutableArray<IFieldSymbol> GetPublicSymbols(this ImmutableArray<FieldSymbol> symbols) 759internal static ImmutableArray<INamespaceSymbol> GetPublicSymbols(this ImmutableArray<NamespaceSymbol> symbols)
Symbols\Synthesized\GeneratedLabelSymbol.cs (2)
47public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 51return ImmutableArray<SyntaxReference>.Empty;
Symbols\Synthesized\GeneratedNames.cs (1)
545internal static string MakeFileTypeMetadataNamePrefix(string filePath, ImmutableArray<byte> checksumOpt)
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListConstructor.cs (1)
18public override ImmutableArray<ParameterSymbol> Parameters { get; }
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListEnumeratorConstructor.cs (1)
18public override ImmutableArray<ParameterSymbol> Parameters { get; }
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListEnumeratorTypeSymbol.cs (25)
19private readonly ImmutableArray<NamedTypeSymbol> _interfaces; 20private readonly ImmutableArray<Symbol> _members; 29var typeArgs = containingType.TypeArgumentsWithAnnotationsNoUseSiteDiagnostics; 122public override ImmutableArray<TypeParameterSymbol> TypeParameters => ImmutableArray<TypeParameterSymbol>.Empty; 150public override ImmutableArray<Location> Locations => ImmutableArray<Location>.Empty; 152public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences => ImmutableArray<SyntaxReference>.Empty; 160internal override ImmutableArray<TypeWithAnnotations> TypeArgumentsWithAnnotationsNoUseSiteDiagnostics => GetTypeParametersAsTypeArguments(); 200public override ImmutableArray<Symbol> GetMembers() => _members; 202public override ImmutableArray<Symbol> GetMembers(string name) => GetMembers().WhereAsArray(static (m, name) => m.Name == name, name); 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; 220internal override ImmutableArray<NamedTypeSymbol> GetDeclaredInterfaces(ConsList<TypeSymbol> basesBeingResolved) => _interfaces; 222internal override ImmutableArray<Symbol> GetEarlyAttributeDecodingMembers() => throw ExceptionUtilities.Unreachable(); 224internal override ImmutableArray<Symbol> GetEarlyAttributeDecodingMembers(string name) => throw ExceptionUtilities.Unreachable(); 228internal override ImmutableArray<NamedTypeSymbol> GetInterfacesToEmit() => _interfaces; 259internal override ImmutableArray<NamedTypeSymbol> InterfacesNoUseSiteDiagnostics(ConsList<TypeSymbol>? basesBeingResolved = null) => _interfaces;
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListProperty.cs (6)
37public override ImmutableArray<CustomModifier> RefCustomModifiers => ImmutableArray<CustomModifier>.Empty; 39public override ImmutableArray<ParameterSymbol> Parameters { get; } 47public override ImmutableArray<PropertySymbol> ExplicitInterfaceImplementations => ImmutableArray.Create(_interfaceProperty); 51public override ImmutableArray<Location> Locations => _containingType.Locations; 53public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences => _containingType.DeclaringSyntaxReferences;
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeParameterSymbol.cs (6)
47public override ImmutableArray<Location> Locations => _containingType.Locations; 49public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences => _containingType.DeclaringSyntaxReferences; 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 (22)
257private readonly ImmutableArray<NamedTypeSymbol> _interfaces; 258private readonly ImmutableArray<Symbol> _members; 273var typeArgs = TypeArgumentsWithAnnotationsNoUseSiteDiagnostics; 799public override ImmutableArray<TypeParameterSymbol> TypeParameters { get; } 827public override ImmutableArray<Location> Locations => ImmutableArray<Location>.Empty; 829public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences => ImmutableArray<SyntaxReference>.Empty; 837internal override ImmutableArray<TypeWithAnnotations> TypeArgumentsWithAnnotationsNoUseSiteDiagnostics => GetTypeParametersAsTypeArguments(); 877public override ImmutableArray<Symbol> GetMembers() => _members; 879public override ImmutableArray<Symbol> GetMembers(string name) => GetMembers().WhereAsArray(static (m, name) => m.Name == name, name); 881public override ImmutableArray<NamedTypeSymbol> GetTypeMembers() 884: ImmutableArray<NamedTypeSymbol>.Empty; 886public override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name, int arity) 889public override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name) 896internal override ImmutableArray<string> GetAppliedConditionalSymbols() => ImmutableArray<string>.Empty; 902internal override ImmutableArray<NamedTypeSymbol> GetDeclaredInterfaces(ConsList<TypeSymbol> basesBeingResolved) => _interfaces; 904internal override ImmutableArray<Symbol> GetEarlyAttributeDecodingMembers() => throw ExceptionUtilities.Unreachable(); 906internal override ImmutableArray<Symbol> GetEarlyAttributeDecodingMembers(string name) => throw ExceptionUtilities.Unreachable(); 910internal override ImmutableArray<NamedTypeSymbol> GetInterfacesToEmit() => _interfaces; 947internal override ImmutableArray<NamedTypeSymbol> InterfacesNoUseSiteDiagnostics(ConsList<TypeSymbol>? basesBeingResolved = null) => _interfaces;
Symbols\Synthesized\Records\SynthesizedPrimaryConstructor.cs (2)
157internal override void PostDecodeWellKnownAttributes(ImmutableArray<CSharpAttributeData> boundAttributes, ImmutableArray<AttributeSyntax> allAttributeSyntaxNodes, BindingDiagnosticBag diagnostics, AttributeLocation symbolPart, WellKnownAttributeData decodedData)
Symbols\Synthesized\Records\SynthesizedPrimaryConstructorParameterBackingFieldSymbol.cs (3)
42public override ImmutableArray<Location> Locations 47public override ImmutableArray<CustomModifier> RefCustomModifiers => ImmutableArray<CustomModifier>.Empty;
Symbols\Synthesized\Records\SynthesizedRecordBaseEquals.cs (1)
25protected override (TypeWithAnnotations ReturnType, ImmutableArray<ParameterSymbol> Parameters) MakeParametersAndBindReturnType(BindingDiagnosticBag diagnostics)
Symbols\Synthesized\Records\SynthesizedRecordClone.cs (3)
96protected override (TypeWithAnnotations ReturnType, ImmutableArray<ParameterSymbol> Parameters) MakeParametersAndBindReturnType(BindingDiagnosticBag diagnostics) 101Parameters: ImmutableArray<ParameterSymbol>.Empty); 120var members = ContainingType.InstanceConstructors;
Symbols\Synthesized\Records\SynthesizedRecordCopyCtor.cs (1)
34public override ImmutableArray<ParameterSymbol> Parameters { get; }
Symbols\Synthesized\Records\SynthesizedRecordDeconstruct.cs (5)
16private readonly ImmutableArray<Symbol> _positionalMembers; 21ImmutableArray<Symbol> positionalMembers, 31protected override (TypeWithAnnotations ReturnType, ImmutableArray<ParameterSymbol> Parameters) MakeParametersAndBindReturnType(BindingDiagnosticBag diagnostics) 36Parameters: _ctor.Parameters.SelectAsArray<ParameterSymbol, ImmutableArray<Location>, ParameterSymbol>( 98private static bool IsReadOnly(SourceMemberContainerTypeSymbol containingType, ImmutableArray<Symbol> positionalMembers)
Symbols\Synthesized\Records\SynthesizedRecordEqualityContractProperty.cs (6)
52public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences => ImmutableArray<SyntaxReference>.Empty; 80protected override (TypeWithAnnotations Type, ImmutableArray<ParameterSymbol> Parameters) MakeParametersAndBindType(BindingDiagnosticBag diagnostics) 83ImmutableArray<ParameterSymbol>.Empty); 167public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences => ImmutableArray<SyntaxReference>.Empty;
Symbols\Synthesized\Records\SynthesizedRecordEqualityOperatorBase.cs (1)
64protected sealed override (TypeWithAnnotations ReturnType, ImmutableArray<ParameterSymbol> Parameters) MakeParametersAndBindReturnType(BindingDiagnosticBag diagnostics)
Symbols\Synthesized\Records\SynthesizedRecordEquals.cs (1)
31protected override (TypeWithAnnotations ReturnType, ImmutableArray<ParameterSymbol> Parameters)
Symbols\Synthesized\Records\SynthesizedRecordGetHashCode.cs (2)
29protected override (TypeWithAnnotations ReturnType, ImmutableArray<ParameterSymbol> Parameters) 35Parameters: ImmutableArray<ParameterSymbol>.Empty);
Symbols\Synthesized\Records\SynthesizedRecordObjEquals.cs (1)
26protected override (TypeWithAnnotations ReturnType, ImmutableArray<ParameterSymbol> Parameters)
Symbols\Synthesized\Records\SynthesizedRecordOrdinaryMethod.cs (9)
41protected abstract (TypeWithAnnotations ReturnType, ImmutableArray<ParameterSymbol> Parameters) MakeParametersAndBindReturnType(BindingDiagnosticBag diagnostics); 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\SynthesizedRecordPrintMembers.cs (2)
89protected override (TypeWithAnnotations ReturnType, ImmutableArray<ParameterSymbol> Parameters) MakeParametersAndBindReturnType(BindingDiagnosticBag diagnostics) 121ImmutableArray<Symbol> printableMembers = ContainingType.GetMembers().WhereAsArray(m => isPrintable(m));
Symbols\Synthesized\Records\SynthesizedRecordPropertySymbol.cs (2)
93protected override (TypeWithAnnotations Type, ImmutableArray<ParameterSymbol> Parameters) MakeParametersAndBindType(BindingDiagnosticBag diagnostics) 96ImmutableArray<ParameterSymbol>.Empty);
Symbols\Synthesized\Records\SynthesizedRecordToString.cs (2)
38protected override (TypeWithAnnotations ReturnType, ImmutableArray<ParameterSymbol> Parameters) MakeParametersAndBindReturnType(BindingDiagnosticBag diagnostics) 44Parameters: ImmutableArray<ParameterSymbol>.Empty);
Symbols\Synthesized\SynthesizedAccessorValueParameterSymbol.cs (2)
55public override ImmutableArray<CustomModifier> RefCustomModifiers 59return ImmutableArray<CustomModifier>.Empty; // since RefKind is always None.
Symbols\Synthesized\SynthesizedBackingFieldSymbol.cs (6)
63public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 64=> ImmutableArray<SyntaxReference>.Empty; 115public override ImmutableArray<Location> Locations 120public override ImmutableArray<CustomModifier> RefCustomModifiers => _property.RefCustomModifiers; 154internal override void PostDecodeWellKnownAttributes(ImmutableArray<CSharpAttributeData> boundAttributes, ImmutableArray<AttributeSyntax> allAttributeSyntaxNodes, BindingDiagnosticBag diagnostics, AttributeLocation symbolPart, WellKnownAttributeData decodedData)
Symbols\Synthesized\SynthesizedContainer.cs (29)
23private readonly ImmutableArray<TypeParameterSymbol> _typeParameters; 24private readonly ImmutableArray<TypeParameterSymbol> _constructedFromTypeParameters; 33_typeParameters = ImmutableArray<TypeParameterSymbol>.Empty; 41protected SynthesizedContainer(string name, ImmutableArray<TypeParameterSymbol> typeParameters, TypeMap typeMap) 80internal ImmutableArray<TypeParameterSymbol> ConstructedFromTypeParameters => _constructedFromTypeParameters; 82public sealed override ImmutableArray<TypeParameterSymbol> TypeParameters => _typeParameters; 86public override ImmutableArray<Location> Locations => ImmutableArray<Location>.Empty; 88public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences => ImmutableArray<SyntaxReference>.Empty; 98internal override ImmutableArray<TypeWithAnnotations> TypeArgumentsWithAnnotationsNoUseSiteDiagnostics 115public override ImmutableArray<Symbol> GetMembers() 118return (object)constructor == null ? ImmutableArray<Symbol>.Empty : ImmutableArray.Create(constructor); 121public override ImmutableArray<Symbol> GetMembers(string name) 124return ((object)ctor != null && name == ctor.Name) ? ImmutableArray.Create<Symbol>(ctor) : ImmutableArray<Symbol>.Empty; 140internal override ImmutableArray<Symbol> GetEarlyAttributeDecodingMembers() => this.GetMembersUnordered(); 142internal override ImmutableArray<Symbol> GetEarlyAttributeDecodingMembers(string name) => this.GetMembers(name); 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; 160internal override ImmutableArray<NamedTypeSymbol> GetInterfacesToEmit() => CalculateInterfacesToEmit(); 166internal override ImmutableArray<NamedTypeSymbol> GetDeclaredInterfaces(ConsList<TypeSymbol> basesBeingResolved) => InterfacesNoUseSiteDiagnostics(basesBeingResolved); 189internal sealed override ImmutableArray<string> GetAppliedConditionalSymbols() => ImmutableArray<string>.Empty;
Symbols\Synthesized\SynthesizedDelegateSymbol.cs (15)
15private readonly ImmutableArray<ParameterSymbol> _parameters; 25public override ImmutableArray<ParameterSymbol> Parameters 171public override ImmutableArray<TypeWithAnnotations> TypeArgumentsWithAnnotations 173get { return ImmutableArray<TypeWithAnnotations>.Empty; } 176public override ImmutableArray<TypeParameterSymbol> TypeParameters 178get { return ImmutableArray<TypeParameterSymbol>.Empty; } 181public override ImmutableArray<ParameterSymbol> Parameters { get; } 183public override ImmutableArray<MethodSymbol> ExplicitInterfaceImplementations 185get { return ImmutableArray<MethodSymbol>.Empty; } 188public override ImmutableArray<CustomModifier> RefCustomModifiers 190get { return ImmutableArray<CustomModifier>.Empty; } 198internal override ImmutableArray<string> GetAppliedConditionalSymbols() 200return ImmutableArray<string>.Empty; 218public override ImmutableArray<Location> Locations 220get { return ImmutableArray<Location>.Empty; }
Symbols\Synthesized\SynthesizedEmbeddedAttributeSymbol.cs (34)
52public new abstract ImmutableArray<MethodSymbol> Constructors { get; } 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; 141public override ImmutableArray<Symbol> GetMembers() => Constructors.CastArray<Symbol>(); 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; 159internal override ImmutableArray<Symbol> GetEarlyAttributeDecodingMembers() => GetMembers(); 161internal override ImmutableArray<Symbol> GetEarlyAttributeDecodingMembers(string name) => GetMembers(name); 165internal override ImmutableArray<NamedTypeSymbol> GetInterfacesToEmit() => ImmutableArray<NamedTypeSymbol>.Empty; 169internal override ImmutableArray<NamedTypeSymbol> InterfacesNoUseSiteDiagnostics(ConsList<TypeSymbol> basesBeingResolved = null) => ImmutableArray<NamedTypeSymbol>.Empty; 232private readonly ImmutableArray<MethodSymbol> _constructors; 241_constructors = ImmutableArray.Create<MethodSymbol>(new SynthesizedEmbeddedAttributeConstructorSymbol(this, m => ImmutableArray<ParameterSymbol>.Empty)); 244public override ImmutableArray<MethodSymbol> Constructors => _constructors; 249private readonly ImmutableArray<ParameterSymbol> _parameters; 253Func<MethodSymbol, ImmutableArray<ParameterSymbol>> getParameters) : 259public override ImmutableArray<ParameterSymbol> Parameters => _parameters;
Symbols\Synthesized\SynthesizedEmbeddedLifetimeAnnotationAttributeSymbol.cs (3)
12private readonly ImmutableArray<MethodSymbol> _constructors; 24getParameters: m => ImmutableArray<ParameterSymbol>.Empty, 28public override ImmutableArray<MethodSymbol> Constructors => _constructors;
Symbols\Synthesized\SynthesizedEmbeddedNativeIntegerAttributeSymbol.cs (5)
16private readonly ImmutableArray<FieldSymbol> _fields; 17private readonly ImmutableArray<MethodSymbol> _constructors; 49m => ImmutableArray<ParameterSymbol>.Empty, 62public override ImmutableArray<MethodSymbol> Constructors => _constructors; 89private void GenerateBoolArrayConstructorBody(SyntheticBoundNodeFactory factory, ArrayBuilder<BoundStatement> statements, ImmutableArray<ParameterSymbol> parameters)
Symbols\Synthesized\SynthesizedEmbeddedNullableAttributeSymbol.cs (10)
18private readonly ImmutableArray<FieldSymbol> _fields; 19private readonly ImmutableArray<MethodSymbol> _constructors; 66public override ImmutableArray<MethodSymbol> Constructors => _constructors; 76private void GenerateByteArrayConstructorBody(SyntheticBoundNodeFactory factory, ArrayBuilder<BoundStatement> statements, ImmutableArray<ParameterSymbol> parameters) 90private void GenerateSingleByteConstructorBody(SyntheticBoundNodeFactory factory, ArrayBuilder<BoundStatement> statements, ImmutableArray<ParameterSymbol> parameters) 112private readonly ImmutableArray<ParameterSymbol> _parameters; 114private readonly Action<SyntheticBoundNodeFactory, ArrayBuilder<BoundStatement>, ImmutableArray<ParameterSymbol>> _getConstructorBody; 118Func<MethodSymbol, ImmutableArray<ParameterSymbol>> getParameters, 119Action<SyntheticBoundNodeFactory, ArrayBuilder<BoundStatement>, ImmutableArray<ParameterSymbol>> getConstructorBody) : 126public override ImmutableArray<ParameterSymbol> Parameters => _parameters;
Symbols\Synthesized\SynthesizedEmbeddedNullableContextAttributeSymbol.cs (4)
18private readonly ImmutableArray<FieldSymbol> _fields; 19private readonly ImmutableArray<MethodSymbol> _constructors; 50public override ImmutableArray<MethodSymbol> Constructors => _constructors; 60private void GenerateConstructorBody(SyntheticBoundNodeFactory factory, ArrayBuilder<BoundStatement> statements, ImmutableArray<ParameterSymbol> parameters)
Symbols\Synthesized\SynthesizedEmbeddedNullablePublicOnlyAttributeSymbol.cs (4)
18private readonly ImmutableArray<FieldSymbol> _fields; 19private readonly ImmutableArray<MethodSymbol> _constructors; 50public override ImmutableArray<MethodSymbol> Constructors => _constructors; 57private void GenerateConstructorBody(SyntheticBoundNodeFactory factory, ArrayBuilder<BoundStatement> statements, ImmutableArray<ParameterSymbol> parameters)
Symbols\Synthesized\SynthesizedEmbeddedRefSafetyRulesAttributeSymbol.cs (4)
16private readonly ImmutableArray<FieldSymbol> _fields; 17private readonly ImmutableArray<MethodSymbol> _constructors; 45public override ImmutableArray<MethodSymbol> Constructors => _constructors; 52private void GenerateConstructorBody(SyntheticBoundNodeFactory factory, ArrayBuilder<BoundStatement> statements, ImmutableArray<ParameterSymbol> parameters)
Symbols\Synthesized\SynthesizedEntryPointSymbol.cs (34)
92public override ImmutableArray<TypeParameterSymbol> TypeParameters 94get { return ImmutableArray<TypeParameterSymbol>.Empty; } 102public override ImmutableArray<Location> Locations 104get { return ImmutableArray<Location>.Empty; } 107public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 111return ImmutableArray<SyntaxReference>.Empty; 120public override ImmutableArray<CustomModifier> RefCustomModifiers 122get { return ImmutableArray<CustomModifier>.Empty; } 125public override ImmutableArray<TypeWithAnnotations> TypeArgumentsWithAnnotations 127get { return ImmutableArray<TypeWithAnnotations>.Empty; } 218public override ImmutableArray<MethodSymbol> ExplicitInterfaceImplementations 220get { return ImmutableArray<MethodSymbol>.Empty; } 275internal sealed override ImmutableArray<string> GetAppliedConditionalSymbols() 277return ImmutableArray<string>.Empty; 298ImmutableArray<BoundExpression>.Empty, 299default(ImmutableArray<string>), 300default(ImmutableArray<RefKind>), 304argsToParamsOpt: default(ImmutableArray<int>), 336private readonly ImmutableArray<ParameterSymbol> _parameters; 362argumentNamesOpt: default(ImmutableArray<string>), 363argumentRefKindsOpt: default(ImmutableArray<RefKind>), 367argsToParamsOpt: default(ImmutableArray<int>), 390public override ImmutableArray<ParameterSymbol> Parameters => _parameters; 402locals: ImmutableArray<LocalSymbol>.Empty, 425locals: ImmutableArray<LocalSymbol>.Empty, 456public override ImmutableArray<ParameterSymbol> Parameters => ImmutableArray<ParameterSymbol>.Empty; 496locals: ImmutableArray<LocalSymbol>.Empty, 497statements: ImmutableArray<BoundStatement>.Empty, 532private readonly ImmutableArray<ParameterSymbol> _parameters; 551public override ImmutableArray<ParameterSymbol> Parameters 591argumentNamesOpt: default(ImmutableArray<string>), 592argumentRefKindsOpt: default(ImmutableArray<RefKind>), 594argsToParamsOpt: default(ImmutableArray<int>),
Symbols\Synthesized\SynthesizedEnumValueFieldSymbol.cs (2)
31public override ImmutableArray<CustomModifier> RefCustomModifiers => ImmutableArray<CustomModifier>.Empty;
Symbols\Synthesized\SynthesizedFieldSymbol.cs (2)
38public override ImmutableArray<CustomModifier> RefCustomModifiers => ImmutableArray<CustomModifier>.Empty;
Symbols\Synthesized\SynthesizedFieldSymbolBase.cs (4)
158public override ImmutableArray<Location> Locations 160get { return ImmutableArray<Location>.Empty; } 163public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 167return ImmutableArray<SyntaxReference>.Empty;
Symbols\Synthesized\SynthesizedGlobalMethodSymbol.cs (21)
25private ImmutableArray<ParameterSymbol> _parameters; 26private ImmutableArray<TypeParameterSymbol> _typeParameters; 43_typeParameters = ImmutableArray<TypeParameterSymbol>.Empty; 53protected void SetParameters(ImmutableArray<ParameterSymbol> parameters) 60protected void SetTypeParameters(ImmutableArray<TypeParameterSymbol> typeParameters) 148internal sealed override ImmutableArray<string> GetAppliedConditionalSymbols() 150return ImmutableArray<string>.Empty; 158public override ImmutableArray<TypeParameterSymbol> TypeParameters 165return ImmutableArray<TypeParameterSymbol>.Empty; 172public override ImmutableArray<ParameterSymbol> Parameters 179return ImmutableArray<ParameterSymbol>.Empty; 191public override ImmutableArray<Location> Locations 193get { return ImmutableArray<Location>.Empty; } 196public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 200return ImmutableArray<SyntaxReference>.Empty; 219public override ImmutableArray<CustomModifier> RefCustomModifiers 221get { return ImmutableArray<CustomModifier>.Empty; } 224public override ImmutableArray<TypeWithAnnotations> TypeArgumentsWithAnnotations 226get { return ImmutableArray<TypeWithAnnotations>.Empty; } 330public override ImmutableArray<MethodSymbol> ExplicitInterfaceImplementations 332get { return ImmutableArray<MethodSymbol>.Empty; }
Symbols\Synthesized\SynthesizedHotReloadExceptionConstructorSymbol.cs (2)
12private readonly ImmutableArray<ParameterSymbol> _parameters; 24public override ImmutableArray<ParameterSymbol> Parameters => _parameters;
Symbols\Synthesized\SynthesizedHotReloadExceptionSymbol.cs (16)
29private readonly ImmutableArray<Symbol> _members; 53public override ImmutableArray<Symbol> GetMembers() 56public override ImmutableArray<Symbol> GetMembers(string name) 70public override ImmutableArray<NamedTypeSymbol> GetTypeMembers() => []; 71public override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name) => []; 72public override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name, int arity) => []; 85public override ImmutableArray<TypeParameterSymbol> TypeParameters => []; 95public override ImmutableArray<Location> Locations => []; 96public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences => []; 102internal override ImmutableArray<TypeWithAnnotations> TypeArgumentsWithAnnotationsNoUseSiteDiagnostics => []; 121internal override ImmutableArray<string> GetAppliedConditionalSymbols() => []; 124internal override ImmutableArray<NamedTypeSymbol> GetDeclaredInterfaces(ConsList<TypeSymbol> basesBeingResolved) => []; 125internal override ImmutableArray<Symbol> GetEarlyAttributeDecodingMembers() => GetMembers(); 126internal override ImmutableArray<Symbol> GetEarlyAttributeDecodingMembers(string name) => GetMembers(name); 127internal override ImmutableArray<NamedTypeSymbol> GetInterfacesToEmit() => []; 129internal override ImmutableArray<NamedTypeSymbol> InterfacesNoUseSiteDiagnostics(ConsList<TypeSymbol>? basesBeingResolved = null) => [];
Symbols\Synthesized\SynthesizedImplementationMethod.cs (12)
23private readonly ImmutableArray<MethodSymbol> _explicitInterfaceImplementations; 24private readonly ImmutableArray<TypeParameterSymbol> _typeParameters; 25private readonly ImmutableArray<ParameterSymbol> _parameters; 74public sealed override ImmutableArray<CustomModifier> RefCustomModifiers 86public sealed override ImmutableArray<TypeParameterSymbol> TypeParameters 91public sealed override ImmutableArray<TypeWithAnnotations> TypeArgumentsWithAnnotations 110public sealed override ImmutableArray<ParameterSymbol> Parameters 133public sealed override ImmutableArray<MethodSymbol> ExplicitInterfaceImplementations 161public sealed override ImmutableArray<Location> Locations 163get { return ImmutableArray<Location>.Empty; } 264internal sealed override ImmutableArray<string> GetAppliedConditionalSymbols() 266return ImmutableArray<string>.Empty;
Symbols\Synthesized\SynthesizedInlineArrayAsReadOnlySpanMethod.cs (1)
33f.WellKnownMethod(WellKnownMember.System_Runtime_CompilerServices_Unsafe__As_T).Construct(ImmutableArray<TypeSymbol>.CastUp(TypeParameters)),
Symbols\Synthesized\SynthesizedInlineArrayAsSpanMethod.cs (1)
33f.WellKnownMethod(WellKnownMember.System_Runtime_CompilerServices_Unsafe__As_T).Construct(ImmutableArray<TypeSymbol>.CastUp(TypeParameters)),
Symbols\Synthesized\SynthesizedInlineArrayElementRefMethod.cs (1)
35f.WellKnownMethod(WellKnownMember.System_Runtime_CompilerServices_Unsafe__As_T).Construct(ImmutableArray<TypeSymbol>.CastUp(TypeParameters)),
Symbols\Synthesized\SynthesizedInlineArrayElementRefReadOnlyMethod.cs (1)
35f.WellKnownMethod(WellKnownMember.System_Runtime_CompilerServices_Unsafe__As_T).Construct(ImmutableArray<TypeSymbol>.CastUp(TypeParameters)),
Symbols\Synthesized\SynthesizedInlineArrayFirstElementRefMethod.cs (1)
32f.WellKnownMethod(WellKnownMember.System_Runtime_CompilerServices_Unsafe__As_T).Construct(ImmutableArray<TypeSymbol>.CastUp(TypeParameters)),
Symbols\Synthesized\SynthesizedInlineArrayFirstElementRefReadOnlyMethod.cs (1)
32f.WellKnownMethod(WellKnownMember.System_Runtime_CompilerServices_Unsafe__As_T).Construct(ImmutableArray<TypeSymbol>.CastUp(TypeParameters)),
Symbols\Synthesized\SynthesizedInlineArrayTypeSymbol.cs (35)
28private readonly ImmutableArray<FieldSymbol> _fields; 47public override ImmutableArray<TypeParameterSymbol> TypeParameters { get; } 75public override ImmutableArray<Location> Locations => ImmutableArray<Location>.Empty; 77public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences => ImmutableArray<SyntaxReference>.Empty; 85internal override ImmutableArray<TypeWithAnnotations> TypeArgumentsWithAnnotationsNoUseSiteDiagnostics => GetTypeParametersAsTypeArguments(); 131public override ImmutableArray<Symbol> GetMembers() => ImmutableArray<Symbol>.CastUp(_fields); 133public override ImmutableArray<Symbol> GetMembers(string name) => GetMembers().WhereAsArray(m => m.Name == name); 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; 153internal override ImmutableArray<Symbol> GetEarlyAttributeDecodingMembers() => throw ExceptionUtilities.Unreachable(); 155internal override ImmutableArray<Symbol> GetEarlyAttributeDecodingMembers(string name) => throw ExceptionUtilities.Unreachable(); 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 (13)
35public override ImmutableArray<ParameterSymbol> Parameters 37get { return ImmutableArray<ParameterSymbol>.Empty; } 122internal sealed override ImmutableArray<string> GetAppliedConditionalSymbols() 124return ImmutableArray<string>.Empty; 132public sealed override ImmutableArray<TypeParameterSymbol> TypeParameters 134get { return ImmutableArray<TypeParameterSymbol>.Empty; } 144public sealed override ImmutableArray<Location> Locations 163public override ImmutableArray<CustomModifier> RefCustomModifiers 165get { return ImmutableArray<CustomModifier>.Empty; } 168public sealed override ImmutableArray<TypeWithAnnotations> TypeArgumentsWithAnnotations 170get { return ImmutableArray<TypeWithAnnotations>.Empty; } 263public sealed override ImmutableArray<MethodSymbol> ExplicitInterfaceImplementations 265get { return ImmutableArray<MethodSymbol>.Empty; }
Symbols\Synthesized\SynthesizedInstanceMethodSymbol.cs (2)
21public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 25return ImmutableArray<SyntaxReference>.Empty;
Symbols\Synthesized\SynthesizedInteractiveInitializerMethod.cs (13)
64public override ImmutableArray<MethodSymbol> ExplicitInterfaceImplementations 66get { return ImmutableArray<MethodSymbol>.Empty; } 124public override ImmutableArray<Location> Locations 134public override ImmutableArray<ParameterSymbol> Parameters 136get { return ImmutableArray<ParameterSymbol>.Empty; } 153public override ImmutableArray<CustomModifier> RefCustomModifiers 155get { return ImmutableArray<CustomModifier>.Empty; } 158public override ImmutableArray<TypeWithAnnotations> TypeArgumentsWithAnnotations 160get { return ImmutableArray<TypeWithAnnotations>.Empty; } 163public override ImmutableArray<TypeParameterSymbol> TypeParameters 165get { return ImmutableArray<TypeParameterSymbol>.Empty; } 213internal override ImmutableArray<string> GetAppliedConditionalSymbols() 215return ImmutableArray<string>.Empty;
Symbols\Synthesized\SynthesizedIntrinsicOperatorSymbol.cs (18)
19private readonly ImmutableArray<ParameterSymbol> _parameters; 238public override ImmutableArray<TypeWithAnnotations> TypeArgumentsWithAnnotations 242return ImmutableArray<TypeWithAnnotations>.Empty; 246public override ImmutableArray<TypeParameterSymbol> TypeParameters 250return ImmutableArray<TypeParameterSymbol>.Empty; 254public override ImmutableArray<ParameterSymbol> Parameters 262public override ImmutableArray<MethodSymbol> ExplicitInterfaceImplementations 266return ImmutableArray<MethodSymbol>.Empty; 275public override ImmutableArray<CustomModifier> RefCustomModifiers 279return ImmutableArray<CustomModifier>.Empty; 291internal override ImmutableArray<string> GetAppliedConditionalSymbols() 293return ImmutableArray<string>.Empty; 328public override ImmutableArray<Location> Locations 332return ImmutableArray<Location>.Empty; 336public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 340return ImmutableArray<SyntaxReference>.Empty; 498public override ImmutableArray<CustomModifier> RefCustomModifiers 500get { return ImmutableArray<CustomModifier>.Empty; }
Symbols\Synthesized\SynthesizedLambdaCacheFieldSymbol.cs (2)
38public override ImmutableArray<CustomModifier> RefCustomModifiers => ImmutableArray<CustomModifier>.Empty;
Symbols\Synthesized\SynthesizedLocal.cs (4)
143public sealed override ImmutableArray<Location> Locations 145get { return (_syntaxOpt == null) ? ImmutableArray<Location>.Empty : ImmutableArray.Create(_syntaxOpt.GetLocation()); } 148public sealed override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 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 (16)
56public abstract override ImmutableArray<CustomModifier> RefCustomModifiers { get; } 135public override ImmutableArray<Location> Locations 137get { return ImmutableArray<Location>.Empty; } 140public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 144return ImmutableArray<SyntaxReference>.Empty; 223internal override ImmutableArray<int> InterpolatedStringHandlerArgumentIndexes => ImmutableArray<int>.Empty; 263ImmutableArray<CustomModifier> refCustomModifiers = default, 298internal static ImmutableArray<ParameterSymbol> DeriveParameters(MethodSymbol sourceMethod, MethodSymbol destinationMethod) 321public override ImmutableArray<CustomModifier> RefCustomModifiers 323get { return ImmutableArray<CustomModifier>.Empty; } 336private readonly ImmutableArray<CustomModifier> _refCustomModifiers; 352ImmutableArray<CustomModifier> refCustomModifiers, 369public override ImmutableArray<CustomModifier> RefCustomModifiers 374public override ImmutableArray<CSharpAttributeData> GetAttributes() 376return _baseParameterForAttributes?.GetAttributes() ?? ImmutableArray<CSharpAttributeData>.Empty;
Symbols\Synthesized\SynthesizedPrivateImplementationDetailsType.cs (30)
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 (13)
27private readonly ImmutableArray<ParameterSymbol> _parameters; 56public override ImmutableArray<Location> Locations 60return ImmutableArray<Location>.Empty; 201public override ImmutableArray<TypeWithAnnotations> TypeArgumentsWithAnnotations 205return ImmutableArray<TypeWithAnnotations>.Empty; 209public override ImmutableArray<TypeParameterSymbol> TypeParameters 213return ImmutableArray<TypeParameterSymbol>.Empty; 217public override ImmutableArray<ParameterSymbol> Parameters 230public override ImmutableArray<MethodSymbol> ExplicitInterfaceImplementations 234return ImmutableArray<MethodSymbol>.Empty; 238public override ImmutableArray<CustomModifier> RefCustomModifiers 356internal override ImmutableArray<string> GetAppliedConditionalSymbols() 358return ImmutableArray<string>.Empty;
Symbols\Synthesized\SynthesizedSimpleProgramEntryPointSymbol.cs (13)
24private readonly ImmutableArray<ParameterSymbol> _parameters; 95ImmutableArray<SynthesizedSimpleProgramEntryPointSymbol> entryPoints = type.GetSimpleProgramEntryPoints(); 131public override ImmutableArray<TypeParameterSymbol> TypeParameters 135return ImmutableArray<TypeParameterSymbol>.Empty; 147public override ImmutableArray<ParameterSymbol> Parameters 169public override ImmutableArray<CustomModifier> RefCustomModifiers 173return ImmutableArray<CustomModifier>.Empty; 202public override ImmutableArray<ImmutableArray<TypeWithAnnotations>> GetTypeParameterConstraintTypes() 203=> ImmutableArray<ImmutableArray<TypeWithAnnotations>>.Empty; 205public override ImmutableArray<TypeParameterConstraintKind> GetTypeParameterConstraintKinds() 206=> ImmutableArray<TypeParameterConstraintKind>.Empty;
Symbols\Synthesized\SynthesizedStaticConstructor.cs (17)
64public override ImmutableArray<TypeParameterSymbol> TypeParameters 68return ImmutableArray<TypeParameterSymbol>.Empty; 80public override ImmutableArray<ParameterSymbol> Parameters 84return ImmutableArray<ParameterSymbol>.Empty; 111public override ImmutableArray<Location> Locations 119public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 123return ImmutableArray<SyntaxReference>.Empty; 149public override ImmutableArray<CustomModifier> RefCustomModifiers 153return ImmutableArray<CustomModifier>.Empty; 157public override ImmutableArray<TypeWithAnnotations> TypeArgumentsWithAnnotations 161return ImmutableArray<TypeWithAnnotations>.Empty; 283public override ImmutableArray<MethodSymbol> ExplicitInterfaceImplementations 287return ImmutableArray<MethodSymbol>.Empty; 370internal override ImmutableArray<string> GetAppliedConditionalSymbols() 372return ImmutableArray<string>.Empty; 384internal bool ShouldEmit(ImmutableArray<BoundInitializer> boundInitializersOpt = default) 396private bool CalculateShouldEmit(ImmutableArray<BoundInitializer> boundInitializersOpt = default)
Symbols\Synthesized\SynthesizedSubmissionConstructor.cs (2)
14private readonly ImmutableArray<ParameterSymbol> _parameters; 32public override ImmutableArray<ParameterSymbol> Parameters
Symbols\Synthesized\SynthesizedSubstitutedTypeParameterSymbol.cs (2)
45public override ImmutableArray<CSharpAttributeData> GetAttributes() 52return ImmutableArray<CSharpAttributeData>.Empty;
Symbols\Synthesized\TypeSubstitutedLocalSymbol.cs (2)
62public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 75public override ImmutableArray<Location> Locations
Symbols\SynthesizedNamespaceSymbol.cs (14)
61public override ImmutableArray<Location> Locations 62=> ImmutableArray<Location>.Empty; 64public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 65=> ImmutableArray<SyntaxReference>.Empty; 67public override ImmutableArray<NamedTypeSymbol> GetTypeMembers() 68=> ImmutableArray<NamedTypeSymbol>.Empty; 70public override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name) 71=> ImmutableArray<NamedTypeSymbol>.Empty; 73public override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name, int arity) 74=> ImmutableArray<NamedTypeSymbol>.Empty; 76public override ImmutableArray<Symbol> GetMembers() 77=> ImmutableArray<Symbol>.Empty; 79public override ImmutableArray<Symbol> GetMembers(ReadOnlyMemory<char> name) 80=> ImmutableArray<Symbol>.Empty;
Symbols\SynthesizedSimpleMethodTypeParameterSymbol.cs (5)
96public override ImmutableArray<Location> Locations 101public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 110internal override ImmutableArray<TypeWithAnnotations> GetConstraintTypes(ConsList<TypeParameterSymbol> inProgress) 112return ImmutableArray<TypeWithAnnotations>.Empty; 115internal override ImmutableArray<NamedTypeSymbol> GetInterfaces(ConsList<TypeParameterSymbol> inProgress)
Symbols\Tuples\TupleErrorFieldSymbol.cs (7)
30private readonly ImmutableArray<Location> _locations; 52_locations = location == null ? ImmutableArray<Location>.Empty : ImmutableArray.Create(location); 115public override ImmutableArray<Location> Locations 123public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 128ImmutableArray<SyntaxReference>.Empty : 159public override ImmutableArray<CustomModifier> RefCustomModifiers => ImmutableArray<CustomModifier>.Empty;
Symbols\Tuples\TupleFieldSymbol.cs (9)
30private readonly ImmutableArray<Location> _locations; 41ImmutableArray<Location> locations, 127public sealed override ImmutableArray<CustomModifier> RefCustomModifiers => _underlyingField.RefCustomModifiers; 134public override ImmutableArray<CSharpAttributeData> GetAttributes() 175public sealed override ImmutableArray<Location> Locations 183public sealed override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 188ImmutableArray<SyntaxReference>.Empty : 259ImmutableArray<Location> locations, 325public override ImmutableArray<CSharpAttributeData> GetAttributes()
Symbols\Tuples\TupleTypeSymbol.cs (64)
32ImmutableArray<TypeWithAnnotations> elementTypesWithAnnotations, 33ImmutableArray<Location?> elementLocations, 34ImmutableArray<string?> elementNames, 38ImmutableArray<bool> errorPositions, 61var locations = locationOpt is null ? ImmutableArray<Location>.Empty : ImmutableArray.Create(locationOpt); 74static NamedTypeSymbol getTupleUnderlyingType(ImmutableArray<TypeWithAnnotations> elementTypes, CSharpSyntaxNode? syntax, CSharpCompilation compilation, BindingDiagnosticBag? diagnostics) 102ImmutableArray<string?> elementNames = default, 103ImmutableArray<bool> errorPositions = default, 104ImmutableArray<Location?> elementLocations = default, 105ImmutableArray<Location> locations = default) 127internal NamedTypeSymbol WithElementTypes(ImmutableArray<TypeWithAnnotations> newElementTypes) 161internal NamedTypeSymbol WithElementNames(ImmutableArray<string?> newElementNames, 162ImmutableArray<Location?> newElementLocations, 163ImmutableArray<bool> errorPositions, 164ImmutableArray<Location> locations) 232private static NamedTypeSymbol ConstructTupleUnderlyingType(NamedTypeSymbol firstTupleType, NamedTypeSymbol? chainedTupleTypeOpt, ImmutableArray<TypeWithAnnotations> elementTypes) 244var chainedTypes = ImmutableArray.Create(elementTypes, (loop - 1) * (ValueTupleRestPosition - 1), ValueTupleRestPosition - 1).Add(TypeWithAnnotations.Create(currentSymbol)); 280var sourceNames = literal.ArgumentNamesOpt; 286ImmutableArray<bool> inferredNames = literal.InferredNamesOpt; 288ImmutableArray<string> destinationNames = destination.TupleElementNames; 522var members = type.GetMembers(relativeDescriptor.Name); 550public sealed override ImmutableArray<string?> TupleElementNames 553private ImmutableArray<bool> TupleErrorPositions 556private ImmutableArray<Location?> TupleElementLocations 559public sealed override ImmutableArray<TypeWithAnnotations> TupleElementTypesWithAnnotations 562public sealed override ImmutableArray<FieldSymbol> TupleElements 570protected ArrayBuilder<Symbol> MakeSynthesizedTupleMembers(ImmutableArray<Symbol> currentMembers, HashSet<Symbol>? replacedFields = null) 575var elementTypes = TupleElementTypesWithAnnotations; 587var elementNames = TupleElementNames; 588var elementLocations = TupleData!.ElementLocations; 626ImmutableArray<Location> locations = getElementLocations(in elementLocations, tupleFieldIndex); 671var errorPositions = TupleErrorPositions; 799static void collectTargetTupleFields(int arity, ImmutableArray<Symbol> members, ArrayBuilder<FieldSymbol?> fieldsForElements) 810static Symbol? getWellKnownMemberInType(ImmutableArray<Symbol> members, WellKnownMember relativeMember) 819static ImmutableArray<Symbol> getOriginalFields(ImmutableArray<Symbol> members) 842static ImmutableArray<Location> getElementLocations(in ImmutableArray<Location?> elementLocations, int tupleFieldIndex) 846return ImmutableArray<Location>.Empty; 850return elementLocation == null ? ImmutableArray<Location>.Empty : ImmutableArray.Create(elementLocation); 857ImmutableArray<string?> names1 = TupleElementNames; 858ImmutableArray<string?> names2 = other.TupleElementNames; 859ImmutableArray<string?> mergedNames; 889internal ImmutableArray<string?> ElementNames { get; } 895internal ImmutableArray<Location?> ElementLocations { get; } 902internal ImmutableArray<bool> ErrorPositions { get; } 904internal ImmutableArray<Location> Locations { get; } 909private ImmutableArray<TypeWithAnnotations> _lazyElementTypes; 911private ImmutableArray<FieldSymbol> _lazyDefaultElementFields; 927Locations = ImmutableArray<Location>.Empty; 930internal TupleExtraData(NamedTypeSymbol underlyingType, ImmutableArray<string?> elementNames, 931ImmutableArray<Location?> elementLocations, ImmutableArray<bool> errorPositions, ImmutableArray<Location> locations) 952static bool areEqual<T>(ImmutableArray<T> one, ImmutableArray<T> other) 968public ImmutableArray<TypeWithAnnotations> TupleElementTypesWithAnnotations(NamedTypeSymbol tuple) 978static ImmutableArray<TypeWithAnnotations> collectTupleElementTypesWithAnnotations(NamedTypeSymbol tuple) 980ImmutableArray<TypeWithAnnotations> elementTypes; 985var extensionTupleElementTypes = tuple.TypeArgumentsWithAnnotationsNoUseSiteDiagnostics[ValueTupleRestPosition - 1].Type.TupleElementTypesWithAnnotations; 1000public ImmutableArray<FieldSymbol> TupleElements(NamedTypeSymbol tuple) 1010ImmutableArray<FieldSymbol> collectTupleElementFields(NamedTypeSymbol tuple) 1054var members = TupleUnderlyingType.GetMembers();
Symbols\TypedConstantExtensions.cs (2)
82var members = constant.Type!.GetMembers(); 161var members = constant.Type!.GetMembers();
Symbols\TypeMap.cs (22)
26internal static ImmutableArray<TypeWithAnnotations> TypeParametersAsTypeSymbolsWithAnnotations(ImmutableArray<TypeParameterSymbol> typeParameters) 31internal static ImmutableArray<TypeWithAnnotations> TypeParametersAsTypeSymbolsWithIgnoredAnnotations(ImmutableArray<TypeParameterSymbol> typeParameters) 36internal static ImmutableArray<TypeSymbol> AsTypeSymbols(ImmutableArray<TypeWithAnnotations> typesOpt) 42internal TypeMap(ImmutableArray<TypeParameterSymbol> from, ImmutableArray<TypeWithAnnotations> to, bool allowAlpha = false) 50internal TypeMap(ImmutableArray<TypeParameterSymbol> from, ImmutableArray<TypeParameterSymbol> to, bool allowAlpha = false) 70internal TypeMap(NamedTypeSymbol containingType, ImmutableArray<TypeParameterSymbol> typeParameters, ImmutableArray<TypeWithAnnotations> typeArguments) 103private TypeMap WithAlphaRename(ImmutableArray<TypeParameterSymbol> oldTypeParameters, Symbol newOwner, out ImmutableArray<TypeParameterSymbol> newTypeParameters) 107newTypeParameters = ImmutableArray<TypeParameterSymbol>.Empty; 139internal TypeMap WithAlphaRename(NamedTypeSymbol oldOwner, NamedTypeSymbol newOwner, out ImmutableArray<TypeParameterSymbol> newTypeParameters) 145internal TypeMap WithAlphaRename(MethodSymbol oldOwner, Symbol newOwner, out ImmutableArray<TypeParameterSymbol> newTypeParameters) 154out ImmutableArray<TypeParameterSymbol> newTypeParameters, 155out ImmutableArray<TypeParameterSymbol> oldTypeParameters, 176var currentParameters = oldOwner.OriginalDefinition.TypeParameters; 200private static SmallDictionary<TypeParameterSymbol, TypeWithAnnotations> ConstructMapping(ImmutableArray<TypeParameterSymbol> from, ImmutableArray<TypeWithAnnotations> to)
Symbols\TypeParameterBounds.cs (4)
24ImmutableArray<TypeWithAnnotations> constraintTypes, 25ImmutableArray<NamedTypeSymbol> interfaces, 50public readonly ImmutableArray<TypeWithAnnotations> ConstraintTypes; 57public readonly ImmutableArray<NamedTypeSymbol> Interfaces;
Symbols\TypeParameterSymbol.cs (32)
82internal ImmutableArray<TypeWithAnnotations> ConstraintTypesNoUseSiteDiagnostics 91internal ImmutableArray<TypeWithAnnotations> ConstraintTypesWithDefinitionUseSiteDiagnostics(ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 93var result = ConstraintTypesNoUseSiteDiagnostics; 143public sealed override ImmutableArray<Symbol> GetMembers() 145return ImmutableArray<Symbol>.Empty; 149public sealed override ImmutableArray<Symbol> GetMembers(string name) 151return ImmutableArray<Symbol>.Empty; 155public sealed override ImmutableArray<NamedTypeSymbol> GetTypeMembers() 157return ImmutableArray<NamedTypeSymbol>.Empty; 161public sealed override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name) 163return ImmutableArray<NamedTypeSymbol>.Empty; 167public sealed override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name, int arity) 169return ImmutableArray<NamedTypeSymbol>.Empty; 242internal sealed override ImmutableArray<NamedTypeSymbol> InterfacesNoUseSiteDiagnostics(ConsList<TypeSymbol> basesBeingResolved = null) 244return ImmutableArray<NamedTypeSymbol>.Empty; 247protected sealed override ImmutableArray<NamedTypeSymbol> GetAllInterfaces() 249return ImmutableArray<NamedTypeSymbol>.Empty; 284internal ImmutableArray<NamedTypeSymbol> EffectiveInterfacesNoUseSiteDiagnostics 293internal ImmutableArray<NamedTypeSymbol> EffectiveInterfacesWithDefinitionUseSiteDiagnostics(ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 295var result = EffectiveInterfacesNoUseSiteDiagnostics; 335internal ImmutableArray<NamedTypeSymbol> AllEffectiveInterfacesNoUseSiteDiagnostics 343internal ImmutableArray<NamedTypeSymbol> AllEffectiveInterfacesWithDefinitionUseSiteDiagnostics(ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 345var result = AllEffectiveInterfacesNoUseSiteDiagnostics; 374protected static void EnsureAllConstraintsAreResolved(ImmutableArray<TypeParameterSymbol> typeParameters) 379var unused = typeParameter.GetConstraintTypes(ConsList<TypeParameterSymbol>.Empty); 383internal abstract ImmutableArray<TypeWithAnnotations> GetConstraintTypes(ConsList<TypeParameterSymbol> inProgress); 385internal abstract ImmutableArray<NamedTypeSymbol> GetInterfaces(ConsList<TypeParameterSymbol> inProgress); 436internal static bool CalculateIsReferenceTypeFromConstraintTypes(ImmutableArray<TypeWithAnnotations> constraintTypes) 448internal static bool? IsNotNullableFromConstraintTypes(ImmutableArray<TypeWithAnnotations> constraintTypes) 506internal static bool CalculateIsValueTypeFromConstraintTypes(ImmutableArray<TypeWithAnnotations> constraintTypes) 555ImmutableArray<TypeWithAnnotations> constraintTypes = this.ConstraintTypesNoUseSiteDiagnostics; 685internal override bool ApplyNullableTransforms(byte defaultTransformFlag, ImmutableArray<byte> transforms, ref int position, out TypeSymbol result)
Symbols\TypeSymbol.cs (26)
48internal ImmutableArray<NamedTypeSymbol> allInterfaces; 108var interfaces = (baseType.TypeKind == TypeKind.TypeParameter) ? ((TypeParameterSymbol)baseType).EffectiveInterfacesNoUseSiteDiagnostics : baseType.InterfacesNoUseSiteDiagnostics(); 191internal abstract ImmutableArray<NamedTypeSymbol> InterfacesNoUseSiteDiagnostics(ConsList<TypeSymbol> basesBeingResolved = null); 203internal ImmutableArray<NamedTypeSymbol> AllInterfacesNoUseSiteDiagnostics 211internal ImmutableArray<NamedTypeSymbol> AllInterfacesWithDefinitionUseSiteDiagnostics(ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 213var result = AllInterfacesNoUseSiteDiagnostics; 317protected virtual ImmutableArray<NamedTypeSymbol> GetAllInterfaces() 322return ImmutableArray<NamedTypeSymbol>.Empty; 337protected virtual ImmutableArray<NamedTypeSymbol> MakeAllInterfaces() 344var interfaces = (baseType.TypeKind == TypeKind.TypeParameter) ? ((TypeParameterSymbol)baseType).EffectiveInterfacesNoUseSiteDiagnostics : baseType.InterfacesNoUseSiteDiagnostics(); 358ImmutableArray<NamedTypeSymbol> baseInterfaces = @interface.InterfacesNoUseSiteDiagnostics(); 415private static MultiDictionary<NamedTypeSymbol, NamedTypeSymbol> MakeInterfacesAndTheirBaseInterfaces(ImmutableArray<NamedTypeSymbol> declaredInterfaces) 578public virtual ImmutableArray<TypeWithAnnotations> TupleElementTypesWithAnnotations => default(ImmutableArray<TypeWithAnnotations>); 583public virtual ImmutableArray<string> TupleElementNames => default(ImmutableArray<string>); 589public virtual ImmutableArray<FieldSymbol> TupleElements => default(ImmutableArray<FieldSymbol>); 633internal abstract bool ApplyNullableTransforms(byte defaultTransformFlag, ImmutableArray<byte> transforms, ref int position, out TypeSymbol result); 668public ImmutableArray<SymbolDisplayPart> ToDisplayParts(CodeAnalysis.NullableFlowState topLevelNullability, SymbolDisplayFormat format = null) 682public ImmutableArray<SymbolDisplayPart> ToMinimalDisplayParts( 1149ImmutableArray<NamedTypeSymbol> allInterfaces = implementingType.AllInterfacesWithDefinitionUseSiteDiagnostics(ref useSiteInfo); 1256ImmutableArray<NamedTypeSymbol> allInterfaces, 2094var typeParameters1 = interfaceMethod.TypeParameters; 2095var typeParameters2 = implicitImpl.TypeParameters; 2096var indexedTypeParameters = IndexedTypeParameterSymbol.Take(arity);
Symbols\TypeSymbolExtensions.cs (16)
119var constraintTypes = ((TypeParameterSymbol)type).ConstraintTypesNoUseSiteDiagnostics; 416internal static ImmutableArray<NamedTypeSymbol> GetAllInterfacesOrEffectiveInterfaces(this TypeSymbol type) 430return ImmutableArray<NamedTypeSymbol>.Empty; 573public static ImmutableArray<ParameterSymbol> DelegateParameters(this TypeSymbol type) 578return default(ImmutableArray<ParameterSymbol>); 583public static ImmutableArray<ParameterSymbol> DelegateOrFunctionPointerParameters(this TypeSymbol type) 596public static bool TryGetElementTypesWithAnnotationsIfTupleType(this TypeSymbol type, out ImmutableArray<TypeWithAnnotations> elementTypes) 605elementTypes = default(ImmutableArray<TypeWithAnnotations>); 858var fields = anonymous.TypeDescriptor.Fields; 889var typeArguments = ((NamedTypeSymbol)current).TypeArgumentsWithAnnotationsNoUseSiteDiagnostics; 1613var typeArguments = type.TypeArgumentsWithAnnotationsNoUseSiteDiagnostics; 1614var typeParameters = type.OriginalDefinition.TypeParameters; 1684internal static ImmutableArray<TypeParameterSymbol> GetAllTypeParameters(this NamedTypeSymbol type) 1988var typeParameters = originalDefinition.GetAllTypeParameters(); 2047var paramTypes = ImmutableArray<TypeWithAnnotations>.Empty;
Symbols\TypeUnification.cs (3)
165var nt1Arguments = nt1.TypeArgumentsWithAnnotationsNoUseSiteDiagnostics; 166var nt2Arguments = nt2.TypeArgumentsWithAnnotationsNoUseSiteDiagnostics; 279var typeParts = namedType.IsTupleType ? namedType.TupleElementTypesWithAnnotations : namedType.TypeArgumentsWithAnnotationsNoUseSiteDiagnostics;
Symbols\TypeWithAnnotations.cs (27)
85internal static TypeWithAnnotations Create(TypeSymbol typeSymbol, NullableAnnotation nullableAnnotation = NullableAnnotation.Oblivious, ImmutableArray<CustomModifier> customModifiers = default) 168private static TypeWithAnnotations CreateNonLazyType(TypeSymbol typeSymbol, NullableAnnotation nullableAnnotation, ImmutableArray<CustomModifier> customModifiers) 178private static TypeWithAnnotations CreateLazySubstitutedType(TypeSymbol substitutedTypeSymbol, ImmutableArray<CustomModifier> customModifiers, TypeParameterSymbol typeParameter) 250public TypeWithAnnotations WithModifiers(ImmutableArray<CustomModifier> customModifiers) => 269public ImmutableArray<CustomModifier> CustomModifiers => _extensions.CustomModifiers; 444var newCustomModifiers = typeMap.SubstituteCustomModifiers(this.CustomModifiers); 567public TypeWithAnnotations WithTypeAndModifiers(TypeSymbol typeSymbol, ImmutableArray<CustomModifier> customModifiers) => 661public bool ApplyNullableTransforms(byte defaultTransformFlag, ImmutableArray<byte> transforms, ref int position, out TypeWithAnnotations result) 840internal static readonly Extensions Default = new NonLazyType(customModifiers: ImmutableArray<CustomModifier>.Empty); 842internal static Extensions Create(ImmutableArray<CustomModifier> customModifiers) 854internal abstract ImmutableArray<CustomModifier> CustomModifiers { get; } 859internal abstract TypeWithAnnotations WithModifiers(TypeWithAnnotations type, ImmutableArray<CustomModifier> customModifiers); 873internal abstract TypeWithAnnotations WithTypeAndModifiers(TypeWithAnnotations type, TypeSymbol typeSymbol, ImmutableArray<CustomModifier> customModifiers); 884private readonly ImmutableArray<CustomModifier> _customModifiers; 886public NonLazyType(ImmutableArray<CustomModifier> customModifiers) 895internal override ImmutableArray<CustomModifier> CustomModifiers => _customModifiers; 907internal override TypeWithAnnotations WithModifiers(TypeWithAnnotations type, ImmutableArray<CustomModifier> customModifiers) 914internal override TypeWithAnnotations WithTypeAndModifiers(TypeWithAnnotations type, TypeSymbol typeSymbol, ImmutableArray<CustomModifier> customModifiers) 956private readonly ImmutableArray<CustomModifier> _customModifiers; 962public LazySubstitutedType(ImmutableArray<CustomModifier> customModifiers, TypeParameterSymbol typeParameter) 1010internal override ImmutableArray<CustomModifier> CustomModifiers => _customModifiers; 1012internal override TypeWithAnnotations WithModifiers(TypeWithAnnotations type, ImmutableArray<CustomModifier> customModifiers) 1017internal override TypeWithAnnotations WithTypeAndModifiers(TypeWithAnnotations type, TypeSymbol typeSymbol, ImmutableArray<CustomModifier> customModifiers) 1110internal override ImmutableArray<CustomModifier> CustomModifiers => ImmutableArray<CustomModifier>.Empty; 1112internal override TypeWithAnnotations WithModifiers(TypeWithAnnotations type, ImmutableArray<CustomModifier> customModifiers) 1128internal override TypeWithAnnotations WithTypeAndModifiers(TypeWithAnnotations type, TypeSymbol typeSymbol, ImmutableArray<CustomModifier> customModifiers)
Symbols\UnboundGenericType.cs (3)
39var typeArguments = UnboundArgumentErrorTypeSymbol.CreateTypeArguments( 49public static ImmutableArray<TypeWithAnnotations> CreateTypeArguments(ImmutableArray<TypeParameterSymbol> typeParameters, int n, DiagnosticInfo errorInfo)
Symbols\UpdatedContainingSymbolLocal.cs (2)
80public override ImmutableArray<Location> Locations => _underlyingLocal.Locations; 81public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences => _underlyingLocal.DeclaringSyntaxReferences;
Symbols\VarianceSafety.cs (3)
236private static void CheckParametersVarianceSafety(ImmutableArray<ParameterSymbol> parameters, Symbol context, BindingDiagnosticBag diagnostics) 258private static void CheckTypeParametersVarianceSafety(ImmutableArray<TypeParameterSymbol> typeParameters, MethodSymbol context, BindingDiagnosticBag diagnostics) 485var syntaxRefs = symbol.DeclaringSyntaxReferences;
Symbols\Wrapped\WrappedEventSymbol.cs (2)
70public override ImmutableArray<Location> Locations 78public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
Symbols\Wrapped\WrappedFieldSymbol.cs (3)
115internal override ImmutableArray<byte> MarshallingDescriptor 184public override ImmutableArray<Location> Locations 192public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
Symbols\Wrapped\WrappedMethodSymbol.cs (7)
93public override ImmutableArray<Location> Locations 101public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 238internal override ImmutableArray<string> GetAppliedConditionalSymbols() 328internal sealed override ImmutableArray<string> NotNullMembers => UnderlyingMethod.NotNullMembers; 330internal sealed override ImmutableArray<string> NotNullWhenTrueMembers => UnderlyingMethod.NotNullWhenTrueMembers; 332internal sealed override ImmutableArray<string> NotNullWhenFalseMembers => UnderlyingMethod.NotNullWhenFalseMembers; 342internal override ImmutableArray<byte> ReturnValueMarshallingDescriptor
Symbols\Wrapped\WrappedNamedTypeSymbol.cs (3)
127public override ImmutableArray<Location> Locations 140public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 247internal override ImmutableArray<string> GetAppliedConditionalSymbols()
Symbols\Wrapped\WrappedParameterSymbol.cs (4)
59public sealed override ImmutableArray<Location> Locations 64public sealed override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 69public override ImmutableArray<CSharpAttributeData> GetAttributes() 119public override ImmutableArray<CustomModifier> RefCustomModifiers
Symbols\Wrapped\WrappedPropertySymbol.cs (2)
92public override ImmutableArray<Location> Locations 100public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
Symbols\Wrapped\WrappedTypeParameterSymbol.cs (3)
144public override ImmutableArray<Location> Locations 152public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 178public override ImmutableArray<CSharpAttributeData> GetAttributes()
Syntax\CSharpSyntaxTree.cs (3)
37private ImmutableArray<int> _preprocessorStateChangePositions; 42private ImmutableArray<InternalSyntax.DirectiveStack> _preprocessorStates; 171internal bool IsAnyPreprocessorSymbolDefined(ImmutableArray<string> conditionalSymbols)
Syntax\NullableContextStateMap.cs (4)
42private readonly ImmutableArray<NullableContextState> _contexts; 46var contexts = GetContexts(tree); 50private NullableContextStateMap(ImmutableArray<NullableContextState> contexts) 136private static ImmutableArray<NullableContextState> GetContexts(SyntaxTree tree)
Utilities\InterceptableLocation.cs (2)
54private readonly ImmutableArray<byte> _checksum; 62internal InterceptableLocation1(ImmutableArray<byte> checksum, string path, SourceReferenceResolver? resolver, int position, int lineNumberOneIndexed, int characterNumberOneIndexed)
Utilities\TypeSymbolExtensions.cs (2)
57ImmutableArray<TypeWithAnnotations> typeArgs = namedType.TypeArgumentsWithAnnotationsNoUseSiteDiagnostics; 138ImmutableArray<TypeWithAnnotations> typeArgs = namedType.TypeArgumentsWithAnnotationsNoUseSiteDiagnostics;
Utilities\ValueSetFactory.NumericValueSet.cs (7)
24private readonly ImmutableArray<(T first, T last)> _intervals; 29public static NumericValueSet<T> NoValues(INumericTC<T> tc) => new NumericValueSet<T>(ImmutableArray<(T first, T last)>.Empty, tc); 36internal NumericValueSet(ImmutableArray<(T first, T last)> intervals, INumericTC<T> tc) 168var left = this._intervals; 169var right = other._intervals; 245var left = this._intervals; 246var right = other._intervals;
Microsoft.CodeAnalysis.CSharp.CodeStyle (148)
src\Analyzers\CSharp\Analyzers\AddAccessibilityModifiers\CSharpAddAccessibilityModifiersDiagnosticAnalyzer.cs (1)
57var additionalLocations = ImmutableArray.Create(member.GetLocation());
src\Analyzers\CSharp\Analyzers\AddRequiredParentheses\CSharpAddRequiredExpressionParenthesesDiagnosticAnalyzer.cs (2)
26private static readonly ImmutableArray<SyntaxKind> s_kinds = 52protected override ImmutableArray<SyntaxKind> GetSyntaxNodeKinds()
src\Analyzers\CSharp\Analyzers\AddRequiredParentheses\CSharpAddRequiredPatternParenthesesDiagnosticAnalyzer.cs (2)
25private static readonly ImmutableArray<SyntaxKind> s_kinds = [SyntaxKind.AndPattern, SyntaxKind.OrPattern]; 27protected override ImmutableArray<SyntaxKind> GetSyntaxNodeKinds()
src\Analyzers\CSharp\Analyzers\ForEachCast\CSharpForEachCastDiagnosticAnalyzer.cs (1)
23protected override ImmutableArray<SyntaxKind> GetSyntaxKinds()
src\Analyzers\CSharp\Analyzers\InlineDeclaration\CSharpInlineDeclarationDiagnosticAnalyzer.cs (1)
230var allLocations = ImmutableArray.Create(
src\Analyzers\CSharp\Analyzers\InvokeDelegateWithConditionalAccess\InvokeDelegateWithConditionalAccessAnalyzer.cs (1)
172ImmutableArray<Location> additionalLocations,
src\Analyzers\CSharp\Analyzers\MakeLocalFunctionStatic\MakeLocalFunctionStaticHelper.cs (1)
43public static bool CanMakeLocalFunctionStaticByRefactoringCaptures(LocalFunctionStatementSyntax localFunction, SemanticModel semanticModel, out ImmutableArray<ISymbol> captures)
src\Analyzers\CSharp\Analyzers\MatchFolderAndNamespace\CSharpMatchFolderAndNamespaceDiagnosticAnalyzer.cs (1)
36protected override ImmutableArray<SyntaxKind> GetSyntaxKindsToAnalyze()
src\Analyzers\CSharp\Analyzers\NamingStyle\CSharpNamingStyleDiagnosticAnalyzer.cs (1)
17protected override ImmutableArray<SyntaxKind> SupportedSyntaxKinds { get; } =
src\Analyzers\CSharp\Analyzers\NewLines\EmbeddedStatementPlacement\EmbeddedStatementPlacementDiagnosticAnalyzer.cs (1)
73var additionalLocations = ImmutableArray.Create(statement.GetLocation());
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryCast\CSharpRemoveUnnecessaryCastDiagnosticAnalyzer.cs (1)
23protected override ImmutableArray<SyntaxKind> SyntaxKindsOfInterest { get; } =
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryImports\CSharpRemoveUnnecessaryImportsDiagnosticAnalyzer.cs (3)
37protected override ImmutableArray<SyntaxNode> MergeImports(ImmutableArray<UsingDirectiveSyntax> unnecessaryImports) 38=> ImmutableArray<SyntaxNode>.CastUp(unnecessaryImports);
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryNullableDirective\CSharpRemoveUnnecessaryNullableDirectiveDiagnosticAnalyzer.cs (6)
82private static ImmutableArray<TextSpan> AnalyzeCodeBlock(CodeBlockAnalysisContext context, int positionOfFirstReducingNullableDirective) 89private ImmutableArray<Diagnostic> AnalyzeSemanticModel(SemanticModelAnalysisContext context, int positionOfFirstReducingNullableDirective, TextSpanMutableIntervalTree? codeBlockIntervalTree, TextSpanMutableIntervalTree? possibleNullableImpactIntervalTree) 221public bool TryReportNullableImpactingSpans(TextSpan span, ImmutableArray<TextSpan> nullableImpactingSpans) 225private bool TryProceedOrReportNullableImpactingSpans(TextSpan span, ImmutableArray<TextSpan>? nullableImpactingSpans) 287var nullableImpactingSpans = CSharpRemoveUnnecessaryNullableDirectiveDiagnosticAnalyzer.AnalyzeCodeBlock(context, syntaxTreeState.PositionOfFirstReducingNullableDirective.Value); 315var diagnostics = _analyzer.AnalyzeSemanticModel(context, positionOfFirstReducingNullableDirective, syntaxTreeState.IntervalTree, syntaxTreeState.PossibleNullableImpactIntervalTree);
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryNullableDirective\NullableImpactingSpanWalker.cs (3)
28private ImmutableArray<TextSpan>.Builder? _spans; 32public ImmutableArray<TextSpan> Spans => _spans?.ToImmutable() ?? []; 34public ImmutableArray<TextSpan>.Builder SpansBuilder
src\Analyzers\CSharp\Analyzers\RemoveUnreachableCode\CSharpRemoveUnreachableCodeDiagnosticAnalyzer.cs (5)
60var diagnostics = semanticModel.GetDiagnostics(context.FilterSpan, cancellationToken); 121var additionalLocations = ImmutableArray.Create(firstStatementLocation); 131var sections = RemoveUnreachableCodeHelpers.GetSubsequentUnreachableSections(firstUnreachableStatement); 132foreach (var section in sections) 140var additionalUnnecessaryLocations = ImmutableArray.Create(location);
src\Analyzers\CSharp\Analyzers\RemoveUnreachableCode\RemoveUnreachableCodeHelpers.cs (6)
15public static ImmutableArray<ImmutableArray<StatementSyntax>> GetSubsequentUnreachableSections(StatementSyntax firstUnreachableStatement) 17ImmutableArray<StatementSyntax> siblingStatements; 58var sections = ArrayBuilder<ImmutableArray<StatementSyntax>>.GetInstance(); 99private static void AddIfNonEmpty(ArrayBuilder<ImmutableArray<StatementSyntax>> sections, ImmutableArray<StatementSyntax> lastSection)
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForArrayDiagnosticAnalyzer.cs (6)
54var matches = TryGetMatches(semanticModel, arrayCreationExpression, replacementExpression, expressionType, allowSemanticsChange, cancellationToken, out var changesSemantics); 61public static ImmutableArray<CollectionMatch<StatementSyntax>> TryGetMatches( 72var matches = UseCollectionExpressionHelpers.TryGetMatches( 118public static ImmutableArray<CollectionMatch<StatementSyntax>> TryGetMatches( 208var locations = ImmutableArray.Create(expression.GetLocation()); 217var additionalUnnecessaryLocations = ImmutableArray.Create(
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForBuilderDiagnosticAnalyzer.cs (7)
52var locations = ImmutableArray.Create(invocationExpression.GetLocation()); 66void FadeOutCode(SyntaxNodeAnalysisContext context, AnalysisResult analysisResult, ImmutableArray<Location> locations) 68var additionalUnnecessaryLocations = ImmutableArray.Create( 221is nameof(ImmutableArray<int>.Builder.ToImmutable) 222or nameof(ImmutableArray<int>.Builder.MoveToImmutable) 223or nameof(ImmutableArray<int>.Builder.ToArray) 253ImmutableArray<CollectionMatch<SyntaxNode>> Matches,
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForCreateDiagnosticAnalyzer.cs (2)
49var locations = ImmutableArray.Create(invocationExpression.GetLocation()); 60var additionalUnnecessaryLocations = ImmutableArray.Create(
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForFluentDiagnosticAnalyzer.cs (4)
42private static readonly ImmutableArray<string> s_suffixes = 57nameof(ImmutableArray<int>), 466ImmutableArray<CollectionMatch<ArgumentSyntax>> PreMatches, 467ImmutableArray<CollectionMatch<ArgumentSyntax>> PostMatches,
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForNewDiagnosticAnalyzer.cs (2)
74var locations = ImmutableArray.Create(objectCreationExpression.GetLocation()); 85var additionalUnnecessaryLocations = ImmutableArray.Create(
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForStackAllocDiagnosticAnalyzer.cs (6)
60var locations = ImmutableArray.Create(expression.GetLocation()); 69var additionalUnnecessaryLocations = ImmutableArray.Create( 96var matches = TryGetMatches(semanticModel, expression, expressionType, allowSemanticsChange, cancellationToken); 100var locations = ImmutableArray.Create(expression.GetLocation()); 109var additionalUnnecessaryLocations = ImmutableArray.Create( 123public static ImmutableArray<CollectionMatch<StatementSyntax>> TryGetMatches(
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\UseCollectionExpressionHelpers.cs (3)
353var constructors = namedType.Constructors; 377IMethodSymbol? GetAccessibleInstanceConstructor(ImmutableArray<IMethodSymbol> constructors, Func<IMethodSymbol, bool> predicate) 734public static ImmutableArray<CollectionMatch<StatementSyntax>> TryGetMatches<TArrayCreationExpressionSyntax>(
src\Analyzers\CSharp\Analyzers\UseCollectionInitializer\CSharpUseCollectionInitializerDiagnosticAnalyzer.cs (2)
53ImmutableArray<CollectionMatch<SyntaxNode>> preMatches, 66static IEnumerable<CollectionElementSyntax> GetMatchElements(ImmutableArray<CollectionMatch<SyntaxNode>> preMatches)
src\Analyzers\CSharp\Analyzers\UseCompoundAssignment\Utilities.cs (1)
12public static readonly ImmutableArray<(SyntaxKind, SyntaxKind, SyntaxKind)> Kinds =
src\Analyzers\CSharp\Analyzers\UseDeconstruction\CSharpUseDeconstructionDiagnosticAnalyzer.cs (3)
93out ImmutableArray<MemberAccessExpressionSyntax> memberAccessExpressions, 123out ImmutableArray<MemberAccessExpressionSyntax> memberAccessExpressions, 142out ImmutableArray<MemberAccessExpressionSyntax> memberAccessExpressions,
src\Analyzers\CSharp\Analyzers\UseExpressionBody\Helpers\UseExpressionBodyHelper.cs (2)
22public abstract ImmutableArray<SyntaxKind> SyntaxKinds { get; } 35public static readonly ImmutableArray<UseExpressionBodyHelper> Helpers =
src\Analyzers\CSharp\Analyzers\UseExpressionBody\Helpers\UseExpressionBodyHelper`1.cs (2)
35public override ImmutableArray<SyntaxKind> SyntaxKinds { get; } 43ImmutableArray<SyntaxKind> syntaxKinds)
src\Analyzers\CSharp\Analyzers\UseExpressionBody\UseExpressionBodyDiagnosticAnalyzer.cs (5)
20private readonly ImmutableArray<SyntaxKind> _syntaxKinds; 22private static readonly ImmutableArray<UseExpressionBodyHelper> _helpers = UseExpressionBodyHelper.Helpers; 30private static ImmutableArray<(DiagnosticDescriptor, IOption2)> GetSupportedDescriptorsWithOptions() 104var additionalLocations = ImmutableArray.Create(declaration.GetLocation()); 123var additionalLocations = ImmutableArray.Create(declaration.GetLocation());
src\Analyzers\CSharp\Analyzers\UseExpressionBodyForLambda\UseExpressionBodyForLambdaDiagnosticAnalyzer.cs (2)
78var additionalLocations = ImmutableArray.Create(declaration.GetLocation()); 93var additionalLocations = ImmutableArray.Create(declaration.GetLocation());
src\Analyzers\CSharp\Analyzers\UseLocalFunction\CSharpUseLocalFunctionDiagnosticAnalyzer.cs (3)
122if (!CanReplaceAnonymousWithLocalFunction(semanticModel, expressionType, local, block, anonymousFunction, out var referenceLocations, cancellationToken)) 133var additionalLocations = ImmutableArray.Create( 238AnonymousFunctionExpressionSyntax anonymousFunction, out ImmutableArray<Location> referenceLocations, CancellationToken cancellationToken)
src\Analyzers\CSharp\Analyzers\UseNameofInNullableAttribute\CSharpUseNameofInNullableAttributeDiagnosticAnalyzer.cs (1)
102var symbols = semanticModel.LookupSymbols(argument.Expression.SpanStart, name: stringValue);
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpIsAndCastCheckDiagnosticAnalyzer.cs (1)
148var additionalLocations = ImmutableArray.Create(
src\Analyzers\CSharp\Analyzers\UsePrimaryConstructor\CSharpUsePrimaryConstructorDiagnosticAnalyzer.cs (2)
347var constructors = namedType.InstanceConstructors; 574var symbols = semanticModel.LookupSymbols(operation.Syntax.SpanStart, name: parameter.Name);
src\Analyzers\CSharp\Analyzers\UseSimpleUsingStatement\UseSimpleUsingStatementDiagnosticAnalyzer.cs (1)
169private static bool DeclaredLocalCausesCollision(Dictionary<string, ArrayBuilder<ISymbol>> symbolNameToExistingSymbol, ImmutableArray<ILocalSymbol> locals)
src\Analyzers\CSharp\Analyzers\UseTupleSwap\CSharpUseTupleSwapDiagnosticAnalyzer.cs (1)
113var additionalLocations = ImmutableArray.Create(
src\Analyzers\CSharp\Analyzers\UseUtf8StringLiteral\UseUtf8StringLiteralDiagnosticAnalyzer.cs (5)
91var elements = arrayCreationOperation.Initializer.ElementValues; 118private void ReportParameterArrayDiagnostic(OperationAnalysisContext context, SyntaxNode syntaxNode, ImmutableArray<IOperation> elements, NotificationOption2 notificationOption, ArrayCreationOperationLocation operationLocation) 141var additionalLocations = ImmutableArray.Create(syntaxNode.GetLocation()); 150internal static bool TryConvertToUtf8String(StringBuilder? builder, ImmutableArray<IOperation> arrayCreationElements) 193private static bool TryGetNextRune(ImmutableArray<IOperation> arrayCreationElements, int startIndex, out Rune rune, out int bytesConsumed)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeStyle\CSharpCodeStyleOptions.cs (3)
18private static readonly ImmutableArray<IOption2>.Builder s_editorConfigOptionsBuilder = ImmutableArray.CreateBuilder<IOption2>(); 152private static readonly ImmutableArray<SyntaxKind> s_preferredModifierOrderDefault = 298internal static readonly ImmutableArray<IOption2> EditorConfigOptions = s_editorConfigOptionsBuilder.ToImmutable();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\BlockSyntaxExtensions.cs (3)
53var leadingDirectives = statement.GetLeadingTrivia().Where(IsAnyCodeDirective).ToImmutableArray(); 54var closeBraceLeadingDirectives = block.CloseBraceToken.LeadingTrivia.Where(IsAnyCodeDirective).ToImmutableArray(); 69var conditionalDirectives = firstDirective.GetMatchingConditionalDirectives(cancellationToken);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\DirectiveSyntaxExtensions.cs (2)
51public static ImmutableArray<DirectiveTriviaSyntax> GetMatchingConditionalDirectives(this DirectiveTriviaSyntax directive, CancellationToken cancellationToken) 56if (directiveConditionalMap.TryGetValue(directive, out var result))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.cs (1)
18private static readonly ConditionalWeakTable<MemberDeclarationSyntax, Dictionary<string, ImmutableArray<SyntaxToken>>> s_declarationCache = new();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.LocalDeclarationMap.cs (4)
16private readonly Dictionary<string, ImmutableArray<SyntaxToken>> _dictionary; 18internal LocalDeclarationMap(Dictionary<string, ImmutableArray<SyntaxToken>> dictionary) 21public ImmutableArray<SyntaxToken> this[string identifier] 25return _dictionary.TryGetValue(identifier, out var result)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SemanticModelExtensions.cs (3)
29var results = semanticModel.LookupName(expression, cancellationToken: cancellationToken); 39public static ImmutableArray<ISymbol> LookupName( 102public static ImmutableArray<ISymbol> LookupName(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (5)
570var directives = ((DirectiveTriviaSyntax)structure).GetMatchingConditionalDirectives(cancellationToken); 655public static ImmutableArray<SyntaxTrivia> GetLeadingBlankLines<TSyntaxNode>(this TSyntaxNode node) where TSyntaxNode : SyntaxNode 661public static TSyntaxNode GetNodeWithoutLeadingBlankLines<TSyntaxNode>(this TSyntaxNode node, out ImmutableArray<SyntaxTrivia> strippedTrivia) where TSyntaxNode : SyntaxNode 664public static ImmutableArray<SyntaxTrivia> GetLeadingBannerAndPreprocessorDirectives<TSyntaxNode>(this TSyntaxNode node) where TSyntaxNode : SyntaxNode 670public static TSyntaxNode GetNodeWithoutLeadingBannerAndPreprocessorDirectives<TSyntaxNode>(this TSyntaxNode node, out ImmutableArray<SyntaxTrivia> strippedTrivia) where TSyntaxNode : SyntaxNode
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTriviaListExtensions.cs (3)
45private static ImmutableArray<ImmutableArray<SyntaxTrivia>> GetLeadingBlankLines(SyntaxTriviaList triviaList) 47using var result = TemporaryArray<ImmutableArray<SyntaxTrivia>>.Empty;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\CSharpFormattingOptions2.cs (3)
20private static readonly ImmutableArray<IOption2>.Builder s_editorConfigOptionsBuilder = ImmutableArray.CreateBuilder<IOption2>(); 285internal static readonly ImmutableArray<IOption2> EditorConfigOptions = s_editorConfigOptionsBuilder.ToImmutable(); 290internal static readonly ImmutableArray<IOption2> UndocumentedOptions = [CollectionExpressionWrappingLength];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\CSharpSyntaxFormatting.cs (3)
19private readonly ImmutableArray<AbstractFormattingRule> _rules = 36public override ImmutableArray<AbstractFormattingRule> GetDefaultFormattingRules() 48protected override AbstractFormattingResult Format(SyntaxNode node, SyntaxFormattingOptions options, ImmutableArray<AbstractFormattingRule> formattingRules, SyntaxToken startToken, SyntaxToken endToken, CancellationToken cancellationToken)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\CSharpFormatEngine.cs (1)
18ImmutableArray<AbstractFormattingRule> formattingRules,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Helpers\RemoveUnnecessaryImports\CSharpUnnecessaryImportsProvider.cs (2)
23public override ImmutableArray<UsingDirectiveSyntax> GetUnnecessaryImports( 30var diagnostics = model.GetDiagnostics(cancellationToken: cancellationToken);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Indentation\CSharpSmartTokenFormatter.cs (4)
26private readonly ImmutableArray<AbstractFormattingRule> _formattingRules; 33ImmutableArray<AbstractFormattingRule> formattingRules, 52var smartTokenformattingRules = _formattingRules; 107ImmutableArray<AbstractFormattingRule> smartTokenFormattingRules = [new SmartTokenFormattingRule(), .. _formattingRules];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SelectedMembers\CSharpSelectedMembers.cs (1)
30protected override ImmutableArray<(SyntaxNode declarator, SyntaxToken identifier)> GetDeclaratorsAndIdentifiers(MemberDeclarationSyntax member)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SemanticFacts\CSharpSemanticFacts.cs (6)
197public ImmutableArray<IMethodSymbol> GetDeconstructionAssignmentMethods(SemanticModel semanticModel, SyntaxNode node) 209public ImmutableArray<IMethodSymbol> GetDeconstructionForEachMethods(SemanticModel semanticModel, SyntaxNode node) 270public ImmutableArray<ISymbol> GetBestOrAllSymbols(SemanticModel semanticModel, SyntaxNode? node, SyntaxToken token, CancellationToken cancellationToken) 283static ImmutableArray<ISymbol> GetCallingConventionSymbols(SemanticModel model, FunctionPointerUnmanagedCallingConventionSyntax syntax) 296private ImmutableArray<ISymbol> GetSymbolInfo(SemanticModel semanticModel, SyntaxNode node, SyntaxToken token, CancellationToken cancellationToken) 371public ImmutableArray<IMethodSymbol> GetLocalFunctionSymbols(Compilation compilation, ISymbol symbol, CancellationToken cancellationToken)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
1379public ImmutableArray<SyntaxNode> GetMatchingConditionalDirectives(SyntaxNode directive, CancellationToken cancellationToken)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (2)
1452var originalParameters = originalMethodSymbol.Parameters; 1453var rewrittenParameters = rewrittenMethodSymbol.Parameters;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\SpeculationAnalyzer.cs (2)
588protected override ImmutableArray<ArgumentSyntax> GetArguments(ExpressionSyntax expression) 890out ImmutableArray<ILocalSymbol> localVariables)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\TypeStyle\CSharpUseImplicitTypeHelper.cs (1)
225var memberGroup = semanticModel.GetMemberGroup(invocationExpression.Expression, cancellationToken);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\UsingsAndExternAliasesOrganizer.cs (1)
125initialList[0] = initialList[0].GetNodeWithoutLeadingBannerAndPreprocessorDirectives(out var leadingTrivia);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (354)
src\Analyzers\CSharp\CodeFixes\AddAnonymousTypeMemberName\CSharpAddAnonymousTypeMemberNameCodeFixProvider.cs (1)
27public override ImmutableArray<string> FixableDiagnosticIds { get; }
src\Analyzers\CSharp\CodeFixes\AddBraces\CSharpAddBracesCodeFixProvider.cs (2)
22public override ImmutableArray<string> FixableDiagnosticIds 32Document document, ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\CSharp\CodeFixes\AddExplicitCast\CSharpAddExplicitCastCodeFixProvider.cs (1)
38public override ImmutableArray<string> FixableDiagnosticIds => [CS0266, CS1503];
src\Analyzers\CSharp\CodeFixes\AddInheritdoc\AddInheritdocCodeFixProvider.cs (2)
34public override ImmutableArray<string> FixableDiagnosticIds => [CS1591]; 67protected override async Task FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\CSharp\CodeFixes\AddObsoleteAttribute\CSharpAddObsoleteAttributeCodeFixProvider.cs (1)
21public override ImmutableArray<string> FixableDiagnosticIds { get; } =
src\Analyzers\CSharp\CodeFixes\AddParameter\CSharpAddParameterCodeFixProvider.cs (5)
38private static readonly ImmutableArray<string> AddParameterFixableDiagnosticIds = [CS1501, CS1503, CS1660, CS1729, CS1739]; 40public override ImmutableArray<string> FixableDiagnosticIds 43protected override ImmutableArray<string> TooManyArgumentsDiagnosticIds 46protected override ImmutableArray<string> CannotConvertDiagnosticIds 74var methodCandidates = type.InstanceConstructors;
src\Analyzers\CSharp\CodeFixes\AliasAmbiguousType\CSharpAliasAmbiguousTypeCodeFixProvider.cs (1)
25public override ImmutableArray<string> FixableDiagnosticIds
src\Analyzers\CSharp\CodeFixes\AssignOutParameters\AbstractAssignOutParametersCodeFixProvider.cs (8)
26public sealed override ImmutableArray<string> FixableDiagnosticIds { get; } = 95private static async Task<MultiDictionary<SyntaxNode, (SyntaxNode exprOrStatement, ImmutableArray<IParameterSymbol>)>> GetUnassignedParametersAsync( 96Document document, ImmutableArray<Diagnostic> diagnostics, CancellationToken cancellationToken) 105var result = new MultiDictionary<SyntaxNode, (SyntaxNode exprOrStatement, ImmutableArray<IParameterSymbol>)>(); 136Document document, ImmutableArray<Diagnostic> diagnostics, 151MultiDictionary<SyntaxNode, (SyntaxNode exprOrStatement, ImmutableArray<IParameterSymbol> unassignedParameters)>.ValueSet values, 154protected static ImmutableArray<SyntaxNode> GenerateAssignmentStatements( 155SyntaxGenerator generator, ImmutableArray<IParameterSymbol> unassignedParameters)
src\Analyzers\CSharp\CodeFixes\AssignOutParameters\AssignOutParametersAboveReturnCodeFixProvider.cs (2)
33MultiDictionary<SyntaxNode, (SyntaxNode exprOrStatement, ImmutableArray<IParameterSymbol> unassignedParameters)>.ValueSet values, 44SyntaxEditor editor, SyntaxNode exprOrStatement, ImmutableArray<SyntaxNode> statements)
src\Analyzers\CSharp\CodeFixes\AssignOutParameters\AssignOutParametersAtStartCodeFixProvider.cs (2)
57MultiDictionary<SyntaxNode, (SyntaxNode exprOrStatement, ImmutableArray<IParameterSymbol> unassignedParameters)>.ValueSet values, 68var originalStatements = generator.GetStatements(container).ToImmutableArray();
src\Analyzers\CSharp\CodeFixes\ConditionalExpressionInStringInterpolation\CSharpAddParenthesesAroundConditionalExpressionInInterpolatedStringCodeFixProvider.cs (1)
33public override ImmutableArray<string> FixableDiagnosticIds => [CS8361];
src\Analyzers\CSharp\CodeFixes\ConvertNamespace\ConvertNamespaceCodeFixProvider.cs (2)
29public override ImmutableArray<string> FixableDiagnosticIds 52Document document, ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\CSharp\CodeFixes\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionCodeFixProvider.cs (2)
34public override ImmutableArray<string> FixableDiagnosticIds 52Document document, ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\CSharp\CodeFixes\ConvertToAsync\CSharpConvertToAsyncMethodCodeFixProvider.cs (1)
28public override ImmutableArray<string> FixableDiagnosticIds => [CS4008];
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordEngine.cs (11)
54var positionalParameterInfos = PositionalParameterInfo.GetPropertiesForPositionalParameters( 82ImmutableArray<PositionalParameterInfo> positionalParameterInfos, 178var expressions = ConvertToRecordHelpers 333(ConstructorDeclarationSyntax? constructor, ImmutableArray<IPropertySymbol> propertiesToAssign) TryFindPrimaryConstructor() 363constructorOperation, propertiesToAssign, constructorSymbol.Parameters, out var orderedPropertiesToAssign)) 473ImmutableArray<IPropertySymbol> positionalParameters, 509var expressions = ConvertToRecordHelpers.GetAssignmentValuesFromObjectCreation( 574ImmutableArray<PositionalParameterInfo> propertyResults, 750ImmutableArray<PositionalParameterInfo> propertyResults, 773var paramContent = ImmutableArray<XmlNodeSyntax>.Empty;
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordHelpers.cs (21)
26ImmutableArray<IFieldSymbol> expectedComparedFields) 59var actualFields = GetEqualizedFields(methodBodyOperation, methodSymbol); 78ImmutableArray<IFieldSymbol> expectedHashedFields) 184ImmutableArray<IPropertySymbol> properties, 185ImmutableArray<IParameterSymbol> parameters, 186out ImmutableArray<IPropertySymbol> orderedProperties) 228ImmutableArray<IFieldSymbol> fields, 288public static ImmutableArray<ExpressionSyntax> GetAssignmentValuesForNonPrimaryConstructor( 290ImmutableArray<IPropertySymbol> positionalParams) 299IInvocationOperation { Arguments: ImmutableArray<IArgumentOperation> args }) 333var expressions = GetAssignmentExpressionsFromValuesMap(positionalParams, assignmentValues); 360public static ImmutableArray<ExpressionSyntax> GetAssignmentValuesFromObjectCreation( 362ImmutableArray<IPropertySymbol> positionalParams) 373Arguments: ImmutableArray<IArgumentOperation> { IsEmpty: true }, 392var expressions = GetAssignmentExpressionsFromValuesMap(positionalParams, dictionaryBuilder.ToImmutable()); 401private static ImmutableArray<ExpressionSyntax> GetAssignmentExpressionsFromValuesMap( 402ImmutableArray<IPropertySymbol> positionalParams, 493private static ImmutableArray<IFieldSymbol> GetEqualizedFields( 504var bodyOps = body.Operations; 957ImmutableArray<IOperation> bodyOps, 1070: ImmutableArray<IOperation>.Empty))
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\CSharpConvertToRecordCodeFixProvider.cs (1)
26public override ImmutableArray<string> FixableDiagnosticIds
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\PositionalParameterInfo.cs (4)
35public static ImmutableArray<PositionalParameterInfo> GetPropertiesForPositionalParameters( 36ImmutableArray<PropertyDeclarationSyntax> properties, 47var inheritedProperties = GetInheritedPositionalParams(type, cancellationToken); 74public static ImmutableArray<IPropertySymbol> GetInheritedPositionalParams(
src\Analyzers\CSharp\CodeFixes\DisambiguateSameVariable\CSharpDisambiguateSameVariableCodeFixProvider.cs (2)
35public override ImmutableArray<string> FixableDiagnosticIds { get; } = [CS1717, CS1718]; 133Document document, ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\CSharp\CodeFixes\DocumentationComments\CSharpAddDocCommentNodesCodeFixProvider.cs (2)
30public override ImmutableArray<string> FixableDiagnosticIds { get; } = [CS1573]; 59protected override ImmutableArray<string> GetParameterNames(MemberDeclarationSyntax member)
src\Analyzers\CSharp\CodeFixes\DocumentationComments\CSharpRemoveDocCommentNodeCodeFixProvider.cs (1)
36public override ImmutableArray<string> FixableDiagnosticIds { get; } = [CS1571, CS1572, CS1710];
src\Analyzers\CSharp\CodeFixes\FixIncorrectConstraint\CSharpFixIncorrectConstraintCodeFixProvider.cs (2)
28public override ImmutableArray<string> FixableDiagnosticIds => [CS9010, CS9011]; 77Document document, ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\CSharp\CodeFixes\FixReturnType\CSharpFixReturnTypeCodeFixProvider.cs (4)
34public override ImmutableArray<string> FixableDiagnosticIds => ["CS0127", "CS1997", "CS0201"]; 39var diagnostics = context.Diagnostics; 62Document document, ImmutableArray<Diagnostic> diagnostics, CancellationToken cancellationToken) 127protected override async Task FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\CSharp\CodeFixes\GenerateConstructor\CSharpGenerateConstructorService.cs (6)
46out ImmutableArray<Argument<ExpressionSyntax>> arguments, 70private static ImmutableArray<Argument<ExpressionSyntax>> GetArguments(SeparatedSyntaxList<ArgumentSyntax> arguments) 73private static ImmutableArray<Argument<ExpressionSyntax>> GetArguments(SeparatedSyntaxList<AttributeArgumentSyntax> arguments) 84out ImmutableArray<Argument<ExpressionSyntax>> arguments, 116out ImmutableArray<Argument<ExpressionSyntax>> arguments, 151out ImmutableArray<Argument<ExpressionSyntax>> arguments,
src\Analyzers\CSharp\CodeFixes\GenerateConstructor\GenerateConstructorCodeFixProvider.cs (2)
41public override ImmutableArray<string> FixableDiagnosticIds => GenerateConstructorDiagnosticIds.AllDiagnosticIds; 43protected override Task<ImmutableArray<CodeAction>> GetCodeActionsAsync(
src\Analyzers\CSharp\CodeFixes\GenerateConstructor\GenerateConstructorDiagnosticIds.cs (3)
18public static readonly ImmutableArray<string> AllDiagnosticIds = 21public static readonly ImmutableArray<string> TooManyArgumentsDiagnosticIds = 24public static readonly ImmutableArray<string> CannotConvertDiagnosticIds =
src\Analyzers\CSharp\CodeFixes\GenerateDefaultConstructors\CSharpGenerateDefaultConstructorsCodeFixProvider.cs (1)
25public override ImmutableArray<string> FixableDiagnosticIds { get; } =
src\Analyzers\CSharp\CodeFixes\GenerateEnumMember\GenerateEnumMemberCodeFixProvider.cs (2)
29public override ImmutableArray<string> FixableDiagnosticIds { get; } = 32protected override Task<ImmutableArray<CodeAction>> GetCodeActionsAsync(Document document, SyntaxNode node, CancellationToken cancellationToken)
src\Analyzers\CSharp\CodeFixes\GenerateMethod\GenerateConversionCodeFixProvider.cs (2)
30public override ImmutableArray<string> FixableDiagnosticIds 58protected override Task<ImmutableArray<CodeAction>> GetCodeActionsAsync(
src\Analyzers\CSharp\CodeFixes\GenerateMethod\GenerateDeconstructMethodCodeFixProvider.cs (1)
33public sealed override ImmutableArray<string> FixableDiagnosticIds => [CS8129];
src\Analyzers\CSharp\CodeFixes\GenerateMethod\GenerateMethodCodeFixProvider.cs (3)
39public static readonly ImmutableArray<string> FixableDiagnosticIds = 51public override ImmutableArray<string> FixableDiagnosticIds { get; } = 81protected override Task<ImmutableArray<CodeAction>> GetCodeActionsAsync(
src\Analyzers\CSharp\CodeFixes\GenerateParameterizedMember\CSharpGenerateDeconstructMethodService.cs (1)
40public override ImmutableArray<IParameterSymbol> TryMakeParameters(SemanticModel semanticModel, SyntaxNode target, CancellationToken cancellationToken)
src\Analyzers\CSharp\CodeFixes\GenerateParameterizedMember\CSharpGenerateParameterizedMemberService.cs (7)
32protected override ImmutableArray<ParameterName> DetermineParameterNames(CancellationToken cancellationToken) 52protected override ImmutableArray<ITypeParameterSymbol> GetCapturedTypeParameters(CancellationToken cancellationToken) 65protected override ImmutableArray<ITypeParameterSymbol> GenerateTypeParameters(CancellationToken cancellationToken) 128protected override ImmutableArray<RefKind> DetermineParameterModifiers(CancellationToken cancellationToken) 131protected override ImmutableArray<ITypeSymbol> DetermineParameterTypes(CancellationToken cancellationToken) 137protected override ImmutableArray<bool> DetermineParameterOptionality(CancellationToken cancellationToken) 149protected override ImmutableArray<ITypeSymbol> DetermineTypeArguments(CancellationToken cancellationToken)
src\Analyzers\CSharp\CodeFixes\GenerateVariable\CSharpGenerateVariableCodeFixProvider.cs (2)
34public override ImmutableArray<string> FixableDiagnosticIds 54protected override async Task<ImmutableArray<CodeAction>> GetCodeActionsAsync(
src\Analyzers\CSharp\CodeFixes\HideBase\HideBaseCodeFixProvider.cs (1)
23public override ImmutableArray<string> FixableDiagnosticIds => [CS0108];
src\Analyzers\CSharp\CodeFixes\ImplementInterface\CSharpImplementInterfaceCodeFixProvider.cs (1)
25public sealed override ImmutableArray<string> FixableDiagnosticIds { get; }
src\Analyzers\CSharp\CodeFixes\ImplementInterface\CSharpImplementInterfaceService.cs (1)
43out SyntaxNode classOrStructDecl, out INamedTypeSymbol classOrStructType, out ImmutableArray<INamedTypeSymbol> interfaceTypes)
src\Analyzers\CSharp\CodeFixes\InlineDeclaration\CSharpInlineDeclarationCodeFixProvider.cs (3)
35public override ImmutableArray<string> FixableDiagnosticIds 45Document document, ImmutableArray<Diagnostic> diagnostics, 240private static ImmutableArray<StatementSyntax> GetStatements(SyntaxNode pseudoBlock)
src\Analyzers\CSharp\CodeFixes\InvokeDelegateWithConditionalAccess\InvokeDelegateWithConditionalAccessCodeFixProvider.cs (2)
31public override ImmutableArray<string> FixableDiagnosticIds { get; } = [IDEDiagnosticIds.InvokeDelegateWithConditionalAccessId]; 45Document document, ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\CSharp\CodeFixes\Iterator\CSharpAddYieldCodeFixProvider.cs (1)
39public override ImmutableArray<string> FixableDiagnosticIds
src\Analyzers\CSharp\CodeFixes\Iterator\CSharpChangeToIEnumerableCodeFixProvider.cs (1)
33public override ImmutableArray<string> FixableDiagnosticIds => [CS1624];
src\Analyzers\CSharp\CodeFixes\MakeAnonymousFunctionStatic\CSharpMakeAnonymousFunctionStaticCodeFixProvider.cs (2)
24public override ImmutableArray<string> FixableDiagnosticIds { get; } = 38protected override Task FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\CSharp\CodeFixes\MakeLocalFunctionStatic\MakeLocalFunctionStaticCodeFixHelper.cs (5)
31ImmutableArray<ISymbol> captures, 43ImmutableArray<ISymbol> captures, 89var parameterAndCapturedSymbols = CreateParameterSymbols(captures.WhereAsArray(c => !c.IsThisParameter())); 208private static ImmutableArray<(IParameterSymbol symbol, ISymbol capture)> CreateParameterSymbols(ImmutableArray<ISymbol> captures)
src\Analyzers\CSharp\CodeFixes\MakeLocalFunctionStatic\MakeLocalFunctionStaticCodeFixProvider.cs (2)
22public override ImmutableArray<string> FixableDiagnosticIds { get; } = 32Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\CSharp\CodeFixes\MakeLocalFunctionStatic\PassInCapturedVariablesAsArgumentsCodeFixProvider.cs (5)
29public override ImmutableArray<string> FixableDiagnosticIds { get; } = [CS8421]; 52protected override Task FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken) 64ImmutableArray<Diagnostic> diagnostics, 65Func<Document, LocalFunctionStatementSyntax, ImmutableArray<ISymbol>, Task> fixer, 89if (MakeLocalFunctionStaticHelper.CanMakeLocalFunctionStaticByRefactoringCaptures(localFunction, semanticModel, out var captures))
src\Analyzers\CSharp\CodeFixes\MakeMemberRequired\CSharpMakeMemberRequiredCodeFixProvider.cs (2)
30public override ImmutableArray<string> FixableDiagnosticIds { get; } = [CS8618]; 107protected override Task FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\CSharp\CodeFixes\MakeMemberStatic\CSharpMakeMemberStaticCodeFixProvider.cs (1)
21public override ImmutableArray<string> FixableDiagnosticIds { get; } = ["CS0708"];
src\Analyzers\CSharp\CodeFixes\MakeMethodAsynchronous\CSharpMakeMethodAsynchronousCodeFixProvider.cs (1)
36public override ImmutableArray<string> FixableDiagnosticIds { get; } =
src\Analyzers\CSharp\CodeFixes\MakeMethodSynchronous\CSharpMakeMethodSynchronousCodeFixProvider.cs (1)
27public override ImmutableArray<string> FixableDiagnosticIds { get; } = [CS1998];
src\Analyzers\CSharp\CodeFixes\MakeRefStruct\MakeRefStructCodeFixProvider.cs (1)
26public override ImmutableArray<string> FixableDiagnosticIds
src\Analyzers\CSharp\CodeFixes\MakeStatementAsynchronous\CSharpMakeStatementAsynchronousCodeFixProvider.cs (2)
30public sealed override ImmutableArray<string> FixableDiagnosticIds => ["CS8414", "CS8418"]; 48Document document, ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\CSharp\CodeFixes\MakeStructFieldsWritable\CSharpMakeStructFieldsWritableCodeFixProvider.cs (2)
25public override ImmutableArray<string> FixableDiagnosticIds 36ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\CSharp\CodeFixes\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyCodeFixProvider.cs (2)
26public override ImmutableArray<string> FixableDiagnosticIds { get; } = 37ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\CSharp\CodeFixes\MakeStructReadOnly\CSharpMakeStructReadOnlyCodeFixProvider.cs (2)
24public override ImmutableArray<string> FixableDiagnosticIds { get; } = 35ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\CSharp\CodeFixes\MakeTypeAbstract\CSharpMakeTypeAbstractCodeFixProvider.cs (1)
19public override ImmutableArray<string> FixableDiagnosticIds { get; } =
src\Analyzers\CSharp\CodeFixes\MakeTypePartial\CSharpMakeTypePartialCodeFixProvider.cs (1)
21public override ImmutableArray<string> FixableDiagnosticIds { get; } = [CS0260];
src\Analyzers\CSharp\CodeFixes\MisplacedUsingDirectives\MisplacedUsingDirectivesCodeFixProvider.cs (8)
47public override ImmutableArray<string> FixableDiagnosticIds => [IDEDiagnosticIds.MoveMisplacedUsingDirectivesDiagnosticId]; 105private static ImmutableArray<UsingDirectiveSyntax> GetAllUsingDirectives(CompilationUnitSyntax compilationUnit) 136ImmutableArray<UsingDirectiveSyntax> allUsingDirectives, 169Document document, CompilationUnitSyntax compilationUnit, ImmutableArray<UsingDirectiveSyntax> allUsingDirectives, CancellationToken cancellationToken) 249private static (BaseNamespaceDeclarationSyntax namespaceWithoutUsings, ImmutableArray<UsingDirectiveSyntax> usingsFromNamespace) RemoveUsingsFromNamespace( 273ImmutableArray<UsingDirectiveSyntax> usingsToAdd) 407private static (CompilationUnitSyntax compilationUnitWithoutHeader, ImmutableArray<SyntaxTrivia> header) RemoveFileHeader( 423private static CompilationUnitSyntax AddFileHeader(CompilationUnitSyntax compilationUnit, ImmutableArray<SyntaxTrivia> fileHeader)
src\Analyzers\CSharp\CodeFixes\NewLines\ArrowExpressionClausePlacement\ArrowExpressionClausePlacementCodeFixProvider.cs (2)
28public override ImmutableArray<string> FixableDiagnosticIds 45Document document, ImmutableArray<Diagnostic> diagnostics, CancellationToken cancellationToken)
src\Analyzers\CSharp\CodeFixes\NewLines\ConditionalExpressionPlacement\ConditionalExpressionPlacementCodeFixProvider.cs (2)
28public override ImmutableArray<string> FixableDiagnosticIds 45Document document, ImmutableArray<Diagnostic> diagnostics, CancellationToken cancellationToken)
src\Analyzers\CSharp\CodeFixes\NewLines\ConsecutiveBracePlacement\ConsecutiveBracePlacementCodeFixProvider.cs (2)
28public override ImmutableArray<string> FixableDiagnosticIds 47public static async Task<Document> FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, CancellationToken cancellationToken)
src\Analyzers\CSharp\CodeFixes\NewLines\ConstructorInitializerPlacement\ConstructorInitializerPlacementCodeFixProvider.cs (2)
27public override ImmutableArray<string> FixableDiagnosticIds 44Document document, ImmutableArray<Diagnostic> diagnostics, CancellationToken cancellationToken)
src\Analyzers\CSharp\CodeFixes\NewLines\EmbeddedStatementPlacement\EmbeddedStatementPlacementCodeFixProvider.cs (2)
30public override ImmutableArray<string> FixableDiagnosticIds 46public static async Task<Document> FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, CancellationToken cancellationToken)
src\Analyzers\CSharp\CodeFixes\Nullable\CSharpDeclareAsNullableCodeFixProvider.cs (2)
41public sealed override ImmutableArray<string> FixableDiagnosticIds => ["CS8603", "CS8600", "CS8625", "CS8618"]; 76ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\CSharp\CodeFixes\OrderModifiers\CSharpOrderModifiersCodeFixProvider.cs (1)
27protected override ImmutableArray<string> FixableCompilerErrorIds { get; } = [CS0267];
src\Analyzers\CSharp\CodeFixes\RemoveAsyncModifier\CSharpRemoveAsyncModifierCodeFixProvider.cs (1)
28public override ImmutableArray<string> FixableDiagnosticIds { get; } = [CS1998];
src\Analyzers\CSharp\CodeFixes\RemoveConfusingSuppression\CSharpRemoveConfusingSuppressionCodeFixProvider.cs (3)
31public override ImmutableArray<string> FixableDiagnosticIds 37var diagnostics = context.Diagnostics; 58Document document, ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\CSharp\CodeFixes\RemoveInKeyword\RemoveInKeywordCodeFixProvider.cs (1)
31public override ImmutableArray<string> FixableDiagnosticIds => [CS1615];
src\Analyzers\CSharp\CodeFixes\RemoveNewModifier\RemoveNewModifierCodeFixProvider.cs (1)
29public override ImmutableArray<string> FixableDiagnosticIds => [CS0109];
src\Analyzers\CSharp\CodeFixes\RemoveUnnecessaryCast\CSharpRemoveUnnecessaryCastCodeFixProvider.cs (2)
29public sealed override ImmutableArray<string> FixableDiagnosticIds { get; } = 39Document document, ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\CSharp\CodeFixes\RemoveUnnecessaryDiscardDesignation\CSharpRemoveUnnecessaryDiscardDesignationCodeFixProvider.cs (2)
25public override ImmutableArray<string> FixableDiagnosticIds 35Document document, ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\CSharp\CodeFixes\RemoveUnnecessaryLambdaExpression\CSharpRemoveUnnecessaryLambdaExpressionCodeFixProvider.cs (2)
31public override ImmutableArray<string> FixableDiagnosticIds 41Document document, ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\CSharp\CodeFixes\RemoveUnnecessaryNullableDirective\CSharpRemoveUnnecessaryNullableDirectiveCodeFixProvider.cs (2)
30public override ImmutableArray<string> FixableDiagnosticIds 51ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\CSharp\CodeFixes\RemoveUnreachableCode\CSharpRemoveUnreachableCodeCodeFixProvider.cs (4)
24public override ImmutableArray<string> FixableDiagnosticIds { get; } = 52ImmutableArray<Diagnostic> diagnostics, 67var sections = RemoveUnreachableCodeHelpers.GetSubsequentUnreachableSections(firstUnreachableStatement); 68foreach (var section in sections)
src\Analyzers\CSharp\CodeFixes\RemoveUnusedLocalFunction\CSharpRemoveUnusedLocalFunctionCodeFixProvider.cs (2)
28public sealed override ImmutableArray<string> FixableDiagnosticIds 42protected override Task FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\CSharp\CodeFixes\ReplaceDefaultLiteral\CSharpReplaceDefaultLiteralCodeFixProvider.cs (1)
30public override ImmutableArray<string> FixableDiagnosticIds { get; } = [CS8313, CS8505];
src\Analyzers\CSharp\CodeFixes\SimplifyLinqExpression\CSharpSimplifyLinqTypeCheckAndCastCodeFixProvider.cs (2)
27public override ImmutableArray<string> FixableDiagnosticIds 38ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\CSharp\CodeFixes\SimplifyPropertyPattern\CSharpSimplifyPropertyPatternCodeFixProvider.cs (2)
29public override ImmutableArray<string> FixableDiagnosticIds { get; } = 39Document document, ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\CSharp\CodeFixes\TransposeRecordKeyword\CSharpTransposeRecordKeywordCodeFixProvider.cs (2)
27public override ImmutableArray<string> FixableDiagnosticIds => [CS9012]; 96Document document, ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\CSharp\CodeFixes\UnsealClass\CSharpUnsealClassCodeFixProvider.cs (1)
21public override ImmutableArray<string> FixableDiagnosticIds { get; } = [CS0509];
src\Analyzers\CSharp\CodeFixes\UpdateProjectToAllowUnsafe\CSharpUpdateProjectToAllowUnsafeCodeFixProvider.cs (1)
22public override ImmutableArray<string> FixableDiagnosticIds { get; } =
src\Analyzers\CSharp\CodeFixes\UpgradeProject\CSharpUpgradeProjectCodeFixProvider.cs (3)
20public override ImmutableArray<string> FixableDiagnosticIds { get; } = 65public override string SuggestedVersion(ImmutableArray<Diagnostic> diagnostics) 68private static LanguageVersion RequiredVersion(ImmutableArray<Diagnostic> diagnostics)
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpCollectionExpressionRewriter.cs (9)
40ImmutableArray<CollectionMatch<TMatchNode>> preMatches, 41ImmutableArray<CollectionMatch<TMatchNode>> postMatches, 345ImmutableArray<CollectionMatch<TMatchNode>> matches, 471var expressions = ConvertExpressions(expressionStatement.Expression, expr => IndentExpression(expressionStatement, expr, preferredIndentation)); 748bool CheckForMultiLine(ImmutableArray<CollectionMatch<TMatchNode>> matches) 803var expressions = ConvertExpressions(expression, indent); 807static ImmutableArray<ExpressionSyntax> ConvertExpressions( 823static ImmutableArray<ExpressionSyntax> ConvertAssignment( 829static ImmutableArray<ExpressionSyntax> ConvertInvocation(
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForArrayCodeFixProvider.cs (3)
33public override ImmutableArray<string> FixableDiagnosticIds { get; } = [IDEDiagnosticIds.UseCollectionExpressionForArrayDiagnosticId]; 67var matches = GetMatches(semanticModel, arrayCreationExpression, expressionType); 100ImmutableArray<CollectionMatch<StatementSyntax>> GetMatches(
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForBuilderCodeFixProvider.cs (1)
35public override ImmutableArray<string> FixableDiagnosticIds { get; } = [IDEDiagnosticIds.UseCollectionExpressionForBuilderDiagnosticId];
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForCreateCodeFixProvider.cs (1)
34public override ImmutableArray<string> FixableDiagnosticIds { get; } = [IDEDiagnosticIds.UseCollectionExpressionForCreateDiagnosticId];
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForEmptyCodeFixProvider.cs (1)
32public override ImmutableArray<string> FixableDiagnosticIds { get; } = [IDEDiagnosticIds.UseCollectionExpressionForEmptyDiagnosticId];
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForFluentCodeFixProvider.cs (6)
42public override ImmutableArray<string> FixableDiagnosticIds { get; } = [IDEDiagnosticIds.UseCollectionExpressionForFluentDiagnosticId]; 90var preMatches = CreateMatches(dummyObjectCreation.ArgumentList.Arguments, analysisResult.PreMatches, index: 0); 91var postMatches = CreateMatches(dummyObjectCreation.ArgumentList.Arguments, analysisResult.PostMatches, index: preMatches.Length); 104static ImmutableArray<CollectionMatch<ExpressionSyntax>> CreateMatches( 106ImmutableArray<CollectionMatch<ArgumentSyntax>> matches, 143ImmutableArray<CollectionMatch<ArgumentSyntax>> matches,
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForNewCodeFixProvider.cs (1)
33public override ImmutableArray<string> FixableDiagnosticIds { get; } = [IDEDiagnosticIds.UseCollectionExpressionForNewDiagnosticId];
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForStackAllocCodeFixProvider.cs (3)
29public override ImmutableArray<string> FixableDiagnosticIds { get; } = [IDEDiagnosticIds.UseCollectionExpressionForStackAllocDiagnosticId]; 43var matches = GetMatches(); 73ImmutableArray<CollectionMatch<StatementSyntax>> GetMatches()
src\Analyzers\CSharp\CodeFixes\UseCollectionInitializer\CSharpUseCollectionInitializerCodeFixProvider.cs (2)
40ImmutableArray<CollectionMatch<SyntaxNode>> preMatches, 41ImmutableArray<CollectionMatch<SyntaxNode>> postMatches,
src\Analyzers\CSharp\CodeFixes\UseCollectionInitializer\CSharpUseCollectionInitializerCodeFixProvider_CollectionExpression.cs (2)
24ImmutableArray<CollectionMatch<SyntaxNode>> preMatches, 25ImmutableArray<CollectionMatch<SyntaxNode>> postMatches,
src\Analyzers\CSharp\CodeFixes\UseCollectionInitializer\CSharpUseCollectionInitializerCodeFixProvider_CollectionInitializer.cs (1)
27ImmutableArray<CollectionMatch<SyntaxNode>> matches)
src\Analyzers\CSharp\CodeFixes\UseCompoundAssignment\CSharpUseCompoundCoalesceAssignmentCodeFixProvider.cs (2)
31public override ImmutableArray<string> FixableDiagnosticIds { get; } = 41Document document, ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\CSharp\CodeFixes\UseDeconstruction\CSharpUseDeconstructionCodeFixProvider.cs (3)
30public override ImmutableArray<string> FixableDiagnosticIds 40Document document, ImmutableArray<Diagnostic> diagnostics, 71ImmutableArray<MemberAccessExpressionSyntax> memberAccessExpressions = default;
src\Analyzers\CSharp\CodeFixes\UseDefaultLiteral\CSharpUseDefaultLiteralCodeFixProvider.cs (2)
25public override ImmutableArray<string> FixableDiagnosticIds { get; } 35Document document, ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\CSharp\CodeFixes\UseExplicitArrayInExpressionTree\CSharpUseExplicitArrayInExpressionTreeCodeFixProvider.cs (3)
30public override ImmutableArray<string> FixableDiagnosticIds => [CS9226]; 43var memberGroup = semanticModel.GetMemberGroup(invocationExpression.Expression, cancellationToken); 115protected override async Task FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\CSharp\CodeFixes\UseExplicitTypeForConst\UseExplicitTypeForConstCodeFixProvider.cs (1)
26public override ImmutableArray<string> FixableDiagnosticIds { get; } = [CS0822];
src\Analyzers\CSharp\CodeFixes\UseExpressionBody\UseExpressionBodyCodeFixProvider.cs (3)
26public sealed override ImmutableArray<string> FixableDiagnosticIds { get; } 28private static readonly ImmutableArray<UseExpressionBodyHelper> _helpers = UseExpressionBodyHelper.Helpers; 54Document document, ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\CSharp\CodeFixes\UseExpressionBodyForLambda\UseExpressionBodyForLambdaCodeFixProvider.cs (3)
25public override ImmutableArray<string> FixableDiagnosticIds { get; } = [IDEDiagnosticIds.UseExpressionBodyForLambdaExpressionsDiagnosticId]; 42protected override Task FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken) 45private static async Task FixAllImplAsync(Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\CSharp\CodeFixes\UseImplicitObjectCreation\CSharpUseImplicitObjectCreationCodeFixProvider.cs (2)
32public override ImmutableArray<string> FixableDiagnosticIds 45Document document, ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\CSharp\CodeFixes\UseImplicitOrExplicitType\UseExplicitTypeCodeFixProvider.cs (3)
32public override ImmutableArray<string> FixableDiagnosticIds 42Document document, ImmutableArray<Diagnostic> diagnostics, 177var elements = ((INamedTypeSymbol)typeSymbol).TupleElements;
src\Analyzers\CSharp\CodeFixes\UseImplicitOrExplicitType\UseImplicitTypeCodeFixProvider.cs (2)
23public override ImmutableArray<string> FixableDiagnosticIds 33Document document, ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\CSharp\CodeFixes\UseIndexOrRangeOperator\CSharpUseIndexOperatorCodeFixProvider.cs (2)
26public override ImmutableArray<string> FixableDiagnosticIds { get; } = 36Document document, ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\CSharp\CodeFixes\UseIndexOrRangeOperator\CSharpUseRangeOperatorCodeFixProvider.cs (2)
36public override ImmutableArray<string> FixableDiagnosticIds { get; } = 46Document document, ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\CSharp\CodeFixes\UseInterpolatedVerbatimString\CSharpUseInterpolatedVerbatimStringCodeFixProvider.cs (2)
25public override ImmutableArray<string> FixableDiagnosticIds => ["CS8401"]; 36Document document, ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\CSharp\CodeFixes\UseIsNullCheck\CSharpUseIsNullCheckForCastAndEqualityOperatorCodeFixProvider.cs (2)
31public override ImmutableArray<string> FixableDiagnosticIds 54Document document, ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\CSharp\CodeFixes\UseIsNullCheck\CSharpUseNullCheckOverTypeCheckCodeFixProvider.cs (2)
29public override ImmutableArray<string> FixableDiagnosticIds 39Document document, ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\CSharp\CodeFixes\UseLocalFunction\CSharpUseLocalFunctionCodeFixProvider.cs (4)
39public override ImmutableArray<string> FixableDiagnosticIds 52Document document, ImmutableArray<Diagnostic> diagnostics, 141var capturedVariables = dataFlow.Captured.Remove(localSymbol); 178ImmutableArray<ExpressionSyntax> references)
src\Analyzers\CSharp\CodeFixes\UseNameofInAttribute\CSharpUseNameofInAttributeCodeFixProvider.cs (2)
25public override ImmutableArray<string> FixableDiagnosticIds { get; } = [IDEDiagnosticIds.UseNameofInAttributeDiagnosticId]; 38ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\CSharp\CodeFixes\UseObjectInitializer\CSharpUseObjectInitializerCodeFixProvider.cs (3)
53ImmutableArray<ObjectInitializerMatch> matches) 63ImmutableArray<ObjectInitializerMatch> matches) 73ImmutableArray<ObjectInitializerMatch> matches)
src\Analyzers\CSharp\CodeFixes\UsePatternCombinators\CSharpUsePatternCombinatorsCodeFixProvider.cs (2)
48public override ImmutableArray<string> FixableDiagnosticIds 73Document document, ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\CSharp\CodeFixes\UsePatternMatching\CSharpAsAndMemberAccessCodeFixProvider.cs (2)
30public override ImmutableArray<string> FixableDiagnosticIds 40Document document, ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\CSharp\CodeFixes\UsePatternMatching\CSharpAsAndNullCheckCodeFixProvider.cs (2)
30public override ImmutableArray<string> FixableDiagnosticIds 40Document document, ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\CSharp\CodeFixes\UsePatternMatching\CSharpIsAndCastCheckCodeFixProvider.cs (3)
27public override ImmutableArray<string> FixableDiagnosticIds 37Document document, ImmutableArray<Diagnostic> diagnostics, 86ImmutableArray<SyntaxTrivia> trivia,
src\Analyzers\CSharp\CodeFixes\UsePatternMatching\CSharpUseNotPatternCodeFixProvider.cs (2)
25public override ImmutableArray<string> FixableDiagnosticIds 35Document document, ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\CSharp\CodeFixes\UsePrimaryConstructor\CSharpUsePrimaryConstructorCodeFixProvider.cs (4)
46public override ImmutableArray<string> FixableDiagnosticIds 189var triviaToMove = GetLeadingCommentTrivia(firstMember); 202ImmutableArray<SyntaxTrivia> GetLeadingCommentTrivia(MemberDeclarationSyntax firstMember) 204var leadingTrivia = firstMember.GetLeadingTrivia().ToImmutableArray();
src\Analyzers\CSharp\CodeFixes\UseSimpleUsingStatement\UseSimpleUsingStatementCodeFixProvider.cs (4)
36public override ImmutableArray<string> FixableDiagnosticIds { get; } = 46Document document, ImmutableArray<Diagnostic> diagnostics, 104ImmutableArray<StatementSyntax> expandedUsingStatements) 118private static ImmutableArray<StatementSyntax> Expand(UsingStatementSyntax usingStatement)
src\Analyzers\CSharp\CodeFixes\UseSystemThreadingLock\CSharpUseSystemThreadingLockCodeFixProvider.cs (1)
29public override ImmutableArray<string> FixableDiagnosticIds { get; }
src\Analyzers\CSharp\CodeFixes\UseThrowExpression\UseThrowExpressionCodeFixProvider.cs (2)
27public override ImmutableArray<string> FixableDiagnosticIds 40Document document, ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\CSharp\CodeFixes\UseTupleSwap\CSharpUseTupleSwapCodeFixProvider.cs (2)
27public override ImmutableArray<string> FixableDiagnosticIds { get; } 37Document document, ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\CSharp\CodeFixes\UseUnboundGenericTypeInNameOf\CSharpUseUnboundGenericTypeInNameOfCodeFixProvider.cs (2)
30public override ImmutableArray<string> FixableDiagnosticIds { get; } 40Document document, ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\CSharp\CodeFixes\UseUtf8StringLiteral\UseUtf8StringLiteralCodeFixProvider.cs (2)
33public override ImmutableArray<string> FixableDiagnosticIds { get; } = 43Document document, ImmutableArray<Diagnostic> diagnostics,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\AttributeGenerator.cs (1)
23ImmutableArray<AttributeData> attributes,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ConstructorGenerator.cs (1)
104private static ArgumentListSyntax GenerateArgumentList(ImmutableArray<SyntaxNode> arguments)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\EventGenerator.cs (1)
150var attributes = @event.GetAttributes();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\NamedTypeGenerator.cs (1)
105ImmutableArray<ISymbol> members,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ParameterGenerator.cs (7)
21ImmutableArray<IParameterSymbol> parameterDefinitions, 25var parameters = GetParameters(parameterDefinitions, isExplicit, info); 31ImmutableArray<IParameterSymbol> parameterDefinitions, 37var parameters = GetParameters(parameterDefinitions, isExplicit, info); 42internal static ImmutableArray<ParameterSyntax> GetParameters( 43ImmutableArray<IParameterSymbol> parameterDefinitions, 123var attributes = parameter.GetAttributes();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\PropertyGenerator.cs (1)
149var attributes = property.GetAttributes();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\TypeParameterGenerator.cs (1)
19ImmutableArray<ITypeParameterSymbol> typeParameters, CSharpCodeGenerationContextInfo info)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Editing\CSharpImportAdder.cs (3)
44ImmutableArray<INamespaceSymbol> namespaceSymbols, 101ImmutableArray<INamespaceSymbol> namespaceSymbols) 108private void AddImportedMembers(ImmutableArray<INamespaceSymbol> namespaceSymbols)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeParameterSymbolExtensions.cs (1)
18this ImmutableArray<ITypeParameterSymbol> typeParameters)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\SemanticModelExtensions.cs (11)
34public static ImmutableArray<ParameterName> GenerateParameterNames( 43public static ImmutableArray<ParameterName> GenerateParameterNames( 52public static ImmutableArray<ParameterName> GenerateParameterNames( 61var isFixed = reservedNames.Select(s => true).Concat( 64var parameterNames = reservedNames.Concat( 70public static ImmutableArray<ParameterName> GenerateNames(IList<string> reservedNames, ImmutableArray<bool> isFixed, ImmutableArray<string> parameterNames) 75public static ImmutableArray<ParameterName> GenerateParameterNames( 84var isFixed = reservedNames.Select(s => true).Concat( 87var parameterNames = reservedNames.Concat(
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpAddImportsService.cs (1)
36protected override ImmutableArray<SyntaxNode> GetGlobalImports(Compilation compilation, SyntaxGenerator generator)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpSemanticFactsService.cs (1)
43var visibleSymbols = semanticModel.LookupSymbols(location.SpanStart);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpSymbolDeclarationService.cs (1)
24public ImmutableArray<SyntaxReference> GetDeclarations(ISymbol symbol)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpSyntaxFactsService.cs (1)
116public Task<ImmutableArray<SyntaxNode>> GetSelectedFieldsAndPropertiesAsync(SyntaxTree tree, TextSpan textSpan, bool allowPartialSelection, CancellationToken cancellationToken)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (19)
720ImmutableArray<ImmutableArray<IParameterSymbol>> parameterizedSymbols, 736ImmutableArray<ImmutableArray<IParameterSymbol>> parameterizedSymbols, 740using var _1 = ArrayBuilder<ImmutableArray<IParameterSymbol>>.GetInstance(out var parameterListsWithMatchingCount); 741using var _2 = ArrayBuilder<ImmutableArray<IParameterSymbol>>.GetInstance(out var parameterListsWithoutMatchingCount); 744foreach (var parameterList in parameterizedSymbols) 771ImmutableArray<ImmutableArray<IParameterSymbol>> parameterizedSymbols, 789foreach (var parameterSet in parameterizedSymbols) 1592private static ImmutableArray<NullableAnnotation> GetNullableAnnotations(ImmutableArray<ITypeSymbol> elementTypes) 2199var laterUsageInference = InferTypeBasedOnLaterUsage(symbol, variableDeclaration); 2207private ImmutableArray<TypeInferenceInfo> InferTypeBasedOnLaterUsage(ISymbol symbol, SyntaxNode afterNode) 2254var inferredFutureUsage = InferTypeBasedOnLaterUsage(symbol, afterNode: left.Parent); 2283if (!TryGetTupleTypesAndNames(tuple.Arguments, out var elementTypes, out var elementNames)) 2294out ImmutableArray<ITypeSymbol> elementTypes, 2295out ImmutableArray<string> elementNames)
Microsoft.CodeAnalysis.CSharp.CodeStyle.UnitTests (13)
src\Analyzers\CSharp\Tests\AbstractBuiltInCodeStyleDiagnosticAnalyzer\AbstractBuiltInCodeStyleDiagnosticAnalyzerTests.cs (1)
35private static ImmutableArray<(DiagnosticDescriptor, ImmutableHashSet<IOption2>)> CreateSupportedDiagnosticsWithOptionsFromIds(IEnumerable<string> ids)
src\Analyzers\CSharp\Tests\AddExplicitCast\AddExplicitCastTests.cs (2)
25protected override ImmutableArray<CodeAction> MassageActions(ImmutableArray<CodeAction> actions)
src\Analyzers\CSharp\Tests\AddParameter\AddParameterTests.cs (2)
28protected override ImmutableArray<CodeAction> MassageActions(ImmutableArray<CodeAction> actions)
src\Analyzers\CSharp\Tests\AliasAmbiguousType\AliasAmbiguousTypeTests.cs (2)
32protected override ImmutableArray<CodeAction> MassageActions(ImmutableArray<CodeAction> actions)
src\Analyzers\CSharp\Tests\ConvertToRecord\ConvertToRecordCodeFixTests.cs (1)
162public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics
src\Analyzers\CSharp\Tests\ReplaceDefaultLiteral\ReplaceDefaultLiteralTests.cs (4)
24private static readonly ImmutableArray<LanguageVersion> s_csharp7_1above = 27private static readonly ImmutableArray<LanguageVersion> s_csharp7below = 38private async Task TestWithLanguageVersionsAsync(string initialMarkup, string expectedMarkup, ImmutableArray<LanguageVersion> versions) 47private async Task TestMissingWithLanguageVersionsAsync(string initialMarkup, ImmutableArray<LanguageVersion> versions)
src\Analyzers\CSharp\Tests\SimplifyInterpolation\SimplifyInterpolationTests.cs (1)
44var diagnostics = await GetDiagnosticsWorkerAsync(workspace, parameters);
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (17)
CommandLineTests.cs (17)
566AssertEx.Equal(ImmutableArray<string>.Empty, parser.ReferencePaths); 2731ImmutableArray<Diagnostic> parseRef(string refText) 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)); 12076private static ImmutableArray<byte> CreateCSharpAnalyzerNetStandard13(string analyzerAssemblyName) 14895public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(_rule); 15921public abstract override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } 15936public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 15960public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 15987public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 16010public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(Warning02); 16029public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics
Microsoft.CodeAnalysis.CSharp.EditorFeatures (35)
AutomaticCompletion\AutomaticLineEnderCommandHandler_Helpers.cs (1)
33ImmutableArray<StatementSyntax> nodesToInsert,
CodeCleanup\CSharpCodeCleanupService.cs (2)
24private static readonly ImmutableArray<DiagnosticSet> s_diagnosticSets = 176protected override ImmutableArray<DiagnosticSet> GetDiagnosticSets()
CommentSelection\CSharpToggleBlockCommentCommandHandler.cs (1)
41protected override ImmutableArray<TextSpan> GetBlockCommentsInDocument(Document document, ITextSnapshot snapshot,
Formatting\CSharpFormattingInteractionService.cs (4)
77public Task<ImmutableArray<TextChange>> GetFormattingChangesAsync( 92public Task<ImmutableArray<TextChange>> GetFormattingChangesOnPasteAsync(Document document, ITextBuffer textBuffer, TextSpan textSpan, CancellationToken cancellationToken) 100public Task<ImmutableArray<TextChange>> GetFormattingChangesOnReturnAsync(Document document, int caretPosition, CancellationToken cancellationToken) 103public Task<ImmutableArray<TextChange>> GetFormattingChangesAsync(Document document, ITextBuffer textBuffer, char typedChar, int position, CancellationToken cancellationToken)
InlineRename\CSharpEditorInlineRenameService.cs (2)
36public override async Task<ImmutableDictionary<string, ImmutableArray<(string filePath, string content)>>> GetRenameContextAsync( 92var contextBuilder = ImmutableDictionary.CreateBuilder<string, ImmutableArray<(string filePath, string content)>>();
Interactive\CSharpInteractiveEvaluatorLanguageInfoProvider.cs (1)
35public override CompilationOptions GetSubmissionCompilationOptions(string name, MetadataReferenceResolver metadataReferenceResolver, SourceReferenceResolver sourceReferenceResolver, ImmutableArray<string> imports)
StringCopyPaste\AbstractPasteProcessor.cs (4)
75protected readonly ImmutableArray<TextSpan> TextContentsSpansAfterPaste; 124public abstract ImmutableArray<TextChange> GetEdits(); 138SourceText textAfterChange, ImmutableArray<TextSpan> textContentSpansAfterChange) 153SourceText textAfterChange, ImmutableArray<TextSpan> textContentSpansAfterChange)
StringCopyPaste\KnownSourcePasteProcessor.cs (5)
50public override ImmutableArray<TextChange> GetEdits() 71private ImmutableArray<TextChange> GetEditsForNonRawString() 122private ImmutableArray<TextChange> GetEditsForRawString() 158out SourceText textAfterBasicPaste, out ImmutableArray<TextSpan> contentSpansAfterBasicPaste) 179private ImmutableArray<TextChange> DetermineTotalEditsToMakeToRawString(
StringCopyPaste\StringCopyPasteCommandHandler.cs (4)
138var textChanges = GetEdits(cancellationToken); 186ImmutableArray<TextChange> GetEdits(CancellationToken cancellationToken) 193var edits = TryGetEditsFromKnownCopySource(newLine, indentationWhitespace); 209ImmutableArray<TextChange> TryGetEditsFromKnownCopySource(
StringCopyPaste\StringCopyPasteData.cs (2)
24internal class StringCopyPasteData(ImmutableArray<StringCopyPasteContent> contents) 26public ImmutableArray<StringCopyPasteContent> Contents { get; } = contents;
StringCopyPaste\StringCopyPasteHelpers.cs (1)
542public static bool RawContentMustBeMultiLine(SourceText text, ImmutableArray<TextSpan> spans)
StringCopyPaste\StringInfo.cs (3)
22ImmutableArray<TextSpan> contentSpans) 60public readonly ImmutableArray<TextSpan> ContentSpans = contentSpans; 98var contentSpans = ImmutableArray.Create(TextSpan.FromBounds(start, end));
StringCopyPaste\UnknownSourcePasteProcessor.cs (5)
44public override ImmutableArray<TextChange> GetEdits() 86private ImmutableArray<TextChange> GetEditsForNonRawString() 102private ImmutableArray<TextChange> GetEditsForRawString() 145/// <inheritdoc cref="AbstractPasteProcessor.GetQuotesToAddToRawString(SourceText, ImmutableArray{TextSpan})" /> 149/// <inheritdoc cref="AbstractPasteProcessor.GetDollarSignsToAddToRawString(SourceText, ImmutableArray{TextSpan})" />
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (269)
Classification\SemanticClassifierTests.cs (2)
34protected override async Task<ImmutableArray<ClassifiedSpan>> GetClassificationSpansAsync(string code, ImmutableArray<TextSpan> spans, ParseOptions? options, TestHost testHost)
Classification\SemanticClassifierTests_TestMarkup.cs (4)
52var spans = ImmutableArray.Create(new TextSpan(start, length)); 59ImmutableArray<TextSpan> spans, 62var actual = await GetClassificationSpansAsync(allCode, spans, options: null, testHost); 119var spans = ImmutableArray.Create(
Classification\SyntacticClassifierTests.cs (2)
21protected override async Task<ImmutableArray<ClassifiedSpan>> GetClassificationSpansAsync(string code, ImmutableArray<TextSpan> spans, ParseOptions? options, TestHost testHost)
Classification\TotalClassifierTests.cs (2)
32protected override async Task<ImmutableArray<ClassifiedSpan>> GetClassificationSpansAsync(string code, ImmutableArray<TextSpan> spans, ParseOptions? options, TestHost testHost)
CodeActions\AddUsing\AddUsingNuGetTests.cs (25)
31private static readonly ImmutableArray<PackageSource> NugetPackageSources = 47protected override ImmutableArray<CodeAction> MassageActions(ImmutableArray<CodeAction> actions) 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)); 378private static ValueTask<ImmutableArray<PackageResult>> CreateSearchResult( 379string packageName, string typeName, ImmutableArray<string> containingNamespaceNames) 386private static ValueTask<ImmutableArray<PackageResult>> CreateSearchResult(params PackageResult[] results) 389private static ImmutableArray<string> CreateNameParts(params string[] parts)
CodeActions\AddUsing\AddUsingTests.cs (1)
4932", ImmutableArray<string>.Empty);
CodeActions\ApplyChangesOperationTests.cs (1)
252var operations = await action.GetOperationsAsync(CancellationToken.None);
CodeActions\GenerateEqualsAndGetHashCodeFromMembers\GenerateEqualsAndGetHashCodeFromMembersTests.cs (6)
37public ImmutableArray<string> MemberNames; 38public Action<ImmutableArray<PickMembersOption>> OptionsCallback; 69internal static void EnableOption(ImmutableArray<PickMembersOption> options, string id) 1101MemberNames = ImmutableArray<string>.Empty, 2130MemberNames = ImmutableArray<string>.Empty, 3254ReferenceAssemblies = ReferenceAssemblies.Default.WithAssemblies(ImmutableArray<string>.Empty),
CodeActions\GenerateType\GenerateTypeTests.cs (10)
32protected override ImmutableArray<CodeAction> MassageActions(ImmutableArray<CodeAction> codeActions) 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\GenerateType\GenerateTypeWithUnboundAnalyzerTests.cs (2)
31protected override ImmutableArray<CodeAction> MassageActions(ImmutableArray<CodeAction> codeActions)
CodeActions\ImplementInterface\ImplementExplicitlyTests.cs (2)
27protected override ImmutableArray<CodeAction> MassageActions(ImmutableArray<CodeAction> actions)
CodeActions\ImplementInterface\ImplementImplicitlyTests.cs (2)
29protected override ImmutableArray<CodeAction> MassageActions(ImmutableArray<CodeAction> actions)
CodeActions\MoveStaticMembers\CSharpMoveStaticMembersTests.cs (82)
37var selectedMembers = ImmutableArray.Create("TestField"); 69var selectedMembers = ImmutableArray.Create("TestProperty"); 102var selectedMembers = ImmutableArray.Create("TestEvent"); 140var selectedMembers = ImmutableArray.Create("TestMethod"); 186var selectedMembers = ImmutableArray.Create("TestMethod"); 230var selectedMembers = ImmutableArray.Create("TestField"); 264var selectedMembers = ImmutableArray<string>.Empty; 303var selectedMembers = ImmutableArray.Create("TestMethod"); 347var selectedMembers = ImmutableArray.Create("TestMethodInt", "TestMethodBool"); 395var selectedMembers = ImmutableArray.Create("TestMethodBool"); 445var selectedMembers = ImmutableArray.Create( 496var selectedMembers = ImmutableArray.Create("TestField"); 534var selectedMembers = ImmutableArray.Create("TestField"); 565var selectedMembers = ImmutableArray.Create("TestField"); 587var selectedMembers = ImmutableArray.Create("TestField"); 620var selectedMembers = ImmutableArray.Create("TestMethod"); 657var selectedMembers = ImmutableArray.Create("TestMethod"); 705var selectedMembers = ImmutableArray.Create("TestMethod"); 742var selectedMembers = ImmutableArray.Create("TestMethod"); 787var selectedMembers = ImmutableArray.Create("TestMethod"); 841var selectedMembers = ImmutableArray.Create("TestMethod"); 892var selectedMembers = ImmutableArray.Create("TestMethod"); 935var selectedMembers = ImmutableArray.Create("TestField"); 984var selectedMembers = ImmutableArray.Create("TestProperty", "_testProperty"); 1039var selectedMembers = ImmutableArray.Create("TestMethod"); 1094var selectedMembers = ImmutableArray.Create("TestMethod"); 1153var selectedMembers = ImmutableArray.Create("TestMethod", "TestGeneric"); 1213var selectedMembers = ImmutableArray.Create("TestMethod"); 1275var selectedMembers = ImmutableArray.Create("TestMethod"); 1333var selectedMembers = ImmutableArray.Create("TestMethod"); 1390var selectedMembers = ImmutableArray.Create("TestMethod"); 1469var selectedMembers = ImmutableArray.Create("TestMethod"); 1533var selectedMembers = ImmutableArray.Create("TestMethod"); 1605var selectedMembers = ImmutableArray.Create("Foo"); 1688var selectedMembers = ImmutableArray.Create("TestMethod"); 1751var selectedMembers = ImmutableArray.Create("TestMethod"); 1815var selectedMembers = ImmutableArray.Create("TestMethod"); 1884var selectedMembers = ImmutableArray.Create("TestMethod"); 1964var selectedMembers = ImmutableArray.Create("TestMethod"); 2060var selectedMembers = ImmutableArray.Create("TestMethod"); 2131var selectedMembers = ImmutableArray.Create("TestMethod"); 2170var selectedMembers = ImmutableArray.Create("TestMethod"); 2211var selectedMembers = ImmutableArray.Create("TestField"); 2244var selectedMembers = ImmutableArray.Create("TestProperty"); 2279var selectedMembers = ImmutableArray.Create("TestEvent"); 2319var selectedMembers = ImmutableArray.Create("TestMethod"); 2367var selectedMembers = ImmutableArray.Create("TestMethod"); 2412var selectedMembers = ImmutableArray.Create("TestField"); 2454var selectedMembers = ImmutableArray.Create("TestMethod"); 2502var selectedMembers = ImmutableArray.Create("TestMethod"); 2549var selectedMembers = ImmutableArray.Create("TestMethod"); 2596var selectedMembers = ImmutableArray.Create("TestMethod"); 2644var selectedMembers = ImmutableArray.Create("IsValidWorkflowType", "validWorkflowTypes"); 2693var selectedMembers = ImmutableArray.Create("TestMethod"); 2727var selectedMembers = ImmutableArray.Create("TestField"); 2758var selectedMembers = ImmutableArray.Create("TestField"); 2789var selectedMembers = ImmutableArray.Create("TestField"); 2820var selectedMembers = ImmutableArray.Create("TestField"); 2854var selectedMembers = ImmutableArray.Create("TestMethod"); 2889var selectedMembers = ImmutableArray.Create("TestField"); 2921var selectedMembers = ImmutableArray.Create("Goo", "Foo"); 2959var selectedMembers = ImmutableArray.Create("Goo", "Foo", "DoSomething"); 3002var selectedMembers = ImmutableArray.Create("Goo", "Foo"); 3045var selectedMembers = ImmutableArray.Create("Goo", "Foo", "DoSomething"); 3088var selectedMembers = ImmutableArray.Create("Foo"); 3127var selectedMembers = ImmutableArray.Create("Goo"); 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, "") 3443ImmutableArray<string> selection, 3457private readonly ImmutableArray<string> _selection; 3475testOptionsService.ExpectedPrecheckedMembers = _testPreselection ? _selection : ImmutableArray<string>.Empty; 3486ImmutableArray<string> selectedMembers, 3506ImmutableArray<string> selectedMembers, 3526ImmutableArray<string> selectedMembers, 3549await new Test("", ImmutableArray<string>.Empty, "")
CodeActions\PullMemberUp\CSharpPullMemberUpTests.cs (2)
33protected override ImmutableArray<CodeAction> MassageActions(ImmutableArray<CodeAction> actions) => FlattenActions(actions);
CodeActions\SyncNamespace\CSharpSyncNamespaceTestsBase.cs (4)
124conflictSpans: ImmutableArray<TextSpan>.Empty, 125renameSpans: ImmutableArray<TextSpan>.Empty, 126warningSpans: ImmutableArray<TextSpan>.Empty, 127navigationSpans: ImmutableArray<TextSpan>.Empty,
CodeGeneration\SyntaxGeneratorTests.cs (2)
49var diagnostics = semanticModel.GetDiagnostics(); 79var diagnostics = semanticModel.GetDiagnostics();
Completion\ArgumentProviders\AbstractCSharpArgumentProviderTests`1.cs (1)
19protected override (SyntaxNode argumentList, ImmutableArray<SyntaxNode> arguments) GetArgumentList(SyntaxToken token)
Completion\CompletionProviders\TypeImportCompletionProviderTests.cs (1)
1419private static void AssertRelativeOrder(List<string> expectedTypesInRelativeOrder, ImmutableArray<CompletionItem> allCompletionItems)
Completion\CompletionServiceTests.cs (2)
96public ImmutableArray<OptionStorageLocation> StorageLocations => ImmutableArray<OptionStorageLocation>.Empty;
Diagnostics\DiagnosticAnalyzerDriver\DiagnosticAnalyzerDriverTests.cs (27)
219public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 290public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 310public static ImmutableArray<SyntaxKind> SyntaxKindsOfInterest 348public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 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, 739ImmutableArray<NuGetAnalyzer> nugetAnalyzers, 741ImmutableArray<VsixAnalyzer> vsixAnalyzers, 743ImmutableArray<NuGetSuppressor> nugetSuppressors, 745ImmutableArray<VsixSuppressor> vsixSuppressors, 857private static ImmutableArray<DiagnosticDescriptor> CreateSupportedDiagnostics(string analyzerName, string[] reportedIds) 870public sealed override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } 908private static ImmutableArray<SuppressionDescriptor> CreateSupportedSuppressions( 926public sealed override ImmutableArray<SuppressionDescriptor> SupportedSuppressions { get; }
Diagnostics\FixAllProvider\BatchFixerTests.cs (2)
36public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 63public override ImmutableArray<string> FixableDiagnosticIds
Diagnostics\MockDiagnosticAnalyzerTests.cs (1)
25public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics
EditAndContinue\ActiveStatementTrackingServiceTests.cs (3)
44ImmutableArray<ActiveStatementSpan>.Empty); 51"2.cs" => ImmutableArray<ActiveStatementSpan>.Empty, 114spanProvider.GetAdjustedActiveStatementSpansImpl = (_, _) => ImmutableArray<ActiveStatementSpan>.Empty;
EditorConfigSettings\Updater\SettingsUpdaterTests.cs (1)
404var dataSnapShot = settingsProvider.GetCurrentDataSnapshot();
FixInterpolatedVerbatimString\FixInterpolatedVerbatimStringCommandHandlerTests.cs (1)
64MarkupTestFile.GetSpans(expectedOutputMarkup, out var expectedOutput, out var expectedSpans);
Formatting\CodeCleanupTests.cs (1)
799var map = new Dictionary<string, ImmutableArray<DiagnosticAnalyzer>>{
Formatting\CodeCleanupTests.TestFixers.cs (1)
21public override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create("HasDefaultCase");
Formatting\Indentation\SmartTokenFormatterFormatRangeTests.cs (1)
3420var rules = Formatter.GetDefaultFormattingRules(document);
InlineDiagnostics\InlineDiagnosticsTaggerProviderTests.cs (5)
24var spans = await GetTagSpansAsync("class C {"); 32var spans = await GetTagSpansInSourceGeneratedDocumentAsync("class C {"); 37private static async Task<ImmutableArray<TagSpan<InlineDiagnosticsTag>>> GetTagSpansAsync(string content) 43private static async Task<ImmutableArray<TagSpan<InlineDiagnosticsTag>>> GetTagSpansInSourceGeneratedDocumentAsync(string content) 53private static async Task<ImmutableArray<TagSpan<InlineDiagnosticsTag>>> GetTagSpansAsync(EditorTestWorkspace workspace)
Intents\IntentTestsBase.cs (3)
34var results = await GetIntentsAsync(workspace, intentName, currentDocumentText, options, intentData).ConfigureAwait(false); 61var results = await GetIntentsAsync(workspace, intentName, currentDocumentText, options, intentData).ConfigureAwait(false); 93internal static async Task<ImmutableArray<IntentSource>> GetIntentsAsync(
LanguageServer\CSharpLspBuildOnlyDiagnosticsTests.cs (2)
20protected override ImmutableArray<string> ExpectedDiagnosticCodes 25var supported = new CSharpCompilerDiagnosticAnalyzer().GetSupportedErrorCodes();
NavigateTo\NavigateToSearcherTests.cs (35)
33ImmutableArray<INavigateToSearchResult> results) 40It.IsAny<ImmutableArray<Project>>(), 41It.IsAny<ImmutableArray<Document>>(), 45It.IsAny<Func<ImmutableArray<INavigateToSearchResult>, Task>>(), 49ImmutableArray<Project> projects, 50ImmutableArray<Document> priorityDocuments, 54Func<ImmutableArray<INavigateToSearchResult>, Task> onResultsFound, 64It.IsAny<ImmutableArray<Project>>(), 68It.IsAny<Func<ImmutableArray<INavigateToSearchResult>, Task>>(), 72ImmutableArray<Project> projects, 76Func<ImmutableArray<INavigateToSearchResult>, Task> onResultsFound, 90It.IsAny<ImmutableArray<Project>>(), 91It.IsAny<ImmutableArray<Document>>(), 95It.IsAny<Func<ImmutableArray<INavigateToSearchResult>, Task>>(), 99ImmutableArray<Project> projects, 100ImmutableArray<Document> priorityDocuments, 104Func<ImmutableArray<INavigateToSearchResult>, Task> onResultsFound2, 124var results = ImmutableArray.Create<INavigateToSearchResult>(new TestNavigateToSearchResult(workspace, new TextSpan(0, 0))); 159var results = ImmutableArray.Create<INavigateToSearchResult>(new TestNavigateToSearchResult(workspace, new TextSpan(0, 0))); 236var results = ImmutableArray.Create<INavigateToSearchResult>(new TestNavigateToSearchResult(workspace, new TextSpan(0, 0))); 272var results = ImmutableArray.Create<INavigateToSearchResult>(new TestNavigateToSearchResult(workspace, new TextSpan(0, 0))); 320var results = ImmutableArray.Create<INavigateToSearchResult>(new TestNavigateToSearchResult(workspace, new TextSpan(0, 0))); 368public Task SearchCachedDocumentsAsync(Solution solution, ImmutableArray<Project> projects, ImmutableArray<Document> priorityDocuments, string searchPattern, IImmutableSet<string> kinds, Document? activeDocument, Func<ImmutableArray<INavigateToSearchResult>, Task> onResultsFound, Func<Task> onProjectCompleted, CancellationToken cancellationToken) 374public Task SearchDocumentAsync(Document document, string searchPattern, IImmutableSet<string> kinds, Func<ImmutableArray<INavigateToSearchResult>, Task> onResultsFound, CancellationToken cancellationToken) 380public Task SearchGeneratedDocumentsAsync(Solution solution, ImmutableArray<Project> projects, string searchPattern, IImmutableSet<string> kinds, Document? activeDocument, Func<ImmutableArray<INavigateToSearchResult>, Task> onResultsFound, Func<Task> onProjectCompleted, CancellationToken cancellationToken) 386public Task SearchProjectsAsync(Solution solution, ImmutableArray<Project> projects, ImmutableArray<Document> priorityDocuments, string searchPattern, IImmutableSet<string> kinds, Document? activeDocument, Func<ImmutableArray<INavigateToSearchResult>, Task> onResultsFound, Func<Task> onProjectCompleted, CancellationToken cancellationToken) 404public ImmutableArray<TextSpan> NameMatchSpans => throw new NotImplementedException(); 409public ImmutableArray<TaggedText> DisplayTaggedParts => throw new NotImplementedException(); 413public ImmutableArray<INavigableItem> ChildItems => throw new NotImplementedException(); 414public ImmutableArray<PatternMatch> Matches => NavigateToSearchResultHelpers.GetMatches(this);
QuickInfo\DiagnosticAnalyzerQuickInfoSourceTests.cs (4)
130""", GetFormattedIDEAnalyzerTitle(51, nameof(AnalyzersResources.Remove_unused_private_members)), ImmutableArray<TextSpan>.Empty); 175""", description, ImmutableArray<TextSpan>.Empty); 179ImmutableArray<TextSpan> relatedSpans) 206ImmutableArray<TextSpan> relatedSpans,
Rename\CSharpInlineRenameServiceTests.cs (7)
28private class ContextDictionaryComparer : IEqualityComparer<ImmutableDictionary<string, ImmutableArray<(string filePath, string content)>>?> 32public bool Equals(ImmutableDictionary<string, ImmutableArray<(string filePath, string content)>>? x, ImmutableDictionary<string, ImmutableArray<(string filePath, string content)>>? y) 55public int GetHashCode(ImmutableDictionary<string, ImmutableArray<(string filePath, string content)>>? obj) 56=> EqualityComparer<ImmutableDictionary<string, ImmutableArray<(string filePath, string content)>>?>.Default.GetHashCode(obj); 74var expectedContext = JsonSerializer.Deserialize<ImmutableDictionary<string, ImmutableArray<(string, string)>>>(expectedContextJson, serializationOptions); 75AssertEx.AreEqual<ImmutableDictionary<string, ImmutableArray<(string filePath, string content)>>?>(expectedContext, context, comparer: ContextDictionaryComparer.Instance);
SplitStringLiteral\SplitStringLiteralCommandHandlerTests.cs (1)
97MarkupTestFile.GetSpans(expectedOutputMarkup, out var expectedOutput, out var expectedSpans);
StringCopyPaste\StringCopyPasteCommandHandlerTests.cs (2)
70expectedCode, out var massaged, out int? caretPosition, out ImmutableDictionary<string, ImmutableArray<TextSpan>> spans); 180ImmutableArray<TextSpan> copySpans, out IWpfTextView textView, out ITextBuffer2 textBuffer2)
StringIndentation\StringIndentationTests.cs (1)
40private static string ApplyRegions(string val, ImmutableArray<StringIndentationRegion> regions)
Structure\CommentStructureTests.cs (2)
26private static ImmutableArray<BlockSpan> CreateCommentBlockSpan( 34internal override async Task<ImmutableArray<BlockSpan>> GetBlockSpansWorkerAsync(Document document, BlockStructureOptions options, int position)
Structure\MetadataAsSource\InvalidIdentifierStructureTests.cs (1)
29internal override async Task<ImmutableArray<BlockSpan>> GetBlockSpansWorkerAsync(Document document, BlockStructureOptions options, int position)
SymbolKey\SymbolKeyCompilationsTests.cs (2)
547var originalSymbols = typeSym1.GetMembers(WellKnownMemberNames.Indexer); 550var newSymbols = typeSym2.GetMembers(WellKnownMemberNames.Indexer);
TaskList\NoCompilationTaskListTests.cs (2)
62public Task<ImmutableArray<TaskListItem>> GetTaskListItemsAsync(Document document, ImmutableArray<TaskListItemDescriptor> descriptors, CancellationToken cancellationToken)
Workspaces\WorkspaceTests_EditorFeatures.cs (5)
499var errors = compilation2.GetDiagnostics(); 553var errors = compilation2y.GetDiagnostics(); 621var errors = compilation2y.GetDiagnostics(); 1364var documentIdsWithFilePath = workspace.CurrentSolution.GetDocumentIdsWithFilePath(docFilePath); 1384var documentIdsWithFilePath = workspace.CurrentSolution.GetDocumentIdsWithFilePath(docFilePath);
Microsoft.CodeAnalysis.CSharp.EditorFeatures2.UnitTests (6)
EmbeddedLanguages\Json\CSharpJsonParserTests.cs (3)
192private protected static string DiagnosticsToText(ImmutableArray<EmbeddedDiagnostic> diagnostics) 266private static XElement CreateSequenceNode(ImmutableArray<JsonValueNode> sequence) 326private static void CheckInvariants(ImmutableArray<JsonTrivia> leadingTrivia, ref int position, VirtualCharSequence allChars)
EmbeddedLanguages\RegularExpressions\CSharpRegexParserTests.cs (1)
311private static void CheckInvariants(ImmutableArray<RegexTrivia> leadingTrivia, ref int position, VirtualCharSequence allChars)
Recommendations\RecommenderTests.cs (2)
28internal Func<int, CSharpSyntaxContext, Task<ImmutableArray<RecommendedKeyword>>>? RecommendKeywordsAsync; 85var keywords = await RecommendKeywordsAsync(position, context);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (137)
CodeGen\CodeGenDeconstructTests.cs (5)
267var nested = deconstructionInfo.Nested; 1117var nested = deconstructionInfo.Nested; 2297var nested = deconstructionInfo.Nested; 2310var nested2 = nested[1].Nested; 4048var nested = deconstructionInfo.Nested;
CodeGen\CodeGenDynamicTests.cs (1)
690var attributes = ((MethodSymbol)member).GetReturnTypeAttributes();
CodeGen\CodeGenFunctionPointersTests.cs (17)
705static void verifyMod(int length, string expectedTypeName, ImmutableArray<CustomModifier> customMods) 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 (2)
5417var diagnostics = ImmutableArray<Diagnostic>.Empty;
CodeGen\CodeGenOverridingAndHiding.cs (1)
4142var allAttributes = ((PEModuleSymbol)parameter.ContainingModule).GetCustomAttributesForToken(peParameter.Handle);
CodeGen\CodeGenTupleTest.cs (79)
5791Assert.Throws<ArgumentNullException>(() => comp.CreateTupleTypeSymbol(null, default(ImmutableArray<string>))); 5817var tupleWithoutNames = comp.CreateTupleTypeSymbol(vt0, ImmutableArray<string>.Empty); 5887private static ImmutableArray<string> GetTupleElementNames(INamedTypeSymbol tuple) 5889var elements = tuple.TupleElements; 5893return default(ImmutableArray<string>); 5951var tupleWithoutNames = comp.CreateTupleTypeSymbol(vt2, default(ImmutableArray<string>)); 6030var tuple8WithoutNames = comp.CreateTupleTypeSymbol(vt8, default(ImmutableArray<string>)); 6108var tuple9WithoutNames = comp.CreateTupleTypeSymbol(vt9, default(ImmutableArray<string>)); 6314var e = Assert.Throws<ArgumentException>(() => comp.CreateTupleTypeSymbol(vbType, default(ImmutableArray<string>))); 6341Assert.Throws<ArgumentNullException>(() => comp.CreateTupleTypeSymbol(default(ImmutableArray<ITypeSymbol>), default(ImmutableArray<string>))); 6344Assert.Throws<ArgumentException>(() => comp.CreateTupleTypeSymbol(ImmutableArray<ITypeSymbol>.Empty, default(ImmutableArray<string>))); 6345Assert.Throws<ArgumentException>(() => comp.CreateTupleTypeSymbol(new[] { intType }.AsImmutable(), default(ImmutableArray<string>))); 6355Assert.Throws<ArgumentNullException>(() => comp.CreateTupleTypeSymbol(new[] { intType, null }.AsImmutable(), default(ImmutableArray<string>))); 6415var tupleWithoutNames = comp.CreateTupleTypeSymbol(ImmutableArray.Create(intType, stringType), default(ImmutableArray<string>)); 6463default(ImmutableArray<string>)); 6503default(ImmutableArray<string>)); 6545var tupleWithoutNames = comp.CreateTupleTypeSymbol(ImmutableArray.Create(intType, ErrorTypeSymbol.UnknownResultType), default(ImmutableArray<string>)); 6586Assert.Throws<ArgumentException>(() => comp.CreateTupleTypeSymbol(ImmutableArray.Create(intType, vbType), default(ImmutableArray<string>))); 6651tuple2 = comp.CreateTupleTypeSymbol(underlyingType, default(ImmutableArray<string>), default(ImmutableArray<Location>), default(ImmutableArray<CodeAnalysis.NullableAnnotation>)); 6693tuple2 = comp.CreateTupleTypeSymbol(underlyingType, default(ImmutableArray<string>), default(ImmutableArray<Location>), default(ImmutableArray<CodeAnalysis.NullableAnnotation>)); 6731tuple2 = comp.CreateTupleTypeSymbol(elementTypes, default(ImmutableArray<string>), default(ImmutableArray<Location>), default(ImmutableArray<CodeAnalysis.NullableAnnotation>)); 6772tuple2 = comp.CreateTupleTypeSymbol(elementTypes, default(ImmutableArray<string>), default(ImmutableArray<Location>), default(ImmutableArray<CodeAnalysis.NullableAnnotation>)); 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)); 6924private static ImmutableArray<CodeAnalysis.NullableAnnotation> CreateAnnotations(CodeAnalysis.NullableAnnotation annotation, int n) => 11595var members = tuple.GetMembers(); 11618var members1 = tuple1.GetMembers(); 11619var members2 = tuple2.GetMembers(); 11631var parameters1 = ((MethodSymbol)members1[i]).Parameters; 11632var parameters2 = ((MethodSymbol)members2[i]).Parameters; 11635var typeParameters1 = ((MethodSymbol)members1[i]).TypeParameters; 11636var typeParameters2 = ((MethodSymbol)members2[i]).TypeParameters; 11648var parameters1 = ((PropertySymbol)members1[i]).Parameters; 11649var parameters2 = ((PropertySymbol)members2[i]).Parameters; 11669var members1 = tuple1.GetMembers(); 11670var members2 = tuple2.GetMembers(); 11679private static void AssertTupleMembersParametersEquality(ImmutableArray<ParameterSymbol> parameters1, ImmutableArray<ParameterSymbol> parameters2) 13638var t1 = NamedTypeSymbol.CreateTuple(m2Tuple, default(ImmutableArray<string>)); 13639var t2 = NamedTypeSymbol.CreateTuple(m2Tuple, default(ImmutableArray<string>)); 13876private static void AssertTestDisplayString(ImmutableArray<Symbol> symbols, params string[] baseLine) 20451var c1Interfaces = c1.Interfaces; 20452var c1AllInterfaces = c1.AllInterfaces; 20463var c2Interfaces = c2.Interfaces; 20464var c2AllInterfaces = c2.AllInterfaces; 20475var c3Interfaces = c3.Interfaces; 20476var c3AllInterfaces = c3.AllInterfaces; 20486var c4Interfaces = c4.Interfaces; 20487var c4AllInterfaces = c4.AllInterfaces; 20500var members = c.GetMembers("I1<System.ValueTuple<System.Int32,System.Int32>>.M"); 20502var cMabImplementations = ((IMethodSymbol)members[0]).ExplicitInterfaceImplementations; 20505var cMcdImplementations = ((IMethodSymbol)members[1]).ExplicitInterfaceImplementations; 20570var m2Implementations = m2.ExplicitInterfaceImplementations; 20667var c1Interfaces = c1.Interfaces; 20668var c1AllInterfaces = c1.AllInterfaces; 20679var c2Interfaces = c2.Interfaces; 20680var c2AllInterfaces = c2.AllInterfaces; 20691var c3Interfaces = c3.Interfaces; 20692var c3AllInterfaces = c3.AllInterfaces; 20702var c4Interfaces = c4.Interfaces; 20703var c4AllInterfaces = c4.AllInterfaces; 20716var members = c.GetMembers("I1<System.ValueTuple<T,T>>.M"); 20718var cMabImplementations = ((IMethodSymbol)members[0]).ExplicitInterfaceImplementations; 20721var cMcdImplementations = ((IMethodSymbol)members[1]).ExplicitInterfaceImplementations; 20751var c3Interfaces = c3.Interfaces; 20752var c3AllInterfaces = c3.AllInterfaces; 20763var cMabImplementations = ((IMethodSymbol)c.GetMember("I1<System.ValueTuple<T,T>>.M")).ExplicitInterfaceImplementations; 20766var cMcdImplementations = ((IMethodSymbol)c.GetMember("I1<System.ValueTuple<U,U>>.M")).ExplicitInterfaceImplementations; 28199static void verifyTupleTypes(ImmutableArray<Symbol> valueTupleTypes, bool retargeting)
Emit\CompilationEmitTests.cs (20)
616protected override ImmutableArray<Section> CreateSections() 1045var refOnlyImage = EmitRefOnly(comp); 1058void verifyNoPia(ImmutableArray<byte> image) 1124var refOnlyImage = EmitRefOnly(comp); 1140void verifyNoPia(ImmutableArray<byte> image, bool expectMissing) 1326var refonlyDiagnostics = compilation.Emit(new MemoryStream(), pdbStream: null, 1335var refoutDiagnostics = compilation.Emit(peStream: new MemoryStream(), metadataPEStream: new MemoryStream(), pdbStream: null, 1908var refOnly1 = EmitRefOnly(comp1); 1926var refOnly2 = EmitRefOnly(comp2); 1946private void VerifySigned(ImmutableArray<byte> image, bool expectSigned = true) 1955private static void VerifyIdentitiesMatch(ImmutableArray<byte> firstImage, ImmutableArray<byte> secondImage, 1968private static (ImmutableArray<byte> image, ImmutableArray<byte> refImage) EmitRefOut(CSharpCompilation comp) 1981private static ImmutableArray<byte> EmitRefOnly(CSharpCompilation comp) 2003var refOnlyImage = EmitRefOnly(comp); 2021var refOnlyImage = EmitRefOnly(comp); 2041var refOnlyImage = EmitRefOnly(comp); 2060var refOnlyImage = EmitRefOnly(comp); 2623var entries = peReader.ReadDebugDirectory();
Emit\DesktopStrongNameProviderTests.cs (2)
93var provider = new DesktopStrongNameProvider(ImmutableArray<string>.Empty, new VirtualizedStrongNameFileSystem(tempDir.Path)); 111var provider = new DesktopStrongNameProvider(ImmutableArray<string>.Empty, new VirtualizedStrongNameFileSystem());
Emit\DeterministicTests.cs (3)
51private (ImmutableArray<byte> pe, ImmutableArray<byte> pdb) EmitDeterministic(string source, Platform platform, DebugInformationFormat pdbFormat, bool optimize) 370static ImmutableArray<INamedTypeSymbol> getForwardedTypes(AssemblySymbol assembly)
Emit\DynamicAnalysis\DynamicAnalysisResourceTests.cs (1)
1069private void VerifyDocuments(DynamicAnalysisDataReader reader, ImmutableArray<DynamicAnalysisDocument> documents, params string[] expected)
Emit\DynamicAnalysis\DynamicInstrumentationTests.cs (1)
2450ImmutableArray<Diagnostic> diagnostics = CreateEmptyCompilation(source + InstrumentationHelperSource).GetEmitDiagnostics(EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.TestCoverage)));
Emit\EmitMetadataTests.cs (2)
2379var sections = peHeaders.SectionHeaders; 2517var sections = peHeaders.SectionHeaders;
Emit\InAttributeModifierTests.cs (1)
4563private void AssertSingleInAttributeRequiredModifier(ImmutableArray<CustomModifier> modifiers)
Emit\OptionalArgumentsTests.cs (1)
218var attributes = parameter.GetAttributes();
PrivateProtected.cs (1)
22private static readonly ImmutableArray<byte> s_publicKey = SigningTestHelpers.PublicKey;
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (15)
Emit\EditAndContinue\EditAndContinueTestBase.cs (6)
57internal static ImmutableArray<SyntaxNode> GetAllLocals(MethodSymbol method) 62return ImmutableArray<SyntaxNode>.Empty; 90var locals0 = GetAllLocals(method0); 215public static void CheckNames(IReadOnlyList<MetadataReader> readers, ImmutableArray<TypeDefinitionHandle> typeHandles, params string[] expectedNames) 218public static void CheckNames(IReadOnlyList<MetadataReader> readers, ImmutableArray<MethodDefinitionHandle> methodHandles, params string[] expectedNames) 244bool IsPortablePdb(ImmutableArray<byte> image) => image[0] == 'B' && image[1] == 'S' && image[2] == 'J' && image[3] == 'B';
Emit\EditAndContinue\EditAndContinueTests.cs (2)
10873ImmutableArray<byte> assemblyBytes; 10874ImmutableArray<byte> pdbBytes;
Emit\EditAndContinue\SymbolMatcherTests.cs (3)
49private static IEnumerable<string> Inspect(ImmutableSegmentedDictionary<AnonymousDelegateWithIndexedNamePartialKey, ImmutableArray<AnonymousTypeValue>> anonymousDelegatesWithIndexedNames) 87var members = builder.ToImmutableArray(); 108private static void MatchAll(CSharpSymbolMatcher matcher, ImmutableArray<Symbol> members, int startAt)
Emit\NumericIntPtrTests.cs (1)
1592static void verifyOperators<T>(ImmutableArray<T> operators, Func<T, bool, bool> predicate, int expectedSigned, int expectedUnsigned)
PDB\CSharpDeterministicBuildCompilationTests.cs (1)
72var entries = peReader.ReadDebugDirectory();
PDB\PortablePdbTests.cs (2)
175var entries = peReader.ReadDebugDirectory(); 235var entries = peReader.ReadDebugDirectory();
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (251)
Attributes\AttributeTests.cs (34)
489var attrs = assembly.GetAttributes(); 711var attrs = m0.GetAttributes(); 1427var attrs = compilation.Assembly.GetAttributes(); 1708var attrs = type.GetAttributes(); 3097var attrs = m.GetAttributes(); 3176var attrs = dele.GetAttributes(); 3450var attrs = type.GetAttributes(); 3463var attrs = type.GetAttributes(); 3530var attrs = method.GetAttributes(attributeClass); 3589var attrs = type.GetAttributes(); 3602var attrs = type.GetAttributes(); 3637var attrs = type.GetAttributes(); 3683var attrs = type.GetAttributes(); 3869var attrs = enumType.GetAttributes(attributeType); 3906var attrs = type.GetAttributes(attributeType); 3954var attrs = field.GetAttributes(attributeType); 4009var attrs = setter.GetAttributes(attributeTypeForMethod); 4080var attrs = type.GetAttributes(); 4138var attrs = type.GetAttributes(); 4181var attrs = type.GetAttributes(); 4225var attrs = type.GetAttributes(); 4270var attrs = type.GetAttributes(); 4314var attrs = type.GetAttributes(); 4519var attrs = cClass.GetAttributes(attributeType); 4523var typeParameters = cClass.TypeParameters; 4574var attrs = bClass.GetAttributes(attributeType); 4614var attrs = bClass.GetAttributes(attributeType); 4962var attrs = attributeType.GetAttributes(attributeType); 5249var attrs = attributeType.GetAttributes(attributeType); 5309var attrs = cClass.GetAttributes(attributeTypeA); 5369var attrs = testClass.GetAttributes(attributeType); 5490var attrs = classC1.GetAttributes(); 5614var attributes = field.GetAttributes(); 5721var args = info.Symbol.GetAttributes()[0].CommonConstructorArguments;
Attributes\AttributeTests_Assembly.cs (12)
871var attrs = comp.Assembly.GetAttributes(); 894var attrs = comp.Assembly.GetAttributes(); 1081var diagnostics = consoleappCompilation.GetDiagnostics(); 1083var attrs = consoleappCompilation.Assembly.GetAttributes(); 1204var attrs = consoleappCompilation.Assembly.GetAttributes(); 1272var diagnostics = consoleappCompilation.GetDiagnostics(); 1284var attrs = consoleappCompilation.Assembly.GetAttributes(); 1375var diagnostics = consoleappCompilation.GetDiagnostics(); 1377var attrs = consoleappCompilation.Assembly.GetAttributes(); 1420var diagnostics = compilation.GetDiagnostics(); 1425var attrs = compilation.Assembly.GetAttributes(); 1792var attributes = module.GetCustomAttributesForToken(token);
Attributes\AttributeTests_CallerInfoAttributes.cs (2)
2299var arguments = compilation.GetTypeByMetadataName("Program").GetAttributes().Single().CommonConstructorArguments; 4271TestOptions.ReleaseExe.WithSourceReferenceResolver(new SourceFileResolver(ImmutableArray<string>.Empty, baseDirectory: @"C:\A\B")));
Attributes\AttributeTests_Conditional.cs (2)
139var attributesArrayBuilder = new List<ImmutableArray<CSharpAttributeData>>(); 196foreach (var attributes in attributesArrayBuilder)
Attributes\AttributeTests_Dynamic.cs (2)
519public static void ValidateDynamicAttribute(ImmutableArray<CSharpAttributeData> attributes, bool expectedDynamicAttribute, bool[] expectedTransformFlags = null) 543ImmutableArray<TypedConstant> actualTransformFlags = argument.Values;
Attributes\AttributeTests_IsByRefLike.cs (1)
1073private static void AssertNotReferencedIsByRefLikeAttribute(ImmutableArray<CSharpAttributeData> attributes)
Attributes\AttributeTests_NativeInteger.cs (3)
1618private static void AssertNativeIntegerAttribute(ImmutableArray<CSharpAttributeData> attributes) 1623private static void AssertAttributes(ImmutableArray<CSharpAttributeData> attributes, params string[] expectedNames) 1640private static CSharpAttributeData GetNativeIntegerAttribute(ImmutableArray<CSharpAttributeData> attributes)
Attributes\AttributeTests_Nullable.cs (5)
4902var expectedBits = ImmutableArray.Create<byte>(0, 2, 0, 1, 2, 1, 2, 1, 2, 1, 0, 2); 5373private static void AssertNoNullableAttribute(ImmutableArray<CSharpAttributeData> attributes) 5378private static void AssertNullableAttribute(ImmutableArray<CSharpAttributeData> attributes) 5383private static void AssertAttributes(ImmutableArray<CSharpAttributeData> attributes, params string[] expectedNames) 5401private static CSharpAttributeData GetNullableAttribute(ImmutableArray<CSharpAttributeData> attributes)
Attributes\AttributeTests_ReadOnlyStruct.cs (1)
642private static void AssertNotReferencedIsReadOnlyAttribute(ImmutableArray<CSharpAttributeData> attributes)
Attributes\AttributeTests_Synthesized.cs (1)
187var attributes = peModule.GetCustomAttributesForToken(token);
Attributes\AttributeTests_Tuples.cs (1)
614ImmutableArray<CSharpAttributeData> attributes,
Attributes\AttributeTests_WellKnownAttributes.cs (20)
135var attrs = assembly.GetAttributes(); 8295var diags = comp.GetDiagnostics(); 8328var diags = comp.GetDiagnostics(); 8359var diags = comp.GetDiagnostics(); 8390var diags = comp.GetDiagnostics(); 8430var diags = comp.GetDiagnostics(); 8461var diags = comp.GetDiagnostics(); 8498var diags = comp.GetDiagnostics(); 8706var diags = comp2.GetDiagnostics(); 8749var diags = comp2.GetDiagnostics(); 8849var diags = comp2.GetDiagnostics(); 8949var diags = comp2.GetDiagnostics(); 9132var diags = comp2.GetDiagnostics(); 9183var diags = comp2.GetDiagnostics(); 9324var diags = comp.GetDiagnostics(); 9462var diags = comp.GetDiagnostics(); 9511var diags = comp2.GetDiagnostics(); 11398var exprs = tree.GetRoot().DescendantNodes().OfType<LambdaExpressionSyntax>().ToImmutableArray(); 11423var exprs = tree.GetRoot().DescendantNodes().OfType<LambdaExpressionSyntax>().ToImmutableArray(); 11454var exprs = tree.GetRoot().DescendantNodes().OfType<LambdaExpressionSyntax>().ToImmutableArray();
Attributes\EmitTestStrongNameProvider.cs (1)
49ReadKeysFromContainerFunc = (string _, out ImmutableArray<byte> publicKey) => throw ex
Attributes\InternalsVisibleToAndStrongNameTests.cs (2)
59private static readonly ImmutableArray<byte> s_publicKey = SigningTestHelpers.PublicKey; 61ImmutableArray<string>.Empty,
Attributes\WellKnownAttributesTestBase.cs (1)
93var allAttributes = ((PEModuleSymbol)parameter.ContainingModule).GetCustomAttributesForToken(peParameter.Handle);
Diagnostics\DiagnosticAnalyzerTests.cs (64)
40public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 235public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 475public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 490public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 504public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 658public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get { return ImmutableArray.Create(Rule); } } 761public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 775Action<Action<SyntaxNodeAnalysisContext>, ImmutableArray<SyntaxKind>> registerMethod = 789Action<Action<SyntaxNodeAnalysisContext>, ImmutableArray<SyntaxKind>> registerMethod = 797public void Initialize(Action<Action<SyntaxNodeAnalysisContext>, ImmutableArray<SyntaxKind>> registerSyntaxNodeAction) 831public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 880public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 1532var analyzerOptions = new AnalyzerOptions(additionalFiles: ImmutableArray<AdditionalText>.Empty, analyzerConfigOptionsProvider); 1535var trees = builder.ToImmutable(); 1643public sealed override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 1708var files = compilation.SyntaxTrees.Select(t => t.FilePath).ToImmutableArray(); 2244var syntaxKinds = ImmutableArray.Create(SyntaxKind.VariableDeclaration); 2245var operationKinds = ImmutableArray.Create(OperationKind.VariableDeclarator); 2280private readonly ImmutableArray<SyntaxKind> _syntaxKinds; 2281private readonly ImmutableArray<OperationKind> _operationKinds; 2299public GeneratedCodeSyntaxAndOperationAnalyzer(GeneratedCodeAnalysisFlags? generatedCodeAnalysisFlagsOpt, ImmutableArray<SyntaxKind> syntaxKinds, ImmutableArray<OperationKind> operationKinds) 2306public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(Warning, Summary); 2764void verifyFlowGraphs(ImmutableArray<(ControlFlowGraph Graph, ISymbol AssociatedSymbol)> flowGraphs) 3265var analyzers = ImmutableArray.Create<DiagnosticAnalyzer>(new SymbolStartAnalyzer(topLevelAction: false, SymbolKind.NamedType)); 3311var analyzers = ImmutableArray.Create<DiagnosticAnalyzer>(new SymbolStartAnalyzer(topLevelAction: false, SymbolKind.NamedType)); 3357var tree1SemanticDiagnostics = await compilationWithAnalyzers.GetAnalyzerSemanticDiagnosticsAsync(semanticModel1, filterSpan: null, ImmutableArray.Create<DiagnosticAnalyzer>(analyzer1), CancellationToken.None); 3607new AnalyzerOptions(ImmutableArray<AdditionalText>.Empty)); 3608var diagnostics = await compWithAnalyzers.GetAnalyzerSemanticDiagnosticsAsync(model, filterSpan: null, CancellationToken.None); 3686var allAnalyzers = ImmutableArray.Create<DiagnosticAnalyzer>(analyzer1, analyzer2); 3694var analyzersToQuery = singleAnalyzer ? ImmutableArray.Create<DiagnosticAnalyzer>(analyzer1) : allAnalyzers; 3711var diagnostics = diagnosticsMap.TryGetValue(tree1, out var value) ? value : ImmutableDictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>>.Empty; 3753var allAnalyzers = ImmutableArray.Create<DiagnosticAnalyzer>(analyzer1, analyzer2); 3764var diagnostics1 = analysisResult.SemanticDiagnostics[tree][analyzer1]; 3768var diagnostics2 = analysisResult.SemanticDiagnostics[tree][analyzer2]; 3813var analyzers = ImmutableArray.Create<DiagnosticAnalyzer>(analyzer); 3820var diagnostics1 = analysisResult.SemanticDiagnostics[tree][analyzer]; 3843public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get { return ImmutableArray.Create(Rule); } } 3887var analyzers = ImmutableArray.Create<DiagnosticAnalyzer>(analyzer); 3889var diagnostics = await compilation.WithAnalyzers(analyzers, options).GetAnalyzerDiagnosticsAsync(CancellationToken.None); 3900void verifyDiagnostics(ImmutableArray<Diagnostic> diagnostics) 3923var additionalFiles = ImmutableArray.Create(additionalFile1, additionalFile2); 3929var analyzers = ImmutableArray.Create<DiagnosticAnalyzer>(analyzer1, analyzer2); 3931var diagnostics = await compilation.WithAnalyzers(analyzers, options).GetAnalyzerDiagnosticsAsync(CancellationToken.None); 3939var singleAnalyzerArray = ImmutableArray.Create<DiagnosticAnalyzer>(analyzer1); 3956ImmutableArray<Diagnostic> diagnostics, 3957ImmutableArray<DiagnosticAnalyzer> analyzers, 3958ImmutableArray<AdditionalText> additionalFiles, 3998ImmutableArray<DiagnosticAnalyzer> analyzers, 3999ImmutableArray<AdditionalText> additionalFiles, 4011var singleAnalyzerArray = ImmutableArray.Create(analyzer); 4014var reportedDiagnostics = getReportedDiagnostics(analysisResult, analyzer, additionalFile); 4021static ImmutableArray<Diagnostic> getReportedDiagnostics(AnalysisResult analysisResult, DiagnosticAnalyzer analyzer, AdditionalText additionalFile) 4024diagnosticsMap.TryGetValue(analyzer, out var diagnostics)) 4029return ImmutableArray<Diagnostic>.Empty; 4077public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get { return ImmutableArray.Create(Rule); } } 4113private readonly ImmutableArray<SyntaxKind> _syntaxKinds; 4116public PrimaryConstructorBaseTypeAnalyzer(SyntaxNode topmostNode, ImmutableArray<SyntaxKind> syntaxKinds) 4122public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get { return ImmutableArray.Create(Rule); } } 4249var diagnostics = await getDiagnosticsAsync(cancellationSource.Token).ConfigureAwait(false); 4253async Task<ImmutableArray<Diagnostic>> getDiagnosticsAsync(CancellationToken cancellationToken) 4314var analyzers = ImmutableArray.Create<DiagnosticAnalyzer>(analyzer); 4397var analyzersArray = ImmutableArray.Create<DiagnosticAnalyzer>(analyzer); 4441var diagnostics = await compWithAnalyzers.GetAnalyzerSemanticDiagnosticsAsync(model, filterSpan: null, CancellationToken.None);
Diagnostics\DiagnosticSuppressorTests.cs (4)
641var diagnostics = compilation.GetAnalyzerDiagnostics(analyzersAndSuppressors, reportSuppressedDiagnostics: true); 718var analyzers = withSuppressor ? ImmutableArray.Create<DiagnosticAnalyzer>(analyzer1, suppressor) : ImmutableArray.Create<DiagnosticAnalyzer>(analyzer1); 719var diagnostics1 = await compilationWithAnalyzers.GetAnalyzerSemanticDiagnosticsAsync(semanticModel, filterSpan: null, analyzers, CancellationToken.None); 723var diagnostics2 = await compilationWithAnalyzers.GetAnalyzerSemanticDiagnosticsAsync(semanticModel, filterSpan: null, analyzers, CancellationToken.None);
Diagnostics\GetDiagnosticsTests.cs (34)
377var unused = compilation.GetDiagnostics(); 434var diagnostics = compilation.GetDiagnostics(); 463var diagnostics = compilation.GetDiagnostics(); 514var diagnostics = compilation.GetDiagnostics(); 527var analyzerDiagnostics = compilation.GetAnalyzerDiagnostics(analyzers); 548var compilerDiagnostics = compilation.GetDiagnostics(); 552var analyzers = ImmutableArray.Create<DiagnosticAnalyzer>(new CSharpCompilerDiagnosticAnalyzer()); 553var compilationWithAnalyzers = compilation.WithAnalyzers(analyzers, new AnalyzerOptions(ImmutableArray<AdditionalText>.Empty)); 554var analyzerDiagnostics = await compilationWithAnalyzers.GetAnalyzerDiagnosticsAsync(); 562var analyzerOptions = new AnalyzerOptions(ImmutableArray<AdditionalText>.Empty, analyzerConfigOptionsProvider); 567static void verifyDiagnostics(ImmutableArray<Diagnostic> diagnostics) 608analyzerOptions = new AnalyzerOptions(ImmutableArray<AdditionalText>.Empty, analyzerConfigOptionsProvider); 616var analyzerDiagnostics = await compilationWithAnalyzers.GetAnalyzerDiagnosticsAsync(); 662var analyzers = ImmutableArray.Create<DiagnosticAnalyzer>(new CSharpCompilerDiagnosticAnalyzer()); 665new AnalyzerOptions(ImmutableArray<AdditionalText>.Empty), 715var analyzers = ImmutableArray.Create<DiagnosticAnalyzer>(new SymbolStartAnalyzer(topLevelAction: false, SymbolKind.NamedType, OperationKind.VariableDeclaration)); 718new AnalyzerOptions(ImmutableArray<AdditionalText>.Empty), 744var analyzers = ImmutableArray.Create<DiagnosticAnalyzer>(analyzer); 747new AnalyzerOptions(ImmutableArray<AdditionalText>.Empty), 756var diagnostics = await compilationWithAnalyzers.GetAnalyzerSyntaxDiagnosticsAsync(tree, CancellationToken.None); 784var analyzers = ImmutableArray.Create<DiagnosticAnalyzer>(new CSharpCompilerDiagnosticAnalyzer()); 841var semanticDiagnostics = result.SemanticDiagnostics[syntaxTree][analyzer]; 843var group2 = semanticDiagnostics.Except(group1).ToImmutableArray(); 952public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(Descriptor, DescriptorForBlockEnd); 1066var diagnostics = result.SemanticDiagnostics[syntaxTree][compilerAnalyzer]; 1154var localSemanticDiagnostics_1 = result.SemanticDiagnostics[tree1][analyzer]; 1155var localSemanticDiagnostics_2 = result.SemanticDiagnostics[tree2][analyzer]; 1156var nonLocalSemanticDiagnostics = result.CompilationDiagnostics[analyzer]; 1431var compilationDiagnostics = compilation.GetDiagnostics(); 1438var analyzers = ImmutableArray.Create<DiagnosticAnalyzer>(new CSharpCompilerDiagnosticAnalyzer()); 1440var analyzerDiagnostics = await compilationWithAnalyzers.GetAnalyzerDiagnosticsAsync(); 1473public override ImmutableArray<SuppressionDescriptor> SupportedSuppressions => ImmutableArray.Create(_descriptor); 1701var localSemanticDiagnostics = result.SemanticDiagnostics[tree][analyzer]; 1714public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(Descriptor);
FieldKeywordTests.cs (2)
8919private static void VerifyMergedProperties(ImmutableArray<PropertySymbol> properties, ImmutableArray<FieldSymbol> fields)
FirstClassSpanTests.cs (2)
2857var casts = tree.GetRoot().DescendantNodes().OfType<CastExpressionSyntax>().ToImmutableArray(); 5006var lookupResult = model.LookupSymbols(d1Access.Name.SpanStart, aSymbol.Type, "M", includeReducedExtensionMethods: true);
FlowAnalysis\FlowDiagnosticTests.cs (2)
118var errs = this.FlowDiagnostics(comp); 133var errs = this.FlowDiagnostics(comp);
FlowAnalysis\FlowTestBase.cs (1)
21internal ImmutableArray<Diagnostic> FlowDiagnostics(CSharpCompilation compilation)
FlowAnalysis\FlowTests.cs (1)
5841var declarations = tree.GetRoot().DescendantNodes().OfType<PropertyDeclarationSyntax>().ToImmutableArray();
FlowAnalysis\RegionAnalysisTests.cs (2)
1537var tmp = dataFlows.VariablesDeclared; // ensure no exception thrown 6385var v = analysis.DataFlowsOut;
OverloadResolutionPriorityTests.cs (4)
694var ms = c.GetMembers("M"); 802var constructors = derived.Constructors; 987var ctors = attr!.GetMembers(".ctor"); 1568var indexers = c.GetMembers("this[]");
Semantics\CollectionExpressionTests.cs (1)
15647static ImmutableArray<string> getInlineArrayTypeNames(ModuleSymbol module)
Semantics\OutVarTests.cs (3)
18447var group = model.GetMemberGroup(initializer); 18801public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 32738var symbols = model.LookupSymbols(decl.SpanStart, name: decl.Identifier().ValueText);
Semantics\PatternMatchingTestBase.cs (1)
250var symbols = model.LookupSymbols(designation.SpanStart, name: designation.Identifier.ValueText);
Semantics\PatternMatchingTests_ListPatterns.cs (1)
3452var used = comp.GetUsedAssemblyReferences();
Semantics\PrimaryConstructorTests.cs (26)
127var members = comp.GetTypeByMetadataName("Point").GetMembers(); 3749public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 4074public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 4160public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 4309public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 4499public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 4633public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 4813public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 4958public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 5137public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 5250public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 5477public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 5564public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 5677public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 5774public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 5832public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 5925public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 20612var symbols = semanticModel.GetDeclaredSymbolsForNode(typeDeclaration); 20646var symbols1 = semanticModel.GetDeclaredSymbolsForNode(typeDeclaration1); 20656var symbols2 = semanticModel.GetDeclaredSymbolsForNode(typeDeclaration2); 20690var symbols1 = semanticModel.GetDeclaredSymbolsForNode(typeDeclaration1); 20700var symbols2 = semanticModel.GetDeclaredSymbolsForNode(typeDeclaration2); 20737var symbols1 = semanticModel.GetDeclaredSymbolsForNode(typeDeclaration1); 20745var symbols2 = semanticModel.GetDeclaredSymbolsForNode(typeDeclaration2); 20787var symbols1 = semanticModel.GetDeclaredSymbolsForNode(typeDeclaration1); 20797var symbols2 = semanticModel.GetDeclaredSymbolsForNode(typeDeclaration2);
Semantics\RecordTests.cs (15)
12288var actualMembers = GetProperties(comp, "B"); 12367var actualMembers = GetProperties(comp, "B"); 12472var actualMembers = GetProperties(comp, "B"); 21124private static ImmutableArray<Symbol> GetProperties(CSharpCompilation comp, string typeName) 23163ImmutableArray<Symbol> cEquals = comp.GetMembers("C.Equals"); 23182private static void VerifyVirtualMethods(ImmutableArray<Symbol> members, params (string displayString, bool isOverride)[] values) 26234public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 26557public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 26652public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 26817public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 27007public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 27141public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 27321public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 27466public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 27649public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics
Microsoft.CodeAnalysis.CSharp.EndToEnd.UnitTests (2)
EndToEndTests.cs (2)
646var locations = getInterceptableLocations(program); 695ImmutableArray<InterceptableLocation> getInterceptableLocations(CSharpTestSource source)
Microsoft.CodeAnalysis.CSharp.Features (743)
AddImport\CSharpAddImportCodeFixProvider.cs (3)
154public static ImmutableArray<string> FixableTypeIds = 157public static ImmutableArray<string> FixableDiagnosticIds = 180public override ImmutableArray<string> FixableDiagnosticIds => AddImportDiagnosticIds.FixableDiagnosticIds;
AddImport\CSharpAddImportFeatureService.cs (1)
571var aliases = metadataReference.Properties.Aliases;
AddImport\CSharpAddMissingImportsFeatureService.cs (2)
28protected sealed override ImmutableArray<string> FixableDiagnosticIds => AddImportDiagnosticIds.FixableDiagnosticIds; 30protected override ImmutableArray<AbstractFormattingRule> GetFormatRules(SourceText text)
AddMissingReference\CSharpAddMissingReferenceCodeFixProvider.cs (1)
21public sealed override ImmutableArray<string> FixableDiagnosticIds { get; }
AddPackage\CSharpAddSpecificPackageCodeFixProvider.cs (1)
27public override ImmutableArray<string> FixableDiagnosticIds
BraceCompletion\AbstractCurlyBraceOrBracketCompletionService.cs (8)
30protected abstract ImmutableArray<AbstractFormattingRule> GetBraceFormattingIndentationRulesAfterReturn(IndentationOptions options); 181static ImmutableArray<TextChange> GetMergedChanges(TextChange? newLineEdit, ImmutableArray<TextChange> formattingChanges, SourceText formattedText) 224private (SyntaxNode formattedRoot, ImmutableArray<TextChange> textChanges, int finalBraceEnd) FormatTrackingSpan( 228ImmutableArray<AbstractFormattingRule> braceFormattingIndentationRules, 254var rules = FormattingRuleUtilities.GetFormattingRules(document, spanToFormat, braceFormattingIndentationRules); 264return (document.Root, ImmutableArray<TextChange>.Empty, closingPoint); 270var textChanges = result.GetTextChanges(cancellationToken).ToImmutableArray();
BraceCompletion\BracketBraceCompletionService.cs (1)
38protected override ImmutableArray<AbstractFormattingRule> GetBraceFormattingIndentationRulesAfterReturn(IndentationOptions options)
BraceCompletion\CurlyBraceCompletionService.cs (2)
76protected override ImmutableArray<AbstractFormattingRule> GetBraceFormattingIndentationRulesAfterReturn(IndentationOptions options) 86private static readonly ImmutableArray<BraceCompletionFormattingRule> s_instances =
BraceMatching\CSharpDirectiveTriviaBraceMatcher.cs (1)
29protected override ImmutableArray<DirectiveTriviaSyntax> GetMatchingConditionalDirectives(DirectiveTriviaSyntax directive, CancellationToken cancellationToken)
ChangeSignature\ChangeSignatureFormattingRule.cs (1)
19private static readonly ImmutableArray<SyntaxKind> s_allowableKinds =
ChangeSignature\CSharpChangeSignatureService.cs (14)
41private static readonly ImmutableArray<SyntaxKind> _declarationKinds = 56private static readonly ImmutableArray<SyntaxKind> _declarationAndInvocableKinds = 69private static readonly ImmutableArray<SyntaxKind> _updatableAncestorKinds = 85private static readonly ImmutableArray<SyntaxKind> _updatableNodeKinds = 195var matchKinds = restrictToDeclarations 311var updatedLeadingTrivia = UpdateParamTagsInLeadingTrivia( 750private ImmutableArray<T> TransferLeadingWhitespaceTrivia<T, U>(IEnumerable<T> newArguments, SeparatedSyntaxList<U> oldArguments) 768private ImmutableArray<SyntaxTrivia> UpdateParamTagsInLeadingTrivia( 783var permutedParamNodes = VerifyAndPermuteParamNodes(paramNodes, declarationSymbol, updatedSignature); 790private ImmutableArray<SyntaxNode> VerifyAndPermuteParamNodes(IEnumerable<XmlElementSyntax> paramNodes, ISymbol declarationSymbol, SignatureChange updatedSignature) 796var declaredParameters = GetParameters(declarationSymbol); 850public override async Task<ImmutableArray<ISymbol>> DetermineCascadedSymbolsFromDelegateInvokeAsync( 889protected override ImmutableArray<AbstractFormattingRule> GetFormattingRules(Document document) 924protected override ImmutableArray<IParameterSymbol> GetParameters(ISymbol declarationSymbol)
CodeFixes\GenerateType\GenerateTypeCodeFixProvider.cs (2)
36public override ImmutableArray<string> FixableDiagnosticIds 50protected override Task<ImmutableArray<CodeAction>> GetCodeActionsAsync(
CodeLens\CSharpCodeLensMemberFinder.cs (1)
27public async Task<ImmutableArray<CodeLensMember>> GetCodeLensMembersAsync(Document document, CancellationToken cancellationToken)
CodeRefactorings\ConvertLocalFunctionToMethod\CSharpConvertLocalFunctionToMethodCodeRefactoringProvider.cs (1)
261private static List<string> GenerateUniqueParameterNames(ImmutableArray<IParameterSymbol> parameters, List<string> reservedNames)
CodeRefactorings\ExtractClass\CSharpExtractClassCodeRefactoringProvider.cs (1)
45protected override Task<ImmutableArray<SyntaxNode>> GetSelectedNodesAsync(CodeRefactoringContext context)
CodeRefactorings\InlineTemporary\InlineTemporaryCodeRefactoringProvider.cs (1)
260private static async Task<ImmutableArray<IdentifierNameSyntax>> FindReferenceAnnotatedNodesAsync(Document document, CancellationToken cancellationToken)
CodeRefactorings\MoveStaticMembers\CSharpMoveStaticMembersRefactoringProvider.cs (1)
20protected override Task<ImmutableArray<SyntaxNode>> GetSelectedNodesAsync(CodeRefactoringContext context)
CodeRefactorings\NodeSelectionHelpers.cs (1)
18internal static async Task<ImmutableArray<SyntaxNode>> GetSelectedDeclarationsOrVariablesAsync(CodeRefactoringContext context)
CodeRefactorings\PullMemberUp\CSharpPullMemberUpCodeRefactoringProvider.cs (1)
28protected override Task<ImmutableArray<SyntaxNode>> GetSelectedNodesAsync(CodeRefactoringContext context)
CodeRefactorings\SyncNamespace\CSharpChangeNamespaceService.cs (11)
39protected override async Task<ImmutableArray<(DocumentId, SyntaxNode)>> GetValidContainersFromAllLinkedDocumentsAsync( 108ImmutableArray<string> newNamespaceParts, 205ImmutableArray<string> newNamespaceParts, 234ImmutableArray<string> declaredNamespaceParts, 235ImmutableArray<string> targetNamespaceParts) 312private static CompilationUnitSyntax MoveMembersFromGlobalToNamespace(CompilationUnitSyntax compilationUnit, ImmutableArray<string> targetNamespaceParts) 364var namespaceDecls = node.AncestorsAndSelf().OfType<BaseNamespaceDeclarationSyntax>().ToImmutableArray(); 414private static NameSyntax CreateNamespaceAsQualifiedName(ImmutableArray<string> namespaceParts, string? aliasQualifier, int index) 427private static ExpressionSyntax CreateNamespaceAsMemberAccess(ImmutableArray<string> namespaceParts, string? aliasQualifier, int index) 452private static (ImmutableArray<SyntaxTrivia> openingTrivia, ImmutableArray<SyntaxTrivia> closingTrivia)
CodeRefactorings\SyncNamespace\CSharpSyncNamespaceCodeRefactoringProvider.cs (1)
38var namespaceDecls = compilationUnit.DescendantNodes(n => n is CompilationUnitSyntax or BaseNamespaceDeclarationSyntax)
CodeRefactorings\UseRecursivePatterns\UseRecursivePatternsCodeRefactoringProvider.cs (9)
44protected override ImmutableArray<FixAllScope> SupportedFixAllScopes => AllFixAllScopes; 199ImmutableArray<IdentifierNameSyntax> namesOpt) 303private static (PatternSyntax ContainingPattern, ImmutableArray<IdentifierNameSyntax> NamesOpt)? TryFindVariableDesignation( 380private static SubpatternSyntax CreateSubpattern(ImmutableArray<IdentifierNameSyntax> names, PatternSyntax pattern) 416private static (ExpressionSyntax CommonReceiver, ImmutableArray<IdentifierNameSyntax> LeftNames, ImmutableArray<IdentifierNameSyntax> RightNames)? TryGetCommonReceiver( 461return (commonReceiver ?? ThisExpression(), ImmutableArray<IdentifierNameSyntax>.Empty, rightNames.ToImmutable()); 469return (commonReceiver ?? ThisExpression(), leftNames.ToImmutable(), ImmutableArray<IdentifierNameSyntax>.Empty); 584ImmutableArray<TextSpan> fixAllSpans,
Completion\CompletionProviders\AttributeNamedParameterCompletionProvider.cs (4)
92var nameEqualsItems = GetNameEqualsItems(context, semanticModel, token, attributeSyntax, existingNamedParameters); 153private static ImmutableArray<CompletionItem> GetNameEqualsItems( 201private static bool IsValid(ImmutableArray<IParameterSymbol> parameterList, ISet<string> existingNamedParameters) 218private static IEnumerable<ImmutableArray<IParameterSymbol>> GetParameterLists(
Completion\CompletionProviders\CrefCompletionProvider.cs (11)
89protected override async Task<(SyntaxToken, SemanticModel?, ImmutableArray<ISymbol>)> GetSymbolsAsync( 164private static ImmutableArray<ISymbol> GetSymbols( 179private static ImmutableArray<ISymbol> GetUnqualifiedSymbols( 210private static ImmutableArray<ISymbol> GetQualifiedSymbols( 237SemanticModel semanticModel, ImmutableArray<ISymbol> symbols, SyntaxToken token, int position, ImmutableArray<KeyValuePair<string, string>> options) 260ImmutableArray<KeyValuePair<string, string>> options, [NotNullWhen(true)] out CompletionItem? item) 283ImmutableArray<KeyValuePair<string, string>> options, 329ISymbol symbol, int position, StringBuilder builder, string sortText, ImmutableArray<KeyValuePair<string, string>> options) 353var commitRules = ImmutableArray<CharacterSetModificationRule>.Empty;
Completion\CompletionProviders\CSharpSuggestionModeCompletionProvider.cs (1)
182var inferredTypeInfo = typeInferrer.GetTypeInferenceInfo(semanticModel, position, cancellationToken: cancellationToken);
Completion\CompletionProviders\DeclarationName\DeclarationNameCompletionProvider.cs (1)
31private ImmutableArray<Lazy<IDeclarationNameRecommender, OrderableMetadata>> Recommenders { get; } = [.. ExtensionOrderer.Order(recommenders)];
Completion\CompletionProviders\DeclarationName\DeclarationNameInfo.cs (11)
20ImmutableArray<SymbolKindOrTypeKind> possibleSymbolKinds, 27private static readonly ImmutableArray<SymbolKindOrTypeKind> s_parameterSyntaxKind = 30private static readonly ImmutableArray<SymbolKindOrTypeKind> s_propertySyntaxKind = 33private readonly ImmutableArray<SymbolKindOrTypeKind> _possibleSymbolKinds = possibleSymbolKinds; 42public ImmutableArray<SymbolKindOrTypeKind> PossibleSymbolKinds => _possibleSymbolKinds.NullToEmpty(); 223Func<DeclarationModifiers, ImmutableArray<SymbolKindOrTypeKind>> possibleDeclarationComputer, 272Func<DeclarationModifiers, ImmutableArray<SymbolKindOrTypeKind>> possibleDeclarationComputer, 283Func<DeclarationModifiers, ImmutableArray<SymbolKindOrTypeKind>> possibleDeclarationComputer, 347? (Func<DeclarationModifiers, ImmutableArray<SymbolKindOrTypeKind>>) 518private static ImmutableArray<SymbolKindOrTypeKind> GetPossibleMemberDeclarations(DeclarationModifiers modifiers) 545private static ImmutableArray<SymbolKindOrTypeKind> GetPossibleLocalDeclarations(DeclarationModifiers modifiers)
Completion\CompletionProviders\DeclarationName\DeclarationNameRecommender.cs (13)
38public async Task<ImmutableArray<(string name, Glyph glyph)>> ProvideRecommendedNamesAsync( 66private ImmutableArray<ImmutableArray<string>> GetBaseNames(SemanticModel semanticModel, NameDeclarationInfo nameInfo) 76var baseNames = NameGenerator.GetBaseNames(type, plural); 203ImmutableArray<ImmutableArray<string>> baseNames, 212var supplementaryRules = FallbackNamingRules.CompletionSupplementaryRules; 225ImmutableArray<NamingRule> rules, 228ImmutableArray<ImmutableArray<string>> baseNames, 242foreach (var baseName in baseNames) 296var overloads = GetOverloads(namedType, baseMethod); 317static ImmutableArray<IMethodSymbol> GetOverloads(INamedTypeSymbol namedType, BaseMethodDeclarationSyntax baseMethod)
Completion\CompletionProviders\DeclarationName\DeclarationNameRecommender.NameGenerator.cs (13)
11using Words = System.Collections.Immutable.ImmutableArray<string>; 22internal static ImmutableArray<Words> GetBaseNames(ITypeSymbol type, bool pluralize) 27var result = GetInterleavedPatterns(parts, baseName, pluralize); 32internal static ImmutableArray<Words> GetBaseNames(IAliasSymbol alias) 44var result = GetInterleavedPatterns(breaks, name, pluralize: false); 48private static ImmutableArray<Words> GetInterleavedPatterns( 51using var result = TemporaryArray<Words>.Empty; 67private static Words GetLongestBackwardSubsequence(int length, in TemporaryArray<TextSpan> breaks, string baseName, bool pluralize) 74private static Words GetLongestForwardSubsequence(int length, in TemporaryArray<TextSpan> breaks, string baseName, bool pluralize) 77private static Words GetWords(int start, int end, in TemporaryArray<TextSpan> breaks, string baseName, bool pluralize)
Completion\CompletionProviders\DeclarationName\IDeclarationNameRecommender.cs (1)
15Task<ImmutableArray<(string name, Glyph glyph)>> ProvideRecommendedNamesAsync(
Completion\CompletionProviders\EnumAndCompletionListTagCompletionProvider.cs (1)
256var additionalFilterTexts = ImmutableArray.Create(staticSymbol.Name);
Completion\CompletionProviders\ExplicitInterfaceMemberCompletionProvider.ItemGetter.cs (2)
61public override async Task<ImmutableArray<CompletionItem>> GetItemsAsync() 249private void AddParameters(ImmutableArray<IParameterSymbol> parameters, StringBuilder builder, SemanticModel semanticModel)
Completion\CompletionProviders\ExplicitInterfaceTypeCompletionProvider.cs (2)
63protected override Task<ImmutableArray<SymbolAndSelectionInfo>> GetSymbolsAsync( 149ImmutableArray<SymbolAndSelectionInfo> symbols,
Completion\CompletionProviders\FunctionPointerUnmanagedCallingConventionCompletionProvider.cs (1)
41private static readonly ImmutableArray<string> s_predefinedCallingConventions = ["Cdecl", "Fastcall", "Thiscall", "Stdcall"];
Completion\CompletionProviders\NamedParameterCompletionProvider.cs (7)
135private static bool IsValid(ImmutableArray<IParameterSymbol> parameterList, ISet<string> existingNamedParameters) 150private static IEnumerable<ImmutableArray<IParameterSymbol>>? GetParameterLists( 167private static IEnumerable<ImmutableArray<IParameterSymbol>>? GetObjectCreationExpressionParameterLists( 183private static IEnumerable<ImmutableArray<IParameterSymbol>>? GetElementAccessExpressionParameterLists( 206private static IEnumerable<ImmutableArray<IParameterSymbol>>? GetConstructorInitializerParameterLists( 229private static IEnumerable<ImmutableArray<IParameterSymbol>>? GetPrimaryConstructorParameterLists( 248private static IEnumerable<ImmutableArray<IParameterSymbol>>? GetInvocationExpressionParameterLists(
Completion\CompletionProviders\ObjectCreationCompletionProvider.cs (2)
64protected override async Task<ImmutableArray<SymbolAndSelectionInfo>> GetSymbolsAsync( 119protected override CompletionItemRules GetCompletionItemRules(ImmutableArray<SymbolAndSelectionInfo> symbols)
Completion\CompletionProviders\OperatorsAndIndexer\UnnamedSymbolCompletionProvider.cs (1)
123CompletionContext context, int position, SemanticModel semanticModel, ImmutableArray<ISymbol> unnamedSymbols, CancellationToken cancellationToken)
Completion\CompletionProviders\OperatorsAndIndexer\UnnamedSymbolCompletionProvider_Conversions.cs (4)
33private static readonly ImmutableArray<KeyValuePair<string, string>> s_conversionProperties = 59private static (ImmutableArray<ISymbol> symbols, ImmutableArray<KeyValuePair<string, string>> properties) GetConversionSymbolsAndProperties( 72var symbols = ImmutableArray.Create<ISymbol>(conversion.ContainingType, conversion.Parameters.First().Type, conversion.ReturnType);
Completion\CompletionProviders\OperatorsAndIndexer\UnnamedSymbolCompletionProvider_Indexers.cs (2)
18private readonly ImmutableArray<KeyValuePair<string, string>> IndexerProperties = 21private void AddIndexers(CompletionContext context, ImmutableArray<ISymbol> indexers)
Completion\CompletionProviders\OperatorsAndIndexer\UnnamedSymbolCompletionProvider_Operators.cs (2)
35private readonly ImmutableArray<KeyValuePair<string, string>> OperatorProperties = 41private static readonly ImmutableArray<(string name, OperatorPosition position)> s_operatorInfo =
Completion\CompletionProviders\OverrideCompletionProvider.cs (2)
192public override ImmutableArray<ISymbol> FilterOverrides(ImmutableArray<ISymbol> members, ITypeSymbol? returnType)
Completion\CompletionProviders\PartialTypeCompletionProvider.cs (1)
78protected override ImmutableArray<KeyValuePair<string, string>> GetProperties(INamedTypeSymbol symbol, CSharpSyntaxContext context)
Completion\CompletionProviders\PropertySubPatternCompletionProvider.cs (4)
71var members = GetCandidatePropertiesAndFields(document, semanticModel, position, type); 120var members = GetCandidatePropertiesAndFields(document, semanticModel, position, type); 135static ImmutableArray<ISymbol> GetCandidatePropertiesAndFields(Document document, SemanticModel semanticModel, int position, ITypeSymbol? type) 137var members = semanticModel.LookupSymbols(position, type);
Completion\CompletionProviders\SnippetCompletionProvider.cs (2)
101private static async Task<ImmutableArray<CompletionItem>> GetSnippetsForDocumentAsync( 166private static ImmutableArray<CompletionItem> GetSnippetCompletionItems(
Completion\CompletionProviders\SymbolCompletionProvider.cs (2)
212protected override CompletionItemRules GetCompletionItemRules(ImmutableArray<SymbolAndSelectionInfo> symbols, CSharpSyntaxContext context) 225ImmutableArray<SymbolAndSelectionInfo> symbols,
Completion\CompletionProviders\TupleNameCompletionProvider.cs (1)
91private static void AddItems(ImmutableArray<INamedTypeSymbol> inferredTypes, int index, CompletionContext context, int spanStart)
Completion\CompletionProviders\XmlDocCommentCompletionProvider.cs (3)
39private static readonly ImmutableArray<string> s_keywordNames; 343protected override ImmutableArray<string> GetKeywordNames() 388protected override ImmutableArray<IParameterSymbol> GetParameters(ISymbol declarationSymbol)
Completion\KeywordRecommenders\AbstractNativeIntegerKeywordRecommender.cs (1)
38public ImmutableArray<RecommendedKeyword> RecommendKeywords(int position, CSharpSyntaxContext context, CancellationToken cancellationToken)
Completion\KeywordRecommenders\AbstractSyntacticSingleKeywordRecommender.cs (4)
18private readonly ImmutableArray<RecommendedKeyword> _keywordPriorityRecommendedKeywords; 19private readonly ImmutableArray<RecommendedKeyword> _defaultPriorityRecommendedKeywords; 46public ImmutableArray<RecommendedKeyword> RecommendKeywords( 81public ImmutableArray<RecommendedKeyword> RecommendKeywords(int position, CSharpSyntaxContext context)
Completion\KeywordRecommenders\DynamicKeywordRecommender.cs (1)
27public ImmutableArray<RecommendedKeyword> RecommendKeywords(int position, CSharpSyntaxContext context, CancellationToken cancellationToken)
Completion\KeywordRecommenders\NotnullKeywordRecommender.cs (1)
14public ImmutableArray<RecommendedKeyword> RecommendKeywords(int position, CSharpSyntaxContext context, CancellationToken cancellationToken)
Completion\KeywordRecommenders\VarKeywordRecommender.cs (1)
31public ImmutableArray<RecommendedKeyword> RecommendKeywords(int position, CSharpSyntaxContext context, CancellationToken cancellationToken)
ConvertAnonymousType\CSharpConvertAnonymousTypeToTupleCodeRefactoringProvider.cs (1)
42var originalSeparators = declarators.GetSeparators().ToImmutableArray();
ConvertIfToSwitch\CSharpConvertIfToSwitchCodeRefactoringProvider.Rewriting.cs (1)
31public override SyntaxNode CreateSwitchExpressionStatement(SyntaxNode target, ImmutableArray<AnalyzedSwitchSection> sections, Feature feature)
ConvertLinq\ConvertForEachToLinqQuery\DefaultConverter.cs (1)
98private static BlockSyntax WrapWithBlockIfNecessary(ImmutableArray<StatementSyntax> statements)
ConvertNamespace\ConvertNamespaceCodeRefactoringProvider.cs (2)
32protected override ImmutableArray<FixAllScope> SupportedFixAllScopes 89ImmutableArray<TextSpan> fixAllSpans,
ConvertProgram\ConvertProgramTransform_ProgramMain.cs (1)
120private static ImmutableArray<StatementSyntax> GenerateProgramMainStatements(
ConvertProgram\ConvertProgramTransform_TopLevelStatements.cs (2)
106var globalStatements = GetGlobalStatements( 153private static ImmutableArray<GlobalStatementSyntax> GetGlobalStatements(
ConvertProgram\ConvertToProgramMainCodeFixProvider.cs (2)
28public override ImmutableArray<string> FixableDiagnosticIds 45Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken)
ConvertProgram\ConvertToTopLevelStatementsCodeFixProvider.cs (2)
32public override ImmutableArray<string> FixableDiagnosticIds 49Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken)
ConvertToRawString\ConvertStringToRawStringCodeRefactoringProvider.cs (3)
40private static readonly ImmutableArray<IConvertStringProvider> s_convertStringProviders = [ConvertRegularStringToRawStringProvider.Instance, ConvertInterpolatedStringToRawStringProvider.Instance]; 42protected override ImmutableArray<FixAllScope> SupportedFixAllScopes => AllFixAllScopes; 140ImmutableArray<TextSpan> fixAllSpans,
Copilot\CSharpCopilotCodeFixProvider.cs (1)
52public sealed override ImmutableArray<string> FixableDiagnosticIds => [CopilotDiagnosticId];
Copilot\CSharpCopilotCodeFixProvider.DocumentChangeCodeAction.cs (1)
28internal sealed override ImmutableArray<CodeAction> AdditionalPreviewFlavors { get; } = [dismissChangesCodeAction];
Diagnostics\Analyzers\CSharpPreferFrameworkTypeDiagnosticAnalyzer.cs (1)
22protected override ImmutableArray<SyntaxKind> SyntaxKindsOfInterest { get; } =
Diagnostics\Analyzers\CSharpSimplifyTypeNamesDiagnosticAnalyzer.cs (3)
25private static readonly ImmutableArray<SyntaxKind> s_kindsOfInterest = 51protected override ImmutableArray<Diagnostic> AnalyzeCodeBlock(CodeBlockAnalysisContext context, SyntaxNode root) 67protected override ImmutableArray<Diagnostic> AnalyzeSemanticModel(SemanticModelAnalysisContext context, SyntaxNode root, TextSpanMutableIntervalTree? codeBlockIntervalTree)
Diagnostics\Analyzers\CSharpUnboundIdentifiersDiagnosticAnalyzer.cs (2)
21private static readonly ImmutableArray<SyntaxKind> s_kindsOfInterest = [SyntaxKind.IncompleteMember]; 23protected override ImmutableArray<SyntaxKind> SyntaxKindsOfInterest => s_kindsOfInterest;
Diagnostics\Analyzers\TypeSyntaxSimplifierWalker.cs (4)
48private ImmutableArray<Diagnostic>.Builder? _diagnostics; 60public ImmutableArray<Diagnostic> Diagnostics => _diagnostics?.ToImmutable() ?? []; 62public ImmutableArray<Diagnostic>.Builder DiagnosticsBuilder 96var scopes = _semanticModel.GetImportScopes(position: 0, _cancellationToken);
DocumentHighlighting\CSharpDocumentHighlightsService.cs (1)
34protected override async Task<ImmutableArray<Location>> GetAdditionalReferencesAsync(
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (6)
587protected override IEnumerable<SequenceEdit> GetSyntaxSequenceEdits(ImmutableArray<SyntaxNode> oldNodes, ImmutableArray<SyntaxNode> newNodes) 992var syntaxRefs = type.DeclaringSyntaxReferences; 997protected override SyntaxNode? GetSymbolDeclarationSyntax(ISymbol symbol, Func<ImmutableArray<SyntaxReference>, SyntaxReference?> selector, CancellationToken cancellationToken) 1576var oldParameters = oldMethod.Parameters; 1577var newParameters = newMethod.Parameters;
EditAndContinue\DeclarationBody\CopyConstructorDeclarationBody.cs (1)
45public override ImmutableArray<ISymbol> GetCapturedVariables(SemanticModel model)
EditAndContinue\DeclarationBody\CSharpLambdaBody.cs (1)
35public override ImmutableArray<ISymbol> GetCapturedVariables(SemanticModel model)
EditAndContinue\DeclarationBody\FieldWithInitializerDeclarationBody.cs (1)
33public override ImmutableArray<ISymbol> GetCapturedVariables(SemanticModel model)
EditAndContinue\DeclarationBody\OrdinaryInstanceConstructorWithExplicitInitializerDeclarationBody.cs (1)
29public override ImmutableArray<ISymbol> GetCapturedVariables(SemanticModel model)
EditAndContinue\DeclarationBody\OrdinaryInstanceConstructorWithImplicitInitializerDeclarationBody.cs (1)
26public override ImmutableArray<ISymbol> GetCapturedVariables(SemanticModel model)
EditAndContinue\DeclarationBody\PrimaryConstructorWithExplicitInitializerDeclarationBody.cs (1)
41public override ImmutableArray<ISymbol> GetCapturedVariables(SemanticModel model)
EditAndContinue\DeclarationBody\PrimaryConstructorWithImplicitInitializerDeclarationBody.cs (1)
41public override ImmutableArray<ISymbol> GetCapturedVariables(SemanticModel model)
EditAndContinue\DeclarationBody\PropertyOrIndexerAccessorDeclarationBody.cs (1)
76public sealed override ImmutableArray<ISymbol> GetCapturedVariables(SemanticModel model)
EditAndContinue\DeclarationBody\TopLevelCodeDeclarationBody.cs (1)
29public override ImmutableArray<ISymbol> GetCapturedVariables(SemanticModel model)
EditAndContinue\SyntaxComparer.cs (5)
1609private static ImmutableArray<T> CreateArrayForDistanceCalculation<T>(IEnumerable<T>? enumerable) 1639public static IEnumerable<SequenceEdit> GetSequenceEdits(ImmutableArray<SyntaxNode> oldNodes, ImmutableArray<SyntaxNode> newNodes) 1651public static IEnumerable<SequenceEdit> GetSequenceEdits(ImmutableArray<SyntaxToken> oldTokens, ImmutableArray<SyntaxToken> newTokens)
EncapsulateField\CSharpEncapsulateFieldService.cs (1)
123protected override async Task<ImmutableArray<IFieldSymbol>> GetFieldsAsync(Document document, TextSpan span, CancellationToken cancellationToken)
ExternalAccess\Pythia\Api\IPythiaDeclarationNameRecommenderImplmentation.cs (1)
17public Task<ImmutableArray<string>> ProvideRecommendationsAsync(PythiaDeclarationNameContext context, CancellationToken cancellationToken);
ExternalAccess\Pythia\Api\IPythiaSignatureHelpProviderImplementation.cs (2)
14Task<(ImmutableArray<PythiaSignatureHelpItemWrapper> items, int? selectedItemIndex)> GetMethodGroupItemsAndSelectionAsync(ImmutableArray<IMethodSymbol> accessibleMethods, Document document, InvocationExpressionSyntax invocationExpression, SemanticModel semanticModel, SymbolInfo currentSymbol, CancellationToken cancellationToken);
ExternalAccess\Pythia\PythiaDeclarationNameRecommender.cs (1)
26public async Task<ImmutableArray<(string name, Glyph glyph)>> ProvideRecommendedNamesAsync(
ExternalAccess\Pythia\PythiaSignatureHelpProvider.cs (2)
30internal override async Task<(ImmutableArray<SignatureHelpItem> items, int? selectedItemIndex)> GetMethodGroupItemsAndSelectionAsync( 31ImmutableArray<IMethodSymbol> accessibleMethods,
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.CallSiteContainerRewriter.cs (3)
28private readonly ImmutableArray<SyntaxNode> _statementsOrMemberOrAccessorToInsert; 35ImmutableArray<SyntaxNode> statementsOrFieldToInsert) 289var statements = _statementsOrMemberOrAccessorToInsert.CastArray<StatementSyntax>();
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.cs (18)
88public override OperationStatus<ImmutableArray<SyntaxNode>> GetNewMethodStatements(SyntaxNode insertionPointNode, CancellationToken cancellationToken) 90var statements = CreateMethodBody(insertionPointNode, cancellationToken); 98var statements = CreateMethodBody(insertionPointNode, cancellationToken); 131var statementsToInsert = await CreateStatementsOrInitializerToInsertAtCallSiteAsync( 144private async Task<ImmutableArray<SyntaxNode>> CreateStatementsOrInitializerToInsertAtCallSiteAsync( 263private ImmutableArray<StatementSyntax> CreateMethodBody( 266var statements = GetInitialStatementsForMethodDefinitions(); 276private ImmutableArray<StatementSyntax> WrapInCheckStatementIfNeeded(ImmutableArray<StatementSyntax> statements) 287private static ImmutableArray<StatementSyntax> CleanupCode(ImmutableArray<StatementSyntax> statements) 296private static OperationStatus CheckActiveStatements(ImmutableArray<StatementSyntax> statements) 320private ImmutableArray<StatementSyntax> MoveDeclarationOutFromMethodDefinition( 321ImmutableArray<StatementSyntax> statements, CancellationToken cancellationToken) 516private ImmutableArray<StatementSyntax> SplitOrMoveDeclarationIntoMethodDefinition( 518ImmutableArray<StatementSyntax> statements, 618ImmutableArray<VariableInfo> variableInfos, ExpressionSyntax rvalue) 639ImmutableArray<VariableInfo> variableInfos,
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.ExpressionCodeGenerator.cs (1)
87protected override ImmutableArray<StatementSyntax> GetInitialStatementsForMethodDefinitions()
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.MultipleStatementsCodeGenerator.cs (1)
32protected override ImmutableArray<StatementSyntax> GetInitialStatementsForMethodDefinitions()
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.SingleStatementCodeGenerator.cs (1)
28protected override ImmutableArray<StatementSyntax> GetInitialStatementsForMethodDefinitions()
ExtractMethod\CSharpMethodExtractor.PostProcessor.cs (11)
34public static ImmutableArray<StatementSyntax> RemoveRedundantBlock(ImmutableArray<StatementSyntax> statements) 52private static ImmutableArray<StatementSyntax> RemoveRedundantBlock(BlockSyntax block) 80public ImmutableArray<StatementSyntax> MergeDeclarationStatements(ImmutableArray<StatementSyntax> statements) 90private ImmutableArray<StatementSyntax> MergeDeclarationStatementsWorker(ImmutableArray<StatementSyntax> statements) 225public static ImmutableArray<StatementSyntax> RemoveInitializedDeclarationAndReturnPattern(ImmutableArray<StatementSyntax> statements) 264public static ImmutableArray<StatementSyntax> RemoveDeclarationAssignmentPattern(ImmutableArray<StatementSyntax> statements)
FullyQualify\CSharpFullyQualifyCodeFixProvider.cs (1)
49public override ImmutableArray<string> FixableDiagnosticIds { get; } =
GenerateEqualsAndGetHashCodeFromMembers\CSharpGenerateEqualsAndGetHashCodeService.cs (2)
25protected override bool TryWrapWithUnchecked(ImmutableArray<SyntaxNode> statements, out ImmutableArray<SyntaxNode> wrappedStatements)
GenerateType\CSharpGenerateTypeService.cs (2)
429var memberGroup = semanticModel.GetMemberGroup(expression, cancellationToken); 468protected override ImmutableArray<ITypeParameterSymbol> GetTypeParameters(
ImplementInterface\AbstractChangeImplementationCodeRefactoringProvider.cs (1)
188private MemberImplementationMap GetImplementedMembers(INamedTypeSymbol containingType, ImmutableArray<INamedTypeSymbol> interfaceTypes)
ImplementInterface\CSharpImplementImplicitlyCodeRefactoringProvider.cs (1)
38var containingTypeInterfaces = member.ContainingType.AllInterfaces;
InheritanceMargin\CSharpInheritanceMarginService.cs (1)
28protected override ImmutableArray<SyntaxNode> GetMembers(IEnumerable<SyntaxNode> nodesToSearch)
InitializeParameter\CSharpInitializeMemberFromPrimaryConstructorParameterCodeRefactoringProvider.cs (5)
87var parameterWords = parameterNameParts.BaseNameParts; 164var parameters = GetParametersWithoutAssociatedMembers(); 191ImmutableArray<IParameterSymbol> GetParametersWithoutAssociatedMembers() 213var parameterNameParts = IdentifierNameParts.CreateIdentifierNameParts(parameter, rules).BaseNameParts; 239var parameterNameParts = IdentifierNameParts.CreateIdentifierNameParts(parameter, rules).BaseNameParts;
InitializeParameter\CSharpInitializeMemberFromPrimaryConstructorParameterCodeRefactoringProvider_Update.cs (2)
27ImmutableArray<IParameterSymbol> parameters, 28ImmutableArray<ISymbol> fieldsOrProperties,
LanguageServices\CSharpStructuralTypeDisplayService.cs (1)
32protected override ImmutableArray<SymbolDisplayPart> GetNormalAnonymousTypeParts(
LanguageServices\CSharpSymbolDisplayService.SymbolDescriptionBuilder.cs (9)
95protected override Task<ImmutableArray<SymbolDisplayPart>> GetInitializerSourcePartsAsync( 115protected override ImmutableArray<SymbolDisplayPart> ToMinimalDisplayParts(ISymbol symbol, SemanticModel semanticModel, int position, SymbolDisplayFormat format) 117var displayParts = CodeAnalysis.CSharp.SymbolDisplay.ToMinimalDisplayParts(symbol, semanticModel, position, format); 121protected override ImmutableArray<SymbolDisplayPart> WrapConstraints(ISymbol symbol, ImmutableArray<SymbolDisplayPart> displayParts) 169private async Task<ImmutableArray<SymbolDisplayPart>> GetInitializerSourcePartsAsync( 197private async Task<ImmutableArray<SymbolDisplayPart>> GetInitializerSourcePartsAsync( 209private async Task<ImmutableArray<SymbolDisplayPart>> GetInitializerSourcePartsAsync( 235private async Task<ImmutableArray<SymbolDisplayPart>> GetInitializerSourcePartsAsync(
LineSeparators\CSharpLineSeparatorService.cs (1)
34public async Task<ImmutableArray<TextSpan>> GetLineSeparatorsAsync(
MakeLocalFunctionStatic\MakeLocalFunctionStaticCodeRefactoringProvider.cs (1)
42if (MakeLocalFunctionStaticHelper.CanMakeLocalFunctionStaticByRefactoringCaptures(localFunction, semanticModel, out var captures))
MetadataAsSource\CSharpMetadataAsSourceService.cs (2)
58protected override ImmutableArray<AbstractFormattingRule> GetFormattingRules(Document document) 70protected override ImmutableArray<AbstractReducer> GetReducers()
NavigationBar\CSharpNavigationBarItemService.cs (2)
48protected override async Task<ImmutableArray<RoslynNavigationBarItem>> GetItemsInCurrentProcessAsync( 56private static ImmutableArray<RoslynNavigationBarItem> GetMembersInTypes(
Options\CSharpEditorConfigOptionsEnumerator.cs (1)
21public IEnumerable<(string feature, ImmutableArray<IOption2> options)> GetOptions(bool includeUnsupported)
Organizing\Organizers\ModifiersOrganizer.Comparer.cs (1)
36private static readonly ImmutableArray<Func<SyntaxToken, IComparable>> s_comparers =
QuickInfo\CSharpSyntacticQuickInfoProvider.cs (1)
92var spans = ImmutableArray.Create(TextSpan.FromBounds(spanStart, spanEnd));
RemoveUnusedVariable\CSharpRemoveUnusedVariableCodeFixProvider.cs (1)
32public sealed override ImmutableArray<string> FixableDiagnosticIds
ReplacePropertyWithMethods\CSharpReplacePropertyWithMethodsService.cs (2)
35public override async Task<ImmutableArray<SyntaxNode>> GetReplacementMembersAsync( 59private static ImmutableArray<SyntaxNode> ConvertPropertyToMembers(
SignatureHelp\ElementAccessExpressionSignatureHelpProvider.cs (3)
83if (!TryGetIndexers(position, semanticModel, expression, cancellationToken, out var indexers, out var expressionType) && 183out ImmutableArray<IPropertySymbol> indexers, out ITypeSymbol? expressionType) 201out ImmutableArray<IPropertySymbol> indexers, out ITypeSymbol? expressionType)
SignatureHelp\InvocationExpressionSignatureHelpProviderBase_MethodGroup.cs (3)
20internal virtual Task<(ImmutableArray<SignatureHelpItem> items, int? selectedItemIndex)> GetMethodGroupItemsAndSelectionAsync( 21ImmutableArray<IMethodSymbol> accessibleMethods, 35private static ImmutableArray<IMethodSymbol> GetAccessibleMethods(
SignatureHelp\LightweightOverloadResolution.cs (3)
25public (IMethodSymbol? method, int parameterIndex) RefineOverloadAndPickParameter(SymbolInfo symbolInfo, ImmutableArray<IMethodSymbol> candidates) 43private (IMethodSymbol? symbol, int parameterIndex) GuessCurrentSymbolAndParameter(ImmutableArray<IMethodSymbol> methodGroup) 76var parameters = method.Parameters;
SignatureHelp\ObjectCreationExpressionSignatureHelpProvider_DelegateType.cs (1)
15private static ImmutableArray<SignatureHelpItem> ConvertDelegateTypeConstructor(
SignatureHelp\TupleConstructionSignatureHelpProvider.cs (4)
135var inferredTypes = typeInferrer.InferTypes(semanticModel, targetExpression!.SpanStart, cancellationToken); 165private static SignatureHelpItem Convert(INamedTypeSymbol tupleType, ImmutableArray<TaggedText> prefixParts, ImmutableArray<TaggedText> suffixParts, 166ImmutableArray<TaggedText> separatorParts, SemanticModel semanticModel, int position)
Snippets\AbstractCSharpAutoPropertySnippetProvider.cs (1)
78protected override ImmutableArray<SnippetPlaceholder> GetPlaceHolderLocationsList(PropertyDeclarationSyntax propertyDeclaration, ISyntaxFacts syntaxFacts, CancellationToken cancellationToken)
Snippets\AbstractCSharpForLoopSnippetProvider.cs (1)
88protected override ImmutableArray<SnippetPlaceholder> GetPlaceHolderLocationsList(ForStatementSyntax forStatement, ISyntaxFacts syntaxFacts, CancellationToken cancellationToken)
Snippets\CSharpForEachLoopSnippetProvider.cs (1)
112protected override ImmutableArray<SnippetPlaceholder> GetPlaceHolderLocationsList(ForEachStatementSyntax node, ISyntaxFacts syntaxFacts, CancellationToken cancellationToken)
Snippets\CSharpLockSnippetProvider.cs (1)
28protected override ImmutableArray<SnippetPlaceholder> GetPlaceHolderLocationsList(LockStatementSyntax node, ISyntaxFacts syntaxFacts, CancellationToken cancellationToken)
SpellCheck\CSharpSpellcheckCodeFixProvider.cs (2)
35private static ImmutableArray<string> GetFixableDiagnosticIds() 47public override ImmutableArray<string> FixableDiagnosticIds { get; } = GetFixableDiagnosticIds();
SplitOrMergeIfStatements\CSharpIfLikeStatementGenerator.cs (1)
86public ImmutableArray<SyntaxNode> GetElseIfAndElseClauses(SyntaxNode ifOrElseIf)
src\Analyzers\CSharp\Analyzers\AddAccessibilityModifiers\CSharpAddAccessibilityModifiersDiagnosticAnalyzer.cs (1)
57var additionalLocations = ImmutableArray.Create(member.GetLocation());
src\Analyzers\CSharp\Analyzers\AddRequiredParentheses\CSharpAddRequiredExpressionParenthesesDiagnosticAnalyzer.cs (2)
26private static readonly ImmutableArray<SyntaxKind> s_kinds = 52protected override ImmutableArray<SyntaxKind> GetSyntaxNodeKinds()
src\Analyzers\CSharp\Analyzers\AddRequiredParentheses\CSharpAddRequiredPatternParenthesesDiagnosticAnalyzer.cs (2)
25private static readonly ImmutableArray<SyntaxKind> s_kinds = [SyntaxKind.AndPattern, SyntaxKind.OrPattern]; 27protected override ImmutableArray<SyntaxKind> GetSyntaxNodeKinds()
src\Analyzers\CSharp\Analyzers\ForEachCast\CSharpForEachCastDiagnosticAnalyzer.cs (1)
23protected override ImmutableArray<SyntaxKind> GetSyntaxKinds()
src\Analyzers\CSharp\Analyzers\InlineDeclaration\CSharpInlineDeclarationDiagnosticAnalyzer.cs (1)
230var allLocations = ImmutableArray.Create(
src\Analyzers\CSharp\Analyzers\InvokeDelegateWithConditionalAccess\InvokeDelegateWithConditionalAccessAnalyzer.cs (1)
172ImmutableArray<Location> additionalLocations,
src\Analyzers\CSharp\Analyzers\MakeLocalFunctionStatic\MakeLocalFunctionStaticHelper.cs (1)
43public static bool CanMakeLocalFunctionStaticByRefactoringCaptures(LocalFunctionStatementSyntax localFunction, SemanticModel semanticModel, out ImmutableArray<ISymbol> captures)
src\Analyzers\CSharp\Analyzers\MatchFolderAndNamespace\CSharpMatchFolderAndNamespaceDiagnosticAnalyzer.cs (1)
36protected override ImmutableArray<SyntaxKind> GetSyntaxKindsToAnalyze()
src\Analyzers\CSharp\Analyzers\NamingStyle\CSharpNamingStyleDiagnosticAnalyzer.cs (1)
17protected override ImmutableArray<SyntaxKind> SupportedSyntaxKinds { get; } =
src\Analyzers\CSharp\Analyzers\NewLines\EmbeddedStatementPlacement\EmbeddedStatementPlacementDiagnosticAnalyzer.cs (1)
73var additionalLocations = ImmutableArray.Create(statement.GetLocation());
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryCast\CSharpRemoveUnnecessaryCastDiagnosticAnalyzer.cs (1)
23protected override ImmutableArray<SyntaxKind> SyntaxKindsOfInterest { get; } =
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryImports\CSharpRemoveUnnecessaryImportsDiagnosticAnalyzer.cs (3)
37protected override ImmutableArray<SyntaxNode> MergeImports(ImmutableArray<UsingDirectiveSyntax> unnecessaryImports) 38=> ImmutableArray<SyntaxNode>.CastUp(unnecessaryImports);
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryNullableDirective\CSharpRemoveUnnecessaryNullableDirectiveDiagnosticAnalyzer.cs (6)
82private static ImmutableArray<TextSpan> AnalyzeCodeBlock(CodeBlockAnalysisContext context, int positionOfFirstReducingNullableDirective) 89private ImmutableArray<Diagnostic> AnalyzeSemanticModel(SemanticModelAnalysisContext context, int positionOfFirstReducingNullableDirective, TextSpanMutableIntervalTree? codeBlockIntervalTree, TextSpanMutableIntervalTree? possibleNullableImpactIntervalTree) 221public bool TryReportNullableImpactingSpans(TextSpan span, ImmutableArray<TextSpan> nullableImpactingSpans) 225private bool TryProceedOrReportNullableImpactingSpans(TextSpan span, ImmutableArray<TextSpan>? nullableImpactingSpans) 287var nullableImpactingSpans = CSharpRemoveUnnecessaryNullableDirectiveDiagnosticAnalyzer.AnalyzeCodeBlock(context, syntaxTreeState.PositionOfFirstReducingNullableDirective.Value); 315var diagnostics = _analyzer.AnalyzeSemanticModel(context, positionOfFirstReducingNullableDirective, syntaxTreeState.IntervalTree, syntaxTreeState.PossibleNullableImpactIntervalTree);
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryNullableDirective\NullableImpactingSpanWalker.cs (3)
28private ImmutableArray<TextSpan>.Builder? _spans; 32public ImmutableArray<TextSpan> Spans => _spans?.ToImmutable() ?? []; 34public ImmutableArray<TextSpan>.Builder SpansBuilder
src\Analyzers\CSharp\Analyzers\RemoveUnreachableCode\CSharpRemoveUnreachableCodeDiagnosticAnalyzer.cs (5)
60var diagnostics = semanticModel.GetDiagnostics(context.FilterSpan, cancellationToken); 121var additionalLocations = ImmutableArray.Create(firstStatementLocation); 131var sections = RemoveUnreachableCodeHelpers.GetSubsequentUnreachableSections(firstUnreachableStatement); 132foreach (var section in sections) 140var additionalUnnecessaryLocations = ImmutableArray.Create(location);
src\Analyzers\CSharp\Analyzers\RemoveUnreachableCode\RemoveUnreachableCodeHelpers.cs (6)
15public static ImmutableArray<ImmutableArray<StatementSyntax>> GetSubsequentUnreachableSections(StatementSyntax firstUnreachableStatement) 17ImmutableArray<StatementSyntax> siblingStatements; 58var sections = ArrayBuilder<ImmutableArray<StatementSyntax>>.GetInstance(); 99private static void AddIfNonEmpty(ArrayBuilder<ImmutableArray<StatementSyntax>> sections, ImmutableArray<StatementSyntax> lastSection)
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForArrayDiagnosticAnalyzer.cs (6)
54var matches = TryGetMatches(semanticModel, arrayCreationExpression, replacementExpression, expressionType, allowSemanticsChange, cancellationToken, out var changesSemantics); 61public static ImmutableArray<CollectionMatch<StatementSyntax>> TryGetMatches( 72var matches = UseCollectionExpressionHelpers.TryGetMatches( 118public static ImmutableArray<CollectionMatch<StatementSyntax>> TryGetMatches( 208var locations = ImmutableArray.Create(expression.GetLocation()); 217var additionalUnnecessaryLocations = ImmutableArray.Create(
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForBuilderDiagnosticAnalyzer.cs (7)
52var locations = ImmutableArray.Create(invocationExpression.GetLocation()); 66void FadeOutCode(SyntaxNodeAnalysisContext context, AnalysisResult analysisResult, ImmutableArray<Location> locations) 68var additionalUnnecessaryLocations = ImmutableArray.Create( 221is nameof(ImmutableArray<int>.Builder.ToImmutable) 222or nameof(ImmutableArray<int>.Builder.MoveToImmutable) 223or nameof(ImmutableArray<int>.Builder.ToArray) 253ImmutableArray<CollectionMatch<SyntaxNode>> Matches,
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForCreateDiagnosticAnalyzer.cs (2)
49var locations = ImmutableArray.Create(invocationExpression.GetLocation()); 60var additionalUnnecessaryLocations = ImmutableArray.Create(
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForFluentDiagnosticAnalyzer.cs (4)
42private static readonly ImmutableArray<string> s_suffixes = 57nameof(ImmutableArray<int>), 466ImmutableArray<CollectionMatch<ArgumentSyntax>> PreMatches, 467ImmutableArray<CollectionMatch<ArgumentSyntax>> PostMatches,
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForNewDiagnosticAnalyzer.cs (2)
74var locations = ImmutableArray.Create(objectCreationExpression.GetLocation()); 85var additionalUnnecessaryLocations = ImmutableArray.Create(
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForStackAllocDiagnosticAnalyzer.cs (6)
60var locations = ImmutableArray.Create(expression.GetLocation()); 69var additionalUnnecessaryLocations = ImmutableArray.Create( 96var matches = TryGetMatches(semanticModel, expression, expressionType, allowSemanticsChange, cancellationToken); 100var locations = ImmutableArray.Create(expression.GetLocation()); 109var additionalUnnecessaryLocations = ImmutableArray.Create( 123public static ImmutableArray<CollectionMatch<StatementSyntax>> TryGetMatches(
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\UseCollectionExpressionHelpers.cs (3)
353var constructors = namedType.Constructors; 377IMethodSymbol? GetAccessibleInstanceConstructor(ImmutableArray<IMethodSymbol> constructors, Func<IMethodSymbol, bool> predicate) 734public static ImmutableArray<CollectionMatch<StatementSyntax>> TryGetMatches<TArrayCreationExpressionSyntax>(
src\Analyzers\CSharp\Analyzers\UseCollectionInitializer\CSharpUseCollectionInitializerDiagnosticAnalyzer.cs (2)
53ImmutableArray<CollectionMatch<SyntaxNode>> preMatches, 66static IEnumerable<CollectionElementSyntax> GetMatchElements(ImmutableArray<CollectionMatch<SyntaxNode>> preMatches)
src\Analyzers\CSharp\Analyzers\UseCompoundAssignment\Utilities.cs (1)
12public static readonly ImmutableArray<(SyntaxKind, SyntaxKind, SyntaxKind)> Kinds =
src\Analyzers\CSharp\Analyzers\UseDeconstruction\CSharpUseDeconstructionDiagnosticAnalyzer.cs (3)
93out ImmutableArray<MemberAccessExpressionSyntax> memberAccessExpressions, 123out ImmutableArray<MemberAccessExpressionSyntax> memberAccessExpressions, 142out ImmutableArray<MemberAccessExpressionSyntax> memberAccessExpressions,
src\Analyzers\CSharp\Analyzers\UseExpressionBody\Helpers\UseExpressionBodyHelper.cs (2)
22public abstract ImmutableArray<SyntaxKind> SyntaxKinds { get; } 35public static readonly ImmutableArray<UseExpressionBodyHelper> Helpers =
src\Analyzers\CSharp\Analyzers\UseExpressionBody\Helpers\UseExpressionBodyHelper`1.cs (2)
35public override ImmutableArray<SyntaxKind> SyntaxKinds { get; } 43ImmutableArray<SyntaxKind> syntaxKinds)
src\Analyzers\CSharp\Analyzers\UseExpressionBody\UseExpressionBodyDiagnosticAnalyzer.cs (5)
20private readonly ImmutableArray<SyntaxKind> _syntaxKinds; 22private static readonly ImmutableArray<UseExpressionBodyHelper> _helpers = UseExpressionBodyHelper.Helpers; 30private static ImmutableArray<(DiagnosticDescriptor, IOption2)> GetSupportedDescriptorsWithOptions() 104var additionalLocations = ImmutableArray.Create(declaration.GetLocation()); 123var additionalLocations = ImmutableArray.Create(declaration.GetLocation());
src\Analyzers\CSharp\Analyzers\UseExpressionBodyForLambda\UseExpressionBodyForLambdaDiagnosticAnalyzer.cs (2)
78var additionalLocations = ImmutableArray.Create(declaration.GetLocation()); 93var additionalLocations = ImmutableArray.Create(declaration.GetLocation());
src\Analyzers\CSharp\Analyzers\UseLocalFunction\CSharpUseLocalFunctionDiagnosticAnalyzer.cs (3)
122if (!CanReplaceAnonymousWithLocalFunction(semanticModel, expressionType, local, block, anonymousFunction, out var referenceLocations, cancellationToken)) 133var additionalLocations = ImmutableArray.Create( 238AnonymousFunctionExpressionSyntax anonymousFunction, out ImmutableArray<Location> referenceLocations, CancellationToken cancellationToken)
src\Analyzers\CSharp\Analyzers\UseNameofInNullableAttribute\CSharpUseNameofInNullableAttributeDiagnosticAnalyzer.cs (1)
102var symbols = semanticModel.LookupSymbols(argument.Expression.SpanStart, name: stringValue);
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpIsAndCastCheckDiagnosticAnalyzer.cs (1)
148var additionalLocations = ImmutableArray.Create(
src\Analyzers\CSharp\Analyzers\UsePrimaryConstructor\CSharpUsePrimaryConstructorDiagnosticAnalyzer.cs (2)
347var constructors = namedType.InstanceConstructors; 574var symbols = semanticModel.LookupSymbols(operation.Syntax.SpanStart, name: parameter.Name);
src\Analyzers\CSharp\Analyzers\UseSimpleUsingStatement\UseSimpleUsingStatementDiagnosticAnalyzer.cs (1)
169private static bool DeclaredLocalCausesCollision(Dictionary<string, ArrayBuilder<ISymbol>> symbolNameToExistingSymbol, ImmutableArray<ILocalSymbol> locals)
src\Analyzers\CSharp\Analyzers\UseUtf8StringLiteral\UseUtf8StringLiteralDiagnosticAnalyzer.cs (5)
91var elements = arrayCreationOperation.Initializer.ElementValues; 118private void ReportParameterArrayDiagnostic(OperationAnalysisContext context, SyntaxNode syntaxNode, ImmutableArray<IOperation> elements, NotificationOption2 notificationOption, ArrayCreationOperationLocation operationLocation) 141var additionalLocations = ImmutableArray.Create(syntaxNode.GetLocation()); 150internal static bool TryConvertToUtf8String(StringBuilder? builder, ImmutableArray<IOperation> arrayCreationElements) 193private static bool TryGetNextRune(ImmutableArray<IOperation> arrayCreationElements, int startIndex, out Rune rune, out int bytesConsumed)
src\Analyzers\CSharp\CodeFixes\AddAnonymousTypeMemberName\CSharpAddAnonymousTypeMemberNameCodeFixProvider.cs (1)
27public override ImmutableArray<string> FixableDiagnosticIds { get; }
src\Analyzers\CSharp\CodeFixes\AddBraces\CSharpAddBracesCodeFixProvider.cs (2)
22public override ImmutableArray<string> FixableDiagnosticIds 32Document document, ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\CSharp\CodeFixes\AddExplicitCast\CSharpAddExplicitCastCodeFixProvider.cs (1)
38public override ImmutableArray<string> FixableDiagnosticIds => [CS0266, CS1503];
src\Analyzers\CSharp\CodeFixes\AddInheritdoc\AddInheritdocCodeFixProvider.cs (2)
34public override ImmutableArray<string> FixableDiagnosticIds => [CS1591]; 67protected override async Task FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\CSharp\CodeFixes\AddObsoleteAttribute\CSharpAddObsoleteAttributeCodeFixProvider.cs (1)
21public override ImmutableArray<string> FixableDiagnosticIds { get; } =
src\Analyzers\CSharp\CodeFixes\AddParameter\CSharpAddParameterCodeFixProvider.cs (5)
38private static readonly ImmutableArray<string> AddParameterFixableDiagnosticIds = [CS1501, CS1503, CS1660, CS1729, CS1739]; 40public override ImmutableArray<string> FixableDiagnosticIds 43protected override ImmutableArray<string> TooManyArgumentsDiagnosticIds 46protected override ImmutableArray<string> CannotConvertDiagnosticIds 74var methodCandidates = type.InstanceConstructors;
src\Analyzers\CSharp\CodeFixes\AliasAmbiguousType\CSharpAliasAmbiguousTypeCodeFixProvider.cs (1)
25public override ImmutableArray<string> FixableDiagnosticIds
src\Analyzers\CSharp\CodeFixes\AssignOutParameters\AbstractAssignOutParametersCodeFixProvider.cs (8)
26public sealed override ImmutableArray<string> FixableDiagnosticIds { get; } = 95private static async Task<MultiDictionary<SyntaxNode, (SyntaxNode exprOrStatement, ImmutableArray<IParameterSymbol>)>> GetUnassignedParametersAsync( 96Document document, ImmutableArray<Diagnostic> diagnostics, CancellationToken cancellationToken) 105var result = new MultiDictionary<SyntaxNode, (SyntaxNode exprOrStatement, ImmutableArray<IParameterSymbol>)>(); 136Document document, ImmutableArray<Diagnostic> diagnostics, 151MultiDictionary<SyntaxNode, (SyntaxNode exprOrStatement, ImmutableArray<IParameterSymbol> unassignedParameters)>.ValueSet values, 154protected static ImmutableArray<SyntaxNode> GenerateAssignmentStatements( 155SyntaxGenerator generator, ImmutableArray<IParameterSymbol> unassignedParameters)
src\Analyzers\CSharp\CodeFixes\AssignOutParameters\AssignOutParametersAboveReturnCodeFixProvider.cs (2)
33MultiDictionary<SyntaxNode, (SyntaxNode exprOrStatement, ImmutableArray<IParameterSymbol> unassignedParameters)>.ValueSet values, 44SyntaxEditor editor, SyntaxNode exprOrStatement, ImmutableArray<SyntaxNode> statements)
src\Analyzers\CSharp\CodeFixes\AssignOutParameters\AssignOutParametersAtStartCodeFixProvider.cs (2)
57MultiDictionary<SyntaxNode, (SyntaxNode exprOrStatement, ImmutableArray<IParameterSymbol> unassignedParameters)>.ValueSet values, 68var originalStatements = generator.GetStatements(container).ToImmutableArray();
src\Analyzers\CSharp\CodeFixes\ConditionalExpressionInStringInterpolation\CSharpAddParenthesesAroundConditionalExpressionInInterpolatedStringCodeFixProvider.cs (1)
33public override ImmutableArray<string> FixableDiagnosticIds => [CS8361];
src\Analyzers\CSharp\CodeFixes\ConvertNamespace\ConvertNamespaceCodeFixProvider.cs (2)
29public override ImmutableArray<string> FixableDiagnosticIds 52Document document, ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\CSharp\CodeFixes\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionCodeFixProvider.cs (2)
34public override ImmutableArray<string> FixableDiagnosticIds 52Document document, ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\CSharp\CodeFixes\ConvertToAsync\CSharpConvertToAsyncMethodCodeFixProvider.cs (1)
28public override ImmutableArray<string> FixableDiagnosticIds => [CS4008];
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordEngine.cs (11)
54var positionalParameterInfos = PositionalParameterInfo.GetPropertiesForPositionalParameters( 82ImmutableArray<PositionalParameterInfo> positionalParameterInfos, 178var expressions = ConvertToRecordHelpers 333(ConstructorDeclarationSyntax? constructor, ImmutableArray<IPropertySymbol> propertiesToAssign) TryFindPrimaryConstructor() 363constructorOperation, propertiesToAssign, constructorSymbol.Parameters, out var orderedPropertiesToAssign)) 473ImmutableArray<IPropertySymbol> positionalParameters, 509var expressions = ConvertToRecordHelpers.GetAssignmentValuesFromObjectCreation( 574ImmutableArray<PositionalParameterInfo> propertyResults, 750ImmutableArray<PositionalParameterInfo> propertyResults, 773var paramContent = ImmutableArray<XmlNodeSyntax>.Empty;
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordHelpers.cs (21)
26ImmutableArray<IFieldSymbol> expectedComparedFields) 59var actualFields = GetEqualizedFields(methodBodyOperation, methodSymbol); 78ImmutableArray<IFieldSymbol> expectedHashedFields) 184ImmutableArray<IPropertySymbol> properties, 185ImmutableArray<IParameterSymbol> parameters, 186out ImmutableArray<IPropertySymbol> orderedProperties) 228ImmutableArray<IFieldSymbol> fields, 288public static ImmutableArray<ExpressionSyntax> GetAssignmentValuesForNonPrimaryConstructor( 290ImmutableArray<IPropertySymbol> positionalParams) 299IInvocationOperation { Arguments: ImmutableArray<IArgumentOperation> args }) 333var expressions = GetAssignmentExpressionsFromValuesMap(positionalParams, assignmentValues); 360public static ImmutableArray<ExpressionSyntax> GetAssignmentValuesFromObjectCreation( 362ImmutableArray<IPropertySymbol> positionalParams) 373Arguments: ImmutableArray<IArgumentOperation> { IsEmpty: true }, 392var expressions = GetAssignmentExpressionsFromValuesMap(positionalParams, dictionaryBuilder.ToImmutable()); 401private static ImmutableArray<ExpressionSyntax> GetAssignmentExpressionsFromValuesMap( 402ImmutableArray<IPropertySymbol> positionalParams, 493private static ImmutableArray<IFieldSymbol> GetEqualizedFields( 504var bodyOps = body.Operations; 957ImmutableArray<IOperation> bodyOps, 1070: ImmutableArray<IOperation>.Empty))
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\CSharpConvertToRecordCodeFixProvider.cs (1)
26public override ImmutableArray<string> FixableDiagnosticIds
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\PositionalParameterInfo.cs (4)
35public static ImmutableArray<PositionalParameterInfo> GetPropertiesForPositionalParameters( 36ImmutableArray<PropertyDeclarationSyntax> properties, 47var inheritedProperties = GetInheritedPositionalParams(type, cancellationToken); 74public static ImmutableArray<IPropertySymbol> GetInheritedPositionalParams(
src\Analyzers\CSharp\CodeFixes\DisambiguateSameVariable\CSharpDisambiguateSameVariableCodeFixProvider.cs (2)
35public override ImmutableArray<string> FixableDiagnosticIds { get; } = [CS1717, CS1718]; 133Document document, ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\CSharp\CodeFixes\DocumentationComments\CSharpAddDocCommentNodesCodeFixProvider.cs (2)
30public override ImmutableArray<string> FixableDiagnosticIds { get; } = [CS1573]; 59protected override ImmutableArray<string> GetParameterNames(MemberDeclarationSyntax member)
src\Analyzers\CSharp\CodeFixes\DocumentationComments\CSharpRemoveDocCommentNodeCodeFixProvider.cs (1)
36public override ImmutableArray<string> FixableDiagnosticIds { get; } = [CS1571, CS1572, CS1710];
src\Analyzers\CSharp\CodeFixes\FixIncorrectConstraint\CSharpFixIncorrectConstraintCodeFixProvider.cs (2)
28public override ImmutableArray<string> FixableDiagnosticIds => [CS9010, CS9011]; 77Document document, ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\CSharp\CodeFixes\FixReturnType\CSharpFixReturnTypeCodeFixProvider.cs (4)
34public override ImmutableArray<string> FixableDiagnosticIds => ["CS0127", "CS1997", "CS0201"]; 39var diagnostics = context.Diagnostics; 62Document document, ImmutableArray<Diagnostic> diagnostics, CancellationToken cancellationToken) 127protected override async Task FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\CSharp\CodeFixes\GenerateConstructor\CSharpGenerateConstructorService.cs (6)
46out ImmutableArray<Argument<ExpressionSyntax>> arguments, 70private static ImmutableArray<Argument<ExpressionSyntax>> GetArguments(SeparatedSyntaxList<ArgumentSyntax> arguments) 73private static ImmutableArray<Argument<ExpressionSyntax>> GetArguments(SeparatedSyntaxList<AttributeArgumentSyntax> arguments) 84out ImmutableArray<Argument<ExpressionSyntax>> arguments, 116out ImmutableArray<Argument<ExpressionSyntax>> arguments, 151out ImmutableArray<Argument<ExpressionSyntax>> arguments,
src\Analyzers\CSharp\CodeFixes\GenerateConstructor\GenerateConstructorCodeFixProvider.cs (2)
41public override ImmutableArray<string> FixableDiagnosticIds => GenerateConstructorDiagnosticIds.AllDiagnosticIds; 43protected override Task<ImmutableArray<CodeAction>> GetCodeActionsAsync(
src\Analyzers\CSharp\CodeFixes\GenerateConstructor\GenerateConstructorDiagnosticIds.cs (3)
18public static readonly ImmutableArray<string> AllDiagnosticIds = 21public static readonly ImmutableArray<string> TooManyArgumentsDiagnosticIds = 24public static readonly ImmutableArray<string> CannotConvertDiagnosticIds =
src\Analyzers\CSharp\CodeFixes\GenerateDefaultConstructors\CSharpGenerateDefaultConstructorsCodeFixProvider.cs (1)
25public override ImmutableArray<string> FixableDiagnosticIds { get; } =
src\Analyzers\CSharp\CodeFixes\GenerateEnumMember\GenerateEnumMemberCodeFixProvider.cs (2)
29public override ImmutableArray<string> FixableDiagnosticIds { get; } = 32protected override Task<ImmutableArray<CodeAction>> GetCodeActionsAsync(Document document, SyntaxNode node, CancellationToken cancellationToken)
src\Analyzers\CSharp\CodeFixes\GenerateMethod\GenerateConversionCodeFixProvider.cs (2)
30public override ImmutableArray<string> FixableDiagnosticIds 58protected override Task<ImmutableArray<CodeAction>> GetCodeActionsAsync(
src\Analyzers\CSharp\CodeFixes\GenerateMethod\GenerateDeconstructMethodCodeFixProvider.cs (1)
33public sealed override ImmutableArray<string> FixableDiagnosticIds => [CS8129];
src\Analyzers\CSharp\CodeFixes\GenerateMethod\GenerateMethodCodeFixProvider.cs (3)
39public static readonly ImmutableArray<string> FixableDiagnosticIds = 51public override ImmutableArray<string> FixableDiagnosticIds { get; } = 81protected override Task<ImmutableArray<CodeAction>> GetCodeActionsAsync(
src\Analyzers\CSharp\CodeFixes\GenerateParameterizedMember\CSharpGenerateDeconstructMethodService.cs (1)
40public override ImmutableArray<IParameterSymbol> TryMakeParameters(SemanticModel semanticModel, SyntaxNode target, CancellationToken cancellationToken)
src\Analyzers\CSharp\CodeFixes\GenerateParameterizedMember\CSharpGenerateParameterizedMemberService.cs (7)
32protected override ImmutableArray<ParameterName> DetermineParameterNames(CancellationToken cancellationToken) 52protected override ImmutableArray<ITypeParameterSymbol> GetCapturedTypeParameters(CancellationToken cancellationToken) 65protected override ImmutableArray<ITypeParameterSymbol> GenerateTypeParameters(CancellationToken cancellationToken) 128protected override ImmutableArray<RefKind> DetermineParameterModifiers(CancellationToken cancellationToken) 131protected override ImmutableArray<ITypeSymbol> DetermineParameterTypes(CancellationToken cancellationToken) 137protected override ImmutableArray<bool> DetermineParameterOptionality(CancellationToken cancellationToken) 149protected override ImmutableArray<ITypeSymbol> DetermineTypeArguments(CancellationToken cancellationToken)
src\Analyzers\CSharp\CodeFixes\GenerateVariable\CSharpGenerateVariableCodeFixProvider.cs (2)
34public override ImmutableArray<string> FixableDiagnosticIds 54protected override async Task<ImmutableArray<CodeAction>> GetCodeActionsAsync(
src\Analyzers\CSharp\CodeFixes\HideBase\HideBaseCodeFixProvider.cs (1)
23public override ImmutableArray<string> FixableDiagnosticIds => [CS0108];
src\Analyzers\CSharp\CodeFixes\ImplementInterface\CSharpImplementInterfaceCodeFixProvider.cs (1)
25public sealed override ImmutableArray<string> FixableDiagnosticIds { get; }
src\Analyzers\CSharp\CodeFixes\ImplementInterface\CSharpImplementInterfaceService.cs (1)
43out SyntaxNode classOrStructDecl, out INamedTypeSymbol classOrStructType, out ImmutableArray<INamedTypeSymbol> interfaceTypes)
src\Analyzers\CSharp\CodeFixes\InlineDeclaration\CSharpInlineDeclarationCodeFixProvider.cs (3)
35public override ImmutableArray<string> FixableDiagnosticIds 45Document document, ImmutableArray<Diagnostic> diagnostics, 240private static ImmutableArray<StatementSyntax> GetStatements(SyntaxNode pseudoBlock)
src\Analyzers\CSharp\CodeFixes\InvokeDelegateWithConditionalAccess\InvokeDelegateWithConditionalAccessCodeFixProvider.cs (2)
31public override ImmutableArray<string> FixableDiagnosticIds { get; } = [IDEDiagnosticIds.InvokeDelegateWithConditionalAccessId]; 45Document document, ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\CSharp\CodeFixes\Iterator\CSharpAddYieldCodeFixProvider.cs (1)
39public override ImmutableArray<string> FixableDiagnosticIds
src\Analyzers\CSharp\CodeFixes\Iterator\CSharpChangeToIEnumerableCodeFixProvider.cs (1)
33public override ImmutableArray<string> FixableDiagnosticIds => [CS1624];
src\Analyzers\CSharp\CodeFixes\MakeAnonymousFunctionStatic\CSharpMakeAnonymousFunctionStaticCodeFixProvider.cs (2)
24public override ImmutableArray<string> FixableDiagnosticIds { get; } = 38protected override Task FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\CSharp\CodeFixes\MakeLocalFunctionStatic\MakeLocalFunctionStaticCodeFixHelper.cs (5)
31ImmutableArray<ISymbol> captures, 43ImmutableArray<ISymbol> captures, 89var parameterAndCapturedSymbols = CreateParameterSymbols(captures.WhereAsArray(c => !c.IsThisParameter())); 208private static ImmutableArray<(IParameterSymbol symbol, ISymbol capture)> CreateParameterSymbols(ImmutableArray<ISymbol> captures)
src\Analyzers\CSharp\CodeFixes\MakeLocalFunctionStatic\MakeLocalFunctionStaticCodeFixProvider.cs (2)
22public override ImmutableArray<string> FixableDiagnosticIds { get; } = 32Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\CSharp\CodeFixes\MakeLocalFunctionStatic\PassInCapturedVariablesAsArgumentsCodeFixProvider.cs (5)
29public override ImmutableArray<string> FixableDiagnosticIds { get; } = [CS8421]; 52protected override Task FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken) 64ImmutableArray<Diagnostic> diagnostics, 65Func<Document, LocalFunctionStatementSyntax, ImmutableArray<ISymbol>, Task> fixer, 89if (MakeLocalFunctionStaticHelper.CanMakeLocalFunctionStaticByRefactoringCaptures(localFunction, semanticModel, out var captures))
src\Analyzers\CSharp\CodeFixes\MakeMemberRequired\CSharpMakeMemberRequiredCodeFixProvider.cs (2)
30public override ImmutableArray<string> FixableDiagnosticIds { get; } = [CS8618]; 107protected override Task FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\CSharp\CodeFixes\MakeMemberStatic\CSharpMakeMemberStaticCodeFixProvider.cs (1)
21public override ImmutableArray<string> FixableDiagnosticIds { get; } = ["CS0708"];
src\Analyzers\CSharp\CodeFixes\MakeMethodAsynchronous\CSharpMakeMethodAsynchronousCodeFixProvider.cs (1)
36public override ImmutableArray<string> FixableDiagnosticIds { get; } =
src\Analyzers\CSharp\CodeFixes\MakeMethodSynchronous\CSharpMakeMethodSynchronousCodeFixProvider.cs (1)
27public override ImmutableArray<string> FixableDiagnosticIds { get; } = [CS1998];
src\Analyzers\CSharp\CodeFixes\MakeRefStruct\MakeRefStructCodeFixProvider.cs (1)
26public override ImmutableArray<string> FixableDiagnosticIds
src\Analyzers\CSharp\CodeFixes\MakeStatementAsynchronous\CSharpMakeStatementAsynchronousCodeFixProvider.cs (2)
30public sealed override ImmutableArray<string> FixableDiagnosticIds => ["CS8414", "CS8418"]; 48Document document, ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\CSharp\CodeFixes\MakeStructFieldsWritable\CSharpMakeStructFieldsWritableCodeFixProvider.cs (2)
25public override ImmutableArray<string> FixableDiagnosticIds 36ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\CSharp\CodeFixes\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyCodeFixProvider.cs (2)
26public override ImmutableArray<string> FixableDiagnosticIds { get; } = 37ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\CSharp\CodeFixes\MakeStructReadOnly\CSharpMakeStructReadOnlyCodeFixProvider.cs (2)
24public override ImmutableArray<string> FixableDiagnosticIds { get; } = 35ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\CSharp\CodeFixes\MakeTypeAbstract\CSharpMakeTypeAbstractCodeFixProvider.cs (1)
19public override ImmutableArray<string> FixableDiagnosticIds { get; } =
src\Analyzers\CSharp\CodeFixes\MakeTypePartial\CSharpMakeTypePartialCodeFixProvider.cs (1)
21public override ImmutableArray<string> FixableDiagnosticIds { get; } = [CS0260];
src\Analyzers\CSharp\CodeFixes\MisplacedUsingDirectives\MisplacedUsingDirectivesCodeFixProvider.cs (9)
47public override ImmutableArray<string> FixableDiagnosticIds => [IDEDiagnosticIds.MoveMisplacedUsingDirectivesDiagnosticId]; 105private static ImmutableArray<UsingDirectiveSyntax> GetAllUsingDirectives(CompilationUnitSyntax compilationUnit) 136ImmutableArray<UsingDirectiveSyntax> allUsingDirectives, 169Document document, CompilationUnitSyntax compilationUnit, ImmutableArray<UsingDirectiveSyntax> allUsingDirectives, CancellationToken cancellationToken) 249private static (BaseNamespaceDeclarationSyntax namespaceWithoutUsings, ImmutableArray<UsingDirectiveSyntax> usingsFromNamespace) RemoveUsingsFromNamespace( 273ImmutableArray<UsingDirectiveSyntax> usingsToAdd) 407private static (CompilationUnitSyntax compilationUnitWithoutHeader, ImmutableArray<SyntaxTrivia> header) RemoveFileHeader( 410var fileHeader = bannerService.GetFileBanner(syntaxRoot); 423private static CompilationUnitSyntax AddFileHeader(CompilationUnitSyntax compilationUnit, ImmutableArray<SyntaxTrivia> fileHeader)
src\Analyzers\CSharp\CodeFixes\NewLines\ArrowExpressionClausePlacement\ArrowExpressionClausePlacementCodeFixProvider.cs (2)
28public override ImmutableArray<string> FixableDiagnosticIds 45Document document, ImmutableArray<Diagnostic> diagnostics, CancellationToken cancellationToken)
src\Analyzers\CSharp\CodeFixes\NewLines\ConditionalExpressionPlacement\ConditionalExpressionPlacementCodeFixProvider.cs (2)
28public override ImmutableArray<string> FixableDiagnosticIds 45Document document, ImmutableArray<Diagnostic> diagnostics, CancellationToken cancellationToken)
src\Analyzers\CSharp\CodeFixes\NewLines\ConsecutiveBracePlacement\ConsecutiveBracePlacementCodeFixProvider.cs (2)
28public override ImmutableArray<string> FixableDiagnosticIds 47public static async Task<Document> FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, CancellationToken cancellationToken)
src\Analyzers\CSharp\CodeFixes\NewLines\ConstructorInitializerPlacement\ConstructorInitializerPlacementCodeFixProvider.cs (2)
27public override ImmutableArray<string> FixableDiagnosticIds 44Document document, ImmutableArray<Diagnostic> diagnostics, CancellationToken cancellationToken)
src\Analyzers\CSharp\CodeFixes\NewLines\EmbeddedStatementPlacement\EmbeddedStatementPlacementCodeFixProvider.cs (2)
30public override ImmutableArray<string> FixableDiagnosticIds 46public static async Task<Document> FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, CancellationToken cancellationToken)
src\Analyzers\CSharp\CodeFixes\Nullable\CSharpDeclareAsNullableCodeFixProvider.cs (2)
41public sealed override ImmutableArray<string> FixableDiagnosticIds => ["CS8603", "CS8600", "CS8625", "CS8618"]; 76ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\CSharp\CodeFixes\OrderModifiers\CSharpOrderModifiersCodeFixProvider.cs (1)
27protected override ImmutableArray<string> FixableCompilerErrorIds { get; } = [CS0267];
src\Analyzers\CSharp\CodeFixes\RemoveAsyncModifier\CSharpRemoveAsyncModifierCodeFixProvider.cs (1)
28public override ImmutableArray<string> FixableDiagnosticIds { get; } = [CS1998];
src\Analyzers\CSharp\CodeFixes\RemoveConfusingSuppression\CSharpRemoveConfusingSuppressionCodeFixProvider.cs (3)
31public override ImmutableArray<string> FixableDiagnosticIds 37var diagnostics = context.Diagnostics; 58Document document, ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\CSharp\CodeFixes\RemoveInKeyword\RemoveInKeywordCodeFixProvider.cs (1)
31public override ImmutableArray<string> FixableDiagnosticIds => [CS1615];
src\Analyzers\CSharp\CodeFixes\RemoveNewModifier\RemoveNewModifierCodeFixProvider.cs (1)
29public override ImmutableArray<string> FixableDiagnosticIds => [CS0109];
src\Analyzers\CSharp\CodeFixes\RemoveUnnecessaryCast\CSharpRemoveUnnecessaryCastCodeFixProvider.cs (2)
29public sealed override ImmutableArray<string> FixableDiagnosticIds { get; } = 39Document document, ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\CSharp\CodeFixes\RemoveUnnecessaryDiscardDesignation\CSharpRemoveUnnecessaryDiscardDesignationCodeFixProvider.cs (2)
25public override ImmutableArray<string> FixableDiagnosticIds 35Document document, ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\CSharp\CodeFixes\RemoveUnnecessaryLambdaExpression\CSharpRemoveUnnecessaryLambdaExpressionCodeFixProvider.cs (2)
31public override ImmutableArray<string> FixableDiagnosticIds 41Document document, ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\CSharp\CodeFixes\RemoveUnnecessaryNullableDirective\CSharpRemoveUnnecessaryNullableDirectiveCodeFixProvider.cs (2)
30public override ImmutableArray<string> FixableDiagnosticIds 51ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\CSharp\CodeFixes\RemoveUnreachableCode\CSharpRemoveUnreachableCodeCodeFixProvider.cs (4)
24public override ImmutableArray<string> FixableDiagnosticIds { get; } = 52ImmutableArray<Diagnostic> diagnostics, 67var sections = RemoveUnreachableCodeHelpers.GetSubsequentUnreachableSections(firstUnreachableStatement); 68foreach (var section in sections)
src\Analyzers\CSharp\CodeFixes\RemoveUnusedLocalFunction\CSharpRemoveUnusedLocalFunctionCodeFixProvider.cs (2)
28public sealed override ImmutableArray<string> FixableDiagnosticIds 42protected override Task FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\CSharp\CodeFixes\ReplaceDefaultLiteral\CSharpReplaceDefaultLiteralCodeFixProvider.cs (1)
30public override ImmutableArray<string> FixableDiagnosticIds { get; } = [CS8313, CS8505];
src\Analyzers\CSharp\CodeFixes\SimplifyLinqExpression\CSharpSimplifyLinqTypeCheckAndCastCodeFixProvider.cs (2)
27public override ImmutableArray<string> FixableDiagnosticIds 38ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\CSharp\CodeFixes\SimplifyPropertyPattern\CSharpSimplifyPropertyPatternCodeFixProvider.cs (2)
29public override ImmutableArray<string> FixableDiagnosticIds { get; } = 39Document document, ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\CSharp\CodeFixes\TransposeRecordKeyword\CSharpTransposeRecordKeywordCodeFixProvider.cs (2)
27public override ImmutableArray<string> FixableDiagnosticIds => [CS9012]; 96Document document, ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\CSharp\CodeFixes\UnsealClass\CSharpUnsealClassCodeFixProvider.cs (1)
21public override ImmutableArray<string> FixableDiagnosticIds { get; } = [CS0509];
src\Analyzers\CSharp\CodeFixes\UpdateProjectToAllowUnsafe\CSharpUpdateProjectToAllowUnsafeCodeFixProvider.cs (1)
22public override ImmutableArray<string> FixableDiagnosticIds { get; } =
src\Analyzers\CSharp\CodeFixes\UpgradeProject\CSharpUpgradeProjectCodeFixProvider.cs (3)
20public override ImmutableArray<string> FixableDiagnosticIds { get; } = 65public override string SuggestedVersion(ImmutableArray<Diagnostic> diagnostics) 68private static LanguageVersion RequiredVersion(ImmutableArray<Diagnostic> diagnostics)
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpCollectionExpressionRewriter.cs (9)
40ImmutableArray<CollectionMatch<TMatchNode>> preMatches, 41ImmutableArray<CollectionMatch<TMatchNode>> postMatches, 345ImmutableArray<CollectionMatch<TMatchNode>> matches, 471var expressions = ConvertExpressions(expressionStatement.Expression, expr => IndentExpression(expressionStatement, expr, preferredIndentation)); 748bool CheckForMultiLine(ImmutableArray<CollectionMatch<TMatchNode>> matches) 803var expressions = ConvertExpressions(expression, indent); 807static ImmutableArray<ExpressionSyntax> ConvertExpressions( 823static ImmutableArray<ExpressionSyntax> ConvertAssignment( 829static ImmutableArray<ExpressionSyntax> ConvertInvocation(
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForArrayCodeFixProvider.cs (3)
33public override ImmutableArray<string> FixableDiagnosticIds { get; } = [IDEDiagnosticIds.UseCollectionExpressionForArrayDiagnosticId]; 67var matches = GetMatches(semanticModel, arrayCreationExpression, expressionType); 100ImmutableArray<CollectionMatch<StatementSyntax>> GetMatches(
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForBuilderCodeFixProvider.cs (1)
35public override ImmutableArray<string> FixableDiagnosticIds { get; } = [IDEDiagnosticIds.UseCollectionExpressionForBuilderDiagnosticId];
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForCreateCodeFixProvider.cs (1)
34public override ImmutableArray<string> FixableDiagnosticIds { get; } = [IDEDiagnosticIds.UseCollectionExpressionForCreateDiagnosticId];
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForEmptyCodeFixProvider.cs (1)
32public override ImmutableArray<string> FixableDiagnosticIds { get; } = [IDEDiagnosticIds.UseCollectionExpressionForEmptyDiagnosticId];
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForFluentCodeFixProvider.cs (6)
42public override ImmutableArray<string> FixableDiagnosticIds { get; } = [IDEDiagnosticIds.UseCollectionExpressionForFluentDiagnosticId]; 90var preMatches = CreateMatches(dummyObjectCreation.ArgumentList.Arguments, analysisResult.PreMatches, index: 0); 91var postMatches = CreateMatches(dummyObjectCreation.ArgumentList.Arguments, analysisResult.PostMatches, index: preMatches.Length); 104static ImmutableArray<CollectionMatch<ExpressionSyntax>> CreateMatches( 106ImmutableArray<CollectionMatch<ArgumentSyntax>> matches, 143ImmutableArray<CollectionMatch<ArgumentSyntax>> matches,
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForNewCodeFixProvider.cs (1)
33public override ImmutableArray<string> FixableDiagnosticIds { get; } = [IDEDiagnosticIds.UseCollectionExpressionForNewDiagnosticId];
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForStackAllocCodeFixProvider.cs (3)
29public override ImmutableArray<string> FixableDiagnosticIds { get; } = [IDEDiagnosticIds.UseCollectionExpressionForStackAllocDiagnosticId]; 43var matches = GetMatches(); 73ImmutableArray<CollectionMatch<StatementSyntax>> GetMatches()
src\Analyzers\CSharp\CodeFixes\UseCollectionInitializer\CSharpUseCollectionInitializerCodeFixProvider.cs (2)
40ImmutableArray<CollectionMatch<SyntaxNode>> preMatches, 41ImmutableArray<CollectionMatch<SyntaxNode>> postMatches,
src\Analyzers\CSharp\CodeFixes\UseCollectionInitializer\CSharpUseCollectionInitializerCodeFixProvider_CollectionExpression.cs (2)
24ImmutableArray<CollectionMatch<SyntaxNode>> preMatches, 25ImmutableArray<CollectionMatch<SyntaxNode>> postMatches,
src\Analyzers\CSharp\CodeFixes\UseCollectionInitializer\CSharpUseCollectionInitializerCodeFixProvider_CollectionInitializer.cs (1)
27ImmutableArray<CollectionMatch<SyntaxNode>> matches)
src\Analyzers\CSharp\CodeFixes\UseCompoundAssignment\CSharpUseCompoundCoalesceAssignmentCodeFixProvider.cs (2)
31public override ImmutableArray<string> FixableDiagnosticIds { get; } = 41Document document, ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\CSharp\CodeFixes\UseDeconstruction\CSharpUseDeconstructionCodeFixProvider.cs (3)
30public override ImmutableArray<string> FixableDiagnosticIds 40Document document, ImmutableArray<Diagnostic> diagnostics, 71ImmutableArray<MemberAccessExpressionSyntax> memberAccessExpressions = default;
src\Analyzers\CSharp\CodeFixes\UseDefaultLiteral\CSharpUseDefaultLiteralCodeFixProvider.cs (2)
25public override ImmutableArray<string> FixableDiagnosticIds { get; } 35Document document, ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\CSharp\CodeFixes\UseExplicitArrayInExpressionTree\CSharpUseExplicitArrayInExpressionTreeCodeFixProvider.cs (3)
30public override ImmutableArray<string> FixableDiagnosticIds => [CS9226]; 43var memberGroup = semanticModel.GetMemberGroup(invocationExpression.Expression, cancellationToken); 115protected override async Task FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\CSharp\CodeFixes\UseExplicitTypeForConst\UseExplicitTypeForConstCodeFixProvider.cs (1)
26public override ImmutableArray<string> FixableDiagnosticIds { get; } = [CS0822];
src\Analyzers\CSharp\CodeFixes\UseExpressionBody\UseExpressionBodyCodeFixProvider.cs (3)
26public sealed override ImmutableArray<string> FixableDiagnosticIds { get; } 28private static readonly ImmutableArray<UseExpressionBodyHelper> _helpers = UseExpressionBodyHelper.Helpers; 54Document document, ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\CSharp\CodeFixes\UseExpressionBodyForLambda\UseExpressionBodyForLambdaCodeFixProvider.cs (3)
25public override ImmutableArray<string> FixableDiagnosticIds { get; } = [IDEDiagnosticIds.UseExpressionBodyForLambdaExpressionsDiagnosticId]; 42protected override Task FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken) 45private static async Task FixAllImplAsync(Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\CSharp\CodeFixes\UseImplicitObjectCreation\CSharpUseImplicitObjectCreationCodeFixProvider.cs (2)
32public override ImmutableArray<string> FixableDiagnosticIds 45Document document, ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\CSharp\CodeFixes\UseImplicitOrExplicitType\UseExplicitTypeCodeFixProvider.cs (3)
32public override ImmutableArray<string> FixableDiagnosticIds 42Document document, ImmutableArray<Diagnostic> diagnostics, 177var elements = ((INamedTypeSymbol)typeSymbol).TupleElements;
src\Analyzers\CSharp\CodeFixes\UseImplicitOrExplicitType\UseImplicitTypeCodeFixProvider.cs (2)
23public override ImmutableArray<string> FixableDiagnosticIds 33Document document, ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\CSharp\CodeFixes\UseIndexOrRangeOperator\CSharpUseIndexOperatorCodeFixProvider.cs (2)
26public override ImmutableArray<string> FixableDiagnosticIds { get; } = 36Document document, ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\CSharp\CodeFixes\UseIndexOrRangeOperator\CSharpUseRangeOperatorCodeFixProvider.cs (2)
36public override ImmutableArray<string> FixableDiagnosticIds { get; } = 46Document document, ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\CSharp\CodeFixes\UseInterpolatedVerbatimString\CSharpUseInterpolatedVerbatimStringCodeFixProvider.cs (2)
25public override ImmutableArray<string> FixableDiagnosticIds => ["CS8401"]; 36Document document, ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\CSharp\CodeFixes\UseIsNullCheck\CSharpUseIsNullCheckForCastAndEqualityOperatorCodeFixProvider.cs (2)
31public override ImmutableArray<string> FixableDiagnosticIds 54Document document, ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\CSharp\CodeFixes\UseIsNullCheck\CSharpUseNullCheckOverTypeCheckCodeFixProvider.cs (2)
29public override ImmutableArray<string> FixableDiagnosticIds 39Document document, ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\CSharp\CodeFixes\UseLocalFunction\CSharpUseLocalFunctionCodeFixProvider.cs (4)
39public override ImmutableArray<string> FixableDiagnosticIds 52Document document, ImmutableArray<Diagnostic> diagnostics, 141var capturedVariables = dataFlow.Captured.Remove(localSymbol); 178ImmutableArray<ExpressionSyntax> references)
src\Analyzers\CSharp\CodeFixes\UseNameofInAttribute\CSharpUseNameofInAttributeCodeFixProvider.cs (2)
25public override ImmutableArray<string> FixableDiagnosticIds { get; } = [IDEDiagnosticIds.UseNameofInAttributeDiagnosticId]; 38ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\CSharp\CodeFixes\UseObjectInitializer\CSharpUseObjectInitializerCodeFixProvider.cs (3)
53ImmutableArray<ObjectInitializerMatch> matches) 63ImmutableArray<ObjectInitializerMatch> matches) 73ImmutableArray<ObjectInitializerMatch> matches)
src\Analyzers\CSharp\CodeFixes\UsePatternCombinators\CSharpUsePatternCombinatorsCodeFixProvider.cs (2)
48public override ImmutableArray<string> FixableDiagnosticIds 73Document document, ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\CSharp\CodeFixes\UsePatternMatching\CSharpAsAndMemberAccessCodeFixProvider.cs (2)
30public override ImmutableArray<string> FixableDiagnosticIds 40Document document, ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\CSharp\CodeFixes\UsePatternMatching\CSharpAsAndNullCheckCodeFixProvider.cs (2)
30public override ImmutableArray<string> FixableDiagnosticIds 40Document document, ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\CSharp\CodeFixes\UsePatternMatching\CSharpIsAndCastCheckCodeFixProvider.cs (3)
27public override ImmutableArray<string> FixableDiagnosticIds 37Document document, ImmutableArray<Diagnostic> diagnostics, 86ImmutableArray<SyntaxTrivia> trivia,
src\Analyzers\CSharp\CodeFixes\UsePatternMatching\CSharpUseNotPatternCodeFixProvider.cs (2)
25public override ImmutableArray<string> FixableDiagnosticIds 35Document document, ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\CSharp\CodeFixes\UsePrimaryConstructor\CSharpUsePrimaryConstructorCodeFixProvider.cs (4)
46public override ImmutableArray<string> FixableDiagnosticIds 189var triviaToMove = GetLeadingCommentTrivia(firstMember); 202ImmutableArray<SyntaxTrivia> GetLeadingCommentTrivia(MemberDeclarationSyntax firstMember) 204var leadingTrivia = firstMember.GetLeadingTrivia().ToImmutableArray();
src\Analyzers\CSharp\CodeFixes\UsePrimaryConstructor\CSharpUsePrimaryConstructorFixAllProvider.cs (1)
37private static async Task<Solution?> FixAllContextsHelperAsync(FixAllContext originalContext, ImmutableArray<FixAllContext> contexts)
src\Analyzers\CSharp\CodeFixes\UseSimpleUsingStatement\UseSimpleUsingStatementCodeFixProvider.cs (4)
36public override ImmutableArray<string> FixableDiagnosticIds { get; } = 46Document document, ImmutableArray<Diagnostic> diagnostics, 104ImmutableArray<StatementSyntax> expandedUsingStatements) 118private static ImmutableArray<StatementSyntax> Expand(UsingStatementSyntax usingStatement)
src\Analyzers\CSharp\CodeFixes\UseSystemThreadingLock\CSharpUseSystemThreadingLockCodeFixProvider.cs (1)
29public override ImmutableArray<string> FixableDiagnosticIds { get; }
src\Analyzers\CSharp\CodeFixes\UseSystemThreadingLock\CSharpUseSystemThreadingLockFixAllProvider.cs (1)
29private static async Task<Solution?> FixAllContextsHelperAsync(FixAllContext originalContext, ImmutableArray<FixAllContext> contexts)
src\Analyzers\CSharp\CodeFixes\UseThrowExpression\UseThrowExpressionCodeFixProvider.cs (2)
27public override ImmutableArray<string> FixableDiagnosticIds 40Document document, ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\CSharp\CodeFixes\UseTupleSwap\CSharpUseTupleSwapCodeFixProvider.cs (2)
27public override ImmutableArray<string> FixableDiagnosticIds { get; } 37Document document, ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\CSharp\CodeFixes\UseUnboundGenericTypeInNameOf\CSharpUseUnboundGenericTypeInNameOfCodeFixProvider.cs (2)
30public override ImmutableArray<string> FixableDiagnosticIds { get; } 40Document document, ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\CSharp\CodeFixes\UseUtf8StringLiteral\UseUtf8StringLiteralCodeFixProvider.cs (2)
33public override ImmutableArray<string> FixableDiagnosticIds { get; } = 43Document document, ImmutableArray<Diagnostic> diagnostics,
src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (1)
95builder.Add(new DeclarationInfo(name, ImmutableArray<SyntaxNode>.Empty, declaredSymbol));
StringIndentation\CSharpStringIndentationService.cs (1)
27public async Task<ImmutableArray<StringIndentationRegion>> GetStringIndentationRegionsAsync(
Structure\CSharpBlockStructureProvider.cs (4)
16private static ImmutableDictionary<Type, ImmutableArray<AbstractSyntaxStructureProvider>> CreateDefaultNodeProviderMap() 18var builder = ImmutableDictionary.CreateBuilder<Type, ImmutableArray<AbstractSyntaxStructureProvider>>(); 60private static ImmutableDictionary<int, ImmutableArray<AbstractSyntaxStructureProvider>> CreateDefaultTriviaProviderMap() 62var builder = ImmutableDictionary.CreateBuilder<int, ImmutableArray<AbstractSyntaxStructureProvider>>();
Structure\CSharpBlockStructureService.cs (1)
31protected override ImmutableArray<BlockStructureProvider> GetBuiltInProviders()
Structure\Providers\FileScopedNamespaceDeclarationStructureProvider.cs (1)
28var externsAndUsings = Enumerable.Union<SyntaxNode>(fileScopedNamespaceDeclaration.Externs, fileScopedNamespaceDeclaration.Usings).ToImmutableArray();
TaskList\CSharpTaskListService.cs (1)
31ImmutableArray<TaskListItemDescriptor> commentDescriptors,
UseAutoProperty\CSharpUseAutoPropertyCodeFixProvider.cs (1)
219protected override ImmutableArray<AbstractFormattingRule> GetFormattingRules(
UseExpressionBody\UseExpressionBodyCodeRefactoringProvider.cs (7)
35private static readonly ImmutableArray<UseExpressionBodyHelper> _helpers = UseExpressionBodyHelper.Helpers; 41ImmutableArray<UseExpressionBodyHelper> helpers) 46ImmutableArray<UseExpressionBodyHelper> helpers) 56protected override ImmutableArray<FixAllScope> SupportedFixAllScopes => AllFixAllScopes; 189ImmutableArray<TextSpan> fixAllSpans, 205ImmutableArray<TextSpan> fixAllSpans, 238ImmutableArray<SyntaxNode> declarationsToFix,
UseExpressionBodyForLambda\UseExpressionBodyForLambdaCodeRefactoringProvider.cs (3)
90private static async Task<ImmutableArray<CodeAction>> ComputeOpposingRefactoringsWhenAnalyzerActiveAsync( 146private static async Task<ImmutableArray<CodeAction>> ComputeAllRefactoringsWhenAnalyzerInactiveAsync( 162private static async Task<ImmutableArray<CodeAction>> ComputeRefactoringsAsync(
UseNamedArguments\CSharpUseNamedArgumentsCodeRefactoringProvider.cs (2)
32protected sealed override bool IsLegalToAddNamedArguments(ImmutableArray<IParameterSymbol> parameters, int argumentCount) 38protected override bool IsImplicitIndexOrRangeIndexer(ImmutableArray<IParameterSymbol> parameters, TSyntax argument, SemanticModel semanticModel)
UsePatternMatching\CSharpIsAndCastCheckWithoutNameCodeFixProvider.cs (2)
27public override ImmutableArray<string> FixableDiagnosticIds 43Document document, ImmutableArray<Diagnostic> diagnostics,
UsePatternMatching\CSharpIsAndCastCheckWithoutNameDiagnosticAnalyzer.cs (1)
205var diagnostics = updatedSemanticModel.GetDiagnostics(currentNode.Span, cancellationToken);
Wrapping\CSharpWrappingCodeRefactoringProvider.cs (1)
23private static readonly ImmutableArray<ISyntaxWrapper> s_wrappers =
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (79)
ConvertAnonymousType\ConvertAnonymousTypeToTupleTests.cs (2)
23protected override ImmutableArray<CodeAction> MassageActions(ImmutableArray<CodeAction> actions)
ConvertForEachToFor\ConvertForEachToForTests.cs (1)
1131""" + typeof(ImmutableArray<>).Assembly.Location + """
ConvertNumericLiteral\ConvertNumericLiteralTests.cs (2)
23protected override ImmutableArray<CodeAction> MassageActions(ImmutableArray<CodeAction> actions)
ConvertToRecord\ConvertToRecordCodeRefactoringTests.cs (1)
4752public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics
Diagnostics\Configuration\ConfigureCodeStyle\MultipleCodeStyleOptionConfigurationTests.cs (2)
26protected override ImmutableArray<CodeAction> MassageActions(ImmutableArray<CodeAction> actions)
Diagnostics\Configuration\ConfigureSeverity\AllAnalyzersSeverityConfigurationTests.cs (1)
33public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(Rule);
Diagnostics\Configuration\ConfigureSeverity\CategoryBasedSeverityConfigurationTests.cs (1)
33public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(Rule);
Diagnostics\Configuration\ConfigureSeverity\DotNetDiagnosticSeverityBasedSeverityConfigurationTests.cs (1)
33public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(Rule);
Diagnostics\Suppression\RemoveSuppressionTests.cs (1)
32public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics
Diagnostics\Suppression\RemoveUnnecessaryPragmaSuppressionsTests.cs (12)
61public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(Descriptor0168, Descriptor0219); 116public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(Descriptor); 135protected abstract ImmutableArray<string> UnsupportedDiagnosticIds { get; } 144internal override ImmutableArray<DiagnosticAnalyzer> OtherAnalyzers 150protected override ImmutableArray<string> UnsupportedDiagnosticIds 155var supported = ((CSharpCompilerDiagnosticAnalyzer)OtherAnalyzers[0]).GetSupportedErrorCodes(); 183internal override ImmutableArray<DiagnosticAnalyzer> OtherAnalyzers 188protected override ImmutableArray<string> UnsupportedDiagnosticIds 1018internal override ImmutableArray<DiagnosticAnalyzer> OtherAnalyzers 1300public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(Descriptor); 1315internal override ImmutableArray<DiagnosticAnalyzer> OtherAnalyzers 1341internal override ImmutableArray<DiagnosticAnalyzer> OtherAnalyzers
Diagnostics\Suppression\SuppressionTest_FixMultipleTests.cs (1)
43public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(Decsciptor1, Decsciptor2);
Diagnostics\Suppression\SuppressionTests.cs (9)
695public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 756protected override async Task<(ImmutableArray<CodeAction>, CodeAction actionToInvoke)> GetCodeActionsAsync(TestWorkspace workspace, TestParameters parameters) 805public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 868public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 918public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 998protected override async Task<(ImmutableArray<CodeAction>, CodeAction actionToInvoke)> GetCodeActionsAsync(TestWorkspace workspace, TestParameters parameters) 1059public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 2059public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(_descriptor); 2454public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics
EditAndContinue\BreakpointSpansTests.cs (1)
73MarkupTestFile.GetPositionAndSpans(markup, out var source, out var position, out var expectedSpans);
EditAndContinue\CSharpEditAndContinueAnalyzerTests.cs (1)
123ImmutableArray<ActiveStatementLineSpan> newActiveStatementSpans = default)
EditAndContinue\Helpers\CSharpEditAndContinueTestVerifier.cs (1)
25public override ImmutableArray<SyntaxNode> GetDeclarators(ISymbol method)
ExtractClass\ExtractClassTests.cs (1)
3109ImmutableArray<ISymbol> selectedMembers,
FullyQualify\FullyQualifyTests.cs (2)
32protected override ImmutableArray<CodeAction> MassageActions(ImmutableArray<CodeAction> actions)
FullyQualify\FullyQualifyUnboundIdentifierTests.cs (2)
31protected override ImmutableArray<CodeAction> MassageActions(ImmutableArray<CodeAction> actions)
GenerateVariable\GenerateVariableTests.cs (2)
48protected override ImmutableArray<CodeAction> MassageActions(ImmutableArray<CodeAction> actions)
IntroduceParameter\IntroduceParameterTests.cs (2)
25protected override ImmutableArray<CodeAction> MassageActions(ImmutableArray<CodeAction> actions)
IntroduceVariable\InteractiveIntroduceVariableTests.cs (2)
23protected override ImmutableArray<CodeAction> MassageActions(ImmutableArray<CodeAction> actions)
IntroduceVariable\IntroduceVariableTests.cs (2)
28protected override ImmutableArray<CodeAction> MassageActions(ImmutableArray<CodeAction> actions)
SemanticSearch\Mocks\MockSemanticSearchResultsObserver.cs (2)
19public Action<ImmutableArray<QueryCompilationError>>? OnCompilationFailureImpl { get; set; } 47public ValueTask OnCompilationFailureAsync(ImmutableArray<QueryCompilationError> errors, CancellationToken cancellationToken)
SpellCheck\SpellCheckTests.cs (2)
32protected override ImmutableArray<CodeAction> MassageActions(ImmutableArray<CodeAction> actions)
src\Analyzers\CSharp\Tests\AbstractBuiltInCodeStyleDiagnosticAnalyzer\AbstractBuiltInCodeStyleDiagnosticAnalyzerTests.cs (1)
35private static ImmutableArray<(DiagnosticDescriptor, ImmutableHashSet<IOption2>)> CreateSupportedDiagnosticsWithOptionsFromIds(IEnumerable<string> ids)
src\Analyzers\CSharp\Tests\AddExplicitCast\AddExplicitCastTests.cs (2)
25protected override ImmutableArray<CodeAction> MassageActions(ImmutableArray<CodeAction> actions)
src\Analyzers\CSharp\Tests\AddParameter\AddParameterTests.cs (2)
28protected override ImmutableArray<CodeAction> MassageActions(ImmutableArray<CodeAction> actions)
src\Analyzers\CSharp\Tests\AliasAmbiguousType\AliasAmbiguousTypeTests.cs (2)
32protected override ImmutableArray<CodeAction> MassageActions(ImmutableArray<CodeAction> actions)
src\Analyzers\CSharp\Tests\ConvertToRecord\ConvertToRecordCodeFixTests.cs (1)
162public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics
src\Analyzers\CSharp\Tests\ReplaceDefaultLiteral\ReplaceDefaultLiteralTests.cs (4)
24private static readonly ImmutableArray<LanguageVersion> s_csharp7_1above = 27private static readonly ImmutableArray<LanguageVersion> s_csharp7below = 38private async Task TestWithLanguageVersionsAsync(string initialMarkup, string expectedMarkup, ImmutableArray<LanguageVersion> versions) 47private async Task TestMissingWithLanguageVersionsAsync(string initialMarkup, ImmutableArray<LanguageVersion> versions)
src\Analyzers\CSharp\Tests\SimplifyInterpolation\SimplifyInterpolationTests.cs (1)
44var diagnostics = await GetDiagnosticsWorkerAsync(workspace, parameters);
Wrapping\AbstractWrappingTests.cs (2)
23protected sealed override ImmutableArray<CodeAction> MassageActions(ImmutableArray<CodeAction> actions)
Wrapping\SortingTests.cs (10)
19var items = ImmutableArray.Create("Action1", "Action2"); 21var sorted = WrapItemsAction.SortByMostRecentlyUsed( 31var items = ImmutableArray.Create("Action1", "Action2"); 33var sorted = WrapItemsAction.SortByMostRecentlyUsed( 43var items = ImmutableArray.Create("Action1", "Action2"); 45var sorted = WrapItemsAction.SortByMostRecentlyUsed( 55var items = ImmutableArray.Create("Action1", "Action2"); 57var sorted = WrapItemsAction.SortByMostRecentlyUsed( 67var items = ImmutableArray.Create("Action1", "Action2"); 69var sorted = WrapItemsAction.SortByMostRecentlyUsed(
Microsoft.CodeAnalysis.CSharp.Scripting (1)
CSharpScriptCompiler.cs (1)
42var references = script.GetReferencesForCompilation(MessageProvider.Instance, diagnostics);
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (5)
InteractiveSessionReferencesTests.cs (4)
48var diagnostics = s1.Compile(); 104var diagnostics0 = s0.Compile(); 142var diagnostics0 = s0.Compile(); 150var diagnostics1 = s1.Compile();
InteractiveSessionTests.cs (1)
1181var scopes = semanticModel.GetImportScopes(0);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (354)
Semantics\AmbiguousOverrideTests.cs (1)
139var diagnostics = comp.GetDiagnostics();
Semantics\BindingAsyncTasklikeTests.cs (1)
188var diagnostics = compilation.GetDiagnostics();
Semantics\BindingTests.cs (9)
3039var group1 = model.GetMemberGroup(node1); 3055var group = model.GetMemberGroup(node); 3119var group1 = model.GetMemberGroup(node1); 3135var group = model.GetMemberGroup(node); 3192var group1 = model.GetMemberGroup(node1); 3209var group = model.GetMemberGroup(node); 3277var group1 = model.GetMemberGroup(node1); 3294var group = model.GetMemberGroup(node); 3398var symbols = model.LookupSymbols(node1.SpanStart);
Semantics\ColorColorTests.cs (1)
1773public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics
Semantics\DeconstructionTests.cs (1)
6556var nestedConversions = deconstructionInfo.Nested;
Semantics\FieldInitializerBindingTests.cs (6)
249var boundInstanceInitializers = BindInitializersWithoutDiagnostics(typeSymbol, typeSymbol.InstanceInitializers); 252var boundStaticInitializers = BindInitializersWithoutDiagnostics(typeSymbol, typeSymbol.StaticInitializers); 256private static void CheckBoundInitializers(IEnumerable<ExpectedInitializer> expectedInitializers, SyntaxTree syntaxTree, ImmutableArray<BoundInitializer> boundInitializers, bool isStatic) 290private static ImmutableArray<BoundInitializer> BindInitializersWithoutDiagnostics(SourceNamedTypeSymbol typeSymbol, ImmutableArray<ImmutableArray<FieldOrPropertyInitializer>> initializers)
Semantics\ImportsTests.cs (2)
125ImmutableArray<NamespaceOrTypeAndUsingDirective>.Empty, 130ImmutableArray<NamespaceOrTypeAndUsingDirective>.Empty,
Semantics\InheritanceBindingTests.cs (1)
8239var actualErrors = comp.GetDiagnostics();
Semantics\InitOnlyMemberTests.cs (2)
402var members = ((NamedTypeSymbol)comp.GlobalNamespace.GetMember("C")).GetMembers(); 2428var members = ((NamedTypeSymbol)comp.GlobalNamespace.GetMember("C")).GetMembers();
Semantics\InterceptorsTests.cs (24)
40private static ImmutableArray<InterceptableLocation?> GetInterceptableLocations(CSharpTestSource source) 63var locations = GetInterceptableLocations(source); 113var locations = GetInterceptableLocations(source); 5279var pathMap = ImmutableArray.Create(new KeyValuePair<string, string>(pathPrefix, "/_/")); 5285new SourceFileResolver(ImmutableArray<string>.Empty, null, pathMap)), 5315var pathMap = ImmutableArray.Create(new KeyValuePair<string, string>(pathPrefix, "/_/")); 5321new SourceFileResolver(ImmutableArray<string>.Empty, null, pathMap)), 5349var pathMap = ImmutableArray.Create(new KeyValuePair<string, string>(pathPrefix, "/_/")); 5355new SourceFileResolver(ImmutableArray<string>.Empty, null, pathMap))); 5418var pathMap = ImmutableArray.Create( 5427new SourceFileResolver(ImmutableArray<string>.Empty, null, pathMap))); 5458var pathMap = ImmutableArray.Create(new KeyValuePair<string, string>(pathPrefix, @"\_\")); 5464new SourceFileResolver(ImmutableArray<string>.Empty, null, pathMap)), 5493var pathMap = ImmutableArray.Create(new KeyValuePair<string, string>(pathPrefix, @"\_/")); 5499new SourceFileResolver(ImmutableArray<string>.Empty, null, pathMap))); 5535var pathMap = ImmutableArray.Create(new KeyValuePair<string, string>(pathPrefix, @"\_/")); 5541new SourceFileResolver(ImmutableArray<string>.Empty, null, pathMap)), 5976var pathMap = ImmutableArray.Create(new KeyValuePair<string, string>(pathPrefix, "/_/")); 5982new SourceFileResolver(ImmutableArray<string>.Empty, null, pathMap)), 6017var pathMap = ImmutableArray.Create(new KeyValuePair<string, string>(pathPrefix, "/_/")); 6023new SourceFileResolver(ImmutableArray<string>.Empty, null, pathMap))); 6079var pathMap = ImmutableArray.Create(new KeyValuePair<string, string>(directory2, "./")); 6083new SourceFileResolver(ImmutableArray<string>.Empty, null, pathMap))); 6096new SourceFileResolver(ImmutableArray<string>.Empty, null, pathMap)),
Semantics\LambdaDiscardParametersTests.cs (1)
395static ImmutableArray<string> getParameterAttributes(IParameterSymbol parameter) => parameter.GetAttributes().SelectAsArray(a => a.ToString());
Semantics\LambdaTests.cs (17)
475var errs = comp.GetDiagnostics(); 1985var lambdaParameters = ((IMethodSymbol)(model.GetSymbolInfo(node1)).Symbol).Parameters; 3901void verifyAttributes(ImmutableArray<AttributeData> attributes, params string[] expectedAttributeNames) 3937var attributeSyntaxes = tree.GetRoot().DescendantNodes().OfType<AttributeSyntax>().ToImmutableArray(); 4122var exprs = tree.GetRoot().DescendantNodes().OfType<LambdaExpressionSyntax>().ToImmutableArray(); 4157var exprs = tree.GetRoot().DescendantNodes().OfType<LambdaExpressionSyntax>().ToImmutableArray(); 4185var exprs = tree.GetRoot().DescendantNodes().OfType<LambdaExpressionSyntax>().ToImmutableArray(); 4212var exprs = tree.GetRoot().DescendantNodes().OfType<LambdaExpressionSyntax>().ToImmutableArray(); 4787var exprs = tree.GetRoot().DescendantNodes().OfType<LambdaExpressionSyntax>().ToImmutableArray(); 4872var exprs = tree.GetRoot().DescendantNodes().OfType<LambdaExpressionSyntax>().ToImmutableArray(); 4927var exprs = tree.GetRoot().DescendantNodes().OfType<LambdaExpressionSyntax>().ToImmutableArray(); 4954var exprs = tree.GetRoot().DescendantNodes().OfType<LambdaExpressionSyntax>().ToImmutableArray(); 4982var exprs = tree.GetRoot().DescendantNodes().OfType<LambdaExpressionSyntax>().ToImmutableArray(); 8010var lambdas = tree.GetRoot().DescendantNodes() 8118var decls = tree.GetRoot().DescendantNodes().OfType<LocalDeclarationStatementSyntax>().ToImmutableArray(); 8360var exprs = tree.GetRoot().DescendantNodes().OfType<LambdaExpressionSyntax>().ToImmutableArray(); 8393var exprs = tree.GetRoot().DescendantNodes().OfType<LambdaExpressionSyntax>().ToImmutableArray();
Semantics\LocalFunctionTests.cs (14)
506var attributes = symbol.GetAttributes().As<CSharpAttributeData>(); 509var returnAttributes = symbol.GetReturnTypeAttributes(); 554var attributes = symbol.GetAttributes(); 561var returnAttributes = symbol.GetReturnTypeAttributes(); 818var returnAttributes = symbol.GetReturnTypeAttributes(); 824var attributes = symbol.GetAttributes(); 856var attrs = paramSymbol.GetAttributes(); 974var attributes = symbol.GetAttributes(); 980var returnAttributes = symbol.GetReturnTypeAttributes(); 2587var exprs = tree.GetRoot().DescendantNodes().OfType<LocalFunctionStatementSyntax>().ToImmutableArray(); 6445var exprs = GetNameOfExpressions(tree); 6489var exprs = tree.GetRoot().DescendantNodes().OfType<TypeOfExpressionSyntax>().Select(n => n.Type).ToImmutableArray(); 6536var exprs = tree.GetRoot().DescendantNodes().OfType<SizeOfExpressionSyntax>().Select(n => n.Type).ToImmutableArray(); 6548private static ImmutableArray<ExpressionSyntax> GetNameOfExpressions(SyntaxTree tree)
Semantics\LookupPositionTests.cs (2)
2273var symbols = model.LookupLabels(source.ToString().IndexOf("label1;", StringComparison.Ordinal)); 2301var symbols = model.LookupLabels(source.ToString().IndexOf("HERE", StringComparison.Ordinal));
Semantics\LookupTests.cs (8)
635var actual_lookupSymbols = model.LookupSymbols(GetPositionForBinding(tree)); 636var actual_lookupSymbols_ignoreAcc = model.LookupSymbols(GetPositionForBinding(tree)); 694var symbols = model.LookupBaseMembers(baseExprLocation); 1371var symbols = model.LookupSymbols(eof); 1761var symbols = model.LookupNamespacesAndTypes(position, name: "M"); 1792var symbols = model.LookupSymbols(position, name: "T"); 1824var symbols = model.LookupSymbols(position, name: "M"); 1985var symbols = model.LookupNamespacesAndTypes(position);
Semantics\MethodBodyModelTests.cs (1)
617var diags = comp.GetDiagnostics();
Semantics\NameOfTests.cs (13)
979var nameofCalls = getNameOfCalls(tree); 981var nameofCalls2 = getNameOfCalls(tree2); 1015static ImmutableArray<InvocationExpressionSyntax> getNameOfCalls(SyntaxTree tree) 1051var nameofCalls = getNameOfCalls(tree); 1053var nameofCalls2 = getNameOfCalls(tree2); 1061void verify(int index, string expression, ImmutableArray<Symbol> symbols) 1089static ImmutableArray<InvocationExpressionSyntax> getNameOfCalls(SyntaxTree tree) 1133var nameofCalls = getNameOfCalls(tree); 1135var nameofCalls2 = getNameOfCalls(tree2); 1172static ImmutableArray<InvocationExpressionSyntax> getNameOfCalls(SyntaxTree tree) 1214var nameofCalls = getNameOfCalls(tree); 1216var nameofCalls2 = getNameOfCalls(tree2); 1253static ImmutableArray<InvocationExpressionSyntax> getNameOfCalls(SyntaxTree tree)
Semantics\NativeIntegerTests.cs (20)
275private static void VerifyInterfaces(INamedTypeSymbol underlyingType, ImmutableArray<INamedTypeSymbol> underlyingInterfaces, INamedTypeSymbol nativeIntegerType, ImmutableArray<INamedTypeSymbol> nativeIntegerInterfaces) 301var nativeIntegerMembers = nativeIntegerType.GetMembers(); 302var underlyingMembers = underlyingType.GetMembers(); 384private static void VerifyInterfaces(NamedTypeSymbol underlyingType, ImmutableArray<NamedTypeSymbol> underlyingInterfaces, NamedTypeSymbol nativeIntegerType, ImmutableArray<NamedTypeSymbol> nativeIntegerInterfaces) 410var nativeIntegerMembers = nativeIntegerType.GetMembers(); 411var underlyingMembers = underlyingType.GetMembers(); 466var allMembers = type.GetMembers(); 475var unorderedMembers = type.GetMembersUnordered(); 481var members = type.GetMembers(memberName); 486static void verifyMembers(NamedTypeSymbol type, ImmutableArray<Symbol> allMembers, ImmutableArray<Symbol> members) 502var parameters = method.Parameters; 511var allMembers = type.GetMembers(); 522var members = type.GetMembers(memberName); 527static void verifyMembers(INamedTypeSymbol type, ImmutableArray<ISymbol> allMembers, ImmutableArray<ISymbol> members) 1550var interfaces = type.InterfacesNoUseSiteDiagnostics(null); 4833static void verifyOperators<T>(ImmutableArray<T> operators, Func<T, bool, bool> predicate, int expectedSigned, int expectedUnsigned)
Semantics\NullableReferenceTypesTests.cs (53)
16953var members = c.GetMembers("I1<A>.M"); 16955var cMabImplementations = ((MethodSymbol)members[0]).ExplicitInterfaceImplementations; 16958var cMcdImplementations = ((MethodSymbol)members[1]).ExplicitInterfaceImplementations; 17025var m2Implementations = m2.ExplicitInterfaceImplementations; 17104var m2Implementations = m2.ExplicitInterfaceImplementations; 17319var members = c.GetMembers("I1<T>.M"); 17321var cMabImplementations = ((MethodSymbol)members[0]).ExplicitInterfaceImplementations; 17324var cMcdImplementations = ((MethodSymbol)members[1]).ExplicitInterfaceImplementations; 17365var cMabImplementations = ((MethodSymbol)((TypeSymbol)c).GetMember("I1<T>.M")).ExplicitInterfaceImplementations; 17368var cMcdImplementations = ((MethodSymbol)((TypeSymbol)c).GetMember("I1<U>.M")).ExplicitInterfaceImplementations; 17427var mImplementations = method.ExplicitInterfaceImplementations; 17508var mImplementations = method.ExplicitInterfaceImplementations; 17592var mImplementations = method.ExplicitInterfaceImplementations; 17673var mImplementations = method.ExplicitInterfaceImplementations; 30216var setterAttributes = setter.GetAttributes(); 30227var setterReturnAttributes = setter.GetReturnTypeAttributes(); 40982var setterAttributes = setter.GetAttributes(); 40997var setterReturnAttributes = setter.GetReturnTypeAttributes(); 41043var setterAttributes = setter.GetAttributes(); 62841var declarators = syntaxTree.GetRoot().DescendantNodes().OfType<AnonymousObjectMemberDeclaratorSyntax>().ToImmutableArray(); 100304var attributes = t1.GetAttributes(); 100343var attributes = t1.GetAttributes(); 100715var attributes = tf1.GetAttributes(); 102340var attributes = tf1.GetAttributes(); 102368var attributes = tf1.GetAttributes(); 102396var attributes = tf1.GetAttributes(); 102435var attributes = tf1.GetAttributes(); 102463var attributes = tf1.GetAttributes(); 102684var attributes = tf1.GetAttributes(); 102751var attributes = tf1.GetAttributes(); 102785var attributes = tf1.GetAttributes(); 102823var attributes = tf1.GetAttributes(); 102860var attributes = tf1.GetAttributes(); 102887var attributes = tf1.GetAttributes(); 102914var attributes = tf1.GetAttributes(); 102941var attributes = tf1.GetAttributes(); 102978var attributes = tf1.GetAttributes(); 103005var attributes = tf1.GetAttributes(); 103037var attributes = tf1.GetAttributes(); 103078var attributes = tf1.GetAttributes(); 103121var attributes = tf1.GetAttributes(); 103165var attributes = tf1.GetAttributes(); 112489var diagnostics = comp.GetDiagnostics(); 115877var modifiers = ImmutableArray.Create(CSharpCustomModifier.CreateOptional(comp.GetSpecialType(SpecialType.System_Object))); 125127var diagnostics = comp.GetDiagnostics(); 125462var diagnostics = comp.GetDiagnostics(); 126001var diagnostics = comp.GetDiagnostics(); 126147var diagnostics = comp.GetDiagnostics(); 157872var diagnostics = comp.GetEmitDiagnostics(); 161241var arms = syntaxTree.GetRoot().DescendantNodes().OfType<SwitchExpressionArmSyntax>().ToImmutableArray(); 161245var identifiers = unreachableArm.DescendantNodes().OfType<IdentifierNameSyntax>().ToImmutableArray(); 161287var sections = syntaxTree.GetRoot().DescendantNodes().OfType<SwitchSectionSyntax>().ToImmutableArray(); 161291var identifiers = unreachableSection.DescendantNodes().OfType<IdentifierNameSyntax>().ToImmutableArray();
Semantics\OperatorTests.cs (2)
3272private static string FormatTypeArgumentList(ImmutableArray<TypeWithAnnotations>? arguments) 3299let typeArguments = node["typeArgumentsOpt"].Value as ImmutableArray<TypeWithAnnotations>?
Semantics\OverloadResolutionPerfTests.cs (1)
1060var exprs = tree.GetRoot().DescendantNodes().OfType<InvocationExpressionSyntax>().ToImmutableArray();
Semantics\OverloadResolutionTests.cs (2)
9076var candidates = symbolInfo.CandidateSymbols; 9424var candidates = symbolInfo.CandidateSymbols;
Semantics\QueryTests.cs (2)
2663var diags = semanticModel.GetDiagnostics(); 2690var diags = semanticModel.GetDiagnostics();
Semantics\RecordStructTests.cs (8)
5949public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 6178public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 6274public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 6403public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 6500public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 6558public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 6651public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 6812public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics
Semantics\RefFieldTests.cs (2)
9079var references = TargetFrameworkUtil.GetReferences(TargetFramework.Standard, additionalReferences: null); 21333var references = TargetFrameworkUtil.GetReferences(TargetFramework.NetCoreApp, additionalReferences: null);
Semantics\ScriptSemanticsTests.cs (2)
450ImmutableArray<NamedTypeSymbol> members; 591var symbols = model.LookupSymbols(text.Length);
Semantics\SemanticErrorTests.cs (2)
1693var diagnostics = CreateCompilation(text).GetDiagnostics(); 3254var errs = comp.GetDiagnostics();
Semantics\StructConstructorTests.cs (4)
4886var constructors = type.InstanceConstructors; 4887var members = type.GetMembers(".ctor"); 4895var constructors = type.InstanceConstructors; 4896var members = type.GetMembers(".ctor");
Semantics\TopLevelStatementsTests.cs (31)
1690var symbols = model1.LookupSymbols(localDecl.SpanStart); 1764var symbols = model.LookupSymbols(nameRef.SpanStart); 1863var symbols = model1.LookupSymbols(localDecl.SpanStart); 1932var symbols = model2.LookupSymbols(nameRef.SpanStart); 2088var symbols = model1.LookupSymbols(localDecl.SpanStart); 2145var symbols = model2.LookupSymbols(nameRef.SpanStart); 2252var symbols = model1.LookupSymbols(localDecl.SpanStart); 2311var symbols = model2.LookupSymbols(nameRef.SpanStart); 2431var symbols = model1.LookupSymbols(labelDecl.SpanStart); 2508var symbols = model2.LookupSymbols(nameRef.SpanStart); 3950var symbols = model.LookupSymbols(nameRef.SpanStart); 4004var symbols = model.LookupSymbols(nameRef.SpanStart); 4099var symbols = model.LookupSymbols(nameRef.SpanStart); 4134var symbols = model.LookupSymbols(nameRef.SpanStart); 6426public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 6525public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 6600public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 6709public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 6790public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 6848public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 6906public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 6974public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 7054public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 7170public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 7264public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 7336public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 7403public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 8580var symbols = model.LookupSymbols(invocations[0].Position, name: "args"); 8655var symbols = model.LookupSymbols(i, name: "args"); 8677var symbols = model.LookupSymbols(i, name: "args"); 8699var symbols = model.LookupSymbols(i, name: "args");
Semantics\UninitializedNonNullableFieldTests.cs (1)
2802var diagnostics = comp.GetDiagnostics();
Semantics\UnsafeTests.cs (2)
5189var compilationDiagnostics = compilation.GetDiagnostics(); 7922var structMethods = ImmutableArray.Create<MethodSymbol>(structMethod1, structMethod2);
Semantics\UseSiteErrorTests.cs (1)
2442var diagnostics = compilation.GetDiagnostics();
SourceGeneration\AdditionalSourcesCollectionTests.cs (4)
57var sources = asc.ToImmutableAndFree(); 73var sources = asc.ToImmutableAndFree(); 126var sources = asc.ToImmutableAndFree(); 214var sources = asc.ToImmutableAndFree();
SourceGeneration\GeneratorDriverFuzzTests.cs (2)
122class SelectManyOperator(Operator Source, ImmutableArray<(bool TransformAs, bool TransformCs)> Logics) : Operator 525var editedInputs = ImmutableArray.Create(new AdditionalText[]
SourceGeneration\GeneratorDriverTests.cs (58)
40GeneratorDriver driver = CSharpGeneratorDriver.Create(ImmutableArray<ISourceGenerator>.Empty, parseOptions: parseOptions); 41driver.RunGeneratorsAndUpdateCompilation(compilation, out var outputCompilation, out var diagnostics); 64driver.RunGeneratorsAndUpdateCompilation(compilation, out var outputCompilation, out var diagnostics); 180public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 261driver.RunGeneratorsAndUpdateCompilation(compilation, out var outputCompilation, out var generatorDiagnostics); 284driver.RunGeneratorsAndUpdateCompilation(compilation, out var outputCompilation, out var generatorDiagnostics); 328driver.RunGeneratorsAndUpdateCompilation(compilation, out var outputCompilation, out var generatorDiagnostics); 352driver.RunGeneratorsAndUpdateCompilation(compilation, out var outputCompilation, out var generatorDiagnostics); 385driver.RunGeneratorsAndUpdateCompilation(compilation, out var outputCompilation, out var generatorDiagnostics); 412driver.RunGeneratorsAndUpdateCompilation(compilation, out var outputCompilation, out var generatorDiagnostics); 439driver.RunGeneratorsAndUpdateCompilation(compilation, out var outputCompilation, out var generatorDiagnostics); 470driver.RunGeneratorsAndUpdateCompilation(compilation, out var outputCompilation, out var generatorDiagnostics); 509driver.RunGeneratorsAndUpdateCompilation(compilation, out var outputCompilation, out var generatorDiagnostics); 530driver.RunGeneratorsAndUpdateCompilation(compilation, out var outputCompilation, out var generatorDiagnostics); 545GeneratorDriver driver = CSharpGeneratorDriver.Create(ImmutableArray<ISourceGenerator>.Empty, parseOptions: TestOptions.Regular); 721driver = driver.RunGeneratorsAndUpdateCompilation(compilation, out _, out var fullDiagnostics); 764driver = driver.RunGeneratorsAndUpdateCompilation(compilation, out var outputCompilation, out var outputDiagnostics, cts.Token) 783driver.RunGeneratorsAndUpdateCompilation(compilation, out _, out var outputDiagnostics); 827var texts = ImmutableArray.Create<AdditionalText>(new InMemoryAdditionalText("a", "abc"), new InMemoryAdditionalText("b", "def")); 829ImmutableArray<AdditionalText> passedIn = default; 1009driver = driver.RunGeneratorsAndUpdateCompilation(compilation, out var outputCompilation, out var generatorDiagnostics); 1044driver = driver.RunGeneratorsAndUpdateCompilation(compilation, out var outputCompilation, out var generatorDiagnostics); 1206driver.RunGeneratorsAndUpdateCompilation(updatedCompilation, out var outputCompilation, out var diagnostics); 1277driver.RunGeneratorsAndUpdateCompilation(compilation, out var outputCompilation, out var diagnostics); 1372driver.RunGeneratorsAndUpdateCompilation(compilation, out var outputCompilation, out var diagnostics); 1605driver = driver.RunGeneratorsAndUpdateCompilation(compilation, out var outputCompilation, out var diagnostics); 1626driver = driver.RunGeneratorsAndUpdateCompilation(compilation, out var outputCompilation, out var diagnostics); 1990.WithComparer(new LambdaComparer<(Compilation, ImmutableArray<AdditionalText>)>((c1, c2) => c1.Item1 == c2.Item1, 0)) 2015Assert.Equal(texts[0], ((ImmutableArray<AdditionalText>)source.Source.Outputs[source.OutputIndex].Value)[0]); 2021var value = ((Compilation, ImmutableArray<AdditionalText>))output.Value; 2044Assert.Empty((ImmutableArray<AdditionalText>)source.Source.Outputs[source.OutputIndex].Value); 2050var value = ((Compilation, ImmutableArray<AdditionalText>))output.Value; 2065var value = ((Compilation, ImmutableArray<AdditionalText>))source.Source.Outputs[source.OutputIndex].Value; 2073var value = ((Compilation, ImmutableArray<AdditionalText>))output.Value; 2096Assert.Empty((ImmutableArray<AdditionalText>)source.Source.Outputs[source.OutputIndex].Value); 2102var value = ((Compilation, ImmutableArray<AdditionalText>))output.Value; 2159driver = driver.RunGeneratorsAndUpdateCompilation(compilation, out var outputCompilation, out var generatorDiagnostics); 2217driver = driver.RunGeneratorsAndUpdateCompilation(compilation, out var outputCompilation, out var generatorDiagnostics); 2220var trees = driver.GetRunResult().GeneratedTrees; 2360driver = driver.RunGeneratorsAndUpdateCompilation(compilation, out var outputCompilation, out var generatorDiagnostics); 2363var trees = driver.GetRunResult().GeneratedTrees; 2558IncrementalValueProvider<(Compilation, ImmutableArray<ClassDeclarationSyntax>)> compilationAndClasses = 2584static void validate(Compilation compilation, ImmutableArray<ClassDeclarationSyntax> nodes) 3575driver = driver.RunGeneratorsAndUpdateCompilation(compilation, out compilation, out var diagnostics); 3585driver = driver.AddAdditionalTexts(ImmutableArray<AdditionalText>.Empty); 3631driver = driver.RunGeneratorsAndUpdateCompilation(compilation, out compilation, out var diagnostics); 3665driver = driver.RunGeneratorsAndUpdateCompilation(compilation, out compilation, out var diagnostics); 3694driver = driver.RunGeneratorsAndUpdateCompilation(compilation, out compilation, out var diagnostics); 3725driver = driver.RunGeneratorsAndUpdateCompilation(compilation, out compilation, out var diagnostics); 3757driver = driver.RunGeneratorsAndUpdateCompilation(compilation, out compilation, out var diagnostics); 3790driver = driver.RunGeneratorsAndUpdateCompilation(compilation, out compilation, out var diagnostics); 3819driver = driver.RunGeneratorsAndUpdateCompilation(compilation, out compilation, out var diagnostics); 3849driver = driver.RunGeneratorsAndUpdateCompilation(compilation, out compilation, out var diagnostics); 3881driver = driver.RunGeneratorsAndUpdateCompilation(compilation, out compilation, out var diagnostics); 3910driver = driver.RunGeneratorsAndUpdateCompilation(compilation, out compilation, out var diagnostics); 4096driver = driver.RunGeneratorsAndUpdateCompilation(compilation, out var outputCompilation, out var generatorDiagnostics); 4181driver = driver.RunGeneratorsAndUpdateCompilation(compilation, out var outputCompilation, out var generatorDiagnostics); 4358driver = driver.RunGeneratorsAndUpdateCompilation(compilation, out var outputCompilation, out var outputDiagnostics);
SourceGeneration\GeneratorDriverTests_Attributes_FullyQualifiedName.cs (1)
1291driver = driver.RunGeneratorsAndUpdateCompilation(compilation, out var outputCompilation, out var generatorDiagnostics);
SourceGeneration\StateTableTests.cs (41)
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; 477var inputValue = ImmutableArray.Create(1, 2, 3); 774ImmutableArray<int> inputNodeValue = ImmutableArray.Create(1, 2, 3); 827ImmutableArray<int> inputNodeValue = ImmutableArray.Create(1, 2, 3); 861ImmutableArray<int> inputNodeValue = ImmutableArray.Create(1, 2, 3); 939var transformNode = new TransformNode<ImmutableArray<int>, int>(batchNode, (arr, ct) => arr, name: "Transform"); 940var filterNode = new TransformNode<int, int>(transformNode, (i, ct) => i <= 2 ? ImmutableArray.Create(i) : ImmutableArray<int>.Empty, name: "Filter"); 970ImmutableArray<int> values = ImmutableArray.Create(1, 2, 3); 971var inputNode = new InputNode<ImmutableArray<int>>(_ => ImmutableArray.Create(values)).WithTrackingName("Input"); 972var transformNode = new TransformNode<ImmutableArray<int>, int>(inputNode, (arr, ct) => arr, name: "SelectMany"); 978values = ImmutableArray<int>.Empty; 999ImmutableArray<int> values = ImmutableArray<int>.Empty; 1000var inputNode = new InputNode<ImmutableArray<int>>(_ => ImmutableArray.Create(values)).WithTrackingName("Input"); 1001var transformNode = new TransformNode<ImmutableArray<int>, int>(inputNode, (arr, ct) => arr, name: "SelectMany"); 1028ImmutableArray<ImmutableArray<string>> values = ImmutableArray.Create(ImmutableArray.Create("class1"), ImmutableArray.Create("class2")); 1029var inputNode = new InputNode<ImmutableArray<string>>(_ => values).WithTrackingName("Input"); 1030var transformNode = new TransformNode<ImmutableArray<string>, string>(inputNode, (arr, ct) => arr[0] == "class3" ? ImmutableArray<string>.Empty : arr, name: "SelectMany"); 1069ImmutableArray<ImmutableArray<string>> values = ImmutableArray.Create(ImmutableArray.Create("class1", "class1.1"), ImmutableArray.Create("class2", "class2.1")); 1070var inputNode = new InputNode<ImmutableArray<string>>(_ => values).WithTrackingName("Input"); 1071var transformNode = new TransformNode<ImmutableArray<string>, string>(inputNode, (arr, ct) => arr[0] == "class3" ? ImmutableArray<string>.Empty : arr, name: "SelectMany"); 1110ImmutableArray<string> values = ImmutableArray.Create("1", "2"); 1145ImmutableArray<string> values = ImmutableArray.Create("1", "2"); 1180ImmutableArray<string> values = ImmutableArray.Create("1", "2"); 1215ImmutableArray<string> values = ImmutableArray.Create("1", "2"); 1250ImmutableArray<string> values = ImmutableArray.Create("1", "2", "3"); 1286ImmutableArray<string> values = ImmutableArray.Create("1", "2"); 1330private void AssertTableEntries<T>(NodeStateTable<ImmutableArray<T>> table, IList<(ImmutableArray<T> Item, EntryState State, int OutputIndex)> expected) 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));
SourceGeneration\SyntaxAwareGeneratorTests.cs (11)
382driver = driver.RunGeneratorsAndUpdateCompilation(compilation, out var outputCompilation, out var outputDiagnostics); 424driver = driver.RunGeneratorsAndUpdateCompilation(compilation, out var outputCompilation, out var outputDiagnostics); 472driver = driver.RunGeneratorsAndUpdateCompilation(compilation, out var outputCompilation, out var outputDiagnostics); 514driver = driver.RunGeneratorsAndUpdateCompilation(compilation, out var outputCompilation, out var outputDiagnostics); 563driver = driver.RunGeneratorsAndUpdateCompilation(compilation, out var outputCompilation, out var outputDiagnostics); 594driver = driver.RunGeneratorsAndUpdateCompilation(compilation, out var outputCompilation, out var outputDiagnostics); 635driver = driver.RunGeneratorsAndUpdateCompilation(compilation, out var outputCompilation, out var outputDiagnostics); 831driver = driver.RunGeneratorsAndUpdateCompilation(compilation, out var outputCompilation, out var outputDiagnostics); 1862driver = driver.RunGeneratorsAndUpdateCompilation(compilation, out var outputCompilation, out var outputDiagnostics); 1903driver = driver.RunGeneratorsAndUpdateCompilation(compilation, out var outputCompilation, out var outputDiagnostics); 1949driver = driver.RunGeneratorsAndUpdateCompilation(compilation, out var outputCompilation, out var outputDiagnostics);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (457)
Compilation\CompilationAPITests.cs (30)
639var errs = comp.GetDiagnostics(); 707var errs = comp.GetDiagnostics(); 834var error = comp.GetDiagnostics(); 893var e = comp.GetDiagnostics(cancellationToken: default(CancellationToken)); 2568default(ImmutableArray<ITypeSymbol>), 2579default(ImmutableArray<string>))); 2658var memberTypes = ImmutableArray.Create<ITypeSymbol>(comp.GetSpecialType(SpecialType.System_Object), comp.GetSpecialType(SpecialType.System_String)); 2659var memberNames = ImmutableArray.Create("P", "Q"); 2688var type = comp.CreateAnonymousTypeSymbol(ImmutableArray<ITypeSymbol>.Empty, ImmutableArray<string>.Empty, memberNullableAnnotations: ImmutableArray<CodeAnalysis.NullableAnnotation>.Empty); 2698var memberTypes = ImmutableArray.Create<ITypeSymbol>(comp.GetSpecialType(SpecialType.System_Object), comp.GetSpecialType(SpecialType.System_String)); 2699var memberNames = ImmutableArray.Create("P", "Q"); 2712private static ImmutableArray<CodeAnalysis.NullableAnnotation> GetAnonymousTypeNullableAnnotations(ITypeSymbol type) 3032var typeArguments = ImmutableArray.Create<ITypeSymbol>(comp.GetSpecialType(SpecialType.System_Object), comp.GetSpecialType(SpecialType.System_String)); 3034Assert.Throws<ArgumentException>(() => genericType.Construct(default(ImmutableArray<ITypeSymbol>), default(ImmutableArray<CodeAnalysis.NullableAnnotation>))); 3042Assert.Throws<ArgumentException>(() => genericType.Construct(typeArguments, ImmutableArray<CodeAnalysis.NullableAnnotation>.Empty)); 3067var typeArguments = ImmutableArray.Create<ITypeSymbol>(comp.GetSpecialType(SpecialType.System_Object), comp.GetSpecialType(SpecialType.System_String)); 3069Assert.Throws<ArgumentException>(() => genericMethod.Construct(default(ImmutableArray<ITypeSymbol>), default(ImmutableArray<CodeAnalysis.NullableAnnotation>))); 3077Assert.Throws<ArgumentException>(() => genericMethod.Construct(typeArguments, ImmutableArray<CodeAnalysis.NullableAnnotation>.Empty)); 3407var types = comp.GetTypesByMetadataName("N.C`1"); 3425var types = comp.GetTypesByMetadataName("N.C`1"); 3450var types = comp.GetTypesByMetadataName("N.C`1"); 3474var types = comp.GetTypesByMetadataName("N.C`1"); 3502var types = comp.GetTypesByMetadataName("N.C`1"); 3531var types = comp.GetTypesByMetadataName("N.C`1"); 3569var types = comp.GetTypesByMetadataName("N.C`1"); 3612var types = current.GetTypesByMetadataName("C");
Compilation\CSharpCompilationOptionsTests.cs (11)
203var actual1 = new CSharpCompilationOptions(OutputKind.ConsoleApplication).WithUsings(new[] { "A", "B" }).Usings; 206var actual2 = new CSharpCompilationOptions(OutputKind.ConsoleApplication).WithUsings(Enumerable.Repeat("A", 1)).Usings; 394ImmutableArray<byte> cryptoPublicKey = default(ImmutableArray<byte>); 405SourceReferenceResolver sourceReferenceResolver = new SourceFileResolver(ImmutableArray<string>.Empty, null); 433public override ImmutableArray<PortableExecutableReference> ResolveReference(string reference, string baseFilePath, MetadataReferenceProperties properties) 444Assert.Equal(ImmutableArray<byte>.Empty, options.CryptoPublicKey); 445Assert.Equal(ImmutableArray<byte>.Empty, options.WithCryptoPublicKey(default(ImmutableArray<byte>)).CryptoPublicKey); 447Assert.Same(options, options.WithCryptoPublicKey(default(ImmutableArray<byte>))); 448Assert.Same(options, options.WithCryptoPublicKey(ImmutableArray<byte>.Empty));
Compilation\GetImportScopesTests.cs (35)
19private ImmutableArray<IImportScope> GetImportsScopes(string text) 24var scopes = model.GetImportScopes(GetPositionForBinding(text)); 32var scopes = GetImportsScopes(text); 41var scopes = GetImportsScopes(text); 52var scopes = GetImportsScopes(text); 68var scopes = GetImportsScopes(text); 87var scopes = GetImportsScopes(text); 99var scopes = GetImportsScopes(text); 116var scopes = GetImportsScopes(text); 127var scopes = GetImportsScopes(text); 144var scopes = GetImportsScopes(text); 172var scopes = GetImportsScopes(text); 194var scopes = GetImportsScopes(text); 222var scopes = GetImportsScopes(text); 241var scopes = GetImportsScopes(text); 257var scopes = GetImportsScopes(text); 276var scopes = GetImportsScopes(text); 288var scopes = GetImportsScopes(text); 305var scopes = GetImportsScopes(text); 316var scopes = GetImportsScopes(text); 333var scopes = GetImportsScopes(text); 361var scopes = GetImportsScopes(text); 383var scopes = GetImportsScopes(text); 415var scopes = model.GetImportScopes(GetPositionForBinding(text)); 434var scopes = model.GetImportScopes(GetPositionForBinding(text)); 456var scopes = model.GetImportScopes(GetPositionForBinding(text)); 477var scopes = model.GetImportScopes(GetPositionForBinding(text)); 497var scopes = model.GetImportScopes(GetPositionForBinding(text)); 513var scopes = model.GetImportScopes(GetPositionForBinding(text)); 533var scopes = model.GetImportScopes(GetPositionForBinding(text)); 564var scopes = model.GetImportScopes(GetPositionForBinding(text)); 589var scopes = model.GetImportScopes(GetPositionForBinding(text)); 615var scopes = model.GetImportScopes(GetPositionForBinding(text)); 644var scopes = model.GetImportScopes(GetPositionForBinding(text)); 677var scopes = model.GetImportScopes(GetPositionForBinding(text));
Compilation\GetSemanticInfoTests.cs (21)
416var errs = model.GetDiagnostics(); 443var errs = model.GetDiagnostics(); 492var errs = model.GetDiagnostics(); 1028var symbols = model.LookupSymbols(0, returnType); 1457var candidateIndexers = ImmutableArray.Create<ISymbol>(indexerSymbol1, indexerSymbol2); 1712var lookupSymbols = model.LookupSymbols(exprSyntaxToBind.SpanStart, name: "x"); 1747var lookupSymbols = model.LookupSymbols(exprSyntaxToBind.SpanStart, name: "value"); 1851var parameters = method.Parameters; 2846var candidates = symbolInfo.CandidateSymbols; 2877var candidates = symbolInfo.CandidateSymbols; 2937var candidates = symbolInfo.CandidateSymbols; 2970var candidates = symbolInfo.CandidateSymbols; 3029var candidates = symbolInfo.CandidateSymbols; 3062var candidates = symbolInfo.CandidateSymbols; 3103var candidates = symbolInfo.CandidateSymbols; 3136var candidates = symbolInfo.CandidateSymbols; 3177var candidates = symbolInfo.CandidateSymbols; 3210var candidates = symbolInfo.CandidateSymbols; 3253var memberGroup = model.GetMemberGroup(expr); 5783var errs = model.GetDiagnostics(); 5893var diag = comp.GetDiagnostics();
Compilation\IndexedProperties_BindingTests.cs (3)
150var methodGroup = model.GetMemberGroup(expr); 153var indexerGroup = model.GetIndexerGroup(expr); 169var actual_lookupSymbols = model.LookupSymbols(position);
Compilation\ReferenceManagerTests.cs (6)
878var refs = compilation.ExternalReferences; 885var dirRefs = compilation.DirectiveReferences; 1246public override ImmutableArray<PortableExecutableReference> ResolveReference(string reference, string baseFilePath, MetadataReferenceProperties properties) 1259return ImmutableArray<PortableExecutableReference>.Empty; 1284var dirRefs = c1.DirectiveReferences; 1305public override ImmutableArray<PortableExecutableReference> ResolveReference(string reference, string baseFilePath, MetadataReferenceProperties properties)
Compilation\SemanticModelAPITests.cs (4)
486var errs = comp.GetSemanticModel(tree).GetDeclarationDiagnostics(); 518var errs = comp.GetSemanticModel(partial1Tree).GetDiagnostics(); 2051var candidates = symbolInfo.CandidateSymbols; 3821var memberGroup = model.GetMemberGroup(callSyntax.Expression);
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (34)
1058var symbols = model.LookupSymbols(memberDecl.SpanStart, null, "DateTime"); 1088var symbols = model.LookupSymbols(methodDecl.SpanStart, null, "B"); 1129var symbols = model.LookupSymbols(positionInB, name: "Z"); 1178var symbols = model.LookupNamespacesAndTypes(localDecl.SpanStart, name: "B"); 1385var symbolsInC = model.LookupSymbols(positionInC); 1438var symbols = model.LookupSymbols(methodDecl.SpanStart, paramSymbol.Type); 1559var symbols = model.LookupSymbols(constraintStart, null, name: name); 1598var symbols = model.LookupNamespacesAndTypes(someMemberInC.SpanStart); 1670var symbols = model.LookupStaticMembers(someMemberInC.SpanStart, container: symbolC); 1819var symbols = model.LookupSymbols(methodStart, null, name: "E", includeReducedExtensionMethods: true); 1875var symbols = model.LookupSymbols(methodStart, null, name: "a"); 1938var symbols = model.LookupSymbols(position, container: null, name: "F", includeReducedExtensionMethods: true); 2012var symbols = model.LookupSymbols(methodStart, null, name: "o"); 2024private static void CheckSymbols(ImmutableArray<ISymbol> symbols, params string[] descriptions) 2029private static void CheckSymbolsUnordered(ImmutableArray<ISymbol> symbols, params string[] descriptions) 2056var symbols = model.LookupNamespacesAndTypes(someStatementInM.SpanStart, name: ""); 2080var symbols = model.LookupSymbols(position, name: "a"); 2167Func<int, INamespaceOrTypeSymbol, string, bool, ImmutableArray<ISymbol>> lookupAttributeTypeWithQualifier = (pos, qualifierOpt, name, isVerbatim) => 2186Func<int, string, bool, ImmutableArray<ISymbol>> lookupAttributeType = (pos, name, isVerbatim) => 2190var symbols = lookupAttributeType(position, "Description", false); 2211var qnSymbols = model.LookupNamespacesAndTypes(position2, name: "InvalidWithoutSuffix"); 2972var mems = sym1.GetMembers("M"); 2991var mems2 = sym3.GetMembers("M"); 3047var mems = ns1.GetMembers("Test"); 3789var diagnostics = model.GetDiagnostics(); 3807var diagnostics = model.GetDiagnostics(); 3826var diagnostics = model.GetDiagnostics(); 4446var lookupSymbols = model.LookupSymbols(conversionDecl.DescendantNodes().OfType<ReturnStatementSyntax>().Single().SpanStart, name: WellKnownMemberNames.ImplicitConversionName); 4477var lookupSymbols = model.LookupSymbols(conversionDecl.DescendantNodes().OfType<ReturnStatementSyntax>().Single().SpanStart, name: WellKnownMemberNames.ExplicitConversionName); 4508var lookupSymbols = model.LookupSymbols(operatorDecl.DescendantNodes().OfType<ReturnStatementSyntax>().Single().SpanStart, name: WellKnownMemberNames.AdditionOperatorName); 4540var symbols = model.LookupSymbols(position, name: "Alias"); 4577var symbols = model.LookupSymbols(position, name: "Alias"); 5177var symbols = model.LookupStaticMembers(methodDeclM.Body.SpanStart); 5207var symbols = model.LookupStaticMembers(node.SpanStart);
Compilation\SemanticModelGetSemanticInfoTests.cs (4)
1116var symbols = model.GetMemberGroup(expr); 14802var memberGroup = model.GetMemberGroup(creation.Type); 14898var memberGroup = model.GetMemberGroup(creation.Type); 15009var memberGroup = model.GetMemberGroup(creation.Type);
Compilation\UsedAssembliesTests.cs (15)
93var used = comp.GetUsedAssemblyReferences(); 279var diagnostics = comp.GetDiagnostics(); 287private ImmutableArray<MetadataReference> CompileWithUsedAssemblyReferences(string source, TargetFramework targetFramework, params MetadataReference[] references) 292private ImmutableArray<MetadataReference> CompileWithUsedAssemblyReferences(string source, TargetFramework targetFramework, CSharpCompilationOptions options, params MetadataReference[] references) 304private ImmutableArray<MetadataReference> CompileWithUsedAssemblyReferences(Compilation comp, string expectedOutput = null, MetadataReference[] specificReferencesToAssert = null) 306ImmutableArray<MetadataReference> result = default; 310var currentResult = compileWithUsedAssemblyReferences(c.comp, expectedOutput, specificReferencesToAssert); 324ImmutableArray<MetadataReference> compileWithUsedAssemblyReferences(Compilation comp, string expectedOutput = null, MetadataReference[] specificReferencesToAssert = null) 326var used = comp.GetUsedAssemblyReferences(); 351private ImmutableArray<MetadataReference> CompileWithUsedAssemblyReferences(string source, params MetadataReference[] references) 641var used = comp2.GetUsedAssemblyReferences(); 2330var used = comp.GetUsedAssemblyReferences(); 3541var used = c.comp.GetUsedAssemblyReferences(); 4178var used = CompileWithUsedAssemblyReferences(@" 5783var used = CompileWithUsedAssemblyReferences(source2, comp0RefWithAlias, comp1RefWithAlias);
DocumentationComments\CrefTests.cs (11)
1209var actualCandidates = GetReferencedSymbols(crefSyntax, compilation, out actualWinner, 1383var actualCandidates = GetReferencedSymbols(crefSyntax, compilation, out actualWinner, 1662var actualCandidates = GetReferencedSymbols(crefSyntax, compilation, out actualWinner, 1700var actualCandidates = GetReferencedSymbols(crefSyntax, compilation, out actualWinner, 1873var symbols = GetReferencedSymbols(crefSyntax, compilation, out actualSymbol, 2005var actualCandidates = GetReferencedSymbols(crefSyntax, compilation, out actualWinner, 6053var members = model.LookupSymbols(typeParameterSyntax.SpanStart, (ITypeSymbol)typeParameterSymbol); 6077var members = model.LookupSymbols(methodNameSyntax.SpanStart, ((IMethodSymbol)methodSymbol).ReturnType); 6626var references = GetReferencedSymbols(crefSyntax, compilation, out ambiguityWinner, expectedDiagnostics); 6633private static ImmutableArray<Symbol> GetReferencedSymbols(CrefSyntax crefSyntax, CSharpCompilation compilation, out Symbol ambiguityWinner, params DiagnosticDescription[] expectedDiagnostics) 6639var references = binder.BindCref(crefSyntax, out ambiguityWinner, diagnostics);
SymbolDisplay\SymbolDisplayTests.cs (12)
2185var parts = SymbolDisplay.ToDisplayParts(prop, format); 2258var parts = SymbolDisplay.ToDisplayParts(prop, format); 2286var parts = SymbolDisplay.ToDisplayParts(goo, format); 3622var description = symbol.ToDisplayParts(format); 3627private static void Verify(ImmutableArray<SymbolDisplayPart> actualParts, string expectedText, params SymbolDisplayPartKind[] expectedKinds) 4848var parts = Microsoft.CodeAnalysis.CSharp.SymbolDisplay.ToDisplayParts(goo, format); 5383var description = symbol.ToDisplayParts(format); 7176var members = semanticModel.GetDeclaredSymbol(declaration).GetMembers(); 7248var members = semanticModel.GetDeclaredSymbol(declaration).GetMembers(); 7508var members = semanticModel.GetDeclaredSymbol(declaration).GetMembers(); 7661var members = semanticModel.GetDeclaredSymbol(declaration).GetMembers(); 9037var displayParts = preprocessingSymbol.ToDisplayParts(format);
Symbols\AnonymousTypesSymbolTests.cs (3)
235private void TestAnonymousTypeFieldSymbols_InQuery(ImmutableArray<byte> image) 1147var actual = symbol.GetAttributes(); 1650var mems = info.Type.GetMembers();
Symbols\AssemblyAndNamespaceTests.cs (2)
218var constituents = ns.ConstituentNamespaces; 266var constituents = ns.ConstituentNamespaces;
Symbols\CompilationCreationTests.cs (6)
37ImmutableArray<SyntaxTree> actualSyntaxTrees = compilation.SyntaxTrees; 2314var params3 = retval3.TypeParameters; 2599var matchingSym = current.GetMembers(name); 2647public override ImmutableArray<PortableExecutableReference> ResolveReference(string reference, string baseFilePath, MetadataReferenceProperties properties) 2666return ImmutableArray<PortableExecutableReference>.Empty; 2761public override ImmutableArray<PortableExecutableReference> ResolveReference(string reference, string baseFilePath, MetadataReferenceProperties properties)
Symbols\ConversionTests.cs (4)
790var diagnostics = compilation.GetDiagnostics(); 810var diagnostics = compilation.GetDiagnostics(); 856var diagnostics = compilation.GetDiagnostics(); 878var diagnostics = compilation.GetDiagnostics();
Symbols\CovariantReturnTests.cs (1)
674var attrs = method.GetAttributes("System.Runtime.CompilerServices", "PreserveBaseOverridesAttribute");
Symbols\CustomModifiersTests.cs (1)
140var modifiers = type.GetTypeArgumentCustomModifiers(1);
Symbols\DefaultInterfaceImplementationTests.cs (2)
6039var indexers = i1.GetMembers("this[]"); 62581var publicKeyToken = assemblyIdentity.PublicKeyToken;
Symbols\DestructorTests.cs (1)
420var lookupSymbols = model.LookupSymbols(finalizeSyntax.SpanStart, name: WellKnownMemberNames.DestructorName);
Symbols\ErrorTypeSymbolTests.cs (1)
68var allTypes = compilation.GlobalNamespace.GetTypeMembers();
Symbols\ExtensionMethodTests.cs (3)
2563ImmutableArray<TypeWithAnnotations> typeArgs, 2954var lookupResult = model.LookupSymbols( 2970var memberGroup = model.GetMemberGroup(memberAccess);
Symbols\FunctionPointerTypeSymbolTests.cs (53)
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, 2042(FunctionPointerTypeSymbol NoRef, FunctionPointerTypeSymbol ByRef) createTypeSymbol(ImmutableArray<CustomModifier> customModifiers, CallingConvention callingConvention = CallingConvention.Unmanaged) 2048parameterTypes: ImmutableArray<TypeWithAnnotations>.Empty, 2050parameterRefKinds: ImmutableArray<RefKind>.Empty, 2057parameterTypes: ImmutableArray<TypeWithAnnotations>.Empty, 2059parameterRefKinds: ImmutableArray<RefKind>.Empty, 2109(FunctionPointerTypeSymbol NoRef, FunctionPointerTypeSymbol ByRef) createTypeSymbol(ImmutableArray<CustomModifier> customModifiers, CallingConvention callingConvention = CallingConvention.Unmanaged) 2115parameterTypes: ImmutableArray<TypeWithAnnotations>.Empty, 2117parameterRefKinds: ImmutableArray<RefKind>.Empty, 2124parameterTypes: ImmutableArray<TypeWithAnnotations>.Empty, 2126parameterRefKinds: ImmutableArray<RefKind>.Empty, 2168(FunctionPointerTypeSymbol NoRef, FunctionPointerTypeSymbol ByRef) createTypeSymbol(ImmutableArray<CustomModifier> typeCustomModifiers, ImmutableArray<CustomModifier> refCustomModifiers, CallingConvention callingConvention = CallingConvention.Unmanaged) 2174parameterTypes: ImmutableArray<TypeWithAnnotations>.Empty, 2176parameterRefKinds: ImmutableArray<RefKind>.Empty, 2183parameterTypes: ImmutableArray<TypeWithAnnotations>.Empty, 2185parameterRefKinds: ImmutableArray<RefKind>.Empty,
Symbols\IndexerTests.cs (2)
211private static void CheckParameters(ImmutableArray<ParameterSymbol> parameters, SpecialType[] expectedTypes) 2643var indexerGroup = model.GetIndexerGroup(syntax);
Symbols\LookupSymbolsInfoTests.cs (1)
96var symbols = model.LookupSymbols(0, null, symbolName);
Symbols\Metadata\MetadataMemberTests.cs (2)
197var members = class1.GetMembers("StrongNameSignatureGeneration"); 248var members = class1.GetMembers("StrongNameSignatureGeneration");
Symbols\Metadata\PE\BaseTypeResolution.cs (6)
62var collections = ((NamespaceSymbol)sys[0]).GetMembers("Collections"); 63var generic = ((NamespaceSymbol)collections[0]).GetMembers("Generic"); 64var dictionary = ((NamespaceSymbol)generic[0]).GetMembers("Dictionary"); 70var concurrent = ((NamespaceSymbol)collections[0]).GetMembers("Concurrent"); 72var orderablePartitioners = ((NamespaceSymbol)concurrent[0]).GetMembers("OrderablePartitioner"); 91var partitioners = ((NamespaceSymbol)concurrent[0]).GetMembers("Partitioner");
Symbols\Metadata\PE\LoadingAttributes.cs (4)
598var attrs = asm.GetAttributes(); 849var atts = ibar.GetAttributes(); 1050var mctors = attrObj1.Constructors; 1233var mems = type01.GetMembers("GenericUriParserOptions");
Symbols\Metadata\PE\LoadingMethods.cs (2)
430var explicitImpls = classMethod.ExplicitInterfaceImplementations; 555var explicitImpls = classMethod.ExplicitInterfaceImplementations;
Symbols\Metadata\PE\LoadingNamespacesAndTypes.cs (6)
73var children = n.GetMembers(); 251var collectionsArray = ((NamespaceSymbol)sys[0]).GetMembers("CollectionS"); 262var enumerable = collections.GetMembers("IEnumerable"); 266var generic = collections.GetMembers("Generic"); 270var dictionaryArray = ((NamespaceSymbol)generic[0]).GetMembers("Dictionary"); 283var valueCollection = dictionary.GetTypeMembers("ValueCollection");
Symbols\Metadata\PE\LoadingProperties.cs (5)
264var implementedByProperty1 = ImmutableArray.Create<PropertySymbol>(interfaceProperty1, interfaceProperty4, interfaceProperty5); 269var implementedByGetter1 = ImmutableArray.Create<MethodSymbol>(interfaceProperty1.GetMethod, interfaceProperty2.GetMethod, interfaceProperty4.GetMethod); 272var implementedBySetter1 = ImmutableArray.Create<MethodSymbol>(interfaceProperty1.SetMethod, interfaceProperty3.SetMethod, interfaceProperty5.SetMethod); 275var implementedByGetter2 = ImmutableArray.Create<MethodSymbol>(interfaceProperty3.GetMethod); 278var implementedBySetter2 = ImmutableArray.Create<MethodSymbol>(interfaceProperty2.SetMethod);
Symbols\Metadata\PE\NoPia.cs (2)
78ImmutableArray<ParameterSymbol> param; 419ImmutableArray<ParameterSymbol> param;
Symbols\Metadata\PE\NoPiaLocalHideAndTypeSubstitutionTests.cs (4)
43ImmutableArray<ParameterSymbol> param = methodSymbol.Parameters; 140ImmutableArray<ParameterSymbol> param = refMethodSymbol.Parameters; 200ImmutableArray<ParameterSymbol> param = refMethodSymbol.Parameters; 371ImmutableArray<ParameterSymbol> param = refMethodSymbol.Parameters;
Symbols\MockAssemblySymbol.cs (10)
33internal override ImmutableArray<byte> PublicKey 43public override ImmutableArray<ModuleSymbol> Modules 48public override ImmutableArray<Location> Locations 58internal override ImmutableArray<AssemblySymbol> GetNoPiaResolutionAssemblies() 60return default(ImmutableArray<AssemblySymbol>); 63internal override ImmutableArray<AssemblySymbol> GetLinkedReferencedAssemblies() 65return default(ImmutableArray<AssemblySymbol>); 77internal override void SetLinkedReferencedAssemblies(ImmutableArray<AssemblySymbol> assemblies) 82internal override void SetNoPiaResolutionAssemblies(ImmutableArray<AssemblySymbol> assemblies) 92internal override IEnumerable<ImmutableArray<byte>> GetInternalsVisibleToPublicKeys(string simpleName)
Symbols\MockNamedTypeSymbol.cs (16)
50public override ImmutableArray<TypeParameterSymbol> TypeParameters 58internal override ImmutableArray<TypeWithAnnotations> TypeArgumentsWithAnnotationsNoUseSiteDiagnostics 97public override ImmutableArray<Symbol> GetMembers() 107public override ImmutableArray<Symbol> GetMembers(string name) 114internal override ImmutableArray<Symbol> GetEarlyAttributeDecodingMembers() 119internal override ImmutableArray<Symbol> GetEarlyAttributeDecodingMembers(string name) 124public override ImmutableArray<NamedTypeSymbol> GetTypeMembers() 131public override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name, int arity) 138public override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name) 160public override ImmutableArray<Location> Locations 165public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 246internal override ImmutableArray<NamedTypeSymbol> InterfacesNoUseSiteDiagnostics(ConsList<TypeSymbol> basesBeingResolved) 251internal override ImmutableArray<NamedTypeSymbol> GetInterfacesToEmit() 261internal override ImmutableArray<NamedTypeSymbol> GetDeclaredInterfaces(ConsList<TypeSymbol> basesBeingResolved) 318internal override ImmutableArray<string> GetAppliedConditionalSymbols() 320return ImmutableArray<string>.Empty;
Symbols\MockNamespaceSymbol.cs (6)
50public override ImmutableArray<Symbol> GetMembers() 55public override ImmutableArray<Symbol> GetMembers(ReadOnlyMemory<char> name) 60public override ImmutableArray<NamedTypeSymbol> GetTypeMembers() 67public override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name) 90public override ImmutableArray<Location> Locations 98public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
Symbols\OverriddenOrHiddenMembersTests.cs (2)
84var ofD = ImmutableArray.Create<TypeSymbol>(D); 98var ofV = ImmutableArray.Create<TypeSymbol>(D_MofV.TypeParameters[0]);
Symbols\Retargeting\NoPia.cs (3)
388ImmutableArray<ParameterSymbol> param; 689ImmutableArray<ParameterSymbol> param; 993ImmutableArray<ParameterSymbol> param;
Symbols\Retargeting\RetargetExplicitInterfaceImplementation.cs (1)
349var d = comp1.GetDiagnostics();
Symbols\Retargeting\RetargetingTests.cs (5)
696private void CheckParameters(ImmutableArray<ParameterSymbol> source, ImmutableArray<ParameterSymbol> retargeting) 910static TypeSymbol getModifierTypeSymbol(ImmutableArray<CustomModifier> modifiers) 1200public void CheckSymbols<T>(ImmutableArray<T> a, ImmutableArray<T> b, bool recurse)
Symbols\Source\AccessTests.cs (3)
32var errs = comp.GetSemanticModel(tree).GetDeclarationDiagnostics(); 74var errs = comp.GetSemanticModel(tree).GetDeclarationDiagnostics(); 97var errs = comp.GetSemanticModel(tree).GetDeclarationDiagnostics();
Symbols\Source\BaseClassTests.cs (6)
162var diagnostics = comp.GetDeclarationDiagnostics(); 189var diagnostics = comp.GetDeclarationDiagnostics(); 275var members = model.LookupSymbols(positionInA, a, "Z"); 280var members2 = model.LookupSymbols(positionInA, a, "Q"); 312var members = model.LookupSymbols(positionInA, a, "Q"); 1496var diags = comp.GetDeclarationDiagnostics();
Symbols\Source\CustomModifierCopyTests.cs (1)
476private static void CheckCustomModifier(bool expectCustomModifier, ImmutableArray<CustomModifier> customModifiers)
Symbols\Source\DeclaringSyntaxNodeTests.cs (10)
23private ImmutableArray<SyntaxReference> CheckDeclaringSyntaxNodes(Compilation compilation, 27var declaringReferences = symbol.DeclaringSyntaxReferences; 52private ImmutableArray<SyntaxReference> CheckDeclaringSyntaxNodesIncludingParameters(Compilation compilation, 56var nodes = CheckDeclaringSyntaxNodes(compilation, symbol, expectedNumber); 77private ImmutableArray<SyntaxReference> CheckDeclaringSyntaxNodesWithoutGetDeclaredSymbol(Compilation compilation, 82var declaringReferences = symbol.DeclaringSyntaxReferences; 115var declaringReferences = symbol.DeclaringSyntaxReferences; 161var nodes = CheckDeclaringSyntaxNodesWithoutGetDeclaredSymbol(comp, sym, 1, node.Kind()); 195var types = n1.GetTypeMembers(); 360var members = symbol.GetMembers(member.Name);
Symbols\Source\DelegateTests.cs (18)
74var tmp = d.GetMembers(); 88var diags = comp.GetDeclarationDiagnostics(); 92var d = global.GetTypeMembers("D", 0); 341ImmutableArray<ParameterSymbol> invokeParameters = invoke.Parameters; 348ImmutableArray<ParameterSymbol> beginInvokeParameters = beginInvoke.Parameters; 357ImmutableArray<ParameterSymbol> endInvokeParameters = endInvoke.Parameters; 395ImmutableArray<ParameterSymbol> invokeParameters = invoke.Parameters; 400ImmutableArray<ParameterSymbol> beginInvokeParameters = beginInvoke.Parameters; 407ImmutableArray<ParameterSymbol> endInvokeParameters = endInvoke.Parameters; 426ImmutableArray<ParameterSymbol> invokeParameters = invoke.Parameters; 431ImmutableArray<ParameterSymbol> beginInvokeParameters = beginInvoke.Parameters; 438ImmutableArray<ParameterSymbol> endInvokeParameters = endInvoke.Parameters; 457ImmutableArray<ParameterSymbol> invokeParameters = invoke.Parameters; 463ImmutableArray<ParameterSymbol> beginInvokeParameters = beginInvoke.Parameters; 471ImmutableArray<ParameterSymbol> endInvokeParameters = endInvoke.Parameters; 491ImmutableArray<ParameterSymbol> invokeParameters = invoke.Parameters; 497ImmutableArray<ParameterSymbol> beginInvokeParameters = beginInvoke.Parameters; 505ImmutableArray<ParameterSymbol> endInvokeParameters = endInvoke.Parameters;
Symbols\Source\EnumTests.cs (2)
957var diagnostics = model.GetDeclarationDiagnostics(); 1034var members = currentContainer.GetMembers(name);
Symbols\Source\FieldTests.cs (3)
95var gs = a.GetMembers("G"); 102var errors = comp.GetDeclarationDiagnostics(); 120var fs = a.GetMembers("F");
Symbols\Source\FileModifierTests.cs (8)
839ImmutableArray<string>.Empty, 3652var symbols = model.LookupSymbols(body.OpenBraceToken.EndPosition, name: "C"); 3724var symbols = model.LookupSymbols(body.OpenBraceToken.EndPosition, name: "C"); 3783var symbols = speculativeModel.LookupSymbols(newBody.OpenBraceToken.EndPosition, name: "C"); 3825var symbols = speculativeModel.LookupSymbols(newBody.OpenBraceToken.EndPosition, name: "C"); 4287var types = comp.GetTypesByMetadataName(metadataName); 4316var types = comp.GetTypesByMetadataName(metadataName); 4343var types = comp.GetTypesByMetadataName($"<SomeFile>F{checksum}__C");
Symbols\Source\IndexedTypeParameterTests.cs (4)
21var zero = IndexedTypeParameterSymbol.TakeSymbols(0); 24var five = IndexedTypeParameterSymbol.TakeSymbols(5); 32var fifty = IndexedTypeParameterSymbol.TakeSymbols(50); 39var fiveHundred = IndexedTypeParameterSymbol.TakeSymbols(500);
Symbols\Source\MethodTests.cs (16)
71var ctors = a.InstanceConstructors; // Note, this only returns *instance* constructors. 212var m = a.GetMembers("M"); 427var members = classTest.GetMembers(); 522var mems = classImpl.GetMembers("M"); 591var mems = type1.GetMembers(); 784var mems = type1.GetMembers(); 963var mems = type1.GetMembers(); 1072var mems = type1.GetMembers(); 1174var mems = type1.GetMembers(); 1267var mems = type1.GetMembers(); 1327var members = derivedClass.GetMembers(); 1362var classBMethodMTypeParameters = classBMethodM.TypeParameters; 1366var classBMethodMParameters = classBMethodM.Parameters; 1385var classCBaseMethodMTypeParameters = classCBaseMethodM.TypeParameters; 1389var classCBaseMethodMParameters = classCBaseMethodM.Parameters; 1567var members = test.GetMembers("M1");
Symbols\Source\ModifierTests.cs (1)
153var customModifiers = ImmutableArray.Create(CSharpCustomModifier.CreateOptional(intType));
Symbols\Source\NullablePublicAPITests.cs (4)
1155public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(s_descriptor1, s_descriptor2); 1781public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 4122var lookupResults = model.LookupSymbols(position); 4837public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics
Symbols\Source\PropertyTests.cs (8)
395var mems = type01.GetMembers(); 518var actualErrors = compilation.GetDiagnostics(); 623var actualErrors = compilation.GetDiagnostics(); 1654var diagnostics = comp.GetDiagnostics(); 1691var diagnostics = comp.GetDiagnostics(); 1726var diagnostics = comp.GetDiagnostics(); 1925var xs = a.GetMembers("X"); 1932var errors = comp.GetDeclarationDiagnostics();
Symbols\Source\SourcePlusMetadataTests.cs (10)
140var members1 = ns.GetMembers("Name1"); 141var types1 = ns.GetTypeMembers("Name1"); 145var members2 = ns.GetMembers("Name2"); 146var types2 = ns.GetTypeMembers("Name2"); 150var members3 = ns.GetMembers("Name3"); 151var types3 = ns.GetTypeMembers("Name3"); 155var members4 = ns.GetMembers("Name4"); 156var types4 = ns.GetTypeMembers("Name4"); 160var members5 = ns.GetMembers("Name5"); 161var types5 = ns.GetTypeMembers("Name5");
Symbols\Source\TypeMapTests.cs (1)
92private static NamedTypeSymbol DeepConstruct(NamedTypeSymbol type, ImmutableArray<TypeSymbol> typeArguments)
Symbols\Source\UsingAliasTests.cs (3)
486var symbols = model.LookupSymbols(root.Members[0].SpanStart, name: "O"); 507var symbols = model.LookupSymbols(root.Members[0].SpanStart, name: "O"); 667var discarded = comp.GetDiagnostics();
Symbols\StaticAbstractMembersInInterfacesTests.cs (6)
31640var bM1Impl = ((MethodSymbol)bM1).ExplicitInterfaceImplementations; 31641var bM2Impl = ((MethodSymbol)bM2).ExplicitInterfaceImplementations; 31738var dM1Impl = ((MethodSymbol)dM1).ExplicitInterfaceImplementations; 31739var dM2Impl = ((MethodSymbol)dM2).ExplicitInterfaceImplementations; 31809var dM1Impl = ((MethodSymbol)dM1).ExplicitInterfaceImplementations; 31810var dM2Impl = ((MethodSymbol)dM2).ExplicitInterfaceImplementations;
Symbols\SymbolDistinguisherTests.cs (1)
744var diagnostics = compilation2.GetDiagnostics();
Symbols\SymbolErrorTests.cs (3)
1574var ns = classA.GetMembers("n"); 7128ImmutableArray<Byte> ilBytes; 7197ImmutableArray<Byte> ilBytes;
Symbols\TypeTests.cs (9)
510var paramList = (method as MethodSymbol).Parameters; 1018var actualSymbols = typeSym.GetMembers(); 1064var mems = type1.GetMembers(); 1082var mems = ns2.GetMembers(); 1104var mems = type1.GetMembers(); 1680var localvars = model.AnalyzeDataFlow(mnode.Body).VariablesDeclared; 1702var paras = ((INamedTypeSymbol)memType).DelegateInvokeMethod.Parameters; 2463var typeMembers = namedType.GetMembers(); 2629var typeMembers = namedType.GetMembers();
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (248)
Diagnostics\DiagnosticTest.cs (2)
148var actualErrors = comp.GetDiagnostics(); 2925var doublemap = parse("/pathmap:/temp=/goo,/temp/=/bar", "a.cs").PathMap;
Diagnostics\LineSpanDirectiveTests.cs (19)
44var actualLineMappings = GetLineMappings(treeB); 52var statements = GetStatementsAndExpressionBodies(treeB); 90var actualLineMappings = GetLineMappings(treeB); 98var statements = GetStatementsAndExpressionBodies(treeB); 144var actualLineMappings = GetLineMappings(tree); 186var actualLineMappings = GetLineMappings(treeB); 194var statements = GetStatementsAndExpressionBodies(treeB); 236var actualLineMappings = GetLineMappings(treeB); 246var actualVisibility = textB.Lines.Select(line => treeB.GetLineVisibility(line.Start)).ToImmutableArray(); 264var statements = GetStatementsAndExpressionBodies(treeB); 304var actualLineMappings = GetLineMappings(treeB); 313var statements = GetStatementsAndExpressionBodies(treeB); 356var actualLineMappings = GetLineMappings(treeB); 365var statements = GetStatementsAndExpressionBodies(treeB); 414var actualLineMappings = GetLineMappings(treeB); 426var statements = GetStatementsAndExpressionBodies(treeB); 440private static ImmutableArray<SyntaxNode> GetStatementsAndExpressionBodies(SyntaxTree tree) 461private static ImmutableArray<string> GetLineMappings(SyntaxTree tree) 572var actualLineMappings = GetLineMappings(tree);
Diagnostics\LocationsTests.cs (1)
25: base(ImmutableArray<string>.Empty, null)
IncrementalParsing\IncrementalParsingTests.cs (21)
55var diffs = SyntaxDifferences.GetRebuiltNodes(oldTree, newTree); 82var diffs = SyntaxDifferences.GetRebuiltNodes(oldTree, newTree); 103var diffs = SyntaxDifferences.GetRebuiltNodes(oldTree, newTree); 113private static void TestDiffsInOrder(ImmutableArray<SyntaxNodeOrToken> diffs, params SyntaxKind[] kinds) 139var diffs = SyntaxDifferences.GetRebuiltNodes(oldTree, newTree); 156var diffs = SyntaxDifferences.GetRebuiltNodes(oldTree, newTree); 172var diffs = SyntaxDifferences.GetRebuiltNodes(oldTree, newTree); 190var diffs = SyntaxDifferences.GetRebuiltNodes(oldTree, newTree); 208var diffs = SyntaxDifferences.GetRebuiltNodes(oldTree, newTree); 224var diffs = SyntaxDifferences.GetRebuiltNodes(oldTree, newTree); 246var diffs = SyntaxDifferences.GetRebuiltNodes(oldTree, newTree); 268var diffs = SyntaxDifferences.GetRebuiltNodes(oldTree, newTree); 292var diffs = SyntaxDifferences.GetRebuiltNodes(oldTree, newTree); 317var diffs = SyntaxDifferences.GetRebuiltNodes(oldTree, newTree); 336var diffs = SyntaxDifferences.GetRebuiltNodes(oldTree, newTree); 365var errors = newTree.GetCompilationUnitRoot().Errors(); 375var diffs = SyntaxDifferences.GetRebuiltNodes(oldTree, newTree); 399var errors = oldTree.GetCompilationUnitRoot().Errors(); 419var diffs = SyntaxDifferences.GetRebuiltNodes(oldTree, newTree); 439var diffs = SyntaxDifferences.GetRebuiltNodes(oldTree, newTree); 463var diffs = SyntaxDifferences.GetRebuiltNodes(oldTree, newTree);
IncrementalParsing\SyntaxDifferences.cs (1)
23public static ImmutableArray<SyntaxNodeOrToken> GetRebuiltNodes(SyntaxTree oldTree, SyntaxTree newTree)
LexicalAndXml\LexicalTests.cs (178)
111var errors = token.Errors(); 130var errors = token.Errors(); 149var errors = token.Errors(); 168var errors = token.Errors(); 189var errors = token.Errors(); 211var errors = token.Errors(); 233var errors = token.Errors(); 251var errors = token.Errors(); 271var errors = token.Errors(); 295var errors = token.Errors(); 319var errors = token.Errors(); 339var errors = token.Errors(); 361var errors = token.Errors(); 383var errors = token.Errors(); 405var errors = token.Errors(); 426var errors = token.Errors(); 453var errors = token.Errors(); 480var errors = token.Errors(); 514var errors = token.Errors(); 542var errors = token.Errors(); 572var errors = token.Errors(); 599var errors = token.Errors(); 617var errors = token.Errors(); 632var errors = token.Errors(); 647var errors = token.Errors(); 662var errors = token.Errors(); 677var errors = token.Errors(); 692var errors = token.Errors(); 707var errors = token.Errors(); 722var errors = token.Errors(); 739var errors = token.Errors(); 756var errors = token.Errors(); 773var errors = token.Errors(); 790var errors = token.Errors(); 807var errors = token.Errors(); 824var errors = token.Errors(); 846var errors = token.Errors(); 866var errors = token.Errors(); 887var errors = token.Errors(); 966var errors = token.Errors(); 981var errors = token.Errors(); 996var errors = token.Errors(); 1011var errors = token.Errors(); 1026var errors = token.Errors(); 1041var errors = token.Errors(); 1057var errors = token.Errors(); 1073var errors = token.Errors(); 1090var errors = token.Errors(); 1106var errors = token.Errors(); 1122var errors = token.Errors(); 1138var errors = token.Errors(); 1157var errors = token.Errors(); 1176var errors = token.Errors(); 1194var errors = token.Errors(); 1210var errors = token.Errors(); 1226var errors = token.Errors(); 1242var errors = token.Errors(); 1258var errors = token.Errors(); 1274var errors = token.Errors(); 1290var errors = token.Errors(); 1306var errors = token.Errors(); 1322var errors = token.Errors(); 1338var errors = token.Errors(); 1355var errors = token.Errors(); 1371var errors = token.Errors(); 1387var errors = token.Errors(); 1403var errors = token.Errors(); 1419var errors = token.Errors(); 1435var errors = token.Errors(); 1451var errors = token.Errors(); 1467var errors = token.Errors(); 1483var errors = token.Errors(); 1499var errors = token.Errors(); 1516var errors = token.Errors(); 1533var errors = token.Errors(); 1549var errors = token.Errors(); 1567var errors = token.Errors(); 1587var errors = token.Errors(); 1601var errors = token.Errors(); 1616var errors = token.Errors(); 1631var errors = token.Errors(); 1646var errors = token.Errors(); 1661var errors = token.Errors(); 1677var errors = token.Errors(); 1693var errors = token.Errors(); 1709var errors = token.Errors(); 1725var errors = token.Errors(); 1742var errors = token.Errors(); 1758var errors = token.Errors(); 1774var errors = token.Errors(); 1790var errors = token.Errors(); 1806var errors = token.Errors(); 1821var errors = token.Errors(); 1835var errors = token.Errors(); 1850var errors = token.Errors(); 1865var errors = token.Errors(); 1880var errors = token.Errors(); 1895var errors = token.Errors(); 1910var errors = token.Errors(); 1933var errors = token.Errors(); 1948var errors = token.Errors(); 1963var errors = token.Errors(); 1978var errors = token.Errors(); 1993var errors = token.Errors(); 2009var errors = token.Errors(); 2025var errors = token.Errors(); 2041var errors = token.Errors(); 2057var errors = token.Errors(); 2073var errors = token.Errors(); 2089var errors = token.Errors(); 2105var errors = token.Errors(); 2121var errors = token.Errors(); 2137var errors = token.Errors(); 2153var errors = token.Errors(); 2169var errors = token.Errors(); 2185var errors = token.Errors(); 2201var errors = token.Errors(); 2217var errors = token.Errors(); 2233var errors = token.ErrorsAndWarnings(); 2249var errors = token.Errors(); 2265var errors = token.Errors(); 2291var errors = token.Errors(); 2317var errors = token.Errors(); 2343var errors = token.Errors(); 2369var errors = token.Errors(); 2395var errors = token.Errors(); 2420var errors = token.Errors(); 2446var errors = token.Errors(); 2470var errors = token.Errors(); 2486var errors = token.Errors(); 2512var errors = token.Errors(); 2537var errors = token.Errors(); 2563var errors = token.Errors(); 2588var errors = token.Errors(); 2603var errors = token.Errors(); 2619var errors = token.Errors(); 2635var errors = token.Errors(); 2651var errors = token.Errors(); 2666var errors = token.Errors(); 2681var errors = token.Errors(); 2696var errors = token.Errors(); 2711var errors = token.Errors(); 2726var errors = token.Errors(); 2742var errors = token.Errors(); 2758var errors = token.Errors(); 2774var errors = token.Errors(); 2790var errors = token.Errors(); 2806var errors = token.Errors(); 2822var errors = token.Errors(); 2838var errors = token.Errors(); 2854var errors = token.Errors(); 2870var errors = token.Errors(); 2886var errors = token.Errors(); 2902var errors = token.Errors(); 2918var errors = token.Errors(); 2934var errors = token.Errors(); 2950var errors = token.Errors(); 2966var errors = token.Errors(); 2982var errors = token.Errors(); 2998var errors = token.Errors(); 3014var errors = token.Errors(); 3029var errors = token.Errors(); 3045var errors = token.Errors(); 3128var errors = token.Errors(); 3183var errors = token.Errors(); 3233var errors = token.Errors(); 3387var errors = token.Errors(); 3403var errors = token.Errors(); 3419var errors = token.Errors(); 3435var errors = token.Errors(); 3456var errors = token.Errors(); 3558var errors = token.Errors(); 3791var errors = token.Errors(); 3797var errors = token.Errors(); 3854var errors = trivia.Errors(); 3882var errors = trivia.Errors(); 3961var errors = trivia.Errors(); 4265var errors = trivia.Errors();
LexicalAndXml\PreprocessorTests.cs (1)
414var diags = node.ErrorsAndWarnings();
LexicalAndXml\RawStringLiteralLexingTests.cs (1)
183MarkupTestFile.GetSpans(markup, out var input, out IDictionary<string, ImmutableArray<TextSpan>> spans);
Parsing\CSharpParseOptionsTests.cs (1)
49Assert.Equal(0, CSharpParseOptions.Default.WithPreprocessorSymbols(ImmutableArray.Create<string>("A", "B")).WithPreprocessorSymbols(default(ImmutableArray<string>)).PreprocessorSymbols.Length);
Parsing\DeclarationParsingTests.cs (5)
105var errors = file.Errors(); 120var errors = file.Errors(); 135var errors = file.Errors(); 1152var errors = file.Errors(); 2369var errors = file.Errors();
Parsing\ParsingErrorRecoveryTests.cs (1)
4079var diags = file.ErrorsAndWarnings();
Parsing\ParsingTests.cs (2)
348var tokens = getLexedTokens(text); 369static ImmutableArray<Syntax.InternalSyntax.SyntaxToken> getLexedTokens(string text)
Parsing\StatementParsingTests.cs (1)
2125var diags = statement.ErrorsAndWarnings();
Parsing\SyntaxExtensions.cs (14)
27internal static ImmutableArray<DiagnosticInfo> Errors(this SyntaxNode node) 32internal static ImmutableArray<DiagnosticInfo> Warnings(this SyntaxNode node) 37internal static ImmutableArray<DiagnosticInfo> ErrorsAndWarnings(this SyntaxNode node) 54internal static ImmutableArray<DiagnosticInfo> Errors(this SyntaxToken token) 59internal static ImmutableArray<DiagnosticInfo> Warnings(this SyntaxToken token) 64internal static ImmutableArray<DiagnosticInfo> ErrorsAndWarnings(this SyntaxToken token) 71internal static ImmutableArray<DiagnosticInfo> Errors(this SyntaxNodeOrToken nodeOrToken) 76internal static ImmutableArray<DiagnosticInfo> Warnings(this SyntaxNodeOrToken nodeOrToken) 81internal static ImmutableArray<DiagnosticInfo> ErrorsAndWarnings(this SyntaxNodeOrToken nodeOrToken) 88internal static ImmutableArray<DiagnosticInfo> Errors(this SyntaxTrivia trivia) 93internal static ImmutableArray<DiagnosticInfo> Warnings(this SyntaxTrivia trivia) 98internal static ImmutableArray<DiagnosticInfo> ErrorsAndWarnings(this SyntaxTrivia trivia) 104private static ImmutableArray<DiagnosticInfo> ErrorsOrWarnings(this GreenNode node, bool errorsOnly) 119private static ImmutableArray<DiagnosticInfo> ErrorsAndWarnings(this GreenNode node)
Microsoft.CodeAnalysis.CSharp.Test.Utilities (95)
AttributeValidation.cs (1)
19var attributes = ((PEModuleSymbol)typeParameter.ContainingModule).GetCustomAttributesForToken(((PETypeParameterSymbol)typeParameter).Handle);
CompilationTestUtils.cs (9)
29internal static void CheckISymbols<TSymbol>(ImmutableArray<TSymbol> symbols, params string[] descriptions) 44internal static void CheckSymbols<TSymbol>(ImmutableArray<TSymbol> symbols, params string[] descriptions) 59public static void CheckSymbolsUnordered<TSymbol>(ImmutableArray<TSymbol> symbols, params string[] descriptions) 209public ImmutableArray<ISymbol> CandidateSymbols = ImmutableArray.Create<ISymbol>(); 218public ImmutableArray<ISymbol> MemberGroup = ImmutableArray.Create<ISymbol>(); 220public ImmutableArray<IMethodSymbol> MethodGroup 345var symbols = useBaseReferenceAccessibility 457var allAnnotations = getAnnotations(); 485ImmutableArray<(ExpressionSyntax Expression, string Text, bool IsConverted)> getAnnotations()
CSharpTestBase.cs (16)
1136var allReferences = TargetFrameworkUtil.GetReferences(targetFramework, references).Add(ilReference); 1329VerifyUsesOfNullability(createCompilationLambda().SourceModule.GlobalNamespace, expectedUsesOfNullable: ImmutableArray<string>.Empty); 1358var used = comp.GetUsedAssemblyReferences(); 1360var compileDiagnostics = comp.GetDiagnostics(); 1361var emitDiagnostics = comp.GetEmitDiagnostics(); 1399static void assertSubset(ImmutableArray<MetadataReference> used, IEnumerable<MetadataReference> resolvedReferences) 1411var trees = compilation.SyntaxTrees; 1420internal static void VerifyUsesOfNullability(Symbol symbol, ImmutableArray<string> expectedUsesOfNullable) 1474private static readonly ImmutableArray<MetadataReference> s_scriptRefs = ImmutableArray.Create(MscorlibRef_v4_0_30316_17626); 1785internal static IEnumerable<string> GetAttributeNames(ImmutableArray<SynthesizedAttributeData> attributes) 1790internal static IEnumerable<string> GetAttributeNames(ImmutableArray<CSharpAttributeData> attributes) 1795internal static IEnumerable<string> GetAttributeStrings(ImmutableArray<CSharpAttributeData> attributes) 1916ImmutableArray<ILVisualizer.LocalInfo> localDefinitions; 1921var localInfos = methodDecoder.DecodeLocalSignatureOrThrow(ref signatureReader); 1958private static ImmutableArray<ILVisualizer.LocalInfo> ToLocalDefinitions(ImmutableArray<LocalInfo<TypeSymbol>> localInfos, ILBuilder builder)
CSharpTestSource.cs (1)
85public static implicit operator CSharpTestSource(ImmutableArray<SyntaxTree> source) => new CSharpTestSource(source.ToArray());
DiagnosticExtensions.cs (1)
21public static void Verify(this ImmutableArray<DiagnosticInfo> actual, params DiagnosticDescription[] expected)
DiagnosticTestUtilities.cs (2)
48var actualErrors = comp.GetDiagnostics(); 86var actualErrors = comp.GetDiagnostics();
Extensions.cs (30)
147private static ImmutableArray<string> SplitMemberName(string name) 219public static ImmutableArray<T> GetMembers<T>(this Compilation compilation, string qualifiedName) where T : ISymbol 222public static ImmutableArray<Symbol> GetMembers(this Compilation compilation, string qualifiedName) 234private static ImmutableArray<Symbol> GetMembers(NamespaceOrTypeSymbol container, string qualifiedName, out NamespaceOrTypeSymbol lastContainer) 236var parts = SplitMemberName(qualifiedName); 257private static ImmutableArray<ISymbol> GetMembers(INamespaceOrTypeSymbol container, string qualifiedName, out INamespaceOrTypeSymbol lastContainer) 259var parts = SplitMemberName(qualifiedName); 283var members = GetMembers(container, qualifiedName, out lastContainer); 299var members = GetMembers(container, qualifiedName, out lastContainer); 419public static ImmutableArray<string> ToStrings(this ImmutableArray<CSharpAttributeData> attributes) 499var actArgs = namedType.TypeArguments(); 537private static bool AreEqual(ImmutableArray<TypedConstant> tc, object o) 594var propertyParameters = property.Parameters; 595var accessorParameters = accessor.Parameters; 674public static ImmutableArray<NamedTypeSymbol> Interfaces(this TypeSymbol symbol) 679public static ImmutableArray<NamedTypeSymbol> AllInterfaces(this TypeSymbol symbol) 684public static ImmutableArray<TypeSymbol> TypeArguments(this NamedTypeSymbol symbol) 689public static ImmutableArray<TypeSymbol> ConstraintTypes(this TypeParameterSymbol symbol) 694public static ImmutableArray<INamedTypeSymbol> AllEffectiveInterfacesNoUseSiteDiagnostics(this ITypeParameterSymbol symbol) 751public static ImmutableArray<IParameterSymbol> GetParameters(this ISymbol member) 760return ImmutableArray<IParameterSymbol>.Empty; 779ImmutableArray<string> elementNames = default, 780ImmutableArray<Location> elementLocations = default) 787ImmutableArray<TypeSymbol> elementTypes, 788ImmutableArray<string> elementNames = default, 789ImmutableArray<Location> elementLocations = default, 790ImmutableArray<Microsoft.CodeAnalysis.NullableAnnotation> elementNullableAnnotations = default) 934public static ImmutableArray<Symbol> BindCref(this Microsoft.CodeAnalysis.CSharp.Binder binder, CrefSyntax syntax, out Symbol ambiguityWinner, DiagnosticBag diagnostics) 937var result = binder.BindCref(syntax, out ambiguityWinner, bindingDiagnostics);
LifetimeAnnotationAttributesVisitor.cs (1)
75var parameters = method.Parameters;
LocalVariableDeclaratorsCollector.cs (1)
23internal static ImmutableArray<SyntaxNode> GetDeclarators(SourceMemberMethodSymbol method)
MockCSharpCompiler.cs (17)
19private readonly ImmutableArray<DiagnosticAnalyzer> _analyzers; 20private readonly ImmutableArray<ISourceGenerator> _generators; 21private readonly ImmutableArray<MetadataReference> _additionalReferences; 24internal ImmutableArray<(DiagnosticDescriptor Descriptor, DiagnosticDescriptorErrorLoggerInfo Info)> DescriptorsWithInfo; 27public MockCSharpCompiler(string responseFile, string workingDirectory, string[] args, ImmutableArray<DiagnosticAnalyzer> analyzers = default, ImmutableArray<ISourceGenerator> generators = default, AnalyzerAssemblyLoader loader = null, ImmutableArray<MetadataReference> additionalReferences = default) 32public MockCSharpCompiler(string responseFile, BuildPaths buildPaths, string[] args, ImmutableArray<DiagnosticAnalyzer> analyzers = default, ImmutableArray<ISourceGenerator> generators = default, AnalyzerAssemblyLoader loader = null, GeneratorDriverCache driverCache = null, ImmutableArray<MetadataReference> additionalReferences = default) 47out ImmutableArray<DiagnosticAnalyzer> analyzers, 48out ImmutableArray<ISourceGenerator> generators) 64out ImmutableArray<DiagnosticAnalyzer> analyzers, 65out ImmutableArray<ISourceGenerator> generators) 81ImmutableArray<AnalyzerConfigOptionsResult> syntaxDiagOptionsOpt, 95ImmutableArray<AdditionalText> additionalTextFiles, 102protected override void AddAnalyzerDescriptorsAndExecutionTime(ErrorLogger errorLogger, ImmutableArray<(DiagnosticDescriptor Descriptor, DiagnosticDescriptorErrorLoggerInfo Info)> descriptorsWithInfo, double totalAnalyzerExecutionTime)
NativeIntegerAttributesVisitor.cs (1)
39protected override CSharpAttributeData? GetTargetAttribute(ImmutableArray<CSharpAttributeData> attributes) =>
NullableAttributesVisitor.cs (3)
113private static CSharpAttributeData? GetNullableContextAttribute(ImmutableArray<CSharpAttributeData> attributes) => 116private static CSharpAttributeData? GetNullableAttribute(ImmutableArray<CSharpAttributeData> attributes) => 124protected override CSharpAttributeData GetTargetAttribute(ImmutableArray<CSharpAttributeData> attributes)
RequiredMemberAttributesVisitor.cs (1)
73protected override CSharpAttributeData? GetTargetAttribute(ImmutableArray<CSharpAttributeData> attributes)
TestAttributesVisitor.cs (5)
80private void VisitList<TSymbol>(ImmutableArray<TSymbol> symbols) where TSymbol : Symbol 164var arguments = attribute.ConstructorArguments.ToImmutableArray(); 175static void printValues(StringBuilder builder, ImmutableArray<TypedConstant> values) 204protected abstract CSharpAttributeData? GetTargetAttribute(ImmutableArray<CSharpAttributeData> attributes); 206protected static CSharpAttributeData? GetAttribute(ImmutableArray<CSharpAttributeData> attributes, string namespaceName, string name)
ThrowingMetadataReferenceResolver.cs (1)
31public override ImmutableArray<PortableExecutableReference> ResolveReference(string reference, string? baseFilePath, MetadataReferenceProperties properties)
UsesIsNullableVisitor.cs (5)
75private bool VisitList<TSymbol>(ImmutableArray<TSymbol> symbols) where TSymbol : Symbol 92private bool AddIfUsesIsNullable(Symbol symbol, ImmutableArray<ParameterSymbol> parameters, ConsList<TypeParameterSymbol> inProgress) 105private bool AddIfUsesIsNullable(Symbol symbol, ImmutableArray<TypeParameterSymbol> typeParameters, ConsList<TypeParameterSymbol> inProgress) 118private bool AddIfUsesIsNullable(Symbol symbol, ImmutableArray<NamedTypeSymbol> types, ConsList<TypeParameterSymbol> inProgress) 211private bool UsesIsNullable(ImmutableArray<TypeWithAnnotations> types, ConsList<TypeParameterSymbol> inProgress)
Microsoft.CodeAnalysis.CSharp.WinRT.UnitTests (1)
Metadata\WinMdDumpTest.cs (1)
221var attributes = symbol.GetAttributes();
Microsoft.CodeAnalysis.CSharp.Workspaces (188)
CaseCorrection\CSharpCaseCorrectionService.cs (1)
29ImmutableArray<TextSpan> spans,
Classification\SyntaxClassification\CSharpSyntaxClassificationService.cs (3)
23private static readonly ImmutableArray<ISyntaxClassifier> s_defaultSyntaxClassifiers = 33public override ImmutableArray<ISyntaxClassifier> GetDefaultSyntaxClassifiers() 39public override void AddSyntacticClassifications(SyntaxNode root, ImmutableArray<TextSpan> textSpans, SegmentedList<ClassifiedSpan> result, CancellationToken cancellationToken)
Classification\SyntaxClassification\DiscardSyntaxClassifier.cs (1)
18public override ImmutableArray<Type> SyntaxNodeTypes { get; } = [typeof(DiscardDesignationSyntax), typeof(DiscardPatternSyntax), typeof(ParameterSyntax), typeof(IdentifierNameSyntax)];
Classification\SyntaxClassification\FunctionPointerUnmanagedCallingConventionClassifier.cs (1)
19public override ImmutableArray<Type> SyntaxNodeTypes { get; } = [typeof(FunctionPointerUnmanagedCallingConventionSyntax)];
Classification\SyntaxClassification\NameSyntaxClassifier.cs (1)
36public override ImmutableArray<Type> SyntaxNodeTypes { get; } =
Classification\SyntaxClassification\OperatorOverloadSyntaxClassifier.cs (1)
18public override ImmutableArray<Type> SyntaxNodeTypes { get; } =
Classification\SyntaxClassification\SyntaxTokenClassifier.cs (1)
22public override ImmutableArray<int> SyntaxTokenKinds { get; } = [(int)SyntaxKind.LessThanToken];
Classification\SyntaxClassification\UsingDirectiveSyntaxClassifier.cs (1)
32public override ImmutableArray<Type> SyntaxNodeTypes { get; } = [typeof(UsingDirectiveSyntax)];
CodeCleanup\CSharpCodeCleanerService.cs (3)
14private static readonly ImmutableArray<ICodeCleanupProvider> s_defaultProviders = [new SimplificationCodeCleanupProvider(), new FormatCodeCleanupProvider()]; 16public override ImmutableArray<ICodeCleanupProvider> GetDefaultProviders() 19protected override ImmutableArray<TextSpan> GetSpansToAvoid(SyntaxNode root)
CodeGeneration\CSharpSyntaxGenerator.cs (5)
1222internal override ImmutableArray<SyntaxNode> GetTypeInheritance(SyntaxNode declaration) 1225: ImmutableArray<SyntaxNode>.Empty; 1264private static ImmutableArray<SyntaxNode> Flatten(IEnumerable<SyntaxNode> declarations) 1765ImmutableArray<ISymbol> explicitInterfaceImplementations, 1803private static ExplicitInterfaceSpecifierSyntax CreateExplicitInterfaceSpecifier(ImmutableArray<ISymbol> explicitInterfaceImplementations)
ExternalAccess\Pythia\Api\PythiaSymbolExtensions.cs (2)
23public static ImmutableArray<T> FilterToVisibleAndBrowsableSymbols<T>(this ImmutableArray<T> symbols, bool hideAdvancedMembers, Compilation compilation) where T : ISymbol
FindSymbols\CSharpDeclaredSymbolInfoFactoryService.cs (3)
46private static ImmutableArray<string> GetInheritanceNames(StringTable stringTable, BaseListSyntax baseList) 670UsingDirectiveSyntax usingDirectiveNode, out ImmutableArray<(string aliasName, string name)> aliases) 695private static bool TryGetSimpleTypeName(SyntaxNode node, ImmutableArray<string>? typeParameterNames, out string simpleTypeName, out bool isArray)
Formatting\CSharpSyntaxFormattingService.cs (8)
73public ImmutableArray<TextChange> GetFormattingChangesOnTypedCharacter( 81var formattingRules = GetFormattingRules(document, caretPosition, token); 123var changes = FormatRange(document, indentationOptions, token, formattingRules, cancellationToken); 146ParsedDocument document, IndentationOptions options, SyntaxToken token, ImmutableArray<AbstractFormattingRule> formattingRules, CancellationToken cancellationToken) 152private static ImmutableArray<TextChange> FormatRange( 156ImmutableArray<AbstractFormattingRule> formattingRules, 282private ImmutableArray<AbstractFormattingRule> GetFormattingRules(ParsedDocument document, int position, SyntaxToken tokenBeforeCaret) 293public ImmutableArray<TextChange> GetFormattingChangesOnPaste(ParsedDocument document, TextSpan textSpan, SyntaxFormattingOptions options, CancellationToken cancellationToken)
LanguageServices\FixAllSpanMappingService\CSharpFixAllSpanMappingService.cs (4)
28protected override async Task<ImmutableDictionary<Document, ImmutableArray<TextSpan>>> GetFixAllSpansIfWithinGlobalStatementAsync( 34return ImmutableDictionary<Document, ImmutableArray<TextSpan>>.Empty; 47return ImmutableDictionary<Document, ImmutableArray<TextSpan>>.Empty; 52return ImmutableDictionary<Document, ImmutableArray<TextSpan>>.Empty
Recommendations\CSharpRecommendationServiceRunner.cs (12)
72private ImmutableArray<ISymbol> GetSymbolsForCurrentContext() 246private ImmutableArray<ISymbol> GetSymbolsForGlobalStatementContext() 267private ImmutableArray<ISymbol> GetSymbolsForTypeArgumentOfConstraintClause() 279return ImmutableArray<ISymbol>.CastUp(symbols); 297private ImmutableArray<ISymbol> GetSymbolsForLabelContext() 308private ImmutableArray<ISymbol> GetSymbolsForTypeOrNamespaceContext() 325private ImmutableArray<ISymbol> GetSymbolsForExpressionOrStatementContext() 351ImmutableArray<ISymbol> symbols; 504private static ImmutableArray<ISymbol> FilterOutUncapturableParameters(ImmutableArray<ISymbol> symbols, SyntaxNode contextNode) 847var unnamedSymbols = _context.IsNameOfContext || excludeInstance 889private ImmutableArray<ISymbol> GetUnnamedSymbols(ExpressionSyntax originalExpression)
Recommendations\CSharpRecommendationServiceRunner_Conversions.cs (14)
20private static readonly ImmutableArray<SpecialType> s_predefinedEnumConversionTargets = 36private static readonly ImmutableArray<SpecialType> s_sbyteConversions = 45private static readonly ImmutableArray<SpecialType> s_byteConversions = [SpecialType.System_Char, SpecialType.System_SByte]; 47private static readonly ImmutableArray<SpecialType> s_int16Conversions = 57private static readonly ImmutableArray<SpecialType> s_uint16Conversions = [SpecialType.System_Byte, SpecialType.System_Char, SpecialType.System_SByte, SpecialType.System_Int16]; 59private static readonly ImmutableArray<SpecialType> s_int32Conversions = 70private static readonly ImmutableArray<SpecialType> s_uint32Conversions = 80private static readonly ImmutableArray<SpecialType> s_int64Conversions = 92private static readonly ImmutableArray<SpecialType> s_uint64Conversions = 104private static readonly ImmutableArray<SpecialType> s_charConversions = [SpecialType.System_Byte, SpecialType.System_SByte, SpecialType.System_Int16]; 106private static readonly ImmutableArray<SpecialType> s_singleConversions = 120private static readonly ImmutableArray<SpecialType> s_doubleConversions = 210public static ImmutableArray<SpecialType>? GetPredefinedNumericConversions(ITypeSymbol container) 229ITypeSymbol container, INamedTypeSymbol containerWithoutNullable, ArrayBuilder<ISymbol> symbols, ImmutableArray<SpecialType> specialTypes)
Rename\CSharpRenameRewriterLanguageService.cs (6)
55private readonly ImmutableArray<string> _possibleNameConflicts; 348var symbols = RenameUtilities.GetSymbolsTouchingPosition(token.Span.Start, _semanticModel, _solution.Services, _cancellationToken); 753var locals = enclosingMemberDeclaration.GetLocalDeclarationMap()[token.ValueText]; 781public override async Task<ImmutableArray<Location>> ComputeDeclarationConflictsAsync( 978public override async Task<ImmutableArray<Location>> ComputeImplicitReferenceConflictsAsync( 1023public override ImmutableArray<Location> ComputePossibleImplicitUsageConflicts(
Simplification\CSharpSimplificationService.cs (3)
32private static readonly ImmutableArray<AbstractReducer> s_reducers = 178protected override ImmutableArray<NodeOrTokenToReduce> GetNodesAndTokensToReduce(SyntaxNode root, Func<SyntaxNodeOrToken, bool> isNodeOrTokenOutsideSimplifySpans) 189var diagnostics = model.GetDiagnostics(cancellationToken: cancellationToken);
Simplification\CSharpSimplificationService.Expander.cs (1)
747var typeArguments = ((IMethodSymbol)symbol).TypeArguments;
Simplification\CSharpSimplificationService.NodesAndTokensToReduceComputer.cs (1)
29public static ImmutableArray<NodeOrTokenToReduce> Compute(SyntaxNode root, Func<SyntaxNodeOrToken, bool> isNodeOrTokenOutsideSimplifySpans)
Simplification\Simplifiers\AbstractCSharpSimplifier.cs (3)
226var scopes = model.GetImportScopes(firstMember.SpanStart, cancellationToken); 297var boundSymbols = semanticModel.LookupNamespacesAndTypes(node.SpanStart, name: aliasName); 408var symbols = semanticModel.LookupSymbols(expression.SpanStart, name: identifierName.Identifier.ValueText);
Simplification\Simplifiers\ExpressionSimplifier.cs (6)
205out var speculativeSymbols, 206out var speculativeNamespacesAndTypes); 225out ImmutableArray<ISymbol> speculativeSymbols, 226out ImmutableArray<ISymbol> speculativeNamespacesAndTypes) 243private static bool IsReplacementCandidate(ISymbol actualSymbol, ImmutableArray<ISymbol> speculativeSymbols, ImmutableArray<ISymbol> speculativeNamespacesAndTypes)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeStyle\CSharpCodeStyleOptions.cs (3)
18private static readonly ImmutableArray<IOption2>.Builder s_editorConfigOptionsBuilder = ImmutableArray.CreateBuilder<IOption2>(); 152private static readonly ImmutableArray<SyntaxKind> s_preferredModifierOrderDefault = 298internal static readonly ImmutableArray<IOption2> EditorConfigOptions = s_editorConfigOptionsBuilder.ToImmutable();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\BlockSyntaxExtensions.cs (3)
53var leadingDirectives = statement.GetLeadingTrivia().Where(IsAnyCodeDirective).ToImmutableArray(); 54var closeBraceLeadingDirectives = block.CloseBraceToken.LeadingTrivia.Where(IsAnyCodeDirective).ToImmutableArray(); 69var conditionalDirectives = firstDirective.GetMatchingConditionalDirectives(cancellationToken);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\DirectiveSyntaxExtensions.cs (2)
51public static ImmutableArray<DirectiveTriviaSyntax> GetMatchingConditionalDirectives(this DirectiveTriviaSyntax directive, CancellationToken cancellationToken) 56if (directiveConditionalMap.TryGetValue(directive, out var result))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.cs (1)
18private static readonly ConditionalWeakTable<MemberDeclarationSyntax, Dictionary<string, ImmutableArray<SyntaxToken>>> s_declarationCache = new();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.LocalDeclarationMap.cs (4)
16private readonly Dictionary<string, ImmutableArray<SyntaxToken>> _dictionary; 18internal LocalDeclarationMap(Dictionary<string, ImmutableArray<SyntaxToken>> dictionary) 21public ImmutableArray<SyntaxToken> this[string identifier] 25return _dictionary.TryGetValue(identifier, out var result)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SemanticModelExtensions.cs (3)
29var results = semanticModel.LookupName(expression, cancellationToken: cancellationToken); 39public static ImmutableArray<ISymbol> LookupName( 102public static ImmutableArray<ISymbol> LookupName(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (5)
570var directives = ((DirectiveTriviaSyntax)structure).GetMatchingConditionalDirectives(cancellationToken); 655public static ImmutableArray<SyntaxTrivia> GetLeadingBlankLines<TSyntaxNode>(this TSyntaxNode node) where TSyntaxNode : SyntaxNode 661public static TSyntaxNode GetNodeWithoutLeadingBlankLines<TSyntaxNode>(this TSyntaxNode node, out ImmutableArray<SyntaxTrivia> strippedTrivia) where TSyntaxNode : SyntaxNode 664public static ImmutableArray<SyntaxTrivia> GetLeadingBannerAndPreprocessorDirectives<TSyntaxNode>(this TSyntaxNode node) where TSyntaxNode : SyntaxNode 670public static TSyntaxNode GetNodeWithoutLeadingBannerAndPreprocessorDirectives<TSyntaxNode>(this TSyntaxNode node, out ImmutableArray<SyntaxTrivia> strippedTrivia) where TSyntaxNode : SyntaxNode
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTriviaListExtensions.cs (3)
45private static ImmutableArray<ImmutableArray<SyntaxTrivia>> GetLeadingBlankLines(SyntaxTriviaList triviaList) 47using var result = TemporaryArray<ImmutableArray<SyntaxTrivia>>.Empty;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\CSharpFormattingOptions2.cs (3)
20private static readonly ImmutableArray<IOption2>.Builder s_editorConfigOptionsBuilder = ImmutableArray.CreateBuilder<IOption2>(); 285internal static readonly ImmutableArray<IOption2> EditorConfigOptions = s_editorConfigOptionsBuilder.ToImmutable(); 290internal static readonly ImmutableArray<IOption2> UndocumentedOptions = [CollectionExpressionWrappingLength];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\CSharpSyntaxFormatting.cs (3)
19private readonly ImmutableArray<AbstractFormattingRule> _rules = 36public override ImmutableArray<AbstractFormattingRule> GetDefaultFormattingRules() 48protected override AbstractFormattingResult Format(SyntaxNode node, SyntaxFormattingOptions options, ImmutableArray<AbstractFormattingRule> formattingRules, SyntaxToken startToken, SyntaxToken endToken, CancellationToken cancellationToken)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\CSharpFormatEngine.cs (1)
18ImmutableArray<AbstractFormattingRule> formattingRules,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Helpers\RemoveUnnecessaryImports\CSharpUnnecessaryImportsProvider.cs (2)
23public override ImmutableArray<UsingDirectiveSyntax> GetUnnecessaryImports( 30var diagnostics = model.GetDiagnostics(cancellationToken: cancellationToken);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Indentation\CSharpSmartTokenFormatter.cs (4)
26private readonly ImmutableArray<AbstractFormattingRule> _formattingRules; 33ImmutableArray<AbstractFormattingRule> formattingRules, 52var smartTokenformattingRules = _formattingRules; 107ImmutableArray<AbstractFormattingRule> smartTokenFormattingRules = [new SmartTokenFormattingRule(), .. _formattingRules];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SelectedMembers\CSharpSelectedMembers.cs (1)
30protected override ImmutableArray<(SyntaxNode declarator, SyntaxToken identifier)> GetDeclaratorsAndIdentifiers(MemberDeclarationSyntax member)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SemanticFacts\CSharpSemanticFacts.cs (6)
197public ImmutableArray<IMethodSymbol> GetDeconstructionAssignmentMethods(SemanticModel semanticModel, SyntaxNode node) 209public ImmutableArray<IMethodSymbol> GetDeconstructionForEachMethods(SemanticModel semanticModel, SyntaxNode node) 270public ImmutableArray<ISymbol> GetBestOrAllSymbols(SemanticModel semanticModel, SyntaxNode? node, SyntaxToken token, CancellationToken cancellationToken) 283static ImmutableArray<ISymbol> GetCallingConventionSymbols(SemanticModel model, FunctionPointerUnmanagedCallingConventionSyntax syntax) 296private ImmutableArray<ISymbol> GetSymbolInfo(SemanticModel semanticModel, SyntaxNode node, SyntaxToken token, CancellationToken cancellationToken) 371public ImmutableArray<IMethodSymbol> GetLocalFunctionSymbols(Compilation compilation, ISymbol symbol, CancellationToken cancellationToken)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
1379public ImmutableArray<SyntaxNode> GetMatchingConditionalDirectives(SyntaxNode directive, CancellationToken cancellationToken)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (2)
1452var originalParameters = originalMethodSymbol.Parameters; 1453var rewrittenParameters = rewrittenMethodSymbol.Parameters;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\SpeculationAnalyzer.cs (2)
588protected override ImmutableArray<ArgumentSyntax> GetArguments(ExpressionSyntax expression) 890out ImmutableArray<ILocalSymbol> localVariables)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\TypeStyle\CSharpUseImplicitTypeHelper.cs (1)
225var memberGroup = semanticModel.GetMemberGroup(invocationExpression.Expression, cancellationToken);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\UsingsAndExternAliasesOrganizer.cs (1)
125initialList[0] = initialList[0].GetNodeWithoutLeadingBannerAndPreprocessorDirectives(out var leadingTrivia);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\AttributeGenerator.cs (1)
23ImmutableArray<AttributeData> attributes,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ConstructorGenerator.cs (2)
92var thisArguments = CodeGenerationConstructorInfo.GetThisConstructorArgumentsOpt(constructor); 104private static ArgumentListSyntax GenerateArgumentList(ImmutableArray<SyntaxNode> arguments)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\EventGenerator.cs (1)
150var attributes = @event.GetAttributes();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\NamedTypeGenerator.cs (1)
105ImmutableArray<ISymbol> members,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ParameterGenerator.cs (7)
21ImmutableArray<IParameterSymbol> parameterDefinitions, 25var parameters = GetParameters(parameterDefinitions, isExplicit, info); 31ImmutableArray<IParameterSymbol> parameterDefinitions, 37var parameters = GetParameters(parameterDefinitions, isExplicit, info); 42internal static ImmutableArray<ParameterSyntax> GetParameters( 43ImmutableArray<IParameterSymbol> parameterDefinitions, 123var attributes = parameter.GetAttributes();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\PropertyGenerator.cs (1)
149var attributes = property.GetAttributes();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\TypeParameterGenerator.cs (1)
19ImmutableArray<ITypeParameterSymbol> typeParameters, CSharpCodeGenerationContextInfo info)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Editing\CSharpImportAdder.cs (3)
44ImmutableArray<INamespaceSymbol> namespaceSymbols, 101ImmutableArray<INamespaceSymbol> namespaceSymbols) 108private void AddImportedMembers(ImmutableArray<INamespaceSymbol> namespaceSymbols)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
1026var symbols = semanticModelOpt.LookupName(nameToken, cancellationToken);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeParameterSymbolExtensions.cs (1)
18this ImmutableArray<ITypeParameterSymbol> typeParameters)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\SemanticModelExtensions.cs (11)
34public static ImmutableArray<ParameterName> GenerateParameterNames( 43public static ImmutableArray<ParameterName> GenerateParameterNames( 52public static ImmutableArray<ParameterName> GenerateParameterNames( 61var isFixed = reservedNames.Select(s => true).Concat( 64var parameterNames = reservedNames.Concat( 70public static ImmutableArray<ParameterName> GenerateNames(IList<string> reservedNames, ImmutableArray<bool> isFixed, ImmutableArray<string> parameterNames) 75public static ImmutableArray<ParameterName> GenerateParameterNames( 84var isFixed = reservedNames.Select(s => true).Concat( 87var parameterNames = reservedNames.Concat(
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\TypeSyntaxExtensions.cs (1)
44var symbols = semanticModelOpt.LookupName(nameToken, cancellationToken);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpAddImportsService.cs (1)
36protected override ImmutableArray<SyntaxNode> GetGlobalImports(Compilation compilation, SyntaxGenerator generator)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpSemanticFactsService.cs (1)
43var visibleSymbols = semanticModel.LookupSymbols(location.SpanStart);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpSymbolDeclarationService.cs (1)
24public ImmutableArray<SyntaxReference> GetDeclarations(ISymbol symbol)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpSyntaxFactsService.cs (1)
116public Task<ImmutableArray<SyntaxNode>> GetSelectedFieldsAndPropertiesAsync(SyntaxTree tree, TextSpan textSpan, bool allowPartialSelection, CancellationToken cancellationToken)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (19)
720ImmutableArray<ImmutableArray<IParameterSymbol>> parameterizedSymbols, 736ImmutableArray<ImmutableArray<IParameterSymbol>> parameterizedSymbols, 740using var _1 = ArrayBuilder<ImmutableArray<IParameterSymbol>>.GetInstance(out var parameterListsWithMatchingCount); 741using var _2 = ArrayBuilder<ImmutableArray<IParameterSymbol>>.GetInstance(out var parameterListsWithoutMatchingCount); 744foreach (var parameterList in parameterizedSymbols) 771ImmutableArray<ImmutableArray<IParameterSymbol>> parameterizedSymbols, 789foreach (var parameterSet in parameterizedSymbols) 1592private static ImmutableArray<NullableAnnotation> GetNullableAnnotations(ImmutableArray<ITypeSymbol> elementTypes) 2199var laterUsageInference = InferTypeBasedOnLaterUsage(symbol, variableDeclaration); 2207private ImmutableArray<TypeInferenceInfo> InferTypeBasedOnLaterUsage(ISymbol symbol, SyntaxNode afterNode) 2254var inferredFutureUsage = InferTypeBasedOnLaterUsage(symbol, afterNode: left.Parent); 2283if (!TryGetTupleTypesAndNames(tuple.Arguments, out var elementTypes, out var elementNames)) 2294out ImmutableArray<ITypeSymbol> elementTypes, 2295out ImmutableArray<string> elementNames)
Workspace\LanguageServices\CSharpCompilationFactoryService.cs (2)
56GeneratorDriver ICompilationFactoryService.CreateGeneratorDriver(ParseOptions parseOptions, ImmutableArray<ISourceGenerator> generators, AnalyzerConfigOptionsProvider optionsProvider, ImmutableArray<AdditionalText> additionalTexts, string? generatedFilesBaseDirectory)
Microsoft.CodeAnalysis.Debugging.Package (37)
CustomDebugInfoEncoder.cs (2)
110public void AddStateMachineHoistedLocalScopes(ImmutableArray<StateMachineHoistedLocalScope> scopes) 169public void AddTupleElementNames(IReadOnlyCollection<(string LocalName, int SlotIndex, int ScopeStart, int ScopeEnd, ImmutableArray<string> Names)> tupleLocals)
CustomDebugInfoReader.cs (29)
54public static ImmutableArray<byte> TryGetCustomDebugInfoRecord(byte[] customDebugInfo, CustomDebugInfoKind recordKind) 125public static ImmutableArray<short> DecodeUsingRecord(ImmutableArray<byte> bytes) 147public static int DecodeForwardRecord(ImmutableArray<byte> bytes) 161public static int DecodeForwardToModuleRecord(ImmutableArray<byte> bytes) 173public static ImmutableArray<StateMachineHoistedLocalScope> DecodeStateMachineHoistedLocalScopesRecord(ImmutableArray<byte> bytes) 212public static string DecodeForwardIteratorRecord(ImmutableArray<byte> bytes) 241public static ImmutableArray<DynamicLocalInfo> DecodeDynamicLocalsRecord(ImmutableArray<byte> bytes) 300public static ImmutableArray<TupleElementNamesInfo> DecodeTupleElementNamesRecord(ImmutableArray<byte> bytes) 313private static TupleElementNamesInfo DecodeTupleElementNamesInfo(ImmutableArray<byte> bytes, ref int offset) 337public static ImmutableArray<ImmutableArray<string>> GetCSharpGroupedImportStrings<TArg>( 341Func<int, TArg, ImmutableArray<string>> getMethodImportStrings, 342out ImmutableArray<string> externAliasStrings) 346ImmutableArray<short> groupSizes = default; 395var allModuleInfoImportStrings = getMethodImportStrings(moduleInfoMethodToken, arg); 419var importStrings = getMethodImportStrings(methodToken, arg); 422var resultBuilder = ArrayBuilder<ImmutableArray<string>>.GetInstance(groupSizes.Length); 485public static ImmutableArray<string> GetVisualBasicImportStrings<TArg>( 488Func<int, TArg, ImmutableArray<string>> getMethodImportStrings) 490var importStrings = getMethodImportStrings(methodToken, arg); 495return ImmutableArray<string>.Empty; 518private static int ReadInt32(ImmutableArray<byte> bytes, ref int offset) 530private static short ReadInt16(ImmutableArray<byte> bytes, ref int offset) 542private static byte ReadByte(ImmutableArray<byte> bytes, ref int offset) 851private static string ReadUtf8String(ImmutableArray<byte> bytes, ref int offset)
CustomDebugInfoRecord.cs (2)
15public readonly ImmutableArray<byte> Data; 17public CustomDebugInfoRecord(CustomDebugInfoKind kind, byte version, ImmutableArray<byte> data)
DynamicLocalInfo.cs (2)
13public readonly ImmutableArray<bool> Flags; 17public DynamicLocalInfo(ImmutableArray<bool> flags, int slotId, string localName)
TupleElementNamesInfo.cs (2)
14internal readonly ImmutableArray<string> ElementNames; 20internal TupleElementNamesInfo(ImmutableArray<string> elementNames, int slotIndex, string localName, int scopeStart, int scopeEnd)
Microsoft.CodeAnalysis.EditorFeatures (260)
AutomaticCompletion\AbstractBraceCompletionServiceFactory.cs (1)
18private readonly ImmutableArray<IBraceCompletionService> _braceCompletionServices;
BraceMatching\BraceHighlightingViewTaggerProvider.cs (1)
36protected sealed override ImmutableArray<IOption2> Options { get; } = [BraceMatchingOptionsStorage.BraceMatching];
Classification\Semantic\AbstractSemanticOrEmbeddedClassificationViewTaggerProvider.cs (1)
44protected sealed override ImmutableArray<IOption2> Options { get; } = [SemanticColorizerOptionsStorage.SemanticColorizer];
CodeActions\CodeActionEditHandlerService.cs (9)
43Workspace workspace, ImmutableArray<CodeActionOperation> operations, CancellationToken cancellationToken) 96ImmutableArray<CodeActionOperation> operations, 187Solution oldSolution, ImmutableArray<CodeActionOperation> operationsList) 205var projectChanges = changes.GetProjectChanges().ToImmutableArray(); 228var changedAdditionalDocuments = projectChange.GetChangedAdditionalDocuments().ToImmutableArray(); 229var changedDocuments = projectChange.GetChangedDocuments(onlyGetDocumentsWithTextChanges: true).ToImmutableArray(); 230var changedAnalyzerConfigDocuments = projectChange.GetChangedAnalyzerConfigDocuments().ToImmutableArray(); 263ImmutableArray<CodeActionOperation> operations, 291ImmutableArray<CodeActionOperation> operations,
CodeActions\ICodeActionEditHandlerService.cs (2)
18Workspace workspace, ImmutableArray<CodeActionOperation> operations, CancellationToken cancellationToken); 24ImmutableArray<CodeActionOperation> operations,
CodeDefinitionWindow\DefinitionContextTracker.cs (3)
140internal async Task<ImmutableArray<CodeDefinitionWindowLocation>> GetContextFromPointAsync( 146var navigableItems = await GetNavigableItemsAsync(document, position, cancellationToken).ConfigureAwait(false); 196private static async Task<ImmutableArray<INavigableItem>> GetNavigableItemsAsync(Document document, int position, CancellationToken cancellationToken)
CodeDefinitionWindow\ICodeDefinitionWindowService.cs (1)
14Task SetContextAsync(ImmutableArray<CodeDefinitionWindowLocation> locations, CancellationToken cancellationToken);
CodeLens\ICodeLensContext.cs (3)
20Task<ImmutableDictionary<Guid, string>> GetProjectVersionsAsync(ImmutableArray<Guid> projectGuids, CancellationToken cancellationToken); 31Task<(string projectVersion, ImmutableArray<ReferenceLocationDescriptor> references)?> FindReferenceLocationsAsync( 37Task<ImmutableArray<ReferenceMethodDescriptor>?> FindReferenceMethodsAsync(
CommentSelection\AbstractToggleBlockCommentBase.cs (11)
57protected abstract ImmutableArray<TextSpan> GetBlockCommentsInDocument(Document document, ITextSnapshot snapshot, 99var blockCommentedSpans = GetBlockCommentsInDocument( 132private static bool TryUncommentBlockComment(ImmutableArray<TextSpan> blockCommentedSpans, 147var intersectingBlockComments = blockCommentSelection.IntersectingBlockComments; 284public ImmutableArray<TextSpan> IntersectingBlockComments { get; } 286public ImmutableArray<TextSpan> UncommentedSpansInSelection { get; } 288public BlockCommentSelectionHelper(ImmutableArray<TextSpan> allBlockComments, SnapshotSpan selectedSnapshotSpan) 360public bool TryGetBlockCommentOnSameLine(ImmutableArray<TextSpan> allBlockComments, out TextSpan commentedSpanOnSameLine) 398private static ImmutableArray<TextSpan> GetIntersectingBlockComments(ImmutableArray<TextSpan> allBlockComments, TextSpan span) 404private ImmutableArray<TextSpan> GetUncommentedSpansInSelection()
CommentSelection\CommentSelectionResult.cs (2)
18public ImmutableArray<TextChange> TextChanges { get; } = textChanges.ToImmutableArray(); 22public ImmutableArray<CommentTrackingSpan> TrackingSpans { get; } = trackingSpans.ToImmutableArray();
CommentSelection\ToggleBlockCommentCommandHandler.cs (1)
38protected override ImmutableArray<TextSpan> GetBlockCommentsInDocument(Document document, ITextSnapshot snapshot,
CommentSelection\ToggleLineCommentCommandHandler.cs (3)
115ImmutableArray<ITextSnapshotLine> commentedLines, 137ImmutableArray<ITextSnapshotLine> linesInSelection, 177private static bool SelectionHasUncommentedLines(ImmutableArray<ITextSnapshotLine> linesInSelection, CommentSelectionInfo commentInfo)
EditAndContinue\ActiveStatementTrackingService.cs (15)
55public ValueTask<ImmutableArray<ActiveStatementSpan>> GetSpansAsync(Solution solution, DocumentId? documentId, string filePath, CancellationToken cancellationToken) 93public ValueTask<ImmutableArray<ActiveStatementSpan>> GetSpansAsync(Solution solution, DocumentId? documentId, string filePath, CancellationToken cancellationToken) 96public ValueTask<ImmutableArray<ActiveStatementTrackingSpan>> GetAdjustedTrackingSpansAsync(TextDocument document, ITextSnapshot snapshot, CancellationToken cancellationToken) 114private readonly Dictionary<string, ImmutableArray<ActiveStatementTrackingSpan>> _trackingSpans = []; 128internal Dictionary<string, ImmutableArray<ActiveStatementTrackingSpan>> Test_GetTrackingSpans() 196var openDocumentIds = _workspace.GetOpenDocumentIds().ToImmutableArray(); 257private static ImmutableArray<ActiveStatementTrackingSpan> CreateTrackingSpans(ITextSnapshot snapshot, ImmutableArray<ActiveStatementSpan> activeStatementSpans) 260private static ImmutableArray<ActiveStatementTrackingSpan> UpdateTrackingSpans( 262ImmutableArray<ActiveStatementTrackingSpan> oldSpans, 263ImmutableArray<ActiveStatementSpan> newSpans) 313public async ValueTask<ImmutableArray<ActiveStatementSpan>> GetSpansAsync(Solution solution, DocumentId? documentId, string filePath, CancellationToken cancellationToken) 327if (_trackingSpans.TryGetValue(filePath, out var documentSpans) && !documentSpans.IsDefaultOrEmpty) 343internal async ValueTask<ImmutableArray<ActiveStatementTrackingSpan>> GetAdjustedTrackingSpansAsync(TextDocument document, ITextSnapshot snapshot, CancellationToken cancellationToken) 365var hasExistingSpans = _trackingSpans.TryGetValue(document.FilePath, out var oldSpans);
EditAndContinue\Contracts\ContractWrappers.cs (4)
46public static ImmutableArray<ManagedHotReloadUpdate> FromContract(this ImmutableArray<InternalContracts.ManagedHotReloadUpdate> diagnostics) 67public static ImmutableArray<ManagedHotReloadDiagnostic> FromContract(this ImmutableArray<InternalContracts.ManagedHotReloadDiagnostic> diagnostics)
EditAndContinue\Contracts\ManagedHotReloadServiceBridge.cs (2)
16public async ValueTask<ImmutableArray<InternalContracts.ManagedActiveStatementDebugInfo>> GetActiveStatementsAsync(CancellationToken cancellation) 22public ValueTask<ImmutableArray<string>> GetCapabilitiesAsync(CancellationToken cancellation)
EditAndContinue\EditAndContinueLanguageService.cs (7)
104private void UpdateApplyChangesDiagnostics(ImmutableArray<DiagnosticData> diagnostics) 249public async ValueTask UpdateBaselinesAsync(ImmutableArray<string> projectPaths, CancellationToken cancellationToken) 284private async ValueTask<ImmutableArray<ProjectId>> GetProjectIdsAsync(ImmutableArray<string> projectPaths, Solution solution, CancellationToken cancellationToken) 378public async ValueTask<ManagedHotReloadUpdates> GetUpdatesAsync(ImmutableArray<string> runningProjects, CancellationToken cancellationToken) 409ImmutableArray<string> GetProjectPaths(ImmutableArray<ProjectId> ids)
EditAndContinue\EditAndContinueLanguageServiceBridge.cs (2)
39public ValueTask<ManagedHotReloadUpdates> GetUpdatesAsync(ImmutableArray<string> runningProjects, CancellationToken cancellationToken) 45public ValueTask UpdateBaselinesAsync(ImmutableArray<string> projectPaths, CancellationToken cancellationToken)
EditAndContinue\IActiveStatementTrackingService.cs (1)
28ValueTask<ImmutableArray<ActiveStatementTrackingSpan>> GetAdjustedTrackingSpansAsync(TextDocument document, ITextSnapshot snapshot, CancellationToken cancellationToken);
EditAndContinue\PdbMatchingSourceTextProvider.cs (1)
127public async ValueTask<string?> TryGetMatchingSourceTextAsync(string filePath, ImmutableArray<byte> requiredChecksum, SourceHashAlgorithm checksumAlgorithm, CancellationToken cancellationToken)
Editor\EditorLayerExtensionManager.cs (2)
34private readonly ImmutableArray<IExtensionErrorHandler> _errorHandlers = errorHandlers.ToImmutableArray(); 46ImmutableArray<IExtensionErrorHandler> errorHandlers) : AbstractExtensionManager
Editor\TextEditApplication.cs (2)
23public static void UpdateText(ImmutableArray<TextChange> textChanges, ITextBuffer buffer, EditOptions options) 31private static void UpdateText(ImmutableArray<TextChange> textChanges, ITextBuffer buffer, ITextSnapshot oldSnapshot, SourceText oldText, EditOptions options)
EditorConfigSettings\DataProvider\Analyzer\AnalyzerSettingsProvider.cs (2)
29protected override void UpdateOptions(TieredAnalyzerConfigOptions options, ImmutableArray<Project> projectsInScope) 31var analyzerReferences = RoslynEnumerableExtensions.DistinctBy(projectsInScope.SelectMany(p => p.AnalyzerReferences), a => a.Id).ToImmutableArray();
EditorConfigSettings\DataProvider\CombinedOptionsProviderFactory.cs (2)
10internal class CombinedOptionsProviderFactory<T>(ImmutableArray<ISettingsProviderFactory<T>> factories) : ISettingsProviderFactory<T> 12private readonly ImmutableArray<ISettingsProviderFactory<T>> _factories = factories;
EditorConfigSettings\DataProvider\CombinedProvider.cs (5)
11internal class CombinedProvider<T>(ImmutableArray<ISettingsProvider<T>> providers) : ISettingsProvider<T> 13private readonly ImmutableArray<ISettingsProvider<T>> _providers = providers; 25public ImmutableArray<T> GetCurrentDataSnapshot() 27var snapShot = ImmutableArray<T>.Empty;
EditorConfigSettings\DataProvider\ISettingsProvider.cs (1)
14ImmutableArray<TData> GetCurrentDataSnapshot();
EditorConfigSettings\DataProvider\NamingStyles\NamingStyleSettingsProvider.cs (1)
26protected override void UpdateOptions(TieredAnalyzerConfigOptions options, ImmutableArray<Project> projectsInScope)
EditorConfigSettings\DataProvider\SettingsProviderBase.cs (3)
36protected abstract void UpdateOptions(TieredAnalyzerConfigOptions options, ImmutableArray<Project> projectsInScope); 55var projects = solution.GetProjectsUnderEditorConfigFile(FileName); 87public ImmutableArray<TData> GetCurrentDataSnapshot()
EditorConfigSettings\Extensions\SolutionExtensions.cs (1)
14public static ImmutableArray<Project> GetProjectsUnderEditorConfigFile(this Solution solution, string pathToEditorConfigFile)
EditorConfigSettings\Updater\NamingStyles\EditorConfigNamingStylesExtensions.cs (2)
64public static ImmutableArray<(NamingStyleOption namingStyleOption, NamingStyleSetting namingStyleSetting)> AsNamingStyleSettings(this ImmutableArray<NamingStyleOption> namingStyleOptions)
Extensibility\NavigationBar\AbstractEditorNavigationBarItemService.cs (1)
30public async Task<ImmutableArray<NavigationBarItem>> GetItemsAsync(
Extensibility\NavigationBar\INavigationBarItemService.cs (1)
16Task<ImmutableArray<NavigationBarItem>> GetItemsAsync(
Extensibility\NavigationBar\INavigationBarPresenter.cs (2)
16ImmutableArray<NavigationBarProjectItem> projects, 18ImmutableArray<NavigationBarItem> typesWithMembers,
Extensibility\NavigationBar\NavigationBarItem.cs (4)
20ImmutableArray<TextSpan> spans, 21ImmutableArray<NavigationBarItem> childItems = default, 31public ImmutableArray<NavigationBarItem> ChildItems { get; } = childItems.NullToEmpty(); 39public ImmutableArray<TextSpan> Spans { get; } = spans;
Extensibility\NavigationBar\NavigationBarProjectItem.cs (2)
17spans: ImmutableArray<TextSpan>.Empty, 18childItems: ImmutableArray<NavigationBarItem>.Empty,
Extensibility\NavigationBar\SimpleNavigationBarItem.cs (2)
12internal sealed class SimpleNavigationBarItem(ITextVersion textVersion, string text, Glyph glyph, ImmutableArray<TextSpan> spans, ImmutableArray<NavigationBarItem> childItems, int indent, bool bolded, bool grayed) : NavigationBarItem(textVersion, text, glyph, spans, childItems, indent, bolded, grayed), IEquatable<SimpleNavigationBarItem>
Extensibility\NavigationBar\WrappedNavigationBarItem.cs (1)
37private static ImmutableArray<TextSpan> GetSpans(RoslynNavigationBarItem underlyingItem)
ExternalAccess\IntelliCode\Api\IIntelliCodeArgumentDefaultsSource.cs (1)
56Task<ImmutableArray<string>> GetArgumentDefaultsAsync(ITextView view);
ExternalAccess\IntelliCode\Api\IIntentSourceProvider.cs (5)
22Task<ImmutableArray<IntentSource>> ComputeIntentsAsync(IntentRequestContext context, CancellationToken cancellationToken = default); 28internal readonly struct IntentRequestContext(string intentName, SnapshotSpan currentSnapshotSpan, ImmutableArray<TextChange> textEditsToPrior, TextSpan priorSelection, string? intentData) 50public ImmutableArray<TextChange> PriorTextEdits { get; } = textEditsToPrior; 62internal readonly struct IntentSource(string title, string actionName, ImmutableDictionary<DocumentId, ImmutableArray<TextChange>> documentChanges) 72public readonly ImmutableDictionary<DocumentId, ImmutableArray<TextChange>> DocumentChanges = documentChanges;
ExternalAccess\IntelliCode\IntentProcessor.cs (3)
38public async Task<ImmutableArray<IntentSource>> ComputeIntentsAsync(IntentRequestContext intentRequestContext, CancellationToken cancellationToken) 95using var _ = PooledDictionary<DocumentId, ImmutableArray<TextChange>>.GetInstance(out var results); 109private static async Task<ImmutableArray<TextChange>?> GetTextChangesForDocumentAsync(
ExternalAccess\UnitTestGenerator\Api\WrappedAddImportFixData.cs (2)
25public ImmutableArray<TextChange> TextChanges => Underlying.TextChanges; 29public ImmutableArray<string> Tags => Underlying.Tags;
ExternalAccess\UnitTestGenerator\Api\WrappedMissingImportsAnalysisResult.cs (2)
9internal sealed class WrappedMissingImportsAnalysisResult(ImmutableArray<WrappedAddImportFixData> addImportFixDatas) 11public ImmutableArray<WrappedAddImportFixData> AddImportFixDatas = addImportFixDatas;
ExternalAccess\UnitTesting\UnitTestingReferencesService.cs (1)
31var callerMethods = await callbackService.InvokeAsync<ImmutableArray<ReferenceMethodDescriptor>?>(
ExternalAccess\VSTypeScript\Api\IVSTypeScriptFindUsagesContext.cs (12)
52private sealed class ExternalDefinitionItem(VSTypeScriptDefinitionItemNavigator navigator, ImmutableArray<string> tags, ImmutableArray<TaggedText> displayParts) 56ImmutableArray<TaggedText>.Empty, 84ImmutableArray<string> tags, 85ImmutableArray<TaggedText> displayParts, 86ImmutableArray<VSTypeScriptDocumentSpan> sourceSpans, 87ImmutableArray<TaggedText> nameDisplayParts = default, 97ImmutableArray<string> tags, 98ImmutableArray<TaggedText> displayParts) 105public ImmutableArray<string> Tags => UnderlyingObject.Tags; 106public ImmutableArray<TaggedText> DisplayParts => UnderlyingObject.DisplayParts; 108public ImmutableArray<VSTypeScriptDocumentSpan> GetSourceSpans()
ExternalAccess\VSTypeScript\Api\IVSTypeScriptFormattingInteractionService.cs (4)
31Task<ImmutableArray<TextChange>> GetFormattingChangesAsync(Document document, TextSpan? textSpan, DocumentOptionSet? documentOptions, CancellationToken cancellationToken); 36Task<ImmutableArray<TextChange>> GetFormattingChangesOnPasteAsync(Document document, TextSpan textSpan, DocumentOptionSet? documentOptions, CancellationToken cancellationToken); 43Task<ImmutableArray<TextChange>> GetFormattingChangesAsync(Document document, char typedChar, int position, DocumentOptionSet? documentOptions, CancellationToken cancellationToken); 48Task<ImmutableArray<TextChange>> GetFormattingChangesOnReturnAsync(Document document, int position, DocumentOptionSet? documentOptions, CancellationToken cancellationToken);
ExternalAccess\VSTypeScript\Api\IVSTypeScriptNavigationBarItemService.cs (1)
13Task<ImmutableArray<VSTypescriptNavigationBarItem>> GetItemsAsync(Document document, CancellationToken cancellationToken);
ExternalAccess\VSTypeScript\Api\VSTypeScriptBlockStructure.cs (2)
9internal readonly struct VSTypeScriptBlockStructure(ImmutableArray<VSTypeScriptBlockSpan> spans) 11public ImmutableArray<VSTypeScriptBlockSpan> Spans { get; } = spans;
ExternalAccess\VSTypeScript\Api\VSTypeScriptInlineRenameInfo.cs (2)
27public abstract ImmutableArray<VSTypeScriptDocumentSpan> DefinitionLocations { get; } 39ImmutableArray<DocumentSpan> IInlineRenameInfo.DefinitionLocations
ExternalAccess\VSTypeScript\Api\VSTypescriptNavigationBarItem.cs (4)
13ImmutableArray<TextSpan> spans, 14ImmutableArray<VSTypescriptNavigationBarItem> childItems = default, 24public ImmutableArray<VSTypescriptNavigationBarItem> ChildItems { get; } = childItems.NullToEmpty(); 25public ImmutableArray<TextSpan> Spans { get; } = spans.NullToEmpty();
ExternalAccess\VSTypeScript\VSTypeScriptEditorInlineRenameService.cs (2)
40public Task<ImmutableDictionary<string, ImmutableArray<(string filePath, string content)>>> GetRenameContextAsync(IInlineRenameInfo inlineRenameInfo, IInlineRenameLocationSet inlineRenameLocationSet, CancellationToken cancellationToken) 42return Task.FromResult(ImmutableDictionary<string, ImmutableArray<(string filePath, string content)>>.Empty);
ExternalAccess\VSTypeScript\VSTypeScriptFormattingInteractionService.cs (4)
33public Task<ImmutableArray<TextChange>> GetFormattingChangesAsync(Document document, ITextBuffer textBuffer, TextSpan? textSpan, CancellationToken cancellationToken) 36public Task<ImmutableArray<TextChange>> GetFormattingChangesOnPasteAsync(Document document, ITextBuffer textBuffer, TextSpan textSpan, CancellationToken cancellationToken) 39public Task<ImmutableArray<TextChange>> GetFormattingChangesAsync(Document document, ITextBuffer textBuffer, char typedChar, int position, CancellationToken cancellationToken) 42public Task<ImmutableArray<TextChange>> GetFormattingChangesOnReturnAsync(Document document, int position, CancellationToken cancellationToken)
ExternalAccess\VSTypeScript\VSTypeScriptInProcLanguageClient.cs (1)
45protected override ImmutableArray<string> SupportedLanguages => [InternalLanguageNames.TypeScript];
ExternalAccess\VSTypeScript\VSTypeScriptNavigationBarItemService.cs (4)
32public Task<ImmutableArray<NavigationBarItem>> GetItemsAsync( 39async Task<ImmutableArray<NavigationBarItem>> INavigationBarItemService.GetItemsAsync( 50private static ImmutableArray<NavigationBarItem> ConvertItems(ImmutableArray<VSTypescriptNavigationBarItem> items, ITextVersion textVersion)
FindUsages\BufferedFindUsagesContext.cs (2)
30public ImmutableArray<DefinitionItem>.Builder Definitions = ImmutableArray.CreateBuilder<DefinitionItem>(); 82public async Task<ImmutableArray<DefinitionItem>> GetDefinitionsAsync(CancellationToken cancellationToken)
Formatting\IFormattingInteractionService.cs (4)
31Task<ImmutableArray<TextChange>> GetFormattingChangesAsync(Document document, ITextBuffer textBuffer, TextSpan? textSpan, CancellationToken cancellationToken); 36Task<ImmutableArray<TextChange>> GetFormattingChangesOnPasteAsync(Document document, ITextBuffer textBuffer, TextSpan textSpan, CancellationToken cancellationToken); 43Task<ImmutableArray<TextChange>> GetFormattingChangesAsync(Document document, ITextBuffer textBuffer, char typedChar, int position, CancellationToken cancellationToken); 48Task<ImmutableArray<TextChange>> GetFormattingChangesOnReturnAsync(Document document, int position, CancellationToken cancellationToken);
GoToDefinition\AbstractGoToCommandHandler`2.cs (1)
185var definitions = await findContext.GetDefinitionsAsync(cancellationToken).ConfigureAwait(false);
Host\IStreamingFindReferencesPresenter.cs (2)
71ImmutableArray<DefinitionItem> items, 89ImmutableArray<DefinitionItem> items,
InlineRename\AbstractEditorInlineRenameService.cs (2)
35public virtual Task<ImmutableDictionary<string, ImmutableArray<(string filePath, string content)>>> GetRenameContextAsync(IInlineRenameInfo inlineRenameInfo, IInlineRenameLocationSet inlineRenameLocationSet, CancellationToken cancellationToken) 37return Task.FromResult(ImmutableDictionary<string, ImmutableArray<(string filePath, string content)>>.Empty);
InlineRename\AbstractEditorInlineRenameService.FailureInlineRenameInfo.cs (1)
38public ImmutableArray<DocumentSpan> DefinitionLocations => default;
InlineRename\AbstractEditorInlineRenameService.InlineRenameReplacementInfo.cs (1)
41var locationsForDocument = _conflicts.GetRelatedLocationsForDocument(documentId);
InlineRename\AbstractEditorInlineRenameService.SymbolRenameInfo.cs (1)
51public ImmutableArray<DocumentSpan> DefinitionLocations => _info.DocumentSpans;
InlineRename\IEditorInlineRenameService.cs (2)
202ImmutableArray<DocumentSpan> DefinitionLocations { get; } 275Task<ImmutableDictionary<string, ImmutableArray<(string filePath, string content)>>> GetRenameContextAsync(
InlineRename\InlineRenameSession.cs (5)
345public event EventHandler<ImmutableArray<InlineRenameLocation>> ReferenceLocationsChanged; 406private void RaiseSessionSpansUpdated(ImmutableArray<InlineRenameLocation> locations) 424private void SetReferenceLocations(ImmutableArray<InlineRenameLocation> locations) 926async Task<ImmutableArray<(DocumentId documentId, string newName, SyntaxNode newRoot, SourceText newText)>> CalculateFinalDocumentChangesAsync( 953ImmutableArray<(DocumentId documentId, string newName, SyntaxNode newRoot, SourceText newText)> documentChanges)
InlineRename\InlineRenameSession.OpenTextBufferManager.cs (4)
356var documentReplacements = documents 440var relevantReplacements = conflictResolution 583private async Task<ImmutableArray<InlineRenameReplacement>> GetMergedReplacementInfosAsync( 584ImmutableArray<InlineRenameReplacement> relevantReplacements,
IntelliSense\AsyncCompletion\CommitManager.cs (1)
48if (_textView.Properties.TryGetProperty(CompletionSource.PotentialCommitCharacters, out ImmutableArray<char> potentialCommitCharacters))
IntelliSense\AsyncCompletion\CompletionSource.cs (4)
47private static readonly ImmutableArray<ImageElement> s_warningImageAttributeImagesArray = 483var elements = description.TaggedParts.ToInteractiveVsTextAdornments(navigationActionFactory); 503ImmutableArray<AsyncCompletionData.CompletionFilter> Filters, 505ImmutableArray<ImageElement> AttributeIcons,
IntelliSense\AsyncCompletion\FilterSet.cs (7)
38private static readonly ImmutableArray<FilterWithMask> s_filters; 132public (ImmutableArray<CompletionFilter> filters, int data) GetFiltersAndAddToSet(RoslynCompletionItem item) 178public ImmutableArray<CompletionFilterWithState> GetFilterStatesInSet() 200public static ImmutableArray<CompletionFilterWithState> CombineFilterStates(ImmutableArray<CompletionFilterWithState> filters1, ImmutableArray<CompletionFilterWithState> filters2) 223void AddFilterState(ImmutableArray<CompletionFilterWithState> filterStates)
IntelliSense\AsyncCompletion\ItemManager.CompletionListUpdater.cs (9)
198(CompletionList<CompletionItemWithHighlight>, ImmutableArray<CompletionFilterWithState>) GetHighlightedListAndUpdatedFilters( 202var updatedFilters = GetUpdatedFilters(itemsToBeIncluded, cancellationToken); 596static ImmutableArray<Span> GetHighlightedSpans(MatchResult matchResult, PatternMatchHelper patternMatchers) 651items: ImmutableArray<CompletionItemWithHighlight>.Empty, selectedItemIndex, 655private ImmutableArray<CompletionFilterWithState> GetUpdatedFilters(IReadOnlyList<MatchResult> matchResults, CancellationToken cancellationToken) 934private readonly ImmutableArray<CompletionFilterWithState> _nonExpanderFilterStates; 935private readonly ImmutableArray<CompletionFilter> _selectedNonExpanderFilters; 936private readonly ImmutableArray<CompletionFilter> _unselectedExpanders; 940public FilterStateHelper(ImmutableArray<CompletionFilterWithState> filtersWithState)
IntelliSense\AsyncCompletion\ItemManager.cs (1)
44public Task<ImmutableArray<VSCompletionItem>> SortCompletionListAsync(
IntelliSense\AsyncCompletion\RecentItemsManager.cs (2)
29private ImmutableArray<string> RecentItems { get; set; } = []; 35var items = RecentItems;
IntelliSense\PresentationExtensions.cs (2)
14internal static ImmutableArray<object> ToInteractiveVsTextAdornments( 15this ImmutableArray<TaggedText> taggedTexts,
Intents\DeleteParameterIntentProvider.cs (1)
25public async Task<ImmutableArray<IntentProcessorResult>> ComputeIntentAsync(
Intents\RenameIntentProvider.cs (1)
31public async Task<ImmutableArray<IntentProcessorResult>> ComputeIntentAsync(
Interactive\InteractiveEvaluatorLanguageInfoProvider.cs (1)
13public abstract CompilationOptions GetSubmissionCompilationOptions(string name, MetadataReferenceResolver metadataReferenceResolver, SourceReferenceResolver sourceReferenceResolver, ImmutableArray<string> imports);
Interactive\InteractiveSession.cs (16)
62private ImmutableArray<string> _referenceSearchPaths; 63private ImmutableArray<string> _sourceSearchPaths; 176var imports = ImmutableArray<string>.Empty; 177var references = ImmutableArray<MetadataReference>.Empty; 179var initializationScriptImports = ImmutableArray<string>.Empty; 180var initializationScriptReferences = ImmutableArray<MetadataReference>.Empty; 270private Project CreateSubmissionProjectNoLock(Solution solution, ProjectId newSubmissionProjectId, ProjectId? previousSubmissionProjectId, string languageName, ImmutableArray<string> imports, ImmutableArray<MetadataReference> references) 384private static RuntimeMetadataReferenceResolver CreateMetadataReferenceResolver(IMetadataService metadataService, InteractiveHostPlatformInfo platformInfo, ImmutableArray<string> searchPaths, string baseDirectory) 394private static SourceReferenceResolver CreateSourceReferenceResolver(ImmutableArray<string> searchPaths, string baseDirectory) 397public Task SetPathsAsync(ImmutableArray<string> referenceSearchPaths, ImmutableArray<string> sourceSearchPaths, string workingDirectory)
KeywordHighlighting\HighlighterViewTaggerProvider.cs (1)
48protected override ImmutableArray<IOption2> Options { get; } = [KeywordHighlightingOptionsStorage.KeywordHighlighting];
LanguageServer\AbstractInProcLanguageClient.cs (1)
79protected abstract ImmutableArray<string> SupportedLanguages { get; }
LanguageServer\AlwaysActivateInProcLanguageClient.cs (1)
49protected override ImmutableArray<string> SupportedLanguages => ProtocolConstants.RoslynLspLanguages;
LanguageServer\LiveShareInProcLanguageClient.cs (1)
37protected override ImmutableArray<string> SupportedLanguages => ProtocolConstants.RoslynLspLanguages;
LanguageServer\RazorInProcLanguageClient.cs (1)
56protected override ImmutableArray<string> SupportedLanguages => ProtocolConstants.RoslynLspLanguages;
Navigation\AbstractDefinitionLocationService.cs (3)
112async ValueTask<ImmutableArray<DefinitionItem>> GetInterceptorDefinitionsAsync( 178var attributes = method.GetAttributes(); 179var interceptsLocationDatas = InterceptsLocationUtilities.GetInterceptsLocationData(attributes);
NavigationBar\NavigationBarController.cs (1)
239private (ImmutableArray<NavigationBarProjectItem> projectItems, NavigationBarProjectItem? selectedProjectItem) GetProjectItems()
NavigationBar\NavigationBarController_ModelComputation.cs (1)
214ImmutableArray<NavigationBarItem> items, int point, INavigationBarItemService itemsService, CancellationToken cancellationToken)
NavigationBar\NavigationBarModel.cs (2)
11internal sealed class NavigationBarModel(INavigationBarItemService itemService, ImmutableArray<NavigationBarItem> types) : IEquatable<NavigationBarModel> 14public ImmutableArray<NavigationBarItem> Types { get; } = types;
Preview\AbstractPreviewFactoryService.cs (3)
487var allLeftIds = leftSolution.GetRelatedDocumentIds(oldDocument.Id); 494var allRightIds = rightSolution.GetRelatedDocumentIds(newDocument.Id); 677ImmutableArray<ITextDocument> editorDocumentsToClose,
ReferenceHighlighting\NavigateToHighlightReferenceCommandHandler.cs (2)
80private static ImmutableArray<SnapshotSpan> GetTags( 95ImmutableArray<SnapshotSpan> orderedTagSpans,
ReferenceHighlighting\ReferenceHighlightingViewTaggerProvider.cs (1)
46protected override ImmutableArray<IOption2> Options { get; } = [ReferenceHighlightingOptionsStorage.ReferenceHighlighting];
Remote\SolutionChecksumUpdater.cs (1)
224using var _ = ArrayBuilder<(DocumentId id, Checksum textChecksum, ImmutableArray<TextChange> changes, Checksum newTextChecksum)>.GetInstance(out var builder);
RenameTracking\RenameTrackingTaggerProvider.RenameTrackingCodeAction.cs (1)
58protected override Task<ImmutableArray<CodeActionOperation>> ComputeOperationsAsync(
Shared\Extensions\ITextSnapshotExtensions.cs (1)
38var rules = FormattingRuleUtilities.GetFormattingRules(documentSyntax, span, additionalRules: null);
Shared\Tagging\EventSources\TaggerEventSources.ParseOptionChangedEventSource.cs (1)
36var relatedDocumentIds = e.NewSolution.GetRelatedDocumentIds(documentId);
Shared\Utilities\VirtualTreePoint.cs (1)
61private static readonly ImmutableArray<Func<VirtualTreePoint, IComparable>> s_comparers =
Structure\AbstractStructureTaggerProvider.cs (2)
205ImmutableArray<BlockSpan> spans) 256ImmutableArray<BlockSpan> regions, ITextSnapshot snapshot)
Tagging\AbstractAsynchronousTaggerProvider.cs (2)
73protected virtual ImmutableArray<IOption2> Options => []; 79protected virtual ImmutableArray<IOption2> FeatureOptions => [];
Tagging\AggregateTagger.cs (2)
17internal abstract class AbstractAggregateTagger<TTag>(ImmutableArray<EfficientTagger<TTag>> taggers) : EfficientTagger<TTag>, IDisposable 20protected readonly ImmutableArray<EfficientTagger<TTag>> Taggers = taggers;
Tagging\AsynchronousViewportTaggerProvider.cs (2)
43private readonly ImmutableArray<SingleViewportTaggerProvider> _viewportTaggerProviders; 83protected virtual ImmutableArray<IOption2> Options => [];
Tagging\AsynchronousViewportTaggerProvider.SingleViewportTaggerProvider.cs (1)
38protected override ImmutableArray<IOption2> Options
Tagging\TaggerContext.cs (1)
97public void SetSpansTagged(ImmutableArray<SnapshotSpan> spansTagged)
Tags\IImageIdService.cs (1)
17bool TryGetImageId(ImmutableArray<string> tags, out ImageId imageId);
TextDiffing\EditorTextDifferencingService.cs (2)
27public Task<ImmutableArray<TextChange>> GetTextChangesAsync(Document oldDocument, Document newDocument, CancellationToken cancellationToken) 30public async Task<ImmutableArray<TextChange>> GetTextChangesAsync(Document oldDocument, Document newDocument, TextDifferenceTypes preferredDifferenceType, CancellationToken cancellationToken)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (120)
AbstractCommandHandlerTestState.cs (2)
60ImmutableArray<string> roles = default) 85if (cursorDocument.AnnotatedSpans.TryGetValue("Selection", out var selectionSpanList))
AutomaticCompletion\AbstractAutomaticLineEnderTests.cs (1)
44TestFileMarkupParser.GetPositionsAndSpans(markupCode, out var code, out var positions, out _);
BraceHighlighting\AbstractBraceHighlightingTests.cs (1)
27out var text, out var cursorPosition, out var expectedSpans);
BraceMatching\AbstractBraceMatcherTests.cs (1)
32MarkupTestFile.GetSpans(expectedCode, out var parsedExpectedCode, out var expectedSpans);
BracePairs\AbstractBracePairsTests.cs (1)
49private static bool FindMatch(IDictionary<string, ImmutableArray<TextSpan>> expected, BracePairData bracePair)
ChangeSignature\TestChangeSignatureOptionsService.cs (1)
29var list = parameters.ToListOfParameters();
Classification\AbstractClassifierTests.cs (12)
27protected abstract Task<ImmutableArray<ClassifiedSpan>> GetClassificationSpansAsync(string text, ImmutableArray<TextSpan> spans, ParseOptions? parseOptions, TestHost testHost); 43ImmutableArray<TextSpan> spans; 63var actual = await GetClassificationSpansAsync(allCode, spans, parseOptions, testHost); 268protected static async Task<ImmutableArray<ClassifiedSpan>> GetSemanticClassificationsAsync(Document document, ImmutableArray<TextSpan> spans) 279protected static async Task<ImmutableArray<ClassifiedSpan>> GetSyntacticClassificationsAsync(Document document, ImmutableArray<TextSpan> spans) 289protected static async Task<ImmutableArray<ClassifiedSpan>> GetAllClassificationsAsync(Document document, ImmutableArray<TextSpan> spans) 291var semanticClassifications = await GetSemanticClassificationsAsync(document, spans); 292var syntacticClassifications = await GetSyntacticClassificationsAsync(document, spans);
CommentSelection\AbstractToggleCommentTestBase.cs (1)
70MarkupTestFile.GetSpans(expectedText, out var actualExpectedText, out var expectedSpans);
CompleteStatement\AbstractCompleteStatementTests.cs (1)
40TestFileMarkupParser.GetPositionsAndSpans(initialMarkup, out var output, out var positions, out var spans);
Completion\AbstractArgumentProviderTests`1.cs (3)
43protected abstract (SyntaxNode argumentList, ImmutableArray<SyntaxNode> arguments) GetArgumentList(SyntaxToken token); 112static int GetMinimumArgumentCount(ImmutableArray<IParameterSymbol> parameters) 115static int GetMaximumArgumentCount(ImmutableArray<IParameterSymbol> parameters)
Completion\AbstractCompletionProviderTests.cs (1)
105var completionProviders = completionService.GetTestAccessor().GetImportedAndBuiltInProviders(ImmutableHashSet<string>.Empty);
Diagnostics\DiagnosticTaggerWrapper.cs (1)
34IReadOnlyDictionary<string, ImmutableArray<DiagnosticAnalyzer>>? analyzerMap = null,
Diagnostics\MockDiagnosticAnalyzerService.cs (6)
38public void AddDiagnostics(ImmutableArray<DiagnosticData> diagnostics, DiagnosticKind diagnosticKind) 58public Task<ImmutableArray<DiagnosticData>> GetCachedDiagnosticsAsync(Workspace workspace, ProjectId? projectId, DocumentId? documentId, bool includeSuppressedDiagnostics, bool includeLocalDocumentDiagnostics, bool includeNonLocalDocumentDiagnostics, CancellationToken cancellationToken) 61public Task<ImmutableArray<DiagnosticData>> GetDiagnosticsAsync(Solution solution, ProjectId? projectId, DocumentId? documentId, bool includeSuppressedDiagnostics, bool includeNonLocalDocumentDiagnostics, CancellationToken cancellationToken) 64public Task<ImmutableArray<DiagnosticData>> GetDiagnosticsForIdsAsync(Solution solution, ProjectId? projectId, DocumentId? documentId, ImmutableHashSet<string>? diagnosticIds, Func<DiagnosticAnalyzer, bool>? shouldIncludeAnalyzer, Func<Project, DocumentId?, IReadOnlyList<DocumentId>>? getDocuments, bool includeSuppressedDiagnostics, bool includeLocalDocumentDiagnostics, bool includeNonLocalDocumentDiagnostics, CancellationToken cancellationToken) 67public Task<ImmutableArray<DiagnosticData>> GetDiagnosticsForSpanAsync(TextDocument document, TextSpan? range, Func<string, bool>? shouldIncludeDiagnostic, bool includeCompilerDiagnostics, bool includeSuppressedDiagnostics, ICodeActionRequestPriorityProvider priorityProvider, DiagnosticKind diagnosticKind, bool isExplicit, CancellationToken cancellationToken) 70public Task<ImmutableArray<DiagnosticData>> GetProjectDiagnosticsForIdsAsync(Solution solution, ProjectId? projectId, ImmutableHashSet<string>? diagnosticIds, Func<DiagnosticAnalyzer, bool>? shouldIncludeAnalyzer, bool includeSuppressedDiagnostics, bool includeNonLocalDocumentDiagnostics, CancellationToken cancellationToken)
DocumentTracking\FirstDocumentIsActiveAndVisibleDocumentTrackingService.cs (1)
28public ImmutableArray<DocumentId> GetVisibleDocuments()
DocumentTracking\TestDocumentTrackingService.cs (1)
30public ImmutableArray<DocumentId> GetVisibleDocuments()
EditorFactory.cs (1)
62ImmutableArray<string> roles)
Formatting\CoreFormatterTestsBase.cs (4)
206ImmutableArray<AbstractFormattingRule> rules = [formattingRuleProvider.CreateRule(documentSyntax, 0), .. Formatter.GetDefaultFormattingRules(document)]; 213internal void AssertFormatWithTransformation(Workspace workspace, string expected, SyntaxFormattingOptions options, ImmutableArray<AbstractFormattingRule> rules, SyntaxNode root, IEnumerable<TextSpan> spans) 226internal void AssertFormat(Workspace workspace, string expected, SyntaxFormattingOptions options, ImmutableArray<AbstractFormattingRule> rules, ITextBuffer clonedBuffer, SyntaxNode root, IEnumerable<TextSpan> spans) 276TestFileMarkupParser.GetSpans(markupCode, out var code, out ImmutableArray<TextSpan> spans);
LanguageServer\AbstractLanguageServerProtocolTests.cs (6)
85public Task<ImmutableArray<MappedSpanResult>> MapSpansAsync(Document document, IEnumerable<TextSpan> spans, CancellationToken cancellationToken) 87ImmutableArray<MappedSpanResult> mappedResult = default; 96public Task<ImmutableArray<(string mappedFilePath, TextChange mappedTextChange)>> GetMappedTextChangesAsync( 260ImmutableArray<char>? commitCharacters = null, 504ImmutableArray<(LSP.Range Range, string Text)> changes) 793internal ImmutableArray<SourceText> GetTrackedTexts() => GetManager().GetTrackedLspText().Values.Select(v => v.Text).ToImmutableArray();
LanguageServer\AbstractLspBuildOnlyDiagnosticsTests.cs (1)
20protected abstract ImmutableArray<string> ExpectedDiagnosticCodes { get; }
MoveStaticMembers\TestMoveStaticMembersService.cs (3)
29public ImmutableArray<string> SelectedMembers { get; set; } 31public ImmutableArray<string> ExpectedPrecheckedMembers { get; set; } 37public MoveStaticMembersOptions GetMoveMembersToTypeOptions(Document document, INamedTypeSymbol selectedType, ImmutableArray<ISymbol> selectedNodeSymbols)
MoveToNamespace\TestMoveToNamespaceOptionsService.cs (1)
28public MoveToNamespaceOptionsResult GetChangeNamespaceOptions(string defaultNamespace, ImmutableArray<string> availableNamespaces, ISyntaxFacts syntaxFactsService)
NavigateTo\AbstractNavigateToTests.cs (21)
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); 198MarkupTestFile.GetSpans(displayMarkup, out displayMarkup, out var expectedDisplayNameSpans); 226private static readonly ImmutableArray<Func<NavigateToItem, IComparable>> s_comparisonComponents = 246public ImmutableArray<DocumentId> GetVisibleDocuments()
ObsoleteSymbol\AbstractObsoleteSymbolTests.cs (2)
29var documents = project.Documents.ToImmutableArray(); 37var textSpans = ImmutableArray.Create(new TextSpan(0, text.Length));
PullMemberUp\TestPullMemberUpService.cs (2)
29public PullMembersUpOptions GetPullMemberUpOptions(Document document, ImmutableArray<ISymbol> selectedNodeSymbols) 38var allInterfaces = containingType.AllInterfaces;
QuickInfo\AbstractSemanticQuickInfoSourceTests.cs (4)
51ImmutableArray<QuickInfoSection> sections, 56var text = textBlock != null ? textBlock.TaggedParts : ImmutableArray<TaggedText>.Empty; 62ImmutableArray<TaggedText> taggedText,
ReassignedVariable\AbstractReassignedVariableTests.cs (2)
28var documents = project.Documents.ToImmutableArray(); 36var textSpans = ImmutableArray.Create(new TextSpan(0, text.Length));
RefactoringHelpers\RefactoringHelpersTestBase.cs (5)
73MarkupTestFile.GetSpans(text, out text, out IDictionary<string, ImmutableArray<TextSpan>> spans); 76!spans.TryGetValue(string.Empty, out var selections) || selections.Length != 1) 87MarkupTestFile.GetSpans(text, out text, out IDictionary<string, ImmutableArray<TextSpan>> spans); 90!spans.TryGetValue(string.Empty, out var selections) || selections.Length != 1 || 91!spans.TryGetValue("result", out var results) || results.Length != 1)
SignatureHelp\AbstractSignatureHelpProviderTests.cs (1)
85out var textSpans);
SignatureHelp\SignatureHelpTestItem.cs (2)
53public readonly ImmutableArray<string>? ClassificationTypeNames; 63ImmutableArray<string>? classificationTypeNames = null)
SpellCheck\AbstractSpellCheckSpanTests.cs (3)
32var expected = Flatten(annotations); 40private static ImmutableArray<SpellCheckSpan> Flatten(IDictionary<string, ImmutableArray<TextSpan>> annotations)
Squiggles\SquiggleUtilities.cs (3)
30internal static async Task<ImmutableArray<TagSpan<TTag>>> GetTagSpansAsync<TProvider, TTag>( 32IReadOnlyDictionary<string, ImmutableArray<DiagnosticAnalyzer>> analyzerMap = null) 45var spans = tagger.GetTags(snapshot.GetSnapshotSpanCollection()).ToImmutableArray();
Squiggles\TestDiagnosticTagProducer.cs (3)
20internal static Task<ImmutableArray<TagSpan<TTag>>> GetTagSpansAsync( 22IReadOnlyDictionary<string, ImmutableArray<DiagnosticAnalyzer>>? analyzerMap = null) 42customTags: ImmutableArray<string>.Empty,
Structure\AbstractSyntaxNodeStructureProviderTests.cs (1)
23internal sealed override async Task<ImmutableArray<BlockSpan>> GetBlockSpansWorkerAsync(Document document, BlockStructureOptions options, int position)
Structure\AbstractSyntaxStructureProviderTests.cs (3)
33private Task<ImmutableArray<BlockSpan>> GetBlockSpansAsync(Document document, BlockStructureOptions options, int position) 36internal abstract Task<ImmutableArray<BlockSpan>> GetBlockSpansWorkerAsync(Document document, BlockStructureOptions options, int position); 85IDictionary<string, ImmutableArray<TextSpan>> spans)
Structure\AbstractSyntaxTriviaStructureProviderTests.cs (1)
20internal sealed override async Task<ImmutableArray<BlockSpan>> GetBlockSpansWorkerAsync(Document document, BlockStructureOptions options, int position)
TaskList\AbstractTaskListTests.cs (1)
31var descriptors = TaskListOptions.Default.Descriptors;
TextEditorFactoryExtensions.cs (1)
19public static DisposableTextView CreateDisposableTextView(this ITextEditorFactoryService textEditorFactory, ITextBuffer buffer, ImmutableArray<string> roles = default)
Workspaces\EditorTestHostDocument.cs (4)
23private static readonly ImmutableArray<string> s_defaultRoles = ImmutableArray.Create<string> 30private readonly ImmutableArray<string> _roles; 51IDictionary<string, ImmutableArray<TextSpan>> spans, 56ImmutableArray<string> roles = default,
Workspaces\EditorTestWorkspace.cs (8)
67IDictionary<string, ImmutableArray<TextSpan>> spans, 263mappedSpans[string.Empty] = mappedSpans.TryGetValue(string.Empty, out var emptyTextSpans) 265: ImmutableArray<TextSpan>.Empty; 279mappedSpans[key] = mappedSpans.TryGetValue(key, out var textSpans) ? textSpans : ImmutableArray<TextSpan>.Empty; 314out Dictionary<string, ImmutableArray<TextSpan>> mappedMarkupSpans, out int? mappedCaretLocation) 409IDictionary<string, ImmutableArray<TextSpan>> markupSpans, 410out Dictionary<string, ImmutableArray<TextSpan>> mappedMarkupSpans,
Workspaces\NoCompilationDocumentDiagnosticAnalyzer.cs (3)
22public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(Descriptor); 24public override Task<ImmutableArray<Diagnostic>> AnalyzeSemanticsAsync(Document document, CancellationToken cancellationToken) 27public override Task<ImmutableArray<Diagnostic>> AnalyzeSyntaxAsync(Document document, CancellationToken cancellationToken)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities2 (5)
Intellisense\MockCompletionPresenter.vb (2)
14Private _filters As ImmutableArray(Of CompletionFilterWithState) 63Public Function GetFilters() As ImmutableArray(Of CompletionFilterWithState)
Intellisense\TestState.vb (3)
62Optional roles As ImmutableArray(Of String) = Nothing) 555Public Async Function RaiseFiltersChangedAndWaitForUiRenderAsync(args As ImmutableArray(Of Data.CompletionFilterWithState)) As Task 563Public Function GetCompletionItemFilters() As ImmutableArray(Of Data.CompletionFilterWithState)
Microsoft.CodeAnalysis.EditorFeatures.Text (1)
Extensions.TextBufferContainer.cs (1)
113var changes = ImmutableArray.CreateRange(args.Changes.Select(c => new TextChangeRange(new TextSpan(c.OldSpan.Start, c.OldSpan.Length), c.NewLength)));
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (315)
CodeFixes\CodeFixServiceTests.cs (61)
131var analyzers = ImmutableArray.Create<DiagnosticAnalyzer>(analyzerWithFix, analyzerWithoutFix); 164var documentDiagnosticAnalyzer = new MockAnalyzerReference.MockDocumentDiagnosticAnalyzer(reportedDiagnosticIds: ImmutableArray<string>.Empty); 167var analyzers = ImmutableArray.Create<DiagnosticAnalyzer>(documentDiagnosticAnalyzer); 196var analyzers = ImmutableArray<DiagnosticAnalyzer>.Empty; 198var generators = ImmutableArray.Create<ISourceGenerator>(generator); 201var codeFixes = ImmutableArray.Create<CodeFixProvider>(codeFix); 278private static Task<ImmutableArray<CodeFixCollection>> GetAddedFixesWithExceptionValidationAsync(CodeFixProvider codefix) 281private static async Task<ImmutableArray<CodeFixCollection>> GetAddedFixesAsync(CodeFixProvider codefix, DiagnosticAnalyzer diagnosticAnalyzer, bool exception = false, bool throwExceptionInFixerCreation = false) 336ImmutableArray<CodeFixProvider> codefixers, 424public sealed override ImmutableArray<string> FixableDiagnosticIds 448public readonly ImmutableArray<CodeFixProvider> Fixers; 449public readonly ImmutableArray<DiagnosticAnalyzer> Analyzers; 450public readonly ImmutableArray<ISourceGenerator> Generators; 452private static readonly ImmutableArray<CodeFixProvider> s_defaultFixers = ImmutableArray.Create<CodeFixProvider>(new MockFixer()); 453private static readonly ImmutableArray<DiagnosticAnalyzer> s_defaultAnalyzers = ImmutableArray.Create<DiagnosticAnalyzer>(new MockDiagnosticAnalyzer()); 455public MockAnalyzerReference(ImmutableArray<CodeFixProvider> fixers, ImmutableArray<DiagnosticAnalyzer> analyzers, ImmutableArray<ISourceGenerator> generators) 462public MockAnalyzerReference(ImmutableArray<CodeFixProvider> fixers, ImmutableArray<DiagnosticAnalyzer> analyzers) 463: this(fixers, analyzers, ImmutableArray<ISourceGenerator>.Empty) 467public MockAnalyzerReference(CodeFixProvider? fixer, ImmutableArray<DiagnosticAnalyzer> analyzers) 468: this(fixer != null ? ImmutableArray.Create(fixer) : ImmutableArray<CodeFixProvider>.Empty, 507public override ImmutableArray<DiagnosticAnalyzer> GetAnalyzers(string language) 510public override ImmutableArray<DiagnosticAnalyzer> GetAnalyzersForAllLanguages() 511=> ImmutableArray<DiagnosticAnalyzer>.Empty; 513public override ImmutableArray<ISourceGenerator> GetGenerators(string language) 516public ImmutableArray<CodeFixProvider> GetFixers() 519private static ImmutableArray<DiagnosticDescriptor> CreateSupportedDiagnostics(ImmutableArray<(string id, string category)> reportedDiagnosticIdsWithCategories) 533public MockDiagnosticAnalyzer(ImmutableArray<(string id, string category)> reportedDiagnosticIdsWithCategories) 541public MockDiagnosticAnalyzer(ImmutableArray<string> reportedDiagnosticIds) 553public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } 571public MockDocumentDiagnosticAnalyzer(ImmutableArray<(string id, string category)> reportedDiagnosticIdsWithCategories) 574public MockDocumentDiagnosticAnalyzer(ImmutableArray<string> reportedDiagnosticIds) 586public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } 588public override Task<ImmutableArray<Diagnostic>> AnalyzeSyntaxAsync(Document document, CancellationToken cancellationToken) 591return Task.FromResult(ImmutableArray<Diagnostic>.Empty); 594public override Task<ImmutableArray<Diagnostic>> AnalyzeSemanticsAsync(Document document, CancellationToken cancellationToken) 597return Task.FromResult(ImmutableArray<Diagnostic>.Empty); 645var fixableDiagnosticIds = ImmutableArray.Create(MockFixer.Id); 676var fixes = await GetNuGetAndVsixCodeFixersCoreAsync(nugetFixer, vsixFixer, diagnosticAnalyzer); 688var reportedDiagnosticIds = ImmutableArray.Create(id1, id2); 697expectedDiagnosticIdsWithRegisteredCodeActionsByVsixFixer: ImmutableArray<string>.Empty, 704expectedDiagnosticIdsWithRegisteredCodeActionsByNuGetFixer: ImmutableArray<string>.Empty, 715expectedDiagnosticIdsWithRegisteredCodeActionsByVsixFixer: ImmutableArray<string>.Empty, 740ImmutableArray<string> expectedDiagnosticIdsWithRegisteredCodeActionsByNuGetFixer, 742ImmutableArray<string> expectedDiagnosticIdsWithRegisteredCodeActionsByVsixFixer, 757private static async Task<ImmutableArray<CodeFixCollection>> GetNuGetAndVsixCodeFixersCoreAsync( 777var analyzers = ImmutableArray.Create<DiagnosticAnalyzer>(diagnosticAnalyzer); 788public NuGetCodeFixProvider(ImmutableArray<string> fixableDiagnsoticIds) 796public VsixCodeFixProvider(ImmutableArray<string> fixableDiagnsoticIds) 806protected AbstractNuGetOrVsixCodeFixProvider(ImmutableArray<string> fixableDiagnsoticIds, string name) 812public override ImmutableArray<string> FixableDiagnosticIds { get; } 847public override ImmutableArray<string> FixableDiagnosticIds => ImmutableArray.Create(_diagnosticId); 877var fixers = ImmutableArray.Create<CodeFixProvider>(fixer1, fixer2, fixer3, fixer4); 913public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(_descriptor); 940public sealed override ImmutableArray<string> FixableDiagnosticIds => ImmutableArray.Create(AdditionalFileAnalyzer.DiagnosticId); 1179public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(Descriptor); 1220public override ImmutableArray<string> FixableDiagnosticIds => ImmutableArray.Create(DeprioritizedAnalyzer.Descriptor.Id);
CodeFixes\ErrorCases\CodeFixExceptionInFixableDiagnosticIds.cs (1)
16public sealed override ImmutableArray<string> FixableDiagnosticIds
CodeFixes\ErrorCases\CodeFixExceptionInFixableDiagnosticIds2.cs (1)
15public sealed override ImmutableArray<string> FixableDiagnosticIds => new ImmutableArray<string>();
CodeFixes\ErrorCases\CodeFixExceptionInGetFixAllProvider.cs (1)
17public sealed override ImmutableArray<string> FixableDiagnosticIds
CodeFixes\ErrorCases\CodeFixExceptionInRegisterMethod.cs (1)
16public sealed override ImmutableArray<string> FixableDiagnosticIds
CodeFixes\ErrorCases\CodeFixExceptionInRegisterMethodAsync.cs (1)
16public sealed override ImmutableArray<string> FixableDiagnosticIds
CodeFixes\ExtensionOrderingTests.cs (2)
130var expectedOrder = ExtensionOrderer.Order(langProviders).Select(lazy => lazy.Value).ToImmutableArray(); 137var actualOrder = codeFixPriorityMap.OrderBy(kvp => kvp.Value).Select(kvp => kvp.Key).ToImmutableArray();
CodeGeneration\CodeGenerationTests.cs (49)
105ImmutableArray<Func<SemanticModel, IParameterSymbol>> parameters = default, 106ImmutableArray<SyntaxNode> statements = default, 107ImmutableArray<SyntaxNode> baseArguments = default, 108ImmutableArray<SyntaxNode> thisArguments = default, 112var parameterSymbols = GetParameterSymbols(parameters, testContext); 139Func<SemanticModel, ImmutableArray<IMethodSymbol>> getExplicitInterfaces = null, 140ImmutableArray<ITypeParameterSymbol> typeParameters = default, 141ImmutableArray<Func<SemanticModel, IParameterSymbol>> parameters = default, 143ImmutableArray<SyntaxNode> handlesExpressions = default, 152var parameterSymbols = GetParameterSymbols(parameters, testContext); 153var parsedStatements = testContext.ParseStatements(statements); 154var explicitInterfaceImplementations = GetMethodSymbols(getExplicitInterfaces, testContext); 184ImmutableArray<Func<SemanticModel, IParameterSymbol>> parameters = default, 197var parameterSymbols = GetParameterSymbols(parameters, testContext); 198var parsedStatements = testContext.ParseStatements(statements); 224ImmutableArray<Func<SemanticModel, IParameterSymbol>> parameters = default, 229var parameterSymbols = GetParameterSymbols(parameters, testContext); 230var parsedStatements = testContext.ParseStatements(statements); 279var parsedStatements = testContext.ParseStatements(statements); 311var parsedStatements = testContext.ParseStatements(statements); 322ImmutableArray<Func<SemanticModel, IParameterSymbol>> parameters, 326var parameterSymbols = GetParameterSymbols(parameters, testContext); 342ImmutableArray<ITypeParameterSymbol> typeParameters = default, 343ImmutableArray<Func<SemanticModel, IParameterSymbol>> parameters = default, 347var parameterSymbols = GetParameterSymbols(parameters, testContext); 371ImmutableArray<AttributeData> attributes = default, 374ImmutableArray<Func<SemanticModel, IParameterSymbol>> parameters = default, 376Func<SemanticModel, ImmutableArray<IEventSymbol>> getExplicitInterfaceImplementations = null, 385var parameterSymbols = GetParameterSymbols(parameters, testContext); 417ImmutableArray<IPropertySymbol> explicitInterfaceImplementations = default, 418ImmutableArray<Func<SemanticModel, IParameterSymbol>> parameters = default, 439var getParameterSymbols = GetParameterSymbols(parameters, testContext); 440var setParameterSymbols = getParameterSymbols == null 507ImmutableArray<ITypeParameterSymbol> typeParameters = default, 509ImmutableArray<INamedTypeSymbol> interfaces = default, 511ImmutableArray<Func<SemanticModel, ISymbol>> members = default, 515var memberSymbols = GetSymbols(members, testContext); 571ImmutableArray<Func<SemanticModel, ISymbol>> getNewMembers = default, 597var newMembersToAdd = GetSymbols(getNewMembers, testContext); 678internal static ImmutableArray<Func<SemanticModel, IParameterSymbol>> Parameters(params Func<SemanticModel, IParameterSymbol>[] p) 681internal static ImmutableArray<Func<SemanticModel, ISymbol>> Members(params Func<SemanticModel, ISymbol>[] m) 687private static ImmutableArray<IParameterSymbol> GetParameterSymbols(ImmutableArray<Func<SemanticModel, IParameterSymbol>> parameters, TestContext context) 692private static ImmutableArray<IMethodSymbol> GetMethodSymbols( 693Func<SemanticModel, ImmutableArray<IMethodSymbol>> explicitInterface, TestContext context) 698private static ImmutableArray<ISymbol> GetSymbols(ImmutableArray<Func<SemanticModel, ISymbol>> members, TestContext context) 897var annotatedSpans = Workspace.Documents.Single().AnnotatedSpans[key]; 923public ImmutableArray<SyntaxNode> ParseStatements(string statements)
CodeGeneration\CodeGenerationTests.CSharp.cs (6)
493addMethod: CodeGenerationSymbolFactory.CreateAccessorSymbol(ImmutableArray<AttributeData>.Empty, Accessibility.NotApplicable, ImmutableArray<SyntaxNode>.Empty), 494removeMethod: CodeGenerationSymbolFactory.CreateAccessorSymbol(ImmutableArray<AttributeData>.Empty, Accessibility.NotApplicable, ImmutableArray<SyntaxNode>.Empty), 1465var getMembers = ImmutableArray.Create(getField); 1491var getMembers = ImmutableArray.Create(getField);
CodeGeneration\CodeGenerationTests.VisualBasic.cs (12)
409static ImmutableArray<IEventSymbol> GetExplicitInterfaceEvent(SemanticModel semanticModel) 424ImmutableArray<AttributeData>.Empty, Accessibility.NotApplicable, ImmutableArray<SyntaxNode>.Empty), 448addMethod: CodeGenerationSymbolFactory.CreateAccessorSymbol(ImmutableArray<AttributeData>.Empty, Accessibility.NotApplicable, ImmutableArray<SyntaxNode>.Empty), 472var addStatements = ImmutableArray.Create<SyntaxNode>(VB.SyntaxFactory.ParseExecutableStatement("Console.WriteLine(0)")); 473var removeStatements = ImmutableArray.Create<SyntaxNode>(VB.SyntaxFactory.ParseExecutableStatement("Console.WriteLine(1)")); 474var raiseStatements = ImmutableArray.Create<SyntaxNode>(VB.SyntaxFactory.ParseExecutableStatement("Console.WriteLine(2)")); 477ImmutableArray<AttributeData>.Empty, Accessibility.NotApplicable, addStatements), 479ImmutableArray<AttributeData>.Empty, Accessibility.NotApplicable, removeStatements), 481ImmutableArray<AttributeData>.Empty, Accessibility.NotApplicable, raiseStatements), 1535var getMembers = ImmutableArray.Create(getField);
CodeRefactorings\CodeRefactoringServiceTest.cs (6)
131private readonly ImmutableArray<CodeRefactoringProvider> _refactorings; 144public override ImmutableArray<DiagnosticAnalyzer> GetAnalyzers(string language) 145=> ImmutableArray<DiagnosticAnalyzer>.Empty; 147public override ImmutableArray<DiagnosticAnalyzer> GetAnalyzersForAllLanguages() 148=> ImmutableArray<DiagnosticAnalyzer>.Empty; 150public ImmutableArray<CodeRefactoringProvider> GetRefactorings()
Completion\CompletionServiceTests.cs (5)
85public override ImmutableArray<DiagnosticAnalyzer> GetAnalyzers(string language) 86=> ImmutableArray<DiagnosticAnalyzer>.Empty; 88public override ImmutableArray<DiagnosticAnalyzer> GetAnalyzersForAllLanguages() 89=> ImmutableArray<DiagnosticAnalyzer>.Empty; 91public ImmutableArray<CompletionProvider> GetCompletionProviders()
Completion\FileSystemCompletionHelperTests.cs (3)
17private static void AssertItemsEqual(ImmutableArray<CompletionItem> actual, params string[] expected) 129searchPaths: ImmutableArray<string>.Empty, 161searchPaths: ImmutableArray<string>.Empty,
Completion\TestFileSystemCompletionHelper.cs (6)
20private readonly ImmutableArray<string> _directories; 21private readonly ImmutableArray<string> _files; 22private readonly ImmutableArray<string> _drives; 25ImmutableArray<string> searchPaths, 27ImmutableArray<string> allowableExtensions, 56private static IEnumerable<string> Enumerate(ImmutableArray<string> entries, string fullDirectoryPath)
Diagnostics\DiagnosticAnalyzerServiceTests.cs (30)
218Func<bool, bool, ImmutableArray<DiagnosticData>, (bool, bool)> resultSetter, 429var analyzers = ImmutableArray.Create<DiagnosticAnalyzer>(analyzer); 556var analyzers = ImmutableArray.Create<DiagnosticAnalyzer>( 894private static (bool, bool) AnalyzerResultSetter(bool syntax, bool semantic, ImmutableArray<DiagnosticData> diagnostics) 905private static (bool, bool) CompilerAnalyzerResultSetter(bool syntax, bool semantic, ImmutableArray<DiagnosticData> diagnostics) 919public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(s_syntaxRule, s_semanticRule, s_compilationRule); 935public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(s_syntaxRule, s_semanticRule, s_compilationRule); 949public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(s_syntaxRule); 951public override Task<ImmutableArray<Diagnostic>> AnalyzeSyntaxAsync(Document document, CancellationToken cancellationToken) 954public override Task<ImmutableArray<Diagnostic>> AnalyzeSemanticsAsync(Document document, CancellationToken cancellationToken) 955=> SpecializedTasks.Default<ImmutableArray<Diagnostic>>(); 989public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray<DiagnosticDescriptor>.Empty; 990public override Task<ImmutableArray<Diagnostic>> AnalyzeSemanticsAsync(Document document, CancellationToken cancellationToken) 991=> Task.FromResult(ImmutableArray<Diagnostic>.Empty); 992public override Task<ImmutableArray<Diagnostic>> AnalyzeSyntaxAsync(Document document, CancellationToken cancellationToken) 993=> Task.FromResult(ImmutableArray<Diagnostic>.Empty); 1002public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray<DiagnosticDescriptor>.Empty; 1003public override Task<ImmutableArray<Diagnostic>> AnalyzeProjectAsync(Project project, CancellationToken cancellationToken) 1004=> Task.FromResult(ImmutableArray<Diagnostic>.Empty); 1011public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(s_syntaxRule); 1013public override async Task<ImmutableArray<Diagnostic>> AnalyzeSyntaxAsync(Document document, CancellationToken cancellationToken) 1019public override Task<ImmutableArray<Diagnostic>> AnalyzeSemanticsAsync(Document document, CancellationToken cancellationToken) 1020=> SpecializedTasks.Default<ImmutableArray<Diagnostic>>(); 1026public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(s_rule); 1027public override Task<ImmutableArray<Diagnostic>> AnalyzeProjectAsync(Project project, CancellationToken cancellationToken) => SpecializedTasks.Default<ImmutableArray<Diagnostic>>(); 1034private readonly ImmutableArray<DiagnosticDescriptor> _supportedDiagnostics; 1039public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => _supportedDiagnostics;
Diagnostics\DiagnosticDataTests.cs (5)
123customTags: ImmutableArray<string>.Empty, 156customTags: ImmutableArray<string>.Empty, 202customTags: ImmutableArray<string>.Empty, 205additionalLocations: ImmutableArray<DiagnosticDataLocation>.Empty, 250customTags: ImmutableArray<string>.Empty,
Diagnostics\IDEDiagnosticIDConfigurationTests.cs (3)
25private static ImmutableArray<(string diagnosticId, ImmutableHashSet<IOption2> codeStyleOptions)> GetIDEDiagnosticIdsAndOptions( 112var diagnosticIdAndOptions = GetIDEDiagnosticIdsAndOptions(languageName); 710var diagnosticIdAndOptions = GetIDEDiagnosticIdsAndOptions(languageName);
EmbeddedLanguages\StackFrame\StackFrameSyntaxFactory.cs (14)
21public static StackFrameToken CreateToken(StackFrameKind kind, string s, ImmutableArray<StackFrameTrivia> leadingTrivia = default, ImmutableArray<StackFrameTrivia> trailingTrivia = default) 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); 33public static ImmutableArray<StackFrameTrivia> CreateTriviaArray(params string[] strings) 75static ImmutableArray<StackFrameNodeOrToken> CommaSeparateList(StackFrameParameterDeclarationNode[] parameters) 104public static StackFrameQualifiedNameNode QualifiedName(string s, ImmutableArray<StackFrameTrivia> leadingTrivia, ImmutableArray<StackFrameTrivia> trailingTrivia) 116current = Identifier(IdentifierToken(identifier, leadingTrivia: leadingTrivia, trailingTrivia: ImmutableArray<StackFrameTrivia>.Empty)); 120var rhs = Identifier(IdentifierToken(identifier, leadingTrivia: ImmutableArray<StackFrameTrivia>.Empty, trailingTrivia: trailingTrivia)); 145public static StackFrameToken IdentifierToken(string identifierName, ImmutableArray<StackFrameTrivia> leadingTrivia, ImmutableArray<StackFrameTrivia> trailingTrivia)
InheritanceMargin\InheritanceMarginTests.cs (12)
101if (testHostDocument.AnnotatedSpans.TryGetValue(SearchAreaTag, out var spans) && spans.IsSingle()) 115var sortedExpectedItems = memberItems.OrderBy(item => item.LineNumber).ToImmutableArray(); 130var expectedTargets = expectedItem.Targets 221public readonly ImmutableArray<TargetInfo> Targets; 226ImmutableArray<TargetInfo> targets) 240public readonly ImmutableArray<string> LocationTags; 269LocationTags = ImmutableArray<string>.Empty; 287public readonly ImmutableArray<DocumentSpan> DocumentSpans; 295ImmutableArray<DocumentSpan> documentSpans, 317ImmutableArray<DocumentSpan>.Empty, 335if (annotatedSpans.TryGetValue(tag, out var spans)) 450targets: ImmutableArray<TargetInfo>.Empty
Options\GlobalOptionsTests.cs (3)
74public ImmutableArray<object?> GetOptions(ImmutableArray<OptionKey2> optionKeys) 89public bool SetGlobalOptions(ImmutableArray<KeyValuePair<OptionKey2, object?>> options)
Preview\PreviewWorkspaceTests.cs (3)
139var analyzers = ImmutableArray.Create<DiagnosticAnalyzer>(new CommonDiagnosticAnalyzers.NotConfigurableDiagnosticAnalyzer()); 163private static void ExecuteAnalyzers(PreviewWorkspace previewWorkspace, ImmutableArray<DiagnosticAnalyzer> analyzers) 165var analyzerOptions = new AnalyzerOptions(additionalFiles: ImmutableArray<AdditionalText>.Empty);
Snippets\RoslynLSPSnippetConvertTests.cs (8)
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; 490MarkupTestFile.GetPositionAndSpans(markup, out var text, out var cursorPosition, out IDictionary<string, ImmutableArray<TextSpan>> placeholderDictionary); 493var placeholders = GetSnippetPlaceholders(text, placeholderDictionary); 501private static ImmutableArray<SnippetPlaceholder> GetSnippetPlaceholders(string text, IDictionary<string, ImmutableArray<TextSpan>> placeholderDictionary) 508var spans = kvp.Value; 510var placeholders = spans.Select(span => span.Start).ToImmutableArray();
StackTraceExplorer\StackTraceExplorerTests.cs (1)
65private static void AssertContents(ImmutableArray<ParsedFrame> frames, params string[] contents)
Structure\BlockStructureServiceTests.cs (5)
40var spans = await GetSpansFromWorkspaceAsync(workspace); 64var spans = await GetSpansFromWorkspaceAsync(workspace); 88var spans = await GetSpansFromWorkspaceAsync(workspace); 105var spans = await GetSpansFromWorkspaceAsync(workspace); 112private static async Task<ImmutableArray<BlockSpan>> GetSpansFromWorkspaceAsync(
SuggestedActions\SuggestedActionSourceProviderTests.cs (1)
20var attributes = typeof(SuggestedActionsSourceProvider).GetCustomAttributes(inherit: false)
UnusedReferences\ProjectAssets\ProjectAssetsReaderTests.cs (4)
31var realizedReferences = ProjectAssetsReader.AddDependencyHierarchies(references, projectAssets); 41var realizedReferences = ProjectAssetsReader.AddDependencyHierarchies(references, projectAssets); 52var realizedReferences = ProjectAssetsReader.AddDependencyHierarchies(differentReference, projectAssets); 62var realizedReferences = ProjectAssetsReader.AddDependencyHierarchies(references, projectAssets);
UnusedReferences\ProjectAssets\TestProjectAssetsFile.cs (3)
16public static ProjectAssetsFile Create(int version, string targetFramework, ImmutableArray<ReferenceInfo> references) 35private static void FlattenReferences(ImmutableArray<ReferenceInfo> references, List<ReferenceInfo> allReferences) 87private static Dictionary<string, string> BuildDependencies(ImmutableArray<ReferenceInfo> references)
UnusedReferences\UnusedReferencesRemoverTests.cs (17)
32var unusedReferences = GetUnusedReferences(usedAssemblies, usedProjectAssemblyNames: Empty, usedReference); 43var unusedReferences = GetUnusedReferences(usedAssemblies, usedProjectAssemblyNames: Empty, usedReference); 54var unusedReferences = GetUnusedReferences(usedCompilationAssemblies: Empty, usedProjects, usedReference); 65var unusedReferences = GetUnusedReferences(usedAssemblies, usedProjectAssemblyNames: Empty, unusedReference); 77var unusedReferences = GetUnusedReferences(usedAssemblies, usedProjectAssemblyNames: Empty, transitivelyUsedReference); 88var unusedReferences = GetUnusedReferences(usedAssemblies, usedProjectAssemblyNames: Empty, transitivelyUsedReference); 100var unusedReferences = GetUnusedReferences(usedAssemblies, usedProjectAssemblyNames: Empty, transitivelyUsedReference, directlyUsedReference); 114compilationAssemblies: ImmutableArray<string>.Empty, 115dependencies: ImmutableArray<ReferenceInfo>.Empty); 117var unusedReferences = GetUnusedReferences(usedAssemblies, usedProjectAssemblyNames: Empty, analyzerReference); 131var appliedUpdates = await ApplyReferenceUpdatesAsync(noChangeUpdate); 145var appliedUpdates = await ApplyReferenceUpdatesAsync(changeUpdate); 157var appliedUpdates = await ApplyReferenceUpdatesAsync(noChangeUpdate, changeUpdate); 163private static ImmutableArray<ReferenceInfo> GetUnusedReferences(string[] usedCompilationAssemblies, string[] usedProjectAssemblyNames, params ReferenceInfo[] references) 166private static async Task<ImmutableArray<ReferenceUpdate>> ApplyReferenceUpdatesAsync(params ReferenceUpdate[] referenceUpdates) 204dependencies: ImmutableArray<ReferenceInfo>.Empty); 211public Task<ImmutableArray<ReferenceInfo>> GetProjectReferencesAsync(string projectPath, CancellationToken cancellationToken)
Utilities\PatternMatcherTests.cs (5)
434private static ImmutableArray<string> PartListToSubstrings(string identifier, in TemporaryArray<TextSpan> parts) 443private static ImmutableArray<string> BreakIntoCharacterParts(string identifier) 450private static ImmutableArray<string> BreakIntoWordParts(string identifier) 459MarkupTestFile.GetSpans(candidate, out candidate, out var spans); 478MarkupTestFile.GetSpans(candidate, out candidate, out var expectedSpans);
Utilities\StackFrameUtils.cs (3)
90public static void Print(ImmutableArray<StackFrameTrivia> triviaArray, StringBuilder sb) 120public static void AssertEqual(ImmutableArray<StackFrameTrivia> expected, ImmutableArray<StackFrameTrivia> actual, StackFrameToken token)
Utilities\SymbolEquivalenceComparerTests.cs (2)
1840var f1 = type1.GetMembers("F"); 1841var f2 = type2.GetMembers("F");
ValueTracking\AbstractBaseValueTrackingTests.cs (7)
26internal static async Task<ImmutableArray<ValueTrackedItem>> GetTrackedItemsAsync(TestWorkspace testWorkspace, CancellationToken cancellationToken = default) 36internal static async Task<ImmutableArray<ValueTrackedItem>> GetTrackedItemsAsync(TestWorkspace testWorkspace, ValueTrackedItem item, CancellationToken cancellationToken = default) 42internal static async Task<ImmutableArray<ValueTrackedItem>> ValidateItemsAsync(TestWorkspace testWorkspace, (int line, string text)[] itemInfo, CancellationToken cancellationToken = default) 44var items = await GetTrackedItemsAsync(testWorkspace, cancellationToken); 55internal static async Task<ImmutableArray<ValueTrackedItem>> ValidateChildrenAsync(TestWorkspace testWorkspace, ValueTrackedItem item, (int line, string text)[] childInfo, CancellationToken cancellationToken = default) 57var children = await GetTrackedItemsAsync(testWorkspace, item, cancellationToken); 70var children = await GetTrackedItemsAsync(testWorkspace, item, cancellationToken);
ValueTracking\CSharpValueTrackingTests.cs (25)
108var initialItems = await GetTrackedItemsAsync(workspace); 145var initialItems = await GetTrackedItemsAsync(workspace); 180var initialItems = await GetTrackedItemsAsync(workspace); 208var initialItems = await GetTrackedItemsAsync(workspace); 241var initialItems = await GetTrackedItemsAsync(workspace); 253var items = await ValidateChildrenAsync( 285var initialItems = await GetTrackedItemsAsync(workspace); 305var initialItems = await GetTrackedItemsAsync(workspace); 328var initialItems = await GetTrackedItemsAsync(workspace); 380var initialItems = await GetTrackedItemsAsync(workspace); 396var items = await ValidateChildrenAsync( 428var children = await ValidateChildrenAsync( 514var initialItems = await GetTrackedItemsAsync(workspace); 537var items = await ValidateChildrenAsync( 563var children = await ValidateChildrenAsync( 664var initialItems = await GetTrackedItemsAsync(workspace); 668var children = await ValidateChildrenAsync( 744var initialItems = await GetTrackedItemsAsync(workspace); 751var children = await ValidateChildrenAsync( 806var items = await ValidateItemsAsync( 870var items = await ValidateItemsAsync( 938var items = await ValidateItemsAsync( 1009var items = await ValidateItemsAsync( 1073var items = await ValidateItemsAsync( 1131var items = await ValidateItemsAsync(
ValueTracking\VisualBasicValueTrackingTests.cs (9)
47var initialItems = await GetTrackedItemsAsync(workspace); 92var items = await ValidateItemsAsync( 99var childItems = await ValidateChildrenAsync( 129var initialItems = await GetTrackedItemsAsync(workspace); 160var initialItems = await GetTrackedItemsAsync(workspace); 186var initialItems = await GetTrackedItemsAsync(workspace); 223var items = await ValidateItemsAsync( 282var items = await ValidateItemsAsync( 343var items = await ValidateItemsAsync(
Microsoft.CodeAnalysis.EditorFeatures.Wpf (108)
BackgroundWorkIndicator\BackgroundWorkIndicatorContext.cs (2)
66private ImmutableArray<BackgroundWorkIndicatorScope> _scopes = ImmutableArray<BackgroundWorkIndicatorScope>.Empty;
InlineDiagnostics\AbstractDiagnosticsTaggerProvider.cs (4)
31private readonly ImmutableArray<SingleDiagnosticKindPullTaggerProvider> _diagnosticsTaggerProviders; 58protected abstract ImmutableArray<IOption2> Options { get; } 59protected virtual ImmutableArray<IOption2> FeatureOptions { get; } = []; 73protected virtual ImmutableArray<DiagnosticDataLocation> GetLocationsToTag(DiagnosticData diagnosticData)
InlineDiagnostics\AbstractDiagnosticsTaggerProvider.SingleDiagnosticKindPullTaggerProvider.cs (1)
65protected override ImmutableArray<IOption2> Options => _callback.Options;
InlineDiagnostics\InlineDiagnosticsTaggerProvider.cs (2)
42protected sealed override ImmutableArray<IOption2> Options { get; } = [InlineDiagnosticsOptionsStorage.EnableInlineDiagnostics]; 43protected sealed override ImmutableArray<IOption2> FeatureOptions { get; } = [InlineDiagnosticsOptionsStorage.Location];
InlineHints\InlineHintsTag.cs (4)
95public async Task<ImmutableArray<object>> CreateDescriptionAsync(CancellationToken cancellationToken) 119ImmutableArray<TaggedText> taggedTexts, 203private static (ImmutableArray<TaggedText> texts, int leftPadding, int rightPadding) Trim(ImmutableArray<TaggedText> taggedTexts)
InlineRename\UI\Adornment\RenameFlyoutViewModel.cs (1)
394private void OnReferenceLocationsChanged(object sender, ImmutableArray<InlineRenameLocation> renameLocations)
InlineRename\UI\Dashboard\RenameDashboardViewModel.cs (1)
65private void OnReferenceLocationsChanged(object sender, ImmutableArray<InlineRenameLocation> renameLocations)
InlineRename\UI\SmartRename\SmartRenameViewModel.cs (6)
39/// Cancellation token source for <see cref="ISmartRenameSessionWrapper.GetSuggestionsAsync(ImmutableDictionary{string, ImmutableArray{ValueTuple{string, string}}}, CancellationToken)"/>. 71/// and call to <see cref="ISmartRenameSessionWrapper.GetSuggestionsAsync(ImmutableDictionary{string, ImmutableArray{ValueTuple{string, string}}}, CancellationToken)"/>. 201/// 3. Call to <see cref="ISmartRenameSessionWrapper.GetSuggestionsAsync(ImmutableDictionary{string, ImmutableArray{ValueTuple{string, string}}}, CancellationToken)"/>. 227var smartRenameContext = ImmutableDictionary<string, ImmutableArray<(string filePath, string content)>>.Empty; 235smartRenameContext = ImmutableDictionary.CreateRange<string, ImmutableArray<(string filePath, string content)>>( 237.Select(n => new KeyValuePair<string, ImmutableArray<(string filePath, string content)>>(n.Key, n.Value)));
Interactive\InteractiveEvaluator.cs (4)
40private readonly ImmutableArray<IInteractiveWindowCommand> _commands; 70ImmutableArray<IInteractiveWindowCommand> commands, 281public Task SetPathsAsync(ImmutableArray<string> referenceSearchPaths, ImmutableArray<string> sourceSearchPaths, string workingDirectory)
Interactive\IResettableInteractiveEvaluator.cs (2)
16Task SetPathsAsync(ImmutableArray<string> referenceSearchPaths, ImmutableArray<string> sourceSearchPaths, string workingDirectory);
Interactive\ResetInteractive.cs (12)
46if (GetProjectProperties(out var references, out var referenceSearchPaths, out var sourceSearchPaths, out var projectNamespaces, out var projectDirectory, out var platform)) 77ImmutableArray<string> referencePaths, 78ImmutableArray<string> referenceSearchPaths, 79ImmutableArray<string> sourceSearchPaths, 80ImmutableArray<string> projectNamespaces, 133out ImmutableArray<string> references, 134out ImmutableArray<string> referenceSearchPaths, 135out ImmutableArray<string> sourceSearchPaths, 136out ImmutableArray<string> projectNamespaces,
Lightup\ISmartRenameSessionWrapper.cs (7)
65s_renameContextImmutableListBuilderAddAccessor = LightupHelpers.CreateActionAccessor<object, object>(typeof(ImmutableArray<>.Builder).MakeGenericType(s_wrappedRenameContextType), 66nameof(ImmutableArray<object>.Builder.Add), 68s_renameContextImmutableListBuilderToArrayAccessor = LightupHelpers.CreateFunctionAccessor<object, object>(typeof(ImmutableArray<>.Builder).MakeGenericType(s_wrappedRenameContextType), 69nameof(ImmutableArray<object>.Builder.ToImmutable), 70typeof(ImmutableArray<>).MakeGenericType(s_wrappedRenameContextType)); 72var immutableArrayOfRenameContextType = typeof(ImmutableArray<>).MakeGenericType(s_wrappedRenameContextType); 129public Task<IReadOnlyList<string>> GetSuggestionsAsync(ImmutableDictionary<string, ImmutableArray<(string filePath, string content)>> context, CancellationToken cancellationToken)
LineSeparators\LineSeparatorTaggerProvider.cs (2)
41protected sealed override ImmutableArray<IOption2> Options { get; } = ImmutableArray<IOption2>.Empty;
NavigateTo\NavigateToItemProvider.Callback.cs (1)
46public Task AddResultsAsync(ImmutableArray<INavigateToSearchResult> results, CancellationToken cancellationToken)
Preview\PreviewStaticClassificationTaggerProvider.cs (1)
69if (!_buffer.Properties.TryGetProperty(PredefinedPreviewTaggerKeys.StaticClassificationSpansKey, out ImmutableArray<ClassifiedSpan> classifiedSpans))
QuickInfo\ProjectionBufferContent.cs (3)
27private readonly ImmutableArray<SnapshotSpan> _spans; 36ImmutableArray<SnapshotSpan> spans, 54ImmutableArray<SnapshotSpan> spans,
SignatureHelp\Controller.cs (3)
35private ImmutableArray<ISignatureHelpProvider> _providers; 112ImmutableArray<ISignatureHelpProvider> providers, SignatureHelpTriggerInfo triggerInfo) 121private ImmutableArray<ISignatureHelpProvider> GetProviders()
SignatureHelp\Controller.Session_ComputeModel.cs (2)
29ImmutableArray<ISignatureHelpProvider> providers, 46ImmutableArray<ISignatureHelpProvider> providers,
SignatureHelp\Controller_InvokeSignatureHelp.cs (1)
28var providers = GetProviders();
SignatureHelp\Controller_TypeChar.cs (4)
32var allProviders = GetProviders(); 132private (ImmutableArray<ISignatureHelpProvider> matched, ImmutableArray<ISignatureHelpProvider> unmatched) FilterProviders( 133ImmutableArray<ISignatureHelpProvider> providers, char ch)
SignatureHelp\Presentation\Signature.cs (2)
111var signaturePrefixParts = _signatureHelpItem.PrefixDisplayParts; 117var separatorParts = _signatureHelpItem.SeparatorDisplayParts;
StringIndentation\StringIndentationAdornmentManager.cs (3)
63if (!TryMapHoleSpans(tagMappingSpan.Tag.OrderedHoleSpans, out var orderedHoleSpans)) 101ImmutableArray<SnapshotSpan> spans, 102out ImmutableArray<SnapshotSpan> result)
StringIndentation\StringIndentationAdornmentManager.VisibleBlock.cs (6)
26public readonly ImmutableArray<(double start, double end)> YSegments; 28private VisibleBlock(double x, ImmutableArray<(double start, double end)> ySegments) 35SnapshotSpan span, ImmutableArray<SnapshotSpan> orderedHoleSpans, IWpfTextView view) 107private static ImmutableArray<(double start, double end)> CreateVisibleSegments( 110ImmutableArray<SnapshotSpan> orderedHoleSpans, 173private static bool IsInHole(ImmutableArray<SnapshotSpan> orderedHoleSpans, ITextViewLine line)
StringIndentation\StringIndentationTag.cs (2)
22public readonly ImmutableArray<SnapshotSpan> OrderedHoleSpans; 27ImmutableArray<SnapshotSpan> orderedHoleSpans)
StringIndentation\StringIndentationTaggerProvider.cs (1)
43protected override ImmutableArray<IOption2> Options { get; } = [StringIndentationOptionsStorage.StringIdentation];
Suggestions\FixAll\FixMultipleOccurrencesService.cs (2)
27ImmutableDictionary<Document, ImmutableArray<Diagnostic>> diagnosticsToFix, 45ImmutableDictionary<Project, ImmutableArray<Diagnostic>> diagnosticsToFix,
Suggestions\PreviewChanges\PreviewChangesCodeAction.cs (4)
33private protected override async Task<ImmutableArray<CodeActionOperation>> GetOperationsCoreAsync( 40return ImmutableArray<CodeActionOperation>.Empty; 46return ImmutableArray<CodeActionOperation>.Empty; 62return ImmutableArray<CodeActionOperation>.Empty;
Suggestions\RefineUsingCopilot\RefineUsingCopilotCodeAction.cs (1)
41protected override async Task<ImmutableArray<CodeActionOperation>> ComputeOperationsAsync(IProgress<CodeAnalysisProgress> progress, CancellationToken cancellationToken)
Suggestions\SuggestedActionPriorityProvider.cs (1)
41public bool HasDeprioritizedAnalyzerSupportingDiagnosticId(ImmutableArray<string> diagnosticIds)
Suggestions\SuggestedActions\SuggestedAction.cs (4)
77protected async Task<ImmutableArray<CodeActionOperation>> GetOperationsAsync( 93protected async Task<ImmutableArray<CodeActionOperation>> GetPreviewOperationsAsync(CancellationToken cancellationToken) 228var operations = await GetPreviewOperationsAsync(cancellationToken).ConfigureAwait(true); 258var tags = CodeAction.Tags;
Suggestions\SuggestedActionsSource_Async.cs (11)
40ImmutableArray<ISuggestedActionSetCollector> collectors, 68ImmutableArray<ISuggestedActionSetCollector> collectors, 219var fixes = await fixesTask.ConfigureAwait(false); 220var refactorings = await refactoringsTask.ConfigureAwait(false); 222var filteredSets = UnifiedSuggestedActionsSource.FilterAndOrderActionSets(fixes, refactorings, selection, currentActionCount); 230async Task<ImmutableArray<UnifiedSuggestedActionSet>> GetCodeFixesAsync() 238return ImmutableArray<UnifiedSuggestedActionSet>.Empty; 246async Task<ImmutableArray<UnifiedSuggestedActionSet>> GetRefactoringsAsync() 254return ImmutableArray<UnifiedSuggestedActionSet>.Empty; 261return ImmutableArray<UnifiedSuggestedActionSet>.Empty; 267return ImmutableArray<UnifiedSuggestedActionSet>.Empty;
Suggestions\SuggestedActionsSourceProvider.cs (2)
44public static readonly ImmutableArray<string> Orderings = [DefaultOrderings.Highest, DefaultOrderings.Default, DefaultOrderings.Low, DefaultOrderings.Lowest]; 59public readonly ImmutableArray<Lazy<IImageIdService, OrderableMetadata>> ImageIdServices;
Suggestions\SuggestedActionWithNestedActions.cs (2)
25public readonly ImmutableArray<SuggestedActionSet> NestedActionSets; 35ImmutableArray<SuggestedActionSet> nestedActionSets)
Suggestions\SuggestedActionWithNestedFlavors.cs (3)
36private ImmutableArray<SuggestedActionSet> _nestedFlavors; 84defaultValue: ImmutableArray<SuggestedActionSet>.Empty, cancellationToken).ConfigureAwait(false); 91private async Task<ImmutableArray<SuggestedActionSet>> CreateAllFlavorsAsync(CancellationToken cancellationToken)
Tags\DefaultImageIdService.cs (1)
27public bool TryGetImageId(ImmutableArray<string> tags, out ImageId imageId)
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (74)
Classification\ClassificationTests.vb (4)
345Public Sub AddSyntacticClassifications(services As SolutionServices, root As SyntaxNode, textSpans As ImmutableArray(Of TextSpan), result As SegmentedList(Of ClassifiedSpan), cancellationToken As CancellationToken) Implements IClassificationService.AddSyntacticClassifications 348Public Function AddSemanticClassificationsAsync(document As Document, textSpans As ImmutableArray(Of TextSpan), options As ClassificationOptions, result As SegmentedList(Of ClassifiedSpan), cancellationToken As CancellationToken) As Task Implements IClassificationService.AddSemanticClassificationsAsync 352Public Function AddSyntacticClassificationsAsync(document As Document, textSpans As ImmutableArray(Of TextSpan), result As SegmentedList(Of ClassifiedSpan), cancellationToken As CancellationToken) As Task Implements IClassificationService.AddSyntacticClassificationsAsync 367Public Function AddEmbeddedLanguageClassificationsAsync(document As Document, textSpans As ImmutableArray(Of TextSpan), options As ClassificationOptions, result As SegmentedList(Of ClassifiedSpan), cancellationToken As CancellationToken) As Task Implements IClassificationService.AddEmbeddedLanguageClassificationsAsync
CodeDefinitionWindow\AbstractCodeDefinitionWindowTests.vb (1)
36Public Function SetContextAsync(locations As ImmutableArray(Of CodeDefinitionWindowLocation), cancellationToken As CancellationToken) As Task Implements ICodeDefinitionWindowService.SetContextAsync
CodeDefinitionWindow\CrossLanguageCodeDefinitionWindowTests.vb (4)
31Public ReadOnly Property ChildItems As ImmutableArray(Of INavigableItem) Implements INavigableItem.ChildItems 43Public ReadOnly Property DisplayTaggedParts As ImmutableArray(Of TaggedText) Implements INavigableItem.DisplayTaggedParts 89Public Function GetNavigableItemsAsync(document As Document, position As Integer, cancellationToken As CancellationToken) As Task(Of ImmutableArray(Of INavigableItem)) Implements INavigableItemsService.GetNavigableItemsAsync 93Public Function GetNavigableItemsAsync(document As Document, position As Integer, forSymbolType As Boolean, cancellationToken As CancellationToken) As Task(Of ImmutableArray(Of INavigableItem)) Implements INavigableItemsService.GetNavigableItemsAsync
CodeFixes\CodeFixServiceTests.vb (9)
194Public Overrides ReadOnly Property SupportedDiagnostics As ImmutableArray(Of DiagnosticDescriptor) 219Public NotOverridable Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String) 244Public NotOverridable Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String) 332Public Shared Property Diagnostics As ImmutableArray(Of Diagnostic) = ImmutableArray(Of Diagnostic).Empty 338Public Function GetAvailablePromptTitlesAsync(document As Document, cancellationToken As CancellationToken) As Task(Of ImmutableArray(Of String)) Implements ICopilotCodeAnalysisService.GetAvailablePromptTitlesAsync 346Public Function GetCachedDocumentDiagnosticsAsync(document As Document, span As TextSpan?, promptTitles As ImmutableArray(Of String), cancellationToken As CancellationToken) As Task(Of ImmutableArray(Of Diagnostic)) Implements ICopilotCodeAnalysisService.GetCachedDocumentDiagnosticsAsync 354Public Function GetOnTheFlyDocsAsync(symbolSignature As String, declarationCode As ImmutableArray(Of String), language As String, cancellationToken As CancellationToken) As Task(Of String) Implements ICopilotCodeAnalysisService.GetOnTheFlyDocsAsync
Diagnostics\AbstractCrossLanguageUserDiagnosticTest.vb (1)
63Optional glyphTags As ImmutableArray(Of String) = Nothing) As Task
Diagnostics\AddImport\AddImportCrossLanguageTests.vb (1)
572Optional glyphTags As ImmutableArray(Of String) = Nothing) As Task
Diagnostics\AdditionalFileDiagnosticsTests.vb (2)
70Public Overrides ReadOnly Property SupportedDiagnostics As ImmutableArray(Of DiagnosticDescriptor) 106Public NotOverridable Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String)
Diagnostics\DiagnosticProviderTests.vb (1)
354customTags:=ImmutableArray(Of String).Empty,
Diagnostics\DiagnosticServiceTests.vb (24)
59Private Shared Async Function GetDiagnosticsForDocumentAsync(diagnosticService As IDiagnosticAnalyzerService, document As Document) As Task(Of ImmutableArray(Of DiagnosticData)) 63Private Shared Async Function GetDiagnosticsForSpanAsync(diagnosticService As IDiagnosticAnalyzerService, document As Document, range As TextSpan) As Task(Of ImmutableArray(Of DiagnosticData)) 67Private Shared Async Function GetDiagnosticsForSpanAsync(diagnosticService As IDiagnosticAnalyzerService, document As Document, range As TextSpan, diagnosticKind As DiagnosticKind) As Task(Of ImmutableArray(Of DiagnosticData)) 201Dim projectAnalyzersEmpty = ImmutableArray(Of DiagnosticAnalyzer).Empty 381Dim analyzersMap = New Dictionary(Of String, ImmutableArray(Of DiagnosticAnalyzer)) From 1019Private Shared Async Function TestDiagnosticsReportedOnAllPartialDefinitionsCoreAsync(analyzers As ImmutableArray(Of DiagnosticAnalyzer)) As Task 1250Public Overrides ReadOnly Property SupportedDiagnostics As ImmutableArray(Of DiagnosticDescriptor) 1369Public Overrides ReadOnly Property SupportedDiagnostics As ImmutableArray(Of DiagnosticDescriptor) 1449Public Overrides ReadOnly Property SupportedDiagnostics As ImmutableArray(Of DiagnosticDescriptor) 1537Public Overrides ReadOnly Property SupportedDiagnostics As ImmutableArray(Of DiagnosticDescriptor) 1562Public Overrides ReadOnly Property SupportedDiagnostics As ImmutableArray(Of DiagnosticDescriptor) 1589Public Overrides ReadOnly Property SupportedDiagnostics As ImmutableArray(Of DiagnosticDescriptor) 1614Public Overrides ReadOnly Property SupportedDiagnostics As ImmutableArray(Of DiagnosticDescriptor) 1631Public Overrides ReadOnly Property SupportedDiagnostics As ImmutableArray(Of DiagnosticDescriptor) 1657Public Overrides ReadOnly Property SupportedDiagnostics As ImmutableArray(Of DiagnosticDescriptor) 1685Public Overrides ReadOnly Property SupportedDiagnostics As ImmutableArray(Of DiagnosticDescriptor) 1711Public Overrides ReadOnly Property SupportedDiagnostics As ImmutableArray(Of DiagnosticDescriptor) 1737Public Overrides ReadOnly Property SupportedDiagnostics As ImmutableArray(Of DiagnosticDescriptor) 1765Public Overrides ReadOnly Property SupportedDiagnostics As ImmutableArray(Of DiagnosticDescriptor) 1810Public Overrides ReadOnly Property SupportedDiagnostics() As ImmutableArray(Of DiagnosticDescriptor) 1836Public Shared Sub Initialize(registerSyntaxNodeAction As Action(Of Action(Of SyntaxNodeAnalysisContext), ImmutableArray(Of CodeAnalysis.CSharp.SyntaxKind))) 1878Public Overrides ReadOnly Property SupportedDiagnostics As ImmutableArray(Of DiagnosticDescriptor) 2394Public Overrides ReadOnly Property SupportedDiagnostics As ImmutableArray(Of DiagnosticDescriptor) 2510Public Overrides ReadOnly Property SupportedDiagnostics As ImmutableArray(Of DiagnosticDescriptor)
Expansion\AbstractExpansionTest.vb (1)
33Dim spans As ImmutableArray(Of TextSpan) = Nothing
FindReferences\FindReferencesTests.vb (4)
254Dim result = ImmutableArray(Of ReferencedSymbol).Empty 280Dim spans As ImmutableArray(Of TextSpan) = Nothing 281Dim expected = If(doc.AnnotatedSpans.TryGetValue(DefinitionKey, spans), spans, ImmutableArray(Of TextSpan).Empty).Order() 372Private Shared Function GetActualReferences(result As ImmutableArray(Of ReferencedSymbol),
InlineHints\AbstractInlineHintsTests.vb (1)
59Private Shared Async Function ValidateDoubleClick(document As Document, expectedDocument As Document, inlineHints As ImmutableArray(Of InlineHint)) As Task
IntelliSense\CSharpCompletionCommandHandlerTests.vb (2)
9591Public Property Items As ImmutableArray(Of CompletionItem) 10918Public Function ProvideRecommendationsAsync(context As PythiaDeclarationNameContext, cancellationToken As CancellationToken) As Task(Of ImmutableArray(Of String)) Implements IPythiaDeclarationNameRecommenderImplementation.ProvideRecommendationsAsync
IntelliSense\CSharpCompletionCommandHandlerTests_DefaultsSource.vb (4)
90MockDefaultSource.Defaults = ImmutableArray(Of String).Empty 300Public Shared Defaults As ImmutableArray(Of String) = ImmutableArray(Of String).Empty 307Public Function GetSessionDefaultsAsync(session As IAsyncCompletionSession) As Task(Of ImmutableArray(Of String)) Implements IAsyncCompletionDefaultsSource.GetSessionDefaultsAsync
IntelliSense\CSharpCompletionCommandHandlerTests_HandleNonRoslynCompletionSources.vb (1)
92Return Task.FromResult(New CompletionContext(itemsList, suggestionItemOptions:=Nothing, InitialSelectionHint.RegularSelection, ImmutableArray(Of CompletionFilterWithState).Empty, isIncomplete:=False, Nothing))
LanguageServices\SyntaxFactsServiceTests.vb (1)
216Dim spans As ImmutableArray(Of TextSpan) = Nothing
NavigableSymbols\NavigableSymbolsTest.vb (8)
35Dim spans As IDictionary(Of String, ImmutableArray(Of TextSpan)) = Nothing 48Dim spans As IDictionary(Of String, ImmutableArray(Of TextSpan)) = Nothing 61Dim spans As IDictionary(Of String, ImmutableArray(Of TextSpan)) = Nothing 77Dim spans As IDictionary(Of String, ImmutableArray(Of TextSpan)) = Nothing 90Dim spans As IDictionary(Of String, ImmutableArray(Of TextSpan)) = Nothing 103Dim spans As IDictionary(Of String, ImmutableArray(Of TextSpan)) = Nothing 122Private Shared Async Function TestNavigated(workspace As EditorTestWorkspace, position As Integer, spans As IDictionary(Of String, ImmutableArray(Of TextSpan))) As Task 138Dim value As ImmutableArray(Of TextSpan) = Nothing
NavigationBar\MockNavigationBarPresenter.vb (2)
34projects As ImmutableArray(Of NavigationBarProjectItem), 36typesWithMembers As ImmutableArray(Of NavigationBarItem),
Rename\RenameEngineResult.vb (1)
206Dim spans As ImmutableArray(Of TextSpan) = Nothing
Simplification\AbstractSimplificationTests.vb (2)
66listOfLabelToAddSimplifierAnnotationSpans As IEnumerable(Of KeyValuePair(Of String, ImmutableArray(Of TextSpan))), 67explicitSpansToSimplifyWithin As ImmutableArray(Of TextSpan),
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (189)
AbstractTypeParameterChecker.cs (1)
22protected AbstractTypeParameterChecker(ImmutableArray<ITypeParameterSymbol> acceptableTypeParameters)
DkmUtilities.cs (7)
50internal static ImmutableArray<MetadataBlock> GetMetadataBlocks( 53ImmutableArray<MetadataBlock> previousMetadataBlocks) 105internal static ImmutableArray<MetadataBlock> GetMetadataBlocks(GetMetadataBytesPtrFunction getMetaDataBytesPtrFunction, ImmutableArray<AssemblyIdentity> missingAssemblyIdentities) 132return builder == null ? ImmutableArray<MetadataBlock>.Empty : builder.ToImmutableAndFree(); 135internal static unsafe ImmutableArray<AssemblyReaders> MakeAssemblyReaders(this DkmClrInstructionAddress instructionAddress) 192private static bool TryGetMetadataBlock(ImmutableArray<MetadataBlock> previousMetadataBlocks, int index, IntPtr ptr, uint size, out MetadataBlock block)
EEMetadataReferenceResolver.cs (5)
14private readonly IReadOnlyDictionary<string, ImmutableArray<(AssemblyIdentity Identity, MetadataReference Reference)>> _referencesBySimpleName; 23IReadOnlyDictionary<string, ImmutableArray<(AssemblyIdentity Identity, MetadataReference Reference)>> referencesBySimpleName) 34if (_referencesBySimpleName.TryGetValue(referenceIdentity.Name, out var references)) 48public override ImmutableArray<PortableExecutableReference> ResolveReference(string reference, string? baseFilePath, MetadataReferenceProperties properties) 58ImmutableArray<(AssemblyIdentity Identity, MetadataReference Reference)> references,
EESymbolProvider.cs (5)
21public abstract TTypeSymbol DecodeLocalVariableType(ImmutableArray<byte> signature); 36ImmutableArray<bool> dynamicFlagsOpt, 37ImmutableArray<string?> tupleElementNamesOpt); 43ImmutableArray<bool> dynamicFlagsOpt, 44ImmutableArray<string?> tupleElementNamesOpt);
EvaluationContextBase.cs (6)
31ImmutableArray<Alias> aliases, 39ImmutableArray<Alias> aliases, 47ImmutableArray<Alias> aliases, 58out ImmutableArray<AssemblyIdentity> missingAssemblyIdentities) 73missingAssemblyIdentities = ImmutableArray<AssemblyIdentity>.Empty; 93internal abstract ImmutableArray<AssemblyIdentity> GetMissingAssemblyIdentities(Diagnostic diagnostic, AssemblyIdentity linqLibrary);
ExpressionCompiler.cs (20)
53var aliases = argumentsOnly 54? ImmutableArray<Alias>.Empty 85private static ImmutableArray<Alias> GetAliases(DkmClrRuntimeInstance runtimeInstance, DkmInspectionContext? inspectionContext) 90return ImmutableArray<Alias>.Empty; 118var aliases = GetAliases(runtimeInstance, inspectionContext); // NB: Not affected by retrying. 154var aliases = GetAliases(runtimeInstance, lValue.InspectionContext); // NB: Not affected by retrying. 207ImmutableArray<Alias>.Empty, 238internal static bool ShouldTryAgainWithMoreMetadataBlocks(DkmUtilities.GetMetadataBytesPtrFunction getMetaDataBytesPtrFunction, ImmutableArray<AssemblyIdentity> missingAssemblyIdentities, ref ImmutableArray<MetadataBlock> references) 240var newReferences = DkmUtilities.GetMetadataBlocks(getMetaDataBytesPtrFunction, missingAssemblyIdentities); 303ImmutableArray<MetadataBlock> metadataBlocks, 310ImmutableArray<MetadataBlock> metadataBlocks, 311Lazy<ImmutableArray<AssemblyReaders>> lazyAssemblyReaders, 322internal abstract ImmutableArray<MetadataBlock> GetMetadataBlocks( 328ImmutableArray<MetadataBlock> metadataBlocks, 351new Lazy<ImmutableArray<AssemblyReaders>>(() => instructionAddress.MakeAssemblyReaders(), LazyThreadSafetyMode.None), 361internal delegate EvaluationContextBase CreateContextDelegate(ImmutableArray<MetadataBlock> metadataBlocks, bool useReferencedModulesOnly); 371var metadataBlocks = GetMetadataBlocks(appDomain, runtimeInstance); 382ImmutableArray<MetadataBlock> metadataBlocks, 410missingAssemblyIdentities: out var missingAssemblyIdentities);
FrameDecoder.cs (2)
102var typeParameters = _instructionDecoder.GetAllTypeParameters(method); 113var typeArguments = _instructionDecoder.GetTypeSymbols(compilation, method, serializedTypeNames);
ImmutableArrayExtensions.cs (1)
12internal static int IndexOf<TItem, TArg>(this ImmutableArray<TItem> array, Func<TItem, TArg, bool> predicate, TArg arg)
InstructionDecoder.cs (7)
57internal abstract TMethodSymbol ConstructMethod(TMethodSymbol method, ImmutableArray<TTypeParameterSymbol> typeParameters, ImmutableArray<TTypeSymbol> typeArguments); 59internal abstract ImmutableArray<TTypeParameterSymbol> GetAllTypeParameters(TMethodSymbol method); 74var parameters = ((IMethodSymbol)method.GetISymbol()).Parameters; 130internal ImmutableArray<TTypeSymbol> GetTypeSymbols(TCompilation compilation, TMethodSymbol method, string?[]? serializedTypeNames) 134return ImmutableArray<TTypeSymbol>.Empty; 147return ImmutableArray<TTypeSymbol>.Empty;
MetadataContext.cs (3)
13internal readonly ImmutableArray<MetadataBlock> MetadataBlocks; 16internal MetadataContext(ImmutableArray<MetadataBlock> metadataBlocks, ImmutableDictionary<MetadataContextId, TAssemblyContext> assemblyContexts) 22internal bool Matches(ImmutableArray<MetadataBlock> metadataBlocks)
MetadataUtilities.cs (10)
26internal static ImmutableArray<MetadataReference> MakeAssemblyReferences( 27this ImmutableArray<MetadataBlock> metadataBlocks, 31out IReadOnlyDictionary<string, ImmutableArray<(AssemblyIdentity, MetadataReference)>>? referencesBySimpleName) 118ImmutableArray<MetadataReference> references; 122var refsBySimpleName = new Dictionary<string, ImmutableArray<(AssemblyIdentity, MetadataReference)>>(StringComparer.OrdinalIgnoreCase); 136if (!refsBySimpleName.TryGetValue(identity.Name, out var refs)) 138refs = ImmutableArray<(AssemblyIdentity, MetadataReference)>.Empty; 156if (corLibrary != null && refsBySimpleName.TryGetValue(corLibrary.Name, out var corLibraryReferences)) 456internal static ImmutableArray<string> GetLocalNames(this ArrayBuilder<ISymUnmanagedScope> scopes) 476internal static ImmutableArray<int> GetSynthesizedMethods(byte[] assembly, string methodName)
PDB\MethodDebugInfo.cs (22)
18ImmutableArray<HoistedLocalScopeRecord>.Empty, 19ImmutableArray<ImmutableArray<ImportRecord>>.Empty, 20ImmutableArray<ExternAliasRecord>.Empty, 24localVariableNames: ImmutableArray<string>.Empty, 25localConstants: ImmutableArray<TLocalSymbol>.Empty, 35public readonly ImmutableArray<HoistedLocalScopeRecord> HoistedLocalScopeRecords; 37public readonly ImmutableArray<ImmutableArray<ImportRecord>> ImportRecordGroups; 38public readonly ImmutableArray<ExternAliasRecord> ExternAliasRecords; // C# only. 39public readonly ImmutableDictionary<int, ImmutableArray<bool>>? DynamicLocalMap; // C# only. 40public readonly ImmutableDictionary<int, ImmutableArray<string?>>? TupleLocalMap; 42public readonly ImmutableArray<string> LocalVariableNames; 43public readonly ImmutableArray<TLocalSymbol> LocalConstants; 49ImmutableArray<HoistedLocalScopeRecord> hoistedLocalScopeRecords, 50ImmutableArray<ImmutableArray<ImportRecord>> importRecordGroups, 51ImmutableArray<ExternAliasRecord> externAliasRecords, 52ImmutableDictionary<int, ImmutableArray<bool>>? dynamicLocalMap, 53ImmutableDictionary<int, ImmutableArray<string?>>? tupleLocalMap, 55ImmutableArray<string> localVariableNames, 56ImmutableArray<TLocalSymbol> localConstants,
PDB\MethodDebugInfo.Native.cs (63)
102ImmutableArray<ImmutableArray<ImportRecord>> importRecordGroups; 103ImmutableArray<ExternAliasRecord> externAliasRecords; 115externAliasRecords = ImmutableArray<ExternAliasRecord>.Empty; 133var hoistedLocalScopeRecords = isVisualBasicMethod ? default : ImmutableArray<HoistedLocalScopeRecord>.Empty; 135ImmutableDictionary<int, ImmutableArray<bool>>? dynamicLocalMap = null; 136ImmutableDictionary<string, ImmutableArray<bool>>? dynamicLocalConstantMap = null; 137ImmutableDictionary<int, ImmutableArray<string?>>? tupleLocalMap = null; 138ImmutableDictionary<LocalNameAndScope, ImmutableArray<string?>>? tupleLocalConstantMap = null; 145var customDebugInfoRecord = CustomDebugInfoReader.TryGetCustomDebugInfoRecord(customDebugInfo, CustomDebugInfoKind.StateMachineHoistedLocalScopes); 241private static ImmutableArray<string> GetImportStrings(ISymUnmanagedReader reader, int methodToken, int methodVersion) 248return ImmutableArray<string>.Empty; 255return ImmutableArray<string>.Empty; 263return ImmutableArray<string>.Empty; 275return ImmutableArray<string>.Empty; 286out ImmutableArray<ImmutableArray<ImportRecord>> importRecordGroups, 287out ImmutableArray<ExternAliasRecord> externAliasRecords) 289ImmutableArray<string> externAliasStrings; 291var importStringGroups = CustomDebugInfoReader.GetCSharpGroupedImportStrings( 300ArrayBuilder<ImmutableArray<ImportRecord>>? importRecordGroupBuilder = null; 304importRecordGroupBuilder = ArrayBuilder<ImmutableArray<ImportRecord>>.GetInstance(importStringGroups.Length); 305foreach (var importStringGroup in importStringGroups) 349importRecordGroups = importRecordGroupBuilder?.ToImmutableAndFree() ?? ImmutableArray<ImmutableArray<ImportRecord>>.Empty; 350externAliasRecords = externAliasRecordBuilder?.ToImmutableAndFree() ?? ImmutableArray<ExternAliasRecord>.Empty; 384out ImmutableDictionary<int, ImmutableArray<bool>>? dynamicLocalMap, 385out ImmutableDictionary<string, ImmutableArray<bool>>? dynamicLocalConstantMap) 390var record = CustomDebugInfoReader.TryGetCustomDebugInfoRecord(customDebugInfo, CustomDebugInfoKind.DynamicLocals); 399ImmutableDictionary<int, ImmutableArray<bool>>.Builder? localBuilder = null; 400ImmutableDictionary<string, ImmutableArray<bool>>.Builder? constantBuilder = null; 402var dynamicLocals = CustomDebugInfoReader.DecodeDynamicLocalsRecord(record); 418constantBuilder ??= ImmutableDictionary.CreateBuilder<string, ImmutableArray<bool>>(); 423localBuilder ??= ImmutableDictionary.CreateBuilder<int, ImmutableArray<bool>>(); 472out ImmutableDictionary<int, ImmutableArray<string?>>? tupleLocalMap, 473out ImmutableDictionary<LocalNameAndScope, ImmutableArray<string?>>? tupleLocalConstantMap) 478var record = CustomDebugInfoReader.TryGetCustomDebugInfoRecord(customDebugInfo, CustomDebugInfoKind.TupleElementNames); 484ImmutableDictionary<int, ImmutableArray<string?>>.Builder? localBuilder = null; 485ImmutableDictionary<LocalNameAndScope, ImmutableArray<string?>>.Builder? constantBuilder = null; 487var tuples = CustomDebugInfoReader.DecodeTupleElementNamesRecord(record); 494constantBuilder ??= ImmutableDictionary.CreateBuilder<LocalNameAndScope, ImmutableArray<string?>>(); 500localBuilder ??= ImmutableDictionary.CreateBuilder<int, ImmutableArray<string?>>(); 520out ImmutableArray<ImmutableArray<ImportRecord>> importRecordGroups, 523importRecordGroups = ImmutableArray<ImmutableArray<ImportRecord>>.Empty; 525var importStrings = CustomDebugInfoReader.GetVisualBasicImportStrings( 634ImmutableDictionary<string, ImmutableArray<bool>>? dynamicLocalConstantMap, 635ImmutableDictionary<LocalNameAndScope, ImmutableArray<string?>>? tupleLocalConstantMap) 643var signature = constant.GetSignature().ToImmutableArray(); 669var dynamicFlags = default(ImmutableArray<bool>); 672var tupleElementNames = default(ImmutableArray<string?>); 694ImmutableArray<string> names, 695ImmutableArray<LocalInfo<TTypeSymbol>> localInfo, 696ImmutableDictionary<int, ImmutableArray<bool>>? dynamicLocalMap, 697ImmutableDictionary<int, ImmutableArray<string?>>? tupleLocalConstantMap) 716var dynamicFlags = default(ImmutableArray<bool>); 719var tupleElementNames = default(ImmutableArray<string?>);
PDB\MethodDebugInfo.Portable.cs (37)
26ImmutableDictionary<int, ImmutableArray<bool>>? dynamicLocalMap; 27ImmutableDictionary<int, ImmutableArray<string?>>? tupleLocalMap; 28ImmutableArray<ImmutableArray<ImportRecord>> importGroups; 29ImmutableArray<ExternAliasRecord> externAliases; 30ImmutableArray<string> localVariableNames; 31ImmutableArray<TLocalSymbol> localConstants; 57importGroups = ImmutableArray<ImmutableArray<ImportRecord>>.Empty; 58externAliases = ImmutableArray<ExternAliasRecord>.Empty; 59localVariableNames = ImmutableArray<string>.Empty; 60localConstants = ImmutableArray<TLocalSymbol>.Empty; 64ReadMethodCustomDebugInformation(reader, methodHandle, out var hoistedLocalScopes, out var defaultNamespace, out bool isPrimaryConstructor); 128out ImmutableArray<ImmutableArray<ImportRecord>> importGroups, 129out ImmutableArray<ExternAliasRecord> externAliases, 130out ImmutableArray<string> localVariableNames, 131out ImmutableDictionary<int, ImmutableArray<bool>>? dynamicLocalMap, 132out ImmutableDictionary<int, ImmutableArray<string?>>? tupleLocalMap, 133out ImmutableArray<TLocalSymbol> localConstants, 139ImmutableDictionary<int, ImmutableArray<bool>>.Builder? lazyDynamicLocalsBuilder = null; 140ImmutableDictionary<int, ImmutableArray<string?>>.Builder? lazyTupleLocalsBuilder = null; 184var dynamicFlags = ReadDynamicCustomDebugInformation(reader, variableHandle); 187lazyDynamicLocalsBuilder ??= ImmutableDictionary.CreateBuilder<int, ImmutableArray<bool>>(); 191var tupleElementNames = ReadTupleCustomDebugInformation(reader, variableHandle); 194lazyTupleLocalsBuilder ??= ImmutableDictionary.CreateBuilder<int, ImmutableArray<string?>>(); 208var dynamicFlags = ReadDynamicCustomDebugInformation(reader, constantHandle); 209var tupleElementNames = ReadTupleCustomDebugInformation(reader, constantHandle); 228var importGroupsBuilder = ArrayBuilder<ImmutableArray<ImportRecord>>.GetInstance(); 270ArrayBuilder<ImmutableArray<ImportRecord>> importGroupsBuilder, 388out ImmutableArray<HoistedLocalScopeRecord> hoistedLocalScopes, 394: ImmutableArray<HoistedLocalScopeRecord>.Empty; 405private static ImmutableArray<bool> ReadDynamicCustomDebugInformation(MetadataReader reader, EntityHandle variableOrConstantHandle) 416private static ImmutableArray<string?> ReadTupleCustomDebugInformation(MetadataReader reader, EntityHandle variableOrConstantHandle) 449private static ImmutableArray<bool> DecodeDynamicFlags(BlobReader reader) 466private static ImmutableArray<string?> DecodeTupleElementNames(BlobReader reader) 478private static ImmutableArray<HoistedLocalScopeRecord> DecodeHoistedLocalScopes(BlobReader reader)
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver (54)
CSharp\MemberSignatureParser.cs (9)
38private readonly ImmutableArray<Token> _tokens; 41private MemberSignatureParser(ImmutableArray<Token> tokens) 60var parameters = default(ImmutableArray<ParameterSignature>); 85var typeParameters = ParseTypeParameters(); 96private ImmutableArray<string> ParseTypeParameters() 160var typeArguments = ParseTypeArguments(); 171private ImmutableArray<TypeSignature> ParseTypeArguments() 254private ImmutableArray<ParameterSignature> ParseParameters()
MetadataDecoder.cs (12)
16private readonly ImmutableArray<string> _allTypeParameters; 18private readonly ImmutableArray<string> _methodTypeParameters; 22ImmutableArray<string> allTypeParameters, 24ImmutableArray<string> methodTypeParameters) 33internal ImmutableArray<ParameterSignature> DecodeParameters(MethodDefinition methodDef) 142ImmutableArray<string> typeParameters, 160var typeArguments = DecodeGenericTypeArguments(ref signatureReader); 172private ImmutableArray<TypeSignature> DecodeGenericTypeArguments(ref BlobReader signatureReader) 188ImmutableArray<TypeSignature> typeArguments, 205ImmutableArray<TypeSignature> typeArguments, 227ImmutableArray<TypeSignature> typeArguments, 269ImmutableArray<TypeSignature> typeArguments,
MetadataResolver.cs (18)
48ImmutableArray<string> memberTypeParameters; 53var memberParameters = signature.Parameters; 55var allTypeParameters = GetAllGenericTypeParameters(typeName); 126ImmutableArray<string> typeParameters; 201ImmutableArray<string> allTypeParameters, 203ImmutableArray<string> methodTypeParameters, 204ImmutableArray<ParameterSignature> methodParameters) 228ImmutableArray<string> allTypeParameters, 230ImmutableArray<ParameterSignature> propertyParameters) 302private ImmutableArray<string> GetAllGenericTypeParameters(Name typeName) 309private void GetAllGenericTypeParameters(Name typeName, ImmutableArray<string>.Builder builder) 317ImmutableArray<string> typeParameters; 325ImmutableArray<string> allTypeParameters, 327ImmutableArray<string> methodTypeParameters, 328ImmutableArray<ParameterSignature> methodParameters) 330ImmutableArray<ParameterSignature> parameters; 370private static bool MatchesTypeParameterCount(ImmutableArray<string> typeArguments, GenericParameterHandleCollection typeParameters, int offset) 430out ImmutableArray<string> typeParameters)
Name.cs (2)
29internal GenericName(QualifiedName qualifiedName, ImmutableArray<string> typeParameters) 39internal ImmutableArray<string> TypeParameters { get; }
RequestSignature.cs (2)
13internal RequestSignature(Name memberName, ImmutableArray<ParameterSignature> parameters) 20internal readonly ImmutableArray<ParameterSignature> Parameters; // default if not specified
TypeSignature.cs (2)
31internal GenericTypeSignature(QualifiedTypeSignature qualifiedName, ImmutableArray<TypeSignature> typeArguments) 41internal ImmutableArray<TypeSignature> TypeArguments { get; }
VisualBasic\MemberSignatureParser.cs (9)
42private readonly ImmutableArray<Token> _tokens; 45private MemberSignatureParser(ImmutableArray<Token> tokens) 69var parameters = default(ImmutableArray<ParameterSignature>); 103var typeParameters = ParseTypeParameters(); 114private ImmutableArray<string> ParseTypeParameters() 185var typeArguments = ParseTypeArguments(); 196private ImmutableArray<TypeSignature> ParseTypeArguments() 294private ImmutableArray<ParameterSignature> ParseParameters()
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver.UnitTests (14)
CSharpFunctionResolverTests.cs (3)
319var moduleB = new Module(default(ImmutableArray<byte>), name: "B.dll"); 1541ImmutableArray<byte> bytesA; 1542ImmutableArray<byte> pdbA;
FunctionResolverTestBase.cs (7)
67private static ImmutableArray<string> GetTypeParameterNames(MetadataReader reader, GenericParameterHandleCollection handles) 103private static void AppendTypeParameters(StringBuilder builder, ImmutableArray<string> typeParameters) 113private static void AppendParameters(StringBuilder builder, ImmutableArray<ParameterSignature> parameters) 170private static void AppendTypeArguments(StringBuilder builder, ImmutableArray<TypeSignature> typeArguments) 180private static void AppendCommaSeparatedList<T>(StringBuilder builder, ImmutableArray<T> items, Action<StringBuilder, T> appendItem) 194private static ImmutableArray<string> DecodeTypeParameters(MetadataReader reader, int offset, GenericParameterHandleCollection typeParameters) 200return ImmutableArray<string>.Empty;
Module.cs (1)
19internal Module(ImmutableArray<byte> metadata, string? name = null)
ParsingTestBase.cs (2)
19return new RequestSignature(name, default(ImmutableArray<ParameterSignature>)); 24return new RequestSignature(name, ImmutableArray<ParameterSignature>.Empty);
Request.cs (1)
50internal ImmutableArray<Address> GetResolvedAddresses()
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (5)
Debugger\Engine\DkmInspectionSession.cs (4)
35internal DkmInspectionSession(ImmutableArray<IDkmClrFormatter> formatters, ImmutableArray<IDkmClrResultProvider> resultProviders) 68private readonly ImmutableArray<TInterface> _implementations; 71internal Dispatcher(ImmutableArray<TInterface> items)
ReflectionUtilities.cs (1)
17internal static Assembly Load(ImmutableArray<byte> assembly)
Microsoft.CodeAnalysis.ExternalAccess.AspNetCore (13)
AddPackage\AspNetCoreAddPackageCodeAction.cs (1)
55private static async Task<ImmutableArray<TextChange>> GetTextChangesAsync(
EmbeddedLanguages\AspNetCoreCSharpRouteSyntaxDetector.cs (1)
22var identifiers = ImmutableArray.Create("Route");
EmbeddedLanguages\BraceMatching\AspNetCoreBraceMatcherExtensionProvider.cs (2)
17protected override ImmutableArray<string> GetLanguages(ExportAspNetCoreEmbeddedLanguageBraceMatcherAttribute exportAttribute) 20protected override bool TryGetExtensionsFromReference(AnalyzerReference reference, out ImmutableArray<IAspNetCoreEmbeddedLanguageBraceMatcher> extensions)
EmbeddedLanguages\Classification\AspNetCoreClassifierExtensionProvider.cs (2)
17protected override ImmutableArray<string> GetLanguages(ExportAspNetCoreEmbeddedLanguageClassifierAttribute exportAttribute) 20protected override bool TryGetExtensionsFromReference(AnalyzerReference reference, out ImmutableArray<IAspNetCoreEmbeddedLanguageClassifier> extensions)
EmbeddedLanguages\DocumentHighlighting\AspNetCoreClassifierExtensionProvider.cs (2)
17protected override ImmutableArray<string> GetLanguages(ExportAspNetCoreEmbeddedLanguageDocumentHighlighterAttribute exportAttribute) 20protected override bool TryGetExtensionsFromReference(AnalyzerReference reference, out ImmutableArray<IAspNetCoreEmbeddedLanguageDocumentHighlighter> extensions)
EmbeddedLanguages\DocumentHighlighting\IEmbeddedLanguageDocumentHighlighter.cs (3)
17ImmutableArray<AspNetCoreDocumentHighlights> GetDocumentHighlights( 50public ImmutableArray<AspNetCoreHighlightSpan> HighlightSpans { get; } 52public AspNetCoreDocumentHighlights(ImmutableArray<AspNetCoreHighlightSpan> highlightSpans)
Internal\EmbeddedLanguages\AspNetCoreEmbeddedLanguageDocumentHighlighter.cs (2)
29public ImmutableArray<DocumentHighlights> GetDocumentHighlights( 48return ImmutableArray<DocumentHighlights>.Empty;
Microsoft.CodeAnalysis.ExternalAccess.Copilot (39)
Analyzer\CopilotChecksumWrapper.cs (1)
22public static CopilotChecksumWrapper Create(ImmutableArray<string> values)
Analyzer\IExternalCSharpCopilotCodeAnalysisService.cs (4)
17Task<ImmutableArray<string>> GetAvailablePromptTitlesAsync(Document document, CancellationToken cancellationToken); 18Task<ImmutableArray<Diagnostic>> AnalyzeDocumentAsync(Document document, TextSpan? span, string promptTitle, CancellationToken cancellationToken); 19Task<ImmutableArray<Diagnostic>> GetCachedDiagnosticsAsync(Document document, string promptTitle, CancellationToken cancellationToken); 21Task<string> GetOnTheFlyDocsAsync(string symbolSignature, ImmutableArray<string> declarationCode, string language, CancellationToken cancellationToken);
CodeMapper\ICSharpCopilotMapCodeService.cs (3)
15Task<ImmutableArray<TextChange>?> MapCodeAsync( 17ImmutableArray<string> contents, 18ImmutableArray<(Document document, TextSpan textSpan)> prioritizedFocusLocations,
Internal\Analyzer\AbstractCopilotCodeAnalysisService.cs (12)
35private readonly ConditionalWeakTable<Document, ConcurrentDictionary<string, (ImmutableArray<Diagnostic> Diagnostics, bool IsCompleteResult)>> _diagnosticsCache = new(); 38protected abstract Task<ImmutableArray<string>> GetAvailablePromptTitlesCoreAsync(Document document, CancellationToken cancellationToken); 39protected abstract Task<ImmutableArray<Diagnostic>> AnalyzeDocumentCoreAsync(Document document, TextSpan? span, string promptTitle, CancellationToken cancellationToken); 40protected abstract Task<ImmutableArray<Diagnostic>> GetCachedDiagnosticsCoreAsync(Document document, string promptTitle, CancellationToken cancellationToken); 42protected abstract Task<string> GetOnTheFlyDocsCoreAsync(string symbolSignature, ImmutableArray<string> declarationCode, string language, CancellationToken cancellationToken); 48public async Task<ImmutableArray<string>> GetAvailablePromptTitlesAsync(Document document, CancellationToken cancellationToken) 95private bool TryGetDiagnosticsFromCache(Document document, string promptTitle, out ImmutableArray<Diagnostic> diagnostics, out bool isCompleteResult) 110private void CacheAndRefreshDiagnosticsIfNeeded(Document document, string promptTitle, ImmutableArray<Diagnostic> diagnostics, bool isCompleteResult) 128public async Task<ImmutableArray<Diagnostic>> GetCachedDocumentDiagnosticsAsync(Document document, TextSpan? span, ImmutableArray<string> promptTitles, CancellationToken cancellationToken) 162protected virtual Task<ImmutableArray<Diagnostic>> GetDiagnosticsIntersectWithSpanAsync(Document document, IReadOnlyList<Diagnostic> diagnostics, TextSpan span, CancellationToken cancellationToken) 176public async Task<string> GetOnTheFlyDocsAsync(string symbolSignature, ImmutableArray<string> declarationCode, string language, CancellationToken cancellationToken)
Internal\Analyzer\CSharp\CSharpCopilotCodeAnalysisService.cs (5)
45protected override Task<ImmutableArray<Diagnostic>> AnalyzeDocumentCoreAsync(Document document, TextSpan? span, string promptTitle, CancellationToken cancellationToken) 48protected override Task<ImmutableArray<string>> GetAvailablePromptTitlesCoreAsync(Document document, CancellationToken cancellationToken) 51protected override Task<ImmutableArray<Diagnostic>> GetCachedDiagnosticsCoreAsync(Document document, string promptTitle, CancellationToken cancellationToken) 60protected override Task<string> GetOnTheFlyDocsCoreAsync(string symbolSignature, ImmutableArray<string> declarationCode, string language, CancellationToken cancellationToken) 63protected override async Task<ImmutableArray<Diagnostic>> GetDiagnosticsIntersectWithSpanAsync(
Internal\Analyzer\CSharp\CSharpCopilotCodeAnalysisService.ReflectionWrapper.cs (9)
17using AnalyzeDocumentAsyncDelegateType = Func<Document, TextSpan?, string, CancellationToken, Task<ImmutableArray<Diagnostic>>>; 18using GetAvailablePromptTitlesAsyncDelegateType = Func<Document, CancellationToken, Task<ImmutableArray<string>>>; 19using GetCachedDiagnosticsAsyncDelegateType = Func<Document, string, CancellationToken, Task<ImmutableArray<Diagnostic>>>; 22using GetOnTheFlyDocsAsyncDelegateType = Func<string, ImmutableArray<string>, string, CancellationToken, Task<string>>; 117=> CreateDelegate<GetOnTheFlyDocsAsyncDelegateType>(GetOnTheFlyDocsAsyncMethodName, [typeof(string), typeof(ImmutableArray<string>), typeof(string), typeof(CancellationToken)]); 130public async Task<ImmutableArray<string>> GetAvailablePromptTitlesAsync(Document document, CancellationToken cancellationToken) 138public async Task<ImmutableArray<Diagnostic>> AnalyzeDocumentAsync(Document document, TextSpan? span, string promptTitle, CancellationToken cancellationToken) 146public async Task<ImmutableArray<Diagnostic>> GetCachedDiagnosticsAsync(Document document, string promptTitle, CancellationToken cancellationToken) 162public async Task<string> GetOnTheFlyDocsAsync(string symbolSignature, ImmutableArray<string> declarationCode, string language, CancellationToken cancellationToken)
Internal\CodeMapper\CopilotCSharpMapCodeService.cs (3)
30public Task<ImmutableArray<TextChange>?> MapCodeAsync(Document document, ImmutableArray<string> contents, ImmutableArray<(Document, TextSpan)> focusLocations, CancellationToken cancellationToken)
Internal\RelatedDocuments\CSharpCopilotRelatedDocumentsService.cs (1)
26public ValueTask GetRelatedDocumentIdsAsync(Document document, int position, Func<ImmutableArray<DocumentId>, CancellationToken, ValueTask> callbackAsync, CancellationToken cancellationToken)
RelatedDocuments\ICopilotRelatedDocumentsService.cs (1)
16Document document, int position, Func<ImmutableArray<DocumentId>, CancellationToken, ValueTask> callbackAsync, CancellationToken cancellationToken);
Microsoft.CodeAnalysis.ExternalAccess.Debugger (2)
GlassTestsHotReloadService.cs (2)
18(_, _, _) => ValueTaskFactory.FromResult(ImmutableArray<ActiveStatementSpan>.Empty); 37captureMatchingDocuments: ImmutableArray<DocumentId>.Empty,
Microsoft.CodeAnalysis.ExternalAccess.FSharp (118)
Completion\FSharpCommonCompletionItem.cs (2)
20ImmutableArray<SymbolDisplayPart> description = default, 25ImmutableArray<string> tags = default,
Completion\FSharpFileSystemCompletionHelper.cs (3)
22ImmutableArray<string> searchPaths, 24ImmutableArray<string> allowableExtensions, 37public Task<ImmutableArray<CompletionItem>> GetItemsAsync(string directoryPath, CancellationToken cancellationToken)
Diagnostics\IFSharpDocumentDiagnosticAnalyzer.cs (2)
15Task<ImmutableArray<Diagnostic>> AnalyzeSemanticsAsync(Document document, CancellationToken cancellationToken); 17Task<ImmutableArray<Diagnostic>> AnalyzeSyntaxAsync(Document document, CancellationToken cancellationToken);
Diagnostics\IFSharpSimplifyNameDiagnosticAnalyzer.cs (1)
15Task<ImmutableArray<Diagnostic>> AnalyzeSemanticsAsync(DiagnosticDescriptor descriptor, Document document, CancellationToken cancellationToken);
Diagnostics\IFSharpUnusedDeclarationsDiagnosticAnalyzer.cs (1)
15Task<ImmutableArray<Diagnostic>> AnalyzeSemanticsAsync(DiagnosticDescriptor descriptor, Document document, CancellationToken cancellationToken);
Diagnostics\IFSharpUnusedOpensDiagnosticAnalyzer.cs (1)
15Task<ImmutableArray<Diagnostic>> AnalyzeSemanticsAsync(DiagnosticDescriptor descriptor, Document document, CancellationToken cancellationToken);
DocumentHighlighting\IFSharpDocumentHighlightsService.cs (3)
37public ImmutableArray<FSharpHighlightSpan> HighlightSpans { get; } 39public FSharpDocumentHighlights(Document document, ImmutableArray<FSharpHighlightSpan> highlightSpans) 52Task<ImmutableArray<FSharpDocumentHighlights>> GetDocumentHighlightsAsync(
Editor\InlineRename\FSharpInlineRenameInfo.cs (2)
30public abstract ImmutableArray<FSharpInlineRenameLocation> DefinitionLocations { get; } 42ImmutableArray<DocumentSpan> IInlineRenameInfo.DefinitionLocations
FindUsages\FSharpDefinitionItem.cs (8)
22public static FSharpDefinitionItem Create(ImmutableArray<string> tags, ImmutableArray<TaggedText> displayParts, FSharpDocumentSpan sourceSpan) 34public static FSharpDefinitionItem CreateNonNavigableItem(ImmutableArray<string> tags, ImmutableArray<TaggedText> displayParts, ImmutableArray<TaggedText> originationParts) 41public static FSharpDefinitionItem CreateNonNavigableItem(ImmutableArray<string> tags, ImmutableArray<TaggedText> displayParts, ImmutableArray<(string name, Version version, string filePath)> metadataLocations)
FSharpGlyphTags.cs (1)
14public static ImmutableArray<string> GetTags(FSharpGlyph glyph)
GoToDefinition\IFSharpFindDefinitionService.cs (1)
17Task<ImmutableArray<FSharpNavigableItem>> FindDefinitionsAsync(Document document, int position, CancellationToken cancellationToken);
InlineHints\FSharpInlineHint.cs (5)
19public readonly ImmutableArray<TaggedText> DisplayParts; 20private readonly Func<Document, CancellationToken, Task<ImmutableArray<TaggedText>>>? _getDescriptionAsync; 24ImmutableArray<TaggedText> displayParts, 25Func<Document, CancellationToken, Task<ImmutableArray<TaggedText>>>? getDescriptionAsync = null) 39public Task<ImmutableArray<TaggedText>> GetDescriptionAsync(Document document, CancellationToken cancellationToken)
InlineHints\IFSharpInlineHintsService.cs (1)
17Task<ImmutableArray<FSharpInlineHint>> GetInlineHintsAsync(Document document, TextSpan textSpan, CancellationToken cancellationToken);
Internal\Classification\FSharpClassificationService.cs (4)
42public async Task AddSemanticClassificationsAsync(Document document, ImmutableArray<TextSpan> textSpans, ClassificationOptions options, SegmentedList<ClassifiedSpan> result, CancellationToken cancellationToken) 52public async Task AddSyntacticClassificationsAsync(Document document, ImmutableArray<TextSpan> textSpans, SegmentedList<ClassifiedSpan> result, CancellationToken cancellationToken) 67public void AddSyntacticClassifications(SolutionServices services, SyntaxNode? root, ImmutableArray<TextSpan> textSpans, SegmentedList<ClassifiedSpan> result, CancellationToken cancellationToken) 84public Task AddEmbeddedLanguageClassificationsAsync(Document document, ImmutableArray<TextSpan> textSpans, ClassificationOptions options, SegmentedList<ClassifiedSpan> result, CancellationToken cancellationToken)
Internal\Diagnostics\FSharpDocumentDiagnosticAnalyzer.cs (9)
35public Task<ImmutableArray<Diagnostic>> AnalyzeSemanticsAsync(Document document, CancellationToken cancellationToken) 40public Task<ImmutableArray<Diagnostic>> AnalyzeSyntaxAsync(Document document, CancellationToken cancellationToken) 49private readonly ImmutableArray<DiagnosticDescriptor> _supportedDiagnostics; 56public static ImmutableArray<DiagnosticDescriptor> CreateSupportedDiagnostics() 71public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => _supportedDiagnostics; 73public override Task<ImmutableArray<Diagnostic>> AnalyzeSemanticsAsync(Document document, CancellationToken cancellationToken) 78return Task.FromResult(ImmutableArray<Diagnostic>.Empty); 84public override Task<ImmutableArray<Diagnostic>> AnalyzeSyntaxAsync(Document document, CancellationToken cancellationToken) 89return Task.FromResult(ImmutableArray<Diagnostic>.Empty);
Internal\Diagnostics\FSharpSimplifyNameDiagnosticAnalyzer.cs (6)
35public Task<ImmutableArray<Diagnostic>> AnalyzeSemanticsAsync(DiagnosticDescriptor descriptor, Document document, CancellationToken cancellationToken) 51public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(_descriptor); 57public override Task<ImmutableArray<Diagnostic>> AnalyzeSemanticsAsync(Document document, CancellationToken cancellationToken) 62return Task.FromResult(ImmutableArray<Diagnostic>.Empty); 68public override Task<ImmutableArray<Diagnostic>> AnalyzeSyntaxAsync(Document document, CancellationToken cancellationToken) 70return Task.FromResult(ImmutableArray<Diagnostic>.Empty);
Internal\Diagnostics\FSharpUnusedDeclarationsAnalyzer.cs (6)
35public Task<ImmutableArray<Diagnostic>> AnalyzeSemanticsAsync(DiagnosticDescriptor descriptor, Document document, CancellationToken cancellationToken) 53public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(_descriptor); 59public override Task<ImmutableArray<Diagnostic>> AnalyzeSemanticsAsync(Document document, CancellationToken cancellationToken) 64return Task.FromResult(ImmutableArray<Diagnostic>.Empty); 70public override Task<ImmutableArray<Diagnostic>> AnalyzeSyntaxAsync(Document document, CancellationToken cancellationToken) 72return Task.FromResult(ImmutableArray<Diagnostic>.Empty);
Internal\Diagnostics\FSharpUnusedOpensDiagnosticAnalyzer.cs (6)
32public Task<ImmutableArray<Diagnostic>> AnalyzeSemanticsAsync(DiagnosticDescriptor descriptor, Document document, CancellationToken cancellationToken) 48public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(_descriptor); 52public override Task<ImmutableArray<Diagnostic>> AnalyzeSemanticsAsync(Document document, CancellationToken cancellationToken) 57return Task.FromResult(ImmutableArray<Diagnostic>.Empty); 63public override Task<ImmutableArray<Diagnostic>> AnalyzeSyntaxAsync(Document document, CancellationToken cancellationToken) 65return Task.FromResult(ImmutableArray<Diagnostic>.Empty);
Internal\DocumentHighlighting\FSharpDocumentHighlightsService.cs (4)
67private static ImmutableArray<HighlightSpan> MapHighlightSpans(ImmutableArray<FSharpHighlightSpan> highlightSpans) 72public async Task<ImmutableArray<DocumentHighlights>> GetDocumentHighlightsAsync(Document document, int position, IImmutableSet<Document> documentsToSearch, HighlightingOptions options, CancellationToken cancellationToken) 74var highlights = await _service.GetDocumentHighlightsAsync(document, position, documentsToSearch, cancellationToken).ConfigureAwait(false);
Internal\Editor\FSharpEditorFormattingService.cs (8)
79async Task<ImmutableArray<TextChange>> IFormattingInteractionService.GetFormattingChangesAsync(Document document, ITextBuffer textBuffer, TextSpan? textSpan, CancellationToken cancellationToken) 82return changes?.ToImmutableArray() ?? ImmutableArray<TextChange>.Empty; 85async Task<ImmutableArray<TextChange>> IFormattingInteractionService.GetFormattingChangesAsync(Document document, ITextBuffer textBuffer, char typedChar, int position, CancellationToken cancellationToken) 88return changes?.ToImmutableArray() ?? ImmutableArray<TextChange>.Empty; 91async Task<ImmutableArray<TextChange>> IFormattingInteractionService.GetFormattingChangesOnPasteAsync(Document document, ITextBuffer textBuffer, TextSpan textSpan, CancellationToken cancellationToken) 94return changes?.ToImmutableArray() ?? ImmutableArray<TextChange>.Empty; 97async Task<ImmutableArray<TextChange>> IFormattingInteractionService.GetFormattingChangesOnReturnAsync(Document document, int position, CancellationToken cancellationToken) 100return changes?.ToImmutableArray() ?? ImmutableArray<TextChange>.Empty;
Internal\Editor\FSharpEditorInlineRenameService.cs (3)
140public ImmutableArray<DocumentSpan> DefinitionLocations => default; 206public Task<ImmutableDictionary<string, ImmutableArray<(string filePath, string content)>>> GetRenameContextAsync(IInlineRenameInfo inlineRenameInfo, IInlineRenameLocationSet inlineRenameLocationSet, CancellationToken cancellationToken) 208return Task.FromResult(ImmutableDictionary<string, ImmutableArray<(string filePath, string content)>>.Empty);
Internal\Editor\FSharpNavigationBarItemService.cs (4)
41public Task<ImmutableArray<NavigationBarItem>> GetItemsAsync(Document document, ITextVersion textVersion, CancellationToken cancellationToken) 47async Task<ImmutableArray<NavigationBarItem>> INavigationBarItemService.GetItemsAsync( 56? ImmutableArray<NavigationBarItem>.Empty 60private static ImmutableArray<NavigationBarItem> ConvertItems(IList<FSharpNavigationBarItem> items, ITextVersion textVersion)
Internal\InlineHints\FSharpInlineHintsService.cs (3)
30public async Task<ImmutableArray<InlineHint>> GetInlineHintsAsync( 34return ImmutableArray<InlineHint>.Empty; 36var hints = await _service.GetInlineHintsAsync(document, textSpan, cancellationToken).ConfigureAwait(false);
Internal\NavigateTo\FSharpNavigateToSearchService.cs (6)
39Func<ImmutableArray<INavigateToSearchResult>, Task> onResultsFound, 42var results = await _service.SearchDocumentAsync(document, searchPattern, kinds, cancellationToken).ConfigureAwait(false); 49ImmutableArray<Project> projects, 50ImmutableArray<Document> priorityDocuments, 54Func<ImmutableArray<INavigateToSearchResult>, Task> onResultsFound, 63var results = await _service.SearchProjectAsync(project, priorityDocuments, searchPattern, kinds, cancellationToken).ConfigureAwait(false);
Internal\NavigateTo\InternalFSharpNavigateToSearchResult.cs (3)
36public ImmutableArray<TextSpan> NameMatchSpans => ImmutableArray<TextSpan>.Empty; 42public ImmutableArray<PatternMatch> Matches => NavigateToSearchResultHelpers.GetMatches(this);
Internal\Navigation\FSharpFindDefinitionService.cs (2)
21public async Task<ImmutableArray<INavigableItem>> GetNavigableItemsAsync(Document document, int position, CancellationToken cancellationToken) 27public Task<ImmutableArray<INavigableItem>> GetNavigableItemsAsync(Document document, int position, bool forSymbolType, CancellationToken cancellationToken)
Internal\Navigation\InternalFSharpNavigableItem.cs (3)
30public ImmutableArray<TaggedText> DisplayTaggedParts { get; } 44public ImmutableArray<INavigableItem> ChildItems => ImmutableArray<INavigableItem>.Empty;
NavigateTo\IFSharpNavigateToSearchService.cs (3)
17Task<ImmutableArray<FSharpNavigateToSearchResult>> SearchProjectAsync(Project project, ImmutableArray<Document> priorityDocuments, string searchPattern, IImmutableSet<string> kinds, CancellationToken cancellationToken); 18Task<ImmutableArray<FSharpNavigateToSearchResult>> SearchDocumentAsync(Document document, string searchPattern, IImmutableSet<string> kinds, CancellationToken cancellationToken);
Navigation\FSharpNavigableItem.cs (2)
14public FSharpNavigableItem(FSharpGlyph glyph, ImmutableArray<TaggedText> displayTaggedParts, Document document, TextSpan sourceSpan) 24public ImmutableArray<TaggedText> DisplayTaggedParts { get; }
SignatureHelp\FSharpSignatureHelpItem.cs (5)
26public ImmutableArray<TaggedText> PrefixDisplayParts { get; } 27public ImmutableArray<TaggedText> SuffixDisplayParts { get; } 31public ImmutableArray<TaggedText> SeparatorDisplayParts { get; } 33public ImmutableArray<FSharpSignatureHelpParameter> Parameters { get; } 35public ImmutableArray<TaggedText> DescriptionParts { get; internal set; }
Structure\FSharpBlockStructure.cs (2)
13public ImmutableArray<FSharpBlockSpan> Spans { get; } 15public FSharpBlockStructure(ImmutableArray<FSharpBlockSpan> spans)
TaskList\FSharpTaskListService.cs (4)
29public async Task<ImmutableArray<TaskListItem>> GetTaskListItemsAsync(Document document, ImmutableArray<TaskListItemDescriptor> descriptors, CancellationToken cancellationToken) 32return ImmutableArray<TaskListItem>.Empty; 40return ImmutableArray<TaskListItem>.Empty;
TaskList\IFSharpTaskListService.cs (2)
13Task<ImmutableArray<FSharpTaskListItem>> GetTaskListItemsAsync(Document document, ImmutableArray<FSharpTaskListDescriptor> descriptors, CancellationToken cancellationToken);
VS\IFSharpWorkspaceProjectContextFactory.cs (2)
93public override ImmutableArray<string> GetItemValues(string name) 94=> ImmutableArray<string>.Empty;
Microsoft.CodeAnalysis.ExternalAccess.OmniSharp (30)
CodeActions\OmniSharpCodeFixContextFactory.cs (2)
20ImmutableArray<Diagnostic> diagnostics, 21Action<CodeAction, ImmutableArray<Diagnostic>> registerCodeFix,
ExtractClass\IOmniSharpExtractClassOptionsService.cs (3)
12OmniSharpExtractClassOptions? GetExtractClassOptions(Document document, INamedTypeSymbol originalType, ImmutableArray<ISymbol> selectedMembers); 20public ImmutableArray<OmniSharpExtractClassMemberAnalysisResult> MemberAnalysisResults { get; } 26ImmutableArray<OmniSharpExtractClassMemberAnalysisResult> memberAnalysisResults)
ExtractInterface\IOmniSharpExtractInterfaceOptionsService.cs (2)
28public ImmutableArray<ISymbol> IncludedMembers { get; } 33public OmniSharpExtractInterfaceOptionsResult(bool isCancelled, ImmutableArray<ISymbol> includedMembers, string interfaceName, string fileName, OmniSharpExtractLocation location)
GoToDefinition\OmniSharpFindDefinitionService.cs (2)
16internal static async Task<ImmutableArray<OmniSharpNavigableItem>> FindDefinitionsAsync(Document document, int position, CancellationToken cancellationToken) 20return ImmutableArray<OmniSharpNavigableItem>.Empty;
InlineHints\OmniSharpInlineHintsService.cs (6)
17public static async Task<ImmutableArray<OmniSharpInlineHint>> GetInlineHintsAsync(Document document, TextSpan textSpan, OmniSharpInlineHintsOptions options, CancellationToken cancellationToken) 34private readonly Func<Document, CancellationToken, Task<ImmutableArray<TaggedText>>> _getDescriptionAsync; 39ImmutableArray<TaggedText> displayParts, 41Func<Document, CancellationToken, Task<ImmutableArray<TaggedText>>> getDescriptionAsync) 52public readonly ImmutableArray<TaggedText> DisplayParts { get; } 55public Task<ImmutableArray<TaggedText>> GetDescriptionAsync(Document document, CancellationToken cancellationToken)
Internal\ExtractClass\OmniSharpExtractClassOptionsService.cs (1)
28ImmutableArray<ISymbol> selectedMembers,
Internal\PickMembers\OmniSharpPickMembersService.cs (2)
27public PickMembersResult PickMembers(string title, ImmutableArray<ISymbol> members, ImmutableArray<PickMembersOption> options = default, bool selectAll = true)
NavigateTo\OmniSharpNavigateToSearchResult.cs (1)
20ImmutableArray<TextSpan> NameMatchSpans,
NavigateTo\OmniSharpNavigateToSearchService.cs (1)
39public async Task AddResultsAsync(ImmutableArray<INavigateToSearchResult> results, CancellationToken cancellationToken)
Navigation\OmniSharpNavigableItem.cs (2)
12public OmniSharpNavigableItem(ImmutableArray<TaggedText> displayTaggedParts, Document document, TextSpan sourceSpan) 19public ImmutableArray<TaggedText> DisplayTaggedParts { get; }
PickMembers\IOmniSharpPickMembersService.cs (6)
13string title, ImmutableArray<ISymbol> members, 14ImmutableArray<OmniSharpPickMembersOption> options = default, 34public readonly ImmutableArray<ISymbol> Members; 35public readonly ImmutableArray<OmniSharpPickMembersOption> Options; 39ImmutableArray<ISymbol> members, 40ImmutableArray<OmniSharpPickMembersOption> options,
Structure\OmniSharpBlockStructure.cs (2)
13public ImmutableArray<OmniSharpBlockSpan> Spans { get; } 15public OmniSharpBlockStructure(ImmutableArray<OmniSharpBlockSpan> spans)
Microsoft.CodeAnalysis.ExternalAccess.Razor (27)
Cohost\Handlers\Diagnostics.cs (1)
18public static async Task<ImmutableArray<LSP.Diagnostic>> GetDocumentDiagnosticsAsync(Document document, bool supportsVisualStudioExtensions, CancellationToken cancellationToken)
Cohost\Handlers\DocumentSpellCheck.cs (1)
20public static async Task<ImmutableArray<SpellCheckSpan>> GetSpellCheckSpansAsync(Document document, CancellationToken cancellationToken)
Cohost\Handlers\SemanticTokensRange.cs (1)
18ImmutableArray<LinePositionSpan> spans,
IRazorMappingService.cs (2)
15Task<ImmutableArray<RazorMappedSpanResult>> MapSpansAsync(Document document, IEnumerable<TextSpan> spans, CancellationToken cancellationToken); 16Task<ImmutableArray<RazorMappedEditoResult>> MapTextChangesAsync(Document oldDocument, Document newDocument, CancellationToken cancellationToken);
IRazorSpanMappingService.cs (1)
15Task<ImmutableArray<RazorMappedSpanResult>> MapSpansAsync(Document document, IEnumerable<TextSpan> spans, CancellationToken cancellationToken);
RazorCSharpFormattingInteractionService.cs (2)
32public static async Task<ImmutableArray<TextChange>> GetFormattingChangesAsync( 47return ImmutableArray<TextChange>.Empty;
RazorExcerptResult.cs (2)
17public readonly ImmutableArray<ClassifiedSpan> ClassifiedSpans; 23public RazorExcerptResult(SourceText content, TextSpan mappedSpan, ImmutableArray<ClassifiedSpan> classifiedSpans, Document document, TextSpan span)
RazorGlobalOptions.cs (5)
60public ImmutableArray<object?> GetOptions(ImmutableArray<OptionKey> optionKeys) => throw new NotImplementedException(); 62public ImmutableArray<object?> GetOptions(ImmutableArray<OptionKey2> optionKeys) => throw new NotImplementedException(); 66public bool SetGlobalOptions(ImmutableArray<KeyValuePair<OptionKey2, object?>> options) => throw new NotImplementedException();
RazorMappingServiceWrapper.cs (2)
23public async Task<ImmutableArray<(string mappedFilePath, TextChange mappedTextChange)>> GetMappedTextChangesAsync( 51public async Task<ImmutableArray<MappedSpanResult>> MapSpansAsync(
RazorSemanticTokensAccessor.cs (1)
12public static ImmutableArray<string> GetTokenTypes(bool clientSupportsVisualStudioExtensions) => SemanticTokensSchema.GetSchema(clientSupportsVisualStudioExtensions).AllTokenTypes;
RazorSpanMappingServiceWrapper.cs (3)
31public override async Task<ImmutableArray<(string mappedFilePath, TextChange mappedTextChange)>> GetMappedTextChangesAsync( 47public override async Task<ImmutableArray<MappedSpanResult>> MapSpansAsync( 52var razorSpans = await _razorSpanMappingService.MapSpansAsync(document, spans, cancellationToken).ConfigureAwait(false);
Remote\RazorServiceDescriptorsWrapper.cs (4)
28ImmutableArray<IMessagePackFormatter> additionalFormatters, 29ImmutableArray<IFormatterResolver> additionalResolvers, 39ImmutableArray<JsonConverter> jsonConverters, 49public static ImmutableArray<JsonConverter> GetLspConverters()
SolutionExtensions.cs (2)
12public static ImmutableArray<TextDocument> GetTextDocuments(this Solution solution, Uri documentUri) 15public static ImmutableArray<DocumentId> GetDocumentIds(this Solution solution, Uri documentUri)
Microsoft.CodeAnalysis.ExternalAccess.RazorCompiler (1)
GeneratorExtensions.cs (1)
36public static ImmutableArray<(string Key, string Value)> GetHostOutputs(this GeneratorRunResult runResult) => runResult.HostOutputs.ToImmutableArray().SelectAsArray(a => (a.Key, a.Value.ToString() ?? ""));
Microsoft.CodeAnalysis.ExternalAccess.Xaml (7)
External\ConversionHelpers.cs (1)
24var tags = info.Sections
External\IDescriptionService.cs (1)
25(string content, bool isMarkdown) GetMarkupContent(ImmutableArray<TaggedText> tags, string language, bool featureSupportsMarkdown);
External\IXamlDiagnosticSource.cs (1)
13Task<ImmutableArray<Diagnostic>> GetDiagnosticsAsync(
Internal\DescriptionService.cs (1)
96public (string content, bool isMarkdown) GetMarkupContent(ImmutableArray<TaggedText> tags, string language, bool featureSupportsMarkdown)
Internal\LocationService.cs (1)
49var items = NavigableItemFactory.GetItemsFromPreferredSourceLocations(project.Solution, symbol, displayTaggedParts: null, cancellationToken);
Internal\XamlDiagnosticSource.cs (1)
25async Task<ImmutableArray<DiagnosticData>> IDiagnosticSource.GetDiagnosticsAsync(RequestContext context, CancellationToken cancellationToken)
Internal\XamlDiagnosticSourceProvider.cs (1)
28ValueTask<ImmutableArray<IDiagnosticSource>> IDiagnosticSourceProvider.CreateDiagnosticSourcesAsync(RequestContext context, CancellationToken cancellationToken)
Microsoft.CodeAnalysis.Features (2921)
AddConstructorParametersFromMembers\AddConstructorParametersFromMembersCodeRefactoringProvider.AddConstructorParameterResult.cs (4)
12ImmutableArray<AddConstructorParametersCodeAction> requiredParameterActions, 13ImmutableArray<AddConstructorParametersCodeAction> optionalParameterActions, 16internal readonly ImmutableArray<AddConstructorParametersCodeAction> RequiredParameterActions = requiredParameterActions; 17internal readonly ImmutableArray<AddConstructorParametersCodeAction> OptionalParameterActions = optionalParameterActions;
AddConstructorParametersFromMembers\AddConstructorParametersFromMembersCodeRefactoringProvider.AddConstructorParametersCodeAction.cs (2)
31ImmutableArray<IParameterSymbol> missingParameters, 38private readonly ImmutableArray<IParameterSymbol> _missingParameters = missingParameters;
AddConstructorParametersFromMembers\AddConstructorParametersFromMembersCodeRefactoringProvider.ConstructorCandidate.cs (4)
11private readonly struct ConstructorCandidate(IMethodSymbol constructor, ImmutableArray<ISymbol> missingMembers, ImmutableArray<IParameterSymbol> missingParameters) 14public readonly ImmutableArray<ISymbol> MissingMembers = missingMembers; 15public readonly ImmutableArray<IParameterSymbol> MissingParameters = missingParameters;
AddConstructorParametersFromMembers\AddConstructorParametersFromMembersCodeRefactoringProvider.cs (3)
79private static ImmutableArray<CodeAction> GetGroupedActions(AddConstructorParameterResult result) 142static bool CanHaveRequiredParameters(ImmutableArray<IParameterSymbol> parameters) 162public async Task<ImmutableArray<IntentProcessorResult>> ComputeIntentAsync(
AddConstructorParametersFromMembers\AddConstructorParametersFromMembersCodeRefactoringProvider.State.cs (14)
24public ImmutableArray<ConstructorCandidate> ConstructorCandidates { get; private set; } 30ImmutableArray<ISymbol> selectedMembers, 45ImmutableArray<ISymbol> selectedMembers, 51var rules = await document.GetNamingRulesAsync(cancellationToken).ConfigureAwait(false); 52var parametersForSelectedMembers = DetermineParameters(selectedMembers, rules); 77private static async Task<ImmutableArray<ConstructorCandidate>> GetConstructorCandidatesInfoAsync( 79ImmutableArray<ISymbol> selectedMembers, 81ImmutableArray<IParameterSymbol> parametersForSelectedMembers, 98private static async Task<bool> IsApplicableConstructorAsync(IMethodSymbol constructor, Document document, ImmutableArray<string> parameterNamesForSelectedMembers, CancellationToken cancellationToken) 100var constructorParams = constructor.Parameters; 118private static bool SelectedMembersAlreadyExistAsParameters(ImmutableArray<string> parameterNamesForSelectedMembers, ImmutableArray<IParameterSymbol> constructorParams) 122private static ConstructorCandidate CreateConstructorCandidate(ImmutableArray<IParameterSymbol> parametersForSelectedMembers, ImmutableArray<ISymbol> selectedMembers, IMethodSymbol constructor)
AddFileBanner\AbstractAddFileBannerCodeRefactoringProvider.cs (6)
30protected sealed override ImmutableArray<FixAllScope> SupportedFixAllScopes { get; } 98private static string GetEquivalenceKey(Document document, ImmutableArray<SyntaxTrivia> banner) 109private static ImmutableArray<SyntaxTrivia> GetBannerFromEquivalenceKey(string equivalenceKey, Document document) 122private async Task<ImmutableArray<SyntaxTrivia>> TryGetBannerAsync( 150ImmutableArray<TextSpan> fixAllSpans, 163var banner = GetBannerFromEquivalenceKey(equivalenceKey, document);
AddFileBanner\AddFileBannerHelpers.cs (2)
48private static ImmutableArray<SyntaxTrivia> UpdateEmbeddedFileNames( 51ImmutableArray<SyntaxTrivia> banner,
AddImport\AbstractAddImportCodeFixProvider.cs (1)
56var diagnostics = context.Diagnostics;
AddImport\AbstractAddImportFeatureService.cs (32)
64public async Task<ImmutableArray<AddImportFixData>> GetFixesAsync( 67ImmutableArray<PackageSource> packageSources, CancellationToken cancellationToken) 72var result = await client.TryInvokeAsync<IRemoteMissingImportDiscoveryService, ImmutableArray<AddImportFixData>>( 88private async Task<ImmutableArray<AddImportFixData>> GetFixesInCurrentProcessAsync( 91ImmutableArray<PackageSource> packageSources, CancellationToken cancellationToken) 131private async Task<ImmutableArray<Reference>> FindResultsAsync( 139ImmutableArray<PackageSource> packageSources, 152var exactReferences = await FindResultsAsync(projectToAssembly, referenceToCompilation, project, maxResults, finder, exact: true, cancellationToken).ConfigureAwait(false); 162var fuzzyReferences = await FindResultsAsync(projectToAssembly, referenceToCompilation, project, maxResults, finder, exact: false, cancellationToken).ConfigureAwait(false); 169private async Task<ImmutableArray<Reference>> FindResultsAsync( 234await ProducerConsumer<ImmutableArray<SymbolReference>>.RunParallelAsync( 275var newReferences = GetUnreferencedMetadataReferences(project, seenReferences); 285await ProducerConsumer<ImmutableArray<SymbolReference>>.RunParallelAsync( 321private static ImmutableArray<(Project, PortableExecutableReference)> GetUnreferencedMetadataReferences( 351IAsyncEnumerable<ImmutableArray<SymbolReference>> reader, 354await foreach (var symbolReferences in reader) 474private static void AddRange(ConcurrentQueue<Reference> allSymbolReferences, ImmutableArray<SymbolReference> proposedReferences) 514public async Task<ImmutableArray<(Diagnostic Diagnostic, ImmutableArray<AddImportFixData> Fixes)>> GetFixesForDiagnosticsAsync( 515Document document, TextSpan span, ImmutableArray<Diagnostic> diagnostics, int maxResultsPerDiagnostic, 517ImmutableArray<PackageSource> packageSources, CancellationToken cancellationToken) 522var result = new FixedSizeArrayBuilder<(Diagnostic, ImmutableArray<AddImportFixData>)>(diagnostics.Length); 526var fixes = await GetFixesAsync( 537public async Task<ImmutableArray<AddImportFixData>> GetUniqueFixesAsync( 538Document document, TextSpan span, ImmutableArray<string> diagnosticIds, 540ImmutableArray<PackageSource> packageSources, CancellationToken cancellationToken) 545var result = await client.TryInvokeAsync<IRemoteMissingImportDiscoveryService, ImmutableArray<AddImportFixData>>( 561private async Task<ImmutableArray<AddImportFixData>> GetUniqueFixesAsyncInCurrentProcessAsync( 564ImmutableArray<string> diagnosticIds, 567ImmutableArray<PackageSource> packageSources, 603public ImmutableArray<CodeAction> GetCodeActionsForFixes( 604Document document, ImmutableArray<AddImportFixData> fixes,
AddImport\AddImportFixData.cs (10)
18ImmutableArray<TextChange> textChanges, 20ImmutableArray<string> tags = default, 41public readonly ImmutableArray<TextChange> TextChanges = textChanges; 53public readonly ImmutableArray<string> Tags = tags; 113public static AddImportFixData CreateForProjectSymbol(ImmutableArray<TextChange> textChanges, string title, ImmutableArray<string> tags, CodeActionPriority priority, ProjectId projectReferenceToAdd) 121public static AddImportFixData CreateForMetadataSymbol(ImmutableArray<TextChange> textChanges, string title, ImmutableArray<string> tags, CodeActionPriority priority, ProjectId portableExecutableReferenceProjectId, string portableExecutableReferenceFilePathToAdd) 130public static AddImportFixData CreateForReferenceAssemblySymbol(ImmutableArray<TextChange> textChanges, string title, string assemblyReferenceAssemblyName, string assemblyReferenceFullyQualifiedTypeName) 139public static AddImportFixData CreateForPackageSymbol(ImmutableArray<TextChange> textChanges, string packageSource, string packageName, string packageVersionOpt)
AddImport\CodeActions\AddImportCodeAction.cs (3)
28public sealed override ImmutableArray<string> Tags { get; } 40private readonly ImmutableArray<TextChange> _textChanges; 45ImmutableArray<string> additionalTags)
AddImport\CodeActions\AssemblyReferenceCodeAction.cs (2)
35protected override Task<ImmutableArray<CodeActionOperation>> ComputeOperationsAsync(IProgress<CodeAnalysisProgress> progress, CancellationToken cancellationToken) 38private async Task<ImmutableArray<CodeActionOperation>> ComputeOperationsAsync(bool isPreview, CancellationToken cancellationToken)
AddImport\CodeActions\InstallWithPackageManagerCodeAction.cs (1)
27protected override Task<ImmutableArray<CodeActionOperation>> ComputeOperationsAsync(
AddImport\CodeActions\SymbolReference.SymbolReferenceCodeAction.cs (2)
27ImmutableArray<string> additionalTags) 38protected override async Task<ImmutableArray<CodeActionOperation>> ComputeOperationsAsync(
AddImport\IAddImportFeatureService.cs (12)
24Task<ImmutableArray<AddImportFixData>> GetFixesAsync( 27ImmutableArray<PackageSource> packageSources, CancellationToken cancellationToken); 33Task<ImmutableArray<(Diagnostic Diagnostic, ImmutableArray<AddImportFixData> Fixes)>> GetFixesForDiagnosticsAsync( 34Document document, TextSpan span, ImmutableArray<Diagnostic> diagnostics, int maxResultsPerDiagnostic, 36ImmutableArray<PackageSource> packageSources, CancellationToken cancellationToken); 42ImmutableArray<CodeAction> GetCodeActionsForFixes( 43Document document, ImmutableArray<AddImportFixData> fixes, 48/// Similar to <see cref="GetFixesAsync(Document, TextSpan, string, int, ISymbolSearchService, AddImportOptions, ImmutableArray{PackageSource}, CancellationToken)"/> 51Task<ImmutableArray<AddImportFixData>> GetUniqueFixesAsync( 52Document document, TextSpan span, ImmutableArray<string> diagnosticIds, 54ImmutableArray<PackageSource> packageSources, CancellationToken cancellationToken);
AddImport\PackageSourceHelper.cs (1)
17public static IEnumerable<(string sourceName, string sourceUrl)> GetPackageSources(ImmutableArray<PackageSource> packageSources)
AddImport\References\AssemblyReference.cs (1)
28var textChanges = await GetTextChangesAsync(document, node, options, cancellationToken).ConfigureAwait(false);
AddImport\References\MetadataSymbolReference.cs (3)
51Document document, ImmutableArray<TextChange> textChanges, string description, 52ImmutableArray<string> tags, CodeActionPriority priority) 63protected override ImmutableArray<string> GetTags(Document document)
AddImport\References\PackageReference.cs (1)
31var textChanges = await GetTextChangesAsync(
AddImport\References\ProjectSymbolReference.cs (3)
34protected override ImmutableArray<string> GetTags(Document document) 75Document document, ImmutableArray<TextChange> textChanges, string description, 76ImmutableArray<string> tags, CodeActionPriority priority)
AddImport\References\Reference.cs (2)
57private static readonly ImmutableArray<Func<Reference, Document, IComparable>> s_comparers 103protected async Task<ImmutableArray<TextChange>> GetTextChangesAsync(
AddImport\References\SymbolReference.cs (5)
30protected abstract ImmutableArray<string> GetTags(Document document); 48private async Task<ImmutableArray<TextChange>> GetTextChangesAsync( 92var tags = GetTags(document); 119Document document, ImmutableArray<TextChange> textChanges, 120string description, ImmutableArray<string> tags, CodeActionPriority priority);
AddImport\Remote\IRemoteMissingImportDiscoveryService.cs (8)
21ValueTask<ImmutableArray<PackageResult>> FindPackagesAsync(RemoteServiceCallbackId callbackId, string source, TypeQuery typeQuery, NamespaceQuery namespaceQuery, CancellationToken cancellationToken); 22ValueTask<ImmutableArray<PackageWithAssemblyResult>> FindPackagesWithAssemblyAsync(RemoteServiceCallbackId callbackId, string source, string name, CancellationToken cancellationToken); 23ValueTask<ImmutableArray<ReferenceAssemblyResult>> FindReferenceAssembliesAsync(RemoteServiceCallbackId callbackId, TypeQuery typeQuery, NamespaceQuery namespaceQuery, CancellationToken cancellationToken); 26ValueTask<ImmutableArray<AddImportFixData>> GetFixesAsync( 28AddImportOptions options, ImmutableArray<PackageSource> packageSources, CancellationToken cancellationToken); 30ValueTask<ImmutableArray<AddImportFixData>> GetUniqueFixesAsync( 31Checksum solutionChecksum, RemoteServiceCallbackId callbackId, DocumentId id, TextSpan span, ImmutableArray<string> diagnosticIds, 32AddImportOptions options, ImmutableArray<PackageSource> packageSources, CancellationToken cancellationToken);
AddImport\Remote\RemoteMissingImportDiscoveryServiceCallbackDispatcher.cs (3)
34public ValueTask<ImmutableArray<PackageResult>> FindPackagesAsync(RemoteServiceCallbackId callbackId, string source, TypeQuery typeQuery, NamespaceQuery namespaceQuery, CancellationToken cancellationToken) 37public ValueTask<ImmutableArray<PackageWithAssemblyResult>> FindPackagesWithAssemblyAsync(RemoteServiceCallbackId callbackId, string source, string name, CancellationToken cancellationToken) 40public ValueTask<ImmutableArray<ReferenceAssemblyResult>> FindReferenceAssembliesAsync(RemoteServiceCallbackId callbackId, TypeQuery typeQuery, NamespaceQuery namespaceQuery, CancellationToken cancellationToken)
AddImport\SearchScopes\AllSymbolsProjectSearchScope.cs (1)
24protected override async Task<ImmutableArray<ISymbol>> FindDeclarationsAsync(
AddImport\SearchScopes\MetadataSymbolsSearchScope.cs (1)
35protected override async Task<ImmutableArray<ISymbol>> FindDeclarationsAsync(
AddImport\SearchScopes\SearchScope.cs (2)
36protected abstract Task<ImmutableArray<ISymbol>> FindDeclarationsAsync(SymbolFilter filter, SearchQuery query, CancellationToken cancellationToken); 40public async Task<ImmutableArray<SymbolResult<ISymbol>>> FindDeclarationsAsync(
AddImport\SearchScopes\SourceSymbolsProjectSearchScope.cs (1)
29protected override async Task<ImmutableArray<ISymbol>> FindDeclarationsAsync(
AddImport\SymbolReferenceFinder.cs (44)
42private readonly ImmutableArray<PackageSource> _packageSources; 57ImmutableArray<PackageSource> packageSources, 95internal Task<ImmutableArray<SymbolReference>> FindInAllSymbolsInStartingProjectAsync(bool exact, CancellationToken cancellationToken) 98internal Task<ImmutableArray<SymbolReference>> FindInSourceSymbolsInProjectAsync(ConcurrentDictionary<Project, AsyncLazy<IAssemblySymbol>> projectToAssembly, Project project, bool exact, CancellationToken cancellationToken) 101internal Task<ImmutableArray<SymbolReference>> FindInMetadataSymbolsAsync(IAssemblySymbol assembly, Project assemblyProject, PortableExecutableReference metadataReference, bool exact, CancellationToken cancellationToken) 104private async Task<ImmutableArray<SymbolReference>> DoAsync(SearchScope searchScope, CancellationToken cancellationToken) 115using var _1 = ArrayBuilder<Task<ImmutableArray<SymbolReference>>>.GetInstance(out var tasks); 150private ImmutableArray<SymbolReference> DeDupeAndSortReferences(ImmutableArray<SymbolReference> allReferences) 176private async Task<ImmutableArray<SymbolReference>> GetReferencesForMatchingTypesAsync( 194var symbols = await searchScope.FindDeclarationsAsync(name, nameNode, SymbolFilter.Type, cancellationToken).ConfigureAwait(false); 199var attributeSymbols = await searchScope.FindDeclarationsAsync( 206var typeSymbols = OfType<ITypeSymbol>(symbols); 223var namespaceReferences = GetNamespaceSymbolReferences(searchScope, 261private async Task<ImmutableArray<SymbolReference>> GetReferencesForMatchingNamespacesAsync( 272var symbols = await searchScope.FindDeclarationsAsync(name, nameNode, SymbolFilter.Namespace, cancellationToken).ConfigureAwait(false); 273var namespaceSymbols = OfType<INamespaceSymbol>(symbols); 288private async Task<ImmutableArray<SymbolReference>> GetReferencesForMatchingFieldsAndPropertiesAsync( 321var namedTypeSymbols = OfType<INamedTypeSymbol>(symbolResults); 350private async Task<ImmutableArray<SymbolReference>> GetReferencesForMatchingExtensionMethodsAsync( 365var symbols = await searchScope.FindDeclarationsAsync(name, nameNode, SymbolFilter.Member, cancellationToken).ConfigureAwait(false); 367var methodSymbols = OfType<IMethodSymbol>(symbols); 369var extensionMethodSymbols = GetViableExtensionMethods( 381private ImmutableArray<SymbolResult<IMethodSymbol>> GetViableExtensionMethods( 382ImmutableArray<SymbolResult<IMethodSymbol>> methodSymbols, 389private ImmutableArray<SymbolResult<IMethodSymbol>> GetViableExtensionMethods( 390ImmutableArray<SymbolResult<IMethodSymbol>> methodSymbols, ITypeSymbol typeSymbol) 396private ImmutableArray<SymbolResult<IMethodSymbol>> GetViableExtensionMethodsWorker( 397ImmutableArray<SymbolResult<IMethodSymbol>> methodSymbols) 409private async Task<ImmutableArray<SymbolReference>> GetReferencesForCollectionInitializerMethodsAsync( 417var symbols = await searchScope.FindDeclarationsAsync( 425var viableMethods = GetViableExtensionMethods( 440private async Task<ImmutableArray<SymbolReference>> GetReferencesForQueryPatternsAsync( 464private async Task<ImmutableArray<SymbolReference>> GetReferencesForGetAwaiterAsync( 489private async Task<ImmutableArray<SymbolReference>> GetReferencesForGetEnumeratorAsync( 514private async Task<ImmutableArray<SymbolReference>> GetReferencesForGetAsyncEnumeratorAsync( 539private async Task<ImmutableArray<SymbolReference>> GetReferencesForDeconstructAsync( 561private async Task<ImmutableArray<SymbolReference>> GetReferencesForExtensionMethodAsync( 564var symbols = await searchScope.FindDeclarationsAsync( 572var viableExtensionMethods = GetViableExtensionMethods(methodSymbols, type); 599private ImmutableArray<SymbolReference> GetNamespaceSymbolReferences( 600SearchScope scope, ImmutableArray<SymbolResult<INamespaceSymbol>> namespaces) 616private static ImmutableArray<SymbolResult<T>> OfType<T>(ImmutableArray<SymbolResult<ISymbol>> symbols) where T : ISymbol
AddMissingReference\AbstractAddMissingReferenceCodeFixProvider.cs (2)
39var addReferenceCodeActions = await GetAddReferencesCodeActionsAsync(context, uniqueIdentities).ConfigureAwait(false); 45private static async Task<ImmutableArray<CodeAction>> GetAddReferencesCodeActionsAsync(CodeFixContext context, ISet<AssemblyIdentity> uniqueIdentities)
AddMissingReference\AddMissingReferenceCodeAction.cs (2)
27public override ImmutableArray<string> Tags => RequiresNonDocumentChangeTags; 73protected override Task<ImmutableArray<CodeActionOperation>> ComputeOperationsAsync(
AddPackage\AbstractAddPackageCodeFixProvider.cs (4)
28protected async Task<ImmutableArray<CodeAction>> GetAddPackagesCodeActionsAsync( 56var sortedPackages = await FindMatchingPackagesAsync( 71private static async Task<ImmutableArray<PackageWithAssemblyResult>> FindMatchingPackagesAsync( 89var sortedPackages = result.ToImmutableArray().Sort();
AddPackage\AbstractAddSpecificPackageCodeFixProvider.cs (1)
40var addPackageCodeActions = await GetAddPackagesCodeActionsAsync(context, assemblyNames).ConfigureAwait(false);
AddPackage\InstallPackageDirectlyCodeAction.cs (1)
35protected override Task<ImmutableArray<CodeActionOperation>> ComputeOperationsAsync(IProgress<CodeAnalysisProgress> progress, CancellationToken cancellationToken)
AddPackage\InstallPackageParentCodeAction.cs (3)
38public override ImmutableArray<string> Tags => RequiresNonDocumentChangeTags; 40private static ImmutableArray<CodeAction> CreateNestedActions( 48var installedVersions = installerService.GetInstalledVersions(packageName);
AddPackage\InstallWithPackageManagerCodeAction.cs (1)
24protected override Task<ImmutableArray<CodeActionOperation>> ComputeOperationsAsync(
AddPackage\ParentInstallPackageCodeAction.cs (4)
27internal readonly struct InstallPackageData(string? packageSource, string packageName, string? packageVersionOpt, ImmutableArray<TextChange> textChanges) 33public readonly ImmutableArray<TextChange> TextChanges = textChanges; 47public override ImmutableArray<string> Tags => RequiresNonDocumentChangeTags; 78private static ImmutableArray<CodeAction> CreateNestedActions(
BraceCompletion\IBraceCompletionService.cs (2)
74internal readonly struct BraceCompletionResult(ImmutableArray<TextChange> textChanges, LinePosition caretLocation) 80public ImmutableArray<TextChange> TextChanges { get; } = textChanges;
BraceMatching\AbstractDirectiveTriviaBraceMatcher.cs (2)
25protected abstract ImmutableArray<TDirectiveTriviaSyntax> GetMatchingConditionalDirectives(TDirectiveTriviaSyntax directive, CancellationToken cancellationToken); 47var matchingDirectives = GetMatchingConditionalDirectives(directive, cancellationToken);
BraceMatching\AbstractEmbeddedLanguageBraceMatcher.cs (1)
42var braceMatchers = GetServices(semanticModel, token, cancellationToken);
BraceMatching\BraceMatchingService.cs (1)
24private readonly ImmutableArray<Lazy<IBraceMatcher, LanguageMetadata>> _braceMatchers = braceMatchers.ToImmutableArray();
ChangeSignature\AbstractChangeSignatureService.cs (21)
49public abstract Task<ImmutableArray<ISymbol>> DetermineCascadedSymbolsFromDelegateInvokeAsync( 61protected abstract ImmutableArray<AbstractFormattingRule> GetFormattingRules(Document document); 89protected abstract ImmutableArray<IParameterSymbol> GetParameters(ISymbol declarationSymbol); 94public async Task<ImmutableArray<ChangeSignatureCodeAction>> GetChangeSignatureCodeActionAsync(Document document, TextSpan span, CancellationToken cancellationToken) 100: ImmutableArray<ChangeSignatureCodeAction>.Empty; 225private static async Task<ImmutableArray<ReferencedSymbol>> FindChangeSignatureReferencesAsync( 470protected ImmutableArray<IUnifiedArgumentSyntax> PermuteArguments( 472ImmutableArray<IUnifiedArgumentSyntax> arguments, 477var declarationParameters = GetParameters(declarationSymbol); 478var declarationParametersToPermute = GetParametersToPermute(arguments, declarationParameters, isReducedExtensionMethod); 583var realParameters = GetParameters(declarationSymbol); 602private static ImmutableArray<IParameterSymbol> GetParametersToPermute( 603ImmutableArray<IUnifiedArgumentSyntax> arguments, 604ImmutableArray<IParameterSymbol> originalParameters, 680protected (ImmutableArray<T> parameters, ImmutableArray<SyntaxToken> separators) UpdateDeclarationBase<T>( 746protected ImmutableArray<SyntaxToken> GetSeparators<T>(SeparatedSyntaxList<T> arguments, int numSeparatorsToSkip) where T : SyntaxNode 793var parameters = GetParameters(declarationSymbol); 937var recommendations = recommender.GetRecommendedSymbolsInContext(context, recommendationOptions, cancellationToken).NamedSymbols; 971protected ImmutableArray<SyntaxTrivia> GetPermutedDocCommentTrivia(SyntaxNode node, ImmutableArray<SyntaxNode> permutedParamNodes, LanguageServices services, LineFormattingOptions options)
ChangeSignature\ChangeSignatureCodeAction.cs (1)
23public override ImmutableArray<string> Tags => RequiresNonDocumentChangeTags;
ChangeSignature\DelegateInvokeMethodReferenceFinder.cs (1)
40protected override async ValueTask<ImmutableArray<ISymbol>> DetermineCascadedSymbolsAsync(
ChangeSignature\ParameterConfiguration.cs (6)
13ImmutableArray<Parameter> parametersWithoutDefaultValues, 14ImmutableArray<Parameter> remainingEditableParameters, 19public readonly ImmutableArray<Parameter> ParametersWithoutDefaultValues = parametersWithoutDefaultValues; 20public readonly ImmutableArray<Parameter> RemainingEditableParameters = remainingEditableParameters; 24public static ParameterConfiguration Create(ImmutableArray<Parameter> parameters, bool isExtensionMethod, int selectedIndex) 63public ImmutableArray<Parameter> ToListOfParameters()
ChangeSignature\SignatureChange.cs (4)
105private static bool AnyParametersReordered(ImmutableArray<Parameter> originalListOfParameters, ImmutableArray<Parameter> updatedListOfParameters) 107var originalListWithoutRemovedOrAdded = originalListOfParameters.Where(updatedListOfParameters.Contains).ToImmutableArray(); 108var updatedListWithoutRemovedOrAdded = updatedListOfParameters.Where(originalListOfParameters.Contains).ToImmutableArray();
ClassifiedSpansAndHighlightSpan.cs (2)
13ImmutableArray<ClassifiedSpan> classifiedSpans, 18public readonly ImmutableArray<ClassifiedSpan> ClassifiedSpans = classifiedSpans;
ClassifiedSpansAndHighlightSpanFactory.cs (2)
63var classifiedSpans = await GetClassifiedSpansAsync( 68private static async Task<ImmutableArray<ClassifiedSpan>> GetClassifiedSpansAsync(
CodeFixes\AbstractConfigurationActionWithNestedActions.cs (1)
17protected AbstractConfigurationActionWithNestedActions(ImmutableArray<CodeAction> nestedActions, string title)
CodeFixes\CodeFixCollection.cs (4)
19ImmutableArray<CodeFix> fixes, 21ImmutableArray<FixAllScope> supportedScopes, 26public ImmutableArray<CodeFix> Fixes { get; } = fixes.NullToEmpty(); 32public ImmutableArray<FixAllScope> SupportedScopes { get; } = supportedScopes.NullToEmpty();
CodeFixes\Configuration\ConfigurationUpdater.cs (4)
134var codeStyleOptionValues = GetCodeStyleOptionValuesForDiagnostic(diagnostic, project); 340private static ImmutableArray<(string optionName, string currentOptionValue, bool isPerLanguage)> GetCodeStyleOptionValuesForDiagnostic( 349var codeStyleOptions = GetCodeStyleOptionsForDiagnostic(diagnostic, project); 383internal static ImmutableArray<IOption2> GetCodeStyleOptionsForDiagnostic(Diagnostic diagnostic, Project project)
CodeFixes\Configuration\ConfigureCodeStyle\ConfigureCodeStyleOptionCodeFixProvider.cs (5)
30private static readonly ImmutableArray<bool> s_boolValues = [true, false]; 56public Task<ImmutableArray<CodeFix>> GetFixesAsync(TextDocument document, TextSpan span, IEnumerable<Diagnostic> diagnostics, CancellationToken cancellationToken) 59public Task<ImmutableArray<CodeFix>> GetFixesAsync(Project project, IEnumerable<Diagnostic> diagnostics, CancellationToken cancellationToken) 62private static ImmutableArray<CodeFix> GetConfigurations(Project project, IEnumerable<Diagnostic> diagnostics) 68var codeStyleOptions = ConfigurationUpdater.GetCodeStyleOptionsForDiagnostic(diagnostic, project);
CodeFixes\Configuration\ConfigureCodeStyle\ConfigureCodeStyleOptionCodeFixProvider.TopLevelConfigureCodeStyleOptionCodeAction.cs (2)
14public TopLevelConfigureCodeStyleOptionCodeAction(Diagnostic diagnostic, ImmutableArray<CodeAction> nestedActions) 19public TopLevelConfigureCodeStyleOptionCodeAction(string optionName, ImmutableArray<CodeAction> nestedActions)
CodeFixes\Configuration\ConfigureSeverity\ConfigureSeverityLevelCodeFixProvider.cs (5)
24private static readonly ImmutableArray<(string value, string title)> s_editorConfigSeverityStrings = 47public Task<ImmutableArray<CodeFix>> GetFixesAsync(TextDocument document, TextSpan span, IEnumerable<Diagnostic> diagnostics, CancellationToken cancellationToken) 50public Task<ImmutableArray<CodeFix>> GetFixesAsync(Project project, IEnumerable<Diagnostic> diagnostics, CancellationToken cancellationToken) 53private static ImmutableArray<CodeFix> GetConfigurations(Project project, IEnumerable<Diagnostic> diagnostics, CancellationToken cancellationToken) 99void AddBulkConfigurationCodeFixes(ImmutableArray<Diagnostic> diagnostics, string? category)
CodeFixes\Configuration\ConfigureSeverity\ConfigureSeverityLevelCodeFixProvider.TopLevelBulkConfigureSeverityCodeAction.cs (1)
12private sealed class TopLevelBulkConfigureSeverityCodeAction(ImmutableArray<CodeAction> nestedActions, string? category) : AbstractConfigurationActionWithNestedActions(nestedActions,
CodeFixes\Configuration\ConfigureSeverity\ConfigureSeverityLevelCodeFixProvider.TopLevelConfigureSeverityCodeAction.cs (1)
14private sealed class TopLevelConfigureSeverityCodeAction(Diagnostic diagnostic, ImmutableArray<CodeAction> nestedActions) : AbstractConfigurationActionWithNestedActions(nestedActions, string.Format(FeaturesResources.Configure_0_severity, diagnostic.Id))
CodeFixes\FixAllOccurrences\IFixMultipleOccurrencesService.cs (2)
22ImmutableDictionary<Document, ImmutableArray<Diagnostic>> diagnosticsToFix, 37ImmutableDictionary<Project, ImmutableArray<Diagnostic>> diagnosticsToFix,
CodeFixes\ICodeFixProviderFactory.cs (1)
16ImmutableArray<CodeFixProvider> GetFixers();
CodeFixes\Suppression\AbstractSuppressionBatchFixAllProvider.cs (16)
45ImmutableDictionary<Document, ImmutableArray<Diagnostic>> documentsAndDiagnosticsToFixMap, 57var diagnosticsAndCodeActions = await GetDiagnosticsAndCodeActionsAsync(documentsAndDiagnosticsToFixMap, fixAllContext).ConfigureAwait(false); 74private async Task<ImmutableArray<(Diagnostic diagnostic, CodeAction action)>> GetDiagnosticsAndCodeActionsAsync( 75ImmutableDictionary<Document, ImmutableArray<Diagnostic>> documentsAndDiagnosticsToFixMap, 112Document document, ImmutableArray<Diagnostic> diagnostics, 135ImmutableDictionary<Project, ImmutableArray<Diagnostic>> projectsAndDiagnosticsToFixMap, 159var result = bag.ToImmutableArray(); 175private static Action<CodeAction, ImmutableArray<Diagnostic>> GetRegisterCodeFixAction( 200Project project, ImmutableArray<Diagnostic> diagnostics, 208ImmutableArray<(Diagnostic diagnostic, CodeAction action)> batchOfFixes, 227ImmutableArray<(Diagnostic diagnostic, CodeAction action)> diagnosticsAndCodeActions, 238var documentIdToFinalText = await GetDocumentIdToFinalTextAsync( 250ImmutableArray<(Diagnostic diagnostic, CodeAction action)> diagnosticsAndCodeActions, 270private static async Task<ImmutableArray<(DocumentId documentId, SourceText newText)>> GetDocumentIdToFinalTextAsync( 273ImmutableArray<(Diagnostic diagnostic, CodeAction action)> diagnosticsAndCodeActions, 305var orderedDocuments = changedDocuments.OrderBy(t => codeActionToDiagnosticLocation[t.action])
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.AbstractGlobalSuppressMessageCodeAction.cs (1)
31protected sealed override async Task<ImmutableArray<CodeActionOperation>> ComputeOperationsAsync(
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.cs (7)
141public Task<ImmutableArray<CodeFix>> GetFixesAsync( 145return Task.FromResult(ImmutableArray<CodeFix>.Empty); 150internal async Task<ImmutableArray<PragmaWarningCodeAction>> GetPragmaSuppressionsAsync(Document document, TextSpan span, IEnumerable<Diagnostic> diagnostics, CancellationToken cancellationToken) 152var codeFixes = await GetSuppressionsAsync(document, span, diagnostics, skipSuppressMessage: true, skipUnsuppress: true, cancellationToken: cancellationToken).ConfigureAwait(false); 158private async Task<ImmutableArray<CodeFix>> GetSuppressionsAsync( 171public async Task<ImmutableArray<CodeFix>> GetFixesAsync( 187private async Task<ImmutableArray<CodeFix>> GetSuppressionsAsync(
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.GlobalSuppressMessageFixAllCodeAction.cs (13)
28private readonly IEnumerable<KeyValuePair<ISymbol, ImmutableArray<Diagnostic>>> _diagnosticsBySymbol; 33IEnumerable<KeyValuePair<ISymbol, ImmutableArray<Diagnostic>>> diagnosticsBySymbol, 41internal static CodeAction Create(string title, AbstractSuppressionCodeFixProvider fixer, Document triggerDocument, ImmutableDictionary<Document, ImmutableArray<Diagnostic>> diagnosticsByDocument) 48internal static CodeAction Create(string title, AbstractSuppressionCodeFixProvider fixer, Project triggerProject, ImmutableDictionary<Project, ImmutableArray<Diagnostic>> diagnosticsByProject) 70ImmutableDictionary<Document, ImmutableArray<Diagnostic>> diagnosticsByDocument, 99ImmutableDictionary<Project, ImmutableArray<Diagnostic>> diagnosticsByProject, 152private static async Task<IEnumerable<KeyValuePair<ISymbol, ImmutableArray<Diagnostic>>>> CreateDiagnosticsBySymbolAsync(AbstractSuppressionCodeFixProvider fixer, IEnumerable<KeyValuePair<Document, ImmutableArray<Diagnostic>>> diagnosticsByDocument, CancellationToken cancellationToken) 173private static async Task<IEnumerable<KeyValuePair<ISymbol, ImmutableArray<Diagnostic>>>> CreateDiagnosticsBySymbolAsync(Project project, ImmutableArray<Diagnostic> diagnostics, CancellationToken cancellationToken) 206private static IEnumerable<KeyValuePair<ISymbol, ImmutableArray<Diagnostic>>> CreateDiagnosticsBySymbol(ImmutableDictionary<ISymbol, List<Diagnostic>>.Builder diagnosticsMapBuilder) 211var builder = new List<KeyValuePair<ISymbol, ImmutableArray<Diagnostic>>>(); 218private static ImmutableArray<Diagnostic> GetUniqueDiagnostics(List<Diagnostic> diagnostics)
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.PragmaBatchFixHelpers.cs (5)
29ImmutableArray<IPragmaBasedCodeAction> pragmaActions, 30ImmutableArray<Diagnostic> pragmaDiagnostics, 44ImmutableArray<IPragmaBasedCodeAction> pragmaActions, 45ImmutableArray<Diagnostic> diagnostics, 130private static void UpdateDiagnosticSpans(ImmutableArray<Diagnostic> diagnostics, Dictionary<Diagnostic, TextSpan> currentDiagnosticSpans, IEnumerable<TextChange> textChanges)
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.PragmaHelpers.cs (3)
65private static int GetPositionForPragmaInsertion(ImmutableArray<SyntaxTrivia> triviaList, TextSpan currentDiagnosticSpan, AbstractSuppressionCodeFixProvider fixer, bool isStartToken, out SyntaxTrivia triviaAtIndex) 111var trivia = startToken.LeadingTrivia.ToImmutableArray(); 163ImmutableArray<SyntaxTrivia> trivia;
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.PragmaWarningBatchFixAllProvider.cs (1)
27Document document, ImmutableArray<Diagnostic> diagnostics,
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.RemoveSuppressionCodeAction.BatchFixer.cs (7)
35Document document, ImmutableArray<Diagnostic> diagnostics, 85Project project, ImmutableArray<Diagnostic> diagnostics, 106ImmutableArray<(Diagnostic diagnostic, CodeAction action)> batchOfFixes, 139var attributeRemoveFixesForTree = removeSuppressionFixesForTree.OfType<AttributeRemoveAction>().ToImmutableArray(); 140var attributesToRemove = await GetAttributeNodesToFixAsync(attributeRemoveFixesForTree, cancellationToken).ConfigureAwait(false); 159private static async Task<ImmutableArray<SyntaxNode>> GetAttributeNodesToFixAsync(ImmutableArray<AttributeRemoveAction> attributeRemoveFixes, CancellationToken cancellationToken)
CodeFixes\Suppression\SuppressionHelpers.cs (2)
18public static readonly ImmutableArray<string> SynthesizedExternalSourceDiagnosticCustomTags = [SynthesizedExternalSourceDiagnosticTag]; 85public static bool HasCustomTag(ImmutableArray<string> customTags, string tagToFind)
CodeFixes\Suppression\TopLevelSuppressionCodeAction.cs (2)
12internal sealed class TopLevelSuppressionCodeAction(Diagnostic diagnostic, ImmutableArray<NestedSuppressionCodeAction> nestedActions) : AbstractConfigurationActionWithNestedActions(ImmutableArray<CodeAction>.CastUp(nestedActions), string.Format(FeaturesResources.Suppress_0, diagnostic.Id))
CodeFixes\Suppression\WrapperCodeFixProvider.cs (3)
16private readonly ImmutableArray<string> _originalDiagnosticIds = diagnosticIds.Distinct().ToImmutableArray(); 19public override ImmutableArray<string> FixableDiagnosticIds => _originalDiagnosticIds; 40private static void RegisterSuppressionFixes(CodeFixContext context, ImmutableArray<CodeFix> suppressionFixes)
CodeFixesAndRefactorings\AbstractFixAllCodeAction.cs (1)
55protected sealed override Task<ImmutableArray<CodeActionOperation>> ComputeOperationsAsync(
CodeFixesAndRefactorings\AbstractFixAllGetFixesService.cs (4)
38public async Task<ImmutableArray<CodeActionOperation>> GetFixAllOperationsAsync( 51protected async Task<ImmutableArray<CodeActionOperation>> GetFixAllOperationsAsync( 201protected static ImmutableArray<CodeActionOperation> GetNewFixAllOperations(ImmutableArray<CodeActionOperation> operations, Solution newSolution, CancellationToken cancellationToken)
CodeFixesAndRefactorings\CodeActionRequestPriorityProvider.cs (2)
30bool HasDeprioritizedAnalyzerSupportingDiagnosticId(ImmutableArray<string> diagnosticIds); 135public bool HasDeprioritizedAnalyzerSupportingDiagnosticId(ImmutableArray<string> diagnosticIds)
CodeFixesAndRefactorings\IFixAllGetFixesService.cs (1)
19Task<ImmutableArray<CodeActionOperation>> GetFixAllOperationsAsync(IFixAllContext fixAllContext, bool showPreviewChangesDialog);
CodeLens\CodeLensFindReferenceProgress.cs (1)
51public ImmutableArray<Location> Locations => [.. _locations];
CodeLens\CodeLensReferencesService.cs (3)
202public async Task<ImmutableArray<ReferenceLocationDescriptor>?> FindReferenceLocationsAsync(Solution solution, DocumentId documentId, SyntaxNode syntaxNode, CancellationToken cancellationToken) 259public Task<ImmutableArray<ReferenceMethodDescriptor>?> FindReferenceMethodsAsync(Solution solution, DocumentId documentId, SyntaxNode syntaxNode, CancellationToken cancellationToken) 288var parts = declaredSymbol.ToDisplayParts(MethodDisplayFormat);
CodeLens\ICodeLensMemberFinder.cs (1)
18Task<ImmutableArray<CodeLensMember>> GetCodeLensMembersAsync(Document document, CancellationToken cancellationToken);
CodeLens\ICodeLensReferencesService.cs (2)
28Task<ImmutableArray<ReferenceLocationDescriptor>?> FindReferenceLocationsAsync(Solution solution, DocumentId documentId, SyntaxNode? syntaxNode, CancellationToken cancellationToken); 33Task<ImmutableArray<ReferenceMethodDescriptor>?> FindReferenceMethodsAsync(Solution solution, DocumentId documentId, SyntaxNode? syntaxNode, CancellationToken cancellationToken);
CodeLens\IRemoteCodeLensReferencesService.cs (2)
17ValueTask<ImmutableArray<ReferenceLocationDescriptor>?> FindReferenceLocationsAsync(Checksum solutionChecksum, DocumentId documentId, TextSpan textSpan, CancellationToken cancellationToken); 18ValueTask<ImmutableArray<ReferenceMethodDescriptor>?> FindReferenceMethodsAsync(Checksum solutionChecksum, DocumentId documentId, TextSpan textSpan, CancellationToken cancellationToken);
CodeRefactorings\AddAwait\AbstractAddAwaitCodeRefactoringProvider.cs (1)
45var expressions = await context.GetRelevantNodesAsync<TExpressionSyntax>().ConfigureAwait(false);
CodeRefactorings\AddMissingImports\AbstractAddMissingImportsFeatureService.cs (6)
27protected abstract ImmutableArray<string> FixableDiagnosticIds { get; } 29protected abstract ImmutableArray<AbstractFormattingRule> GetFormatRules(SourceText text); 66var packageSources = ImmutableArray<PackageSource>.Empty; 91ImmutableArray<AddImportFixData> fixes, 223var operations = await codeAction.GetOperationsAsync(
CodeRefactorings\AddMissingImports\AddMissingImportsAnalysisResult.cs (2)
11ImmutableArray<AddImportFixData> addImportFixData) 13public ImmutableArray<AddImportFixData> AddImportFixData { get; } = addImportFixData;
CodeRefactorings\CodeRefactoring.cs (2)
27public ImmutableArray<(CodeAction action, TextSpan? applicableToSpan)> CodeActions { get; } 33ImmutableArray<(CodeAction, TextSpan?)> actions,
CodeRefactorings\CodeRefactoringContextExtensions.cs (7)
21this CodeRefactoringContext context, ImmutableArray<TCodeAction> actions, TextSpan? applicableToSpan = null) 49public static Task<ImmutableArray<TSyntaxNode>> GetRelevantNodesAsync<TSyntaxNode>(this CodeRefactoringContext context) where TSyntaxNode : SyntaxNode 52public static async Task<ImmutableArray<TSyntaxNode>> GetRelevantNodesAsync<TSyntaxNode>(this CodeRefactoringContext context, bool allowEmptyNodes) where TSyntaxNode : SyntaxNode 74public static Task<ImmutableArray<TSyntaxNode>> GetRelevantNodesAsync<TSyntaxNode>( 80public static async Task<ImmutableArray<TSyntaxNode>> GetRelevantNodesAsync<TSyntaxNode>( 87public static ImmutableArray<TSyntaxNode> GetRelevantNodes<TSyntaxNode>( 91public static ImmutableArray<TSyntaxNode> GetRelevantNodes<TSyntaxNode>(
CodeRefactorings\CodeRefactoringService.cs (11)
32private readonly Lazy<ImmutableDictionary<string, Lazy<ImmutableArray<CodeRefactoringProvider>>>> _lazyLanguageToProvidersMap = new Lazy<ImmutableDictionary<string, Lazy<ImmutableArray<CodeRefactoringProvider>>>>( 39new Lazy<ImmutableArray<CodeRefactoringProvider>>(() => ExtensionOrderer.Order(grp).Select(lz => lz.Value).ToImmutableArray()))))); 57private ImmutableDictionary<string, Lazy<ImmutableArray<CodeRefactoringProvider>>> LanguageToProvidersMap 65var allRefactorings = ImmutableArray<CodeRefactoringProvider>.Empty; 73static ImmutableArray<CodeRefactoringProvider> GetProjectRefactorings(TextDocument document) 84var kinds = EnumArrayConverter.FromStringArray<TextDocumentKind>(attribute.DocumentKinds); 149public async Task<ImmutableArray<CodeRefactoring>> GetRefactoringsAsync( 256protected override ImmutableArray<string> GetLanguages(ExportCodeRefactoringProviderAttribute exportAttribute) 259protected override bool TryGetExtensionsFromReference(AnalyzerReference reference, out ImmutableArray<CodeRefactoringProvider> extensions)
CodeRefactorings\ExtractMethod\AbstractExtractMethodCodeRefactoringProvider.cs (1)
52private static async Task<ImmutableArray<CodeAction>> GetCodeActionsAsync(
CodeRefactorings\ICodeRefactoringProviderFactory.cs (1)
13ImmutableArray<CodeRefactoringProvider> GetRefactorings();
CodeRefactorings\ICodeRefactoringService.cs (2)
17Task<ImmutableArray<CodeRefactoring>> GetRefactoringsAsync(TextDocument document, TextSpan textSpan, CodeActionRequestPriority? priority, CancellationToken cancellationToken); 22public static Task<ImmutableArray<CodeRefactoring>> GetRefactoringsAsync(this ICodeRefactoringService service, TextDocument document, TextSpan state, CancellationToken cancellationToken)
CodeRefactorings\MoveType\AbstractMoveTypeService.cs (6)
31public abstract Task<ImmutableArray<CodeAction>> GetRefactoringAsync(Document document, TextSpan textSpan, CancellationToken cancellationToken); 45public override async Task<ImmutableArray<CodeAction>> GetRefactoringAsync( 61var suggestedFileNames = GetSuggestedFileNames( 84private ImmutableArray<CodeAction> CreateActions(State? state, CancellationToken cancellationToken) 111var suggestedFileNames = GetSuggestedFileNames( 224private static ImmutableArray<string> GetSuggestedFileNames(
CodeRefactorings\MoveType\AbstractMoveTypeService.Editor.cs (1)
35public virtual async Task<ImmutableArray<CodeActionOperation>> GetOperationsAsync()
CodeRefactorings\MoveType\AbstractMoveTypeService.MoveTypeCodeAction.cs (1)
51protected override async Task<ImmutableArray<CodeActionOperation>> ComputeOperationsAsync(
CodeRefactorings\MoveType\AbstractMoveTypeService.MoveTypeNamespaceScopeEditor.cs (2)
100private static ImmutableArray<SyntaxNode> WithElasticTrivia(ImmutableArray<SyntaxNode> syntaxNodes)
CodeRefactorings\MoveType\AbstractMoveTypeService.RenameFileEditor.cs (2)
18public override Task<ImmutableArray<CodeActionOperation>> GetOperationsAsync() 32private ImmutableArray<CodeActionOperation> RenameFileToMatchTypeName()
CodeRefactorings\MoveType\IMoveTypeService.cs (1)
19Task<ImmutableArray<CodeAction>> GetRefactoringAsync(Document document, TextSpan textSpan, CancellationToken cancellationToken);
CodeRefactorings\SyncNamespace\AbstractChangeNamespaceService.cs (31)
57public abstract bool TryGetReplacementReferenceSyntax(SyntaxNode reference, ImmutableArray<string> newNamespaceParts, ISyntaxFactsService syntaxFacts, [NotNullWhen(returnValue: true)] out SyntaxNode? old, [NotNullWhen(returnValue: true)] out SyntaxNode? @new); 78TCompilationUnitSyntax root, ImmutableArray<string> declaredNamespaceParts, ImmutableArray<string> targetNamespaceParts); 95protected abstract Task<ImmutableArray<(DocumentId id, SyntaxNode container)>> GetValidContainersFromAllLinkedDocumentsAsync(Document document, SyntaxNode container, CancellationToken cancellationToken); 100protected static bool IsGlobalNamespace(ImmutableArray<string> parts) 110var applicableContainers = await GetValidContainersFromAllLinkedDocumentsAsync(document, container, cancellationToken).ConfigureAwait(false); 125var originalNamespaceDeclarations = await GetTopLevelNamespacesAsync(document, cancellationToken).ConfigureAwait(false); 154var namespaces = await GetTopLevelNamespacesAsync(document, cancellationToken).ConfigureAwait(false); 163static async Task<ImmutableArray<SyntaxNode>> GetTopLevelNamespacesAsync(Document document, CancellationToken cancellationToken) 196var containersFromAllDocuments = await GetValidContainersFromAllLinkedDocumentsAsync(document, container, cancellationToken).ConfigureAwait(false); 267protected async Task<ImmutableArray<(DocumentId, SyntaxNode)>> TryGetApplicableContainersFromAllDocumentsAsync( 269ImmutableArray<DocumentId> ids, 310protected static async Task<Solution> AnnotateContainersAsync(Solution solution, ImmutableArray<(DocumentId, SyntaxNode)> containers, CancellationToken cancellationToken) 345protected static bool IsSupportedLinkedDocument(Document document, out ImmutableArray<DocumentId> allDocumentIds) 348var linkedDocumentIds = document.GetLinkedDocumentIds(); 365private async Task<ImmutableArray<ISymbol>> GetDeclaredSymbolsInContainerAsync( 383private static ImmutableArray<string> GetNamespaceParts(string @namespace) 386private static ImmutableArray<string> GetAllNamespaceImportsForDeclaringDocument(string oldNamespace, string newNamespace) 388var parts = GetNamespaceParts(oldNamespace); 400private static ImmutableArray<SyntaxNode> CreateImports(Document document, ImmutableArray<string> names, bool withFormatterAnnotation) 426private async Task<(Solution, ImmutableArray<DocumentId>)> ChangeNamespaceInSingleDocumentAsync( 514private static async Task<ImmutableArray<LocationForAffectedSymbol>> FindReferenceLocationsForSymbolAsync( 548private static async Task<ImmutableArray<ReferencedSymbol>> FindReferencesAsync(ISymbol symbol, Document document, CancellationToken cancellationToken) 587ImmutableArray<SyntaxNode> containersToAddImports; 684private static async Task<(Document, ImmutableArray<SyntaxNode>)> FixReferencesAsync( 689ImmutableArray<string> newNamespaceParts, 761ImmutableArray<DocumentId> ids, 762ImmutableArray<string> names, 816ImmutableArray<SyntaxNode> containers, 817ImmutableArray<string> names,
CodeRefactorings\SyncNamespace\AbstractSyncNamespaceCodeRefactoringProvider.MoveFileCodeAction.cs (12)
26private sealed class MoveFileCodeAction(State state, ImmutableArray<string> newFolders) : CodeAction 29private readonly ImmutableArray<string> _newfolders = newFolders; 36protected override async Task<ImmutableArray<CodeActionOperation>> ComputeOperationsAsync( 51public static ImmutableArray<MoveFileCodeAction> Create(State state) 68var candidateFolders = FindCandidateFolders(projectRootFolder, parts, []); 77private static ImmutableArray<ImmutableArray<string>> FindCandidateFolders( 79ImmutableArray<string> parts, 80ImmutableArray<string> currentFolder) 97var builder = ArrayBuilder<ImmutableArray<string>>.GetInstance(); 105var newCurrentFolder = currentFolder.Add(matchingFolderInfo.Name); 115var defaultPathBasedOnCurrentFolder = currentFolder.AddRange(parts);
CodeRefactorings\SyncNamespace\AbstractSyncNamespaceCodeRefactoringProvider.State.cs (1)
172var linkedIds = document.GetLinkedDocumentIds();
CodeRefactorings\SyncNamespace\SyncNamespaceDocumentsNotInSolutionException.cs (2)
11internal sealed class SyncNamespaceDocumentsNotInSolutionException(ImmutableArray<DocumentId> documentIds) : Exception 13private readonly ImmutableArray<DocumentId> _documentIds = documentIds;
Common\AbstractProjectExtensionProvider.cs (20)
21public record class ExtensionInfo(ImmutableArray<TextDocumentKind> DocumentKinds, string[]? DocumentExtensions); 25private static readonly ConditionalWeakTable<IReadOnlyList<AnalyzerReference>, StrongBox<ImmutableArray<TExtension>>> s_referencesToExtensionsMap = new(); 30private ImmutableDictionary<string, ImmutableArray<TExtension>> _extensionsPerLanguage = ImmutableDictionary<string, ImmutableArray<TExtension>>.Empty; 32protected abstract ImmutableArray<string> GetLanguages(TExportAttribute exportAttribute); 33protected abstract bool TryGetExtensionsFromReference(AnalyzerReference reference, out ImmutableArray<TExtension> extensions); 35public static bool TryGetCachedExtensions(IReadOnlyList<AnalyzerReference> analyzerReferences, out ImmutableArray<TExtension> extensions) 47public static ImmutableArray<TExtension> GetExtensions(Project? project) 55public static ImmutableArray<TExtension> GetExtensions(string language, IReadOnlyList<AnalyzerReference> analyzerReferences) 57if (TryGetCachedExtensions(analyzerReferences, out var providers)) 62static ImmutableArray<TExtension> GetExtensionsSlow(string language, IReadOnlyList<AnalyzerReference> analyzerReferences) 65static ImmutableArray<TExtension> ComputeExtensions(string language, IReadOnlyList<AnalyzerReference> analyzerReferences) 80public static ImmutableArray<TExtension> GetExtensions(TextDocument document, Func<TExportAttribute, ExtensionInfo>? getExtensionInfoForFiltering) 82var extensions = GetExtensions(document.Project); 88public static ImmutableArray<TExtension> FilterExtensions(TextDocument document, ImmutableArray<TExtension> extensions, Func<TExportAttribute, ExtensionInfo> getExtensionInfoForFiltering) 139private ImmutableArray<TExtension> GetExtensions(string language) 142private ImmutableArray<TExtension> CreateExtensions(string language) 145if (TryGetExtensionsFromReference(this.Reference, out var extensions)) 170var languages = GetLanguages(attribute);
Common\GlyphExtensions.cs (6)
14public static ImmutableArray<Glyph> GetGlyphs(this ImmutableArray<string> tags) 30public static Glyph GetFirstGlyph(this ImmutableArray<string> tags) 32var glyphs = GetGlyphs(tags); 39private static Glyph GetGlyph(string tag, ImmutableArray<string> allTags) 211public static Accessibility GetAccessibility(ImmutableArray<string> tags)
Common\GlyphTags.cs (1)
14public static ImmutableArray<string> GetTags(Glyph glyph)
Common\TaggedText.cs (2)
88public static ImmutableArray<TaggedText> ToTaggedText( 124public static string JoinText(this ImmutableArray<TaggedText> values)
Completion\CharacterSetModificationRule.cs (3)
22public ImmutableArray<char> Characters { get; } 24private CharacterSetModificationRule(CharacterSetModificationKind kind, ImmutableArray<char> characters) 36public static CharacterSetModificationRule Create(CharacterSetModificationKind kind, ImmutableArray<char> characters)
Completion\CommonCompletionItem.cs (5)
22ImmutableArray<SymbolDisplayPart> description = default, 26ImmutableArray<KeyValuePair<string, string>> properties = default, 27ImmutableArray<string> tags = default, 80private static string EncodeDescription(ImmutableArray<TaggedText> description) 87var builder = ImmutableArray<TaggedText>.Empty.ToBuilder();
Completion\CommonCompletionProvider.cs (3)
70var parts = await TryAddSnippetInvocationPartAsync(document, item, description.TaggedParts, cancellationToken).ConfigureAwait(false); 75private async Task<ImmutableArray<TaggedText>> TryAddSnippetInvocationPartAsync( 77ImmutableArray<TaggedText> parts, CancellationToken cancellationToken)
Completion\CommonCompletionUtilities.cs (2)
151SolutionServices workspaceServices, SemanticModel semanticModel, int position, ImmutableArray<ISymbol> symbols, SymbolDescriptionOptions options, SupportedPlatformData? supportedPlatforms, CancellationToken cancellationToken) 176var documentation = symbol.GetDocumentationParts(semanticModel, position, formatter, cancellationToken);
Completion\CompletionChange.cs (8)
28public ImmutableArray<TextChange> TextChanges { get; } 46TextChange textChange, ImmutableArray<TextChange> textChanges, int? newPosition, bool includesCommitCharacter) 52TextChange textChange, ImmutableArray<TextChange> textChanges, int? newPosition, bool includesCommitCharacter, ImmutableDictionary<string, string> properties) 74/// are multiple entries, <see cref="Create(TextChange, ImmutableArray{TextChange}, int?, bool)"/> must be called instead, 79ImmutableArray<TextChange> textChanges, 102ImmutableArray<TextChange> textChanges, 111ImmutableArray<TextChange> textChanges, 128public CompletionChange WithTextChanges(ImmutableArray<TextChange> textChanges)
Completion\CompletionDescription.cs (4)
26public ImmutableArray<TaggedText> TaggedParts { get; } 28private CompletionDescription(ImmutableArray<TaggedText> taggedParts) 35public static CompletionDescription Create(ImmutableArray<TaggedText> taggedParts) 47public CompletionDescription WithTaggedParts(ImmutableArray<TaggedText> taggedParts)
Completion\CompletionItem.cs (21)
25private readonly ImmutableArray<KeyValuePair<string, string>> _properties; 57internal ImmutableArray<string> AdditionalFilterTexts { get; init; } = []; 106internal ImmutableArray<KeyValuePair<string, string>> GetProperties() 145public ImmutableArray<string> Tags { get; } 182ImmutableArray<KeyValuePair<string, string>> properties, 183ImmutableArray<string> tags, 220ImmutableArray<string> tags, 232ImmutableArray<string> tags, 246ImmutableArray<string> tags, 262ImmutableArray<string> tags = default, 282ImmutableArray<KeyValuePair<string, string>> properties = default, 283ImmutableArray<string> tags = default, 323ImmutableArray<string> tags, 349Optional<ImmutableArray<KeyValuePair<string, string>>> properties = default, 350Optional<ImmutableArray<string>> tags = default, 356Optional<ImmutableArray<string>> additionalFilterTexts = default) 363var newProperties = properties.HasValue ? properties.Value : _properties; 364var newTags = tags.HasValue ? tags.Value : Tags; 457internal CompletionItem WithProperties(ImmutableArray<KeyValuePair<string, string>> properties) 469public CompletionItem WithTags(ImmutableArray<string> tags) 507internal CompletionItem WithAdditionalFilterTexts(ImmutableArray<string> additionalFilterTexts)
Completion\CompletionItemRules.cs (16)
51public ImmutableArray<CharacterSetModificationRule> FilterCharacterRules { get; } 56public ImmutableArray<CharacterSetModificationRule> CommitCharacterRules { get; } 80ImmutableArray<CharacterSetModificationRule> filterCharacterRules, 81ImmutableArray<CharacterSetModificationRule> commitCharacterRules, 105ImmutableArray<CharacterSetModificationRule> filterCharacterRules, 106ImmutableArray<CharacterSetModificationRule> commitCharacterRules, 128ImmutableArray<CharacterSetModificationRule> filterCharacterRules = default, 129ImmutableArray<CharacterSetModificationRule> commitCharacterRules = default, 162ImmutableArray<CharacterSetModificationRule> filterCharacterRules, 163ImmutableArray<CharacterSetModificationRule> commitCharacterRules, 173Optional<ImmutableArray<CharacterSetModificationRule>> filterRules = default, 174Optional<ImmutableArray<CharacterSetModificationRule>> commitRules = default, 180var newFilterRules = filterRules.HasValue ? filterRules.Value : FilterCharacterRules; 181var newCommitRules = commitRules.HasValue ? commitRules.Value : CommitCharacterRules; 208public CompletionItemRules WithFilterCharacterRules(ImmutableArray<CharacterSetModificationRule> filterCharacterRules) 220public CompletionItemRules WithCommitCharacterRules(ImmutableArray<CharacterSetModificationRule> commitCharacterRules)
Completion\CompletionList.cs (4)
19private readonly Lazy<ImmutableArray<CompletionItem>> _lazyItems; 26public ImmutableArray<CompletionItem> Items => _lazyItems.Value; 105ImmutableArray<CompletionItem> items, 160public CompletionList WithItems(ImmutableArray<CompletionItem> items)
Completion\CompletionRules.cs (8)
29public ImmutableArray<char> DefaultCommitCharacters { get; } 45ImmutableArray<char> defaultCommitCharacters, 66ImmutableArray<char> defaultCommitCharacters, 84ImmutableArray<char> defaultCommitCharacters = default, 99Optional<ImmutableArray<char>> defaultCommitCharacters = default, 105var newDefaultCommitCharacters = defaultCommitCharacters.HasValue ? defaultCommitCharacters.Value : DefaultCommitCharacters; 143public CompletionRules WithDefaultCommitCharacters(ImmutableArray<char> defaultCommitCharacters) 158private static readonly ImmutableArray<char> s_defaultCommitKeys = [' ', '{', '}', '[', ']', '(', ')', '.', ',', ':', ';', '+', '-', '*', '/', '%', '&', '|', '^', '!', '~', '=', '<', '>', '?', '@', '#', '\'', '\"', '\\'];
Completion\CompletionService.cs (5)
59protected virtual ImmutableArray<CompletionProvider> GetBuiltInProviders() 283public virtual ImmutableArray<CompletionItem> FilterItems( 285ImmutableArray<CompletionItem> items, 403public ImmutableArray<CompletionProvider> GetImportedAndBuiltInProviders(ImmutableHashSet<string> roles) 406public ImmutableArray<CompletionProvider> GetProjectProviders(Project project)
Completion\CompletionService.ProviderManager.cs (15)
29private readonly Dictionary<ImmutableHashSet<string>, ImmutableArray<CompletionProvider>> _rolesToProviders; 38_rolesToProviders = new Dictionary<ImmutableHashSet<string>, ImmutableArray<CompletionProvider>>(this); 96public ImmutableArray<CompletionProvider> GetCachedProjectCompletionProvidersOrQueueLoadInBackground(Project? project, CompletionOptions options) 113if (ProjectCompletionProvider.TryGetCachedExtensions(project.AnalyzerReferences, out var providers)) 120private ImmutableArray<CompletionProvider> GetImportedAndBuiltInProviders(ImmutableHashSet<string>? roles) 126if (!_rolesToProviders.TryGetValue(roles, out var providers)) 135ImmutableArray<CompletionProvider> GetImportedAndBuiltInProvidersWorker(ImmutableHashSet<string> roles) 169var allCompletionProviders = FilterProviders(GetImportedAndBuiltInProviders(roles), trigger, options); 170var projectCompletionProviders = FilterProviders(GetCachedProjectCompletionProvidersOrQueueLoadInBackground(project, options), trigger, options); 174private ImmutableArray<CompletionProvider> FilterProviders( 175ImmutableArray<CompletionProvider> providers, 259protected override ImmutableArray<string> GetLanguages(ExportCompletionProviderAttribute exportAttribute) 262protected override bool TryGetExtensionsFromReference(AnalyzerReference reference, out ImmutableArray<CompletionProvider> extensions) 283public ImmutableArray<CompletionProvider> GetImportedAndBuiltInProviders(ImmutableHashSet<string> roles) 288public ImmutableArray<CompletionProvider> GetProjectProviders(Project project)
Completion\CompletionService_GetCompletions.cs (7)
86var triggeredProviders = GetTriggeredProviders(document, providers, caretPosition, options, trigger, roles, text); 129ImmutableArray<CompletionProvider> GetTriggeredProviders( 152static async Task<ImmutableArray<CompletionProvider>> GetAugmentingProvidersAsync( 153Document document, ImmutableArray<CompletionProvider> triggeredProviders, int caretPosition, CompletionTrigger trigger, CompletionOptions options, CancellationToken cancellationToken) 231private static async Task<ImmutableArray<CompletionContext>> ComputeNonEmptyCompletionContextsAsync( 234ImmutableArray<CompletionProvider> providers, 253ImmutableArray<CompletionContext> completionContexts,
Completion\FileSystemCompletionHelper.cs (7)
29private readonly ImmutableArray<string> _searchPaths; 32private readonly ImmutableArray<string> _allowableExtensions; 38ImmutableArray<string> searchPaths, 40ImmutableArray<string> allowableExtensions, 118public Task<ImmutableArray<CompletionItem>> GetItemsAsync(string directoryPath, CancellationToken cancellationToken) 121private ImmutableArray<CompletionItem> GetItems(string directoryPath, CancellationToken cancellationToken) 263internal ImmutableArray<CompletionItem> GetItems(string directoryPath, CancellationToken cancellationToken)
Completion\ICompletionProviderFactory.cs (1)
11ImmutableArray<CompletionProvider> GetCompletionProviders();
Completion\PatternMatchHelper.cs (1)
42public ImmutableArray<TextSpan> GetHighlightedSpans(string text, CultureInfo culture)
Completion\Providers\AbstractAggregateEmbeddedLanguageCompletionProvider.cs (2)
32private ImmutableArray<IEmbeddedLanguage> _languageProviders; 60protected ImmutableArray<IEmbeddedLanguage> GetLanguageProviders(Host.LanguageServices? languageServices)
Completion\Providers\AbstractAwaitCompletionProvider.cs (1)
148ImmutableArray<KeyValuePair<string, string>> completionProperties, string displayText, string filterText, string tooltip, bool isComplexTextEdit, bool appendConfigureAwait)
Completion\Providers\AbstractCrefCompletionProvider.cs (1)
47protected abstract Task<(SyntaxToken, SemanticModel?, ImmutableArray<ISymbol>)> GetSymbolsAsync(
Completion\Providers\AbstractDocCommentCompletionProvider.cs (13)
24private static readonly ImmutableArray<string> s_listTagNames = [ListHeaderElementName, TermElementName, ItemElementName, DescriptionElementName]; 25private static readonly ImmutableArray<string> s_listHeaderTagNames = [TermElementName, DescriptionElementName]; 26private static readonly ImmutableArray<string> s_nestedTagNames = [CElementName, CodeElementName, ParaElementName, ListElementName]; 27private static readonly ImmutableArray<string> s_topLevelRepeatableTagNames = [ExceptionElementName, IncludeElementName, PermissionElementName]; 28private static readonly ImmutableArray<string> s_topLevelSingleUseTagNames = [SummaryElementName, RemarksElementName, ExampleElementName, CompletionListElementName]; 46private static readonly ImmutableArray<(string elementName, string attributeName, string text)> s_attributeMap = 66private static readonly ImmutableArray<string> s_listTypeValues = ["bullet", "number", "table"]; 97protected abstract ImmutableArray<string> GetKeywordNames(); 102protected abstract ImmutableArray<IParameterSymbol> GetParameters(ISymbol symbol); 213protected ImmutableArray<CompletionItem> GetTopLevelItems(ISymbol? symbol, TSyntax syntax) 261private IEnumerable<CompletionItem> GetParameterItems<TSymbol>(ImmutableArray<TSymbol> symbols, TSyntax syntax, string tagName) where TSymbol : ISymbol 331protected static readonly ImmutableArray<CharacterSetModificationRule> FilterRules = [CharacterSetModificationRule.Create(CharacterSetModificationKind.Add, '!', '-', '[')]; 335var commitRules = defaultRules.CommitCharacterRules;
Completion\Providers\AbstractInternalsVisibleToCompletionProvider.cs (1)
295private static string GetPublicKeyAsHexString(ImmutableArray<byte> publicKey)
Completion\Providers\AbstractKeywordCompletionProvider.cs (6)
24private readonly ImmutableArray<IKeywordRecommender<TContext>> _keywordRecommenders; 26protected AbstractKeywordCompletionProvider(ImmutableArray<IKeywordRecommender<TContext>> keywordRecommenders) 43private async Task<ImmutableArray<CompletionItem>> RecommendCompletionItemsAsync(Document document, CompletionContext context, CancellationToken cancellationToken) 47var keywords = await RecommendKeywordsAsync(document, position, syntaxContext, cancellationToken).ConfigureAwait(false); 51private async Task<ImmutableArray<RecommendedKeyword>> RecommendKeywordsAsync( 65var keywords = recommender.RecommendKeywords(position, context, cancellationToken);
Completion\Providers\AbstractMemberInsertingCompletionProvider.cs (4)
22private static readonly ImmutableArray<CharacterSetModificationRule> s_commitRules = [CharacterSetModificationRule.Create(CharacterSetModificationKind.Replace, '(')]; 24private static readonly ImmutableArray<CharacterSetModificationRule> s_filterRules = [CharacterSetModificationRule.Create(CharacterSetModificationKind.Remove, '(')]; 70var changesArray = changes.ToImmutableArray(); 150var symbols = await SymbolCompletionItem.GetSymbolsAsync(completionItem, document, cancellationToken).ConfigureAwait(false);
Completion\Providers\AbstractObjectCreationCompletionProvider.cs (3)
24protected abstract CompletionItemRules GetCompletionItemRules(ImmutableArray<SymbolAndSelectionInfo> symbols); 31ImmutableArray<SymbolAndSelectionInfo> symbols, 47protected override Task<ImmutableArray<SymbolAndSelectionInfo>> GetSymbolsAsync(
Completion\Providers\AbstractOverrideCompletionProvider.BaseItemGetter.cs (1)
54public abstract Task<ImmutableArray<CompletionItem>> GetItemsAsync();
Completion\Providers\AbstractOverrideCompletionProvider.cs (2)
19public abstract ImmutableArray<ISymbol> FilterOverrides(ImmutableArray<ISymbol> members, ITypeSymbol? returnType);
Completion\Providers\AbstractOverrideCompletionProvider.ItemGetter.cs (3)
46public override async Task<ImmutableArray<CompletionItem>> GetItemsAsync() 59!TryDetermineOverridableMembers(semanticModel, startToken, seenAccessibility, out var overridableMembers)) 92out ImmutableArray<ISymbol> overridableMembers)
Completion\Providers\AbstractPartialTypeCompletionProvider.cs (1)
75protected abstract ImmutableArray<KeyValuePair<string, string>> GetProperties(INamedTypeSymbol symbol, TSyntaxContext context);
Completion\Providers\AbstractRecommendationServiceBasedCompletionProvider.cs (5)
26protected abstract CompletionItemRules GetCompletionItemRules(ImmutableArray<SymbolAndSelectionInfo> symbols, TSyntaxContext context); 33protected sealed override async Task<ImmutableArray<SymbolAndSelectionInfo>> GetSymbolsAsync( 138ImmutableArray<SymbolAndSelectionInfo> symbols, 218var relatedDocumentIds = document.Project.Solution.GetRelatedDocumentIds(document.Id); 236var symbols = await TryGetSymbolsForContextAsync(completionContext: null, context, options, cancellationToken).ConfigureAwait(false);
Completion\Providers\AbstractSymbolCompletionProvider.cs (20)
30protected abstract Task<ImmutableArray<SymbolAndSelectionInfo>> GetSymbolsAsync( 42ImmutableArray<SymbolAndSelectionInfo> symbols, 50ImmutableArray<ITypeSymbol> inferredTypes, 97private ImmutableArray<CompletionItem> CreateItems( 99ImmutableArray<SymbolAndSelectionInfo> symbols, 182ImmutableArray<SymbolAndSelectionInfo> symbolList, 199ImmutableArray<SymbolAndSelectionInfo> symbols, 224ImmutableArray<SymbolAndSelectionInfo> symbols, 279var regularItems = await GetItemsAsync(completionContext, syntaxContext, document, position, options, cancellationToken).ConfigureAwait(false); 289private async Task<ImmutableArray<CompletionItem>> GetItemsAsync( 297var relatedDocumentIds = document.GetLinkedDocumentIds(); 301var itemsForCurrentDocument = await GetSymbolsAsync(completionContext, syntaxContext, position, options, cancellationToken).ConfigureAwait(false); 333ImmutableArray<(DocumentId documentId, TSyntaxContext syntaxContext, ImmutableArray<SymbolAndSelectionInfo> symbols)> linkedContextSymbolLists) 357private async Task<ImmutableArray<(DocumentId documentId, TSyntaxContext syntaxContext, ImmutableArray<SymbolAndSelectionInfo> symbols)>> GetPerContextSymbolsAsync( 362return await ProducerConsumer<(DocumentId documentId, TSyntaxContext syntaxContext, ImmutableArray<SymbolAndSelectionInfo> symbols)>.RunParallelAsync( 385protected async Task<ImmutableArray<SymbolAndSelectionInfo>> TryGetSymbolsForContextAsync( 402ImmutableArray<(DocumentId documentId, TSyntaxContext syntaxContext, ImmutableArray<SymbolAndSelectionInfo> symbols)> linkedContextSymbolLists)
Completion\Providers\CompletionUtilities.cs (2)
15public static bool IsTypeImplicitlyConvertible(Compilation compilation, ITypeSymbol sourceType, ImmutableArray<ITypeSymbol> targetTypes) 28public static ImmutableArray<Project> GetDistinctProjectsFromLatestSolutionSnapshot(ImmutableSegmentedList<Project> projects)
Completion\Providers\IKeywordRecommender.cs (1)
14ImmutableArray<RecommendedKeyword> RecommendKeywords(int position, TContext context, CancellationToken cancellationToken);
Completion\Providers\ImportCompletionProvider\AbstractImportCompletionProvider.cs (3)
69var importedNamespaces = GetImportedNamespaces(syntaxContext, cancellationToken); 86private static ImmutableArray<string> GetImportedNamespaces(SyntaxContext context, CancellationToken cancellationToken) 140var importChanges = await ImportCompletionProviderHelpers.GetAddImportTextChangesAsync(
Completion\Providers\ImportCompletionProvider\AbstractTypeImportCompletionProvider.cs (1)
117ImmutableArray<CompletionItem> items,
Completion\Providers\ImportCompletionProvider\AbstractTypeImportCompletionService.cs (7)
44public async Task<(ImmutableArray<ImmutableArray<CompletionItem>>, bool)> GetAllTopLevelTypesAsync( 56ImmutableArray<CompletionItem> GetItemsFromCacheResult(TypeImportCompletionCacheEntry cacheEntry) 67private async Task<(ImmutableArray<TypeImportCompletionCacheEntry> results, bool isPartial)> GetCacheEntriesAsync(Project currentProject, Compilation originCompilation, bool forceCacheCreation, CancellationToken cancellationToken) 143var latestProjects = CompletionUtilities.GetDistinctProjectsFromLatestSolutionSnapshot(projects); 153private static bool HasGlobalAlias(ImmutableArray<string> aliases) 256var types = symbol.GetTypeMembers();
Completion\Providers\ImportCompletionProvider\ExtensionMethodImportCompletionHelper.cs (8)
52ImmutableArray<ITypeSymbol> targetTypesSymbols, 107ImmutableArray<ITypeSymbol> targetTypes, 126var items = ConvertSymbolsToCompletionItems(compilation, extensionMethodSymbols, targetTypes, cancellationToken); 135var latestProjects = CompletionUtilities.GetDistinctProjectsFromLatestSolutionSnapshot(projects); 142private static ImmutableArray<SerializableImportCompletionItem> ConvertSymbolsToCompletionItems( 143Compilation compilation, ImmutableArray<IMethodSymbol> extentsionMethodSymbols, ImmutableArray<ITypeSymbol> targetTypeSymbols, CancellationToken cancellationToken) 212Compilation compilation, IMethodSymbol methodSymbol, ImmutableArray<ITypeSymbol> targetTypeSymbols,
Completion\Providers\ImportCompletionProvider\ExtensionMethodImportCompletionHelper.SymbolComputer.cs (8)
33private readonly ImmutableArray<string> _receiverTypeNames; 55var receiverTypeNames = GetReceiverTypeNames(receiverTypeSymbol); 86public async Task<(ImmutableArray<IMethodSymbol> symbols, bool isPartialResult)> GetExtensionMethodSymbolsAsync(bool forceCacheCreation, bool hideAdvancedMembers, CancellationToken cancellationToken) 142private static ImmutableArray<Project> GetAllRelevantProjects(Project project) 150private static ImmutableArray<PortableExecutableReference> GetAllRelevantPeReferences(Project project) 478private static ImmutableArray<string> GetReceiverTypeNames(ITypeSymbol receiverTypeSymbol) 512private static ImmutableArray<string> AddComplexTypes(ImmutableArray<string> receiverTypeNames)
Completion\Providers\ImportCompletionProvider\ImportCompletionItem.cs (4)
42ImmutableArray<KeyValuePair<string, string>> properties = default; 98var attributeItems = attributeItem.GetProperties(); 222var itemProperties = item.GetProperties(); 223ImmutableArray<KeyValuePair<string, string>> properties = [.. itemProperties, KeyValuePairUtil.Create(AlwaysFullyQualifyKey, AlwaysFullyQualifyKey)];
Completion\Providers\ImportCompletionProvider\ImportCompletionProviderHelpers.cs (1)
21public static async Task<ImmutableArray<TextChange>> GetAddImportTextChangesAsync(
Completion\Providers\ImportCompletionProvider\IRemoteExtensionMethodImportCompletionService.cs (2)
18ImmutableArray<string> namespaceInScope, 19ImmutableArray<string> targetTypesSymbolKeyData,
Completion\Providers\ImportCompletionProvider\ITypeImportCompletionService.cs (2)
24Task<(ImmutableArray<ImmutableArray<CompletionItem>>, bool)> GetAllTopLevelTypesAsync(
Completion\Providers\ImportCompletionProvider\SerializableUnimportedExtensionMethods.cs (2)
13ImmutableArray<SerializableImportCompletionItem> completionItems, 20public readonly ImmutableArray<SerializableImportCompletionItem> CompletionItems = completionItems;
Completion\Providers\ImportCompletionProvider\TypeImportCompletionCacheEntry.cs (3)
23private ImmutableArray<TypeImportCompletionItemInfo> ItemInfos { get; } 42ImmutableArray<TypeImportCompletionItemInfo> items, 55public ImmutableArray<CompletionItem> GetItemsForContext(
Completion\Providers\RecommendedKeyword.cs (3)
15Func<CancellationToken, ImmutableArray<SymbolDisplayPart>> descriptionFactory, 22public Func<CancellationToken, ImmutableArray<SymbolDisplayPart>> DescriptionFactory { get; } = descriptionFactory; 32internal static ImmutableArray<SymbolDisplayPart> CreateDisplayParts(string keyword, string toolTip)
Completion\Providers\Scripting\AbstractDirectivePathCompletionProvider.cs (2)
162ImmutableArray<string> extensions, 165ImmutableArray<string> referenceSearchPaths;
Completion\Providers\Scripting\AbstractLoadDirectiveCompletionProvider.cs (1)
22private static ImmutableArray<char> GetCommitCharacters()
Completion\Providers\Scripting\AbstractReferenceDirectiveCompletionProvider.cs (1)
25private static ImmutableArray<char> GetCommitCharacters()
Completion\Providers\Scripting\GlobalAssemblyCacheCompletionHelper.cs (2)
32public Task<ImmutableArray<CompletionItem>> GetItemsAsync(string directoryPath, CancellationToken cancellationToken) 36internal ImmutableArray<CompletionItem> GetItems(string directoryPath, CancellationToken cancellationToken)
Completion\Providers\Snippets\SnippetCompletionItem.cs (2)
21ImmutableArray<SymbolDisplayPart> description, 23ImmutableArray<string> additionalFilterTexts)
Completion\Providers\SymbolCompletionItem.cs (22)
25private static readonly Action<ImmutableArray<ISymbol>, ArrayBuilder<KeyValuePair<string, string>>> s_addSymbolEncoding = AddSymbolEncoding; 26private static readonly Action<ImmutableArray<ISymbol>, ArrayBuilder<KeyValuePair<string, string>>> s_addSymbolInfo = AddSymbolInfo; 32ImmutableArray<ISymbol> symbols, 35Action<ImmutableArray<ISymbol>, ArrayBuilder<KeyValuePair<string, string>>> symbolEncoder, 40ImmutableArray<KeyValuePair<string, string>> properties = default, 41ImmutableArray<string> tags = default, 81private static void AddSymbolEncoding(ImmutableArray<ISymbol> symbols, ArrayBuilder<KeyValuePair<string, string>> properties) 84private static void AddSymbolInfo(ImmutableArray<ISymbol> symbols, ArrayBuilder<KeyValuePair<string, string>> properties) 108public static string EncodeSymbols(ImmutableArray<ISymbol> symbols) 132public static async Task<ImmutableArray<ISymbol>> GetSymbolsAsync(CompletionItem item, Document document, CancellationToken cancellationToken) 145var linkedIds = document.GetLinkedDocumentIds(); 187var symbols = await GetSymbolsAsync(item, document, cancellationToken).ConfigureAwait(false); 192CompletionItem item, Document document, ImmutableArray<ISymbol> symbols, SymbolDescriptionOptions options, CancellationToken cancellationToken) 271ImmutableArray<ISymbol> symbols, 279ImmutableArray<string> tags = default, 303ImmutableArray<ISymbol> symbols, 313ImmutableArray<KeyValuePair<string, string>> properties = default, 314ImmutableArray<string> tags = default, 327ImmutableArray<ISymbol> symbols, 337ImmutableArray<KeyValuePair<string, string>> properties = default, 338ImmutableArray<string> tags = default, 358CompletionItem item, ImmutableArray<ISymbol> symbols, Document document, SemanticModel semanticModel, SymbolDescriptionOptions options, CancellationToken cancellationToken)
Completion\SharedSyntaxContextsWithSpeculativeModel.cs (1)
21private readonly Lazy<ImmutableArray<DocumentId>> _lazyRelatedDocumentIds;
Completion\Utilities.cs (1)
18public static TextChange Collapse(SourceText newText, ImmutableArray<TextChange> changes)
Contracts\EditAndContinue\IManagedHotReloadLanguageService.cs (2)
26ValueTask<ManagedHotReloadUpdates> GetUpdatesAsync(ImmutableArray<string> runningProjects, CancellationToken cancellationToken); 27ValueTask UpdateBaselinesAsync(ImmutableArray<string> projectPaths, CancellationToken cancellationToken);
Contracts\EditAndContinue\IManagedHotReloadService.cs (2)
28ValueTask<ImmutableArray<ManagedActiveStatementDebugInfo>> GetActiveStatementsAsync(CancellationToken cancellation); 62ValueTask<ImmutableArray<string>> GetCapabilitiesAsync(CancellationToken cancellation);
Contracts\EditAndContinue\ManagedHotReloadUpdate.cs (18)
16ImmutableArray<byte> ilDelta, 17ImmutableArray<byte> metadataDelta, 18ImmutableArray<byte> pdbDelta, 19ImmutableArray<int> updatedTypes, 20ImmutableArray<string> requiredCapabilities, 21ImmutableArray<int> updatedMethods, 22ImmutableArray<SequencePointUpdates> sequencePoints, 23ImmutableArray<ManagedActiveStatementUpdate> activeStatements, 24ImmutableArray<ManagedExceptionRegionUpdate> exceptionRegions) 36public ImmutableArray<byte> ILDelta { get; } = ilDelta; 39public ImmutableArray<byte> MetadataDelta { get; } = metadataDelta; 42public ImmutableArray<byte> PdbDelta { get; } = pdbDelta; 45public ImmutableArray<int> UpdatedTypes { get; } = updatedTypes; 48public ImmutableArray<string> RequiredCapabilities { get; } = requiredCapabilities; 51public ImmutableArray<int> UpdatedMethods { get; } = updatedMethods; 54public ImmutableArray<SequencePointUpdates> SequencePoints { get; } = sequencePoints; 57public ImmutableArray<ManagedActiveStatementUpdate> ActiveStatements { get; } = activeStatements; 60public ImmutableArray<ManagedExceptionRegionUpdate> ExceptionRegions { get; } = exceptionRegions;
Contracts\EditAndContinue\ManagedHotReloadUpdates.cs (4)
11internal readonly struct ManagedHotReloadUpdates(ImmutableArray<ManagedHotReloadUpdate> updates, ImmutableArray<ManagedHotReloadDiagnostic> diagnostics) 14public ImmutableArray<ManagedHotReloadUpdate> Updates { get; } = updates; 17public ImmutableArray<ManagedHotReloadDiagnostic> Diagnostics { get; } = diagnostics;
Contracts\EditAndContinue\SequencePointUpdates.cs (2)
21ImmutableArray<SourceLineUpdate> lineUpdates) 34public ImmutableArray<SourceLineUpdate> LineUpdates { get; } = lineUpdates;
ConvertAnonymousType\AbstractConvertAnonymousTypeToClassCodeRefactoringProvider.cs (8)
244ImmutableArray<IPropertySymbol> properties, 290var readonlyProperties = ImmutableArray<ISymbol>.CastUp( 313string className, bool isRecord, ImmutableArray<ITypeParameterSymbol> capturedTypeParameters, ImmutableArray<ISymbol> members) 320private static (ImmutableArray<IPropertySymbol> properties, ImmutableDictionary<IPropertySymbol, string> propertyMap) GenerateProperties( 323var originalProperties = anonymousType.GetMembers().OfType<IPropertySymbol>().ToImmutableArray(); 378ImmutableArray<IPropertySymbol> properties, SyntaxGenerator generator)
ConvertAutoPropertyToFullProperty\AbstractConvertAutoPropertyToFullPropertyCodeRefactoringProvider.cs (1)
107var typeDeclaration = propertySymbol.ContainingType.DeclaringSyntaxReferences;
ConvertCast\AbstractConvertCastCodeRefactoringProvider.cs (1)
37var fromNodes = await context.GetRelevantNodesAsync<TFromExpression>().ConfigureAwait(false);
ConvertForEachToFor\AbstractConvertForEachToForCodeRefactoringProvider.cs (2)
37private static readonly ImmutableArray<string> s_KnownInterfaceNames = 254if (collectionType.OriginalDefinition.Equals(model.Compilation.GetTypeByMetadataName(typeof(ImmutableArray<>).FullName!)))
ConvertIfToSwitch\AbstractConvertIfToSwitchCodeRefactoringProvider.AnalyzedNodes.cs (4)
24internal sealed class AnalyzedSwitchSection(ImmutableArray<AnalyzedSwitchLabel> labels, IOperation body, SyntaxNode syntaxToRemove) 26public readonly ImmutableArray<AnalyzedSwitchLabel> Labels = labels; 35internal sealed class AnalyzedSwitchLabel(AnalyzedPattern pattern, ImmutableArray<TExpressionSyntax> guards) 38public readonly ImmutableArray<TExpressionSyntax> Guards = guards;
ConvertIfToSwitch\AbstractConvertIfToSwitchCodeRefactoringProvider.Analyzer.cs (1)
71public (ImmutableArray<AnalyzedSwitchSection>, SyntaxNode TargetExpression) AnalyzeIfStatementSequence(ReadOnlySpan<IOperation> operations)
ConvertIfToSwitch\AbstractConvertIfToSwitchCodeRefactoringProvider.cs (7)
32protected sealed override ImmutableArray<FixAllScope> SupportedFixAllScopes => AllFixAllScopes; 45if (!ShouldOfferRefactoring(ifStatement, semanticModel, syntaxFactsService, out var analyzer, out var sections, out var target)) 74[NotNullWhen(true)] out ImmutableArray<AnalyzedSwitchSection> sections, 92var operations = parentBlock.Operations; 123bool supportsOrPattern, ImmutableArray<AnalyzedSwitchSection> sections) 181ImmutableArray<TextSpan> fixAllSpans, 248if (!ShouldOfferRefactoring(ifStatement, semanticModel, syntaxFactsService, out var analyzer, out var sections, out var target))
ConvertIfToSwitch\AbstractConvertIfToSwitchCodeRefactoringProvider.Rewriting.cs (2)
22public abstract SyntaxNode CreateSwitchExpressionStatement(SyntaxNode target, ImmutableArray<AnalyzedSwitchSection> sections, Feature feature); 32ImmutableArray<AnalyzedSwitchSection> sections,
ConvertLinq\AbstractConvertLinqQueryToForEachProvider.cs (1)
61public readonly ImmutableArray<TStatement> Destinations = ImmutableArray.CreateRange(destinations);
ConvertLinq\ConvertForEachToLinqQuery\ExtendedSyntaxNode.cs (2)
18public ImmutableArray<SyntaxTrivia> ExtraLeadingComments { get; } = extraLeadingComments.ToImmutableArray(); 20public ImmutableArray<SyntaxTrivia> ExtraTrailingComments { get; } = extraTrailingComments.ToImmutableArray();
ConvertLinq\ConvertForEachToLinqQuery\ForEachInfo.cs (10)
14ImmutableArray<ExtendedSyntaxNode> convertingExtendedNodes, 15ImmutableArray<SyntaxToken> identifiers, 16ImmutableArray<TStatement> statements, 17ImmutableArray<SyntaxToken> leadingTokens, 18ImmutableArray<SyntaxToken> trailingTokens) 24public ImmutableArray<ExtendedSyntaxNode> ConvertingExtendedNodes { get; } = convertingExtendedNodes; 26public ImmutableArray<SyntaxToken> Identifiers { get; } = identifiers; 28public ImmutableArray<TStatement> Statements { get; } = statements; 30public ImmutableArray<SyntaxToken> LeadingTokens { get; } = leadingTokens; 32public ImmutableArray<SyntaxToken> TrailingTokens { get; } = trailingTokens;
ConvertToInterpolatedString\AbstractConvertConcatenationToInterpolatedStringRefactoringProvider.cs (3)
34var possibleExpressions = await context.GetRelevantNodesAsync<TExpressionSyntax>().ConfigureAwait(false); 118Document document, SyntaxNode top, bool isVerbatimStringLiteral, ImmutableArray<SyntaxNode> pieces, CancellationToken cancellationToken) 130ImmutableArray<SyntaxNode> pieces,
ConvertToInterpolatedString\AbstractConvertPlaceholderToInterpolatedStringRefactoringProvider.cs (7)
255ImmutableArray<TArgumentSyntax> GetReorderedArgumentsAfterPlaceholderArgument() 260var afterPlaceholderArguments = arguments.Skip(placeholderIndex + 1).ToImmutableArray(); 261var unnamedArguments = afterPlaceholderArguments.TakeWhile(a => !syntaxFacts.IsNamedArgument(a)).ToImmutableArray(); 262var namedAndUnnamedArguments = afterPlaceholderArguments.Skip(unnamedArguments.Length).ToImmutableArray(); 288ImmutableArray<TExpressionSyntax> ExpandArgumentExpressions(ImmutableArray<TArgumentSyntax> argumentsAfterPlaceholder) 304TExpressionSyntax InsertArgumentsIntoInterpolatedString(ImmutableArray<TExpressionSyntax> expressions)
ConvertTupleToStruct\AbstractConvertTupleToStructCodeRefactoringProvider.cs (31)
93var recordChildActions = CreateChildActions(document, textSpan, tupleExprOrTypeNode, fields, capturedTypeParameters, isRecord: true); 105var childActions = CreateChildActions(document, textSpan, tupleExprOrTypeNode, fields, capturedTypeParameters, isRecord: false); 118ImmutableArray<CodeAction> CreateChildActions( 122ImmutableArray<IFieldSymbol> fields, 123ImmutableArray<ITypeParameterSymbol> capturedTypeParameters, 303var documentsToUpdate = await GetDocumentsToUpdateAsync( 326ImmutableArray<DocumentToUpdate> documentsToUpdate, 328string structName, ImmutableArray<ITypeParameterSymbol> typeParameters, 405ImmutableArray<ITypeParameterSymbol> typeParameters, bool addRenameAnnotation) 418private static async Task<ImmutableArray<DocumentToUpdate>> GetDocumentsToUpdateAsync( 435private static async Task<ImmutableArray<DocumentToUpdate>> GetDocumentsToUpdateForDependentProjectAsync( 477private static async Task<ImmutableArray<DocumentToUpdate>> GetDocumentsToUpdateForContainingProjectAsync( 489private static async Task AddDocumentsToUpdateForProjectAsync(Project project, ArrayBuilder<DocumentToUpdate> result, ImmutableArray<string> tupleFieldNames, CancellationToken cancellationToken) 504private static bool InfoProbablyContainsTupleFieldNames(SyntaxTreeIndex info, ImmutableArray<string> tupleFieldNames) 517private static async Task<ImmutableArray<DocumentToUpdate>> GetDocumentsToUpdateForContainingTypeAsync( 542private static ImmutableArray<DocumentToUpdate> GetDocumentsToUpdateForContainingMember( 616string structName, ImmutableArray<ITypeParameterSymbol> typeParameters, 636string typeName, ImmutableArray<ITypeParameterSymbol> typeParameters, 671StringComparer comparer, ImmutableArray<IFieldSymbol> fields1, ImmutableArray<IFieldSymbol> fields2) 690SyntaxEditor editor, string typeName, ImmutableArray<ITypeParameterSymbol> typeParameters, 750string typeName, ImmutableArray<ITypeParameterSymbol> typeParameters, 780SyntaxEditor editor, string typeName, ImmutableArray<ITypeParameterSymbol> typeParameters, 799Document document, Scope scope, bool isRecord, string structName, ImmutableArray<ITypeParameterSymbol> typeParameters, 804var fields = tupleType.TupleElements; 824document, namedTypeWithoutMembers, ImmutableArray<ISymbol>.CastUp(fields), 828ImmutableArray<ISymbol>.CastUp(fields), cancellationToken).ConfigureAwait(false); 857var assignments = tupleType.TupleElements.Select( 911ImmutableArray<ITypeParameterSymbol> typeParameters, ImmutableArray<ISymbol> members) 923ImmutableArray<IFieldSymbol> fields, SyntaxGenerator generator,
ConvertTupleToStruct\DocumentToUpdate.cs (2)
9internal readonly struct DocumentToUpdate(Document document, ImmutableArray<SyntaxNode> nodesToUpdate) 20public readonly ImmutableArray<SyntaxNode> NodesToUpdate = nodesToUpdate;
ConvertTupleToStruct\IRemoteConvertTupleToStructCodeRefactoringService.cs (4)
26ImmutableArray<(DocumentId, ImmutableArray<TextChange>)> documentTextChanges, 30public readonly ImmutableArray<(DocumentId, ImmutableArray<TextChange>)> DocumentTextChanges = documentTextChanges;
Copilot\Extensions.cs (1)
16public static async Task<ImmutableArray<DiagnosticData>> GetCachedCopilotDiagnosticsAsync(this TextDocument document, TextSpan? span, CancellationToken cancellationToken)
Copilot\ICopilotCodeAnalysisService.cs (4)
33Task<ImmutableArray<string>> GetAvailablePromptTitlesAsync(Document document, CancellationToken cancellationToken); 54Task<ImmutableArray<Diagnostic>> GetCachedDocumentDiagnosticsAsync(Document document, TextSpan? span, ImmutableArray<string> promptTitles, CancellationToken cancellationToken); 73Task<string> GetOnTheFlyDocsAsync(string symbolSignature, ImmutableArray<string> declarationCode, string language, CancellationToken cancellationToken);
DesignerAttribute\DesignerAttributeDiscoveryService.cs (2)
40private static readonly ImmutableArray<string> s_wellKnownDesignerNamespaces = [ 220private async Task<ImmutableArray<(DesignerAttributeData data, VersionStamp version)>> ComputeChangedDataAsync(
DesignerAttribute\IDesignerAttributeDiscoveryService.cs (1)
16ValueTask ReportDesignerAttributeDataAsync(ImmutableArray<DesignerAttributeData> data, CancellationToken cancellationToken);
DesignerAttribute\IRemoteDesignerAttributeDiscoveryService.cs (2)
23ValueTask ReportDesignerAttributeDataAsync(RemoteServiceCallbackId callbackId, ImmutableArray<DesignerAttributeData> data, CancellationToken cancellationToken); 38public ValueTask ReportDesignerAttributeDataAsync(RemoteServiceCallbackId callbackId, ImmutableArray<DesignerAttributeData> data, CancellationToken cancellationToken)
Diagnostics\Analyzers\UnboundIdentifiersDiagnosticAnalyzerBase.cs (2)
30protected abstract ImmutableArray<TLanguageKindEnum> SyntaxKindsOfInterest { get; } 37public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics
Diagnostics\CodeAnalysisDiagnosticAnalyzerService.cs (2)
140public Task<ImmutableArray<DiagnosticData>> GetLastComputedDocumentDiagnosticsAsync(DocumentId documentId, CancellationToken cancellationToken) 151public Task<ImmutableArray<DiagnosticData>> GetLastComputedProjectDiagnosticsAsync(ProjectId projectId, CancellationToken cancellationToken)
Diagnostics\DiagnosticAnalyzerExtensions.cs (1)
55public static void AppendAnalyzerMap(this Dictionary<string, DiagnosticAnalyzer> analyzerMap, ImmutableArray<DiagnosticAnalyzer> analyzers)
Diagnostics\DiagnosticArguments.cs (4)
70public ImmutableArray<string> ProjectAnalyzerIds; 76public ImmutableArray<string> HostAnalyzerIds; 93ImmutableArray<string> projectAnalyzerIds, 94ImmutableArray<string> hostAnalyzerIds,
Diagnostics\DiagnosticsUpdatedArgs.cs (3)
25public readonly ImmutableArray<DiagnosticData> Diagnostics; 31ImmutableArray<DiagnosticData> diagnostics, 48ImmutableArray<DiagnosticData> diagnostics)
Diagnostics\ICodeAnalysisDiagnosticAnalyzerService.cs (2)
42Task<ImmutableArray<DiagnosticData>> GetLastComputedDocumentDiagnosticsAsync(DocumentId documentId, CancellationToken cancellationToken); 52Task<ImmutableArray<DiagnosticData>> GetLastComputedProjectDiagnosticsAsync(ProjectId projectId, CancellationToken cancellationToken);
Diagnostics\IDiagnosticAnalyzerService.cs (8)
49Task<ImmutableArray<DiagnosticData>> GetCachedDiagnosticsAsync(Workspace workspace, ProjectId? projectId, DocumentId? documentId, bool includeSuppressedDiagnostics, bool includeLocalDocumentDiagnostics, bool includeNonLocalDocumentDiagnostics, CancellationToken cancellationToken); 79Task<ImmutableArray<DiagnosticData>> GetDiagnosticsForIdsAsync(Solution solution, ProjectId? projectId, DocumentId? documentId, ImmutableHashSet<string>? diagnosticIds, Func<DiagnosticAnalyzer, bool>? shouldIncludeAnalyzer, Func<Project, DocumentId?, IReadOnlyList<DocumentId>>? getDocumentIds, bool includeSuppressedDiagnostics, bool includeLocalDocumentDiagnostics, bool includeNonLocalDocumentDiagnostics, CancellationToken cancellationToken); 98Task<ImmutableArray<DiagnosticData>> GetProjectDiagnosticsForIdsAsync(Solution solution, ProjectId? projectId, ImmutableHashSet<string>? diagnosticIds, Func<DiagnosticAnalyzer, bool>? shouldIncludeAnalyzer, bool includeSuppressedDiagnostics, bool includeNonLocalDocumentDiagnostics, CancellationToken cancellationToken); 108Task<ImmutableArray<DiagnosticData>> GetDiagnosticsForSpanAsync( 126public static Task<ImmutableArray<DiagnosticData>> GetDiagnosticsForSpanAsync(this IDiagnosticAnalyzerService service, 137public static Task<ImmutableArray<DiagnosticData>> GetDiagnosticsForSpanAsync(this IDiagnosticAnalyzerService service, 152public static Task<ImmutableArray<DiagnosticData>> GetDiagnosticsForSpanAsync(this IDiagnosticAnalyzerService service, 166public static Task<ImmutableArray<DiagnosticData>> GetDiagnosticsForIdsAsync(
Diagnostics\IRemoteDiagnosticAnalyzerService.cs (2)
18ValueTask<ImmutableArray<DiagnosticData>> GetSourceGeneratorDiagnosticsAsync(Checksum solutionChecksum, ProjectId projectId, CancellationToken cancellationToken); 19ValueTask ReportAnalyzerPerformanceAsync(ImmutableArray<AnalyzerPerformanceInfo> snapshot, int unitCount, bool forSpanAnalysis, CancellationToken cancellationToken);
DocumentationComments\AbstractDocumentationCommentFormattingService.cs (2)
38internal readonly ImmutableArray<TaggedText>.Builder Builder = ImmutableArray.CreateBuilder<TaggedText>(); 289public ImmutableArray<TaggedText> Format(string rawXmlText, ISymbol symbol, SemanticModel semanticModel, int position, SymbolDisplayFormat format, CancellationToken cancellationToken)
DocumentationComments\IDocumentationCommentFormattingService.cs (1)
14ImmutableArray<TaggedText> Format(string? rawXmlText, ISymbol symbol, SemanticModel semanticModel, int position, SymbolDisplayFormat format, CancellationToken cancellationToken);
DocumentHighlighting\AbstractDocumentHighlightsService.cs (12)
36public async Task<ImmutableArray<DocumentHighlights>> GetDocumentHighlightsAsync( 46var result = await client.TryInvokeAsync<IRemoteDocumentHighlightsService, ImmutableArray<SerializableDocumentHighlights>>( 63private async Task<ImmutableArray<DocumentHighlights>> GetDocumentHighlightsInCurrentProcessAsync( 69var result = TryGetEmbeddedLanguageHighlights(document, semanticModel, position, options, cancellationToken); 94private ImmutableArray<DocumentHighlights> TryGetEmbeddedLanguageHighlights( 99var embeddedHighlightsServices = this.GetServices(semanticModel, token, cancellationToken); 102var result = service.Value.GetDocumentHighlights( 111private async Task<ImmutableArray<DocumentHighlights>> GetTagsForReferencedSymbolAsync( 161private async Task<ImmutableArray<DocumentHighlights>> FilterAndCreateSpansAsync( 162ImmutableArray<ReferencedSymbol> references, Document startingDocument, 195protected virtual Task<ImmutableArray<Location>> GetAdditionalReferencesAsync( 201private static async Task<ImmutableArray<DocumentHighlights>> CreateSpansAsync(
DocumentHighlighting\IDocumentHighlightsService.cs (3)
38internal readonly struct DocumentHighlights(Document document, ImmutableArray<HighlightSpan> highlightSpans) 41public ImmutableArray<HighlightSpan> HighlightSpans { get; } = highlightSpans; 50Task<ImmutableArray<DocumentHighlights>> GetDocumentHighlightsAsync(
DocumentHighlighting\IEmbeddedLanguageDocumentHighlighter.cs (1)
15ImmutableArray<DocumentHighlights> GetDocumentHighlights(
DocumentHighlighting\IRemoteDocumentHighlightsService.cs (4)
15ValueTask<ImmutableArray<SerializableDocumentHighlights>> GetDocumentHighlightsAsync( 16Checksum solutionChecksum, DocumentId documentId, int position, ImmutableArray<DocumentId> documentIdsToSearch, HighlightingOptions options, CancellationToken cancellationToken); 20internal readonly struct SerializableDocumentHighlights(DocumentId documentId, ImmutableArray<HighlightSpan> highlightSpans) 26public readonly ImmutableArray<HighlightSpan> HighlightSpans = highlightSpans;
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (51)
126protected abstract IEnumerable<SequenceEdit> GetSyntaxSequenceEdits(ImmutableArray<SyntaxNode> oldNodes, ImmutableArray<SyntaxNode> newNodes); 517ImmutableArray<ActiveStatementLineSpan> newActiveStatementSpans, 648var newExceptionRegions = ImmutableArray.CreateBuilder<ImmutableArray<SourceFileSpan>>(oldActiveStatements.Length); 785ImmutableArray<UnmappedActiveStatement> oldActiveStatements, 786ImmutableArray<ActiveStatementLineSpan> newActiveStatementSpans, 787[In, Out] ImmutableArray<ActiveStatement>.Builder newActiveStatements, 788[In, Out] ImmutableArray<ImmutableArray<SourceFileSpan>>.Builder newExceptionRegions, 941ImmutableArray<UnmappedActiveStatement> oldActiveStatements, 942ImmutableArray<ActiveStatementLineSpan> newActiveStatementSpans, 944[Out] ImmutableArray<ActiveStatement>.Builder newActiveStatements, 945[Out] ImmutableArray<ImmutableArray<SourceFileSpan>>.Builder newExceptionRegions, 1307private static bool TryGetTrackedStatement(ImmutableArray<ActiveStatementLineSpan> activeStatementSpans, ActiveStatementId id, SourceText text, MemberBody body, [NotNullWhen(true)] out SyntaxNode? trackedStatement, out int trackedStatementPart) 1360ImmutableArray<ImmutableArray<SourceFileSpan>>.Builder newExceptionRegions, 2367protected static bool ParameterTypesEquivalent(ImmutableArray<IParameterSymbol> oldParameters, ImmutableArray<IParameterSymbol> newParameters, bool exact) 2374protected static bool CustomModifiersEquivalent(ImmutableArray<CustomModifier> oldModifiers, ImmutableArray<CustomModifier> newModifiers, bool exact) 2402protected static bool TypesEquivalent<T>(ImmutableArray<T> oldTypes, ImmutableArray<T> newTypes, bool exact) where T : ITypeSymbol 2418protected static bool TypeParametersEquivalent(ImmutableArray<ITypeParameterSymbol> oldParameters, ImmutableArray<ITypeParameterSymbol> newParameters, bool exact) 2496private async Task<ImmutableArray<SemanticEditInfo>> AnalyzeSemanticsAsync( 2499ImmutableArray<UnmappedActiveStatement> oldActiveStatements, 2500ImmutableArray<ActiveStatementLineSpan> newActiveStatementSpans, 2507ImmutableArray<ActiveStatement>.Builder newActiveStatements, 2508ImmutableArray<ImmutableArray<SourceFileSpan>>.Builder newExceptionRegions, 3816private ImmutableArray<(ISymbol? oldSymbol, ISymbol? newSymbol, EditKind editKind)> GetNamespaceSymbolEdits( 4531ImmutableArray<AttributeData>? oldAttributes, 4532ImmutableArray<AttributeData> newAttributes, 4600static void FindChangedAttributes(ImmutableArray<AttributeData>? oldAttributes, ImmutableArray<AttributeData> newAttributes, ArrayBuilder<AttributeData> changedAttributes) 4614static AttributeData? FindMatch(AttributeData attribute, ImmutableArray<AttributeData>? oldAttributes) 5634out var oldInLambdaCaptures, 5635out var oldPrimaryCaptures); 5643out var newInLambdaCaptures, 5644out var newPrimaryCaptures); 5858out ImmutableArray<VariableCapture> variablesCapturedInLambdas, 5859out ImmutableArray<IParameterSymbol> primaryParametersCapturedViaThis) 5935ImmutableArray<IParameterSymbol> oldPrimaryCaptures, 5937ImmutableArray<IParameterSymbol> newPrimaryCaptures, 5986ImmutableArray<VariableCapture> captures, 5998void MarkVariables(ImmutableArray<ISymbol> variables) 6013private static void BuildIndex(Dictionary<VariableCaptureKey, int> index, ImmutableArray<VariableCapture> array) 6032protected abstract SyntaxNode? GetSymbolDeclarationSyntax(ISymbol symbol, Func<ImmutableArray<SyntaxReference>, SyntaxReference?> selector, CancellationToken cancellationToken); 6132ImmutableArray<VariableCapture> oldCaptures, 6135ImmutableArray<VariableCapture> newCaptures,
EditAndContinue\AbstractSimpleMemberBody.cs (1)
32public override ImmutableArray<ISymbol> GetCapturedVariables(SemanticModel model)
EditAndContinue\ActiveStatementExceptionRegions.cs (2)
15public readonly ImmutableArray<SourceFileSpan> Spans; 22public ActiveStatementExceptionRegions(ImmutableArray<SourceFileSpan> spans, bool isActiveStatementCovered)
EditAndContinue\ActiveStatementProvider.cs (1)
14internal delegate ValueTask<ImmutableArray<ActiveStatementSpan>> ActiveStatementSpanProvider(DocumentId? documentId, string filePath, CancellationToken cancellationToken);
EditAndContinue\ActiveStatementsMap.cs (15)
22new(ImmutableDictionary<string, ImmutableArray<ActiveStatement>>.Empty, 35public readonly IReadOnlyDictionary<string, ImmutableArray<ActiveStatement>> DocumentPathMap; 45private ImmutableDictionary<SyntaxTree, ImmutableArray<UnmappedActiveStatement>> _lazyOldDocumentActiveStatements; 48IReadOnlyDictionary<string, ImmutableArray<ActiveStatement>> documentPathMap, 56_lazyOldDocumentActiveStatements = ImmutableDictionary<SyntaxTree, ImmutableArray<UnmappedActiveStatement>>.Empty; 60ImmutableArray<ManagedActiveStatementDebugInfo> debugInfos, 61ImmutableDictionary<ManagedMethodId, ImmutableArray<NonRemappableRegion>> remapping) 127private static bool TryGetUpToDateSpan(ManagedActiveStatementDebugInfo activeStatementInfo, ImmutableDictionary<ManagedMethodId, ImmutableArray<NonRemappableRegion>> remapping, out LinePositionSpan newSpan) 146if (remapping.TryGetValue(instructionId.Method, out var regionsInMethod)) 172internal async ValueTask<ImmutableArray<UnmappedActiveStatement>> GetOldActiveStatementsAsync(IEditAndContinueAnalyzer analyzer, Document oldDocument, CancellationToken cancellationToken) 180internal ImmutableArray<UnmappedActiveStatement> GetOldActiveStatements(IEditAndContinueAnalyzer analyzer, SyntaxTree oldSyntaxTree, SourceText oldText, SyntaxNode oldRoot, CancellationToken cancellationToken) 190private ImmutableArray<UnmappedActiveStatement> CalculateOldActiveStatementsAndExceptionRegions(IEditAndContinueAnalyzer analyzer, SyntaxTree oldTree, SourceText oldText, SyntaxNode oldRoot, CancellationToken cancellationToken) 219if (DocumentPathMap.TryGetValue(targetPath, out var activeStatementsInMappedFile)) 241if (DocumentPathMap.TryGetValue(oldTree.FilePath, out var activeStatements)) 297ImmutableArray<TElement> spans,
EditAndContinue\CommittedSolution.cs (9)
110internal ImmutableArray<(DocumentId id, DocumentState state)> Test_GetDocumentStates() 127public ImmutableArray<DocumentId> GetDocumentIdsWithFilePath(string path) 313var maybePdbHasDocument = TryReadSourceFileChecksumFromPdb(document, out var requiredChecksum, out var checksumAlgorithm); 322SourceText sourceText, string filePath, Document? currentDocument, IPdbMatchingSourceTextProvider sourceTextProvider, ImmutableArray<byte> requiredChecksum, SourceHashAlgorithm checksumAlgorithm, CancellationToken cancellationToken) 389if (TryReadSourceFileChecksumFromPdb(debugInfoReader, sourceFilePath, out var requiredChecksum, out var checksumAlgorithm) == true && 436private static bool IsMatchingSourceText(SourceText sourceText, ImmutableArray<byte> requiredChecksum, SourceHashAlgorithm checksumAlgorithm) 439private static Optional<SourceText?> TryGetPdbMatchingSourceTextFromDisk(string sourceFilePath, Encoding? encoding, ImmutableArray<byte> requiredChecksum, SourceHashAlgorithm checksumAlgorithm) 470private bool? TryReadSourceFileChecksumFromPdb(Document document, out ImmutableArray<byte> requiredChecksum, out SourceHashAlgorithm checksumAlgorithm) 494private static bool? TryReadSourceFileChecksumFromPdb(EditAndContinueMethodDebugInfoReader debugInfoReader, string sourceFilePath, out ImmutableArray<byte> checksum, out SourceHashAlgorithm algorithm)
EditAndContinue\DebuggingSession.cs (17)
96private ImmutableArray<ManagedHotReloadUpdate> _lastModuleUpdatesLog; 120nonRemappableRegions: ImmutableDictionary<ManagedMethodId, ImmutableArray<NonRemappableRegion>>.Empty, 207internal void RestartEditSession(ImmutableDictionary<ManagedMethodId, ImmutableArray<NonRemappableRegion>>? nonRemappableRegions, bool? inBreakState) 278out ImmutableArray<Diagnostic> errors, 328out ImmutableArray<Diagnostic> errors, 396private static ImmutableDictionary<K, ImmutableArray<V>> GroupToImmutableDictionary<K, V>(IEnumerable<IGrouping<K, V>> items) 399var builder = ImmutableDictionary.CreateBuilder<K, ImmutableArray<V>>(); 409public async ValueTask<ImmutableArray<Diagnostic>> GetDocumentDiagnosticsAsync(Document document, ActiveStatementSpanProvider activeStatementSpanProvider, CancellationToken cancellationToken) 543ImmutableDictionary<ManagedMethodId, ImmutableArray<NonRemappableRegion>>? newNonRemappableRegions = null; 585public void UpdateBaselines(Solution solution, ImmutableArray<ProjectId> rebuiltProjects) 633public async ValueTask<ImmutableArray<ImmutableArray<ActiveStatementSpan>>> GetBaseActiveStatementSpansAsync(Solution solution, ImmutableArray<DocumentId> documentIds, CancellationToken cancellationToken) 740using var _4 = ArrayBuilder<ImmutableArray<ActiveStatementSpan>>.GetInstance(out var spans); 784public async ValueTask<ImmutableArray<ActiveStatementSpan>> GetAdjustedActiveStatementSpansAsync(TextDocument mappedDocument, ActiveStatementSpanProvider activeStatementSpanProvider, CancellationToken cancellationToken) 812var newDocumentActiveStatementSpans = await activeStatementSpanProvider(mappedDocument.Id, mappedDocument.FilePath, cancellationToken).ConfigureAwait(false); 896public ImmutableArray<IDisposable> GetBaselineModuleReaders()
EditAndContinue\DebuggingSessionTelemetry.cs (1)
18public readonly ImmutableArray<EditSessionTelemetry.Data> EditSessionData = [.. telemetry._editSessionData];
EditAndContinue\DeclarationBody.cs (1)
63public abstract ImmutableArray<ISymbol> GetCapturedVariables(SemanticModel model);
EditAndContinue\DocumentActiveStatementChanges.cs (12)
13public readonly ImmutableArray<UnmappedActiveStatement> OldStatements; 14public readonly ImmutableArray<ActiveStatement> NewStatements; 15public readonly ImmutableArray<ImmutableArray<SourceFileSpan>> NewExceptionRegions; 18ImmutableArray<UnmappedActiveStatement> oldSpans, 19ImmutableArray<ActiveStatement> newStatements, 20ImmutableArray<ImmutableArray<SourceFileSpan>> newExceptionRegions) 39out ImmutableArray<UnmappedActiveStatement> oldStatements, 40out ImmutableArray<ActiveStatement> newStatements, 41out ImmutableArray<ImmutableArray<SourceFileSpan>> newExceptionRegions)
EditAndContinue\DocumentAnalysisResults.cs (13)
30public ImmutableArray<ActiveStatement> ActiveStatements { get; } 36public ImmutableArray<RudeEditDiagnostic> RudeEdits { get; } 46public ImmutableArray<SemanticEditInfo> SemanticEdits { get; } 69public ImmutableArray<ImmutableArray<SourceFileSpan>> ExceptionRegions { get; } 79public ImmutableArray<SequencePointUpdates> LineEdits { get; } 110ImmutableArray<ActiveStatement> activeStatementsOpt, 111ImmutableArray<RudeEditDiagnostic> rudeEdits, 113ImmutableArray<SemanticEditInfo> semanticEditsOpt, 114ImmutableArray<ImmutableArray<SourceFileSpan>> exceptionRegionsOpt, 115ImmutableArray<SequencePointUpdates> lineEditsOpt, 191public static DocumentAnalysisResults SyntaxErrors(DocumentId documentId, string filePath, ImmutableArray<RudeEditDiagnostic> rudeEdits, Diagnostic? syntaxError, TimeSpan elapsedTime, bool hasChanges)
EditAndContinue\EditAndContinueCapabilities.cs (2)
77public static EditAndContinueCapabilities Parse(ImmutableArray<string> capabilities) 107public static ImmutableArray<string> ToStringArray(this EditAndContinueCapabilities capabilities)
EditAndContinue\EditAndContinueDiagnosticDescriptors.cs (2)
24private static readonly ImmutableArray<DiagnosticDescriptor> s_descriptors; 176internal static ImmutableArray<DiagnosticDescriptor> GetDescriptors()
EditAndContinue\EditAndContinueDocumentAnalysesCache.cs (6)
27private readonly Dictionary<DocumentId, (AsyncLazy<DocumentAnalysisResults> results, Project baseProject, Document document, ImmutableArray<ActiveStatementLineSpan> activeStatementSpans)> _analyses = []; 31public async ValueTask<ImmutableArray<DocumentAnalysisResults>> GetDocumentAnalysesAsync( 99private async Task<ImmutableArray<ActiveStatementLineSpan>> GetLatestUnmappedActiveStatementSpansAsync(Document? oldDocument, Document newDocument, ActiveStatementSpanProvider newActiveStatementSpanProvider, CancellationToken cancellationToken) 119var newMappedDocumentSpans = await newActiveStatementSpanProvider(newDocument.Id, newDocument.FilePath, cancellationToken).ConfigureAwait(false); 127using var _1 = PooledDictionary<string, ImmutableArray<ActiveStatementSpan>>.GetInstance(out var mappedSpansByDocumentPath); 163private AsyncLazy<DocumentAnalysisResults> GetDocumentAnalysisNoLock(Project baseProject, Document document, ImmutableArray<ActiveStatementLineSpan> activeStatementSpans)
EditAndContinue\EditAndContinueMethodDebugInfoReader.cs (6)
39public abstract bool TryGetDocumentChecksum(string documentPath, out ImmutableArray<byte> checksum, out Guid algorithmId); 87ImmutableArray<byte> localSlots, lambdaMap, stateMachineSuspensionPoints; 108public override bool TryGetDocumentChecksum(string documentPath, out ImmutableArray<byte> checksum, out Guid algorithmId) 127private ImmutableArray<byte> GetCdiBytes(MethodDefinitionHandle methodHandle, Guid kind) 155public override bool TryGetDocumentChecksum(string documentPath, out ImmutableArray<byte> checksum, out Guid algorithmId) 225internal static bool TryGetDocumentChecksum(ISymUnmanagedReader5 symReader, string documentPath, out ImmutableArray<byte> checksum, out Guid algorithmId)
EditAndContinue\EditAndContinueService.cs (13)
45public ImmutableArray<DiagnosticData> ApplyChangesDiagnostics => []; 119private ImmutableArray<DebuggingSession> GetActiveDebuggingSessions() 127private ImmutableArray<DebuggingSession> GetDiagnosticReportingDebuggingSessions() 139ImmutableArray<DocumentId> captureMatchingDocuments, 184private static IEnumerable<(Project, IEnumerable<DocumentState>)> GetDocumentStatesGroupedByProject(Solution solution, ImmutableArray<DocumentId> documentIds) 213public ValueTask<ImmutableArray<Diagnostic>> GetDocumentDiagnosticsAsync(Document document, ActiveStatementSpanProvider activeStatementSpanProvider, CancellationToken cancellationToken) 253public void UpdateBaselines(DebuggingSessionId sessionId, Solution solution, ImmutableArray<ProjectId> rebuiltProjects) 261public ValueTask<ImmutableArray<ImmutableArray<ActiveStatementSpan>>> GetBaseActiveStatementSpansAsync(DebuggingSessionId sessionId, Solution solution, ImmutableArray<DocumentId> documentIds, CancellationToken cancellationToken) 272public ValueTask<ImmutableArray<ActiveStatementSpan>> GetAdjustedActiveStatementSpansAsync(DebuggingSessionId sessionId, TextDocument mappedDocument, ActiveStatementSpanProvider activeStatementSpanProvider, CancellationToken cancellationToken) 277return ValueTaskFactory.FromResult(ImmutableArray<ActiveStatementSpan>.Empty); 296public ImmutableArray<DebuggingSession> GetActiveDebuggingSessions()
EditAndContinue\EditSession.cs (31)
63internal readonly ImmutableDictionary<ManagedMethodId, ImmutableArray<NonRemappableRegion>> NonRemappableRegions; 90ImmutableDictionary<ManagedMethodId, ImmutableArray<NonRemappableRegion>> nonRemappableRegions, 151public async Task<ImmutableArray<Diagnostic>?> GetModuleDiagnosticsAsync(Guid mvid, Project oldProject, Project newProject, ImmutableArray<DocumentAnalysisResults> documentAnalyses, CancellationToken cancellationToken) 163return ImmutableArray<Diagnostic>.Empty; 179private static async IAsyncEnumerable<Location> CreateChangedLocationsAsync(Project oldProject, Project newProject, ImmutableArray<DocumentAnalysisResults> documentAnalyses, [EnumeratorCancellation] CancellationToken cancellationToken) 236var capabilities = await DebuggingSession.DebuggerService.GetCapabilitiesAsync(cancellationToken).ConfigureAwait(false); 250var debugInfos = await DebuggingSession.DebuggerService.GetActiveStatementsAsync(cancellationToken).ConfigureAwait(false); 262var newDocumentIds = newSolution.GetDocumentIdsWithFilePath(sourceFilePath); 526private async Task<(ImmutableArray<DocumentAnalysisResults> results, ImmutableArray<Diagnostic> diagnostics)> AnalyzeDocumentsAsync( 566private static ProjectAnalysisSummary GetProjectAnalysisSummary(ImmutableArray<DocumentAnalysisResults> documentAnalyses) 615ImmutableArray<DocumentAnalysisResults> changedDocumentAnalyses, 655MergePartialEdits(oldCompilation, newCompilation, allEdits, out var mergedEdits, out var addedSymbols, cancellationToken); 674out ImmutableArray<SemanticEdit> mergedEdits, 808using var _2 = ArrayBuilder<(Guid ModuleId, ImmutableArray<(ManagedModuleMethodId Method, NonRemappableRegion Region)>)>.GetInstance(out var nonRemappableRegions); 812using var _6 = ArrayBuilder<(DocumentId, ImmutableArray<RudeEditDiagnostic>)>.GetInstance(out var documentsWithRudeEdits); 960var projectBaselines = DebuggingSession.GetOrCreateEmitBaselines(mvid, oldProject, oldCompilation, out var createBaselineErrors, out var baselineAccessLock); 994var requiredCapabilities = projectChanges.RequiredCapabilities.ToStringArray(); 999var emitDiagnostics = ImmutableArray<Diagnostic>.Empty; 1072out var activeStatementsInUpdatedMethods, 1073out var moduleNonRemappableRegions, 1074out var exceptionRegionUpdates); 1187ImmutableArray<int> updatedMethodTokens, 1188ImmutableDictionary<ManagedMethodId, ImmutableArray<NonRemappableRegion>> previousNonRemappableRegions, 1189ImmutableArray<DocumentActiveStatementChanges> activeStatementsInChangedDocuments, 1190out ImmutableArray<ManagedActiveStatementUpdate> activeStatementsInUpdatedMethods, 1191out ImmutableArray<(ManagedModuleMethodId Method, NonRemappableRegion Region)> nonRemappableRegions, 1192out ImmutableArray<ManagedExceptionRegionUpdate> exceptionRegionUpdates) 1208var newActiveStatementExceptionRegions = newExceptionRegions[i];
EditAndContinue\EditSessionTelemetry.cs (7)
18public readonly ImmutableArray<(ushort EditKind, ushort SyntaxKind, Guid projectId)> RudeEdits = telemetry._rudeEdits.AsImmutable(); 19public readonly ImmutableArray<string> EmitErrorIds = telemetry._emitErrorIds.AsImmutable(); 20public readonly ImmutableArray<Guid> ProjectsWithValidDelta = telemetry._projectsWithValidDelta.AsImmutable(); 21public readonly ImmutableArray<Guid> ProjectsWithUpdatedBaselines = telemetry._projectsWithUpdatedBaselines.AsImmutable(); 87public void LogProjectAnalysisSummary(ProjectAnalysisSummary summary, Guid projectTelemetryId, ImmutableArray<string> errorsIds) 126public void LogProjectAnalysisSummary(ProjectAnalysisSummary summary, Guid projectTelemetryId, ImmutableArray<Diagnostic> emitDiagnostics) 129public void LogRudeEditDiagnostics(ImmutableArray<RudeEditDiagnostic> diagnostics, Guid projectTelemetryId)
EditAndContinue\EmitSolutionUpdateResults.cs (4)
41internal ImmutableArray<ManagedHotReloadDiagnostic> GetAllDiagnostics() 152out ImmutableArray<ProjectId> projectsToRestart, 153out ImmutableArray<ProjectId> projectsToRebuild) 268public ImmutableArray<Diagnostic> GetAllDiagnostics()
EditAndContinue\IActiveStatementSpanFactory.cs (4)
27ValueTask<ImmutableArray<ImmutableArray<ActiveStatementSpan>>> GetBaseActiveStatementSpansAsync(Solution solution, ImmutableArray<DocumentId> documentIds, CancellationToken cancellationToken); 36ValueTask<ImmutableArray<ActiveStatementSpan>> GetAdjustedActiveStatementSpansAsync(TextDocument document, ActiveStatementSpanProvider activeStatementSpanProvider, CancellationToken cancellationToken);
EditAndContinue\IActiveStatementSpanLocator.cs (1)
18ValueTask<ImmutableArray<ActiveStatementSpan>> GetSpansAsync(Solution solution, DocumentId? documentId, string filePath, CancellationToken cancellationToken);
EditAndContinue\IEditAndContinueAnalyzer.cs (1)
20ImmutableArray<ActiveStatementLineSpan> newActiveStatementSpans,
EditAndContinue\IEditAndContinueService.cs (7)
22ValueTask<ImmutableArray<Diagnostic>> GetDocumentDiagnosticsAsync(Document document, ActiveStatementSpanProvider activeStatementSpanProvider, CancellationToken cancellationToken); 27void UpdateBaselines(DebuggingSessionId sessionId, Solution solution, ImmutableArray<ProjectId> rebuiltProjects); 29ValueTask<DebuggingSessionId> StartDebuggingSessionAsync(Solution solution, IManagedHotReloadService debuggerService, IPdbMatchingSourceTextProvider sourceTextProvider, ImmutableArray<DocumentId> captureMatchingDocuments, bool captureAllMatchingDocuments, bool reportDiagnostics, CancellationToken cancellationToken); 33ValueTask<ImmutableArray<ImmutableArray<ActiveStatementSpan>>> GetBaseActiveStatementSpansAsync(DebuggingSessionId sessionId, Solution solution, ImmutableArray<DocumentId> documentIds, CancellationToken cancellationToken); 34ValueTask<ImmutableArray<ActiveStatementSpan>> GetAdjustedActiveStatementSpansAsync(DebuggingSessionId sessionId, TextDocument document, ActiveStatementSpanProvider activeStatementSpanProvider, CancellationToken cancellationToken);
EditAndContinue\IEditAndContinueSessionTracker.cs (1)
25ImmutableArray<DiagnosticData> ApplyChangesDiagnostics { get; }
EditAndContinue\IPdbMatchingSourceTextProvider.cs (2)
16ValueTask<string?> TryGetMatchingSourceTextAsync(string filePath, ImmutableArray<byte> requiredChecksum, SourceHashAlgorithm checksumAlgorithm, CancellationToken cancellationToken); 27public ValueTask<string?> TryGetMatchingSourceTextAsync(string filePath, ImmutableArray<byte> requiredChecksum, SourceHashAlgorithm checksumAlgorithm, CancellationToken cancellationToken)
EditAndContinue\MemberBody.cs (1)
45public IEnumerable<int> GetOverlappingActiveStatementIndices(ImmutableArray<UnmappedActiveStatement> statements)
EditAndContinue\ModuleUpdate.cs (1)
14[property: DataMember(Order = 1)] ImmutableArray<ManagedHotReloadUpdate> Updates);
EditAndContinue\PendingSolutionUpdate.cs (10)
12ImmutableArray<ProjectBaseline> projectBaselines, 13ImmutableArray<ManagedHotReloadUpdate> deltas) 15public readonly ImmutableArray<ProjectBaseline> ProjectBaselines = projectBaselines; 16public readonly ImmutableArray<ManagedHotReloadUpdate> Deltas = deltas; 21ImmutableArray<ProjectBaseline> projectBaselines, 22ImmutableArray<ManagedHotReloadUpdate> deltas, 23ImmutableArray<(Guid ModuleId, ImmutableArray<(ManagedModuleMethodId Method, NonRemappableRegion Region)>)> nonRemappableRegions) : PendingUpdate(projectBaselines, deltas) 26public readonly ImmutableArray<(Guid ModuleId, ImmutableArray<(ManagedModuleMethodId Method, NonRemappableRegion Region)> Regions)> NonRemappableRegions = nonRemappableRegions;
EditAndContinue\ProjectChanges.cs (6)
17public readonly ImmutableArray<SemanticEdit> SemanticEdits; 22public readonly ImmutableArray<SequencePointUpdates> LineChanges; 32public readonly ImmutableArray<DocumentActiveStatementChanges> ActiveStatementChanges; 40ImmutableArray<SemanticEdit> semanticEdits, 41ImmutableArray<SequencePointUpdates> lineChanges, 43ImmutableArray<DocumentActiveStatementChanges> activeStatementChanges,
EditAndContinue\ProjectDiagnostics.cs (3)
12internal readonly record struct ProjectDiagnostics(ProjectId ProjectId, ImmutableArray<Diagnostic> Diagnostics); 16public static ImmutableArray<DiagnosticData> ToDiagnosticData(this ImmutableArray<ProjectDiagnostics> diagnostics, Solution solution)
EditAndContinue\Remote\ActiveStatementSpanProviderCallback.cs (1)
20public async ValueTask<ImmutableArray<ActiveStatementSpan>> GetSpansAsync(DocumentId? documentId, string filePath, CancellationToken cancellationToken)
EditAndContinue\Remote\IRemoteEditAndContinueService.cs (11)
20ValueTask<ImmutableArray<ManagedActiveStatementDebugInfo>> GetActiveStatementsAsync(RemoteServiceCallbackId callbackId, CancellationToken cancellationToken); 22ValueTask<ImmutableArray<string>> GetCapabilitiesAsync(RemoteServiceCallbackId callbackId, CancellationToken cancellationToken); 25ValueTask<ImmutableArray<ActiveStatementSpan>> GetSpansAsync(RemoteServiceCallbackId callbackId, DocumentId? documentId, string filePath, CancellationToken cancellationToken); 26ValueTask<string?> TryGetMatchingSourceTextAsync(RemoteServiceCallbackId callbackId, string filePath, ImmutableArray<byte> requiredChecksum, SourceHashAlgorithm checksumAlgorithm, CancellationToken cancellationToken); 29ValueTask<ImmutableArray<DiagnosticData>> GetDocumentDiagnosticsAsync(Checksum solutionChecksum, RemoteServiceCallbackId callbackId, DocumentId documentId, CancellationToken cancellationToken); 37ValueTask UpdateBaselinesAsync(Checksum solutionInfo, DebuggingSessionId sessionId, ImmutableArray<ProjectId> rebuiltProjects, CancellationToken cancellationToken); 39ValueTask<DebuggingSessionId> StartDebuggingSessionAsync(Checksum solutionChecksum, RemoteServiceCallbackId callbackId, ImmutableArray<DocumentId> captureMatchingDocuments, bool captureAllMatchingDocuments, bool reportDiagnostics, CancellationToken cancellationToken); 50ValueTask<ImmutableArray<ImmutableArray<ActiveStatementSpan>>> GetBaseActiveStatementSpansAsync(Checksum solutionChecksum, DebuggingSessionId sessionId, ImmutableArray<DocumentId> documentIds, CancellationToken cancellationToken); 51ValueTask<ImmutableArray<ActiveStatementSpan>> GetAdjustedActiveStatementSpansAsync(Checksum solutionChecksum, RemoteServiceCallbackId callbackId, DebuggingSessionId sessionId, DocumentId documentId, CancellationToken cancellationToken);
EditAndContinue\Remote\RemoteDebuggingSessionProxy.cs (9)
101private static ImmutableArray<DiagnosticData> GetInternalErrorDiagnosticData(Solution solution, Exception e) 142public async ValueTask UpdateBaselinesAsync(Solution solution, ImmutableArray<ProjectId> rebuiltProjects, CancellationToken cancellationToken) 158public async ValueTask<ImmutableArray<ImmutableArray<ActiveStatementSpan>>> GetBaseActiveStatementSpansAsync(Solution solution, ImmutableArray<DocumentId> documentIds, CancellationToken cancellationToken) 166var result = await client.TryInvokeAsync<IRemoteEditAndContinueService, ImmutableArray<ImmutableArray<ActiveStatementSpan>>>( 174public async ValueTask<ImmutableArray<ActiveStatementSpan>> GetAdjustedActiveStatementSpansAsync(TextDocument document, ActiveStatementSpanProvider activeStatementSpanProvider, CancellationToken cancellationToken) 188var result = await client.TryInvokeAsync<IRemoteEditAndContinueService, ImmutableArray<ActiveStatementSpan>>(
EditAndContinue\Remote\RemoteEditAndContinueServiceProxy.cs (10)
32public ValueTask<ImmutableArray<ActiveStatementSpan>> GetSpansAsync(RemoteServiceCallbackId callbackId, DocumentId? documentId, string filePath, CancellationToken cancellationToken) 35public ValueTask<string?> TryGetMatchingSourceTextAsync(RemoteServiceCallbackId callbackId, string filePath, ImmutableArray<byte> requiredChecksum, SourceHashAlgorithm checksumAlgorithm, CancellationToken cancellationToken) 38public ValueTask<ImmutableArray<ManagedActiveStatementDebugInfo>> GetActiveStatementsAsync(RemoteServiceCallbackId callbackId, CancellationToken cancellationToken) 44public ValueTask<ImmutableArray<string>> GetCapabilitiesAsync(RemoteServiceCallbackId callbackId, CancellationToken cancellationToken) 56public async ValueTask<string?> TryGetMatchingSourceTextAsync(string filePath, ImmutableArray<byte> requiredChecksum, SourceHashAlgorithm checksumAlgorithm, CancellationToken cancellationToken) 68public async ValueTask<ImmutableArray<ManagedActiveStatementDebugInfo>> GetActiveStatementsAsync(CancellationToken cancellationToken) 104public async ValueTask<ImmutableArray<string>> GetCapabilitiesAsync(CancellationToken cancellationToken) 124ImmutableArray<DocumentId> captureMatchingDocuments, 154public async ValueTask<ImmutableArray<DiagnosticData>> GetDocumentDiagnosticsAsync(Document document, ActiveStatementSpanProvider activeStatementSpanProvider, CancellationToken cancellationToken) 169var diagnosticData = await client.TryInvokeAsync<IRemoteEditAndContinueService, ImmutableArray<DiagnosticData>>(
EditAndContinue\RudeEditDiagnostic.cs (1)
59public static bool HasBlockingRudeEdits(this ImmutableArray<Diagnostic> diagnostics)
EditAndContinue\SolutionUpdate.cs (17)
13ImmutableArray<(Guid ModuleId, ImmutableArray<(ManagedModuleMethodId Method, NonRemappableRegion Region)>)> nonRemappableRegions, 14ImmutableArray<ProjectBaseline> projectBaselines, 15ImmutableArray<ProjectDiagnostics> diagnostics, 16ImmutableArray<(DocumentId DocumentId, ImmutableArray<RudeEditDiagnostic> Diagnostics)> documentsWithRudeEdits, 20public readonly ImmutableArray<(Guid ModuleId, ImmutableArray<(ManagedModuleMethodId Method, NonRemappableRegion Region)>)> NonRemappableRegions = nonRemappableRegions; 21public readonly ImmutableArray<ProjectBaseline> ProjectBaselines = projectBaselines; 22public readonly ImmutableArray<ProjectDiagnostics> Diagnostics = diagnostics; 23public readonly ImmutableArray<(DocumentId DocumentId, ImmutableArray<RudeEditDiagnostic> Diagnostics)> DocumentsWithRudeEdits = documentsWithRudeEdits; 27ImmutableArray<ProjectDiagnostics> diagnostics, 28ImmutableArray<(DocumentId, ImmutableArray<RudeEditDiagnostic>)> documentsWithRudeEdits, 33ImmutableArray<(Guid, ImmutableArray<(ManagedModuleMethodId, NonRemappableRegion)>)>.Empty,
EditAndContinue\TraceLog.cs (6)
49public readonly ImmutableArray<int> Tokens; 58public Arg(ImmutableArray<int> tokens) 74(Object is ImmutableArray<string> array) ? string.Join(",", array) : 96public static implicit operator Arg(ImmutableArray<int> tokens) => new(tokens); 97public static implicit operator Arg(ImmutableArray<string> items) => new(items); 155public void Write(DebuggingSessionId sessionId, ImmutableArray<byte> bytes, string directory, string fileName)
EmbeddedLanguages\AbstractEmbeddedLanguageFeatureService.cs (6)
32private readonly ImmutableArray<Lazy<TService, EmbeddedLanguageMetadata>> _legacyServices; 39private readonly ImmutableDictionary<string, ImmutableArray<Lazy<TService, EmbeddedLanguageMetadata>>> _identifierToServices; 78var languageIdentifiers = _identifierToServices.Keys.ToImmutableArray(); 92private static EmbeddedLanguageCommentDetector GetCommentDetector(ImmutableArray<string> languageIdentifiers) 108protected ImmutableArray<Lazy<TService, EmbeddedLanguageMetadata>> GetServices( 116_identifierToServices.TryGetValue(identifier, out var services))
EmbeddedLanguages\AbstractEmbeddedLanguagesProvider.cs (1)
18public ImmutableArray<IEmbeddedLanguage> Languages { get; }
EmbeddedLanguages\AbstractLanguageDetector.cs (4)
18ImmutableArray<string> languageIdentifiers, 171ImmutableArray<string> LanguageIdentifiers { get; } 182public static readonly ImmutableArray<string> LanguageIdentifiers = default(TDetectorInfo).LanguageIdentifiers; 194ImmutableArray<string> languageIdentifiers,
EmbeddedLanguages\Classification\AbstractEmbeddedLanguageClassificationService.cs (3)
39Document document, ImmutableArray<TextSpan> textSpans, ClassificationOptions options, SegmentedList<ClassifiedSpan> result, CancellationToken cancellationToken) 52SolutionServices services, Project? project, SemanticModel semanticModel, ImmutableArray<TextSpan> textSpans, ClassificationOptions options, SegmentedList<ClassifiedSpan> result, CancellationToken cancellationToken) 127var classifiers = _owner.GetServices(_semanticModel, token, _cancellationToken);
EmbeddedLanguages\Classification\AbstractFallbackEmbeddedLanguageClassifier.cs (1)
14private readonly ImmutableArray<int> _supportedKinds;
EmbeddedLanguages\DateAndTime\LanguageServices\DateAndTimeLanguageDetector.cs (2)
27public ImmutableArray<string> LanguageIdentifiers => ["Date", "Time", "DateTime", "DateTimeFormat"]; 170var parameters = method.Parameters;
EmbeddedLanguages\EmbeddedLanguageCommentDetector.cs (1)
25public EmbeddedLanguageCommentDetector(ImmutableArray<string> identifiers)
EmbeddedLanguages\EmbeddedLanguageDetector.cs (1)
19ImmutableArray<string> languageIdentifiers,
EmbeddedLanguages\EmbeddedLanguageInfo.cs (1)
39public readonly ImmutableArray<int> AllStringLiteralKinds { get; }
EmbeddedLanguages\IEmbeddedLanguagesProvider.cs (1)
17ImmutableArray<IEmbeddedLanguage> Languages { get; }
EmbeddedLanguages\Json\JsonHelpers.cs (6)
17JsonKind kind, ImmutableArray<JsonTrivia> leadingTrivia, 18VirtualCharSequence virtualChars, ImmutableArray<JsonTrivia> trailingTrivia) 22ImmutableArray<JsonTrivia> leadingTrivia, VirtualCharSequence virtualChars, 23ImmutableArray<JsonTrivia> trailingTrivia, ImmutableArray<EmbeddedDiagnostic> diagnostics) 35public static JsonTrivia CreateTrivia(JsonKind kind, VirtualCharSequence virtualChars, ImmutableArray<EmbeddedDiagnostic> diagnostics)
EmbeddedLanguages\Json\JsonLexer.cs (3)
42var leadingTrivia = ScanTrivia(leading: true); 53var trailingTrivia = ScanTrivia(leading: false); 195private ImmutableArray<JsonTrivia> ScanTrivia(bool leading)
EmbeddedLanguages\Json\JsonNodes.cs (6)
18public JsonCompilationUnit(ImmutableArray<JsonValueNode> sequence, JsonToken endOfFileToken) 31public ImmutableArray<JsonValueNode> Sequence { get; } 128ImmutableArray<JsonValueNode> sequence, 142public ImmutableArray<JsonValueNode> Sequence { get; } 276ImmutableArray<JsonValueNode> sequence, 295public ImmutableArray<JsonValueNode> Sequence { get; }
EmbeddedLanguages\Json\JsonParser.cs (5)
123var arraySequence = this.ParseSequence(); 164var sequence = compilationUnit.Sequence; 292private static EmbeddedDiagnostic? GetFirstDiagnostic(ImmutableArray<JsonTrivia> list) 304private ImmutableArray<JsonValueNode> ParseSequence() 318private ImmutableArray<JsonValueNode> ParseSequenceWorker()
EmbeddedLanguages\Json\JsonParser.JsonNetSyntaxChecks.cs (1)
159private static EmbeddedDiagnostic? CheckCommasBetweenSequenceElements(ImmutableArray<JsonValueNode> sequence)
EmbeddedLanguages\Json\JsonParser.StrictSyntaxChecker.cs (2)
67ImmutableArray<JsonTrivia> triviaList, bool allowComments) 127ImmutableArray<JsonValueNode> sequence,
EmbeddedLanguages\Json\JsonTree.cs (1)
14ImmutableArray<EmbeddedDiagnostic> diagnostics) : EmbeddedSyntaxTree<JsonKind, JsonNode, JsonCompilationUnit>(text, root, diagnostics)
EmbeddedLanguages\Json\LanguageServices\AbstractJsonDetectionCodeFixProvider.cs (2)
32public override ImmutableArray<string> FixableDiagnosticIds 59Document document, ImmutableArray<Diagnostic> diagnostics,
EmbeddedLanguages\Json\LanguageServices\JsonDetectionOptionsStorage.cs (1)
22public static readonly ImmutableArray<IOption2> UnsupportedOptions = [DetectAndOfferEditorFeaturesForProbableJsonStrings, ReportInvalidJsonPatterns];
EmbeddedLanguages\Json\LanguageServices\JsonLanguageDetector.cs (1)
30public ImmutableArray<string> LanguageIdentifiers => ["Json"];
EmbeddedLanguages\RegularExpressions\LanguageServices\RegexBraceMatcher.cs (1)
152private static RegexTrivia? TryGetTrivia(ImmutableArray<RegexTrivia> triviaList, VirtualChar ch)
EmbeddedLanguages\RegularExpressions\LanguageServices\RegexDocumentHighlighter.cs (7)
34public ImmutableArray<DocumentHighlights> GetDocumentHighlights( 50private static ImmutableArray<HighlightSpan> GetHighlights(RegexTree tree, int positionInDocument) 52var referencesOnTheRight = GetReferences(tree, positionInDocument); 65var referencesOnTheLeft = GetReferences(tree, positionInDocument - 1); 69private static ImmutableArray<HighlightSpan> GetReferences(RegexTree tree, int position) 79private static ImmutableArray<HighlightSpan> FindReferenceHighlights(RegexTree tree, VirtualChar ch) 108private static ImmutableArray<HighlightSpan> CreateHighlights(
EmbeddedLanguages\RegularExpressions\LanguageServices\RegexLanguageDetector.cs (1)
32public ImmutableArray<string> LanguageIdentifiers => ["Regex", "Regexp"];
EmbeddedLanguages\RegularExpressions\LanguageServices\RegexOptionsStorage.cs (1)
17public static readonly ImmutableArray<IOption2> UnsupportedOptions = [ReportInvalidRegexPatterns];
EmbeddedLanguages\RegularExpressions\RegexHelpers.cs (2)
23public static RegexToken CreateToken(RegexKind kind, ImmutableArray<RegexTrivia> leadingTrivia, VirtualCharSequence virtualChars) 32public static RegexTrivia CreateTrivia(RegexKind kind, VirtualCharSequence virtualChars, ImmutableArray<EmbeddedDiagnostic> diagnostics)
EmbeddedLanguages\RegularExpressions\RegexLexer.cs (3)
59var trivia = ScanLeadingTrivia(allowTrivia, options); 99private ImmutableArray<RegexTrivia> ScanLeadingTrivia(bool allowTrivia, RegexOptions options) 349: CreateToken(RegexKind.OptionsToken, ImmutableArray<RegexTrivia>.Empty, GetSubPatternToCurrentPos(start));
EmbeddedLanguages\RegularExpressions\RegexNodes.cs (2)
57internal sealed class RegexSequenceNode(ImmutableArray<RegexExpressionNode> children) : RegexExpressionNode(RegexKind.Sequence) 59public ImmutableArray<RegexExpressionNode> Children { get; } = children;
EmbeddedLanguages\RegularExpressions\RegexParser.cs (1)
227HashSet<EmbeddedDiagnostic> seenDiagnostics, ImmutableArray<EmbeddedDiagnostic> from, ArrayBuilder<EmbeddedDiagnostic> to)
EmbeddedLanguages\RegularExpressions\RegexTree.cs (1)
17ImmutableArray<EmbeddedDiagnostic> diagnostics,
EmbeddedLanguages\StackFrame\StackFrameExtensions.cs (4)
15/// Creates an <see cref="ImmutableArray{StackFrameTrivia}"/> with a single value or empty 18public static ImmutableArray<StackFrameTrivia> ToImmutableArray(this StackFrameTrivia? trivia) 22/// Creates an <see cref="ImmutableArray{StackFrameTrivia}"/> with a single trivia item in it 28public static ImmutableArray<StackFrameTrivia> ToImmutableArray(this StackFrameTrivia trivia)
EmbeddedLanguages\StackFrame\StackFrameLexer.cs (6)
408public static StackFrameToken CreateToken(StackFrameKind kind, ImmutableArray<StackFrameTrivia> leadingTrivia, VirtualCharSequence virtualChars) 411public static StackFrameToken CreateToken(StackFrameKind kind, ImmutableArray<StackFrameTrivia> leadingTrivia, VirtualCharSequence virtualChars, ImmutableArray<StackFrameTrivia> trailingTrivia) 417private static StackFrameTrivia CreateTrivia(StackFrameKind kind, VirtualCharSequence virtualChars, ImmutableArray<EmbeddedDiagnostic> diagnostics) 424private static ImmutableArray<StackFrameTrivia> CreateTrivia(params StackFrameTrivia?[] triviaArray) 542private static readonly ImmutableArray<Language> s_languages =
EmbeddedLanguages\StackFrame\StackFrameNodeDefinitions.cs (4)
321public ImmutableArray<StackFrameArrayRankSpecifier> ArrayRankSpecifiers; 323public StackFrameArrayTypeNode(StackFrameNameNode typeIdentifier, ImmutableArray<StackFrameArrayRankSpecifier> arrayRankSpecifiers) : base(StackFrameKind.ArrayTypeExpression) 347public readonly ImmutableArray<StackFrameToken> CommaTokens; 349public StackFrameArrayRankSpecifier(StackFrameToken openBracket, StackFrameToken closeBracket, ImmutableArray<StackFrameToken> commaTokens)
EmbeddedLanguages\StackFrame\StackFrameParser.cs (2)
503private Result<ImmutableArray<StackFrameArrayRankSpecifier>> ParseArrayRankSpecifiers() 522return Result<ImmutableArray<StackFrameArrayRankSpecifier>>.Abort;
EmbeddedLanguages\StackFrame\StackFrameTree.cs (1)
11internal sealed class StackFrameTree(VirtualCharSequence text, StackFrameCompilationUnit root) : EmbeddedSyntaxTree<StackFrameKind, StackFrameNode, StackFrameCompilationUnit>(text, root, ImmutableArray<EmbeddedDiagnostic>.Empty)
Emit\CompilationOutputFilesWithImplicitPdbPath.cs (1)
56var debugDirectory = peReader.ReadDebugDirectory();
EncapsulateField\AbstractEncapsulateFieldService.cs (13)
41protected abstract Task<ImmutableArray<IFieldSymbol>> GetFieldsAsync(Document document, TextSpan span, CancellationToken cancellationToken); 46var fields = await GetFieldsAsync(document, span, cancellationToken).ConfigureAwait(false); 57public async Task<ImmutableArray<CodeAction>> GetEncapsulateFieldCodeActionsAsync(Document document, TextSpan span, CancellationToken cancellationToken) 59var fields = await GetFieldsAsync(document, span, cancellationToken).ConfigureAwait(false); 81private ImmutableArray<CodeAction> EncapsulateAllFields(Document document, ImmutableArray<IFieldSymbol> fields) 93private ImmutableArray<CodeAction> EncapsulateOneField(Document document, IFieldSymbol field) 95var fields = ImmutableArray.Create(field); 110Document document, ImmutableArray<IFieldSymbol> fields, 123var result = await client.TryInvokeAsync<IRemoteEncapsulateFieldService, ImmutableArray<(DocumentId, ImmutableArray<TextChange>)>>( 140private async Task<Solution> EncapsulateFieldsInCurrentProcessAsync(Document document, ImmutableArray<IFieldSymbol> fields, bool updateReferences, CancellationToken cancellationToken) 236var linkedDocumentIds = document.GetLinkedDocumentIds();
EncapsulateField\IEncapsulateFieldService.cs (2)
16Task<ImmutableArray<CodeAction>> GetEncapsulateFieldCodeActionsAsync(Document document, TextSpan span, CancellationToken cancellationToken); 18Task<Solution> EncapsulateFieldsAsync(Document document, ImmutableArray<IFieldSymbol> fields, bool updateReferences, CancellationToken cancellationToken);
EncapsulateField\IRemoteEncapsulateFieldService.cs (3)
16ValueTask<ImmutableArray<(DocumentId, ImmutableArray<TextChange>)>> EncapsulateFieldsAsync( 19ImmutableArray<string> fieldSymbolKeys,
ExternalAccess\Pythia\Api\PythiaCompletionProviderBase.cs (4)
26ImmutableArray<SymbolDisplayPart> description, 31ImmutableArray<string> tags = default, 45ImmutableArray<string> tags = default) 49public static ImmutableArray<SymbolDisplayPart> CreateRecommendedKeywordDisplayParts(string keyword, string toolTip)
ExternalAccess\Pythia\Api\PythiaSymbolSorting.cs (2)
13public static ImmutableArray<TSymbol> Sort<TSymbol>( 14ImmutableArray<TSymbol> symbols,
ExternalAccess\UnitTesting\API\IUnitTestingStackTraceServiceAccessor.cs (1)
14Task<ImmutableArray<UnitTestingParsedFrameWrapper>> TryParseAsync(string input, Workspace workspace, CancellationToken cancellationToken);
ExternalAccess\UnitTesting\API\UnitTestingHotReloadService.cs (22)
18private sealed class DebuggerService(ImmutableArray<string> capabilities) : IManagedHotReloadService 20private readonly ImmutableArray<string> _capabilities = capabilities; 22public ValueTask<ImmutableArray<ManagedActiveStatementDebugInfo>> GetActiveStatementsAsync(CancellationToken cancellationToken) 23=> ValueTaskFactory.FromResult(ImmutableArray<ManagedActiveStatementDebugInfo>.Empty); 28public ValueTask<ImmutableArray<string>> GetCapabilitiesAsync(CancellationToken cancellationToken) 37ImmutableArray<byte> ilDelta, 38ImmutableArray<byte> metadataDelta, 39ImmutableArray<byte> pdbDelta, 40ImmutableArray<int> updatedMethods, 41ImmutableArray<int> updatedTypes) 44public readonly ImmutableArray<byte> ILDelta = ilDelta; 45public readonly ImmutableArray<byte> MetadataDelta = metadataDelta; 46public readonly ImmutableArray<byte> PdbDelta = pdbDelta; 47public readonly ImmutableArray<int> UpdatedMethods = updatedMethods; 48public readonly ImmutableArray<int> UpdatedTypes = updatedTypes; 52(_, _, _) => ValueTaskFactory.FromResult(ImmutableArray<ActiveStatementSpan>.Empty); 54private static readonly ImmutableArray<Update> EmptyUpdate = []; 55private static readonly ImmutableArray<Diagnostic> EmptyDiagnostic = []; 66public async Task StartSessionAsync(Solution solution, ImmutableArray<string> capabilities, CancellationToken cancellationToken) 83/// where <paramref name="commitUpdates"/> was `true` or the one passed to <see cref="StartSessionAsync(Solution, ImmutableArray{string}, CancellationToken)"/> 92public async Task<(ImmutableArray<Update> updates, ImmutableArray<Diagnostic> diagnostics)> EmitSolutionUpdateAsync(Solution solution, bool commitUpdates, CancellationToken cancellationToken)
ExternalAccess\UnitTesting\API\UnitTestingSearchHelpers.cs (3)
48public static async Task<ImmutableArray<UnitTestingDocumentSpan>> GetSourceLocationsAsync( 58var locations = await client.TryInvokeAsync<IRemoteUnitTestingSearchService, ImmutableArray<UnitTestingSourceLocation>>( 152private static async Task<ImmutableArray<UnitTestingDocumentSpan>> GetSourceLocationsInProcessAsync(
ExternalAccess\UnitTesting\IRemoteUnitTestingSearchService.cs (1)
17ValueTask<ImmutableArray<UnitTestingSourceLocation>> GetSourceLocationsAsync(
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingSolutionCrawlerLogger.cs (2)
79public static void LogAnalyzers(int correlationId, string workspaceKind, ImmutableArray<IUnitTestingIncrementalAnalyzer> reordered, bool onlyHighPriorityAnalyzer) 96FunctionId analyzersId, FunctionId analyzerId, int correlationId, string workspaceKind, ImmutableArray<IUnitTestingIncrementalAnalyzer> reordered)
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingSolutionCrawlerRegistrationService.cs (5)
32private ImmutableDictionary<string, ImmutableArray<Lazy<IUnitTestingIncrementalAnalyzerProvider, UnitTestingIncrementalAnalyzerProviderMetadata>>> _analyzerProviders; 108var lazyProviders = _analyzerProviders[metadata.Name]; 175ImmutableArray<Lazy<IUnitTestingIncrementalAnalyzerProvider, UnitTestingIncrementalAnalyzerProviderMetadata>> lazyProviders, 213ImmutableDictionary<string, ImmutableArray<Lazy<IUnitTestingIncrementalAnalyzerProvider, UnitTestingIncrementalAnalyzerProviderMetadata>>> analyzerProviders) 256internal ref ImmutableDictionary<string, ImmutableArray<Lazy<IUnitTestingIncrementalAnalyzerProvider, UnitTestingIncrementalAnalyzerProviderMetadata>>> AnalyzerProviders
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.AbstractUnitTestingPriorityProcessor.cs (5)
26private Lazy<ImmutableArray<IUnitTestingIncrementalAnalyzer>> _lazyAnalyzers; 31Lazy<ImmutableArray<IUnitTestingIncrementalAnalyzer>> lazyAnalyzers, 42public ImmutableArray<IUnitTestingIncrementalAnalyzer> Analyzers 57var analyzers = _lazyAnalyzers.Value; 58_lazyAnalyzers = new Lazy<ImmutableArray<IUnitTestingIncrementalAnalyzer>>(() => analyzers.Add(analyzer));
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.cs (1)
497internal void WaitUntilCompletion(ImmutableArray<IUnitTestingIncrementalAnalyzer> workers)
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingIncrementalAnalyzerProcessor.cs (10)
57var lazyAllAnalyzers = new Lazy<ImmutableArray<IUnitTestingIncrementalAnalyzer>>(() => GetIncrementalAnalyzers(_registration, analyzersGetter, onlyHighPriorityAnalyzer: false)); 66private static ImmutableArray<IUnitTestingIncrementalAnalyzer> GetIncrementalAnalyzers(UnitTestingRegistration registration, UnitTestingAnalyzersGetter analyzersGetter, bool onlyHighPriorityAnalyzer) 97public ImmutableArray<IUnitTestingIncrementalAnalyzer> Analyzers => _normalPriorityProcessor.Analyzers; 120TextDocument textDocument, ImmutableArray<IUnitTestingIncrementalAnalyzer> analyzers, UnitTestingWorkItem workItem, CancellationToken cancellationToken) 148ImmutableArray<IUnitTestingIncrementalAnalyzer> analyzers, 181private async Task RunBodyAnalyzersAsync(ImmutableArray<IUnitTestingIncrementalAnalyzer> analyzers, UnitTestingWorkItem workItem, Document document, CancellationToken cancellationToken) 269internal void WaitUntilCompletion(ImmutableArray<IUnitTestingIncrementalAnalyzer> analyzers, List<UnitTestingWorkItem> items) 287private readonly Dictionary<(string workspaceKind, SolutionServices services), ImmutableArray<IUnitTestingIncrementalAnalyzer>> _analyzerMap = []; 289public ImmutableArray<IUnitTestingIncrementalAnalyzer> GetOrderedAnalyzers(string workspaceKind, SolutionServices services, bool onlyHighPriorityAnalyzer) 293if (!_analyzerMap.TryGetValue((workspaceKind, services), out var analyzers))
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingLowPriorityProcessor.cs (3)
31Lazy<ImmutableArray<IUnitTestingIncrementalAnalyzer>> lazyAnalyzers, 118private async Task ProcessProjectAsync(ImmutableArray<IUnitTestingIncrementalAnalyzer> analyzers, UnitTestingWorkItem workItem, CancellationToken cancellationToken) 195internal void WaitUntilCompletion(ImmutableArray<IUnitTestingIncrementalAnalyzer> analyzers, List<UnitTestingWorkItem> items)
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingNormalPriorityProcessor.cs (5)
46Lazy<ImmutableArray<IUnitTestingIncrementalAnalyzer>> lazyAnalyzers, 170private async Task ProcessDocumentAsync(ImmutableArray<IUnitTestingIncrementalAnalyzer> analyzers, UnitTestingWorkItem workItem, CancellationToken cancellationToken) 264var reanalyzers = workItem.SpecificAnalyzers.ToImmutableArray(); 292private static async Task RemoveDocumentAsync(ImmutableArray<IUnitTestingIncrementalAnalyzer> analyzers, DocumentId documentId, CancellationToken cancellationToken) 376internal void WaitUntilCompletion(ImmutableArray<IUnitTestingIncrementalAnalyzer> analyzers, List<UnitTestingWorkItem> items)
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingSemanticChangeProcessor.cs (1)
174private async Task EnqueueWorkItemAsync(Document thisDocument, ImmutableArray<Location> locations)
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingWorkItem.cs (1)
46public IEnumerable<IUnitTestingIncrementalAnalyzer> GetApplicableAnalyzers(ImmutableArray<IUnitTestingIncrementalAnalyzer> allAnalyzers)
ExternalAccess\UnitTesting\UnitTestingStackTraceServiceAccessor.cs (1)
33public async Task<ImmutableArray<UnitTestingParsedFrameWrapper>> TryParseAsync(string input, Workspace workspace, CancellationToken cancellationToken)
ExternalAccess\VSTypeScript\Api\IVSTypeScriptCommentSlectionServiceImplementation.cs (1)
19Task<Document> FormatAsync(Document document, ImmutableArray<TextSpan> changes, CancellationToken cancellationToken);
ExternalAccess\VSTypeScript\Api\IVSTypeScriptDiagnosticAnalyzerImplementation.cs (3)
13Task<ImmutableArray<Diagnostic>> AnalyzeProjectAsync(Project project, CancellationToken cancellationToken); 14Task<ImmutableArray<Diagnostic>> AnalyzeDocumentSyntaxAsync(Document document, CancellationToken cancellationToken); 15Task<ImmutableArray<Diagnostic>> AnalyzeDocumentSemanticsAsync(Document document, CancellationToken cancellationToken);
ExternalAccess\VSTypeScript\Api\IVSTypeScriptNavigableItem.cs (2)
17ImmutableArray<TaggedText> DisplayTaggedParts { get; } 35ImmutableArray<IVSTypeScriptNavigableItem> ChildItems { get; }
ExternalAccess\VSTypeScript\Api\IVSTypeScriptNavigateToSearchResult.cs (1)
17ImmutableArray<TextSpan> NameMatchSpans { get; }
ExternalAccess\VSTypeScript\Api\IVSTypeScriptNavigateToSearchService.cs (3)
16Task<ImmutableArray<IVSTypeScriptNavigateToSearchResult>> SearchProjectAsync(Project project, ImmutableArray<Document> priorityDocuments, string searchPattern, IImmutableSet<string> kinds, CancellationToken cancellationToken); 17Task<ImmutableArray<IVSTypeScriptNavigateToSearchResult>> SearchDocumentAsync(Document document, string searchPattern, IImmutableSet<string> kinds, CancellationToken cancellationToken);
ExternalAccess\VSTypeScript\Api\IVSTypeScriptTodoCommentDataServiceImplementation.cs (4)
30public static ImmutableArray<VSTypeScriptTaskListItemDescriptorWrapper> Parse(ImmutableArray<string> items) 36Task<ImmutableArray<VSTypeScriptTaskListItem>> GetTaskListItemsAsync( 37Document document, ImmutableArray<VSTypeScriptTaskListItemDescriptorWrapper> value, CancellationToken cancellationToken);
ExternalAccess\VSTypeScript\Api\VSTypeScriptDefinitionItemBase.cs (2)
14protected VSTypeScriptDefinitionItemBase(ImmutableArray<string> tags, ImmutableArray<TaggedText> displayParts)
ExternalAccess\VSTypeScript\Api\VSTypeScriptDiagnosticData.cs (1)
32public ImmutableArray<string> CustomTags
ExternalAccess\VSTypeScript\Api\VSTypeScriptDocumentHighlightsServiceBase.cs (2)
18protected abstract Task<ImmutableArray<DocumentHighlights>> GetDocumentHighlightsAsync( 21Task<ImmutableArray<DocumentHighlights>> IDocumentHighlightsService.GetDocumentHighlightsAsync(
ExternalAccess\VSTypeScript\VSTypeScriptDocumentDiagnosticAnalyzer.cs (3)
16public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => []; 18public override Task<ImmutableArray<Diagnostic>> AnalyzeSyntaxAsync(Document document, CancellationToken cancellationToken) 29public override Task<ImmutableArray<Diagnostic>> AnalyzeSemanticsAsync(Document document, CancellationToken cancellationToken)
ExternalAccess\VSTypeScript\VSTypeScriptNavigableItemWrapper.cs (2)
18public ImmutableArray<TaggedText> DisplayTaggedParts => _navigableItem.DisplayTaggedParts; 30public ImmutableArray<INavigableItem> ChildItems
ExternalAccess\VSTypeScript\VSTypeScriptNavigateToSearchService.cs (6)
38Func<ImmutableArray<INavigateToSearchResult>, Task> onResultsFound, 51ImmutableArray<Project> projects, 52ImmutableArray<Document> priorityDocuments, 56Func<ImmutableArray<INavigateToSearchResult>, Task> onResultsFound, 123public ImmutableArray<TextSpan> NameMatchSpans => _result.NameMatchSpans; 131public ImmutableArray<PatternMatch> Matches => NavigateToSearchResultHelpers.GetMatches(this);
ExternalAccess\VSTypeScript\VSTypeScriptProjectDiagnosticAnalyzer.cs (2)
16public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => []; 18public override Task<ImmutableArray<Diagnostic>> AnalyzeProjectAsync(Project project, CancellationToken cancellationToken)
ExternalAccess\VSTypeScript\VSTypeScriptTaskListService.cs (2)
24public async Task<ImmutableArray<TaskListItem>> GetTaskListItemsAsync(Document document, ImmutableArray<TaskListItemDescriptor> descriptors, CancellationToken cancellationToken)
ExtractClass\AbstractExtractClassRefactoringProvider.cs (1)
22protected abstract Task<ImmutableArray<SyntaxNode>> GetSelectedNodesAsync(CodeRefactoringContext context);
ExtractClass\ExtractClassOptions.cs (2)
15ImmutableArray<ExtractClassMemberAnalysisResult> memberAnalysisResults) 20public ImmutableArray<ExtractClassMemberAnalysisResult> MemberAnalysisResults { get; } = memberAnalysisResults;
ExtractClass\ExtractClassWithDialogCodeAction.cs (4)
32ImmutableArray<ISymbol> selectedMembers, 36private readonly ImmutableArray<ISymbol> _selectedMembers = selectedMembers; 141ImmutableArray<ExtractClassMemberAnalysisResult> memberAnalysisResults, 225ImmutableArray<ExtractClassMemberAnalysisResult> memberAnalysisResults,
ExtractClass\IExtractClassOptionsService.cs (1)
17ImmutableArray<ISymbol> selectedMembers,
ExtractInterface\AbstractExtractInterfaceService.cs (3)
50public async Task<ImmutableArray<ExtractInterfaceCodeAction>> GetExtractInterfaceCodeActionAsync(Document document, TextSpan span, CancellationToken cancellationToken) 316ImmutableArray<DocumentId> documentIds, 371private static ImmutableArray<ISymbol> CreateInterfaceMembers(IEnumerable<ISymbol> includedMembers)
ExtractInterface\ExtractInterfaceOptionsResult.cs (2)
22public ImmutableArray<ISymbol> IncludedMembers { get; } 27public ExtractInterfaceOptionsResult(bool isCancelled, ImmutableArray<ISymbol> includedMembers, string interfaceName, string fileName, ExtractLocation location)
ExtractMethod\ExtractMethodResult.cs (2)
23public ImmutableArray<string> Reasons { get; } 29ImmutableArray<string> reasons,
ExtractMethod\MethodExtractor.Analyzer.cs (16)
157var typeParametersInConstraintList = GetMethodTypeParametersInConstraintList(model, variableInfoMap, symbolMap, sortedMap); 158var typeParametersInDeclaration = GetMethodTypeParametersInDeclaration(returnType, sortedMap); 259private (ImmutableArray<VariableInfo> parameters, ITypeSymbol returnType, bool returnsByRef, ImmutableArray<VariableInfo> variablesToUseAsReturnValue, bool unsafeAddressTakenUsed) 270var parameters = GetMethodParameters(variableInfoMap); 280var parameters = MarkVariableInfosToUseAsReturnValueIfPossible(GetMethodParameters(variableInfoMap)); 289ITypeSymbol GetReturnType(ImmutableArray<VariableInfo> variablesToUseAsReturnValue) 412private ImmutableArray<VariableInfo> MarkVariableInfosToUseAsReturnValueIfPossible(ImmutableArray<VariableInfo> variableInfo) 445ImmutableArray<VariableInfo> variableInfo, 495private static ImmutableArray<VariableInfo> GetMethodParameters(Dictionary<ISymbol, VariableInfo> variableInfoMap) 619PooledDisposer<PooledHashSet<ISymbol>> GetPooledSymbolSet(ImmutableArray<ISymbol> symbols, out PooledHashSet<ISymbol> symbolSet) 863var constraintTypes = typeParameter.ConstraintTypes; 898private ImmutableArray<ITypeParameterSymbol> GetMethodTypeParametersInConstraintList( 922var constraintTypes = typeParameter.ConstraintTypes; 992private static ImmutableArray<ITypeParameterSymbol> GetMethodTypeParametersInDeclaration(ITypeSymbol returnType, SortedDictionary<int, ITypeParameterSymbol> sortedMap)
ExtractMethod\MethodExtractor.AnalyzerResult.cs (9)
20ImmutableArray<ITypeParameterSymbol> typeParametersInDeclaration, 21ImmutableArray<ITypeParameterSymbol> typeParametersInConstraintList, 22ImmutableArray<VariableInfo> variables, 23ImmutableArray<VariableInfo> variablesToUseAsReturnValue, 32public ImmutableArray<ITypeParameterSymbol> MethodTypeParametersInDeclaration { get; } = typeParametersInDeclaration; 33public ImmutableArray<ITypeParameterSymbol> MethodTypeParametersInConstraintList { get; } = typeParametersInConstraintList; 34public ImmutableArray<VariableInfo> VariablesToUseAsReturnValue { get; } = variablesToUseAsReturnValue; 64public ImmutableArray<VariableInfo> Variables { get; } = variables; 82public ImmutableArray<VariableInfo> GetVariablesToSplitOrMoveIntoMethodDefinition(CancellationToken cancellationToken)
ExtractMethod\MethodExtractor.CodeGenerator.cs (17)
31public abstract OperationStatus<ImmutableArray<SyntaxNode>> GetNewMethodStatements( 93protected abstract TStatementSyntax CreateDeclarationStatement(ImmutableArray<VariableInfo> variables, TExpressionSyntax initialValue, CancellationToken cancellationToken); 94protected abstract TStatementSyntax CreateAssignmentExpressionStatement(ImmutableArray<VariableInfo> variables, TExpressionSyntax rvalue); 97protected abstract ImmutableArray<TStatementSyntax> GetInitialStatementsForMethodDefinitions(); 221protected ImmutableArray<TStatementSyntax> AddReturnIfUnreachable(ImmutableArray<TStatementSyntax> statements) 243protected async Task<ImmutableArray<TStatementSyntax>> AddInvocationAtCallSiteAsync( 244ImmutableArray<TStatementSyntax> statements, CancellationToken cancellationToken) 256protected ImmutableArray<TStatementSyntax> AddAssignmentStatementToCallSite( 257ImmutableArray<TStatementSyntax> statements, 277protected ImmutableArray<TStatementSyntax> CreateDeclarationStatements( 278ImmutableArray<VariableInfo> variables, CancellationToken cancellationToken) 283protected ImmutableArray<TStatementSyntax> AddSplitOrMoveDeclarationOutStatementsToCallSite( 300protected ImmutableArray<TStatementSyntax> AppendReturnStatementIfNeeded(ImmutableArray<TStatementSyntax> statements) 325protected ImmutableArray<ITypeParameterSymbol> CreateMethodTypeParameters() 350protected ImmutableArray<IParameterSymbol> CreateMethodParameters()
ExtractMethod\MethodExtractor.cs (1)
201private ImmutableArray<AbstractFormattingRule> GetFormattingRules(Document document)
ExtractMethod\MethodExtractor.VariableSymbol.cs (2)
166var leftLocations = left.Locations; 167var rightLocations = right.Locations;
ExtractMethod\OperationStatus.cs (2)
20private OperationStatus(bool succeeded, ImmutableArray<string> reasons) 51public ImmutableArray<string> Reasons { get; }
FindUsages\AbstractFindUsagesService.DefinitionTrackingContext.cs (1)
55public ImmutableArray<DefinitionItem> GetDefinitions()
FindUsages\AbstractFindUsagesService.ProgressAdapter.cs (1)
117ImmutableArray<(SymbolGroup group, ISymbol symbol, ReferenceLocation location)> references, CancellationToken cancellationToken)
FindUsages\AbstractFindUsagesService_FindImplementations.cs (6)
77var implementations = await FindSourceImplementationsAsync(solution, symbol, cancellationToken).ConfigureAwait(false); 94private static async Task<ImmutableArray<ISymbol>> FindSourceImplementationsAsync( 141private static async Task<ImmutableArray<ISymbol>> FindImplementationsWorkerAsync( 144var implementations = await FindSourceAndMetadataImplementationsAsync(solution, symbol, cancellationToken).ConfigureAwait(false); 169private static async Task<ImmutableArray<ISymbol>> FindSourceAndMetadataImplementationsAsync( 200return ImmutableArray<ISymbol>.CastUp(await SymbolFinder.FindDerivedClassesArrayAsync(
FindUsages\AbstractFindUsagesService_FindReferences.cs (2)
65private static async Task<ImmutableArray<DefinitionItem>> GetThirdPartyDefinitionsAsync( 67ImmutableArray<DefinitionItem> definitions,
FindUsages\DefinitionItem.cs (46)
60public ImmutableArray<string> Tags { get; } 72public ImmutableArray<(string key, string value)> DisplayableProperties { get; } 78public ImmutableArray<TaggedText> NameDisplayParts { get; } 84public ImmutableArray<TaggedText> DisplayParts { get; } 90public ImmutableArray<DocumentSpan> SourceSpans { get; } 95public ImmutableArray<ClassifiedSpansAndHighlightSpan?> ClassifiedSpans { get; } 100public ImmutableArray<AssemblyLocation> MetadataLocations { get; } 117ImmutableArray<string> tags, 118ImmutableArray<TaggedText> displayParts, 119ImmutableArray<TaggedText> nameDisplayParts, 120ImmutableArray<DocumentSpan> sourceSpans, 121ImmutableArray<ClassifiedSpansAndHighlightSpan?> classifiedSpans, 122ImmutableArray<AssemblyLocation> metadataLocations, 124ImmutableArray<(string key, string value)> displayableProperties, 163ImmutableArray<string> tags, 164ImmutableArray<TaggedText> displayParts, 166ImmutableArray<TaggedText> nameDisplayParts = default, 178ImmutableArray<string> tags, 179ImmutableArray<TaggedText> displayParts, 182ImmutableArray<TaggedText> nameDisplayParts = default, 195ImmutableArray<string> tags, 196ImmutableArray<TaggedText> displayParts, 197ImmutableArray<DocumentSpan> sourceSpans, 198ImmutableArray<ClassifiedSpansAndHighlightSpan?> classifiedSpans, 199ImmutableArray<TaggedText> nameDisplayParts, 203tags, displayParts, sourceSpans, classifiedSpans, ImmutableArray<AssemblyLocation>.Empty, nameDisplayParts, 209ImmutableArray<string> tags, 210ImmutableArray<TaggedText> displayParts, 211ImmutableArray<DocumentSpan> sourceSpans, 212ImmutableArray<ClassifiedSpansAndHighlightSpan?> classifiedSpans, 213ImmutableArray<TaggedText> nameDisplayParts = default, 219ImmutableArray<AssemblyLocation>.Empty, nameDisplayParts, displayIfNoReferences: displayIfNoReferences); 223ImmutableArray<string> tags, 224ImmutableArray<TaggedText> displayParts, 225ImmutableArray<DocumentSpan> sourceSpans, 226ImmutableArray<ClassifiedSpansAndHighlightSpan?> classifiedSpans, 227ImmutableArray<AssemblyLocation> metadataLocations, 228ImmutableArray<TaggedText> nameDisplayParts = default, 230ImmutableArray<(string key, string value)> displayableProperties = default, 244ImmutableArray<string> tags, 245ImmutableArray<TaggedText> displayParts, 246ImmutableArray<TaggedText> originationParts, 255ImmutableArray<string> tags, 256ImmutableArray<TaggedText> displayParts, 257ImmutableArray<TaggedText> nameDisplayParts = default, 258ImmutableArray<AssemblyLocation> metadataLocations = default,
FindUsages\DefinitionItem.DefaultDefinitionItem.cs (7)
24ImmutableArray<string> tags, 25ImmutableArray<TaggedText> displayParts, 26ImmutableArray<TaggedText> nameDisplayParts, 27ImmutableArray<DocumentSpan> sourceSpans, 28ImmutableArray<ClassifiedSpansAndHighlightSpan?> classifiedSpans, 29ImmutableArray<AssemblyLocation> metadataLocations, 31ImmutableArray<(string key, string value)> displayableProperties,
FindUsages\DefinitionItem.DetachedDefinitionItem.cs (12)
20ImmutableArray<string> tags, 21ImmutableArray<TaggedText> displayParts, 22ImmutableArray<TaggedText> nameDisplayParts, 23ImmutableArray<DocumentIdSpan> sourceSpans, 24ImmutableArray<AssemblyLocation> metadataLocations, 26ImmutableArray<(string key, string value)> displayableProperties, 30public readonly ImmutableArray<string> Tags = tags; 32public readonly ImmutableArray<TaggedText> DisplayParts = displayParts; 34public readonly ImmutableArray<TaggedText> NameDisplayParts = nameDisplayParts; 36public readonly ImmutableArray<DocumentIdSpan> SourceSpans = sourceSpans; 38public readonly ImmutableArray<AssemblyLocation> MetadataLocations = metadataLocations; 42public readonly ImmutableArray<(string key, string value)> DisplayableProperties = displayableProperties;
FindUsages\DefinitionItemFactory.cs (18)
43ImmutableArray<Location> locations, 49var sourceLocations = GetSourceLocations(definition, locations, solution, includeHiddenLocations); 69var sourceLocations = GetSourceLocations(definition, definition.Locations, solution, includeHiddenLocations); 70var classifiedSpans = await ClassifyDocumentSpansAsync(classificationOptions, sourceLocations, cancellationToken).ConfigureAwait(false); 87var sourceLocations = GetSourceLocations(definition, locations, solution, includeHiddenLocations); 88var classifiedSpans = await ClassifyDocumentSpansAsync(classificationOptions, sourceLocations, cancellationToken).ConfigureAwait(false); 94ImmutableArray<DocumentSpan> sourceLocations, 95ImmutableArray<ClassifiedSpansAndHighlightSpan?> classifiedSpans, 113var displayParts = GetDisplayParts(definition); 114var nameDisplayParts = definition.ToDisplayParts(s_namePartsFormat).ToTaggedText(); 116var tags = GlyphTags.GetTags(definition.GetGlyph()); 122var metadataLocations = GetMetadataLocations(definition, solution, out var originatingProjectId); 140var displayableProperties = AbstractReferenceFinder.GetAdditionalFindUsagesProperties(definition); 163internal static ImmutableArray<AssemblyLocation> GetMetadataLocations(ISymbol definition, Solution solution, out ProjectId? originatingProjectId) 223private static ImmutableArray<DocumentSpan> GetSourceLocations(ISymbol definition, ImmutableArray<Location> locations, Solution solution, bool includeHiddenLocations) 247private static ValueTask<ImmutableArray<ClassifiedSpansAndHighlightSpan?>> ClassifyDocumentSpansAsync(OptionsProvider<ClassificationOptions> optionsProvider, ImmutableArray<DocumentSpan> unclassifiedSpans, CancellationToken cancellationToken)
FindUsages\DefinitionsAndReferences.cs (4)
26public ImmutableArray<DefinitionItem> Definitions { get; } 32public ImmutableArray<SourceReferenceItem> References { get; } 35ImmutableArray<DefinitionItem> definitions, 36ImmutableArray<SourceReferenceItem> references)
FindUsages\FindUsagesHelpers.cs (1)
82public static ImmutableArray<TaggedText> GetDisplayParts(ISymbol definition)
FindUsages\IRemoteFindUsagesService.cs (18)
34ValueTask OnReferencesFoundAsync(RemoteServiceCallbackId callbackId, ImmutableArray<SerializableSourceReferenceItem> references, CancellationToken cancellationToken); 75public ValueTask OnReferencesFoundAsync(RemoteServiceCallbackId callbackId, ImmutableArray<SerializableSourceReferenceItem> references, CancellationToken cancellationToken) 133public async ValueTask OnReferencesFoundAsync(ImmutableArray<SerializableSourceReferenceItem> references, CancellationToken cancellationToken) 145ImmutableArray<SerializableSourceReferenceItem> references, [EnumeratorCancellation] CancellationToken cancellationToken) 186ImmutableArray<string> tags, 187ImmutableArray<TaggedText> displayParts, 188ImmutableArray<TaggedText> nameDisplayParts, 189ImmutableArray<SerializableDocumentSpan> sourceSpans, 190ImmutableArray<AssemblyLocation> metadataLocations, 192ImmutableArray<(string key, string value)> displayableProperties, 199public readonly ImmutableArray<string> Tags = tags; 202public readonly ImmutableArray<TaggedText> DisplayParts = displayParts; 205public readonly ImmutableArray<TaggedText> NameDisplayParts = nameDisplayParts; 208public readonly ImmutableArray<SerializableDocumentSpan> SourceSpans = sourceSpans; 211public readonly ImmutableArray<AssemblyLocation> MetadataLocations = metadataLocations; 217public readonly ImmutableArray<(string key, string value)> DisplayableProperties = displayableProperties; 281ImmutableArray<(string key, string value)> additionalProperties) 296public readonly ImmutableArray<(string key, string value)> AdditionalProperties = additionalProperties;
FindUsages\SourceReferenceItem.cs (3)
49public ImmutableArray<(string key, string value)> AdditionalProperties { get; } 56ImmutableArray<(string key, string value)> additionalProperties, 79internal SourceReferenceItem(DefinitionItem definition, DocumentSpan sourceSpan, ClassifiedSpansAndHighlightSpan? classifiedSpans, SymbolUsageInfo symbolUsageInfo, ImmutableArray<(string key, string value)> additionalProperties)
Formatting\FormattingRuleUtilities.cs (1)
13public static ImmutableArray<AbstractFormattingRule> GetFormattingRules(
FullyQualify\AbstractFullyQualifyService.cs (10)
90var matchingTypeSearchResults = GetTypeSearchResults(semanticModel, simpleName, options.HideAdvancedMembers, matchingTypes.Concat(matchingAttributeTypes)); 91var matchingNamespaceSearchResults = GetNamespaceSearchResults(semanticModel, simpleName, matchingNamespaces); 98var proposedContainers = matchingTypeContainers 113async Task<ImmutableArray<ISymbol>> FindAsync(string name, bool ignoreCase, SymbolFilter filter) 120ImmutableArray<SymbolResult> GetTypeSearchResults( 124ImmutableArray<ISymbol> matchingTypes) 153ImmutableArray<SymbolResult> GetNamespaceSearchResults( 156ImmutableArray<ISymbol> symbols) 189ImmutableArray<SymbolResult> proposedContainers, 294ImmutableArray<SymbolResult> symbols, Compilation compilation)
FullyQualify\IFullyQualifyService.cs (4)
15internal readonly struct FullyQualifyFixData(string name, ImmutableArray<FullyQualifyIndividualFixData> individualFixData) 21public readonly ImmutableArray<FullyQualifyIndividualFixData> IndividualFixData = individualFixData; 25internal readonly struct FullyQualifyIndividualFixData(string title, ImmutableArray<TextChange> textChanges) 30public readonly ImmutableArray<TextChange> TextChanges = textChanges;
GenerateComparisonOperators\GenerateComparisonOperatorsCodeRefactoringProvider.cs (3)
29private static readonly ImmutableArray<CodeGenerationOperatorKind> s_operatorKinds = 147var operators = GenerateComparisonOperators( 174private static ImmutableArray<IMethodSymbol> GenerateComparisonOperators(
GenerateConstructors\AbstractGenerateConstructorsCodeRefactoringProvider.cs (7)
76public async Task<ImmutableArray<IntentProcessorResult>> ComputeIntentAsync( 111var operations = await GetCodeActionOperationsAsync( 126static async Task<ImmutableArray<CodeActionOperation>> GetCodeActionOperationsAsync( 154Action<ImmutableArray<CodeAction>> registerMultipleActions, 166var actions = await GenerateConstructorFromMembersAsync( 264public async Task<ImmutableArray<CodeAction>> GenerateConstructorFromMembersAsync( 281private ImmutableArray<CodeAction> GetCodeActions(Document document, State state, bool addNullChecks)
GenerateConstructors\AbstractGenerateConstructorsCodeRefactoringProvider.GenerateConstructorWithDialogCodeAction.cs (4)
30ImmutableArray<ISymbol> viableMembers, 31ImmutableArray<PickMembersOption> pickMembersOptions) : CodeActionWithOptions 39internal ImmutableArray<ISymbol> ViableMembers { get; } = viableMembers; 40internal ImmutableArray<PickMembersOption> PickMembersOptions { get; } = pickMembersOptions;
GenerateConstructors\AbstractGenerateConstructorsCodeRefactoringProvider.State.cs (9)
30public ImmutableArray<ISymbol> SelectedMembers { get; private set; } 31public ImmutableArray<IParameterSymbol> Parameters { get; private set; } 42ImmutableArray<ISymbol> selectedMembers, 58ImmutableArray<ISymbol> selectedMembers, 61var mappedMembers = selectedMembers.Select(m => TryMapToWritableInstanceFieldOrProperty(service, m, cancellationToken)).Distinct().ToImmutableArray(); 75var rules = await document.GetNamingRulesAsync(cancellationToken).ConfigureAwait(false); 101ImmutableArray<IParameterSymbol> parameters) 116private static IMethodSymbol? GetMatchingConstructorBasedOnParameterTypes(INamedTypeSymbol containingType, ImmutableArray<IParameterSymbol> parameters) 119private static bool MatchesConstructorBasedOnParameterTypes(IMethodSymbol constructor, ImmutableArray<IParameterSymbol> parameters)
GenerateEqualsAndGetHashCodeFromMembers\AbstractGenerateEqualsAndGetHashCodeService.cs (10)
25ImmutableArray<SyntaxNode> statements, out ImmutableArray<SyntaxNode> wrappedStatements); 39Document document, INamedTypeSymbol namedType, ImmutableArray<ISymbol> members, 52ImmutableArray<ISymbol> members, INamedTypeSymbol constructedEquatableType, CancellationToken cancellationToken) 119ImmutableArray<ISymbol> members, CancellationToken cancellationToken) 129INamedTypeSymbol namedType, ImmutableArray<ISymbol> members) 131var statements = CreateGetHashCodeStatements( 147private ImmutableArray<SyntaxNode> CreateGetHashCodeStatements( 149INamedTypeSymbol namedType, ImmutableArray<ISymbol> members) 177if (TryWrapWithUnchecked(statements, out var wrappedStatements))
GenerateEqualsAndGetHashCodeFromMembers\GenerateEqualsAndGetHashCodeAction.cs (5)
25ImmutableArray<ISymbol> selectedMembers, 43private readonly ImmutableArray<ISymbol> _selectedMembers = selectedMembers; 133var parameters = ImmutableArray.Create( 145ImmutableArray<IParameterSymbol> parameters) 170private static IMethodSymbol CreateInequalityOperator(Compilation compilation, SyntaxGenerator generator, ImmutableArray<IParameterSymbol> parameters)
GenerateEqualsAndGetHashCodeFromMembers\GenerateEqualsAndGetHashCodeFromMembersCodeRefactoringProvider.cs (6)
169public async Task<ImmutableArray<CodeAction>> GenerateEqualsAndGetHashCodeFromMembersAsync( 200private async Task<ImmutableArray<CodeAction>> CreateActionsAsync( 201Document document, SyntaxNode typeDeclaration, INamedTypeSymbol containingType, ImmutableArray<ISymbol> selectedMembers, 241Document document, SyntaxNode typeDeclaration, INamedTypeSymbol containingType, ImmutableArray<ISymbol> members, 258Document document, SyntaxNode typeDeclaration, INamedTypeSymbol containingType, ImmutableArray<ISymbol> members, 295Document document, SyntaxNode typeDeclaration, INamedTypeSymbol containingType, ImmutableArray<ISymbol> members,
GenerateEqualsAndGetHashCodeFromMembers\GenerateEqualsAndHashWithDialogCodeAction.cs (4)
26ImmutableArray<ISymbol> viableMembers, 27ImmutableArray<PickMembersOption> pickMembersOptions, 38private readonly ImmutableArray<ISymbol> _viableMembers = viableMembers; 39private readonly ImmutableArray<PickMembersOption> _pickMembersOptions = pickMembersOptions;
GenerateEqualsAndGetHashCodeFromMembers\IGenerateEqualsAndGetHashCodeService.cs (3)
29Task<IMethodSymbol> GenerateEqualsMethodAsync(Document document, INamedTypeSymbol namedType, ImmutableArray<ISymbol> members, string? localNameOpt, CancellationToken cancellationToken); 41Task<IMethodSymbol> GenerateIEquatableEqualsMethodAsync(Document document, INamedTypeSymbol namedType, ImmutableArray<ISymbol> members, INamedTypeSymbol constructedEquatableType, CancellationToken cancellationToken); 50Task<IMethodSymbol> GenerateGetHashCodeMethodAsync(Document document, INamedTypeSymbol namedType, ImmutableArray<ISymbol> members, CancellationToken cancellationToken);
GenerateEqualsAndGetHashCodeFromMembers\IGenerateEqualsAndGetHashCodeServiceExtensions.cs (1)
15ImmutableArray<ISymbol> members, CancellationToken cancellationToken)
GenerateFromMembers\GenerateFromMembersHelpers.cs (3)
85public static ImmutableArray<IParameterSymbol> DetermineParameters( 86ImmutableArray<ISymbol> selectedMembers, ImmutableArray<NamingRule> rules)
GenerateFromMembers\SelectedMemberInfo.cs (4)
12ImmutableArray<SyntaxNode> selectedDeclarations, 13ImmutableArray<ISymbol> selectedMembers) 16public readonly ImmutableArray<SyntaxNode> SelectedDeclarations = selectedDeclarations; 17public readonly ImmutableArray<ISymbol> SelectedMembers = selectedMembers;
GenerateOverrides\GenerateOverridesWithDialogCodeAction.cs (2)
28ImmutableArray<ISymbol> viableMembers) : CodeActionWithOptions 33private readonly ImmutableArray<ISymbol> _viableMembers = viableMembers;
GenerateType\AbstractGenerateTypeService.CodeAction.cs (1)
65protected override async Task<ImmutableArray<CodeActionOperation>> ComputeOperationsAsync(
GenerateType\AbstractGenerateTypeService.cs (6)
41protected abstract ImmutableArray<ITypeParameterSymbol> GetTypeParameters(State state, SemanticModel semanticModel, CancellationToken cancellationToken); 67public async Task<ImmutableArray<CodeAction>> GenerateTypeAsync( 79var actions = GetActions(semanticDocument, node, state, cancellationToken); 99private ImmutableArray<CodeAction> GetActions( 181protected static ImmutableArray<ITypeParameterSymbol> GetTypeParameters( 265var availableInnerTypeParameters = GetTypeParameters(state, semanticModel, cancellationToken);
GenerateType\AbstractGenerateTypeService.Editor.cs (8)
87public async Task<ImmutableArray<CodeActionOperation>> GetOperationsAsync() 261private async Task<ImmutableArray<CodeActionOperation>> GetGenerateInNewFileOperationsAsync( 337private async Task<ImmutableArray<CodeActionOperation>> CreateAddDocumentAndUpdateUsingsOrImportsOperationsAsync( 386private async Task<ImmutableArray<CodeActionOperation>> GetGenerateIntoContainingNamespaceOperationsAsync(INamedTypeSymbol namedType) 403private async Task<ImmutableArray<CodeActionOperation>> GetGenerateIntoExistingDocumentAsync( 548private async Task<ImmutableArray<CodeActionOperation>> GetGenerateIntoTypeOperationsAsync(INamedTypeSymbol namedType) 563private ImmutableArray<ITypeSymbol> GetArgumentTypes(IList<TArgumentSyntax> argumentList) 569private ImmutableArray<TExpressionSyntax> GetArgumentExpressions(IList<TArgumentSyntax> argumentList)
GenerateType\AbstractGenerateTypeService.GenerateNamedType.cs (10)
83private ImmutableArray<ITypeParameterSymbol> DetermineTypeParametersWithDelegateChecks() 94private ImmutableArray<IParameterSymbol> DetermineParameters() 104private async Task<ImmutableArray<ISymbol>> DetermineMembersAsync(GenerateTypeOptionsResult options = null) 123var parameterTypes = GetArgumentTypes(argumentList); 154var expressions = GetArgumentExpressions(argumentList); 191var parameterTypes = GetArgumentTypes(argumentList); 254private ImmutableArray<AttributeData> DetermineAttributes() 285private ImmutableArray<INamedTypeSymbol> DetermineInterfaces() 308private ImmutableArray<ITypeParameterSymbol> DetermineTypeParameters() 322var availableInnerTypeParameters = _service.GetTypeParameters(_state, _semanticDocument.SemanticModel, _cancellationToken);
GenerateType\IGenerateTypeService.cs (1)
16Task<ImmutableArray<CodeAction>> GenerateTypeAsync(Document document, SyntaxNode node, CancellationToken cancellationToken);
GoToBase\AbstractGoToBaseService.cs (1)
44var bases = FindBaseHelpers.FindBases(symbol, solution, cancellationToken);
GoToBase\FindBaseHelpers.cs (2)
15public static ImmutableArray<ISymbol> FindBases( 23var result = BaseTypeFinder.FindBaseTypesAndInterfaces(namedTypeSymbol).CastArray<ISymbol>();
GoToDefinition\GoToDefinitionFeatureHelpers.cs (1)
55public static async Task<ImmutableArray<DefinitionItem>> GetDefinitionsAsync(
InheritanceMargin\AbstractInheritanceMarginService.cs (3)
19protected abstract ImmutableArray<SyntaxNode> GetMembers(IEnumerable<SyntaxNode> nodesToSearch); 29public async ValueTask<ImmutableArray<InheritanceMarginItem>> GetInheritanceMemberItemsAsync( 44var result = await remoteClient.TryInvokeAsync<IRemoteInheritanceMarginService, ImmutableArray<InheritanceMarginItem>>(
InheritanceMargin\AbstractInheritanceMarginService_Helpers.cs (37)
25using SymbolAndLineNumberArray = ImmutableArray<(ISymbol symbol, int lineNumber)>; 43private static async ValueTask<ImmutableArray<InheritanceMarginItem>> GetSymbolInheritanceChainItemsAsync( 46SymbolAndLineNumberArray symbolAndLineNumbers, 76private async ValueTask<(Project remapped, SymbolAndLineNumberArray symbolAndLineNumbers)> GetMemberSymbolsAsync( 82var allDeclarationNodes = GetMembers(root.DescendantNodes(spanToSearch)); 122return (document.Project, SymbolAndLineNumberArray.Empty); 125private async Task<ImmutableArray<InheritanceMarginItem>> GetInheritanceMarginItemsInProcessAsync( 157private async Task<ImmutableArray<InheritanceMarginItem>> GetGlobalImportsItemsAsync( 289var allBaseSymbols = BaseTypeFinder.FindBaseTypesAndInterfaces(memberSymbol); 303var allDerivedSymbols = await GetDerivedTypesAndImplementationsAsync( 351var allImplementingSymbols = await GetImplementingSymbolsForTypeMemberAsync(solution, memberSymbol, cancellationToken).ConfigureAwait(false); 375var overriddenSymbols = GetOverriddenSymbols(memberSymbol, allowLooseMatch: true); 378var implementedSymbols = GetImplementedSymbolsForTypeMember(memberSymbol, overriddenSymbols); 403ImmutableArray<ISymbol> baseSymbols, 404ImmutableArray<ISymbol> derivedTypesSymbols, 425var nonNullBaseSymbolItems = GetNonNullTargetItems(baseSymbolItems); 426var nonNullDerivedTypeItems = GetNonNullTargetItems(derivedTypeItems); 440ImmutableArray<ISymbol> implementingMembers, 452var nonNullImplementedMemberItems = GetNonNullTargetItems(implementedMemberItems); 465ImmutableArray<ISymbol> baseSymbols, 466ImmutableArray<ISymbol> derivedTypesSymbols, 489var nonNullBaseSymbolItems = GetNonNullTargetItems(baseSymbolItems); 490var nonNullDerivedTypeItems = GetNonNullTargetItems(derivedTypeItems); 504ImmutableArray<ISymbol> implementedMembers, 505ImmutableArray<ISymbol> overridingMembers, 506ImmutableArray<ISymbol> overriddenMembers, 536var nonNullImplementedMemberItems = GetNonNullTargetItems(implementedMemberItems); 537var nonNullOverriddenMemberItems = GetNonNullTargetItems(overriddenMemberItems); 538var nonNullOverridingMemberItems = GetNonNullTargetItems(overridingMemberItems); 584private static ImmutableArray<ISymbol> GetImplementedSymbolsForTypeMember( 586ImmutableArray<ISymbol> overriddenSymbols) 616private static async Task<ImmutableArray<ISymbol>> GetImplementingSymbolsForTypeMemberAsync( 651private static ImmutableArray<ISymbol> GetOverriddenSymbols(ISymbol memberSymbol, bool allowLooseMatch) 670private static async Task<ImmutableArray<INamedTypeSymbol>> GetDerivedTypesAndImplementationsAsync( 708var locations = symbol.Locations; 748private static ImmutableArray<InheritanceTargetItem> GetNonNullTargetItems(ImmutableArray<InheritanceTargetItem?> inheritanceTargetItems)
InheritanceMargin\IInheritanceMarginService.cs (1)
20ValueTask<ImmutableArray<InheritanceMarginItem>> GetInheritanceMemberItemsAsync(
InheritanceMargin\InheritanceMarginItem.cs (8)
17ImmutableArray<TaggedText> displayTexts, 19ImmutableArray<InheritanceTargetItem> targetItems) : IEquatable<InheritanceMarginItem> 38public readonly ImmutableArray<TaggedText> DisplayTexts = displayTexts; 50public readonly ImmutableArray<InheritanceTargetItem> TargetItems = targetItems; 71ImmutableArray<TaggedText> displayTexts, 73ImmutableArray<InheritanceTargetItem> targetItems) 76public static ImmutableArray<InheritanceTargetItem> Order(ImmutableArray<InheritanceTargetItem> targetItems)
InheritanceMargin\IRemoteInheritanceMarginService.cs (1)
14ValueTask<ImmutableArray<InheritanceMarginItem>> GetInheritanceMarginItemsAsync(
InitializeParameter\AbstractAddParameterCheckCodeRefactoringProvider.cs (3)
51protected override async Task<ImmutableArray<CodeAction>> GetRefactoringsForAllParametersAsync( 56ImmutableArray<SyntaxNode> listOfParameterNodes, 82protected override async Task<ImmutableArray<CodeAction>> GetRefactoringsForSingleParameterAsync(
InitializeParameter\AbstractInitializeMemberFromParameterCodeRefactoringProviderMemberCreation.cs (20)
49protected sealed override Task<ImmutableArray<CodeAction>> GetRefactoringsForAllParametersAsync( 51ImmutableArray<SyntaxNode> listOfParameterNodes, TextSpan parameterSpan, 57protected sealed override async Task<ImmutableArray<CodeAction>> GetRefactoringsForSingleParameterAsync( 83var rules = await document.GetNamingRulesAsync(cancellationToken).ConfigureAwait(false); 102private async Task<ImmutableArray<CodeAction>> HandleNoExistingFieldOrPropertyAsync( 108ImmutableArray<NamingRule> rules, 159ImmutableArray<NamingRule> rules, 165var parameters = GetParametersWithoutAssociatedMembers(blockStatement, rules, method); 192ImmutableArray<NamingRule> rules, 213private static ImmutableArray<IParameterSymbol> GetParametersWithoutAssociatedMembers( 215ImmutableArray<NamingRule> rules, 236private ImmutableArray<CodeAction> HandleExistingFieldOrProperty( 276ImmutableArray<NamingRule> rules) 278var parameterNameParts = IdentifierNameParts.CreateIdentifierNameParts(parameter, rules).BaseNameParts; 312ImmutableArray<NamingRule> rules) 314var parameterNameParts = IdentifierNameParts.CreateIdentifierNameParts(parameter, rules).BaseNameParts; 360ImmutableArray<IParameterSymbol> parameters, 361ImmutableArray<ISymbol> fieldsOrProperties, 615Document document, IParameterSymbol parameter, IBlockOperation? blockStatement, ImmutableArray<NamingRule> rules, ImmutableArray<string> parameterWords, CancellationToken cancellationToken)
InitializeParameter\AbstractInitializeParameterCodeRefactoringProvider.cs (3)
36protected abstract Task<ImmutableArray<CodeAction>> GetRefactoringsForAllParametersAsync( 41ImmutableArray<SyntaxNode> listOfParameterNodes, 45protected abstract Task<ImmutableArray<CodeAction>> GetRefactoringsForSingleParameterAsync(
InlineHints\AbstractInlineHintsService.cs (1)
16public async Task<ImmutableArray<InlineHint>> GetInlineHintsAsync(
InlineHints\AbstractInlineParameterNameHintsService.cs (1)
36public async Task<ImmutableArray<InlineHint>> GetInlineHintsAsync(
InlineHints\AbstractInlineTypeHintsService.cs (4)
31public async Task<ImmutableArray<InlineHint>> GetInlineHintsAsync( 94var taggedText = finalParts.ToTaggedText(); 107ImmutableArray<SymbolDisplayPart> parts, 120var anonymousParts = anonymousTypeService.GetAnonymousTypeParts(anonymousType, semanticModel, position);
InlineHints\IInlineHintsService.cs (1)
15Task<ImmutableArray<InlineHint>> GetInlineHintsAsync(
InlineHints\IInlineParameterNameHintsService.cs (1)
20Task<ImmutableArray<InlineHint>> GetInlineHintsAsync(
InlineHints\IInlineTypeHintsService.cs (1)
20Task<ImmutableArray<InlineHint>> GetInlineHintsAsync(
InlineHints\InlineHint.cs (9)
17public readonly ImmutableArray<TaggedText> DisplayParts; 20private readonly Func<Document, CancellationToken, Task<ImmutableArray<TaggedText>>>? _getDescriptionAsync; 24ImmutableArray<TaggedText> displayParts, 25Func<Document, CancellationToken, Task<ImmutableArray<TaggedText>>>? getDescriptionAsync = null) 32ImmutableArray<TaggedText> displayParts, 34Func<Document, CancellationToken, Task<ImmutableArray<TaggedText>>>? getDescriptionAsync = null) 41ImmutableArray<TaggedText> displayParts, 44Func<Document, CancellationToken, Task<ImmutableArray<TaggedText>>>? getDescriptionAsync = null) 60public Task<ImmutableArray<TaggedText>> GetDescriptionAsync(Document document, CancellationToken cancellationToken)
InlineHints\InlineHintHelpers.cs (3)
19public static Func<Document, CancellationToken, Task<ImmutableArray<TaggedText>>>? GetDescriptionFunction(int position, SymbolKey symbolKey, SymbolDescriptionOptions options) 22private static async Task<ImmutableArray<TaggedText>> GetDescriptionAsync(Document document, int position, SymbolKey symbolKey, SymbolDescriptionOptions options, CancellationToken cancellationToken) 39var documentation = symbol.GetDocumentationParts(semanticModel, position, formatter, cancellationToken);
InlineHints\TypeHint.cs (6)
12private static readonly ImmutableArray<SymbolDisplayPart> s_spaceArray = [new SymbolDisplayPart(SymbolDisplayPartKind.Space, symbol: null, " ")]; 17public ImmutableArray<SymbolDisplayPart> Prefix { get; } = CreateSpaceSymbolPartArray(leadingSpace); 18public ImmutableArray<SymbolDisplayPart> Suffix { get; } = CreateSpaceSymbolPartArray(trailingSpace); 20private static ImmutableArray<SymbolDisplayPart> CreateSpaceSymbolPartArray(bool hasSpace) 23public void Deconstruct(out ITypeSymbol type, out TextSpan span, out TextChange? textChange, out ImmutableArray<SymbolDisplayPart> prefix, out ImmutableArray<SymbolDisplayPart> suffix)
InlineMethod\AbstractInlineMethodRefactoringProvider.cs (2)
229var codeActions = GenerateCodeActions( 246private ImmutableArray<CodeAction> GenerateCodeActions(Document document,
InlineMethod\AbstractInlineMethodRefactoringProvider.InlineContext.cs (8)
22ImmutableArray<TStatementSyntax> statementsToInsertBeforeInvocationOfCallee, 29public ImmutableArray<TStatementSyntax> StatementsToInsertBeforeInvocationOfCallee { get; } = statementsToInsertBeforeInvocationOfCallee; 162? ImmutableArray<(IParameterSymbol, string)>.Empty 247private static ImmutableArray<TStatementSyntax> GetLocalDeclarationStatementsNeedInsert( 249ImmutableArray<(IParameterSymbol parameterSymbol, TExpressionSyntax expression)> parametersToGenerateFreshVariablesFor, 250ImmutableArray<(IParameterSymbol parameterSymbol, string identifierName)> parametersWithVariableDeclarationArgument, 324ImmutableArray<(IParameterSymbol parameter, string identifierName)> parametersWithVariableDeclarationArgument, 357ImmutableArray<IParameterSymbol> parametersNeedGenerateFreshVariableFor,
InlineMethod\AbstractInlineMethodRefactoringProvider.MethodParametersInfo.cs (8)
26ImmutableArray<(IParameterSymbol parameterSymbol, string name)> parametersWithVariableDeclarationArgument, 27ImmutableArray<(IParameterSymbol parameterSymbol, TExpressionSyntax initExpression)> parametersToGenerateFreshVariablesFor, 48public ImmutableArray<(IParameterSymbol parameterSymbol, string name)> ParametersWithVariableDeclarationArgument { get; } = parametersWithVariableDeclarationArgument; 76public ImmutableArray<(IParameterSymbol parameterSymbol, TExpressionSyntax initExpression)> ParametersToGenerateFreshVariablesFor { get; } = parametersToGenerateFreshVariablesFor; 163var allArgumentOperations = invocationOperation.Arguments; 430private static async Task<ImmutableArray<IArgumentOperation>> GetArgumentsReadOnlyOnceAsync( 432ImmutableArray<IArgumentOperation> arguments, 483ImmutableArray<(IParameterSymbol parameterSymbol, string name)> parametersWithVariableDeclarationArgument,
InlineTemporary\AbstractInlineTemporaryCodeRefactoringProvider.cs (1)
22protected static async Task<ImmutableArray<TIdentifierNameSyntax>> GetReferenceLocationsAsync(
Intents\IIntentProvider.cs (1)
14Task<ImmutableArray<IntentProcessorResult>> ComputeIntentAsync(
Intents\IntentResult.cs (2)
13internal readonly struct IntentProcessorResult(Solution solution, ImmutableArray<DocumentId> changedDocuments, string title, string actionName) 23public readonly ImmutableArray<DocumentId> ChangedDocuments = changedDocuments;
IntroduceParameter\AbstractIntroduceParameterCodeRefactoringProvider.cs (3)
140private async Task<(ImmutableArray<CodeAction> actions, ImmutableArray<CodeAction> actionsAllOccurrences)?> GetActionsAsync(Document document, 278var referencedSymbols = progress.GetReferencedSymbols();
IntroduceParameter\IntroduceParameterDocumentRewriter.cs (4)
229var validParameters = _methodSymbol.Parameters.Intersect(expressionParameterMap.Values).ToImmutableArray(); 306SyntaxNode argumentListSyntax, SyntaxNode invocation, ImmutableArray<IParameterSymbol> validParameters, 388private async Task<SyntaxNode> ExtractMethodAsync(ImmutableArray<IParameterSymbol> validParameters, string newMethodIdentifier, SyntaxGenerator generator, CancellationToken cancellationToken) 441private async Task<SyntaxNode> CreateMethodDeclarationAsync(SyntaxNode newStatement, ImmutableArray<IParameterSymbol>? validParameters,
IntroduceVariable\AbstractIntroduceVariableService.cs (1)
89private (string title, ImmutableArray<CodeAction>) CreateActions(State state, CancellationToken cancellationToken)
InvertIf\AbstractInvertIfCodeRefactoringProvider.cs (6)
130var subsequentStatementRanges = GetSubsequentStatementRanges(ifNode); 285private bool SingleSubsequentStatement(ImmutableArray<StatementRange> subsequentStatementRanges) 317ImmutableArray<StatementRange> subsequentStatementRanges, 355ImmutableArray<StatementRange> subsequentStatementRanges) 399private ImmutableArray<StatementRange> GetSubsequentStatementRanges(TIfStatementSyntax ifNode) 477var statementsAfterIf = statements.Skip(index + 1).ToImmutableArray();
LanguageServices\AnonymousTypeDisplayService\AbstractStructuralTypeDisplayService.cs (11)
23protected abstract ImmutableArray<SymbolDisplayPart> GetNormalAnonymousTypeParts(INamedTypeSymbol anonymousType, SemanticModel semanticModel, int position); 25public ImmutableArray<SymbolDisplayPart> GetAnonymousTypeParts(INamedTypeSymbol anonymousType, SemanticModel semanticModel, int position) 30private ImmutableArray<SymbolDisplayPart> GetDelegateAnonymousTypeParts( 45private static ImmutableArray<SymbolDisplayPart> MassageDelegateParts( 47ImmutableArray<SymbolDisplayPart> parts) 63ImmutableArray<INamedTypeSymbol> directStructuralTypeReferences, 74var transitiveStructuralTypeReferences = GetTransitiveStructuralTypeReferences(directStructuralTypeReferences); 145private static ImmutableArray<INamedTypeSymbol> OrderStructuralTypes( 146ImmutableArray<INamedTypeSymbol> structuralTypes, 185private static ImmutableArray<INamedTypeSymbol> GetTransitiveStructuralTypeReferences( 186ImmutableArray<INamedTypeSymbol> structuralTypes)
LanguageServices\AnonymousTypeDisplayService\IStructuralTypeDisplayService.cs (2)
14ImmutableArray<INamedTypeSymbol> structuralTypes, 18ImmutableArray<SymbolDisplayPart> GetAnonymousTypeParts(
LanguageServices\AnonymousTypeDisplayService\StructuralTypeDisplayInfo.cs (1)
64var displayParts = type.ToMinimalDisplayParts(semanticModel, position);
LanguageServices\SymbolDisplayService\AbstractSymbolDisplayService.AbstractSymbolDescriptionBuilder.cs (29)
83private readonly Dictionary<SymbolDescriptionGroups, ImmutableArray<TaggedText>> _documentationMap = []; 110protected abstract Task<ImmutableArray<SymbolDisplayPart>> GetInitializerSourcePartsAsync(ISymbol symbol); 111protected abstract ImmutableArray<SymbolDisplayPart> ToMinimalDisplayParts(ISymbol symbol, SemanticModel semanticModel, int position, SymbolDisplayFormat format); 150protected virtual ImmutableArray<SymbolDisplayPart> WrapConstraints(ISymbol symbol, ImmutableArray<SymbolDisplayPart> displayParts) 153private async Task AddPartsAsync(ImmutableArray<ISymbol> symbols) 194var parts = formatter.Format(rawXmlText, symbol, _semanticModel, _position, format, CancellationToken); 254var captures = analysis.CapturedInside.Except(analysis.VariablesDeclared).ToImmutableArray(); 281public async Task<ImmutableArray<SymbolDisplayPart>> BuildDescriptionAsync( 282ImmutableArray<ISymbol> symbolGroup, SymbolDescriptionGroups groups) 291public async Task<IDictionary<SymbolDescriptionGroups, ImmutableArray<TaggedText>>> BuildDescriptionSectionsAsync(ImmutableArray<ISymbol> symbolGroup) 373private ImmutableArray<SymbolDisplayPart> BuildDescription(SymbolDescriptionGroups groups) 426private IDictionary<SymbolDescriptionGroups, ImmutableArray<TaggedText>> BuildDescriptionSections() 431var result = new Dictionary<SymbolDescriptionGroups, ImmutableArray<TaggedText>>(_documentationMap); 435var taggedText = parts.ToTaggedText(TaggedTextStyle.None, _getNavigationHint, includeNavigationHints); 471var displayParts = symbol.IsAnonymousDelegateType() 499var underlyingTypeDisplayParts = symbol.EnumUnderlyingType.ToDisplayParts(s_descriptionStyle.WithMiscellaneousOptions(SymbolDisplayMiscellaneousOptions.UseSpecialTypes)); 540var parts = await GetFieldPartsAsync(symbol).ConfigureAwait(false); 558private async Task<ImmutableArray<SymbolDisplayPart>> GetFieldPartsAsync(IFieldSymbol symbol) 562var initializerParts = await GetInitializerSourcePartsAsync(symbol).ConfigureAwait(false); 581var parts = await GetLocalPartsAsync(symbol).ConfigureAwait(false); 590private async Task<ImmutableArray<SymbolDisplayPart>> GetLocalPartsAsync(ILocalSymbol symbol) 594var initializerParts = await GetInitializerSourcePartsAsync(symbol).ConfigureAwait(false); 651var initializerParts = await GetInitializerSourcePartsAsync(symbol).ConfigureAwait(false); 703ImmutableArray<ISymbol> symbolGroup) 720private static int GetOverloadCount(ImmutableArray<ISymbol> symbolGroup) 729ImmutableArray<ITypeParameterSymbol> typeParameters, 804protected ImmutableArray<SymbolDisplayPart> ToMinimalDisplayParts(ISymbol symbol, SymbolDisplayFormat? format = null)
LanguageServices\SymbolDisplayService\AbstractSymbolDisplayService.cs (7)
28public async Task<string> ToDescriptionStringAsync(SemanticModel semanticModel, int position, ImmutableArray<ISymbol> symbols, SymbolDescriptionOptions options, SymbolDescriptionGroups groups, CancellationToken cancellationToken) 30var parts = await ToDescriptionPartsAsync(semanticModel, position, symbols, options, groups, cancellationToken).ConfigureAwait(false); 34public async Task<ImmutableArray<SymbolDisplayPart>> ToDescriptionPartsAsync(SemanticModel semanticModel, int position, ImmutableArray<ISymbol> symbols, SymbolDescriptionOptions options, SymbolDescriptionGroups groups, CancellationToken cancellationToken) 45public async Task<IDictionary<SymbolDescriptionGroups, ImmutableArray<TaggedText>>> ToDescriptionGroupsAsync( 46SemanticModel semanticModel, int position, ImmutableArray<ISymbol> symbols, SymbolDescriptionOptions options, CancellationToken cancellationToken) 50return SpecializedCollections.EmptyDictionary<SymbolDescriptionGroups, ImmutableArray<TaggedText>>();
LanguageServices\SymbolDisplayService\ISymbolDisplayService.cs (5)
18Task<string> ToDescriptionStringAsync(SemanticModel semanticModel, int position, ImmutableArray<ISymbol> symbols, SymbolDescriptionOptions options, SymbolDescriptionGroups groups = SymbolDescriptionGroups.All, CancellationToken cancellationToken = default); 19Task<ImmutableArray<SymbolDisplayPart>> ToDescriptionPartsAsync(SemanticModel semanticModel, int position, ImmutableArray<ISymbol> symbols, SymbolDescriptionOptions options, SymbolDescriptionGroups groups = SymbolDescriptionGroups.All, CancellationToken cancellationToken = default); 20Task<IDictionary<SymbolDescriptionGroups, ImmutableArray<TaggedText>>> ToDescriptionGroupsAsync(SemanticModel semanticModel, int position, ImmutableArray<ISymbol> symbols, SymbolDescriptionOptions options, CancellationToken cancellationToken = default);
LegacySolutionEvents\ILegacySolutionEventsAggregationService.cs (1)
34private readonly ImmutableArray<Lazy<ILegacySolutionEventsListener>> _eventsServices = eventsServices.ToImmutableArray();
LineSeparators\ILineSeparatorService.cs (1)
15Task<ImmutableArray<TextSpan>> GetLineSeparatorsAsync(Document document, TextSpan textSpan, CancellationToken cancellationToken);
MapCode\IMapCodeService.cs (3)
30Task<ImmutableArray<TextChange>?> MapCodeAsync( 32ImmutableArray<string> contents, 33ImmutableArray<(Document, TextSpan)> prioritizedFocusLocations,
MetadataAsSource\AbstractMetadataAsSourceService.AbstractWrappedNamespaceOrTypeSymbol.cs (5)
24public abstract ImmutableArray<ISymbol> GetMembers(); 25public abstract ImmutableArray<ISymbol> GetMembers(string name); 26public abstract ImmutableArray<INamedTypeSymbol> GetTypeMembers(); 27public abstract ImmutableArray<INamedTypeSymbol> GetTypeMembers(string name); 28public abstract ImmutableArray<INamedTypeSymbol> GetTypeMembers(string name, int arity);
MetadataAsSource\AbstractMetadataAsSourceService.AbstractWrappedSymbol.cs (5)
43public ImmutableArray<SyntaxReference> DeclaringSyntaxReferences => _symbol.DeclaringSyntaxReferences; 65public ImmutableArray<Location> Locations => _symbol.Locations; 86public ImmutableArray<AttributeData> GetAttributes() 95public ImmutableArray<SymbolDisplayPart> ToDisplayParts(SymbolDisplayFormat format = null) 104public ImmutableArray<SymbolDisplayPart> ToMinimalDisplayParts(SemanticModel semanticModel, int position, SymbolDisplayFormat format = null)
MetadataAsSource\AbstractMetadataAsSourceService.cs (3)
65var reducers = GetReducers(); 74protected abstract ImmutableArray<AbstractFormattingRule> GetFormattingRules(Document document); 92protected abstract ImmutableArray<AbstractReducer> GetReducers();
MetadataAsSource\AbstractMetadataAsSourceService.DocCommentFormatter.cs (7)
34internal static ImmutableArray<string> Format(IDocumentationCommentFormattingService docCommentFormattingService, DocumentationComment docComment) 44var parameterNames = docComment.ParameterNames; 68var typeParameterNames = docComment.TypeParameterNames; 102var exceptionTypes = docComment.ExceptionTypes; 110var rawExceptionTexts = docComment.GetExceptionTexts(exceptionTypes[i]); 160var split = Split(rawText.AsMemory(), "\r\n".AsSpan()); 215public static ImmutableArray<ReadOnlyMemory<char>> Split(
MetadataAsSource\AbstractMetadataAsSourceService.WrappedEventSymbol.cs (1)
16public ImmutableArray<IEventSymbol> ExplicitInterfaceImplementations
MetadataAsSource\AbstractMetadataAsSourceService.WrappedFieldSymbol.cs (2)
28public ImmutableArray<CustomModifier> RefCustomModifiers => _symbol.RefCustomModifiers; 30public ImmutableArray<CustomModifier> CustomModifiers => _symbol.CustomModifiers;
MetadataAsSource\AbstractMetadataAsSourceService.WrappedMethodSymbol.cs (11)
32public ImmutableArray<IMethodSymbol> ExplicitInterfaceImplementations 62public ImmutableArray<IParameterSymbol> Parameters => _symbol.Parameters; 96public ImmutableArray<AttributeData> GetReturnTypeAttributes() 99public ImmutableArray<CustomModifier> RefCustomModifiers => _symbol.RefCustomModifiers; 101public ImmutableArray<CustomModifier> ReturnTypeCustomModifiers => _symbol.ReturnTypeCustomModifiers; 103public ImmutableArray<ITypeSymbol> TypeArguments => _symbol.TypeArguments; 105public ImmutableArray<NullableAnnotation> TypeArgumentNullableAnnotations => _symbol.TypeArgumentNullableAnnotations; 107public ImmutableArray<ITypeParameterSymbol> TypeParameters => _symbol.TypeParameters; 112public IMethodSymbol Construct(ImmutableArray<ITypeSymbol> typeArguments, ImmutableArray<NullableAnnotation> typeArgumentNullableAnnotations) 132public ImmutableArray<INamedTypeSymbol> UnmanagedCallingConventionTypes => _symbol.UnmanagedCallingConventionTypes;
MetadataAsSource\AbstractMetadataAsSourceService.WrappedNamedTypeSymbol.cs (21)
21private readonly ImmutableArray<ISymbol> _members; 28var allMembers = _symbol.GetMembers(); 78public ImmutableArray<ITypeParameterSymbol> TypeParameters => _symbol.TypeParameters; 79public ImmutableArray<ITypeSymbol> TypeArguments => _symbol.TypeArguments; 80public ImmutableArray<NullableAnnotation> TypeArgumentNullableAnnotations => _symbol.TypeArgumentNullableAnnotations; 81public ImmutableArray<IMethodSymbol> InstanceConstructors => _symbol.InstanceConstructors; 82public ImmutableArray<IMethodSymbol> StaticConstructors => _symbol.StaticConstructors; 83public ImmutableArray<IMethodSymbol> Constructors => _symbol.Constructors; 84public ImmutableArray<INamedTypeSymbol> Interfaces => _symbol.Interfaces; 85public ImmutableArray<INamedTypeSymbol> AllInterfaces => _symbol.AllInterfaces; 86public ImmutableArray<IFieldSymbol> TupleElements => _symbol.TupleElements; 88public ImmutableArray<CustomModifier> GetTypeArgumentCustomModifiers(int ordinal) 94public INamedTypeSymbol Construct(ImmutableArray<ITypeSymbol> typeArguments, ImmutableArray<NullableAnnotation> typeArgumentNullableAnnotations) 103public override ImmutableArray<ISymbol> GetMembers() 108public override ImmutableArray<ISymbol> GetMembers(string name) 111public override ImmutableArray<INamedTypeSymbol> GetTypeMembers() 114public override ImmutableArray<INamedTypeSymbol> GetTypeMembers(string name) 117public override ImmutableArray<INamedTypeSymbol> GetTypeMembers(string name, int arity) 123public ImmutableArray<SymbolDisplayPart> ToDisplayParts(NullableFlowState topLevelNullability, SymbolDisplayFormat format = null) 129public ImmutableArray<SymbolDisplayPart> ToMinimalDisplayParts(SemanticModel semanticModel, NullableFlowState topLevelNullability, int position, SymbolDisplayFormat format = null)
MetadataAsSource\AbstractMetadataAsSourceService.WrappedPropertySymbol.cs (4)
18public ImmutableArray<IPropertySymbol> ExplicitInterfaceImplementations 48public ImmutableArray<IParameterSymbol> Parameters => _symbol.Parameters; 56public ImmutableArray<CustomModifier> RefCustomModifiers => _symbol.RefCustomModifiers; 58public ImmutableArray<CustomModifier> TypeCustomModifiers => _symbol.TypeCustomModifiers;
MetadataAsSource\MetadataAsSourceFileService.cs (1)
34private readonly Lazy<ImmutableArray<Lazy<IMetadataAsSourceFileProvider, MetadataAsSourceFileProviderMetadata>>> _providers;
MetadataAsSource\MetadataAsSourceGeneratedFileInfo.cs (1)
22public readonly ImmutableArray<MetadataReference> References;
MoveStaticMembers\AbstractMoveStaticMembersRefactoringProvider.cs (2)
18protected abstract Task<ImmutableArray<SyntaxNode>> GetSelectedNodesAsync(CodeRefactoringContext context); 30var selectedMemberNodes = await GetSelectedNodesAsync(context).ConfigureAwait(false);
MoveStaticMembers\IMoveStaticMembersOptionsService.cs (1)
12MoveStaticMembersOptions GetMoveMembersToTypeOptions(Document document, INamedTypeSymbol selectedType, ImmutableArray<ISymbol> selectedNodeSymbols);
MoveStaticMembers\MoveStaticMembersOptions.cs (3)
28public ImmutableArray<ISymbol> SelectedMembers { get; } 38ImmutableArray<ISymbol> selectedMembers, 56ImmutableArray<ISymbol> selectedMembers,
MoveStaticMembers\MoveStaticMembersWithDialogCodeAction.cs (11)
29ImmutableArray<ISymbol> selectedMembers) : CodeActionWithOptions 32private readonly ImmutableArray<ISymbol> _selectedMembers = selectedMembers; 87var typeParameters = ExtractTypeHelpers.GetRequiredTypeParametersForMembers(_selectedType, moveOptions.SelectedMembers); 160ImmutableArray<ISymbol> selectedMembers, 161ImmutableArray<SyntaxNode> oldMemberNodes, 164ImmutableArray<int> typeArgIndices, 220ImmutableArray<int> typeArgIndices, 252ImmutableArray<(ReferenceLocation location, bool isExtensionMethod)> referenceLocations, 255ImmutableArray<int> typeArgIndices, 344private static async Task<ImmutableArray<(ReferenceLocation location, bool isExtension)>> FindMemberReferencesAsync( 347ImmutableArray<ISymbol> members,
MoveToNamespace\AbstractMoveToNamespaceService.cs (5)
27Task<ImmutableArray<MoveToNamespaceCodeAction>> GetCodeActionsAsync(Document document, TextSpan span, CancellationToken cancellationToken); 30MoveToNamespaceOptionsResult GetChangeNamespaceOptions(Document document, string defaultNamespace, ImmutableArray<string> namespaces); 46public async Task<ImmutableArray<MoveToNamespaceCodeAction>> GetCodeActionsAsync( 177private static async Task<ImmutableArray<ISymbol>> GetMemberSymbolsAsync(Document document, SyntaxNode container, CancellationToken cancellationToken) 302ImmutableArray<string> namespaces)
MoveToNamespace\IMoveToNamespaceOptionsService.cs (1)
17ImmutableArray<string> availableNamespaces,
MoveToNamespace\MoveToNamespaceAnalysisResult.cs (2)
20public ImmutableArray<string> Namespaces { get; } 26ImmutableArray<string> namespaces,
MoveToNamespace\MoveToNamespaceCodeAction.cs (2)
30public sealed override ImmutableArray<string> Tags => []; 60private static ImmutableArray<CodeActionOperation> CreateRenameOperations(MoveToNamespaceResult moveToNamespaceResult)
NameTupleElement\AbstractNameTupleElementCodeRefactoringProvider.cs (2)
49var potentialArguments = await document.GetRelevantNodesAsync<TArgumentSyntax>(span, cancellationToken).ConfigureAwait(false); 66var elements = tupleType.TupleElements;
NavigateTo\AbstractNavigateToSearchService.CachedDocumentSearch.cs (6)
59ImmutableArray<Project> projects, 60ImmutableArray<Document> priorityDocuments, 64Func<ImmutableArray<INavigateToSearchResult>, Task> onResultsFound, 100ImmutableArray<DocumentKey> documentKeys, 101ImmutableArray<DocumentKey> priorityDocumentKeys, 104Func<ImmutableArray<RoslynNavigateToItem>, VoidResult, CancellationToken, Task> onItemsFound,
NavigateTo\AbstractNavigateToSearchService.cs (3)
35private static Func<ImmutableArray<RoslynNavigateToItem>, VoidResult, CancellationToken, Task> GetOnItemsFoundCallback( 36Solution solution, Document? activeDocument, Func<ImmutableArray<INavigateToSearchResult>, Task> onResultsFound) 61private static PooledDisposer<PooledHashSet<T>> GetPooledHashSet<T>(ImmutableArray<T> items, out PooledHashSet<T> instance)
NavigateTo\AbstractNavigateToSearchService.GeneratedDocumentSearch.cs (4)
21ImmutableArray<Project> projects, 25Func<ImmutableArray<INavigateToSearchResult>, Task> onResultsFound, 60ImmutableArray<Project> projects, 63Func<ImmutableArray<RoslynNavigateToItem>, VoidResult, CancellationToken, Task> onItemsFound,
NavigateTo\AbstractNavigateToSearchService.InProcess.cs (5)
25private static readonly ImmutableArray<(PatternMatchKind roslynKind, NavigateToMatchKind vsKind)> s_kindPairs = 116var additionalMatchingProjects = GetAdditionalProjectsWithMatch( 132ImmutableArray<ProjectId> additionalMatchingProjects) 163private static ImmutableArray<ProjectId> GetAdditionalProjectsWithMatch( 245private readonly ImmutableArray<bool> _lookupTable;
NavigateTo\AbstractNavigateToSearchService.NormalSearch.cs (8)
24Func<ImmutableArray<INavigateToSearchResult>, Task> onResultsFound, 51Func<ImmutableArray<RoslynNavigateToItem>, VoidResult, CancellationToken, Task> onItemsFound, 67ImmutableArray<Project> projects, 68ImmutableArray<Document> priorityDocuments, 72Func<ImmutableArray<INavigateToSearchResult>, Task> onResultsFound, 108ImmutableArray<Project> projects, 109ImmutableArray<Document> priorityDocuments, 112Func<ImmutableArray<RoslynNavigateToItem>, VoidResult, CancellationToken, Task> onItemsFound,
NavigateTo\INavigateToSearchCallback.cs (1)
16Task AddResultsAsync(ImmutableArray<INavigateToSearchResult> results, CancellationToken cancellationToken);
NavigateTo\INavigateToSearchResult.cs (3)
20ImmutableArray<TextSpan> NameMatchSpans { get; } 25ImmutableArray<PatternMatch> Matches { get; } 33public static ImmutableArray<PatternMatch> GetMatches(INavigateToSearchResult result)
NavigateTo\INavigateToSearchService.cs (9)
22Func<ImmutableArray<INavigateToSearchResult>, Task> onResultsFound, 37ImmutableArray<Project> projects, 38ImmutableArray<Document> priorityDocuments, 42Func<ImmutableArray<INavigateToSearchResult>, Task> onResultsFound, 64ImmutableArray<Project> projects, 65ImmutableArray<Document> priorityDocuments, 69Func<ImmutableArray<INavigateToSearchResult>, Task> onResultsFound, 83ImmutableArray<Project> projects, 87Func<ImmutableArray<INavigateToSearchResult>, Task> onResultsFound,
NavigateTo\IRemoteNavigateToSearchService.cs (13)
20ValueTask SearchDocumentAsync(Checksum solutionChecksum, DocumentId documentId, string searchPattern, ImmutableArray<string> kinds, RemoteServiceCallbackId callbackId, CancellationToken cancellationToken); 21ValueTask SearchProjectsAsync(Checksum solutionChecksum, ImmutableArray<ProjectId> projectIds, ImmutableArray<DocumentId> priorityDocumentIds, string searchPattern, ImmutableArray<string> kinds, RemoteServiceCallbackId callbackId, CancellationToken cancellationToken); 23ValueTask SearchGeneratedDocumentsAsync(Checksum solutionChecksum, ImmutableArray<ProjectId> projectIds, string searchPattern, ImmutableArray<string> kinds, RemoteServiceCallbackId callbackId, CancellationToken cancellationToken); 24ValueTask SearchCachedDocumentsAsync(ImmutableArray<DocumentKey> documentKeys, ImmutableArray<DocumentKey> priorityDocumentKeys, string searchPattern, ImmutableArray<string> kinds, RemoteServiceCallbackId callbackId, CancellationToken cancellationToken); 30ValueTask OnItemsFoundAsync(RemoteServiceCallbackId callbackId, ImmutableArray<RoslynNavigateToItem> items); 43public ValueTask OnItemsFoundAsync(RemoteServiceCallbackId callbackId, ImmutableArray<RoslynNavigateToItem> items) 51Func<ImmutableArray<RoslynNavigateToItem>, VoidResult, CancellationToken, Task> onItemsFound, 55public async ValueTask OnItemsFoundAsync(ImmutableArray<RoslynNavigateToItem> items)
NavigateTo\NavigateToSearcher.cs (24)
52private readonly ImmutableArray<Document> _visibleDocuments; 224var orderedProjects = GetOrderedProjectsToProcess(); 231ImmutableArray<ImmutableArray<Project>> orderedProjects, 283private ImmutableArray<ImmutableArray<Project>> GetOrderedProjectsToProcess() 285using var result = TemporaryArray<ImmutableArray<Project>>.Empty; 326private ImmutableArray<Document> GetPriorityDocuments(ImmutableArray<Project> projects) 347ImmutableArray<ImmutableArray<Project>> orderedProjects, 349Func<INavigateToSearchService, ImmutableArray<Project>, Func<ImmutableArray<INavigateToSearchResult>, Task>, Func<Task>, Task> processProjectAsync, 357foreach (var projectGroup in orderedProjects) 412ImmutableArray<ImmutableArray<Project>> orderedProjects, 430ImmutableArray<ImmutableArray<Project>> orderedProjects, 462ImmutableArray<ImmutableArray<Project>> orderedProjects, 531public Task SearchDocumentAsync(Document document, string searchPattern, IImmutableSet<string> kinds, Func<ImmutableArray<INavigateToSearchResult>, Task> onResultsFound, CancellationToken cancellationToken) 534public async Task SearchProjectsAsync(Solution solution, ImmutableArray<Project> projects, ImmutableArray<Document> priorityDocuments, string searchPattern, IImmutableSet<string> kinds, Document? activeDocument, Func<ImmutableArray<INavigateToSearchResult>, Task> onResultsFound, Func<Task> onProjectCompleted, CancellationToken cancellationToken)
NavigateTo\RoslynNavigateToItem.cs (10)
30ImmutableArray<ProjectId> additionalMatchingProjects, 35ImmutableArray<TextSpan> nameMatchSpans, 36ImmutableArray<PatternMatch> matches) 45public readonly ImmutableArray<ProjectId> AdditionalMatchingProjects = additionalMatchingProjects; 63public readonly ImmutableArray<TextSpan> NameMatchSpans = nameMatchSpans; 66public readonly ImmutableArray<PatternMatch> Matches = matches; 205ImmutableArray<TextSpan> INavigateToSearchResult.NameMatchSpans => _item.NameMatchSpans; 279ImmutableArray<PatternMatch> INavigateToSearchResult.Matches => _item.Matches; 335ImmutableArray<TaggedText> INavigableItem.DisplayTaggedParts 353ImmutableArray<INavigableItem> INavigableItem.ChildItems => [];
Navigation\AbstractNavigableItemsService.cs (2)
17public Task<ImmutableArray<INavigableItem>> GetNavigableItemsAsync( 23public async Task<ImmutableArray<INavigableItem>> GetNavigableItemsAsync(
Navigation\INavigableItem.cs (2)
22ImmutableArray<TaggedText> DisplayTaggedParts { get; } 49ImmutableArray<INavigableItem> ChildItems { get; }
Navigation\INavigableItemsService.cs (2)
23Task<ImmutableArray<INavigableItem>> GetNavigableItemsAsync(Document document, int position, CancellationToken cancellationToken); 28Task<ImmutableArray<INavigableItem>> GetNavigableItemsAsync(Document document, int position, bool forSymbolType, CancellationToken cancellationToken);
Navigation\NavigableItemFactory.cs (4)
20ImmutableArray<TaggedText>? displayTaggedParts) 26public static ImmutableArray<INavigableItem> GetItemsFromPreferredSourceLocations( 29ImmutableArray<TaggedText>? displayTaggedParts, 57var locations = symbol.Locations;
Navigation\NavigableItemFactory.SymbolLocationNavigableItem.cs (3)
22ImmutableArray<TaggedText>? displayTaggedParts) : INavigableItem 36public ImmutableArray<TaggedText> DisplayTaggedParts { get; } = displayTaggedParts.GetValueOrDefault(); 62public ImmutableArray<INavigableItem> ChildItems => [];
NavigationBar\AbstractNavigationBarItemService.cs (5)
19protected abstract Task<ImmutableArray<RoslynNavigationBarItem>> GetItemsInCurrentProcessAsync(Document document, bool supportsCodeGeneration, CancellationToken cancellationToken); 21public async Task<ImmutableArray<RoslynNavigationBarItem>> GetItemsAsync(Document document, bool supportsCodeGeneration, bool frozenPartialSemantics, CancellationToken cancellationToken) 29var result = await client.TryInvokeAsync<IRemoteNavigationBarItemService, ImmutableArray<SerializableNavigationBarItem>>( 39var items = await GetItemsInCurrentProcessAsync(document, supportsCodeGeneration, cancellationToken).ConfigureAwait(false); 52ImmutableArray<SyntaxReference> allReferences)
NavigationBar\INavigationBarItemService.cs (1)
14Task<ImmutableArray<RoslynNavigationBarItem>> GetItemsAsync(Document document, bool supportsCodeGeneration, bool frozenPartialSemantics, CancellationToken cancellationToken);
NavigationBar\IRemoteNavigationBarItemService.cs (7)
16ValueTask<ImmutableArray<SerializableNavigationBarItem>> GetItemsAsync( 37public readonly ImmutableArray<SerializableNavigationBarItem> ChildItems; 72ImmutableArray<SerializableNavigationBarItem> childItems, 109public static ImmutableArray<SerializableNavigationBarItem> Dehydrate(ImmutableArray<RoslynNavigationBarItem> values) 112public static SerializableNavigationBarItem ActionlessItem(string text, Glyph glyph, ImmutableArray<SerializableNavigationBarItem> childItems = default, int indent = 0, bool bolded = false, bool grayed = false) 115public static SerializableNavigationBarItem SymbolItem(string text, Glyph glyph, string name, bool isObsolete, SymbolItemLocation location, ImmutableArray<SerializableNavigationBarItem> childItems = default, int indent = 0, bool bolded = false, bool grayed = false)
NavigationBar\NavigationBarItems\RoslynNavigationBarItem.ActionlessItem.cs (1)
19ImmutableArray<RoslynNavigationBarItem> childItems = default,
NavigationBar\NavigationBarItems\RoslynNavigationBarItem.cs (2)
23public readonly ImmutableArray<RoslynNavigationBarItem> ChildItems; 32ImmutableArray<RoslynNavigationBarItem> childItems)
NavigationBar\NavigationBarItems\RoslynNavigationBarItem.SymbolItem.cs (3)
22ImmutableArray<RoslynNavigationBarItem> childItems = default, 67public readonly (ImmutableArray<TextSpan> spans, TextSpan navigationSpan)? InDocumentInfo; 80(ImmutableArray<TextSpan> spans, TextSpan navigationSpan)? inDocumentInfo,
Options\EditorConfig\EditorConfigFileGenerator.cs (3)
18IEnumerable<(string feature, ImmutableArray<IOption2> options)> groupedOptions, 41foreach ((var feature, var options) in groupedOptions) 54private static void AppendOptionsToEditorConfig(IOptionsReader configOptions, string feature, ImmutableArray<IOption2> options, string language, StringBuilder editorconfig)
Options\EditorConfig\EditorConfigOptionsEnumerator.cs (2)
28public IEnumerable<(string feature, ImmutableArray<IOption2> options)> GetOptions(string language, bool includeUnsupported = false) 33internal static IEnumerable<(string feature, ImmutableArray<IOption2> options)> GetLanguageAgnosticEditorConfigOptions(bool includeUnsupported)
Options\EditorConfig\IEditorConfigOptionsEnumerator.cs (1)
16public abstract IEnumerable<(string feature, ImmutableArray<IOption2> options)> GetOptions(bool includeUnsupported);
PdbSourceDocument\DocumentDebugInfoReader.cs (2)
36public ImmutableArray<SourceDocument> FindSourceDocuments(EntityHandle entityHandle) 49var checksum = _pdbReader.GetBlobContent(document.Hash);
PdbSourceDocument\PdbSourceDocumentLoaderService.cs (1)
197var fileChecksum = sourceText.GetChecksum();
PdbSourceDocument\PdbSourceDocumentMetadataAsSourceFileProvider.cs (3)
181ImmutableArray<SourceDocument> sourceDocuments; 338private ImmutableArray<DocumentInfo> CreateDocumentInfos( 489internal sealed record SourceDocument(string FilePath, SourceHashAlgorithm ChecksumAlgorithm, ImmutableArray<byte> Checksum, byte[]? EmbeddedTextBytes, string? SourceLinkUrl);
PdbSourceDocument\SymbolSourceDocumentFinder.cs (1)
147var nestedTypes = typeDef.GetNestedTypes();
PickMembers\IPickMembersService.cs (2)
15string title, ImmutableArray<ISymbol> members, 16ImmutableArray<PickMembersOption> options = default,
PickMembers\PickMembersResult.cs (4)
14public readonly ImmutableArray<ISymbol> Members; 15public readonly ImmutableArray<PickMembersOption> Options; 26ImmutableArray<ISymbol> members, 27ImmutableArray<PickMembersOption> options,
PreferFrameworkType\PreferFrameworkTypeCodeFixProvider.cs (2)
27public sealed override ImmutableArray<string> FixableDiagnosticIds { get; } 47Document document, ImmutableArray<Diagnostic> diagnostics,
PreferFrameworkType\PreferFrameworkTypeDiagnosticAnalyzerBase.cs (1)
42protected abstract ImmutableArray<TSyntaxKind> SyntaxKindsOfInterest { get; }
PullMemberUp\AbstractPullMemberUpRefactoringProvider.cs (3)
22protected abstract Task<ImmutableArray<SyntaxNode>> GetSelectedNodesAsync(CodeRefactoringContext context); 76private static ImmutableArray<INamedTypeSymbol> FindAllValidDestinations( 77ImmutableArray<ISymbol> selectedMembers,
PullMemberUp\Dialog\IPullMemberUpOptionsService.cs (1)
15PullMembersUpOptions GetPullMemberUpOptions(Document document, ImmutableArray<ISymbol> selectedNodeSymbols);
PullMemberUp\Dialog\PullMemberUpWithDialogCodeAction.cs (2)
21ImmutableArray<ISymbol> selectedMembers, 27private readonly ImmutableArray<ISymbol> _selectedMembers = selectedMembers;
PullMemberUp\MembersPuller.cs (4)
39ImmutableArray<ISymbol> selectedMembers, 432private static ImmutableArray<SyntaxNode> GetImports(SyntaxNode start, ISyntaxFactsService syntaxFacts) 467private static async Task<ImmutableDictionary<ISymbol, ImmutableArray<SyntaxNode>>> InitializeSymbolToDeclarationsMapAsync( 473var symbolToDeclarationsBuilder = ImmutableDictionary.CreateBuilder<ISymbol, ImmutableArray<SyntaxNode>>();
PullMemberUp\PullMembersUpOptions.cs (2)
27public readonly ImmutableArray<MemberAnalysisResult> MemberAnalysisResults; 36ImmutableArray<MemberAnalysisResult> memberAnalysisResults)
PullMemberUp\PullMembersUpOptionsBuilder.cs (1)
16ImmutableArray<(ISymbol member, bool makeAbstract)> members)
QuickInfo\AbstractEmbeddedLanguageQuickInfoProvider.cs (2)
36var quickInfoProviders = _embeddedLanguageProviderFeature.GetServices(semanticModel, token, context.CancellationToken); 69public new ImmutableArray<Lazy<IEmbeddedLanguageQuickInfoProvider, EmbeddedLanguageMetadata>> GetServices(
QuickInfo\CommonQuickInfoProvider.cs (1)
47protected async Task<ImmutableArray<SyntaxToken>> GetTokensAsync(SyntaxTree tree, int position, System.Threading.CancellationToken cancellationToken)
QuickInfo\CommonSemanticQuickInfoProvider.cs (4)
69ImmutableArray<DocumentId> linkedDocumentIds) 133private static bool HasNoErrors(ImmutableArray<ISymbol> symbols) 197var symbols = GetSymbolsFromToken(token, services, semanticModel, cancellationToken); 237private ImmutableArray<ISymbol> GetSymbolsFromToken(SyntaxToken token, SolutionServices services, SemanticModel semanticModel, CancellationToken cancellationToken)
QuickInfo\CommonSemanticQuickInfoProvider.TokenInfo.cs (2)
11public readonly struct TokenInformation(ImmutableArray<ISymbol> symbols, bool showAwaitReturn = false, NullableFlowState nullableFlowState = NullableFlowState.None) 13public readonly ImmutableArray<ISymbol> Symbols = symbols;
QuickInfo\IndentationHelper.cs (3)
27public static ImmutableArray<ClassifiedSpan> GetSpansWithAlignedIndentation( 29ImmutableArray<ClassifiedSpan> classifiedSpans, 85ImmutableArray<ClassifiedSpan> spans,
QuickInfo\OnTheFlyDocsInfo.cs (2)
16internal sealed class OnTheFlyDocsInfo(string symbolSignature, ImmutableArray<string> declarationCode, string language, bool isContentExcluded, bool hasComments = false) 19public ImmutableArray<string> DeclarationCode { get; } = declarationCode;
QuickInfo\Presentation\QuickInfoClassifiedTextElement.cs (2)
9internal sealed class QuickInfoClassifiedTextElement(params ImmutableArray<QuickInfoClassifiedTextRun> runs) : QuickInfoElement 11public ImmutableArray<QuickInfoClassifiedTextRun> Runs { get; } = runs;
QuickInfo\Presentation\QuickInfoContainerElement.cs (2)
9internal sealed class QuickInfoContainerElement(QuickInfoContainerStyle style, params ImmutableArray<QuickInfoElement> elements) : QuickInfoElement 11public ImmutableArray<QuickInfoElement> Elements { get; } = elements;
QuickInfo\Presentation\TaggedTextExtensions.cs (9)
16internal static ImmutableArray<QuickInfoElement> ToInteractiveTextElements( 17this ImmutableArray<TaggedText> taggedTexts, 54var nestedElements = nestedBuilder.ToImmutableAndClear(); 167public void AddContainer(ImmutableArray<QuickInfoElement> nestedElements, string text) 194public ImmutableArray<QuickInfoElement> ToImmutableAndClear() 232private static QuickInfoClassifiedTextElement ClassifiedText(params ImmutableArray<QuickInfoClassifiedTextRun> runs) 235private static QuickInfoContainerElement StackedContainer(params ImmutableArray<QuickInfoElement> elements) 238private static QuickInfoContainerElement StackedContainer(bool includeVerticalPadding, params ImmutableArray<QuickInfoElement> elements) 250private static QuickInfoContainerElement WrappedContainer(params ImmutableArray<QuickInfoElement> elements)
QuickInfo\QuickInfoItem.cs (12)
21public ImmutableArray<string> Tags { get; } 26public ImmutableArray<QuickInfoSection> Sections { get; } 31public ImmutableArray<TextSpan> RelatedSpans { get; } 37ImmutableArray<string> tags, 38ImmutableArray<QuickInfoSection> sections, 39ImmutableArray<TextSpan> relatedSpans, 51ImmutableArray<string> tags = default, 52ImmutableArray<QuickInfoSection> sections = default, 53ImmutableArray<TextSpan> relatedSpans = default) 60ImmutableArray<string> tags, 61ImmutableArray<QuickInfoSection> sections, 62ImmutableArray<TextSpan> relatedSpans,
QuickInfo\QuickInfoSection.cs (3)
24public ImmutableArray<TaggedText> TaggedParts { get; } 26private QuickInfoSection(string? kind, ImmutableArray<TaggedText> taggedParts) 37public static QuickInfoSection Create(string? kind, ImmutableArray<TaggedText> taggedParts)
QuickInfo\QuickInfoServiceWithProviders.cs (3)
23private ImmutableArray<QuickInfoProvider> _providers; 30private ImmutableArray<QuickInfoProvider> GetProviders() 36var providers = ExtensionOrderer
QuickInfo\QuickInfoUtilities.cs (16)
21public static Task<QuickInfoItem> CreateQuickInfoItemAsync(SolutionServices services, SemanticModel semanticModel, TextSpan span, ImmutableArray<ISymbol> symbols, SymbolDescriptionOptions options, CancellationToken cancellationToken) 28ImmutableArray<ISymbol> symbols, 53if (TryGetGroupText(SymbolDescriptionGroups.MainDescription, out var mainDescriptionTaggedParts)) 67else if (TryGetGroupText(SymbolDescriptionGroups.MainDescription, out var mainDescriptionTaggedParts)) 72if (groups.TryGetValue(SymbolDescriptionGroups.Documentation, out var docParts) && !docParts.IsDefaultOrEmpty) 82groups.TryGetValue(SymbolDescriptionGroups.RemarksDocumentation, out var remarksDocumentation) && 93if (groups.TryGetValue(SymbolDescriptionGroups.ReturnsDocumentation, out var returnsDocumentation) && 102if (groups.TryGetValue(SymbolDescriptionGroups.ValueDocumentation, out var valueDocumentation) && 111if (TryGetGroupText(SymbolDescriptionGroups.TypeParameterMap, out var typeParameterMapText)) 119if (TryGetGroupText(SymbolDescriptionGroups.StructuralTypes, out var anonymousTypesText)) 128if (TryGetGroupText(SymbolDescriptionGroups.AwaitableUsageText, out var awaitableUsageText)) 149if (TryGetGroupText(SymbolDescriptionGroups.Exceptions, out var exceptionsText)) 152if (TryGetGroupText(SymbolDescriptionGroups.Captures, out var capturesText)) 155var tags = ImmutableArray.CreateRange(GlyphTags.GetTags(symbol.GetGlyph())); 161bool TryGetGroupText(SymbolDescriptionGroups group, out ImmutableArray<TaggedText> taggedParts) 164void AddSection(string kind, ImmutableArray<TaggedText> taggedParts)
RelatedDocuments\AbstractRelatedDocumentsService.cs (2)
37Document document, int position, Func<ImmutableArray<DocumentId>, CancellationToken, ValueTask> callbackAsync, CancellationToken cancellationToken) 67Func<ImmutableArray<DocumentId>, CancellationToken, ValueTask> callbackAsync,
RelatedDocuments\IRelatedDocumentsService.cs (1)
22Document document, int position, Func<ImmutableArray<DocumentId>, CancellationToken, ValueTask> callbackAsync, CancellationToken cancellationToken);
RelatedDocuments\IRemoteRelatedDocumentsService.cs (4)
22ValueTask ReportRelatedDocumentAsync(RemoteServiceCallbackId callbackId, ImmutableArray<DocumentId> documentIds, CancellationToken cancellationToken); 34public ValueTask ReportRelatedDocumentAsync(RemoteServiceCallbackId callbackId, ImmutableArray<DocumentId> documentIds, CancellationToken cancellationToken) 39Func<ImmutableArray<DocumentId>, CancellationToken, ValueTask> onRelatedDocumentFoundAsync, 42public ValueTask ReportRelatedDocumentAsync(ImmutableArray<DocumentId> documentIds)
RemoveUnusedVariable\AbstractRemoveUnusedVariableCodeFixProvider.cs (1)
60protected override async Task FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor syntaxEditor, CancellationToken cancellationToken)
Rename\SymbolicRenameInfo.cs (2)
36public ImmutableArray<DocumentSpan> DocumentSpans { get; } 49ImmutableArray<DocumentSpan> documentSpans)
ReplaceMethodWithProperty\ReplaceMethodWithPropertyCodeRefactoringProvider.cs (1)
397private static async Task<ImmutableArray<GetAndSetMethods>> GetGetSetPairsAsync(
ReplacePropertyWithMethods\AbstractReplacePropertyWithMethodsService.cs (1)
29public abstract Task<ImmutableArray<SyntaxNode>> GetReplacementMembersAsync(
ReplacePropertyWithMethods\IReplacePropertyWithMethodsService.cs (1)
28Task<ImmutableArray<SyntaxNode>> GetReplacementMembersAsync(
ReplacePropertyWithMethods\ReplacePropertyWithMethodsCodeRefactoringProvider.cs (1)
389private static async Task<ImmutableArray<(IPropertySymbol property, SyntaxNode declaration)>> GetCurrentPropertiesAsync(
RQName\RQNodeBuilder.cs (1)
139private static IList<RQParameter>? BuildParameterList(ImmutableArray<IParameterSymbol> parameters)
SemanticSearch\IRemoteSemanticSearchService.cs (3)
24ValueTask OnCompilationFailureAsync(RemoteServiceCallbackId callbackId, ImmutableArray<QueryCompilationError> errors, CancellationToken cancellationToken); 46public ValueTask OnCompilationFailureAsync(RemoteServiceCallbackId callbackId, ImmutableArray<QueryCompilationError> errors, CancellationToken cancellationToken) 84public async ValueTask OnCompilationFailureAsync(ImmutableArray<QueryCompilationError> errors, CancellationToken cancellationToken)
SemanticSearch\ISemanticSearchResultsObserver.cs (3)
17ValueTask OnCompilationFailureAsync(ImmutableArray<QueryCompilationError> errors, CancellationToken cancellationToken); 27[property: DataMember(Order = 2)] ImmutableArray<TaggedText> TypeName, 28[property: DataMember(Order = 3)] ImmutableArray<TaggedText> StackTrace,
SemanticSearch\SearchExceptionDefinitionItem.cs (2)
15internal sealed class SearchExceptionDefinitionItem(string message, ImmutableArray<TaggedText> exceptionTypeName, ImmutableArray<TaggedText> stackTrace, DocumentSpan documentSpan)
Shared\Extensions\DocumentExtensions.cs (5)
54public static async Task<ImmutableArray<T>> GetUnionItemsFromDocumentAndLinkedDocumentsAsync<T>( 57Func<Document, Task<ImmutableArray<T>>> getItemsWorker) 61var values = await getItemsWorker(document).ConfigureAwait(false); 98var rules = await document.GetNamingRulesAsync(cancellationToken).ConfigureAwait(false); 111var rules = await document.GetNamingRulesAsync(cancellationToken).ConfigureAwait(false);
Shared\Extensions\ISymbolExtensions_2.cs (1)
183public static ImmutableArray<TaggedText> GetDocumentationParts(this ISymbol symbol, SemanticModel semanticModel, int position, IDocumentationCommentFormattingService formatter, CancellationToken cancellationToken)
Shared\Extensions\ISymbolExtensions_Sorting.cs (7)
20public static ImmutableArray<TSymbol> Sort<TSymbol>( 21this ImmutableArray<TSymbol> symbols, 30public static ImmutableArray<TSymbol> Sort<TSymbol>( 31this ImmutableArray<TSymbol> symbols, 52ImmutableArray<IParameterSymbol> xParameters, string[] xTypeNames, 53ImmutableArray<IParameterSymbol> yParameters, string[] yTypeNames) 140private static ImmutableArray<IParameterSymbol> GetMethodOrIndexerOrEventParameters(ISymbol symbol)
Shared\Utilities\AnnotatedSymbolMapping.cs (2)
18ImmutableDictionary<DocumentId, ImmutableArray<ISymbol>> documentIdsToSymbolMap, 35public ImmutableDictionary<DocumentId, ImmutableArray<ISymbol>> DocumentIdsToSymbolMap { get; } = documentIdsToSymbolMap;
Shared\Utilities\ExtractTypeHelpers.cs (6)
117var typeParameters = GetRequiredTypeParametersForMembers(type, extractableMembers); 130public static ImmutableArray<ITypeParameterSymbol> GetRequiredTypeParametersForMembers(INamedTypeSymbol type, IEnumerable<ISymbol> includedMembers) 132var potentialTypeParameters = GetPotentialTypeParameters(type); 134var directlyReferencedTypeParameters = GetDirectlyReferencedTypeParameters(potentialTypeParameters, includedMembers); 163private static ImmutableArray<ITypeParameterSymbol> GetPotentialTypeParameters(INamedTypeSymbol type) 184private static ImmutableArray<ITypeParameterSymbol> GetDirectlyReferencedTypeParameters(IEnumerable<ITypeParameterSymbol> potentialTypeParameters, IEnumerable<ISymbol> includedMembers)
SignatureHelp\AbstractSignatureHelpProvider.cs (6)
96private static (IList<SignatureHelpItem> items, int? selectedItem) Filter(IList<SignatureHelpItem> items, ImmutableArray<string> parameterNames, int? selectedItem) 113private static bool Include(SignatureHelpItem item, ImmutableArray<string> parameterNames) 251var relatedDocuments = await FindActiveRelatedDocumentsAsync(position, document, cancellationToken).ConfigureAwait(false); 305private static async Task<ImmutableArray<Document>> FindActiveRelatedDocumentsAsync(int position, Document document, CancellationToken cancellationToken) 322var platformParts = platformData.ToDisplayParts().ToTaggedText(); 340protected static int? TryGetSelectedIndex<TSymbol>(ImmutableArray<TSymbol> candidates, ISymbol? currentSymbol) where TSymbol : class, ISymbol
SignatureHelp\CommonSignatureHelpUtilities.cs (2)
34var argumentNames = getArgumentNames(argumentList).ToImmutableArray(); 147public static async Task<ImmutableArray<IMethodSymbol>> GetCollectionInitializerAddMethodsAsync(
SignatureHelp\SignatureHelpItem.cs (5)
25public ImmutableArray<TaggedText> PrefixDisplayParts { get; } 26public ImmutableArray<TaggedText> SuffixDisplayParts { get; } 30public ImmutableArray<TaggedText> SeparatorDisplayParts { get; } 32public ImmutableArray<SignatureHelpParameter> Parameters { get; } 34public ImmutableArray<TaggedText> DescriptionParts { get; internal set; }
SignatureHelp\SignatureHelpService.cs (3)
27private readonly ConcurrentDictionary<string, ImmutableArray<ISignatureHelpProvider>> _providersByLanguage = []; 30private ImmutableArray<ISignatureHelpProvider> GetProviders(string language) 61ImmutableArray<ISignatureHelpProvider> providers,
SignatureHelp\SignatureHelpState.cs (1)
10int SemanticParameterIndex, int SyntacticArgumentCount, string? ArgumentName, ImmutableArray<string> ArgumentNames);
SimplifyThisOrMe\AbstractSimplifyThisOrMeCodeFixProvider.cs (2)
27public sealed override ImmutableArray<string> FixableDiagnosticIds { get; } = 43Document document, ImmutableArray<Diagnostic> diagnostics,
SimplifyTypeNames\AbstractSimplifyTypeNamesCodeFixProvider.cs (2)
37public sealed override ImmutableArray<string> FixableDiagnosticIds { get; } = 102Document document, ImmutableArray<Diagnostic> diagnostics,
Snippets\AbstractSnippetService.cs (3)
20private readonly ImmutableArray<Lazy<ISnippetProvider, LanguageMetadata>> _lazySnippetProviders = lazySnippetProviders.ToImmutableArray(); 23private ImmutableArray<ISnippetProvider> _snippetProviders; 39public ImmutableArray<SnippetData> GetSnippets(SnippetContext context, CancellationToken cancellationToken)
Snippets\ISnippetService.cs (1)
17ImmutableArray<SnippetData> GetSnippets(SnippetContext context, CancellationToken cancellationToken);
Snippets\RoslynLSPSnippetConverter.cs (5)
23public static async Task<string> GenerateLSPSnippetAsync(Document document, int caretPosition, ImmutableArray<SnippetPlaceholder> placeholders, TextChange textChange, int triggerLocation, CancellationToken cancellationToken) 33private static string ConvertToLSPSnippetString(TextChange textChange, ImmutableArray<SnippetPlaceholder> placeholders, int caretPosition) 85private static void PopulateMapOfSpanStartsToLSPStringItem(Dictionary<int, (string identifier, int priority)> dictionary, ImmutableArray<SnippetPlaceholder> placeholders, int textChangeStart) 109private static async Task<TextChange> ExtendSnippetTextChangeAsync(Document document, TextChange textChange, ImmutableArray<SnippetPlaceholder> placeholders, int caretPosition, int triggerLocation, CancellationToken cancellationToken) 124private static TextSpan GetUpdatedTextSpan(TextChange textChange, ImmutableArray<SnippetPlaceholder> placeholders, int caretPosition, int triggerLocation)
Snippets\SnippetChange.cs (4)
19public readonly ImmutableArray<TextChange> TextChanges; 25public readonly ImmutableArray<SnippetPlaceholder> Placeholders; 33ImmutableArray<TextChange> textChanges, 34ImmutableArray<SnippetPlaceholder> placeholders,
Snippets\SnippetData.cs (2)
14internal readonly struct SnippetData(string identifier, string description, ImmutableArray<string> additionalFilterTexts) 18public readonly ImmutableArray<string> AdditionalFilterTexts = additionalFilterTexts;
Snippets\SnippetPlaceholder.cs (3)
21public readonly ImmutableArray<int> StartingPositions; 33public SnippetPlaceholder(string text, ImmutableArray<int> startingPositions) 52public void Deconstruct(out string text, out ImmutableArray<int> startingPositions)
Snippets\SnippetProviders\AbstractConditionalBlockSnippetProvider.cs (1)
23protected sealed override ImmutableArray<SnippetPlaceholder> GetPlaceHolderLocationsList(TStatementSyntax node, ISyntaxFacts syntaxFacts, CancellationToken cancellationToken)
Snippets\SnippetProviders\AbstractConsoleSnippetProvider.cs (2)
35public sealed override ImmutableArray<string> AdditionalFilterTexts { get; } = ["WriteLine"]; 87protected sealed override ImmutableArray<SnippetPlaceholder> GetPlaceHolderLocationsList(TExpressionSyntax node, ISyntaxFacts syntaxFacts, CancellationToken cancellationToken)
Snippets\SnippetProviders\AbstractConstructorSnippetProvider.cs (2)
18public sealed override ImmutableArray<string> AdditionalFilterTexts { get; } = ["constructor"]; 20protected sealed override ImmutableArray<SnippetPlaceholder> GetPlaceHolderLocationsList(TConstructorDeclarationSyntax node, ISyntaxFacts syntaxFacts, CancellationToken cancellationToken)
Snippets\SnippetProviders\AbstractElseSnippetProvider.cs (1)
14protected sealed override ImmutableArray<SnippetPlaceholder> GetPlaceHolderLocationsList(TElseClauseSyntax node, ISyntaxFacts syntaxFacts, CancellationToken cancellationToken)
Snippets\SnippetProviders\AbstractIfSnippetProvider.cs (1)
16public sealed override ImmutableArray<string> AdditionalFilterTexts { get; } = ["statement"];
Snippets\SnippetProviders\AbstractMainMethodSnippetProvider.cs (1)
39protected sealed override ImmutableArray<SnippetPlaceholder> GetPlaceHolderLocationsList(TMethodDeclarationSyntax node, ISyntaxFacts syntaxFacts, CancellationToken cancellationToken)
Snippets\SnippetProviders\AbstractSingleChangeSnippetProvider.cs (1)
17protected sealed override async Task<ImmutableArray<TextChange>> GenerateSnippetTextChangesAsync(Document document, int position, CancellationToken cancellationToken)
Snippets\SnippetProviders\AbstractSnippetProvider.cs (6)
28public virtual ImmutableArray<string> AdditionalFilterTexts => []; 41protected abstract Task<ImmutableArray<TextChange>> GenerateSnippetTextChangesAsync(Document document, int position, CancellationToken cancellationToken); 51protected abstract ImmutableArray<SnippetPlaceholder> GetPlaceHolderLocationsList(TSnippetSyntax node, ISyntaxFacts syntaxFacts, CancellationToken cancellationToken); 75var textChanges = await GenerateSnippetTextChangesAsync(document, position, cancellationToken).ConfigureAwait(false); 104var placeholders = GetPlaceHolderLocationsList(mainChangeNode, syntaxFacts, cancellationToken); 188private static async Task<Document> GetDocumentWithSnippetAsync(Document document, ImmutableArray<TextChange> snippets, CancellationToken cancellationToken)
Snippets\SnippetProviders\AbstractTypeSnippetProvider.cs (2)
21protected sealed override async Task<ImmutableArray<TextChange>> GenerateSnippetTextChangesAsync(Document document, int position, CancellationToken cancellationToken) 36protected sealed override ImmutableArray<SnippetPlaceholder> GetPlaceHolderLocationsList(TTypeDeclarationSyntax node, ISyntaxFacts syntaxFacts, CancellationToken cancellationToken)
Snippets\SnippetProviders\ISnippetProvider.cs (1)
26ImmutableArray<string> AdditionalFilterTexts { get; }
SpellCheck\AbstractSpellCheckSpanService.cs (2)
23public async Task<ImmutableArray<SpellCheckSpan>> GetSpansAsync(Document document, CancellationToken cancellationToken) 29ImmutableArray<SpellCheckSpan> GetSpans()
SpellCheck\ISpellCheckingSpanService.cs (1)
17Task<ImmutableArray<SpellCheckSpan>> GetSpansAsync(Document document, CancellationToken cancellationToken);
SplitOrMergeIfStatements\IIfLikeStatementGenerator.cs (1)
38ImmutableArray<SyntaxNode> GetElseIfAndElseClauses(SyntaxNode ifOrElseIf);
src\Analyzers\Core\Analyzers\AbstractBuiltInCodeStyleDiagnosticAnalyzer.cs (2)
83protected AbstractBuiltInCodeStyleDiagnosticAnalyzer(ImmutableArray<(DiagnosticDescriptor Descriptor, IOption2 Option)> supportedDiagnosticsWithOptions) 96protected AbstractBuiltInCodeStyleDiagnosticAnalyzer(ImmutableArray<(DiagnosticDescriptor Descriptor, ImmutableHashSet<IOption2> Options)> supportedDiagnosticsWithOptions)
src\Analyzers\Core\Analyzers\AbstractBuiltInCodeStyleDiagnosticAnalyzer_Core.cs (3)
38protected AbstractBuiltInCodeStyleDiagnosticAnalyzer(ImmutableArray<DiagnosticDescriptor> supportedDiagnostics) 47public sealed override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } 120ImmutableArray<NotificationOption2> notifications,
src\Analyzers\Core\Analyzers\AbstractBuiltInUnnecessaryCodeStyleDiagnosticAnalyzer.cs (3)
88protected AbstractBuiltInUnnecessaryCodeStyleDiagnosticAnalyzer(ImmutableArray<DiagnosticDescriptor> descriptors, PerLanguageOption2<bool> fadingOption) 103protected AbstractBuiltInUnnecessaryCodeStyleDiagnosticAnalyzer(ImmutableArray<(DiagnosticDescriptor Descriptor, IOption2 Option)> supportedDiagnosticsWithOptions, PerLanguageOption2<bool>? fadingOption) 112protected AbstractBuiltInUnnecessaryCodeStyleDiagnosticAnalyzer(ImmutableArray<(DiagnosticDescriptor Descriptor, ImmutableHashSet<IOption2> Options)> supportedDiagnosticsWithOptions, PerLanguageOption2<bool>? fadingOption)
src\Analyzers\Core\Analyzers\AbstractCodeQualityDiagnosticAnalyzer.cs (2)
17ImmutableArray<DiagnosticDescriptor> descriptors, 25public sealed override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; }
src\Analyzers\Core\Analyzers\AddRequiredParentheses\AbstractAddRequiredParenthesesDiagnosticAnalyzer.cs (4)
58protected static ImmutableArray<string> GetAllEquivalenceKeys() 85protected abstract ImmutableArray<TLanguageKindEnum> GetSyntaxNodeKinds(); 122var additionalLocations = ImmutableArray.Create(binaryLike.GetLocation()); 135NotificationOption2 notificationOption, ImmutableArray<Location> additionalLocations,
src\Analyzers\Core\Analyzers\ForEachCast\AbstractForEachCastDiagnosticAnalyzer.cs (1)
40protected abstract ImmutableArray<TSyntaxKind> GetSyntaxKinds();
src\Analyzers\Core\Analyzers\Helpers\DiagnosticHelper.cs (8)
93ImmutableArray<Location> additionalLocations, 94ImmutableArray<Location> additionalUnnecessaryLocations, 113ImmutableArray<Location> additionalLocations, 114ImmutableArray<Location> additionalUnnecessaryLocations) 161ImmutableArray<Location> additionalLocations, 162ImmutableArray<Location> additionalUnnecessaryLocations, 183ImmutableArray<Location> additionalLocations, 184ImmutableArray<Location> additionalUnnecessaryLocations,
src\Analyzers\Core\Analyzers\Helpers\HashCodeAnalyzer\HashCodeAnalyzer.cs (7)
58public (bool accessesBase, ImmutableArray<ISymbol> members, ImmutableArray<IOperation> statements) GetHashedMembers(ISymbol? owningSymbol, IOperation? operation) 89private (bool accessesBase, ImmutableArray<ISymbol> members)? MatchTuplePattern( 90IMethodSymbol method, ImmutableArray<IOperation> statements) 112private (bool accessesBase, ImmutableArray<ISymbol> members)? MatchAccumulatorPattern( 113IMethodSymbol method, ImmutableArray<IOperation> statements) 138var variables = varDeclStatement.GetDeclaredVariables();
src\Analyzers\Core\Analyzers\Helpers\HashCodeAnalyzer\HashCodeAnalyzer.OperationDeconstructor.cs (1)
34public readonly (bool accessesBase, ImmutableArray<ISymbol> hashedSymbol) GetResult()
src\Analyzers\Core\Analyzers\MakeFieldReadonly\AbstractMakeFieldReadonlyDiagnosticAnalyzer.cs (1)
114var members = ((INamedTypeSymbol)symbolEndContext.Symbol).GetMembers();
src\Analyzers\Core\Analyzers\MatchFolderAndNamespace\AbstractMatchFolderAndNamespaceDiagnosticAnalyzer.cs (1)
44protected abstract ImmutableArray<TSyntaxKind> GetSyntaxKindsToAnalyze();
src\Analyzers\Core\Analyzers\NamingStyle\NamingStyleDiagnosticAnalyzerBase.cs (2)
36private static readonly ImmutableArray<SymbolKind> _symbolKinds = [SymbolKind.Event, SymbolKind.Method, SymbolKind.NamedType, SymbolKind.Namespace, SymbolKind.Property]; 40protected abstract ImmutableArray<TLanguageKindEnum> SupportedSyntaxKinds { get; }
src\Analyzers\Core\Analyzers\RemoveUnnecessaryCast\AbstractRemoveUnnecessaryCastDiagnosticAnalyzer.cs (1)
30protected abstract ImmutableArray<TLanguageKindEnum> SyntaxKindsOfInterest { get; }
src\Analyzers\Core\Analyzers\RemoveUnnecessaryImports\AbstractRemoveUnnecessaryImportsDiagnosticAnalyzer.cs (6)
56private static ImmutableArray<DiagnosticDescriptor> GetDescriptors(LocalizableString titleAndMessage, out DiagnosticDescriptor classificationIdDescriptor, out DiagnosticDescriptor generatedCodeClassificationIdDescriptor) 70protected abstract ImmutableArray<SyntaxNode> MergeImports(ImmutableArray<TSyntaxNode> unnecessaryImports); 90var unnecessaryImports = UnnecessaryImportsProvider.GetUnnecessaryImports(context.SemanticModel, context.FilterSpan, cancellationToken); 98var mergedImports = MergeImports(unnecessaryImports); 141private IEnumerable<TextSpan> GetContiguousSpans(ImmutableArray<SyntaxNode> nodes)
src\Analyzers\Core\Analyzers\RemoveUnnecessaryParentheses\AbstractRemoveUnnecessaryParenthesesDiagnosticAnalyzer.cs (2)
107var additionalLocations = ImmutableArray.Create( 109var additionalUnnecessaryLocations = ImmutableArray.Create(
src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (25)
88Func<DiagnosticAnalyzer, ImmutableArray<DiagnosticDescriptor>> getSupportedDiagnostics, 158using var _2 = ArrayBuilder<(SyntaxTrivia pragma, ImmutableArray<string> ids, bool isDisable)>.GetInstance(out var sortedPragmasWithIds); 230ArrayBuilder<(SyntaxTrivia pragma, ImmutableArray<string> ids, bool isDisable)> sortedPragmasWithIds, 232ImmutableArray<string> userExclusions) 346private static (ImmutableArray<string> userIdExclusions, ImmutableArray<string> userCategoryExclusions, bool analyzerDisabled) ParseUserExclusions(string? userExclusions) 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); 389private static async Task<(ImmutableArray<Diagnostic> reportedDiagnostics, ImmutableArray<string> unhandledIds)> GetReportedDiagnosticsForIdsAsync( 394Func<DiagnosticAnalyzer, ImmutableArray<DiagnosticDescriptor>> getSupportedDiagnostics, 483static void AddAllDiagnostics(ImmutableDictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>> diagnostics, ArrayBuilder<Diagnostic> reportedDiagnostics) 485foreach (var perAnalyzerDiagnostics in diagnostics.Values) 493foreach (var perAnalyzerDiagnostics in analysisResult.CompilationDiagnostics.Values) 507ImmutableArray<Diagnostic> diagnostics, 610ArrayBuilder<(SyntaxTrivia pragma, ImmutableArray<string> ids, bool isDisable)> sortedPragmasWithIds, 632ArrayBuilder<(SyntaxTrivia pragma, ImmutableArray<string> ids, bool isDisable)> sortedPragmasWithIds, 643ImmutableArray<Location> additionalLocations; 679ArrayBuilder<(SyntaxTrivia pragma, ImmutableArray<string> ids, bool isDisable)> sortedPragmasWithIds, 738ImmutableArray<string> userIdExclusions, 739ImmutableArray<string> userCategoryExclusions,
src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\SuppressMessageAttributeState.cs (5)
49out ImmutableArray<(string name, IOperation value)> namedAttributeArguments) 73public static bool HasValidScope(ImmutableArray<(string name, IOperation value)> namedAttributeArguments, out TargetScope targetScope) 91ImmutableArray<(string name, IOperation value)> namedAttributeArguments, 96out ImmutableArray<ISymbol> resolvedSymbols) 131ImmutableArray<(string name, IOperation value)> namedAttributeArguments,
src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (1)
571: ImmutableArray<Location>.Empty;
src\Analyzers\Core\Analyzers\SimplifyInterpolation\AbstractSimplifyInterpolationDiagnosticAnalyzer.cs (2)
54out var formatString, out var unnecessaryLocations); 64var remainingUnnecessaryLocations = unnecessaryLocations.RemoveAt(0);
src\Analyzers\Core\Analyzers\SimplifyInterpolation\AbstractSimplifyInterpolationHelpers.cs (1)
29out string? formatString, out ImmutableArray<Location> unnecessaryLocations)
src\Analyzers\Core\Analyzers\SimplifyLinqExpression\AbstractSimplifyLinqExpressionDiagnosticAnalyzer.cs (3)
62TryGetLinqMethodsThatDoNotReturnEnumerables(enumerableType, out var linqMethods)) 98static bool TryGetLinqMethodsThatDoNotReturnEnumerables(INamedTypeSymbol enumerableType, out ImmutableArray<IMethodSymbol> linqMethods) 160var members = targetTypeSymbol.GetMembers(name);
src\Analyzers\Core\Analyzers\SimplifyTypeNames\SimplifyTypeNamesDiagnosticAnalyzerBase.cs (3)
84protected static ImmutableArray<NotificationOption2> GetAllNotifications(SimplifierOptions options) 111protected abstract ImmutableArray<Diagnostic> AnalyzeCodeBlock(CodeBlockAnalysisContext context, SyntaxNode root); 112protected abstract ImmutableArray<Diagnostic> AnalyzeSemanticModel(SemanticModelAnalysisContext context, SyntaxNode root, TextSpanMutableIntervalTree? codeBlockIntervalTree);
src\Analyzers\Core\Analyzers\UseAutoProperty\AbstractUseAutoPropertyAnalyzer.cs (2)
438var attributes = getterField.GetAttributes(); 649var additionalLocations = ImmutableArray.Create(
src\Analyzers\Core\Analyzers\UseAutoProperty\AccessedFields.cs (1)
17ImmutableArray<IFieldSymbol> NonTrivialFields)
src\Analyzers\Core\Analyzers\UseCoalesceExpression\AbstractUseCoalesceExpressionForNullableTernaryConditionalCheckDiagnosticAnalyzer.cs (1)
119var locations = ImmutableArray.Create(
src\Analyzers\Core\Analyzers\UseCollectionInitializer\AbstractObjectCreationExpressionAnalyzer.cs (2)
39ImmutableArray<TMatch> PreMatches, 40ImmutableArray<TMatch> PostMatches);
src\Analyzers\Core\Analyzers\UseCollectionInitializer\AbstractUseCollectionInitializerAnalyzer.cs (1)
191var addMethods = this.SemanticModel.LookupSymbols(
src\Analyzers\Core\Analyzers\UseCollectionInitializer\AbstractUseCollectionInitializerDiagnosticAnalyzer.cs (8)
86ImmutableArray<CollectionMatch<SyntaxNode>> preMatches, 176? ImmutableArray<SyntaxNode>.Empty 182var locations = ImmutableArray.Create(objectCreationExpression.GetLocation()); 201(ImmutableArray<CollectionMatch<SyntaxNode>> matches, bool shouldUseCollectionExpression, bool changesSemantics)? GetCollectionInitializerMatches() 218(ImmutableArray<CollectionMatch<SyntaxNode>> matches, bool shouldUseCollectionExpression, bool changesSemantics)? GetCollectionExpressionMatches() 244ImmutableArray<CollectionMatch<SyntaxNode>> matches, 245ImmutableArray<Location> locations, 252var additionalUnnecessaryLocations = UseCollectionInitializerHelpers.GetLocationsToFade(
src\Analyzers\Core\Analyzers\UseCollectionInitializer\UpdateExpressionState.cs (3)
27private static readonly ImmutableArray<(string name, bool isLinq)> s_multiAddNames = 418var whenTrueStatements = whenTrue.ToImmutableArray(); 438var whenFalseStatements = whenFalse.ToImmutableArray();
src\Analyzers\Core\Analyzers\UseCollectionInitializer\UseCollectionInitializerHelpers.cs (3)
22public static ImmutableArray<Location> GetLocationsToFade( 35var additionalUnnecessaryLocations = ImmutableArray.Create( 47var additionalUnnecessaryLocations = ImmutableArray.Create(
src\Analyzers\Core\Analyzers\UseCompoundAssignment\AbstractUseCompoundAssignmentDiagnosticAnalyzer.cs (1)
37ImmutableArray<(TSyntaxKind exprKind, TSyntaxKind assignmentKind, TSyntaxKind tokenKind)> kinds)
src\Analyzers\Core\Analyzers\UseCompoundAssignment\UseCompoundAssignmentUtilities.cs (1)
20ImmutableArray<(TSyntaxKind exprKind, TSyntaxKind assignmentKind, TSyntaxKind tokenKind)> kinds,
src\Analyzers\Core\Analyzers\UseIsNullCheck\AbstractUseIsNullForReferenceEqualsDiagnosticAnalyzer.cs (1)
132var additionalLocations = ImmutableArray.Create(invocation.GetLocation());
src\Analyzers\Core\Analyzers\UseNullPropagation\AbstractUseNullPropagationDiagnosticAnalyzer.cs (1)
190var locations = ImmutableArray.Create(
src\Analyzers\Core\Analyzers\UseObjectInitializer\AbstractUseObjectInitializerDiagnosticAnalyzer.cs (6)
107var matches = analyzer.Analyze(semanticModel, syntaxFacts, objectCreationExpression, context.CancellationToken); 119var nodes = ImmutableArray.Create<SyntaxNode>(containingStatement).AddRange(matches.Select(m => m.Statement)); 123var locations = ImmutableArray.Create(objectCreationExpression.GetLocation()); 125var unnecessaryLocations = FadeOutCode(context, matches); 136private ImmutableArray<Location> FadeOutCode( 138ImmutableArray<Match<TExpressionSyntax, TStatementSyntax, TMemberAccessExpressionSyntax, TAssignmentStatementSyntax>> matches)
src\Analyzers\Core\Analyzers\UseObjectInitializer\UseNamedMemberInitializerAnalyzer.cs (1)
49public ImmutableArray<Match<TExpressionSyntax, TStatementSyntax, TMemberAccessExpressionSyntax, TAssignmentStatementSyntax>> Analyze(
src\Analyzers\Core\Analyzers\UseThrowExpression\AbstractUseThrowExpressionDiagnosticAnalyzer.cs (2)
129var allLocations = ImmutableArray.Create( 141var statements = containingBlock.Operations;
src\Analyzers\Core\Analyzers\ValidateFormatString\AbstractValidateFormatStringDiagnosticAnalyzer.cs (7)
44public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 113var parameters = method.Parameters; 183ImmutableArray<IParameterSymbol> parameters, 193ImmutableArray<IParameterSymbol> parameters, 210ImmutableArray<IParameterSymbol> parameters) 244private static IParameterSymbol? GetParameterWithMatchingName(ImmutableArray<IParameterSymbol> parameters, string searchArgumentName) 259ImmutableArray<IParameterSymbol> parameters,
src\Analyzers\Core\Analyzers\ValidateFormatString\FormatStringValidationOptionStorage.cs (1)
17public static readonly ImmutableArray<IOption2> UnsupportedOptions = [ReportInvalidPlaceholdersInStringDotFormatCalls];
src\Analyzers\Core\CodeFixes\AddAccessibilityModifiers\AbstractAddAccessibilityModifiersCodeFixProvider.cs (2)
23public sealed override ImmutableArray<string> FixableDiagnosticIds 44Document document, ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\Core\CodeFixes\AddAnonymousTypeMemberName\AbstractAddAnonymousTypeMemberNameCodeFixProvider.cs (1)
84Document document, ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\Core\CodeFixes\AddExplicitCast\AbstractAddExplicitCastCodeFixProvider.cs (6)
48protected ImmutableArray<(TExpressionSyntax node, ITypeSymbol type)> GetPotentialTargetTypes( 80var potentialConversionTypes = GetPotentialTargetTypes( 171private static ImmutableArray<(TExpressionSyntax, ITypeSymbol)> FilterValidPotentialConversionTypes( 198string argumentName, ImmutableArray<IParameterSymbol> parameters, ref int parameterIndex) 214ImmutableArray<Diagnostic> diagnostics, 229var potentialConversionTypes = GetPotentialTargetTypes(
src\Analyzers\Core\CodeFixes\AddExplicitCast\Fixer.cs (2)
38public ImmutableArray<(TExpressionSyntax, ITypeSymbol)> GetPotentialConversionTypes( 113ImmutableArray<IParameterSymbol> parameters,
src\Analyzers\Core\CodeFixes\AddObsoleteAttribute\AbstractAddObsoleteAttributeCodeFixProvider.cs (1)
72Document document, ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\Core\CodeFixes\AddParameter\AbstractAddParameterCodeFixProvider.cs (14)
43protected abstract ImmutableArray<string> TooManyArgumentsDiagnosticIds { get; } 44protected abstract ImmutableArray<string> CannotConvertDiagnosticIds { get; } 94var argumentInsertPositionInMethodCandidates = GetArgumentInsertPositionForMethodCandidates( 133var candidates = semanticModel.GetMemberGroup(expression, cancellationToken).OfType<IMethodSymbol>().ToImmutableArray(); 184var methodCandidates = type.InstanceConstructors; 192private static ImmutableArray<ArgumentInsertPositionData<TArgumentSyntax>> GetArgumentInsertPositionForMethodCandidates( 197ImmutableArray<IMethodSymbol> methodCandidates) 241ImmutableArray<ArgumentInsertPositionData<TArgumentSyntax>> methodsAndArgumentsToAdd) 243var codeFixData = PrepareCreationOfCodeActions(context.Document, arguments, methodsAndArgumentsToAdd); 248var fixes = codeFixData.Length <= 2 255ImmutableArray<CodeAction> NestByOverload() 292ImmutableArray<CodeAction> NestByCascading() 329private ImmutableArray<CodeFixData> PrepareCreationOfCodeActions( 332ImmutableArray<ArgumentInsertPositionData<TArgumentSyntax>> methodsAndArgumentsToAdd)
src\Analyzers\Core\CodeFixes\AddParameter\AddParameterService.cs (1)
215private static async Task<ImmutableArray<IMethodSymbol>> FindMethodDeclarationReferencesAsync(
src\Analyzers\Core\CodeFixes\AddParameter\RegisterFixData.cs (2)
9internal sealed class RegisterFixData<TArgumentSyntax>(SeparatedSyntaxList<TArgumentSyntax> arguments, ImmutableArray<IMethodSymbol> methodCandidates, bool isConstructorInitializer) 17public ImmutableArray<IMethodSymbol> MethodCandidates { get; } = methodCandidates;
src\Analyzers\Core\CodeFixes\AddRequiredParentheses\AddRequiredParenthesesCodeFixProvider.cs (2)
23public override ImmutableArray<string> FixableDiagnosticIds 43Document document, ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\Core\CodeFixes\AliasAmbiguousType\AbstractAliasAmbiguousTypeCodeFixProvider.cs (4)
82var typeToNameSegments = new Dictionary<ITypeSymbol, ImmutableArray<string>>(); 86var t1NameSegments = GetNameSegments(t1); 87var t2NameSegments = GetNameSegments(t2); 108ImmutableArray<string> GetNameSegments(ITypeSymbol symbol)
src\Analyzers\Core\CodeFixes\ConflictMarkerResolution\AbstractConflictMarkerCodeFixProvider.cs (2)
55public override ImmutableArray<string> FixableDiagnosticIds { get; } 392Document document, ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\Core\CodeFixes\ConvertTypeOfToNameOf\AbstractConvertTypeOfToNameOfCodeFixProvider.cs (2)
24public sealed override ImmutableArray<string> FixableDiagnosticIds 35Document document, ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\Core\CodeFixes\DocumentationComments\AbstractAddDocCommentNodesCodeFixProvider.cs (2)
55protected abstract ImmutableArray<string> GetParameterNames(TMemberDeclarationSyntax method); 64var parameterNames = GetParameterNames(parentMethod);
src\Analyzers\Core\CodeFixes\DocumentationComments\AbstractRemoveDocCommentNodeCodeFixProvider.cs (1)
24public abstract override ImmutableArray<string> FixableDiagnosticIds { get; }
src\Analyzers\Core\CodeFixes\FileHeaders\AbstractFileHeaderCodeFixProvider.cs (1)
28public override ImmutableArray<string> FixableDiagnosticIds { get; }
src\Analyzers\Core\CodeFixes\ForEachCast\AbstractForEachCastCodeFixProvider.cs (2)
27public sealed override ImmutableArray<string> FixableDiagnosticIds 44Document document, ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\Core\CodeFixes\Formatting\FormattingCodeFixProvider.cs (2)
28public sealed override ImmutableArray<string> FixableDiagnosticIds 80protected override async Task FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.cs (6)
33protected abstract bool TryInitializeImplicitObjectCreation(SemanticDocument document, SyntaxNode node, CancellationToken cancellationToken, out SyntaxToken token, out ImmutableArray<Argument<TExpressionSyntax>> arguments, out INamedTypeSymbol typeToGenerateIn); 34protected abstract bool TryInitializeSimpleNameGenerationState(SemanticDocument document, SyntaxNode simpleName, CancellationToken cancellationToken, out SyntaxToken token, out ImmutableArray<Argument<TExpressionSyntax>> arguments, out INamedTypeSymbol typeToGenerateIn); 35protected abstract bool TryInitializeConstructorInitializerGeneration(SemanticDocument document, SyntaxNode constructorInitializer, CancellationToken cancellationToken, out SyntaxToken token, out ImmutableArray<Argument<TExpressionSyntax>> arguments, out INamedTypeSymbol typeToGenerateIn); 36protected abstract bool TryInitializeSimpleAttributeNameGenerationState(SemanticDocument document, SyntaxNode simpleName, CancellationToken cancellationToken, out SyntaxToken token, out ImmutableArray<Argument<TExpressionSyntax>> arguments, out INamedTypeSymbol typeToGenerateIn); 78public async Task<ImmutableArray<CodeAction>> GenerateConstructorAsync(Document document, SyntaxNode node, CancellationToken cancellationToken) 170private ImmutableArray<ParameterName> GenerateParameterNames(
src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.State.cs (22)
43private ImmutableArray<Argument<TExpressionSyntax>> _arguments; 48private ImmutableArray<RefKind> _parameterRefKinds; 49public ImmutableArray<ITypeSymbol> ParameterTypes; 56private ImmutableArray<IParameterSymbol> _parameters; 135var parameterNames = GetParameterNames(_arguments, typeParametersNames, cancellationToken); 142private ImmutableArray<ParameterName> GetParameterNames( 143ImmutableArray<Argument<TExpressionSyntax>> arguments, ImmutableArray<string> typeParametersNames, CancellationToken cancellationToken) 166var remainingArguments = _arguments.Skip(argumentCount).ToImmutableArray(); 167var remainingParameterNames = _service.GenerateParameterNames( 178var remainingParameterTypes = ParameterTypes.Skip(argumentCount).ToImmutableArray(); 189ImmutableArray<IParameterSymbol> allParameters, 190ImmutableArray<TExpressionSyntax?> allExpressions, 210ImmutableArray<IParameterSymbol> parameters, 211ImmutableArray<TExpressionSyntax?> expressions, 212ImmutableArray<IMethodSymbol> constructors, 284internal ImmutableArray<ITypeSymbol> GetParameterTypes(CancellationToken cancellationToken) 306out var token, out var arguments, out var typeToGenerateIn)) 324out var token, out var arguments, out var typeToGenerateIn)) 343out var token, out var arguments, out var typeToGenerateIn)) 464private async Task<(ImmutableArray<ISymbol>, ImmutableArray<SyntaxNode>)> GenerateMembersAndAssignmentsAsync(
src\Analyzers\Core\CodeFixes\GenerateConstructor\GenerateConstructorHelpers.cs (8)
28ImmutableArray<IParameterSymbol> parameters, 29ImmutableArray<TExpressionSyntax?> expressions, 84ImmutableArray<TExpressionSyntax?> expressions) 131(ImmutableArray<IParameterSymbol> parameters, 137ImmutableArray<Argument<TExpressionSyntax>> arguments, 138ImmutableArray<ITypeSymbol> parameterTypes, 139ImmutableArray<ParameterName> parameterNames, 153var unavailableMemberNames = GetUnavailableMemberNames(typeToGenerateIn).ToImmutableArray();
src\Analyzers\Core\CodeFixes\GenerateConstructor\IGenerateConstructorService.cs (1)
16Task<ImmutableArray<CodeAction>> GenerateConstructorAsync(Document document, SyntaxNode node, CancellationToken cancellationToken);
src\Analyzers\Core\CodeFixes\GenerateDefaultConstructors\AbstractGenerateDefaultConstructorsService.cs (1)
25public async Task<ImmutableArray<CodeAction>> GenerateDefaultConstructorsAsync(
src\Analyzers\Core\CodeFixes\GenerateDefaultConstructors\AbstractGenerateDefaultConstructorsService.State.cs (3)
21public ImmutableArray<IMethodSymbol> UnimplementedConstructors { get; private set; } 77var classConstructors = ClassType.InstanceConstructors; 119ImmutableArray<IMethodSymbol> classConstructors,
src\Analyzers\Core\CodeFixes\GenerateDefaultConstructors\GenerateDefaultConstructorsCodeAction.cs (2)
29ImmutableArray<IMethodSymbol> constructors) : CodeAction 31private readonly ImmutableArray<IMethodSymbol> _constructors = constructors;
src\Analyzers\Core\CodeFixes\GenerateDefaultConstructors\IGenerateDefaultConstructorsService.cs (1)
16Task<ImmutableArray<CodeAction>> GenerateDefaultConstructorsAsync(
src\Analyzers\Core\CodeFixes\GenerateEnumMember\AbstractGenerateEnumMemberService.cs (1)
24public async Task<ImmutableArray<CodeAction>> GenerateEnumMemberAsync(Document document, SyntaxNode node, CancellationToken cancellationToken)
src\Analyzers\Core\CodeFixes\GenerateEnumMember\AbstractGenerateEnumMemberService.State.cs (1)
57var existingMembers = TypeToGenerateIn.GetMembers(IdentifierToken.ValueText);
src\Analyzers\Core\CodeFixes\GenerateEnumMember\IGenerateEnumMemberService.cs (1)
15Task<ImmutableArray<CodeAction>> GenerateEnumMemberAsync(Document document, SyntaxNode node, CancellationToken cancellationToken);
src\Analyzers\Core\CodeFixes\GenerateMember\AbstractGenerateMemberCodeFixProvider.cs (2)
27protected abstract Task<ImmutableArray<CodeAction>> GetCodeActionsAsync(Document document, SyntaxNode node, CancellationToken cancellationToken); 47var codeActions = await GetCodeActionsAsync(context.Document, name, context.CancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\GenerateMember\AbstractGenerateMemberService.cs (1)
51var locations = typeToGenerateIn.Locations;
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateConversionService.cs (1)
29public async Task<ImmutableArray<CodeAction>> GenerateConversionAsync(
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateDeconstructMethodService.cs (2)
22public abstract ImmutableArray<IParameterSymbol> TryMakeParameters(SemanticModel semanticModel, SyntaxNode target, CancellationToken cancellationToken); 24public async Task<ImmutableArray<CodeAction>> GenerateDeconstructMethodAsync(
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateDeconstructMethodService.State.cs (1)
65var parameters = service.TryMakeParameters(semanticModel, targetVariables, cancellationToken);
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateMethodService.cs (1)
30public async Task<ImmutableArray<CodeAction>> GenerateMethodAsync(
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateMethodService.State.cs (2)
231private static ImmutableArray<string> GenerateParameterNamesBasedOnParameterTypes(ImmutableArray<IParameterSymbol> parameters)
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.AbstractInvocationInfo.cs (6)
24protected abstract ImmutableArray<ITypeParameterSymbol> GetCapturedTypeParameters(CancellationToken cancellationToken); 25protected abstract ImmutableArray<ITypeParameterSymbol> GenerateTypeParameters(CancellationToken cancellationToken); 32protected override ImmutableArray<ITypeParameterSymbol> DetermineTypeParametersWorker( 35var typeParameters = ComputeTypeParameters(cancellationToken); 39private ImmutableArray<ITypeParameterSymbol> ComputeTypeParameters( 46var capturedTypeParameters = GetCapturedTypeParameters(cancellationToken);
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.cs (1)
42protected async ValueTask<ImmutableArray<CodeAction>> GetActionsAsync(Document document, State state, CancellationToken cancellationToken)
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.MethodSignatureInfo.cs (8)
19ImmutableArray<string> parameterNames = default) : SignatureInfo(document, state) 22private readonly ImmutableArray<string> _parameterNames = parameterNames; 30protected override ImmutableArray<ITypeParameterSymbol> DetermineTypeParametersWorker(CancellationToken cancellationToken) 33protected override ImmutableArray<RefKind> DetermineParameterModifiers(CancellationToken cancellationToken) 36protected override ImmutableArray<bool> DetermineParameterOptionality(CancellationToken cancellationToken) 39protected override ImmutableArray<ITypeSymbol> DetermineParameterTypes(CancellationToken cancellationToken) 42protected override ImmutableArray<ParameterName> DetermineParameterNames(CancellationToken cancellationToken) 47protected override ImmutableArray<ITypeSymbol> DetermineTypeArguments(CancellationToken cancellationToken)
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.SignatureInfo.cs (17)
39private ImmutableArray<ITypeParameterSymbol> _typeParameters; 42public ImmutableArray<ITypeParameterSymbol> DetermineTypeParameters(CancellationToken cancellationToken) 49protected abstract ImmutableArray<ITypeParameterSymbol> DetermineTypeParametersWorker(CancellationToken cancellationToken); 63protected abstract ImmutableArray<ITypeSymbol> DetermineTypeArguments(CancellationToken cancellationToken); 65protected abstract ImmutableArray<RefKind> DetermineParameterModifiers(CancellationToken cancellationToken); 66protected abstract ImmutableArray<ITypeSymbol> DetermineParameterTypes(CancellationToken cancellationToken); 67protected abstract ImmutableArray<bool> DetermineParameterOptionality(CancellationToken cancellationToken); 68protected abstract ImmutableArray<ParameterName> DetermineParameterNames(CancellationToken cancellationToken); 101var parameters = await DetermineParametersAsync(cancellationToken).ConfigureAwait(false); 150var availableMethodTypeParameters = DetermineTypeParameters(cancellationToken); 176var typeArguments = DetermineTypeArguments(cancellationToken); 177var typeParameters = DetermineTypeParameters(cancellationToken); 196private ImmutableArray<SyntaxNode> GenerateStatements( 207private async ValueTask<ImmutableArray<IParameterSymbol>> DetermineParametersAsync(CancellationToken cancellationToken) 209var modifiers = DetermineParameterModifiers(cancellationToken); 211var optionality = DetermineParameterOptionality(cancellationToken); 212var names = DetermineParameterNames(cancellationToken);
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\IGenerateConversionService.cs (1)
15Task<ImmutableArray<CodeAction>> GenerateConversionAsync(Document document, SyntaxNode node, CancellationToken cancellationToken);
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\IGenerateDeconstructMemberService.cs (1)
16Task<ImmutableArray<CodeAction>> GenerateDeconstructMethodAsync(
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\IGenerateParameterizedMemberService.cs (1)
16Task<ImmutableArray<CodeAction>> GenerateMethodAsync(Document document, SyntaxNode node, CancellationToken cancellationToken);
src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.CodeAction.cs (1)
114private ImmutableArray<SyntaxNode> GenerateStatements()
src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.cs (1)
32public async Task<ImmutableArray<CodeAction>> GenerateVariableAsync(
src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.State.cs (1)
36public ImmutableArray<IParameterSymbol> Parameters { get; private set; }
src\Analyzers\Core\CodeFixes\GenerateVariable\IGenerateVariableService.cs (1)
17Task<ImmutableArray<CodeAction>> GenerateVariableAsync(Document document, SyntaxNode node, CancellationToken cancellationToken);
src\Analyzers\Core\CodeFixes\ImplementAbstractClass\AbstractImplementAbstractClassCodeFixProvider.cs (1)
17public sealed override ImmutableArray<string> FixableDiagnosticIds { get; } = [diagnosticId];
src\Analyzers\Core\CodeFixes\ImplementAbstractClass\ImplementAbstractClassData.cs (8)
35ImmutableArray<(INamedTypeSymbol type, ImmutableArray<ISymbol> members)> unimplementedMembers) 41private readonly ImmutableArray<(INamedTypeSymbol type, ImmutableArray<ISymbol> members)> _unimplementedMembers = unimplementedMembers; 126private ImmutableArray<ISymbol> GenerateMembers( 270public ImmutableArray<(ISymbol symbol, bool canDelegateAllMembers)> GetDelegatableMembers(CancellationToken cancellationToken) 272var members = ImplementHelpers.GetDelegatableMembers( 319var constraints = typeParameter.ConstraintTypes;
src\Analyzers\Core\CodeFixes\ImplementInterface\AbstractImplementInterfaceCodeFixProvider.cs (2)
155var delegatableMembers = GetDelegatableMembers(document, state, cancellationToken); 200private static ImmutableArray<ISymbol> GetDelegatableMembers(
src\Analyzers\Core\CodeFixes\ImplementInterface\AbstractImplementInterfaceService.cs (2)
31protected abstract bool TryInitializeState(Document document, SemanticModel model, SyntaxNode interfaceNode, CancellationToken cancellationToken, out SyntaxNode classOrStructDecl, out INamedTypeSymbol classOrStructType, out ImmutableArray<INamedTypeSymbol> interfaceTypes); 98public ImmutableArray<ISymbol> ImplementInterfaceMember(
src\Analyzers\Core\CodeFixes\ImplementInterface\AbstractImplementInterfaceService.State.cs (8)
18ImmutableArray<INamedTypeSymbol> interfaceTypes, 30public ImmutableArray<INamedTypeSymbol> InterfaceTypes => Info.InterfaceTypes; 36public ImmutableArray<(INamedTypeSymbol type, ImmutableArray<ISymbol> members)> MembersWithoutExplicitOrImplicitImplementationWhichCanBeImplicitlyImplemented => Info.MembersWithoutExplicitOrImplicitImplementationWhichCanBeImplicitlyImplemented; 37public ImmutableArray<(INamedTypeSymbol type, ImmutableArray<ISymbol> members)> MembersWithoutExplicitOrImplicitImplementation => Info.MembersWithoutExplicitOrImplicitImplementation; 40public ImmutableArray<(INamedTypeSymbol type, ImmutableArray<ISymbol> members)> MembersWithoutExplicitImplementation => Info.MembersWithoutExplicitImplementation;
src\Analyzers\Core\CodeFixes\ImplementInterface\IImplementInterfaceService.cs (1)
40ImmutableArray<ISymbol> ImplementInterfaceMember(
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementHelpers.cs (9)
18public static ImmutableArray<ISymbol> GetDelegatableMembers( 26var fields = namedType.GetMembers() 32var properties = namedType.GetMembers() 38var parameters = GetNonCapturedPrimaryConstructorParameters(fields, properties); 42ImmutableArray<IParameterSymbol> GetNonCapturedPrimaryConstructorParameters( 43ImmutableArray<IFieldSymbol> fields, 44ImmutableArray<IPropertySymbol> properties) 65bool IsAssignedToFieldOrProperty(ImmutableArray<IFieldSymbol> fields, ImmutableArray<IPropertySymbol> properties, IParameterSymbol parameter)
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementInterfaceGenerator.cs (7)
76ImmutableArray<(INamedTypeSymbol type, ImmutableArray<ISymbol> members)> unimplementedMembers, 77ImmutableArray<ISymbol> extraMembers, 106private ImmutableArray<ISymbol> GenerateMembers( 109ImmutableArray<(INamedTypeSymbol type, ImmutableArray<ISymbol> members)> unimplementedMembers, 284public ImmutableArray<ISymbol> GenerateMembers(
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementInterfaceGenerator_DisposePattern.cs (5)
37private static readonly ImmutableArray<string> s_disposedValueNameParts = ["disposed", "value"]; 46ImmutableArray<(INamedTypeSymbol type, ImmutableArray<ISymbol> members)> unimplementedMembers, 117private (ImmutableArray<ISymbol>, SyntaxNode) CreateDisposableMethods( 220var explicitInterfaceImplementations = Explicitly || !Service.CanImplementImplicitly
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementInterfaceGenerator_Property.cs (3)
29private ImmutableArray<ISymbol> GeneratePropertyMembers( 153private ImmutableArray<SyntaxNode> GetSetAccessorStatements( 168private ImmutableArray<SyntaxNode> GetGetAccessorStatements(
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementInterfaceInfo.cs (7)
27public ImmutableArray<INamedTypeSymbol> InterfaceTypes { get; init; } 29public ImmutableArray<(INamedTypeSymbol type, ImmutableArray<ISymbol> members)> MembersWithoutExplicitOrImplicitImplementationWhichCanBeImplicitlyImplemented { get; init; } = []; 30public ImmutableArray<(INamedTypeSymbol type, ImmutableArray<ISymbol> members)> MembersWithoutExplicitOrImplicitImplementation { get; init; } = []; 31public ImmutableArray<(INamedTypeSymbol type, ImmutableArray<ISymbol> members)> MembersWithoutExplicitImplementation { get; init; } = [];
src\Analyzers\Core\CodeFixes\ImplementType\ImplementTypeOptions.cs (1)
65public static readonly ImmutableArray<IOption2> EditorConfigOptions = [InsertionBehavior, PropertyGenerationBehavior];
src\Analyzers\Core\CodeFixes\MakeFieldReadonly\AbstractMakeFieldReadonlyCodeFixProvider.cs (2)
26public override ImmutableArray<string> FixableDiagnosticIds 40ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\Core\CodeFixes\MakeMemberStatic\AbstractMakeMemberStaticCodeFixProvider.cs (1)
32protected sealed override Task FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor,
src\Analyzers\Core\CodeFixes\MakeMethodSynchronous\AbstractMakeMethodSynchronousCodeFixProvider.cs (1)
155Solution solution, ImmutableArray<ReferenceLocation> locations, CancellationToken cancellationToken)
src\Analyzers\Core\CodeFixes\MakeTypeAbstract\AbstractMakeTypeAbstractCodeFixProvider.cs (1)
32protected sealed override Task FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor,
src\Analyzers\Core\CodeFixes\MakeTypePartial\AbstractMakeTypePartialCodeFixProvider.cs (1)
29protected override async Task FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\Core\CodeFixes\MatchFolderAndNamespace\AbstractChangeNamespaceToMatchFolderCodeFixProvider.cs (3)
23public override ImmutableArray<string> FixableDiagnosticIds => [IDEDiagnosticIds.MatchFolderAndNamespaceDiagnosticId]; 42private static async Task<Solution> FixAllInDocumentAsync(Document document, ImmutableArray<Diagnostic> diagnostics, CancellationToken cancellationToken) 54var targetFolders = PathMetadataUtilities.BuildFoldersFromNamespace(targetNamespace, document.Project.DefaultNamespace);
src\Analyzers\Core\CodeFixes\MatchFolderAndNamespace\AbstractChangeNamespaceToMatchFolderCodeFixProvider.CustomFixAllProvider.cs (4)
30var diagnostics = fixAllContext.Scope switch 51static async Task<ImmutableArray<Diagnostic>> GetSolutionDiagnosticsAsync(FixAllContext fixAllContext) 57var projectDiagnostics = await fixAllContext.GetAllDiagnosticsAsync(project).ConfigureAwait(false); 67ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\Core\CodeFixes\Naming\FallbackNamingRules.cs (3)
20public static readonly ImmutableArray<NamingRule> Default = 51internal static readonly ImmutableArray<NamingRule> CompletionFallbackRules = [CreateCamelCaseFieldsAndParametersRule()]; 57internal static readonly ImmutableArray<NamingRule> CompletionSupplementaryRules = [CreateEndWithAsyncRule(), CreateGetAsyncRule(), CreateMethodStartsWithGetRule()];
src\Analyzers\Core\CodeFixes\Naming\NamingExtensions.cs (2)
20var rules = await document.GetNamingRulesAsync(cancellationToken).ConfigureAwait(false); 35public static async Task<ImmutableArray<NamingRule>> GetNamingRulesAsync(
src\Analyzers\Core\CodeFixes\NamingStyle\NamingStyleCodeFixProvider.cs (3)
37public override ImmutableArray<string> FixableDiagnosticIds { get; } 128public override ImmutableArray<string> Tags => []; 153protected override async Task<ImmutableArray<CodeActionOperation>> ComputeOperationsAsync(IProgress<CodeAnalysisProgress> progress, CancellationToken cancellationToken)
src\Analyzers\Core\CodeFixes\NewLines\ConsecutiveStatementPlacement\ConsecutiveStatementPlacementCodeFixProvider.cs (2)
26public override ImmutableArray<string> FixableDiagnosticIds 44public static async Task<Document> FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, CancellationToken cancellationToken)
src\Analyzers\Core\CodeFixes\NewLines\MultipleBlankLines\AbstractMultipleBlankLinesCodeFixProvider.cs (2)
26public override ImmutableArray<string> FixableDiagnosticIds 45Document document, ImmutableArray<Diagnostic> diagnostics, CancellationToken cancellationToken)
src\Analyzers\Core\CodeFixes\OrderModifiers\AbstractOrderModifiersCodeFixProvider.cs (3)
35protected abstract ImmutableArray<string> FixableCompilerErrorIds { get; } 38public sealed override ImmutableArray<string> FixableDiagnosticIds 53Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\Core\CodeFixes\PopulateSwitch\AbstractPopulateSwitchCodeFixProvider.cs (4)
34public sealed override ImmutableArray<string> FixableDiagnosticIds { get; } 114Document document, ImmutableArray<Diagnostic> diagnostics, 124Document document, SyntaxEditor editor, ImmutableArray<Diagnostic> diagnostics, 221ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\Core\CodeFixes\PopulateSwitch\AbstractPopulateSwitchExpressionCodeFixProvider.cs (1)
60var arms = switchExpression.Arms;
src\Analyzers\Core\CodeFixes\PopulateSwitch\AbstractPopulateSwitchStatementCodeFixProvider.cs (1)
85var cases = switchStatement.Cases;
src\Analyzers\Core\CodeFixes\QualifyMemberAccess\AbstractQualifyMemberAccessCodeFixProvider.cs (2)
25public sealed override ImmutableArray<string> FixableDiagnosticIds 36Document document, ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\Core\CodeFixes\RemoveAsyncModifier\AbstractRemoveAsyncModifierCodeFixProvider.cs (1)
64Document document, ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\Core\CodeFixes\RemoveRedundantEquality\RemoveRedundantEqualityCodeFixProvider.cs (1)
26public override ImmutableArray<string> FixableDiagnosticIds => [IDEDiagnosticIds.RemoveRedundantEqualityDiagnosticId];
src\Analyzers\Core\CodeFixes\RemoveUnnecessaryImports\AbstractRemoveUnnecessaryImportsCodeFixProvider.cs (1)
19public sealed override ImmutableArray<string> FixableDiagnosticIds
src\Analyzers\Core\CodeFixes\RemoveUnnecessaryParentheses\AbstractRemoveUnnecessaryParenthesesCodeFixProvider.cs (2)
22public override ImmutableArray<string> FixableDiagnosticIds 35Document document, ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\Core\CodeFixes\RemoveUnnecessarySuppressions\RemoveUnnecessaryAttributeSuppressionsCodeFixProvider.cs (2)
24public override ImmutableArray<string> FixableDiagnosticIds 40protected override Task FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\Core\CodeFixes\RemoveUnnecessarySuppressions\RemoveUnnecessaryPragmaSuppressionsCodeFixProvider.cs (2)
29public override ImmutableArray<string> FixableDiagnosticIds 47protected override Task FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\Core\CodeFixes\RemoveUnusedMembers\AbstractRemoveUnusedMembersCodeFixProvider.cs (2)
23public sealed override ImmutableArray<string> FixableDiagnosticIds 42ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\Core\CodeFixes\RemoveUnusedParametersAndValues\AbstractRemoveUnusedValuesCodeFixProvider.cs (7)
62public sealed override ImmutableArray<string> FixableDiagnosticIds 240ImmutableArray<Diagnostic> diagnostics, 265ImmutableArray<Diagnostic> diagnostics, 272private static async Task<Document> PreprocessDocumentAsync(Document document, ImmutableArray<Diagnostic> diagnostics, CancellationToken cancellationToken) 284protected sealed override async Task FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken) 295ImmutableArray<Diagnostic> diagnostics, 830var originalDeclStatementsToMoveOrRemove =
src\Analyzers\Core\CodeFixes\SimplifyBooleanExpression\SimplifyConditionalCodeFixProvider.cs (2)
26public sealed override ImmutableArray<string> FixableDiagnosticIds { get; } = 37ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\Core\CodeFixes\SimplifyInterpolation\AbstractSimplifyInterpolationCodeFixProvider.cs (2)
33public override ImmutableArray<string> FixableDiagnosticIds { get; } = 50Document document, ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\Core\CodeFixes\SimplifyLinqExpression\SimplifyLinqExpressionCodeFixProvider.cs (2)
24public sealed override ImmutableArray<string> FixableDiagnosticIds 35ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\Core\CodeFixes\UnsealClass\AbstractUnsealClassCodeFixProvider.cs (1)
58Solution solution, ImmutableArray<SyntaxReference> declarationReferences, CancellationToken cancellationToken)
src\Analyzers\Core\CodeFixes\UpdateLegacySuppressions\UpdateLegacySuppressionsCodeFixProvider.cs (2)
25public override ImmutableArray<string> FixableDiagnosticIds 41protected override Task FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\Core\CodeFixes\UpgradeProject\AbstractUpgradeProjectCodeFixProvider.cs (4)
21public abstract string SuggestedVersion(ImmutableArray<Diagnostic> diagnostics); 35var diagnostics = context.Diagnostics; 41protected ImmutableArray<CodeAction> GetUpgradeProjectCodeActions(CodeFixContext context) 125public override ImmutableArray<string> Tags => RequiresNonDocumentChangeTags;
src\Analyzers\Core\CodeFixes\UseCoalesceExpression\AbstractUseCoalesceExpressionForIfNullStatementCheckCodeFixProvider.cs (2)
20public override ImmutableArray<string> FixableDiagnosticIds 35Document document, ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\Core\CodeFixes\UseCoalesceExpression\UseCoalesceExpressionForNullableTernaryConditionalCheckCodeFixProvider.cs (2)
25public override ImmutableArray<string> FixableDiagnosticIds 38Document document, ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\Core\CodeFixes\UseCoalesceExpression\UseCoalesceExpressionForTernaryConditionalCheckCodeFixProvider.cs (2)
26public override ImmutableArray<string> FixableDiagnosticIds 39Document document, ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\Core\CodeFixes\UseCollectionInitializer\AbstractUseCollectionInitializerCodeFixProvider.cs (3)
50public sealed override ImmutableArray<string> FixableDiagnosticIds 57ImmutableArray<CollectionMatch<SyntaxNode>> preMatches, 58ImmutableArray<CollectionMatch<SyntaxNode>> postMatches, CancellationToken cancellationToken);
src\Analyzers\Core\CodeFixes\UseCompoundAssignment\AbstractUseCompoundAssignmentCodeFixProvider.cs (3)
25public override ImmutableArray<string> FixableDiagnosticIds { get; } = 34ImmutableArray<(TSyntaxKind exprKind, TSyntaxKind assignmentKind, TSyntaxKind tokenKind)> kinds) 53Document document, ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\Core\CodeFixes\UseConditionalExpression\AbstractUseConditionalExpressionCodeFixProvider.cs (1)
45Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor,
src\Analyzers\Core\CodeFixes\UseConditionalExpression\ForAssignment\AbstractUseConditionalExpressionForAssignmentCodeFixProvider.cs (2)
41public override ImmutableArray<string> FixableDiagnosticIds 215var declarators = declaration.Declarators;
src\Analyzers\Core\CodeFixes\UseConditionalExpression\ForReturn\AbstractUseConditionalExpressionForReturnCodeFixProvider.cs (1)
34public override ImmutableArray<string> FixableDiagnosticIds
src\Analyzers\Core\CodeFixes\UseExplicitTupleName\UseExplicitTupleNameCodeFixProvider.cs (2)
25public override ImmutableArray<string> FixableDiagnosticIds { get; } 35Document document, ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\Core\CodeFixes\UseInferredMemberName\AbstractUseInferredMemberNameCodeFixProvider.cs (2)
22public override ImmutableArray<string> FixableDiagnosticIds { get; } 32Document document, ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\Core\CodeFixes\UseIsNullCheck\AbstractUseIsNullForReferenceEqualsCodeFixProvider.cs (2)
24public override ImmutableArray<string> FixableDiagnosticIds 51Document document, ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\Core\CodeFixes\UseNullPropagation\AbstractUseNullPropagationCodeFixProvider.cs (2)
56public override ImmutableArray<string> FixableDiagnosticIds 80Document document, ImmutableArray<Diagnostic> diagnostics,
src\Analyzers\Core\CodeFixes\UseObjectInitializer\AbstractUseObjectInitializerCodeFixProvider.cs (3)
59ImmutableArray<Match<TExpressionSyntax, TStatementSyntax, TMemberAccessExpressionSyntax, TAssignmentStatementSyntax>> matches); 61public override ImmutableArray<string> FixableDiagnosticIds 77var matches = analyzer.Analyze(semanticModel, syntaxFacts, objectCreation, cancellationToken);
src\Analyzers\Core\CodeFixes\UseSystemHashCode\UseSystemHashCodeCodeFixProvider.cs (2)
26public override ImmutableArray<string> FixableDiagnosticIds { get; } 36Document document, ImmutableArray<Diagnostic> diagnostics,
src\Compilers\Core\AnalyzerDriver\DeclarationComputer.cs (1)
23var codeBlocks = executableCodeBlocks?.Where(c => c != null).AsImmutableOrEmpty() ?? ImmutableArray<SyntaxNode>.Empty;
src\Compilers\Core\AnalyzerDriver\DeclarationInfo.cs (2)
15internal DeclarationInfo(SyntaxNode declaredNode, ImmutableArray<SyntaxNode> executableCodeBlocks, ISymbol? declaredSymbol) 37public ImmutableArray<SyntaxNode> ExecutableCodeBlocks { get; }
src\Compilers\Core\Portable\DiagnosticAnalyzer\SuppressMessageAttributeState.TargetSymbolResolver.cs (12)
65public ImmutableArray<ISymbol> Resolve(out bool resolvedWithDocCommentIdFormat) 70return ImmutableArray<ISymbol>.Empty; 75var docIdResults = DocumentationCommentId.GetSymbolsForDeclarationId(nameWithoutPrefix, _compilation); 110var candidateMembers = containingSymbol.GetMembers(segment); 583var candidateMembers = containingSymbol.GetMembers(segment); 724private ISymbol GetFirstMatchingIndexer(ImmutableArray<ISymbol> candidateMembers, ParameterInfo[] parameters) 738private ImmutableArray<IMethodSymbol> GetMatchingMethods(ImmutableArray<ISymbol> candidateMembers, int? arity, ParameterInfo[] parameters, TypeInfo? returnType) 775private bool AllParametersMatch(ImmutableArray<IParameterSymbol> symbolParameters, ParameterInfo[] expectedParameters) 821private static INamedTypeSymbol GetFirstMatchingNamedType(ImmutableArray<ISymbol> candidateMembers, int arity) 828private static INamespaceOrTypeSymbol GetFirstMatchingNamespaceOrType(ImmutableArray<ISymbol> candidateMembers) 845var typeParameters = typeSymbol.TypeParameters;
src\Dependencies\CodeAnalysis.Debugging\CustomDebugInfoEncoder.cs (2)
110public void AddStateMachineHoistedLocalScopes(ImmutableArray<StateMachineHoistedLocalScope> scopes) 169public void AddTupleElementNames(IReadOnlyCollection<(string LocalName, int SlotIndex, int ScopeStart, int ScopeEnd, ImmutableArray<string> Names)> tupleLocals)
src\Dependencies\CodeAnalysis.Debugging\CustomDebugInfoReader.cs (29)
54public static ImmutableArray<byte> TryGetCustomDebugInfoRecord(byte[] customDebugInfo, CustomDebugInfoKind recordKind) 125public static ImmutableArray<short> DecodeUsingRecord(ImmutableArray<byte> bytes) 147public static int DecodeForwardRecord(ImmutableArray<byte> bytes) 161public static int DecodeForwardToModuleRecord(ImmutableArray<byte> bytes) 173public static ImmutableArray<StateMachineHoistedLocalScope> DecodeStateMachineHoistedLocalScopesRecord(ImmutableArray<byte> bytes) 212public static string DecodeForwardIteratorRecord(ImmutableArray<byte> bytes) 241public static ImmutableArray<DynamicLocalInfo> DecodeDynamicLocalsRecord(ImmutableArray<byte> bytes) 300public static ImmutableArray<TupleElementNamesInfo> DecodeTupleElementNamesRecord(ImmutableArray<byte> bytes) 313private static TupleElementNamesInfo DecodeTupleElementNamesInfo(ImmutableArray<byte> bytes, ref int offset) 337public static ImmutableArray<ImmutableArray<string>> GetCSharpGroupedImportStrings<TArg>( 341Func<int, TArg, ImmutableArray<string>> getMethodImportStrings, 342out ImmutableArray<string> externAliasStrings) 346ImmutableArray<short> groupSizes = default; 395var allModuleInfoImportStrings = getMethodImportStrings(moduleInfoMethodToken, arg); 419var importStrings = getMethodImportStrings(methodToken, arg); 422var resultBuilder = ArrayBuilder<ImmutableArray<string>>.GetInstance(groupSizes.Length); 485public static ImmutableArray<string> GetVisualBasicImportStrings<TArg>( 488Func<int, TArg, ImmutableArray<string>> getMethodImportStrings) 490var importStrings = getMethodImportStrings(methodToken, arg); 495return ImmutableArray<string>.Empty; 518private static int ReadInt32(ImmutableArray<byte> bytes, ref int offset) 530private static short ReadInt16(ImmutableArray<byte> bytes, ref int offset) 542private static byte ReadByte(ImmutableArray<byte> bytes, ref int offset) 851private static string ReadUtf8String(ImmutableArray<byte> bytes, ref int offset)
src\Dependencies\CodeAnalysis.Debugging\CustomDebugInfoRecord.cs (2)
15public readonly ImmutableArray<byte> Data; 17public CustomDebugInfoRecord(CustomDebugInfoKind kind, byte version, ImmutableArray<byte> data)
src\Dependencies\CodeAnalysis.Debugging\DynamicLocalInfo.cs (2)
13public readonly ImmutableArray<bool> Flags; 17public DynamicLocalInfo(ImmutableArray<bool> flags, int slotId, string localName)
src\Dependencies\CodeAnalysis.Debugging\TupleElementNamesInfo.cs (2)
14internal readonly ImmutableArray<string> ElementNames; 20internal TupleElementNamesInfo(ImmutableArray<string> elementNames, int slotIndex, string localName, int scopeStart, int scopeEnd)
StackTraceExplorer\AbstractStackTraceSymbolResolver.cs (3)
23protected static bool MatchTypeArguments(ImmutableArray<ITypeSymbol> typeArguments, StackFrameTypeArgumentList? stackFrameTypeArgumentList) 83protected static bool MatchParameters(ImmutableArray<IParameterSymbol> parameters, StackFrameParameterList stackFrameParameters) 109protected static IMethodSymbol? TryGetBestMatch(ImmutableArray<IMethodSymbol> candidateFunctions,
StackTraceExplorer\StackFrameMethodSymbolResolver.cs (1)
24var candidateMethods = type
StackTraceExplorer\StackTraceAnalysisResult.cs (2)
11ImmutableArray<ParsedFrame> parsedLines) 14public ImmutableArray<ParsedFrame> ParsedFrames { get; } = parsedLines;
StackTraceExplorer\StackTraceAnalyzer.cs (2)
24private static readonly ImmutableArray<IStackFrameParser> s_parsers = [new DotnetStackFrameParser(), new VSDebugCallstackParser(), new DefaultStackParser()]; 32private static ImmutableArray<ParsedFrame> Parse(string callstack, CancellationToken cancellationToken)
StackTraceExplorer\StackTraceExplorerService.cs (2)
32var matches = GetFileMatches(solution, parsedFrame.Root, out var line); 76private static ImmutableArray<Document> GetFileMatches(Solution solution, StackFrameCompilationUnit root, out int lineNumber)
StringIndentation\IStringIndentationService.cs (3)
15Task<ImmutableArray<StringIndentationRegion>> GetStringIndentationRegionsAsync(Document document, TextSpan textSpan, CancellationToken cancellationToken); 18internal readonly struct StringIndentationRegion(TextSpan indentSpan, ImmutableArray<TextSpan> holeSpans = default) 109public readonly ImmutableArray<TextSpan> OrderedHoleSpans = holeSpans.NullToEmpty().Sort();
Structure\BlockSpan.cs (3)
15ImmutableArray<(TextSpan textSpan, TextSpan hintSpan, string type)> subHeadings = default, 54public ImmutableArray<(TextSpan textSpan, TextSpan hintSpan, string type)> SubHeadings { get; } = subHeadings; 99Optional<ImmutableArray<(TextSpan textSpan, TextSpan hintSpan, string type)>> subHeadings = default,
Structure\BlockStructure.cs (2)
11internal sealed class BlockStructure(ImmutableArray<BlockSpan> spans) 13public ImmutableArray<BlockSpan> Spans { get; } = spans;
Structure\BlockStructureServiceWithProviders.cs (4)
19private readonly ImmutableArray<BlockStructureProvider> _providers; 31protected virtual ImmutableArray<BlockStructureProvider> GetBuiltInProviders() 34private ImmutableArray<BlockStructureProvider> GetImportedProviders() 66ImmutableArray<BlockStructureProvider> providers)
Structure\Syntax\AbstractBlockStructureProvider.cs (4)
21private readonly ImmutableDictionary<Type, ImmutableArray<AbstractSyntaxStructureProvider>> _nodeProviderMap; 22private readonly ImmutableDictionary<int, ImmutableArray<AbstractSyntaxStructureProvider>> _triviaProviderMap; 25ImmutableDictionary<Type, ImmutableArray<AbstractSyntaxStructureProvider>> defaultNodeOutlinerMap, 26ImmutableDictionary<int, ImmutableArray<AbstractSyntaxStructureProvider>> defaultTriviaOutlinerMap)
Structure\Syntax\BlockSpanCollector.cs (8)
16private readonly ImmutableDictionary<Type, ImmutableArray<AbstractSyntaxStructureProvider>> _nodeProviderMap; 17private readonly ImmutableDictionary<int, ImmutableArray<AbstractSyntaxStructureProvider>> _triviaProviderMap; 22ImmutableDictionary<Type, ImmutableArray<AbstractSyntaxStructureProvider>> nodeOutlinerMap, 23ImmutableDictionary<int, ImmutableArray<AbstractSyntaxStructureProvider>> triviaOutlinerMap, 35ImmutableDictionary<Type, ImmutableArray<AbstractSyntaxStructureProvider>> nodeOutlinerMap, 36ImmutableDictionary<int, ImmutableArray<AbstractSyntaxStructureProvider>> triviaOutlinerMap, 65if (_nodeProviderMap.TryGetValue(node.GetType(), out var providers)) 87if (_triviaProviderMap.TryGetValue(trivia.RawKind, out var providers))
Structure\Syntax\BlockStructureExtensions.cs (1)
15this ImmutableDictionary<Type, ImmutableArray<AbstractSyntaxStructureProvider>>.Builder builder)
SymbolSearch\SymbolSearchOptions.cs (2)
41public static readonly ImmutableArray<IOption2> EditorConfigOptions = [SearchReferenceAssemblies]; 42public static readonly ImmutableArray<IOption2> UnsupportedOptions = [SearchNuGetPackages];
SymbolSearch\SymbolSearchUpdateNoOpEngine.cs (6)
21public ValueTask<ImmutableArray<PackageWithAssemblyResult>> FindPackagesWithAssemblyAsync(string source, string assemblyName, CancellationToken cancellationToken) 22=> ValueTaskFactory.FromResult(ImmutableArray<PackageWithAssemblyResult>.Empty); 24public ValueTask<ImmutableArray<PackageResult>> FindPackagesAsync(string source, TypeQuery typeQuery, NamespaceQuery namespaceQuery, CancellationToken cancellationToken) 25=> ValueTaskFactory.FromResult(ImmutableArray<PackageResult>.Empty); 27public ValueTask<ImmutableArray<ReferenceAssemblyResult>> FindReferenceAssembliesAsync(TypeQuery typeQuery, NamespaceQuery namespaceQuery, CancellationToken cancellationToken) 28=> ValueTaskFactory.FromResult(ImmutableArray<ReferenceAssemblyResult>.Empty);
SymbolSearch\Windows\SymbolSearchUpdateEngine.cs (8)
74public ValueTask<ImmutableArray<PackageResult>> FindPackagesAsync( 96public ValueTask<ImmutableArray<ReferenceAssemblyResult>> FindReferenceAssembliesAsync( 113public ValueTask<ImmutableArray<TResult>> FindPackageOrReferenceAssembliesAsync<TResult>( 123return ValueTaskFactory.FromResult(ImmutableArray<TResult>.Empty); 131return ValueTaskFactory.FromResult(ImmutableArray<TResult>.Empty); 175public ValueTask<ImmutableArray<PackageWithAssemblyResult>> FindPackagesWithAssemblyAsync( 181return ValueTaskFactory.FromResult(ImmutableArray<PackageWithAssemblyResult>.Empty); 259private static ImmutableArray<string> GetFullName(Path8 path)
SymbolSearch\Windows\SymbolSearchUpdateEngineProxy.cs (3)
19public async ValueTask<ImmutableArray<PackageResult>> FindPackagesAsync(string source, TypeQuery typeQuery, NamespaceQuery namespaceQuery, CancellationToken cancellationToken) 28public async ValueTask<ImmutableArray<PackageWithAssemblyResult>> FindPackagesWithAssemblyAsync( 38public async ValueTask<ImmutableArray<ReferenceAssemblyResult>> FindReferenceAssembliesAsync(
SyncNamespaces\AbstractSyncNamespacesService.cs (14)
33ImmutableArray<Project> projects, 41var diagnosticAnalyzers = ImmutableArray.Create<DiagnosticAnalyzer>(DiagnosticAnalyzer); 58private static async Task<ImmutableDictionary<Project, ImmutableArray<Diagnostic>>> GetDiagnosticsByProjectAsync( 59ImmutableArray<Project> projects, 60ImmutableArray<DiagnosticAnalyzer> diagnosticAnalyzers, 64var builder = ImmutableDictionary.CreateBuilder<Project, ImmutableArray<Diagnostic>>(); 68var diagnostics = await GetDiagnosticsAsync(project, diagnosticAnalyzers, isHostAnalyzer, cancellationToken).ConfigureAwait(false); 75private static async Task<ImmutableArray<Diagnostic>> GetDiagnosticsAsync( 77ImmutableArray<DiagnosticAnalyzer> diagnosticAnalyzers, 98ImmutableDictionary<Project, ImmutableArray<Diagnostic>> diagnosticsByProject, 144var operations = await fixAllAction.GetOperationsAsync( 156private readonly ImmutableDictionary<Project, ImmutableArray<Diagnostic>> _diagnosticsByProject; 158internal DiagnosticProvider(ImmutableDictionary<Project, ImmutableArray<Diagnostic>> diagnosticsByProject) 178return _diagnosticsByProject.TryGetValue(project, out var diagnostics)
SyncNamespaces\ISyncNamespacesService.cs (1)
21ImmutableArray<Project> projects, IProgress<CodeAnalysisProgress> progressTracker, CancellationToken cancellationToken);
TaskList\AbstractTaskListService.cs (8)
26protected abstract void AppendTaskListItems(ImmutableArray<TaskListItemDescriptor> descriptors, SyntacticDocument document, SyntaxTrivia trivia, ArrayBuilder<TaskListItem> items); 28public async Task<ImmutableArray<TaskListItem>> GetTaskListItemsAsync( 30ImmutableArray<TaskListItemDescriptor> descriptors, 36var result = await client.TryInvokeAsync<IRemoteTaskListService, ImmutableArray<TaskListItem>>( 50private async Task<ImmutableArray<TaskListItem>> GetTaskListItemsInProcessAsync( 52ImmutableArray<TaskListItemDescriptor> descriptors, 83ImmutableArray<TaskListItemDescriptor> descriptors, 122ImmutableArray<TaskListItemDescriptor> commentDescriptors,
Testing\AbstractTestMethodFinder.cs (3)
27protected readonly ImmutableArray<ITestFrameworkMetadata> TestFrameworkMetadata = testFrameworks.ToImmutableArray(); 33public async Task<ImmutableArray<SyntaxNode>> GetPotentialTestMethodsAsync(Document document, TextSpan textSpan, CancellationToken cancellationToken) 86private async Task<ImmutableArray<SyntaxNode>> GetPotentialTestNodesAsync(Document document, TextSpan textSpan, CancellationToken cancellationToken)
Testing\ITestMethodFinder.cs (1)
19Task<ImmutableArray<SyntaxNode>> GetPotentialTestMethodsAsync(Document document, TextSpan textSpan, CancellationToken cancellationToken);
UnusedReferences\IReferenceCleanupService.cs (1)
18Task<ImmutableArray<ReferenceInfo>> GetProjectReferencesAsync(
UnusedReferences\IUnusedReferenceAnalysisService.cs (4)
14Task<ImmutableArray<ReferenceInfo>> GetUnusedReferencesAsync( 18ImmutableArray<ReferenceInfo> projectReferences, 24ValueTask<ImmutableArray<ReferenceInfo>> GetUnusedReferencesAsync( 28ImmutableArray<ReferenceInfo> projectReferences,
UnusedReferences\ProjectAssets\ProjectAssetsReader.cs (2)
23public static ImmutableArray<ReferenceInfo> AddDependencyHierarchies( 24ImmutableArray<ReferenceInfo> projectReferences,
UnusedReferences\ReferenceInfo.cs (4)
12internal sealed class ReferenceInfo(ReferenceType referenceType, string itemSpecification, bool treatAsUsed, ImmutableArray<string> compilationAssemblies, ImmutableArray<ReferenceInfo> dependencies) 39public ImmutableArray<string> CompilationAssemblies { get; } = compilationAssemblies; 45public ImmutableArray<ReferenceInfo> Dependencies { get; } = dependencies;
UnusedReferences\UnusedReferencesRemover.cs (15)
22private static readonly ImmutableArray<ReferenceType> s_processingOrder = [ReferenceType.Project, ReferenceType.Package, ReferenceType.Assembly]; 24public static async Task<ImmutableArray<ReferenceInfo>> GetUnusedReferencesAsync( 27ImmutableArray<ReferenceInfo> references, 44var usedAssemblyReferences = compilation.GetUsedAssemblyReferences(cancellationToken); 63internal static ImmutableArray<ReferenceInfo> GetUnusedReferences( 66ImmutableArray<ReferenceInfo> references) 92var unusedReferences = RemoveDirectlyUsedReferences( 116var unusedReferences = RemoveTransitivelyUsedReferences( 127private static ImmutableArray<ReferenceInfo> RemoveDirectlyUsedReferences( 128ImmutableArray<ReferenceInfo> references, 183private static ImmutableArray<ReferenceInfo> RemoveTransitivelyUsedReferences( 184ImmutableArray<ReferenceInfo> references, 255internal static ImmutableArray<string> GetAllCompilationAssemblies(ReferenceInfo reference) 265ImmutableArray<ReferenceUpdate> referenceUpdates, 276ImmutableArray<ReferenceUpdate> referenceUpdates,
UseAutoProperty\AbstractUseAutoPropertyCodeFixProvider.cs (3)
38public sealed override ImmutableArray<string> FixableDiagnosticIds 49protected abstract ImmutableArray<AbstractFormattingRule> GetFormattingRules( 357var formattingRules = GetFormattingRules(document, finalPropertyDeclaration);
UseAutoProperty\UseAutoPropertyFixAllProvider.cs (1)
29private async Task<Solution?> FixAllContextsHelperAsync(FixAllContext originalContext, ImmutableArray<FixAllContext> contexts)
UseNamedArguments\AbstractUseNamedArgumentsCodeRefactoringProvider.cs (4)
140ImmutableArray<IParameterSymbol> parameters, 151ImmutableArray<IParameterSymbol> parameters, TArgumentListSyntax argumentList, 178protected abstract bool IsLegalToAddNamedArguments(ImmutableArray<IParameterSymbol> parameters, int argumentCount); 184protected abstract bool IsImplicitIndexOrRangeIndexer(ImmutableArray<IParameterSymbol> parameters, TBaseArgumentSyntax argument, SemanticModel semanticModel);
ValueTracking\IValueTrackingService.cs (4)
15Task<ImmutableArray<ValueTrackedItem>> TrackValueSourceAsync(TextSpan selection, Document document, CancellationToken cancellationToken); 16Task<ImmutableArray<ValueTrackedItem>> TrackValueSourceAsync(Solution solution, ValueTrackedItem previousTrackedItem, CancellationToken cancellationToken); 21ValueTask<ImmutableArray<SerializableValueTrackedItem>> TrackValueSourceAsync(Checksum solutionChecksum, TextSpan selection, DocumentId document, CancellationToken cancellationToken); 22ValueTask<ImmutableArray<SerializableValueTrackedItem>> TrackValueSourceAsync(Checksum solutionChecksum, SerializableValueTrackedItem previousTrackedItem, CancellationToken cancellationToken);
ValueTracking\ValueTracker.cs (1)
37var declaringSyntaxReferences = symbol.DeclaringSyntaxReferences;
ValueTracking\ValueTracker.FindReferencesProgress.cs (1)
34ImmutableArray<(SymbolGroup group, ISymbol symbol, ReferenceLocation location)> references,
ValueTracking\ValueTracker.OperationCollector.cs (2)
181private async Task TrackArgumentsAsync(ImmutableArray<IArgumentOperation> argumentOperations, CancellationToken cancellationToken) 183var collectorsAndArgumentMap = argumentOperations
ValueTracking\ValueTrackingProgressCollector.cs (1)
32public ImmutableArray<ValueTrackedItem> GetItems()
ValueTracking\ValueTrackingService.cs (4)
27public async Task<ImmutableArray<ValueTrackedItem>> TrackValueSourceAsync( 38var result = await client.TryInvokeAsync<IRemoteValueTrackingService, ImmutableArray<SerializableValueTrackedItem>>( 57public async Task<ImmutableArray<ValueTrackedItem>> TrackValueSourceAsync( 68var result = await client.TryInvokeAsync<IRemoteValueTrackingService, ImmutableArray<SerializableValueTrackedItem>>(
Workspace\CompileTimeSolutionProvider.cs (2)
44private static readonly ImmutableArray<string> s_razorSourceGeneratorAssemblyNames = 50private static readonly ImmutableArray<string> s_razorSourceGeneratorFileNamePrefixes = s_razorSourceGeneratorAssemblyNames
Workspace\MiscellaneousFileUtilities.cs (1)
25ImmutableArray<MetadataReference> metadataReferences)
Wrapping\AbstractCodeActionComputer.cs (7)
80protected abstract Task<ImmutableArray<WrappingGroup>> ComputeWrappingGroupsAsync(CancellationToken cancellationToken); 120ImmutableArray<Edit> edits, string parentTitle, string title, CancellationToken cancellationToken) 172ImmutableArray<Edit> edits, CancellationToken cancellationToken) 226var tokens = leftTokenToTrailingTrivia.Keys.Concat(rightTokenToLeadingTrivia.Keys).Distinct().ToImmutableArray(); 270public async Task<ImmutableArray<CodeAction>> GetTopLevelCodeActionsAsync(CancellationToken cancellationToken) 275var wrappingGroups = await ComputeWrappingGroupsAsync(cancellationToken).ConfigureAwait(false); 296var sorted = WrapItemsAction.SortActionsByMostRecentlyUsed(ImmutableArray<CodeAction>.CastUp(wrappingActions));
Wrapping\AbstractWrappingCodeRefactoringProvider.cs (2)
26private readonly ImmutableArray<ISyntaxWrapper> _wrappers; 29ImmutableArray<ISyntaxWrapper> wrappers)
Wrapping\BinaryExpression\AbstractBinaryExpressionWrapper.cs (2)
72var exprsAndOperators = GetExpressionsAndOperators(precedence, binaryExpr); 95private ImmutableArray<SyntaxNodeOrToken> GetExpressionsAndOperators(
Wrapping\BinaryExpression\BinaryExpressionCodeActionComputer.cs (5)
25private readonly ImmutableArray<SyntaxNodeOrToken> _exprsAndOperators; 52ImmutableArray<SyntaxNodeOrToken> exprsAndOperators) 69protected override async Task<ImmutableArray<WrappingGroup>> ComputeWrappingGroupsAsync(CancellationToken cancellationToken) 86private async Task<ImmutableArray<Edit>> GetWrapEditsAsync(bool align, CancellationToken cancellationToken) 124private ImmutableArray<Edit> GetUnwrapEdits()
Wrapping\ChainedExpression\AbstractChainedExpressionWrapper.cs (7)
95var chunks = GetChainChunks(node); 101foreach (var chunk in chunks) 116private ImmutableArray<ImmutableArray<SyntaxNodeOrToken>> GetChainChunks(SyntaxNode node) 133using var _2 = ArrayBuilder<ImmutableArray<SyntaxNodeOrToken>>.GetInstance(out var chunks); 140ArrayBuilder<ImmutableArray<SyntaxNodeOrToken>> chunks) 230private static ImmutableArray<SyntaxNodeOrToken> GetSubRange(
Wrapping\ChainedExpression\ChainedExpressionCodeActionComputer.cs (11)
46private readonly ImmutableArray<ImmutableArray<SyntaxNodeOrToken>> _chunks; 72ImmutableArray<ImmutableArray<SyntaxNodeOrToken>> chunks) 93protected override async Task<ImmutableArray<WrappingGroup>> ComputeWrappingGroupsAsync(CancellationToken cancellationToken) 129private async Task<ImmutableArray<Edit>> GetWrapEditsAsync(int wrappingColumn, bool align, CancellationToken cancellationToken) 134var firstChunk = _chunks[0]; 148var chunk = _chunks[i]; 174private static int NormalizedWidth(ImmutableArray<SyntaxNodeOrToken> chunk) 177private ImmutableArray<Edit> GetUnwrapEdits() 190ArrayBuilder<Edit> result, ImmutableArray<SyntaxNodeOrToken> chunk)
Wrapping\ICodeActionComputer.cs (1)
17Task<ImmutableArray<CodeAction>> GetTopLevelCodeActionsAsync(CancellationToken cancellationToken);
Wrapping\SeparatedSyntaxList\SeparatedSyntaxListCodeActionComputer.cs (7)
138protected override async Task<ImmutableArray<WrappingGroup>> ComputeWrappingGroupsAsync(CancellationToken cancellationToken) 195var edits = await GetUnwrapAllEditsAsync(wrappingStyle, cancellationToken).ConfigureAwait(false); 203private async Task<ImmutableArray<Edit>> GetUnwrapAllEditsAsync(WrappingStyle wrappingStyle, CancellationToken cancellationToken) 282var edits = await GetWrapLongLinesEditsAsync( 289private async Task<ImmutableArray<Edit>> GetWrapLongLinesEditsAsync( 409var edits = await GetWrapEachEditsAsync(wrappingStyle, indentationTrivia, cancellationToken).ConfigureAwait(false); 424private async Task<ImmutableArray<Edit>> GetWrapEachEditsAsync(
Wrapping\WrapItemsAction.cs (7)
33private static ImmutableArray<string> s_mruTitles = []; 46protected override async Task<ImmutableArray<CodeActionOperation>> ComputeOperationsAsync(IProgress<CodeAnalysisProgress> progress, CancellationToken cancellationToken) 52public static ImmutableArray<CodeAction> SortActionsByMostRecentlyUsed(ImmutableArray<CodeAction> codeActions) 55public static ImmutableArray<T> SortByMostRecentlyUsed<T>( 56ImmutableArray<T> items, ImmutableArray<string> mostRecentlyUsedKeys, Func<T, string> getKey)
Wrapping\WrappingGroup.cs (2)
19internal readonly struct WrappingGroup(bool isInlinable, ImmutableArray<WrapItemsAction> wrappingActions) 29public readonly ImmutableArray<WrapItemsAction> WrappingActions = wrappingActions;
Microsoft.CodeAnalysis.Features.Test.Utilities (88)
EditAndContinue\ActiveStatementsDescription.cs (13)
21public readonly ImmutableArray<UnmappedActiveStatement> OldStatements; 23public readonly ImmutableArray<SourceFileSpan> NewMappedSpans; 24public readonly ImmutableArray<ImmutableArray<SourceFileSpan>> NewMappedRegions; 25public readonly ImmutableArray<ActiveStatementLineSpan> OldUnmappedTrackingSpans; 56using var _2 = ArrayBuilder<ImmutableArray<SourceFileSpan>>.GetInstance(out var newMappedRegions); 57var newExceptionRegionMarkers = SourceMarkers.GetExceptionRegions(newMarkedSource); 93internal static ImmutableArray<UnmappedActiveStatement> CreateActiveStatementMapFromMarkers( 100var exceptionRegionMarkers = SourceMarkers.GetExceptionRegions(markedSource); 131internal static ImmutableArray<UnmappedActiveStatement> GetUnmappedActiveStatements( 147var statements = CreateActiveStatementMapFromMarkers(markedSource, tree, flags, map); 157internal static ImmutableArray<ManagedActiveStatementDebugInfo> GetActiveStatementDebugInfos( 158ImmutableArray<UnmappedActiveStatement> activeStatements,
EditAndContinue\ActiveStatementTestHelpers.cs (3)
19public static ImmutableArray<ManagedActiveStatementDebugInfo> GetActiveStatementDebugInfosCSharp( 36public static ImmutableArray<UnmappedActiveStatement> GetUnmappedActiveStatementsCSharp( 107public static IEnumerable<string> InspectNonRemappableRegions(ImmutableDictionary<ManagedMethodId, ImmutableArray<NonRemappableRegion>> regions)
EditAndContinue\DocumentAnalysisResultsDescription.cs (3)
17public readonly ImmutableArray<SemanticEditDescription> SemanticEdits; 19public readonly ImmutableArray<SequencePointUpdates> LineEdits; 21public readonly ImmutableArray<RudeEditDiagnosticDescription> Diagnostics;
EditAndContinue\EditAndContinueTestVerifier.cs (8)
49public abstract ImmutableArray<SyntaxNode> GetDeclarators(ISymbol method); 59ImmutableArray<ActiveStatement> actualNewActiveStatements, 60ImmutableArray<ImmutableArray<SourceFileSpan>> actualNewExceptionRegions) 145var newActiveStatementSpans = expectedResult.ActiveStatements.OldUnmappedTrackingSpans; 249EditSession.MergePartialEdits(oldProject.GetCompilationAsync().Result!, newProject.GetCompilationAsync().Result!, allEdits, out var mergedEdits, out _, CancellationToken.None); 275ImmutableArray<SemanticEditDescription> expectedSemanticEdits, 276ImmutableArray<SemanticEditInfo> actualSemanticEdits,
EditAndContinue\EditAndContinueWorkspaceTestBase.cs (8)
41(_, _, _) => new(ImmutableArray<ActiveStatementSpan>.Empty); 165captureMatchingDocuments: ImmutableArray<DocumentId>.Empty, 184ImmutableArray<ManagedActiveStatementDebugInfo> activeStatements = default) 193_debuggerService.GetActiveStatementsImpl = () => ImmutableArray<ManagedActiveStatementDebugInfo>.Empty; 209internal static async Task<(ModuleUpdates updates, ImmutableArray<DiagnosticData> diagnostics)> EmitSolutionUpdateAsync( 218internal static IEnumerable<string> InspectDiagnostics(ImmutableArray<DiagnosticData> actual) 294generatorDriver.RunGeneratorsAndUpdateCompilation(compilation, out var outputCompilation, out var generatorDiagnostics); 391internal static unsafe void VerifyEncLogMetadata(ImmutableArray<byte> delta, params EditAndContinueLogEntry[] expectedRows)
EditAndContinue\EditScriptDescription.cs (1)
20public ImmutableArray<Edit<SyntaxNode>> Edits => Script.Edits;
EditAndContinue\MockActiveStatementSpanProvider.cs (8)
14public Func<Solution, ImmutableArray<DocumentId>, ImmutableArray<ImmutableArray<ActiveStatementSpan>>>? GetBaseActiveStatementSpansImpl; 15public Func<TextDocument, ActiveStatementSpanProvider, ImmutableArray<ActiveStatementSpan>>? GetAdjustedActiveStatementSpansImpl; 17public ValueTask<ImmutableArray<ImmutableArray<ActiveStatementSpan>>> GetBaseActiveStatementSpansAsync(Solution solution, ImmutableArray<DocumentId> documentIds, CancellationToken cancellationToken) 20public ValueTask<ImmutableArray<ActiveStatementSpan>> GetAdjustedActiveStatementSpansAsync(TextDocument document, ActiveStatementSpanProvider activeStatementSpanProvider, CancellationToken cancellationToken)
EditAndContinue\MockEditAndContinueService.cs (14)
20public Func<Solution, ImmutableArray<DocumentId>, ImmutableArray<ImmutableArray<ActiveStatementSpan>>>? GetBaseActiveStatementSpansImpl; 22public Func<TextDocument, ActiveStatementSpanProvider, ImmutableArray<ActiveStatementSpan>>? GetAdjustedActiveStatementSpansImpl; 23public Func<Solution, IManagedHotReloadService, IPdbMatchingSourceTextProvider, ImmutableArray<DocumentId>, bool, bool, DebuggingSessionId>? StartDebuggingSessionImpl; 29public Action<Solution, ImmutableArray<ProjectId>>? UpdateBaselinesImpl; 32public Func<Document, ActiveStatementSpanProvider, ImmutableArray<Diagnostic>>? GetDocumentDiagnosticsImpl; 43public void UpdateBaselines(DebuggingSessionId sessionId, Solution solution, ImmutableArray<ProjectId> rebuiltProjects) 52public ValueTask<ImmutableArray<ImmutableArray<ActiveStatementSpan>>> GetBaseActiveStatementSpansAsync(DebuggingSessionId sessionId, Solution solution, ImmutableArray<DocumentId> documentIds, CancellationToken cancellationToken) 55public ValueTask<ImmutableArray<ActiveStatementSpan>> GetAdjustedActiveStatementSpansAsync(DebuggingSessionId sessionId, TextDocument document, ActiveStatementSpanProvider activeStatementSpanProvider, CancellationToken cancellationToken) 58public ValueTask<ImmutableArray<Diagnostic>> GetDocumentDiagnosticsAsync(Document document, ActiveStatementSpanProvider activeStatementSpanProvider, CancellationToken cancellationToken) 64public ValueTask<DebuggingSessionId> StartDebuggingSessionAsync(Solution solution, IManagedHotReloadService debuggerService, IPdbMatchingSourceTextProvider sourceTextProvider, ImmutableArray<DocumentId> captureMatchingDocuments, bool captureAllMatchingDocuments, bool reportDiagnostics, CancellationToken cancellationToken)
EditAndContinue\MockManagedEditAndContinueDebuggerService.cs (4)
19public Func<ImmutableArray<ManagedActiveStatementDebugInfo>>? GetActiveStatementsImpl; 20public Func<ImmutableArray<string>>? GetCapabilitiesImpl; 22public ValueTask<ImmutableArray<ManagedActiveStatementDebugInfo>> GetActiveStatementsAsync(CancellationToken cancellationToken) 40public ValueTask<ImmutableArray<string>> GetCapabilitiesAsync(CancellationToken cancellationToken)
EditAndContinue\MockManagedHotReloadService.cs (2)
25public ValueTask<ImmutableArray<ManagedActiveStatementDebugInfo>> GetActiveStatementsAsync(CancellationToken cancellation) 31public ValueTask<ImmutableArray<string>> GetCapabilitiesAsync(CancellationToken cancellation)
EditAndContinue\MockPdbMatchingSourceTextProvider.cs (2)
16public Func<string, ImmutableArray<byte>, SourceHashAlgorithm, string?>? TryGetMatchingSourceTextImpl { get; set; } 18public ValueTask<string?> TryGetMatchingSourceTextAsync(string filePath, ImmutableArray<byte> requiredChecksum, SourceHashAlgorithm checksumAlgorithm, CancellationToken cancellationToken)
EditAndContinue\SourceMarkers.cs (5)
112public static ImmutableArray<ImmutableArray<TextSpan>> GetExceptionRegions(string markedSource) 140public static ImmutableArray<ImmutableArray<TextSpan>> GetNodeSpans(string markedSource) 157public static ImmutableArray<TextSpan> GetSpans(string markedSource, string tagName)
EditAndContinue\SymReaderTestHelpers.cs (3)
38public static (ImmutableArray<byte> PEImage, ImmutableArray<byte> PdbImage) EmitToArrays(this Compilation compilation, EmitOptions options) 45public static ISymUnmanagedReader5 OpenDummySymReader(ImmutableArray<byte> pdbImage)
EditAndContinue\SyntaxMapDescription.cs (8)
16public readonly struct Mapping(ImmutableArray<(TextSpan oldSpan, TextSpan newSpan)> nodeSpans, ImmutableArray<TextSpan> newSpans, Match<SyntaxNode>? match) 18public readonly ImmutableArray<(TextSpan oldSpan, TextSpan newSpan)> Spans = nodeSpans; 39public readonly ImmutableArray<ImmutableArray<TextSpan>> OldNodeSpans; 40public readonly ImmutableArray<ImmutableArray<TextSpan>> NewNodeSpans; 43public readonly ImmutableArray<TextSpan> NewSpans;
Options\NamingStyleTestUtilities.cs (1)
26public static string Inspect<T>(ImmutableArray<T> items) where T : notnull
Snippets\AbstractSnippetProviderTests.cs (5)
34var metadataReferences = await referenceAssemblies.ResolveAsync(LanguageName, CancellationToken.None); 66TestFileMarkupParser.GetPositionAndSpans(markupAfterCommit, out markupAfterCommit, out int finalCaretPosition, out ImmutableDictionary<string, ImmutableArray<TextSpan>> placeholderLocations); 69var placeholderLocationsArray = new ImmutableArray<TextSpan>[placeholderLocations.Count]; 94var expectedSpans = placeholderLocationsArray[i]; 117var metadataReferences = await referenceAssemblies.ResolveAsync(LanguageName, CancellationToken.None);
Microsoft.CodeAnalysis.Features.UnitTests (58)
EditAndContinue\ActiveStatementsMapTests.cs (14)
34var array = ImmutableArray.Create( 50var array = ImmutableArray.Create( 69var array = ImmutableArray.Create( 82var array = ImmutableArray.Create( 124var documentPathMap = new Dictionary<string, ImmutableArray<ActiveStatement>>(); 141var map = ActiveStatementsMap.Create(debugInfos, remapping: ImmutableDictionary<ManagedMethodId, ImmutableArray<NonRemappableRegion>>.Empty); 179var documentPathMap = new Dictionary<string, ImmutableArray<ActiveStatement>>(); 191var map = ActiveStatementsMap.Create(debugInfos, remapping: ImmutableDictionary<ManagedMethodId, ImmutableArray<NonRemappableRegion>>.Empty); 230var documentPathMap = new Dictionary<string, ImmutableArray<ActiveStatement>>(); 243var remapping = ImmutableDictionary.CreateBuilder<ManagedMethodId, ImmutableArray<NonRemappableRegion>>(); 289var debugInfos = ActiveStatementsDescription.GetActiveStatementDebugInfos( 302var remapping = ImmutableDictionary<ManagedMethodId, ImmutableArray<NonRemappableRegion>>.Empty.Add( 329var debugInfos = ActiveStatementsDescription.GetActiveStatementDebugInfos( 340var remapping = ImmutableDictionary<ManagedMethodId, ImmutableArray<NonRemappableRegion>>.Empty.Add(
EditAndContinue\EditAndContinueCapabilitiesTests.cs (5)
16var capabilities = ImmutableArray.Create("Baseline"); 27var capabilities = ImmutableArray.Create("BaseLine"); 37var capabilities = ImmutableArray.Create("Baseline", "Invalid", "NewTypeDefinition"); 48var capabilities = ImmutableArray.Create("Baseline", "90", "NewTypeDefinition"); 61var capabilities = ImmutableArray.Create(name);
EditAndContinue\EditAndContinueDiagnosticDescriptorsTests.cs (1)
55var descriptors = EditAndContinueDiagnosticDescriptors.GetDescriptors();
EditAndContinue\EditAndContinueWorkspaceServiceTests.cs (9)
135var captureMatchingDocuments = captureAllDocuments 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); 4511ImmutableArray<byte> metadataDelta,
EditAndContinue\EditSessionActiveStatementsTests.cs (16)
35ImmutableArray<ManagedActiveStatementDebugInfo> activeStatements, 36ImmutableDictionary<ManagedMethodId, ImmutableArray<NonRemappableRegion>> nonRemappableRegions = null, 60debuggingSession.RestartEditSession(nonRemappableRegions ?? ImmutableDictionary<ManagedMethodId, ImmutableArray<NonRemappableRegion>>.Empty, inBreakState: true); 266previousNonRemappableRegions: ImmutableDictionary<ManagedMethodId, ImmutableArray<NonRemappableRegion>>.Empty, 268out var activeStatementsInUpdatedMethods, 269out var nonRemappableRegions, 270out var exceptionRegionUpdates); 381previousNonRemappableRegions: ImmutableDictionary<ManagedMethodId, ImmutableArray<NonRemappableRegion>>.Empty, 383out var activeStatementsInUpdatedMethods, 384out var nonRemappableRegions, 385out var exceptionRegionUpdates); 488var exceptionSpans = SourceMarkers.GetExceptionRegions(markedSourceV1); 500var initialNonRemappableRegions = new Dictionary<ManagedMethodId, ImmutableArray<NonRemappableRegion>> 576out var activeStatementsInUpdatedMethods, 577out var nonRemappableRegions, 578out var exceptionRegionUpdates);
EditAndContinue\EmitSolutionUpdateResultsTests.cs (13)
145var actual = data.GetAllDiagnostics(); 176out var projectsToRestart, 177out var projectsToRebuild); 202out var projectsToRestart, 203out var projectsToRebuild); 231out var projectsToRestart, 232out var projectsToRebuild); 257out var projectsToRestart, 258out var projectsToRebuild); 287out var projectsToRestart, 288out var projectsToRebuild); 321out var projectsToRestart, 322out var projectsToRebuild);
Microsoft.CodeAnalysis.InteractiveHost (68)
Interactive\Core\InteractiveHost.cs (2)
401public Task<RemoteExecutionResult> SetPathsAsync(ImmutableArray<string> referenceSearchPaths, ImmutableArray<string> sourceSearchPaths, string baseDirectory)
Interactive\Core\InteractiveHost.LazyRemoteService.cs (3)
78sourcePaths: ImmutableArray<string>.Empty, 79referencePaths: ImmutableArray<string>.Empty, 84imports: ImmutableArray<string>.Empty));
Interactive\Core\InteractiveHost.Service.cs (18)
67internal readonly ImmutableArray<string> SourceSearchPaths; 75ImmutableArray<string> sourceSearchPaths, 109private static readonly ImmutableArray<string> s_systemNoShadowCopyDirectories = ImmutableArray.Create( 125searchPaths: ImmutableArray<string>.Empty, 135ImmutableArray<string>.Empty, 185private SourceReferenceResolver CreateSourceReferenceResolver(ImmutableArray<string> searchPaths, string baseDirectory) 320var resolvedReferences = state.ScriptOptions.MetadataResolver.ResolveReference(reference, baseFilePath: null, properties: MetadataReferenceProperties.Assembly); 420var newSourcePaths = globals.SourcePaths.ToImmutableArray(); 421var newReferencePaths = globals.ReferencePaths.ToImmutableArray(); 505var initialImports = ImmutableArray<string>.Empty; 538var referencePaths = args.ReferencePaths; 539var sourcePaths = args.SourcePaths; 542var referencePathsWithoutRspDir = referencePaths.Remove(rspDirectory); 554var resolvedReferences = rspMetadataResolver.ResolveReference(cmdLineReference.Reference, baseFilePath: null, properties: MetadataReferenceProperties.Assembly); 619private string? ResolveRelativePath(string path, string baseDirectory, ImmutableArray<string> searchPaths, bool displayPath) 666var diagnostics = script.Compile(); 773private void DisplayInteractiveErrors(ImmutableArray<Diagnostic> diagnostics, TextWriter output)
Interactive\Core\InteractiveHostPlatformInfo.cs (2)
31public readonly ImmutableArray<string> PlatformAssemblyPaths; 34public InteractiveHostPlatformInfo(ImmutableArray<string> platformAssemblyPaths, bool hasGlobalAssemblyCache)
Interactive\Core\RemoteExecutionResult.cs (4)
34public readonly ImmutableArray<string> SourcePaths; 39public readonly ImmutableArray<string> ReferencePaths; 50ImmutableArray<string> sourcePaths, 51ImmutableArray<string> referencePaths,
Interactive\Core\RemoteInitializationResult.cs (4)
30public readonly ImmutableArray<string> MetadataReferencePaths; 32public readonly ImmutableArray<string> Imports; 34public RemoteInitializationResult(string? initializationScript, ImmutableArray<string> metadataReferencePaths, ImmutableArray<string> imports)
src\Compilers\Core\Portable\Collections\ArrayBuilderExtensions.cs (8)
71public static ImmutableArray<TResult> SelectAsArray<TItem, TResult>(this ArrayBuilder<TItem> items, Func<TItem, TResult> map) 76return ImmutableArray<TResult>.Empty; 111public static ImmutableArray<TResult> SelectAsArray<TItem, TArg, TResult>(this ArrayBuilder<TItem> items, Func<TItem, TArg, TResult> map, TArg arg) 116return ImmutableArray<TResult>.Empty; 151public static ImmutableArray<TResult> SelectAsArrayWithIndex<TItem, TArg, TResult>(this ArrayBuilder<TItem> items, Func<TItem, int, TArg, TResult> map, TArg arg) 156return ImmutableArray<TResult>.Empty; 222public static ImmutableArray<T> ToImmutableOrEmptyAndFree<T>(this ArrayBuilder<T>? builder) 224return builder?.ToImmutableAndFree() ?? ImmutableArray<T>.Empty;
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
702public static string NormalizePathPrefix(string filePath, ImmutableArray<KeyValuePair<string, string>> pathMap)
src\Compilers\Core\Portable\InternalUtilities\Hash.cs (3)
114internal static int CombineValues<T>(ImmutableArray<T> values, int maxItemsToHash = int.MaxValue) 165internal static int CombineValues(ImmutableArray<string> values, StringComparer stringComparer, int maxItemsToHash = int.MaxValue) 246internal static int GetFNVHashCode(ImmutableArray<byte> data)
src\Dependencies\PooledObjects\ArrayBuilder.cs (23)
54private readonly ImmutableArray<T>.Builder _builder; 76public ImmutableArray<T> ToImmutable() 84public ImmutableArray<T> ToImmutableAndClear() 86ImmutableArray<T> result; 89result = ImmutableArray<T>.Empty; 353public ImmutableArray<T> ToImmutableOrNull() 366public ImmutableArray<U> ToDowncastedImmutable<U>() 371return ImmutableArray<U>.Empty; 383public ImmutableArray<U> ToDowncastedImmutableAndFree<U>() where U : T 385var result = ToDowncastedImmutable<U>(); 393public ImmutableArray<T> ToImmutableAndFree() 397ImmutableArray<T> result; 400result = ImmutableArray<T>.Empty; 516internal Dictionary<K, ImmutableArray<T>> ToDictionary<K>(Func<T, K> keySelector, IEqualityComparer<K>? comparer = null) 521var dictionary1 = new Dictionary<K, ImmutableArray<T>>(1, comparer); 529return new Dictionary<K, ImmutableArray<T>>(comparer); 548var dictionary = new Dictionary<K, ImmutableArray<T>>(accumulator.Count, comparer); 587public void AddRange(ImmutableArray<T> items) 592public void AddRange(ImmutableArray<T> items, int length) 597public void AddRange(ImmutableArray<T> items, int start, int length) 607public void AddRange<S>(ImmutableArray<S> items) where S : class, T 609AddRange(ImmutableArray<T>.CastUp(items)); 706public ImmutableArray<S> SelectDistinct<S>(Func<T, S> selector)
Microsoft.CodeAnalysis.LanguageServer (57)
BrokeredServices\ServiceBrokerFactory.cs (1)
36private readonly ImmutableArray<IOnServiceBrokerInitialized> _onServiceBrokerInitialized;
ExportProviderBuilder.cs (3)
68ImmutableArray<string> assemblyPaths, 122private static string GetCompositionCacheFilePath(string cacheDirectory, ImmutableArray<string> assemblyPaths) 132static string ComputeAssemblyHash(ImmutableArray<string> assemblyPaths)
HostWorkspace\FileWatching\DelegatingFileChangeWatcher.cs (1)
44public IFileChangeContext CreateContext(ImmutableArray<WatchedDirectory> watchedDirectories)
HostWorkspace\FileWatching\LspFileChangeWatcher.cs (3)
43public IFileChangeContext CreateContext(ImmutableArray<WatchedDirectory> watchedDirectories) 48private readonly ImmutableArray<WatchedDirectory> _watchedDirectories; 70public FileChangeContext(ImmutableArray<WatchedDirectory> watchedDirectories, LspFileChangeWatcher lspFileChangeWatcher)
HostWorkspace\FileWatching\SimpleFileChangeWatcher.cs (4)
20public IFileChangeContext CreateContext(ImmutableArray<WatchedDirectory> watchedDirectories) 25private readonly ImmutableArray<WatchedDirectory> _watchedDirectories; 30private readonly ImmutableArray<FileSystemWatcher> _directoryFileSystemWatchers; 33public FileChangeContext(ImmutableArray<WatchedDirectory> watchedDirectories)
HostWorkspace\HostDiagnosticAnalyzerProvider.cs (3)
14private readonly ImmutableArray<(AnalyzerFileReference reference, string extensionId)> _analyzerReferences; 20_analyzerReferences = ImmutableArray<(AnalyzerFileReference reference, string extensionId)>.Empty; 31public ImmutableArray<(AnalyzerFileReference reference, string extensionId)> GetAnalyzerReferencesInExtensions()
HostWorkspace\LanguageServerProjectSystem.cs (2)
127public async Task OpenProjectsAsync(ImmutableArray<string> projectFilePaths) 318async Task LogDiagnosticsAsync(ImmutableArray<DiagnosticLogItem> diagnosticLogItems)
HostWorkspace\LanguageServerWorkspaceFactory.cs (1)
57public async Task InitializeSolutionLevelAnalyzersAsync(ImmutableArray<string> analyzerPaths)
HostWorkspace\LoadedProject.cs (7)
38private Lazy<ImmutableArray<Matcher>>? _mostRecentFileMatchers; 40private ImmutableArray<CommandLineReference> _mostRecentMetadataReferences = ImmutableArray<CommandLineReference>.Empty; 41private ImmutableArray<CommandLineAnalyzerReference> _mostRecentAnalyzerReferences = ImmutableArray<CommandLineAnalyzerReference>.Empty; 214document => _projectSystemProject.AddDynamicSourceFile(document.FilePath, folders: ImmutableArray<string>.Empty), 222_mostRecentFileMatchers = new Lazy<ImmutableArray<Matcher>>(() =>
HostWorkspace\ProjectDependencyHelper.cs (4)
29var newPackageReferences = newProjectFileInfo.PackageReferences; 77if (!projectAssetsMap.TryGetValue(reference.Name, out var projectAssetsVersions)) 107static ImmutableDictionary<string, ImmutableArray<NuGetVersion>> CreateProjectAssetsMap(LockFile lockFile) 123internal static async Task RestoreProjectsAsync(ImmutableArray<string> projectPaths, CancellationToken cancellationToken)
HostWorkspace\ProjectTelemetry\ProjectLoadTelemetryReporter.cs (6)
26public ImmutableArray<CommandLineReference> MetadataReferences { get; init; } 65var projectCapabilities = projectFileInfo.ProjectCapabilities; 102var contentFiles = projectFileInfo.ContentFilePaths; 119private static ImmutableArray<string> GetHashedReferences(ImmutableArray<CommandLineReference> metadataReferences) 151private static ImmutableArray<string> GetTargetFrameworks(IEnumerable<ProjectFileInfo> projectFileInfos)
HostWorkspace\WorkspaceProjectFactoryService.cs (1)
78return Task.FromResult((IReadOnlyCollection<string>)ImmutableArray<string>.Empty);
LanguageServer\Handler\Restore\RestoreHandler.cs (2)
48private async Task RestoreAsync(ImmutableArray<string> pathsToRestore, BufferedProgress<RestorePartialResult> progress, CancellationToken cancellationToken) 86private static ImmutableArray<string> GetRestorePaths(RestoreParams request, Solution solution, RequestContext context)
Program.cs (1)
111var analyzerPaths = new DirectoryInfo(AppContext.BaseDirectory).GetFiles("*.dll")
Services\ExtensionAssemblyManager.cs (2)
37public ImmutableArray<string> ExtensionAssemblyPaths { get; } 41ImmutableArray<string> extensionAssemblyPaths)
Testing\TestDiscoverer.cs (7)
33public async Task<ImmutableArray<TestCase>> DiscoverTestsAsync( 52return ImmutableArray<TestCase>.Empty; 67return ImmutableArray<TestCase>.Empty; 79async Task<ImmutableArray<SyntaxNode>> GetPotentialTestMethodsAsync(LSP.Range range, Document document, ITestMethodFinder testMethodFinder, CancellationToken cancellationToken) 89private async Task<ImmutableArray<TestCase>> MatchDiscoveredTestsToTestsInRangeAsync(ImmutableArray<TestCase> discoveredTests, ImmutableArray<SyntaxNode> testMethods, ITestMethodFinder testMethodFinder, Document document, CancellationToken cancellationToken)
Testing\TestDiscoverer.DiscoveryHandler.cs (1)
52public ImmutableArray<TestCase> GetTestCases()
Testing\TestRunner.cs (2)
30ImmutableArray<TestCase> testCases, 52ImmutableArray<TestCase> testCases,
Testing\TestRunner.TestRunHandler.cs (6)
157var standardOutputMessages = GetTestMessages(result.Messages, TestResultMessage.StandardOutCategory); 164var standardErrorMessages = GetTestMessages(result.Messages, TestResultMessage.StandardErrorCategory); 171var debugTraceMessages = GetTestMessages(result.Messages, TestResultMessage.DebugTraceCategory); 178var additionalInfoMessages = GetTestMessages(result.Messages, TestResultMessage.AdditionalInfoCategory); 196static ImmutableArray<TestResultMessage> GetTestMessages(Collection<TestResultMessage> messages, string requiredCategory) 201static string FormatMessages(ImmutableArray<TestResultMessage> messages, int indentation)
Microsoft.CodeAnalysis.LanguageServer.Protocol (494)
DefaultCapabilitiesProvider.cs (1)
23private readonly ImmutableArray<Lazy<CompletionProvider, CompletionProviderMetadata>> _completionProviders;
Extensions\Extensions.cs (8)
65public static ImmutableArray<TextDocument> GetTextDocuments(this Solution solution, Uri documentUri) 67var documentIds = GetDocumentIds(solution, documentUri); 76public static ImmutableArray<DocumentId> GetDocumentIds(this Solution solution, Uri documentUri) 114var documents = solution.GetTextDocuments(documentIdentifier.Uri); 121ImmutableArray<T> items, 151public static T FindDocumentInProjectContext<T>(this ImmutableArray<T> documents, TextDocumentIdentifier documentIdentifier, Func<Solution, DocumentId, T> documentGetter) where T : TextDocument 167var projects = solution.Projects.Where(project => project.FilePath == projectIdentifier.Uri.LocalPath).ToImmutableArray(); 175var documentIds = GetDocumentIds(solution, documentIdentifier.Uri);
Extensions\ProtocolConversions.cs (9)
53public static readonly ImmutableDictionary<string, ImmutableArray<LSP.CompletionItemKind>> RoslynTagToCompletionItemKinds = new Dictionary<string, ImmutableArray<LSP.CompletionItemKind>>() 100public static readonly ImmutableDictionary<string, ImmutableArray<LSP.CompletionItemTag>> RoslynTagToCompletionItemTags = new Dictionary<string, ImmutableArray<LSP.CompletionItemTag>>() 388ImmutableArray<TextChange> textChanges; 860public static LSP.MarkupContent GetDocumentationMarkupContent(ImmutableArray<TaggedText> tags, TextDocument document, bool featureSupportsMarkdown) 863public static LSP.MarkupContent GetDocumentationMarkupContent(ImmutableArray<TaggedText> tags, string language, bool featureSupportsMarkdown) 992private static async Task<ImmutableArray<MappedSpanResult>?> GetMappedSpanResultAsync(TextDocument textDocument, ImmutableArray<TextSpan> textSpans, CancellationToken cancellationToken)
Extensions\ProtocolConversions.Diagnostics.cs (1)
29public static ImmutableArray<LSP.Diagnostic> ConvertDiagnostic(DiagnosticData diagnosticData, bool supportsVisualStudioExtensions, Project project, bool isLiveSource, bool potentialDuplicate, IGlobalOptionService globalOptionService)
Features\CodeCleanup\AbstractCodeCleanupService.cs (7)
36protected abstract ImmutableArray<DiagnosticSet> GetDiagnosticSets(); 45var thirdPartyDiagnosticIdsAndTitles = ImmutableArray<(string diagnosticId, string? title)>.Empty; 137Document document, ImmutableArray<DiagnosticSet> enabledDiagnosticSets, 157Document document, ImmutableArray<string> diagnosticIds, bool isAnyDiagnosticIdExplicitlyEnabled, IProgress<CodeAnalysisProgress> progressTracker, CancellationToken cancellationToken) 197private async Task<ImmutableArray<(string diagnosticId, string? title)>> GetThirdPartyDiagnosticIdsAndTitlesAsync(Document document, CancellationToken cancellationToken) 221ImmutableArray<(string diagnosticId, string? title)> diagnosticIds,
Features\CodeCleanup\DiagnosticSet.cs (2)
16public ImmutableArray<string> DiagnosticIds { get; } 25private DiagnosticSet(string description, ImmutableArray<string> diagnosticIds, bool isAnyDiagnosticIdExplicitlyEnabled)
Features\CodeCleanup\EnabledDiagnosticOptions.cs (1)
14internal sealed record EnabledDiagnosticOptions(bool FormatDocument, bool RunThirdPartyFixers, ImmutableArray<DiagnosticSet> Diagnostics, OrganizeUsingsSet OrganizeUsings);
Features\CodeFixes\CodeFixService.cs (44)
43private readonly ImmutableArray<Lazy<CodeFixProvider, CodeChangeProviderMetadata>> _fixers; 44private readonly ImmutableDictionary<string, ImmutableArray<Lazy<CodeFixProvider, CodeChangeProviderMetadata>>> _fixersPerLanguageMap; 46private readonly ConditionalWeakTable<IReadOnlyList<AnalyzerReference>, ImmutableDictionary<DiagnosticId, ImmutableArray<CodeFixProvider>>> _projectFixersMap = new(); 49private readonly ImmutableDictionary<LanguageKind, Lazy<ImmutableArray<IConfigurationFixProvider>>> _configurationProvidersMap; 50private readonly ImmutableArray<Lazy<IErrorLoggerService>> _errorLoggers; 52private ImmutableDictionary<LanguageKind, Lazy<ImmutableDictionary<DiagnosticId, ImmutableArray<CodeFixProvider>>>>? _lazyWorkspaceFixersMap; 55private ImmutableDictionary<CodeFixProvider, ImmutableArray<DiagnosticId>> _fixerToFixableIdsMap = ImmutableDictionary<CodeFixProvider, ImmutableArray<DiagnosticId>>.Empty; 106ImmutableArray<DiagnosticData> allDiagnostics; 191ImmutableArray<DiagnosticData> diagnostics; 244private static async Task<ImmutableArray<DiagnosticData>> GetCopilotDiagnosticsAsync( 257SourceText text, ImmutableArray<DiagnosticData> diagnostics) 290ImmutableArray<DiagnosticData> diagnostics; 356private bool TryGetWorkspaceFixersMap(TextDocument document, [NotNullWhen(true)] out ImmutableDictionary<DiagnosticId, ImmutableArray<CodeFixProvider>>? fixerMap) 366fixerMap = ImmutableDictionary<DiagnosticId, ImmutableArray<CodeFixProvider>>.Empty; 370using var _ = PooledDictionary<DiagnosticId, ImmutableArray<CodeFixProvider>>.GetInstance(out var builder); 468if (hasAnyProjectFixer && projectFixersMap.TryGetValue(diagnosticId, out var projectFixers)) 474if (hasAnySharedFixer && fixerMap!.TryGetValue(diagnosticId, out var workspaceFixers)) 582ImmutableArray<CodeFixProvider> fixers, 617private static async Task<ImmutableArray<CodeFix>> GetCodeFixesAsync( 619ImmutableArray<Diagnostic> diagnostics, 655static ImmutableArray<Diagnostic> FilterApplicableDiagnostics( 656ImmutableArray<Diagnostic> applicableDiagnostics, 739Func<ImmutableArray<Diagnostic>, Task<ImmutableArray<CodeFix>>> getFixes, 768var supportedScopes = ImmutableArray<FixAllScope>.Empty; 826private ImmutableArray<DiagnosticId> GetFixableDiagnosticIds(CodeFixProvider fixer, IExtensionManager? extensionManager) 853private static ImmutableArray<string> GetAndTestFixableDiagnosticIds(CodeFixProvider codeFixProvider) 855var ids = codeFixProvider.FixableDiagnosticIds; 867private ImmutableDictionary<LanguageKind, Lazy<ImmutableDictionary<DiagnosticId, ImmutableArray<CodeFixProvider>>>> GetFixerPerLanguageMap( 870var fixerMap = ImmutableDictionary.Create<LanguageKind, Lazy<ImmutableDictionary<DiagnosticId, ImmutableArray<CodeFixProvider>>>>(); 874var lazyMap = new Lazy<ImmutableDictionary<DiagnosticId, ImmutableArray<CodeFixProvider>>>(() => 905private static ImmutableDictionary<LanguageKind, Lazy<ImmutableArray<IConfigurationFixProvider>>> GetConfigurationProvidersPerLanguageMap( 910var configurationFixerMap = ImmutableDictionary.CreateBuilder<LanguageKind, Lazy<ImmutableArray<IConfigurationFixProvider>>>(); 913var lazyConfigurationFixers = new Lazy<ImmutableArray<IConfigurationFixProvider>>(() => GetConfigurationFixProviders(lazyFixers)); 919static ImmutableArray<IConfigurationFixProvider> GetConfigurationFixProviders(ImmutableArray<Lazy<IConfigurationFixProvider, CodeChangeProviderMetadata>> languageKindAndFixers) 957private ImmutableDictionary<DiagnosticId, ImmutableArray<CodeFixProvider>> GetProjectFixers(TextDocument document) 961? ImmutableDictionary<DiagnosticId, ImmutableArray<CodeFixProvider>>.Empty 965private ImmutableDictionary<DiagnosticId, ImmutableArray<CodeFixProvider>> ComputeProjectFixers(TextDocument document) 973var fixableIds = this.GetFixableDiagnosticIds(fixer, extensionManager); 988var kinds = EnumArrayConverter.FromStringArray<TextDocumentKind>(attribute.DocumentKinds); 999ImmutableArray<CodeFixProvider> allFixers,
Features\CodeFixes\CodeFixService.FixAllPredefinedDiagnosticProvider.cs (2)
19private readonly ImmutableArray<Diagnostic> _diagnostics; 21public FixAllPredefinedDiagnosticProvider(ImmutableArray<Diagnostic> diagnostics)
Features\CodeFixes\CodeFixService.ProjectCodeFixProvider.cs (2)
15protected override ImmutableArray<string> GetLanguages(ExportCodeFixProviderAttribute exportAttribute) 18protected override bool TryGetExtensionsFromReference(AnalyzerReference reference, out ImmutableArray<CodeFixProvider> extensions)
Features\CodeFixes\ICodeFixService.cs (2)
38public static Task<ImmutableArray<CodeFixCollection>> GetFixesAsync(this ICodeFixService service, TextDocument document, TextSpan range, CancellationToken cancellationToken) 41public static Task<ImmutableArray<CodeFixCollection>> GetFixesAsync(this ICodeFixService service, TextDocument document, TextSpan textSpan, ICodeActionRequestPriorityProvider priorityProvider, CancellationToken cancellationToken)
Features\DecompiledSource\AssemblyResolver.cs (3)
24private static readonly Dictionary<MetadataReference, (string fileName, ImmutableArray<byte> image)> _inMemoryImagesForTesting = []; 112var publicKeyToken = assembly.Identity.PublicKey; 174public static void AddInMemoryImage(MetadataReference reference, string fileName, ImmutableArray<byte> image)
Features\Diagnostics\DiagnosticAnalyzerService.cs (4)
79public async Task<ImmutableArray<DiagnosticData>> GetDiagnosticsForSpanAsync( 101public Task<ImmutableArray<DiagnosticData>> GetCachedDiagnosticsAsync(Workspace workspace, ProjectId? projectId, DocumentId? documentId, bool includeSuppressedDiagnostics, bool includeLocalDocumentDiagnostics, bool includeNonLocalDocumentDiagnostics, CancellationToken cancellationToken) 113public Task<ImmutableArray<DiagnosticData>> GetDiagnosticsForIdsAsync( 120public Task<ImmutableArray<DiagnosticData>> GetProjectDiagnosticsForIdsAsync(
Features\Diagnostics\DiagnosticDataExtensions.cs (1)
18internal static bool TryGetUnnecessaryDataLocations(this DiagnosticData diagnosticData, [NotNullWhen(true)] out ImmutableArray<DiagnosticDataLocation>? unnecessaryLocations)
Features\Diagnostics\DocumentAnalysisExecutor.cs (9)
34private readonly ImmutableArray<DiagnosticAnalyzer> _compilationBasedProjectAnalyzersInAnalysisScope; 35private readonly ImmutableArray<DiagnosticAnalyzer> _compilationBasedHostAnalyzersInAnalysisScope; 102var generatorDiagnostics = await GetSourceGeneratorDiagnosticsAsync(textDocument.Project, cancellationToken).ConfigureAwait(false); 199private async Task<ImmutableArray<Diagnostic>> GetSourceGeneratorDiagnosticsAsync(Project project, CancellationToken cancellationToken) 212private async Task<ImmutableArray<DiagnosticData>> GetCompilerAnalyzerDiagnosticsAsync(DiagnosticAnalyzer analyzer, TextSpan? span, CancellationToken cancellationToken) 231private async Task<ImmutableArray<DiagnosticData>> GetSyntaxDiagnosticsAsync(DiagnosticAnalyzer analyzer, bool isCompilerAnalyzer, CancellationToken cancellationToken) 266private async Task<ImmutableArray<DiagnosticData>> GetSemanticDiagnosticsAsync(DiagnosticAnalyzer analyzer, bool isCompilerAnalyzer, CancellationToken cancellationToken) 390private static async Task<ImmutableArray<DiagnosticData>> RemapDiagnosticLocationsIfRequiredAsync( 392ImmutableArray<DiagnosticData> diagnostics,
Features\Diagnostics\DocumentAnalysisExecutor_Helpers.cs (8)
133ImmutableArray<DiagnosticAnalyzer> projectAnalyzers, 134ImmutableArray<DiagnosticAnalyzer> hostAnalyzers, 241public static async Task<ImmutableArray<Diagnostic>> ComputeDocumentDiagnosticAnalyzerDiagnosticsAsync( 250ImmutableArray<Diagnostic> diagnostics; 282public static async Task<ImmutableArray<Diagnostic>> ComputeProjectDiagnosticAnalyzerDiagnosticsAsync( 290ImmutableArray<Diagnostic> diagnostics; 319private static async Task VerifyDiagnosticLocationsAsync(ImmutableArray<Diagnostic> diagnostics, Project project, CancellationToken cancellationToken) 430var documentIds = targetTextDocument.Project.Solution.GetDocumentIdsWithFilePath(lineSpan.Path);
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.AnalysisData.cs (5)
37public readonly ImmutableArray<DiagnosticData> Items; 42public readonly ImmutableArray<DiagnosticData> OldItems; 44public DocumentAnalysisData(VersionStamp version, int lineCount, ImmutableArray<DiagnosticData> items) 54public DocumentAnalysisData(VersionStamp version, int lineCount, ImmutableArray<DiagnosticData> oldItems, ImmutableArray<DiagnosticData> newItems)
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.CompilationManager.cs (1)
13private static Task<CompilationWithAnalyzersPair?> CreateCompilationWithAnalyzersAsync(Project project, ImmutableArray<StateSet> stateSets, bool includeSuppressedDiagnostics, bool crashOnAnalyzerException, CancellationToken cancellationToken)
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.cs (2)
84var analyzers = await _stateManager.GetOrCreateStateSetsAsync(project, cancellationToken).ConfigureAwait(false); 89private static string GetProjectLogMessage(Project project, ImmutableArray<StateSet> stateSets)
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.Executor.cs (14)
26CompilationWithAnalyzersPair? compilationWithAnalyzers, Project project, ImmutableArray<StateSet> stateSets, CancellationToken cancellationToken) 92CompilationWithAnalyzersPair? compilationWithAnalyzers, Project project, ImmutableArray<DiagnosticAnalyzer> ideAnalyzers, CancellationToken cancellationToken) 123CompilationWithAnalyzersPair? compilationWithAnalyzers, Project project, ImmutableArray<StateSet> stateSets, 135if (compilationWithAnalyzers != null && TryReduceAnalyzersToRun(compilationWithAnalyzers, version, existing, out var projectAnalyzersToRun, out var hostAnalyzersToRun)) 189out ImmutableArray<DiagnosticAnalyzer> projectAnalyzers, 190out ImmutableArray<DiagnosticAnalyzer> hostAnalyzers) 238ImmutableArray<DiagnosticAnalyzer> ideAnalyzers, 303ImmutableDictionary<DocumentId, ImmutableArray<DiagnosticData>>.Builder? lazyLoadDiagnostics = null; 310lazyLoadDiagnostics ??= ImmutableDictionary.CreateBuilder<DocumentId, ImmutableArray<DiagnosticData>>(); 323syntaxLocalMap: lazyLoadDiagnostics?.ToImmutable() ?? ImmutableDictionary<DocumentId, ImmutableArray<DiagnosticData>>.Empty, 324semanticLocalMap: ImmutableDictionary<DocumentId, ImmutableArray<DiagnosticData>>.Empty, 325nonLocalMap: ImmutableDictionary<DocumentId, ImmutableArray<DiagnosticData>>.Empty, 329var generatorDiagnostics = await _diagnosticAnalyzerRunner.GetSourceGeneratorDiagnosticsAsync(project, cancellationToken).ConfigureAwait(false);
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.IncrementalMemberEditAnalyzer.cs (23)
46public async Task<ImmutableDictionary<DiagnosticAnalyzer, ImmutableArray<DiagnosticData>>> ComputeDiagnosticsAsync( 48ImmutableArray<AnalyzerWithState> analyzersWithState, 50Func<DiagnosticAnalyzer, DocumentAnalysisExecutor, CancellationToken, Task<ImmutableArray<DiagnosticData>>> computeAnalyzerDiagnosticsAsync, 51Func<DocumentAnalysisExecutor, CancellationToken, Task<ImmutableDictionary<DiagnosticAnalyzer, ImmutableArray<DiagnosticData>>>> computeDiagnosticsNonIncrementallyAsync, 116using var _ = PooledDictionary<DiagnosticAnalyzer, ImmutableArray<DiagnosticData>>.GetInstance(out var builder); 131ImmutableArray<TextSpan> oldMemberSpans, 132PooledDictionary<DiagnosticAnalyzer, ImmutableArray<DiagnosticData>> builder) 146ImmutableArray<TextSpan> oldMemberSpans, 147PooledDictionary<DiagnosticAnalyzer, ImmutableArray<DiagnosticData>> builder) 158ImmutableArray<TextSpan> oldMemberSpans, 159PooledDictionary<DiagnosticAnalyzer, ImmutableArray<DiagnosticData>> builder) 171ImmutableArray<TextSpan> oldMemberSpans, 172PooledDictionary<DiagnosticAnalyzer, ImmutableArray<DiagnosticData>> builder) 201private async Task<(SyntaxNode changedMember, int changedMemberId, ImmutableArray<TextSpan> memberSpans, Document lastDocument)?> TryGetChangedMemberAsync( 236private static async Task<ImmutableArray<DiagnosticData>> GetUpdatedDiagnosticsForMemberEditAsync( 237ImmutableArray<DiagnosticData> diagnostics, 243ImmutableArray<TextSpan> oldMemberSpans, 244Func<DiagnosticAnalyzer, DocumentAnalysisExecutor, CancellationToken, Task<ImmutableArray<DiagnosticData>>> computeAnalyzerDiagnosticsAsync, 263if (TryGetUpdatedDocumentDiagnostics(existingData, oldMemberSpans, diagnostics, tree, text, changedMember, changedMemberId, out var updatedDiagnostics)) 290ImmutableArray<TextSpan> oldMemberSpans, 291ImmutableArray<DiagnosticData> memberDiagnostics, 296out ImmutableArray<DiagnosticData> updatedDiagnostics) 302var diagnostics = existingData.Items;
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.IncrementalMemberEditAnalyzer_MemberSpans.cs (5)
23private readonly record struct MemberSpans(DocumentId DocumentId, VersionStamp Version, ImmutableArray<TextSpan> Spans); 28private async Task<ImmutableArray<TextSpan>> GetOrCreateMemberSpansAsync(Document document, VersionStamp version, CancellationToken cancellationToken) 36var memberSpans = await CreateMemberSpansAsync(document, version, cancellationToken).ConfigureAwait(false); 45static async Task<ImmutableArray<TextSpan>> CreateMemberSpansAsync(Document document, VersionStamp version, CancellationToken cancellationToken) 57private void SaveMemberSpans(DocumentId documentId, VersionStamp version, ImmutableArray<TextSpan> memberSpans)
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.InMemoryStorage.cs (2)
69public readonly ImmutableArray<DiagnosticData> Diagnostics; 71public CacheEntry(VersionStamp version, ImmutableArray<DiagnosticData> diagnostics)
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.InProcOrRemoteHostAnalyzerRunner.cs (6)
91public async Task<ImmutableArray<Diagnostic>> GetSourceGeneratorDiagnosticsAsync(Project project, CancellationToken cancellationToken) 100var result = await remoteHostClient.TryInvokeAsync<IRemoteDiagnosticAnalyzerService, ImmutableArray<DiagnosticData>>( 178ImmutableArray<AnalyzerPerformanceInfo> performanceInfo = []; 264private static ImmutableDictionary<DocumentId, ImmutableArray<DiagnosticData>> Hydrate(ImmutableArray<(DocumentId documentId, ImmutableArray<DiagnosticData> diagnostics)> diagnosticByDocument, Project project)
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.ProjectAnalyzerReferenceChangedEventArgs.cs (4)
21public readonly ImmutableArray<StateSet> Added; 22public readonly ImmutableArray<StateSet> Removed; 24public ProjectAnalyzerReferenceChangedEventArgs(Project project, ImmutableArray<StateSet> added, ImmutableArray<StateSet> removed)
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.ProjectState.cs (18)
358VersionStamp serializerVersion, Project project, TextDocument? document, object key, string stateKey, ImmutableArray<DiagnosticData> diagnostics) 372var diagnostics = await GetDiagnosticsFromInMemoryStorageAsync(serializerVersion, project, document, documentId, SyntaxStateName, cancellationToken).ConfigureAwait(false); 407var diagnostics = await GetDiagnosticsFromInMemoryStorageAsync(serializerVersion, project, document: null, project.Id, NonLocalStateName, cancellationToken).ConfigureAwait(false); 417private ValueTask<ImmutableArray<DiagnosticData>> GetDiagnosticsFromInMemoryStorageAsync( 459private ImmutableDictionary<DocumentId, ImmutableArray<DiagnosticData>>.Builder? _syntaxLocals; 460private ImmutableDictionary<DocumentId, ImmutableArray<DiagnosticData>>.Builder? _semanticLocals; 461private ImmutableDictionary<DocumentId, ImmutableArray<DiagnosticData>>.Builder? _nonLocals; 462private ImmutableArray<DiagnosticData> _others; 471public void AddSyntaxLocals(DocumentId documentId, ImmutableArray<DiagnosticData> diagnostics) 474public void AddSemanticLocals(DocumentId documentId, ImmutableArray<DiagnosticData> diagnostics) 477public void AddNonLocals(DocumentId documentId, ImmutableArray<DiagnosticData> diagnostics) 480public void AddOthers(ImmutableArray<DiagnosticData> diagnostics) 483private void Add(ref ImmutableDictionary<DocumentId, ImmutableArray<DiagnosticData>>.Builder? locals, DocumentId documentId, ImmutableArray<DiagnosticData> diagnostics) 490locals ??= ImmutableDictionary.CreateBuilder<DocumentId, ImmutableArray<DiagnosticData>>(); 497_syntaxLocals?.ToImmutable() ?? ImmutableDictionary<DocumentId, ImmutableArray<DiagnosticData>>.Empty, 498_semanticLocals?.ToImmutable() ?? ImmutableDictionary<DocumentId, ImmutableArray<DiagnosticData>>.Empty, 499_nonLocals?.ToImmutable() ?? ImmutableDictionary<DocumentId, ImmutableArray<DiagnosticData>>.Empty,
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.StateManager.cs (5)
86public async Task<ImmutableArray<StateSet>> GetOrCreateStateSetsAsync(Project project, CancellationToken cancellationToken) 135IEnumerable<ImmutableArray<DiagnosticAnalyzer>> projectAnalyzerCollection, 136IEnumerable<ImmutableArray<DiagnosticAnalyzer>> hostAnalyzerCollection, 147foreach (var analyzers in projectAnalyzerCollection) 166foreach (var analyzers in hostAnalyzerCollection)
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.StateManager.HostStates.cs (7)
53static (IEnumerable<ImmutableArray<DiagnosticAnalyzer>> HostAnalyzerCollection, IEnumerable<ImmutableArray<DiagnosticAnalyzer>> ProjectAnalyzerCollection) GetAnalyzerCollections( 54ImmutableDictionary<object, ImmutableArray<DiagnosticAnalyzer>> analyzersPerReference, 62var hostAnalyzerCollection = ArrayBuilder<ImmutableArray<DiagnosticAnalyzer>>.GetInstance(); 63var projectAnalyzerCollection = ArrayBuilder<ImmutableArray<DiagnosticAnalyzer>>.GetInstance(); 115public readonly ImmutableArray<StateSet> OrderedStateSets; 119private HostAnalyzerStateSets(ImmutableDictionary<DiagnosticAnalyzer, StateSet> stateSetMap, ImmutableArray<StateSet> orderedStateSets)
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.StateManager.ProjectStates.cs (9)
23ImmutableDictionary<object, ImmutableArray<DiagnosticAnalyzer>>.Empty, 30public readonly ImmutableDictionary<object, ImmutableArray<DiagnosticAnalyzer>> MapPerReferences; 38ImmutableDictionary<object, ImmutableArray<DiagnosticAnalyzer>> mapPerReferences, 126ImmutableDictionary<object, ImmutableArray<DiagnosticAnalyzer>> newMapPerReference, 145var addedStates = DiffStateSets(project.AnalyzerReferences.Except(entry.AnalyzerReferences), newMapPerReference, newMap); 146var removedStates = DiffStateSets(entry.AnalyzerReferences.Except(project.AnalyzerReferences), entry.MapPerReferences, entry.StateSetMap); 157private static ImmutableArray<StateSet> DiffStateSets( 159ImmutableDictionary<object, ImmutableArray<DiagnosticAnalyzer>> mapPerReference, 172if (!mapPerReference.TryGetValue(reference.Id, out var analyzers))
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer_GetDiagnostics.cs (11)
18public Task<ImmutableArray<DiagnosticData>> GetCachedDiagnosticsAsync(Solution solution, ProjectId? projectId, DocumentId? documentId, bool includeSuppressedDiagnostics, bool includeLocalDocumentDiagnostics, bool includeNonLocalDocumentDiagnostics, CancellationToken cancellationToken) 21public Task<ImmutableArray<DiagnosticData>> GetDiagnosticsForIdsAsync(Solution solution, ProjectId? projectId, DocumentId? documentId, ImmutableHashSet<string>? diagnosticIds, Func<DiagnosticAnalyzer, bool>? shouldIncludeAnalyzer, Func<Project, DocumentId?, IReadOnlyList<DocumentId>>? getDocuments, bool includeSuppressedDiagnostics, bool includeLocalDocumentDiagnostics, bool includeNonLocalDocumentDiagnostics, CancellationToken cancellationToken) 24public Task<ImmutableArray<DiagnosticData>> GetProjectDiagnosticsForIdsAsync(Solution solution, ProjectId? projectId, ImmutableHashSet<string>? diagnosticIds, Func<DiagnosticAnalyzer, bool>? shouldIncludeAnalyzer, bool includeSuppressedDiagnostics, bool includeNonLocalDocumentDiagnostics, CancellationToken cancellationToken) 55public async Task<ImmutableArray<DiagnosticData>> GetDiagnosticsAsync(CancellationToken cancellationToken) 72protected Task<ImmutableArray<DiagnosticData>> ProduceSolutionDiagnosticsAsync(Solution solution, CancellationToken cancellationToken) 75protected async Task<ImmutableArray<DiagnosticData>> ProduceProjectDiagnosticsAsync( 89protected void InvokeCallback(Action<DiagnosticData> callback, ImmutableArray<DiagnosticData> diagnostics) 138public async Task<ImmutableArray<DiagnosticData>> GetSpecificDiagnosticsAsync(DiagnosticAnalyzer analyzer, AnalysisKind analysisKind, CancellationToken cancellationToken) 158private static async Task<ImmutableArray<DiagnosticData>> GetDiagnosticsAsync(StateSet stateSet, Project project, DocumentId? documentId, AnalysisKind kind, CancellationToken cancellationToken) 172private static async Task<ImmutableArray<DiagnosticData>> GetProjectStateDiagnosticsAsync(StateSet stateSet, Project project, DocumentId? documentId, AnalysisKind kind, CancellationToken cancellationToken) 218public async Task<ImmutableArray<DiagnosticData>> GetProjectDiagnosticsAsync(CancellationToken cancellationToken)
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer_GetDiagnosticsForSpan.cs (12)
25public async Task<ImmutableArray<DiagnosticData>> GetDiagnosticsForSpanAsync( 60private readonly ImmutableArray<StateSet> _stateSets; 88var unfilteredStateSets = await owner._stateManager 91var stateSets = unfilteredStateSets 117ImmutableArray<StateSet> stateSets, 159ImmutableArray<StateSet> stateSets, 349ImmutableArray<AnalyzerWithState> analyzersWithState, 386ImmutableDictionary<DiagnosticAnalyzer, ImmutableArray<DiagnosticData>> diagnosticsMap; 408var diagnostics = diagnosticsMap[analyzerWithState.Analyzer]; 505private async Task<ImmutableDictionary<DiagnosticAnalyzer, ImmutableArray<DiagnosticData>>> ComputeDocumentDiagnosticsCoreAsync( 509using var _ = PooledDictionary<DiagnosticAnalyzer, ImmutableArray<DiagnosticData>>.GetInstance(out var builder); 519private async Task<ImmutableArray<DiagnosticData>> ComputeDocumentDiagnosticsForAnalyzerCoreAsync(
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer_IncrementalAnalyzer.cs (6)
20public async Task<ImmutableArray<DiagnosticData>> ForceAnalyzeProjectAsync(Project project, CancellationToken cancellationToken) 24var stateSetsForProject = await _stateManager.GetOrCreateStateSetsAsync(project, cancellationToken).ConfigureAwait(false); 25var stateSets = GetStateSetsForFullSolutionAnalysis(stateSetsForProject, project); 76private ImmutableArray<StateSet> GetStateSetsForFullSolutionAnalysis(ImmutableArray<StateSet> stateSets, Project project) 144var descriptors = DiagnosticAnalyzerInfoCache.GetDiagnosticDescriptors(analyzer);
Features\EditAndContinue\EditAndContinueDiagnosticSource_OpenDocument.cs (2)
24public override async Task<ImmutableArray<DiagnosticData>> GetDiagnosticsAsync(RequestContext context, CancellationToken cancellationToken) 55: static (_, _, _) => ValueTaskFactory.FromResult(ImmutableArray<ActiveStatementSpan>.Empty);
Features\EditAndContinue\EditAndContinueDiagnosticSource_Workspace.cs (5)
20private sealed class ProjectSource(Project project, ImmutableArray<DiagnosticData> diagnostics) : AbstractProjectDiagnosticSource(project) 25public override Task<ImmutableArray<DiagnosticData>> GetDiagnosticsAsync(RequestContext context, CancellationToken cancellationToken) 29private sealed class ClosedDocumentSource(TextDocument document, ImmutableArray<DiagnosticData> diagnostics) : AbstractWorkspaceDocumentDiagnosticSource(document) 34public override Task<ImmutableArray<DiagnosticData>> GetDiagnosticsAsync(RequestContext context, CancellationToken cancellationToken) 38public static async ValueTask<ImmutableArray<IDiagnosticSource>> CreateWorkspaceDiagnosticSourcesAsync(Solution solution, Func<Document, bool> isDocumentOpen, CancellationToken cancellationToken)
Features\EditAndContinue\EditAndContinueSessionState.cs (1)
38public ImmutableArray<DiagnosticData> ApplyChangesDiagnostics { get; set; } = [];
Features\FindUsages\SimpleFindUsagesContext.cs (4)
22private readonly ImmutableArray<DefinitionItem>.Builder _definitionItems = 25private readonly ImmutableArray<SourceReferenceItem>.Builder _referenceItems = 43public ImmutableArray<DefinitionItem> GetDefinitions() 51public ImmutableArray<SourceReferenceItem> GetReferences()
Features\TaskList\TaskListOptionsStorage.cs (1)
12public static readonly Option2<ImmutableArray<string>> Descriptors = new("dotnet_task_list_storage_descriptors", TaskListOptions.Default.Descriptors);
Features\UnifiedSuggestions\UnifiedSuggestedActions\UnifiedSuggestedActionWithNestedActions.cs (2)
18public ImmutableArray<UnifiedSuggestedActionSet> NestedActionSets { get; } 25ImmutableArray<UnifiedSuggestedActionSet> nestedActionSets)
Features\UnifiedSuggestions\UnifiedSuggestedActionSet.cs (2)
21public ImmutableArray<IUnifiedSuggestedAction> Actions { get; } 32ImmutableArray<IUnifiedSuggestedAction> actions,
Features\UnifiedSuggestions\UnifiedSuggestedActionsSource.cs (33)
35public static async ValueTask<ImmutableArray<UnifiedSuggestedActionSet>> GetFilterAndOrderCodeFixesAsync( 48var fixes = await codeFixService.GetFixesAsync( 64private static async Task<ImmutableArray<UnifiedSuggestedActionSet>> OrganizeFixesAsync( 68ImmutableArray<CodeFixCollection> fixCollections, 78var prioritizedFixes = PrioritizeFixGroups(originalSolution, text, map.ToImmutable(), order.ToImmutable(), workspace); 88ImmutableArray<CodeFixCollection> fixCollections, 105var fixes = fixCollection.Fixes; 134ImmutableArray<CodeFix> codeFixes) 212ImmutableArray<FixAllScope> supportedScopes, 278private static ImmutableArray<UnifiedSuggestedActionSet> PrioritizeFixGroups( 282ImmutableArray<CodeFixGroupKey> order, 293var nonSuppressionActions = actions.Where(a => !IsTopLevelSuppressionAction(a.OriginalCodeAction)).ToImmutableArray(); 296var suppressionActions = actions.Where(a => IsTopLevelSuppressionAction(a.OriginalCodeAction) && 389ImmutableArray<IUnifiedSuggestedAction> actions, 433public static async Task<ImmutableArray<UnifiedSuggestedActionSet>> GetFilterAndOrderCodeRefactoringsAsync( 461private static ImmutableArray<CodeRefactoring> FilterOnAnyThread( 462ImmutableArray<CodeRefactoring> refactorings, 639public static ImmutableArray<UnifiedSuggestedActionSet> FilterAndOrderActionSets( 640ImmutableArray<UnifiedSuggestedActionSet> fixes, 641ImmutableArray<UnifiedSuggestedActionSet> refactorings, 647var result = GetInitiallyOrderedActionSets(selectionOpt, fixes, refactorings); 653var allActionSets = InlineActionSetsIfDesirable(result, currentActionCount); 654var orderedActionSets = OrderActionSets(allActionSets, selectionOpt); 655var filteredSets = FilterActionSetsByTitle(orderedActionSets); 660private static ImmutableArray<UnifiedSuggestedActionSet> GetInitiallyOrderedActionSets( 662ImmutableArray<UnifiedSuggestedActionSet> fixes, 663ImmutableArray<UnifiedSuggestedActionSet> refactorings) 704private static ImmutableArray<UnifiedSuggestedActionSet> OrderActionSets( 705ImmutableArray<UnifiedSuggestedActionSet> actionSets, TextSpan? selectionOpt) 714private static ImmutableArray<UnifiedSuggestedActionSet> InlineActionSetsIfDesirable( 715ImmutableArray<UnifiedSuggestedActionSet> actionSets, 753private static ImmutableArray<UnifiedSuggestedActionSet> FilterActionSetsByTitle( 754ImmutableArray<UnifiedSuggestedActionSet> allActionSets)
Handler\CodeActions\CodeActionHelpers.cs (15)
39var actionSets = await GetActionSetsAsync( 112var codeActionPathList = ImmutableArray.Create(codeAction.Title); 113var nestedCodeActions = CollectNestedActions(request, codeActionKind, diagnosticsForFix, suggestedAction, codeActionPathList, isTopLevelCodeAction: true); 134private static ImmutableArray<LSP.CodeAction> CollectNestedActions( 139ImmutableArray<string> pathOfParentAction, 175ImmutableArray<LSP.CodeAction>? nestedCodeActions, 221ImmutableArray<string> codeActionPathList, 249ImmutableArray<string> codeActionPath) 304public static async Task<ImmutableArray<CodeAction>> GetCodeActionsAsync( 312var actionSets = await GetActionSetsAsync( 382private static async ValueTask<ImmutableArray<UnifiedSuggestedActionSet>> GetActionSetsAsync( 397var codeRefactorings = await UnifiedSuggestedActionsSource.GetFilterAndOrderCodeRefactoringsAsync( 401var actionSets = UnifiedSuggestedActionsSource.FilterAndOrderActionSets( 426public static CodeAction GetCodeActionToResolve(string[] codeActionPath, ImmutableArray<CodeAction> codeActions, bool isFixAllAction) 429var currentActions = codeActions;
Handler\CodeActions\CodeActionResolveData.cs (4)
28public ImmutableArray<string> CustomTags { get; } 40public ImmutableArray<LSP.CodeAction>? NestedCodeActions { get; } 44ImmutableArray<string> customTags, 49ImmutableArray<LSP.CodeAction>? nestedCodeActions)
Handler\CodeActions\CodeActionResolveHandler.cs (1)
78var codeActions = await CodeActionHelpers.GetCodeActionsAsync(
Handler\CodeActions\CodeActionResolveHelper.cs (3)
23public static Task<LSP.WorkspaceEdit> GetCodeActionResolveEditsAsync(RequestContext context, CodeActionResolveData data, ImmutableArray<CodeActionOperation> operations, CancellationToken cancellationToken) 37public static async Task<LSP.WorkspaceEdit> GetCodeActionResolveEditsAsync(Solution solution, CodeActionResolveData data, ImmutableArray<CodeActionOperation> operations, ResourceOperationKind[] resourceOperations, Action<string> logFunction, CancellationToken cancellationToken) 307var linkedDocuments = solution.GetRelatedDocumentIds(docId);
Handler\CodeLens\CodeLensHandler.cs (2)
84ImmutableArray<CodeLensMember> members, 110ImmutableArray<CodeLensMember> members,
Handler\Completion\CompletionResultFactory.cs (12)
69var commitCharactersRuleCache = new Dictionary<ImmutableArray<CharacterSetModificationRule>, string[]>(CommitCharacterArrayComparer.Instance); 172ImmutableArray<string> tags, 177if (ProtocolConversions.RoslynTagToCompletionItemKinds.TryGetValue(tag, out var completionItemKinds)) 198ImmutableArray<string> tags, 205if (ProtocolConversions.RoslynTagToCompletionItemTags.TryGetValue(tag, out var completionItemTags)) 230Dictionary<ImmutableArray<CharacterSetModificationRule>, string[]> currentRuleCache) 426private sealed class CommitCharacterArrayComparer : IEqualityComparer<ImmutableArray<CharacterSetModificationRule>> 434public bool Equals([AllowNull] ImmutableArray<CharacterSetModificationRule> x, [AllowNull] ImmutableArray<CharacterSetModificationRule> y) 448var xCharacters = x[i].Characters; 449var yCharacters = y[i].Characters; 467public int GetHashCode([DisallowNull] ImmutableArray<CharacterSetModificationRule> obj)
Handler\Configuration\DidChangeConfigurationNotificationHandler.cs (7)
34private readonly ImmutableArray<ConfigurationItem> _configurationItems; 40private readonly ImmutableArray<(IOption2 option, string? lanugageName)> _optionsAndLanguageNamesToRefresh; 46public static readonly ImmutableArray<string> SupportedLanguages = [LanguageNames.CSharp, LanguageNames.VisualBasic]; 77var configurationsFromClient = await GetConfigurationsAsync(cancellationToken).ConfigureAwait(false); 112private async Task<ImmutableArray<string?>> GetConfigurationsAsync(CancellationToken cancellationToken) 125private static ImmutableArray<(IOption2 option, string? langaugeName)> GenerateOptionsNeedsToRefresh() 151private static ImmutableArray<ConfigurationItem> GenerateGlobalConfigurationItems()
Handler\Configuration\DidChangeConfigurationNotificationHandler_OptionList.cs (1)
22public static readonly ImmutableArray<IOption2> SupportedOptions =
Handler\Diagnostics\AbstractDocumentPullDiagnosticHandler.cs (1)
31protected override ValueTask<ImmutableArray<IDiagnosticSource>> GetOrderedDiagnosticSourcesAsync(TDiagnosticsParams diagnosticsParams, string? requestDiagnosticCategory, RequestContext context, CancellationToken cancellationToken)
Handler\Diagnostics\AbstractPullDiagnosticHandler.cs (5)
67protected abstract ImmutableArray<PreviousPullResult>? GetPreviousResults(TDiagnosticsParams diagnosticsParams); 72protected abstract ValueTask<ImmutableArray<IDiagnosticSource>> GetOrderedDiagnosticSourcesAsync( 226ImmutableArray<PreviousPullResult> previousResults, 276ImmutableArray<DiagnosticData> diagnostics, 314private ImmutableArray<LSP.Diagnostic> ConvertDiagnostic(IDiagnosticSource diagnosticSource, DiagnosticData diagnosticData, ClientCapabilities capabilities)
Handler\Diagnostics\AbstractWorkspacePullDiagnosticsHandler.cs (1)
59protected override ValueTask<ImmutableArray<IDiagnosticSource>> GetOrderedDiagnosticSourcesAsync(TDiagnosticsParams diagnosticsParams, string? requestDiagnosticCategory, RequestContext context, CancellationToken cancellationToken)
Handler\Diagnostics\DiagnosticSourceProviders\DiagnosticSourceManager.cs (12)
48public ImmutableArray<string> GetDocumentSourceProviderNames(ClientCapabilities clientCapabilities) 51public ImmutableArray<string> GetWorkspaceSourceProviderNames(ClientCapabilities clientCapabilities) 54public ValueTask<ImmutableArray<IDiagnosticSource>> CreateDocumentDiagnosticSourcesAsync(RequestContext context, string? providerName, CancellationToken cancellationToken) 57public ValueTask<ImmutableArray<IDiagnosticSource>> CreateWorkspaceDiagnosticSourcesAsync(RequestContext context, string? providerName, CancellationToken cancellationToken) 60private static async ValueTask<ImmutableArray<IDiagnosticSource>> CreateDiagnosticSourcesAsync( 90var namedSources = await provider.CreateDiagnosticSourcesAsync(context, cancellationToken).ConfigureAwait(false); 99public static ImmutableArray<IDiagnosticSource> AggregateSourcesIfNeeded(ImmutableArray<IDiagnosticSource> sources, bool isDocument) 133private sealed class AggregatedDocumentDiagnosticSource(ImmutableArray<IDiagnosticSource> sources) : IDiagnosticSource 135public static ImmutableArray<IDiagnosticSource> AggregateIfNeeded(IEnumerable<IDiagnosticSource> sources) 137var result = sources.ToImmutableArray(); 152public async Task<ImmutableArray<DiagnosticData>> GetDiagnosticsAsync(RequestContext context, CancellationToken cancellationToken)
Handler\Diagnostics\DiagnosticSourceProviders\DocumentSyntaxAndSemanticDiagnosticSourceProvider.cs (1)
25public ValueTask<ImmutableArray<IDiagnosticSource>> CreateDiagnosticSourcesAsync(RequestContext context, CancellationToken cancellationToken)
Handler\Diagnostics\DiagnosticSourceProviders\IDiagnosticSourceManager.cs (4)
21ImmutableArray<string> GetDocumentSourceProviderNames(ClientCapabilities clientCapabilities); 26ImmutableArray<string> GetWorkspaceSourceProviderNames(ClientCapabilities clientCapabilities); 34ValueTask<ImmutableArray<IDiagnosticSource>> CreateDocumentDiagnosticSourcesAsync(RequestContext context, string? providerName, CancellationToken cancellationToken); 42ValueTask<ImmutableArray<IDiagnosticSource>> CreateWorkspaceDiagnosticSourcesAsync(RequestContext context, string? providerName, CancellationToken cancellationToken);
Handler\Diagnostics\DiagnosticSourceProviders\IDiagnosticSourceProvider.cs (1)
34ValueTask<ImmutableArray<IDiagnosticSource>> CreateDiagnosticSourcesAsync(RequestContext context, CancellationToken cancellationToken);
Handler\Diagnostics\DiagnosticSourceProviders\WorkspaceDiagnosticSourceHelpers.cs (2)
15public static IEnumerable<Project> GetProjectsInPriorityOrder(Solution solution, ImmutableArray<string> supportedLanguages) 31var visibleDocuments = documentTrackingService.GetVisibleDocuments(solution);
Handler\Diagnostics\DiagnosticSourceProviders\WorkspaceDocumentsAndProjectDiagnosticSourceProvider.cs (1)
52public async ValueTask<ImmutableArray<IDiagnosticSource>> CreateDiagnosticSourcesAsync(RequestContext context, CancellationToken cancellationToken)
Handler\Diagnostics\DiagnosticSources\AbstractDocumentDiagnosticSource.cs (1)
20public abstract Task<ImmutableArray<DiagnosticData>> GetDiagnosticsAsync(
Handler\Diagnostics\DiagnosticSources\AbstractProjectDiagnosticSource.cs (3)
26public abstract Task<ImmutableArray<DiagnosticData>> GetDiagnosticsAsync(RequestContext context, CancellationToken cancellationToken); 45public override async Task<ImmutableArray<DiagnosticData>> GetDiagnosticsAsync( 69public override Task<ImmutableArray<DiagnosticData>> GetDiagnosticsAsync(
Handler\Diagnostics\DiagnosticSources\AbstractWorkspaceDocumentDiagnosticSource.cs (3)
40public override async Task<ImmutableArray<DiagnosticData>> GetDiagnosticsAsync( 57private async ValueTask<ImmutableArray<DiagnosticData>> GetProjectDiagnosticsAsync( 100public override Task<ImmutableArray<DiagnosticData>> GetDiagnosticsAsync(
Handler\Diagnostics\DiagnosticSources\DocumentDiagnosticSource.cs (1)
24public override async Task<ImmutableArray<DiagnosticData>> GetDiagnosticsAsync(
Handler\Diagnostics\DiagnosticSources\IDiagnosticSource.cs (1)
34Task<ImmutableArray<DiagnosticData>> GetDiagnosticsAsync(
Handler\Diagnostics\DiagnosticSources\NonLocalDocumentDiagnosticSource.cs (1)
21public override async Task<ImmutableArray<DiagnosticData>> GetDiagnosticsAsync(
Handler\Diagnostics\DiagnosticSources\TaskListDiagnosticSource.cs (9)
21private static readonly ImmutableArray<string> s_todoCommentCustomTags = [TaskItemCustomTag]; 27private static Tuple<ImmutableArray<string>, ImmutableArray<TaskListItemDescriptor>> s_lastRequestedTokens = 28Tuple.Create(ImmutableArray<string>.Empty, ImmutableArray<TaskListItemDescriptor>.Empty); 35public override async Task<ImmutableArray<DiagnosticData>> GetDiagnosticsAsync( 73private static ImmutableArray<TaskListItemDescriptor> GetAndCacheDescriptors(ImmutableArray<string> tokenList) 78var descriptors = TaskListItemDescriptor.Parse(tokenList);
Handler\Diagnostics\DiagnosticsPullCache.cs (4)
27private sealed class DiagnosticsPullCache(string uniqueKey) : VersionedPullCache<(int globalStateVersion, VersionStamp? dependentVersion), (int globalStateVersion, Checksum dependentChecksum), DiagnosticsRequestState, ImmutableArray<DiagnosticData>>(uniqueKey) 40public override async Task<ImmutableArray<DiagnosticData>> ComputeDataAsync(DiagnosticsRequestState state, CancellationToken cancellationToken) 42var diagnostics = await state.DiagnosticSource.GetDiagnosticsAsync(state.Context, cancellationToken).ConfigureAwait(false); 47public override Checksum ComputeChecksum(ImmutableArray<DiagnosticData> data)
Handler\Diagnostics\DocumentPullDiagnosticHandler.cs (1)
56protected override ImmutableArray<PreviousPullResult>? GetPreviousResults(VSInternalDocumentDiagnosticsParams diagnosticsParams)
Handler\Diagnostics\Public\PublicDocumentNonLocalDiagnosticSourceProvider.cs (1)
32public ValueTask<ImmutableArray<IDiagnosticSource>> CreateDiagnosticSourcesAsync(RequestContext context, CancellationToken cancellationToken)
Handler\Diagnostics\Public\PublicDocumentPullDiagnosticsHandler.cs (1)
82protected override ImmutableArray<PreviousPullResult>? GetPreviousResults(DocumentDiagnosticParams diagnosticsParams)
Handler\Diagnostics\Public\PublicDocumentPullDiagnosticsHandler_IOnInitialized.cs (2)
27var documentSources = DiagnosticSourceManager.GetDocumentSourceProviderNames(clientCapabilities); 28var workspaceSources = DiagnosticSourceManager.GetWorkspaceSourceProviderNames(clientCapabilities);
Handler\Diagnostics\Public\PublicWorkspacePullDiagnosticsHandler.cs (1)
90protected override ImmutableArray<PreviousPullResult>? GetPreviousResults(WorkspaceDiagnosticParams diagnosticsParams)
Handler\Diagnostics\WorkspacePullDiagnosticHandler.cs (1)
58protected override ImmutableArray<PreviousPullResult>? GetPreviousResults(VSInternalWorkspaceDiagnosticsParams diagnosticsParams)
Handler\EditAndContinue\DocumentEditAndContinueDiagnosticSourceProvider.cs (1)
26public ValueTask<ImmutableArray<IDiagnosticSource>> CreateDiagnosticSourcesAsync(RequestContext context, CancellationToken cancellationToken)
Handler\EditAndContinue\WorkspaceEditAndContinueDiagnosticSourceProvider.cs (1)
27public ValueTask<ImmutableArray<IDiagnosticSource>> CreateDiagnosticSourcesAsync(RequestContext context, CancellationToken cancellationToken)
Handler\Formatting\FormatDocumentOnTypeHandler.cs (1)
69var textChanges = formattingService.GetFormattingChangesOnTypedCharacter(documentSyntax, position, indentationOptions, cancellationToken);
Handler\Highlights\DocumentHighlightHandler.cs (2)
76private static async Task<ImmutableArray<DocumentHighlight>> GetKeywordHighlightsAsync(IHighlightingService highlightingService, Document document, SourceText text, int position, CancellationToken cancellationToken) 90private static async Task<ImmutableArray<DocumentHighlight>> GetReferenceHighlightsAsync(IGlobalOptionService globalOptions, Document document, SourceText text, int position, CancellationToken cancellationToken)
Handler\Hover\HoverHandler.cs (1)
136ImmutableArray<TaggedText> tags = [
Handler\InlayHint\InlayHintCache.cs (1)
20internal record InlayHintCacheEntry(ImmutableArray<InlineHint> InlayHintMembers);
Handler\InlayHint\InlayHintHandler.cs (3)
53var hints = await CalculateInlayHintsAsync(document, range, options, displayAllOverride, cancellationToken).ConfigureAwait(false); 97internal static async Task<ImmutableArray<InlineHint>> CalculateInlayHintsAsync(Document document, LSP.Range range, InlineHintsOptions options, bool displayAllOverride, CancellationToken cancellationToken) 111private static (string label, bool leftPadding, bool rightPadding) Trim(ImmutableArray<TaggedText> taggedTexts)
Handler\InlayHint\InlayHintResolveHandler.cs (1)
66var hints = await InlayHintHandler.CalculateInlayHintsAsync(document, resolveData.Range, options, resolveData.DisplayAllOverride, cancellationToken).ConfigureAwait(false);
Handler\InlineCompletions\InlineCompletionsHandler.cs (3)
234static TextSpan GetAdjustedSpan(ImmutableArray<TextChange> textChanges, TextSpan originalSpan) 252private static async Task<(string ReplacedSnippetText, ImmutableDictionary<SnippetFieldPart, ImmutableArray<TextSpan>> Fields, TextSpan? CaretSpan)> GetReplacedSnippetTextAsync( 267var fieldOffsets = new Dictionary<SnippetFieldPart, ImmutableArray<TextSpan>>();
Handler\InlineCompletions\XmlSnippetParser.CodeSnippet.cs (2)
73private static ImmutableArray<XElement>? ReadCodeSnippetElements(XDocument document) 110internal static ImmutableArray<CodeSnippet>? ReadSnippets(XDocument document)
Handler\InlineCompletions\XmlSnippetParser.ParsedXmlSnippet.cs (2)
19public ImmutableArray<SnippetPart> Parts { get; } 22public ParsedXmlSnippet(ImmutableArray<SnippetPart> parts)
Handler\MapCode\MapCodeHandler.cs (2)
91var focusLocations = await ConvertFocusLocationsToDocumentAndSpansAsync( 115async Task<ImmutableArray<(Document, TextSpan)>> ConvertFocusLocationsToDocumentAndSpansAsync(
Handler\OnAutoInsert\OnAutoInsertHandler.cs (5)
36private readonly ImmutableArray<Lazy<IBraceCompletionService, LanguageMetadata>> _braceCompletionServices = braceCompletionServices.ToImmutableArray(); 65ImmutableArray<IBraceCompletionService> servicesForDocument, 146ImmutableArray<IBraceCompletionService> servicesForDocument, 224static async Task<TextChange> GetCollapsedChangeAsync(ImmutableArray<TextChange> textChanges, Document oldDocument, CancellationToken cancellationToken) 241private static async Task<(IBraceCompletionService Service, BraceCompletionContext Context)?> GetBraceCompletionContextAsync(ImmutableArray<IBraceCompletionService> servicesForDocument, int caretLocation, Document document, CancellationToken cancellationToken)
Handler\ProjectContext\GetTextDocumentWithContextHandler.cs (1)
40var documentIds = context.Solution.GetDocumentIds(request.TextDocument.Uri);
Handler\References\FindUsagesLSPContext.cs (3)
181ImmutableArray<(string key, string value)> properties, 206ImmutableArray<(string key, string value)> properties, 326ImmutableArray<ClassifiedSpan> classifiedSpans,
Handler\RequestContext.cs (3)
161public readonly ImmutableArray<string> SupportedLanguages; 180ImmutableArray<string> supportedLanguages, 234ImmutableArray<string> supportedLanguages,
Handler\SemanticTokens\SemanticTokensHelpers.cs (4)
58public static async Task<int[]> HandleRequestHelperAsync(Document document, ImmutableArray<LinePositionSpan> spans, bool supportsVisualStudioExtensions, ClassificationOptions options, CancellationToken cancellationToken) 83ImmutableArray<LinePositionSpan> spans, 96ImmutableArray<TextSpan> textSpans; 128ImmutableArray<TextSpan> textSpans,
Handler\SemanticTokens\SemanticTokensSchema.cs (2)
93public readonly ImmutableArray<string> AllTokenTypes; 100var customTokenTypes = TokenTypeMap.Values
Handler\ServerInfoProvider.cs (2)
11public ServerInfoProvider(WellKnownLspServerKinds serverKind, ImmutableArray<string> supportedLanguages) 18public readonly ImmutableArray<string> SupportedLanguages;
Handler\SignatureHelp\SignatureHelpHandler.cs (1)
146var separators = item.SeparatorDisplayParts;
Handler\SpellCheck\AbstractSpellCheckingHandler.cs (6)
51protected abstract ImmutableArray<PreviousPullResult>? GetPreviousResults(TParams requestParams); 56protected abstract ImmutableArray<Document> GetOrderedDocuments(RequestContext context, CancellationToken cancellationToken); 88var orderedDocuments = GetOrderedDocuments(context, cancellationToken); 138RequestContext context, ImmutableArray<PreviousPullResult> previousResults, CancellationToken cancellationToken) 158ImmutableArray<SpellCheckSpan> spans, 205RequestContext context, ImmutableArray<PreviousPullResult> previousResults, BufferedProgress<TReport[]> progress, CancellationToken cancellationToken)
Handler\SpellCheck\DocumentSpellCheckHandler.cs (3)
24protected override ImmutableArray<PreviousPullResult>? GetPreviousResults(VSInternalDocumentSpellCheckableParams requestParams) 35protected override ImmutableArray<Document> GetOrderedDocuments(RequestContext context, CancellationToken cancellationToken) 38internal static ImmutableArray<Document> GetRequestedDocument(RequestContext context)
Handler\SpellCheck\SpellCheckPullCache.cs (3)
19internal sealed class SpellCheckPullCache(string uniqueKey) : VersionedPullCache<(Checksum parseOptionsChecksum, Checksum textChecksum)?, object?, SpellCheckState, ImmutableArray<SpellCheckSpan>>(uniqueKey) 32public override Checksum ComputeChecksum(ImmutableArray<SpellCheckSpan> data) 38public override async Task<ImmutableArray<SpellCheckSpan>> ComputeDataAsync(SpellCheckState state, CancellationToken cancellationToken)
Handler\SpellCheck\WorkspaceSpellCheckHandler.cs (4)
28protected override ImmutableArray<PreviousPullResult>? GetPreviousResults(VSInternalWorkspaceSpellCheckableParams requestParams) 31protected override ImmutableArray<Document> GetOrderedDocuments(RequestContext context, CancellationToken cancellationToken) 46var visibleDocuments = documentTrackingService.GetVisibleDocuments(solution); 61void AddDocumentsFromProject(Project? project, ImmutableArray<string> supportedLanguages)
Handler\Symbols\DocumentSymbolsHandler.cs (1)
136ImmutableArray<RoslynNavigationBarItem> items, SourceText text, CancellationToken cancellationToken)
Handler\Symbols\WorkspaceSymbolsHandler.cs (1)
77public async Task AddResultsAsync(ImmutableArray<INavigateToSearchResult> results, CancellationToken cancellationToken)
Handler\Tasks\DocumentTaskDiagnosticSourceProvider.cs (1)
26public ValueTask<ImmutableArray<IDiagnosticSource>> CreateDiagnosticSourcesAsync(RequestContext context, CancellationToken cancellationToken)
Handler\Tasks\WorkspaceTaskDiagnosticSourceProvider.cs (1)
29public ValueTask<ImmutableArray<IDiagnosticSource>> CreateDiagnosticSourcesAsync(RequestContext context, CancellationToken cancellationToken)
LspServices\AbstractExportLspServiceAttribute.cs (1)
84var handlerDetails = MethodHandlerDetails.From(handlerType);
LspServices\AbstractLspServiceProvider.cs (3)
14private readonly ImmutableArray<Lazy<ILspService, LspServiceMetadataView>> _lspServices; 15private readonly ImmutableArray<Lazy<ILspServiceFactory, LspServiceMetadataView>> _lspServiceFactories; 25public LspServices CreateServices(WellKnownLspServerKinds serverKind, FrozenDictionary<string, ImmutableArray<BaseService>> baseServices)
LspServices\LspServiceMetadataView.cs (1)
26public ImmutableArray<MethodHandlerDetails>? HandlerDetails { get; }
LspServices\LspServices.cs (12)
28private readonly FrozenDictionary<string, ImmutableArray<BaseService>> _baseServices; 37ImmutableArray<Lazy<ILspService, LspServiceMetadataView>> mefLspServices, 38ImmutableArray<Lazy<ILspServiceFactory, LspServiceMetadataView>> mefLspServiceFactories, 40FrozenDictionary<string, ImmutableArray<BaseService>> baseServices) 139if (_baseServices.TryGetValue(typeName, out var baseServices)) 170public ImmutableArray<(IMethodHandler? Instance, TypeRef HandlerTypeRef, ImmutableArray<MethodHandlerDetails> HandlerDetails)> GetMethodHandlers() 172using var _ = ArrayBuilder<(IMethodHandler?, TypeRef, ImmutableArray<MethodHandlerDetails>)>.GetInstance(out var builder); 178var methods = MethodHandlerDetails.From(handlerType); 197private ImmutableArray<T> GetBaseServices<T>() 202return _baseServices.TryGetValue(typeName, out var baseServices) 228ImmutableArray<IDisposable> disposableServices;
ProtocolConstants.cs (1)
13public static ImmutableArray<string> RoslynLspLanguages = [LanguageNames.CSharp, LanguageNames.VisualBasic, LanguageNames.FSharp];
RoslynLanguageServer.cs (6)
26private readonly FrozenDictionary<string, ImmutableArray<BaseService>> _baseServices; 36ImmutableArray<string> supportedLanguages, 69private FrozenDictionary<string, ImmutableArray<BaseService>> GetBaseServices( 75ImmutableArray<string> supportedLanguages) 110ImmutableArray<BaseService>.Builder builder => builder.ToImmutable(), 152case ImmutableArray<BaseService>.Builder existingBuilder:
src\LanguageServer\Microsoft.CommonLanguageServerProtocol.Framework\AbstractHandlerProvider.cs (1)
21public abstract ImmutableArray<RequestHandlerMetadata> GetRegisteredMethods();
src\LanguageServer\Microsoft.CommonLanguageServerProtocol.Framework\HandlerProvider.cs (2)
39public override ImmutableArray<RequestHandlerMetadata> GetRegisteredMethods() 81var handlerDetails = MethodHandlerDetails.From(handlerType);
src\LanguageServer\Microsoft.CommonLanguageServerProtocol.Framework\IMethodHandlerProvider.cs (2)
18ImmutableArray<(IMethodHandler? Instance, TypeRef HandlerTypeRef, ImmutableArray<MethodHandlerDetails> HandlerDetails)> GetMethodHandlers();
src\LanguageServer\Microsoft.CommonLanguageServerProtocol.Framework\MethodHandlerDetails.cs (3)
31public static ImmutableArray<MethodHandlerDetails> From(Type handlerType) 33var allHandlerDetails = GetAllHandlerDetails(handlerType); 57private static ImmutableArray<(Type? RequestType, Type? ResponseType, Type RequestContextType)> GetAllHandlerDetails(Type handlerType)
Workspaces\LspWorkspaceManager.cs (12)
176var registeredWorkspaces = _lspWorkspaceRegistrationService.GetAllRegistrations(); 211var registeredWorkspaces = _lspWorkspaceRegistrationService.GetAllRegistrations(); 263var updatedSolutions = await GetLspSolutionsAsync(cancellationToken).ConfigureAwait(false); 282var lspSolutions = await GetLspSolutionsAsync(cancellationToken).ConfigureAwait(false); 328private async Task<ImmutableArray<(Workspace workspace, Solution Solution, bool IsForked)>> GetLspSolutionsAsync(CancellationToken cancellationToken) 331var registeredWorkspaces = _lspWorkspaceRegistrationService.GetAllRegistrations(); 478ImmutableArray<(SourceGeneratedDocumentIdentity Identity, DateTime Generated, SourceText Text)> sourceGenereatedDocuments, 504private async Task<bool> DoesAllTextMatchWorkspaceSolutionAsync(ImmutableDictionary<Uri, ImmutableArray<TextDocument>> documentsInWorkspace, CancellationToken cancellationToken) 557private static ImmutableDictionary<Uri, ImmutableArray<TextDocument>> GetDocumentsForUris(ImmutableArray<Uri> trackedDocuments, Solution workspaceCurrentSolution) 559using var _ = PooledDictionary<Uri, ImmutableArray<TextDocument>>.GetInstance(out var documentsInSolution); 562var documents = workspaceCurrentSolution.GetTextDocuments(trackedDoc);
Workspaces\LspWorkspaceRegistrationService.cs (2)
15private ImmutableArray<Workspace> _registrations = []; 17public ImmutableArray<Workspace> GetAllRegistrations()
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (57)
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 (2)
882public ImmutableArray<CodeAnalysis.Completion.CompletionItem> ReturnedItems { get; set; } = ImmutableArray<CodeAnalysis.Completion.CompletionItem>.Empty;
Configuration\DidChangeConfigurationNotificationHandlerTest.cs (1)
159var supportedOptions = DidChangeConfigurationNotificationHandler.SupportedOptions;
Diagnostics\AbstractPullDiagnosticTestsBase.cs (17)
42var builder = ImmutableDictionary.CreateBuilder<string, ImmutableArray<DiagnosticAnalyzer>>(); 57private protected static async Task<ImmutableArray<TestDiagnosticResult>> RunGetWorkspacePullDiagnosticsAsync( 60ImmutableArray<(string resultId, TextDocumentIdentifier identifier)>? previousResults = null, 79private protected static async Task<ImmutableArray<TestDiagnosticResult>> RunVSGetWorkspacePullDiagnosticsAsync( 81ImmutableArray<(string resultId, TextDocumentIdentifier identifier)>? previousResults, 113private protected static async Task<ImmutableArray<TestDiagnosticResult>> RunPublicGetWorkspacePullDiagnosticsAsync( 115ImmutableArray<(string resultId, TextDocumentIdentifier identifier)>? previousResults, 151ImmutableArray<(string resultId, TextDocumentIdentifier identifier)>? previousResults, 183private protected static ImmutableArray<(string resultId, TextDocumentIdentifier identifier)> CreateDiagnosticParamsFromPreviousReports(ImmutableArray<TestDiagnosticResult> results) 205ImmutableArray<(string resultId, TextDocumentIdentifier identifier)>? previousResults = null, 231private protected static Task<ImmutableArray<TestDiagnosticResult>> RunGetDocumentPullDiagnosticsAsync( 242private protected static async Task<ImmutableArray<TestDiagnosticResult>> RunGetDocumentPullDiagnosticsAsync( 286return ImmutableArray<TestDiagnosticResult>.Empty; 377public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(Descriptor); 379public override Task<ImmutableArray<Diagnostic>> AnalyzeSemanticsAsync(Document document, CancellationToken cancellationToken) 382public override Task<ImmutableArray<Diagnostic>> AnalyzeSyntaxAsync(Document document, CancellationToken cancellationToken)
Diagnostics\AdditionalFileDiagnosticsTests.cs (2)
118=> new(ImmutableDictionary<string, ImmutableArray<DiagnosticAnalyzer>>.Empty.Add(LanguageNames.CSharp, ImmutableArray.Create( 128public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics
Diagnostics\BuildOnlyDiagnosticIdsHandlerTests.cs (3)
52var builder = ImmutableDictionary.CreateBuilder<string, ImmutableArray<DiagnosticAnalyzer>>(); 93public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(s_descriptor); 105public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(s_descriptor);
Diagnostics\DiagnosticRegistrationTests.cs (1)
112public ImmutableArray<Registration> GetRegistrations()
Diagnostics\DiagnosticsPullCacheTests.cs (4)
120public override Task<ImmutableArray<DiagnosticData>> GetDiagnosticsAsync(RequestContext context, CancellationToken cancellationToken) 123return Task.FromResult<ImmutableArray<DiagnosticData>>([new DiagnosticData(Id, category: "category", context.Document!.Name, DiagnosticSeverity.Error, DiagnosticSeverity.Error, 145public ValueTask<ImmutableArray<IDiagnosticSource>> CreateDiagnosticSourcesAsync(RequestContext context, CancellationToken cancellationToken) 147return new ValueTask<ImmutableArray<IDiagnosticSource>>([new TestDiagnosticSource(context.Document!, this)]);
Diagnostics\NonLocalDiagnosticTests.cs (2)
71=> new(ImmutableDictionary<string, ImmutableArray<DiagnosticAnalyzer>>.Empty.Add(LanguageNames.CSharp, ImmutableArray.Create( 80public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(NonLocalDescriptor, CompilationEndDescriptor);
Diagnostics\PullDiagnosticTests.cs (2)
132public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(_descriptor); 146public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(_descriptor);
Diagnostics\WorkspaceProjectDiagnosticsTests.cs (2)
67=> new(ImmutableDictionary<string, ImmutableArray<DiagnosticAnalyzer>>.Empty.Add(LanguageNames.CSharp, ImmutableArray.Create( 77public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics
MapCode\MapCodeTests.cs (3)
34public async Task<ImmutableArray<TextChange>?> MapCodeAsync( 35Document document, ImmutableArray<string> contents, ImmutableArray<(Document, TextSpan)> focusLocations, CancellationToken cancellationToken)
SemanticTokens\AbstractSemanticTokensTests.cs (1)
116private protected static ImmutableArray<string> ConvertToReadableFormat(
SemanticTokens\SemanticTokensRangeTests.cs (5)
123ImmutableArray<LinePositionSpan> spans = [ 181ImmutableArray<LinePositionSpan> spans = [new LinePositionSpan(new LinePosition(1, 0), new LinePosition(2, 0))]; 231ImmutableArray<LinePositionSpan> spans = [new LinePositionSpan(new LinePosition(0, 0), new LinePosition(4, 0))]; 290ImmutableArray<LinePositionSpan> spans = [new LinePositionSpan(new LinePosition(0, 0), new LinePosition(9, 0))]; 371ImmutableArray<LinePositionSpan> spans = [new LinePositionSpan(new LinePosition(0, 0), new LinePosition(9, 0))];
SpellCheck\SpellCheckTests.cs (7)
220{|Comment:// comment|}", out _, out IDictionary<string, ImmutableArray<TextSpan>> annotatedSpans); 515{|Comment:// comment|}", out _, out IDictionary<string, ImmutableArray<TextSpan>> annotatedSpans); 562private static int[] GetRanges(IDictionary<string, ImmutableArray<TextSpan>> annotatedSpans) 564var allSpans = annotatedSpans 625ImmutableArray<(string resultId, Uri uri)>? previousResults = null, 670ImmutableArray<(string resultId, Uri uri)>? previousResults = null, 680private static ImmutableArray<(string resultId, Uri uri)> CreateParamsFromPreviousReports(VSInternalWorkspaceSpellCheckableReport[] results)
Workspaces\LspWorkspaceManagerTests.cs (4)
670var oldClassDeclarations = originalRoot.DescendantNodes().Where(n => syntaxFacts.IsClassDeclaration(n)).ToImmutableArray(); 671var newClassDeclarations = newRoot.DescendantNodes().Where(n => syntaxFacts.IsClassDeclaration(n)).ToImmutableArray(); 680var oldMethodDeclarations = originalRoot.DescendantNodes().Where(n => syntaxFacts.IsMethodLevelMember(n)).ToImmutableArray(); 681var newMethodDeclarations = newRoot.DescendantNodes().Where(n => syntaxFacts.IsMethodLevelMember(n)).ToImmutableArray();
Microsoft.CodeAnalysis.PooledObjects.Package (23)
ArrayBuilder.cs (23)
54private readonly ImmutableArray<T>.Builder _builder; 76public ImmutableArray<T> ToImmutable() 84public ImmutableArray<T> ToImmutableAndClear() 86ImmutableArray<T> result; 89result = ImmutableArray<T>.Empty; 353public ImmutableArray<T> ToImmutableOrNull() 366public ImmutableArray<U> ToDowncastedImmutable<U>() 371return ImmutableArray<U>.Empty; 383public ImmutableArray<U> ToDowncastedImmutableAndFree<U>() where U : T 385var result = ToDowncastedImmutable<U>(); 393public ImmutableArray<T> ToImmutableAndFree() 397ImmutableArray<T> result; 400result = ImmutableArray<T>.Empty; 516internal Dictionary<K, ImmutableArray<T>> ToDictionary<K>(Func<T, K> keySelector, IEqualityComparer<K>? comparer = null) 521var dictionary1 = new Dictionary<K, ImmutableArray<T>>(1, comparer); 529return new Dictionary<K, ImmutableArray<T>>(comparer); 548var dictionary = new Dictionary<K, ImmutableArray<T>>(accumulator.Count, comparer); 587public void AddRange(ImmutableArray<T> items) 592public void AddRange(ImmutableArray<T> items, int length) 597public void AddRange(ImmutableArray<T> items, int start, int length) 607public void AddRange<S>(ImmutableArray<S> items) where S : class, T 609AddRange(ImmutableArray<T>.CastUp(items)); 706public ImmutableArray<S> SelectDistinct<S>(Func<T, S> selector)
Microsoft.CodeAnalysis.Rebuild (25)
CompilationFactory.cs (7)
52ImmutableArray<SyntaxTree> syntaxTrees, 53ImmutableArray<MetadataReference> metadataReferences); 69ImmutableArray<SyntaxTree> syntaxTrees, 70ImmutableArray<MetadataReference> metadataReferences, 84var embeddedTexts = rebuildCompilation.SyntaxTrees 102ImmutableArray<EmbeddedText> embeddedTexts, 162static ImmutableArray<string> getNonSourceFileDocumentNames(MetadataReader pdbReader, int sourceFileCount)
CompilationOptionsReader.cs (8)
237return new EmbeddedSourceTextInfo(sourceTextInfo, embeddedText, compressedHash?.ToImmutableArray() ?? ImmutableArray<byte>.Empty); 287public (ImmutableArray<SyntaxTree> SyntaxTrees, ImmutableArray<MetadataReference> MetadataReferences) ResolveArtifacts( 291var syntaxTrees = ResolveSyntaxTrees(); 292var metadataReferences = ResolveMetadataReferences(); 295ImmutableArray<SyntaxTree> ResolveSyntaxTrees() 322ImmutableArray<MetadataReference> ResolveMetadataReferences() 446private static ImmutableArray<(string, string)> ParseCompilationOptions(BlobReader blobReader)
CSharpCompilationFactory.cs (4)
48ImmutableArray<SyntaxTree> syntaxTrees, 49ImmutableArray<MetadataReference> metadataReferences) 73var preprocessorSymbols = define == null 74? ImmutableArray<string>.Empty
MetadataCompilationOptions.cs (2)
15private readonly ImmutableArray<(string optionName, string value)> _options; 17public MetadataCompilationOptions(ImmutableArray<(string optionName, string value)> options)
Records.cs (2)
17ImmutableArray<byte> CompressedHash); 22ImmutableArray<byte> Hash,
VisualBasicCompilationFactory.cs (2)
48ImmutableArray<SyntaxTree> syntaxTrees, 49ImmutableArray<MetadataReference> metadataReferences)
Microsoft.CodeAnalysis.Rebuild.UnitTests (15)
CSharpRebuildTests.cs (2)
36var sources = original 40var references = original.References.ToImmutableArray();
DeterministicKeyBuilderTests.cs (7)
215protected static JArray GetSyntaxTreeValues(Compilation compilation, ImmutableArray<KeyValuePair<string, string>> pathMap = default) 221protected static JArray GetAdditionalTextValues(Compilation compilation, ImmutableArray<AdditionalText> additionalTexts, ImmutableArray<KeyValuePair<string, string>> pathMap = default) 241ImmutableArray<KeyValuePair<string, string>> pathMap = default, 255var checksum = text.GetChecksum(); 579(null, null) => ImmutableArray<KeyValuePair<string, string>>.Empty, 727(null, null) => ImmutableArray<KeyValuePair<string, string>>.Empty,
DeterministicKeyBuilderTests.Helpers.cs (2)
32public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => throw new NotImplementedException(); 39public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => throw new NotImplementedException();
RoundTripUtil.cs (4)
63private record EmitInfo(ImmutableArray<byte> PEBytes, PEReader PEReader, ImmutableArray<byte> PdbBytes, MetadataReader PdbReader) : IDisposable 106embeddedTexts: ImmutableArray<EmbeddedText>.Empty, 114ImmutableArray<byte> rebuildPdbBytes;
Microsoft.CodeAnalysis.Remote.ServiceHub (137)
Host\RemoteAnalyzerAssemblyLoader.cs (1)
19public RemoteAnalyzerAssemblyLoader(string baseDirectory, ImmutableArray<IAnalyzerAssemblyResolver>? externalResolvers = null)
Host\RemoteWorkspace.cs (1)
176ImmutableArray<Task> solutionComputationTasks;
Host\RemoteWorkspace.InFlightSolution.cs (1)
158public ImmutableArray<Task> DecrementInFlightCount_NoLock()
Host\RemoteWorkspace.SolutionCreator.cs (6)
433Func<Solution, ImmutableArray<DocumentInfo>, Solution> addDocuments, 434Func<Solution, ImmutableArray<DocumentId>, Solution> removeDocuments, 478Func<Solution, ImmutableArray<DocumentInfo>, Solution> addDocuments, 479Func<Solution, ImmutableArray<DocumentId>, Solution> removeDocuments, 485ImmutableArray<DocumentInfo>.Builder? lazyDocumentsToAdd = null; 505ImmutableArray<DocumentId>.Builder? lazyDocumentsToRemove = null;
Host\RemoteWorkspaceManager.cs (2)
25internal static readonly ImmutableArray<Assembly> RemoteHostAssemblies = 79private static ComposableCatalog CreateCatalog(ImmutableArray<Assembly> assemblies)
Services\AssetSynchronization\RemoteAssetSynchronizationService.cs (2)
52ImmutableArray<(DocumentId documentId, Checksum baseTextChecksum, ImmutableArray<TextChange> textChanges, Checksum newTextChecksum)> changes,
Services\AsynchronousOperationListener\RemoteAsynchronousOperationListenerService.cs (2)
36public ValueTask<bool> IsCompletedAsync(ImmutableArray<string> featureNames, CancellationToken cancellationToken) 48public ValueTask ExpeditedWaitAsync(ImmutableArray<string> featureNames, CancellationToken cancellationToken)
Services\CodeLensReferences\RemoteCodeLensReferencesService.cs (2)
66public async ValueTask<ImmutableArray<ReferenceLocationDescriptor>?> FindReferenceLocationsAsync(Checksum solutionChecksum, DocumentId documentId, TextSpan textSpan, CancellationToken cancellationToken) 84public async ValueTask<ImmutableArray<ReferenceMethodDescriptor>?> FindReferenceMethodsAsync(Checksum solutionChecksum, DocumentId documentId, TextSpan textSpan, CancellationToken cancellationToken)
Services\DependentTypeFinder\RemoteDependentTypeFinderService.cs (3)
29public ValueTask<ImmutableArray<SerializableSymbolAndProjectId>> FindTypesAsync( 32ImmutableArray<ProjectId> projectIdsOpt, 42return ImmutableArray<SerializableSymbolAndProjectId>.Empty;
Services\DesignerAttributeDiscovery\RemoteDesignerAttributeDiscoveryService.cs (1)
23public ValueTask ReportDesignerAttributeDataAsync(ImmutableArray<DesignerAttributeData> data, CancellationToken cancellationToken)
Services\DiagnosticAnalyzer\DiagnosticComputer.cs (22)
114ImmutableArray<string> projectAnalyzerIds, 115ImmutableArray<string> hostAnalyzerIds, 154ImmutableArray<string> projectAnalyzerIds, 155ImmutableArray<string> hostAnalyzerIds, 229ImmutableArray<string> projectAnalyzerIds, 230ImmutableArray<string> hostAnalyzerIds, 321ImmutableArray<string> projectAnalyzerIds, 322ImmutableArray<string> hostAnalyzerIds, 372ImmutableArray<DiagnosticAnalyzer> projectAnalyzers, 373ImmutableArray<DiagnosticAnalyzer> hostAnalyzers, 420private static ImmutableArray<(string analyzerId, SerializableDiagnosticMap diagnosticMap)> Dehydrate( 441private static ImmutableArray<(string analyzerId, AnalyzerTelemetryInfo)> GetTelemetryInfo( 443ImmutableArray<DiagnosticAnalyzer> projectAnalyzers, 444ImmutableArray<DiagnosticAnalyzer> hostAnalyzers, 487private static (ImmutableArray<DiagnosticAnalyzer> projectAnalyzers, ImmutableArray<DiagnosticAnalyzer> hostAnalyzers) GetAnalyzers(BidirectionalMap<string, DiagnosticAnalyzer> analyzerMap, ImmutableArray<string> projectAnalyzerIds, ImmutableArray<string> hostAnalyzerIds) 571var analyzers = reference.GetAnalyzers(_project.Language); 596var analyzers = reference.GetAnalyzers(_project.Language); 617private async Task<CompilationWithAnalyzersPair> CreateCompilationWithAnalyzerAsync(ImmutableArray<DiagnosticAnalyzer> projectAnalyzers, ImmutableArray<DiagnosticAnalyzer> hostAnalyzers, CancellationToken cancellationToken)
Services\DiagnosticAnalyzer\RemoteDiagnosticAnalyzerService.cs (2)
86public async ValueTask<ImmutableArray<DiagnosticData>> GetSourceGeneratorDiagnosticsAsync(Checksum solutionChecksum, ProjectId projectId, CancellationToken cancellationToken) 108public ValueTask ReportAnalyzerPerformanceAsync(ImmutableArray<AnalyzerPerformanceInfo> snapshot, int unitCount, bool forSpanAnalysis, CancellationToken cancellationToken)
Services\DocumentHighlights\RemoteDocumentHighlightsService.cs (2)
27public ValueTask<ImmutableArray<SerializableDocumentHighlights>> GetDocumentHighlightsAsync( 28Checksum solutionChecksum, DocumentId documentId, int position, ImmutableArray<DocumentId> documentIdsToSearch, HighlightingOptions options, CancellationToken cancellationToken)
Services\EditAndContinue\RemoteEditAndContinueService.cs (11)
38ValueTask<ImmutableArray<ManagedActiveStatementDebugInfo>> IManagedHotReloadService.GetActiveStatementsAsync(CancellationToken cancellationToken) 44ValueTask<ImmutableArray<string>> IManagedHotReloadService.GetCapabilitiesAsync(CancellationToken cancellationToken) 62public ValueTask<string?> TryGetMatchingSourceTextAsync(string filePath, ImmutableArray<byte> requiredChecksum, SourceHashAlgorithm checksumAlgorithm, CancellationToken cancellationToken) 83public ValueTask<DebuggingSessionId> StartDebuggingSessionAsync(Checksum solutionChecksum, RemoteServiceCallbackId callbackId, ImmutableArray<DocumentId> captureMatchingDocuments, bool captureAllMatchingDocuments, bool reportDiagnostics, CancellationToken cancellationToken) 122public ValueTask<ImmutableArray<DiagnosticData>> GetDocumentDiagnosticsAsync(Checksum solutionChecksum, RemoteServiceCallbackId callbackId, DocumentId documentId, CancellationToken cancellationToken) 169private static ImmutableArray<DiagnosticData> GetUnexpectedUpdateError(Solution solution, Exception e) 203public ValueTask UpdateBaselinesAsync(Checksum solutionChecksum, DebuggingSessionId sessionId, ImmutableArray<ProjectId> rebuiltProjects, CancellationToken cancellationToken) 215public ValueTask<ImmutableArray<ImmutableArray<ActiveStatementSpan>>> GetBaseActiveStatementSpansAsync(Checksum solutionChecksum, DebuggingSessionId sessionId, ImmutableArray<DocumentId> documentIds, CancellationToken cancellationToken) 226public ValueTask<ImmutableArray<ActiveStatementSpan>> GetAdjustedActiveStatementSpansAsync(Checksum solutionChecksum, RemoteServiceCallbackId callbackId, DebuggingSessionId sessionId, DocumentId documentId, CancellationToken cancellationToken)
Services\EncapsulateField\RemoteEncapsulateFieldService.cs (5)
26public ValueTask<ImmutableArray<(DocumentId, ImmutableArray<TextChange>)>> EncapsulateFieldsAsync( 29ImmutableArray<string> fieldSymbolKeys, 44return ImmutableArray<(DocumentId, ImmutableArray<TextChange>)>.Empty;
Services\ExtensionMethodImportCompletion\RemoteExtensionMethodImportCompletionService.cs (2)
35ImmutableArray<string> namespaceInScope, 36ImmutableArray<string> targetTypesSymbolKeyData,
Services\InheritanceMargin\RemoteInheritanceMarginService.cs (1)
28public ValueTask<ImmutableArray<InheritanceMarginItem>> GetInheritanceMarginItemsAsync(
Services\MissingImportDiscovery\RemoteMissingImportDiscoveryService.cs (8)
29public ValueTask<ImmutableArray<AddImportFixData>> GetFixesAsync( 37ImmutableArray<PackageSource> packageSources, 59public ValueTask<ImmutableArray<AddImportFixData>> GetUniqueFixesAsync( 64ImmutableArray<string> diagnosticIds, 66ImmutableArray<PackageSource> packageSources, 106public ValueTask<ImmutableArray<PackageResult>> FindPackagesAsync(string source, TypeQuery typeQuery, NamespaceQuery namespaceQuery, CancellationToken cancellationToken) 109public ValueTask<ImmutableArray<PackageWithAssemblyResult>> FindPackagesWithAssemblyAsync(string source, string assemblyName, CancellationToken cancellationToken) 112public ValueTask<ImmutableArray<ReferenceAssemblyResult>> FindReferenceAssembliesAsync(TypeQuery typeQuery, NamespaceQuery namespaceQuery, CancellationToken cancellationToken)
Services\NavigateToSearch\RemoteNavigateToSearchService.cs (10)
30private (Func<ImmutableArray<RoslynNavigateToItem>, VoidResult, CancellationToken, Task> onItemsFound, Func<Task> onProjectCompleted) GetCallbacks( 51ImmutableArray<string> kinds, 67ImmutableArray<ProjectId> projectIds, 68ImmutableArray<DocumentId> priorityDocumentIds, 70ImmutableArray<string> kinds, 88ImmutableArray<ProjectId> projectIds, 90ImmutableArray<string> kinds, 105ImmutableArray<DocumentKey> documentKeys, 106ImmutableArray<DocumentKey> priorityDocumentKeys, 108ImmutableArray<string> kinds,
Services\NavigationBar\RemoteNavigationBarItemService.cs (1)
23public ValueTask<ImmutableArray<SerializableNavigationBarItem>> GetItemsAsync(
Services\ProcessTelemetry\RemoteProcessTelemetryService.cs (3)
79public ValueTask EnableLoggingAsync(ImmutableArray<string> loggerTypeNames, ImmutableArray<FunctionId> functionIds, CancellationToken cancellationToken) 94private static void SetRoslynLogger<T>(ImmutableArray<string> loggerTypes, Func<T> creator) where T : ILogger
Services\RelatedDocuments\RemoteRelatedDocumentsService.cs (1)
28private Func<ImmutableArray<DocumentId>, CancellationToken, ValueTask> GetCallbackFunction(RemoteServiceCallbackId callbackId)
Services\RemoteDocumentTrackingService.cs (1)
21public ImmutableArray<DocumentId> GetVisibleDocuments()
Services\Renamer\RemoteRenamerService.cs (2)
27ImmutableArray<SymbolKey> nonConflictSymbolKeys, 75ImmutableArray<SymbolKey> nonConflictSymbolKeys,
Services\SemanticClassification\RemoteSemanticClassificationService.Caching.cs (9)
48private readonly LinkedList<(DocumentId id, ClassificationType type, Checksum checksum, ImmutableArray<ClassifiedSpan> classifiedSpans)> _cachedData = new(); 84DocumentKey documentKey, ImmutableArray<TextSpan> textSpans, ClassificationType type, Checksum checksum, CancellationToken cancellationToken) 86var classifiedSpans = await TryGetOrReadCachedSemanticClassificationsAsync( 220private async Task<ImmutableArray<ClassifiedSpan>> TryGetOrReadCachedSemanticClassificationsAsync( 227if (TryGetFromInMemoryCache(documentKey, checksum, out var classifiedSpans)) 240private bool TryGetFromInMemoryCache(DocumentKey documentKey, Checksum checksum, out ImmutableArray<ClassifiedSpan> classifiedSpans) 260ImmutableArray<ClassifiedSpan> classifiedSpans) 283private async Task<ImmutableArray<ClassifiedSpan>> TryReadCachedSemanticClassificationsAsync( 303private static ImmutableArray<ClassifiedSpan> Read(ObjectReader reader)
Services\SemanticClassification\RemoteSemanticClassificationService.cs (1)
26ImmutableArray<TextSpan> spans,
Services\SemanticSearch\RemoteSemanticSearchService.cs (1)
49public ValueTask OnCompilationFailureAsync(ImmutableArray<QueryCompilationError> errors, CancellationToken cancellationToken)
Services\SourceGeneration\RemoteSourceGenerationService.cs (6)
34public ValueTask<ImmutableArray<SourceGeneratedDocumentInfo>> GetSourceGeneratedDocumentInfoAsync( 54public ValueTask<ImmutableArray<string>> GetContentsAsync( 55Checksum solutionChecksum, ProjectId projectId, ImmutableArray<DocumentId> documentIds, bool withFrozenSourceGeneratedDocuments, CancellationToken cancellationToken) 85var generators = analyzerReference.GetGenerators(language); 92ImmutableArray<Checksum> analyzerReferenceChecksums, 139public ValueTask<ImmutableArray<SourceGeneratorIdentity>> GetSourceGeneratorIdentitiesAsync(
Services\SymbolFinder\RemoteSymbolFinderService.cs (9)
41ImmutableArray<DocumentId> documentArgs, 84private static ImmutableArray<SerializableSymbolAndProjectId> Convert(ImmutableArray<ISymbol> items, Solution solution, CancellationToken cancellationToken) 94public ValueTask<ImmutableArray<SerializableSymbolAndProjectId>> FindAllDeclarationsWithNormalQueryAsync( 115public ValueTask<ImmutableArray<SerializableSymbolAndProjectId>> FindSolutionSourceDeclarationsWithNormalQueryAsync( 131public ValueTask<ImmutableArray<SerializableSymbolAndProjectId>> FindProjectSourceDeclarationsWithNormalQueryAsync( 150public ValueTask<ImmutableArray<SerializableSymbolAndProjectId>> FindSolutionSourceDeclarationsWithPatternAsync( 162public ValueTask<ImmutableArray<SerializableSymbolAndProjectId>> FindProjectSourceDeclarationsWithPatternAsync( 230ImmutableArray<(SymbolGroup group, ISymbol symbol, ReferenceLocation location)> references,
Services\SymbolSearchUpdate\RemoteSymbolSearchUpdateService.cs (3)
36public ValueTask<ImmutableArray<PackageResult>> FindPackagesAsync(string source, TypeQuery typeQuery, NamespaceQuery namespaceQuery, CancellationToken cancellationToken) 43public ValueTask<ImmutableArray<PackageWithAssemblyResult>> FindPackagesWithAssemblyAsync(string source, string assemblyName, CancellationToken cancellationToken) 50public ValueTask<ImmutableArray<ReferenceAssemblyResult>> FindReferenceAssembliesAsync(TypeQuery typeQuery, NamespaceQuery namespaceQuery, CancellationToken cancellationToken)
Services\TaskList\RemoteTaskListService.cs (2)
28public ValueTask<ImmutableArray<TaskListItem>> GetTaskListItemsAsync( 29Checksum solutionChecksum, DocumentId documentId, ImmutableArray<TaskListItemDescriptor> descriptors, CancellationToken cancellationToken)
Services\UnitTesting\RemoteUnitTestingSearchService.cs (1)
49public ValueTask<ImmutableArray<UnitTestingSourceLocation>> GetSourceLocationsAsync(
Services\UnusedReferences\RemoteUnusedReferenceAnalysisService.cs (3)
26public ValueTask<ImmutableArray<ReferenceInfo>> GetUnusedReferencesAsync(Checksum solutionChecksum, string projectFilePath, string projectAssetsFilePath, ImmutableArray<ReferenceInfo> projectReferences, CancellationToken cancellationToken) 31var references = await ProjectAssetsFileReader.ReadReferencesAsync(projectReferences, projectAssetsFilePath).ConfigureAwait(false);
Services\ValueTracking\RemoteValueTrackingService.cs (5)
28public ValueTask<ImmutableArray<SerializableValueTrackedItem>> TrackValueSourceAsync(Checksum solutionChecksum, TextSpan selection, DocumentId documentId, CancellationToken cancellationToken) 42var items = progress.GetItems(); 47public ValueTask<ImmutableArray<SerializableValueTrackedItem>> TrackValueSourceAsync(Checksum solutionChecksum, SerializableValueTrackedItem previousTrackedItem, CancellationToken cancellationToken) 59return ImmutableArray<SerializableValueTrackedItem>.Empty; 65var items = progress.GetItems();
src\VisualStudio\Core\Def\UnusedReferences\ProjectAssets\ProjectAssetsFileReader.cs (2)
18public static async Task<ImmutableArray<ReferenceInfo>> ReadReferencesAsync( 19ImmutableArray<ReferenceInfo> projectReferences,
src\VisualStudio\Core\Def\Watson\FaultReporter.cs (3)
29private static ImmutableArray<TelemetrySession> s_telemetrySessions = []; 30private static ImmutableArray<TraceSource> s_loggers = []; 95private static readonly ImmutableArray<string> UnblameableMethodPrefixes =
Microsoft.CodeAnalysis.Remote.Workspaces (28)
AbstractAssetProvider.cs (1)
121async Task<ImmutableArray<DocumentInfo>> CreateDocumentInfosAsync(DocumentChecksumsAndIds checksumsAndIds)
AbstractAssetProviderExtensions.cs (1)
48public static async Task<ImmutableArray<T>> GetAssetsArrayAsync<T>(
EditAndContinue\ManagedHotReloadLanguageService.cs (4)
37public ValueTask<string?> TryGetMatchingSourceTextAsync(string filePath, ImmutableArray<byte> requiredChecksum, SourceHashAlgorithm checksumAlgorithm, CancellationToken cancellationToken) 42(_, _, _) => ValueTaskFactory.FromResult(ImmutableArray<ActiveStatementSpan>.Empty); 158public async ValueTask UpdateBaselinesAsync(ImmutableArray<string> projectPaths, CancellationToken cancellationToken) 274public async ValueTask<ManagedHotReloadUpdates> GetUpdatesAsync(ImmutableArray<string> runningProjects, CancellationToken cancellationToken)
EditAndContinue\ManagedHotReloadServiceProxy.cs (2)
19public ValueTask<ImmutableArray<ManagedActiveStatementDebugInfo>> GetActiveStatementsAsync(CancellationToken cancellationToken) 25public ValueTask<ImmutableArray<string>> GetCapabilitiesAsync(CancellationToken cancellationToken)
ExternalAccess\Pythia\Api\PythiaServiceDescriptorsWrapper.cs (2)
22ImmutableArray<IMessagePackFormatter> additionalFormatters, 23ImmutableArray<IFormatterResolver> additionalResolvers,
ExternalAccess\UnitTesting\Api\UnitTestingServiceDescriptorsWrapper.cs (2)
22ImmutableArray<IMessagePackFormatter> additionalFormatters, 23ImmutableArray<IFormatterResolver> additionalResolvers,
IRemoteAssetSynchronizationService.cs (2)
29ImmutableArray<(DocumentId documentId, Checksum baseTextChecksum, ImmutableArray<TextChange> textChanges, Checksum newTextChecksum)> changes,
RemoteSerializationOptions.cs (10)
32public RemoteSerializationOptions(ImmutableArray<IMessagePackFormatter> additionalFormatters, ImmutableArray<IFormatterResolver> additionalResolvers) 37public RemoteSerializationOptions(ImmutableArray<JsonConverter> jsonConverters) 40public RemoteSerializationOptions(ImmutableArray<System.Text.Json.Serialization.JsonConverter> jsonConverters) 44public ImmutableArray<JsonConverter> JsonConverters => (ImmutableArray<JsonConverter>)_options; 45public ImmutableArray<System.Text.Json.Serialization.JsonConverter> SystemTextJsonConverters => (ImmutableArray<System.Text.Json.Serialization.JsonConverter>)_options; 51ImmutableArray<JsonConverter> => ServiceJsonRpcDescriptor.Formatters.UTF8, 52ImmutableArray<System.Text.Json.Serialization.JsonConverter> => ServiceJsonRpcDescriptor.Formatters.UTF8SystemTextJson,
Serialization\MessagePackFormatters.cs (4)
27internal static readonly ImmutableArray<IMessagePackFormatter> Formatters = 36private static readonly ImmutableArray<IFormatterResolver> s_resolvers = [StandardResolverAllowPrivate.Instance]; 40internal static IFormatterResolver CreateResolver(ImmutableArray<IMessagePackFormatter> additionalFormatters, ImmutableArray<IFormatterResolver> additionalResolvers)
Microsoft.CodeAnalysis.Scripting (106)
CompilationErrorException.cs (2)
20public ImmutableArray<Diagnostic> Diagnostics { get; } 22public CompilationErrorException(string message, ImmutableArray<Diagnostic> diagnostics)
Hosting\AssemblyLoader\MetadataShadowCopyProvider.cs (4)
33private readonly ImmutableArray<string> _noShadowCopyDirectories; 103_noShadowCopyDirectories = ImmutableArray<string>.Empty; 452ImmutableArray<ModuleMetadata>.Builder moduleBuilder = null; 478var modules = (moduleBuilder != null) ? moduleBuilder.ToImmutable() : ImmutableArray.Create(manifestModule);
Hosting\CommandLine\CommandLineHelpers.cs (1)
15public static ImmutableArray<string> GetImports(CommandLineArguments args)
Hosting\CommandLine\CommandLineRunner.cs (5)
199return new CommonCompiler.LoggingSourceFileResolver(arguments.SourcePaths, arguments.BaseDirectory, ImmutableArray<KeyValuePair<string, string>>.Empty, loggerOpt); 298var diagnostics = newScript.Compile(cancellationToken); 328var newReferenceSearchPaths = ImmutableArray.CreateRange(globals.ReferencePaths); 329var newSourceSearchPaths = ImmutableArray.CreateRange(globals.SourcePaths); 378private void DisplayDiagnostics(ImmutableArray<Diagnostic> diagnostics)
Hosting\Resolvers\NuGetPackageResolver.cs (1)
49internal abstract ImmutableArray<string> ResolveNuGetPackage(string packageName, string packageVersion);
Hosting\Resolvers\RuntimeMetadataReferenceResolver.cs (9)
45internal static ImmutableArray<string> AssemblyExtensions = ImmutableArray.Create(".dll", ".exe"); 53ImmutableArray<string> searchPaths = default, 67ImmutableArray<string> searchPaths = default, 71ImmutableArray<string> platformAssemblyPaths = default, 143public override ImmutableArray<PortableExecutableReference> ResolveReference(string reference, string? baseFilePath, MetadataReferenceProperties properties) 149var paths = PackageResolver.ResolveNuGetPackage(packageName, packageVersion); 195return ImmutableArray<PortableExecutableReference>.Empty; 201internal static ImmutableArray<string> GetTrustedPlatformAssemblyPaths() 204internal static ImmutableDictionary<string, string> GetTrustedPlatformAssemblies(ImmutableArray<string> paths)
Script.cs (17)
138WithReferences(ImmutableArray<MetadataReference>.Empty). 139WithImports(ImmutableArray<string>.Empty); 232public ImmutableArray<Diagnostic> Compile(CancellationToken cancellationToken = default(CancellationToken)) 235internal abstract ImmutableArray<Diagnostic> CommonCompile(CancellationToken cancellationToken); 246internal ImmutableArray<MetadataReference> GetReferencesForCompilation( 283var resolved = resolver.ResolveReference(unresolved.Reference, null, unresolved.Properties); 342private ImmutableArray<Func<object[], Task>> _lazyPrecedingExecutors; 359internal override ImmutableArray<Diagnostic> CommonCompile(CancellationToken cancellationToken) 399private ImmutableArray<Func<object[], Task>> GetPrecedingExecutors(CancellationToken cancellationToken) 403var preceding = TryGetPrecedingExecutors(null, cancellationToken); 412private ImmutableArray<Func<object[], Task>> TryGetPrecedingExecutors(Script lastExecutedScriptInChainOpt, CancellationToken cancellationToken) 417return ImmutableArray<Func<object[], Task>>.Empty; 431return default(ImmutableArray<Func<object[], Task>>); 495var precedingExecutors = GetPrecedingExecutors(cancellationToken); 509var precedingExecutors = GetPrecedingExecutors(cancellationToken); 563var precedingExecutors = TryGetPrecedingExecutors(previousState.Script, cancellationToken); 577ImmutableArray<Func<object[], Task>> precedingExecutors,
ScriptExecutionState.cs (1)
69ImmutableArray<Func<object[], Task>> precedingExecutors,
ScriptMetadataResolver.cs (4)
20RuntimeMetadataReferenceResolver.CreateCurrentPlatformResolver(ImmutableArray<string>.Empty, baseDirectory: null)); 24public ImmutableArray<string> SearchPaths => _resolver.PathResolver.SearchPaths; 38public ScriptMetadataResolver WithSearchPaths(ImmutableArray<string> searchPaths) 70public override ImmutableArray<PortableExecutableReference> ResolveReference(string reference, string? baseFilePath, MetadataReferenceProperties properties)
ScriptOptions.cs (9)
28namespaces: ImmutableArray<string>.Empty, 39private static ImmutableArray<MetadataReference> GetDefaultMetadataReferences() 43return ImmutableArray<MetadataReference>.Empty; 88public ImmutableArray<MetadataReference> MetadataReferences { get; private set; } 103public ImmutableArray<string> Imports { get; private set; } 147ImmutableArray<MetadataReference> references, 148ImmutableArray<string> namespaces, 215private ScriptOptions WithReferences(ImmutableArray<MetadataReference> references) 323private ScriptOptions WithImports(ImmutableArray<string> imports)
ScriptSourceResolver.cs (3)
17public static new ScriptSourceResolver Default { get; } = new ScriptSourceResolver(ImmutableArray<string>.Empty, null); 19private ScriptSourceResolver(ImmutableArray<string> sourcePaths, string baseDirectory) 30public ScriptSourceResolver WithSearchPaths(ImmutableArray<string> searchPaths)
ScriptState.cs (3)
39private ImmutableArray<ScriptVariable> _lazyVariables; 61public ImmutableArray<ScriptVariable> Variables 94private ImmutableArray<ScriptVariable> CreateVariables()
src\Compilers\Core\Portable\FileSystem\RelativePathResolver.cs (3)
18public ImmutableArray<string> SearchPaths { get; } 27public RelativePathResolver(ImmutableArray<string> searchPaths, string? baseDirectory) 54public RelativePathResolver WithSearchPaths(ImmutableArray<string> searchPaths) =>
src\Compilers\Shared\GlobalAssemblyCacheHelpers\ClrGlobalAssemblyCache.cs (9)
82public override IEnumerable<AssemblyIdentity> GetAssemblyIdentities(AssemblyName partialName, ImmutableArray<ProcessorArchitecture> architectureFilter = default(ImmutableArray<ProcessorArchitecture>)) 93public override IEnumerable<AssemblyIdentity> GetAssemblyIdentities(string partialName = null, ImmutableArray<ProcessorArchitecture> architectureFilter = default(ImmutableArray<ProcessorArchitecture>)) 117public override IEnumerable<string> GetAssemblySimpleNames(ImmutableArray<ProcessorArchitecture> architectureFilter = default(ImmutableArray<ProcessorArchitecture>)) 126ImmutableArray<ProcessorArchitecture> architectureFilter) 138ImmutableArray<ProcessorArchitecture> architectureFilter) 203ImmutableArray<ProcessorArchitecture> architectureFilter,
src\Compilers\Shared\GlobalAssemblyCacheHelpers\DotNetCoreGlobalAssemblyCache.cs (7)
22public override IEnumerable<AssemblyIdentity> GetAssemblyIdentities(AssemblyName partialName, ImmutableArray<ProcessorArchitecture> architectureFilter = default) 24return ImmutableArray<AssemblyIdentity>.Empty; 27public override IEnumerable<AssemblyIdentity> GetAssemblyIdentities(string? partialName = null, ImmutableArray<ProcessorArchitecture> architectureFilter = default) 29return ImmutableArray<AssemblyIdentity>.Empty; 32public override IEnumerable<string> GetAssemblySimpleNames(ImmutableArray<ProcessorArchitecture> architectureFilter = default) 34return ImmutableArray<string>.Empty; 37public override AssemblyIdentity? ResolvePartialName(string displayName, out string? location, ImmutableArray<ProcessorArchitecture> architectureFilter = default, CultureInfo? preferredCulture = null)
src\Compilers\Shared\GlobalAssemblyCacheHelpers\GacFileResolver.cs (2)
41public ImmutableArray<ProcessorArchitecture> Architectures { get; } 56ImmutableArray<ProcessorArchitecture> architectures = default,
src\Compilers\Shared\GlobalAssemblyCacheHelpers\GlobalAssemblyCache.cs (6)
37public static readonly ImmutableArray<ProcessorArchitecture> CurrentArchitectures = (IntPtr.Size == 4) 47public abstract IEnumerable<AssemblyIdentity> GetAssemblyIdentities(AssemblyName partialName, ImmutableArray<ProcessorArchitecture> architectureFilter = default); 55public abstract IEnumerable<AssemblyIdentity> GetAssemblyIdentities(string? partialName = null, ImmutableArray<ProcessorArchitecture> architectureFilter = default); 62public abstract IEnumerable<string> GetAssemblySimpleNames(ImmutableArray<ProcessorArchitecture> architectureFilter = default); 74ImmutableArray<ProcessorArchitecture> architectureFilter = default, 92ImmutableArray<ProcessorArchitecture> architectureFilter = default,
src\Compilers\Shared\GlobalAssemblyCacheHelpers\GlobalAssemblyCacheLocation.cs (2)
30public static ImmutableArray<string> s_rootLocations; 32public static ImmutableArray<string> RootLocations
src\Compilers\Shared\GlobalAssemblyCacheHelpers\MonoGlobalAssemblyCache.cs (10)
95private static IEnumerable<(AssemblyIdentity Identity, string Path)> GetAssemblyIdentitiesAndPaths(AssemblyName name, ImmutableArray<ProcessorArchitecture> architectureFilter) 105private static IEnumerable<(AssemblyIdentity Identity, string Path)> GetAssemblyIdentitiesAndPaths(string name, Version version, byte[] publicKeyToken, ImmutableArray<ProcessorArchitecture> architectureFilter) 121architectureFilter != default(ImmutableArray<ProcessorArchitecture>) && 139public override IEnumerable<AssemblyIdentity> GetAssemblyIdentities(AssemblyName partialName, ImmutableArray<ProcessorArchitecture> architectureFilter = default(ImmutableArray<ProcessorArchitecture>)) 144public override IEnumerable<AssemblyIdentity> GetAssemblyIdentities(string partialName = null, ImmutableArray<ProcessorArchitecture> architectureFilter = default(ImmutableArray<ProcessorArchitecture>)) 159public override IEnumerable<string> GetAssemblySimpleNames(ImmutableArray<ProcessorArchitecture> architectureFilter = default(ImmutableArray<ProcessorArchitecture>)) 168ImmutableArray<ProcessorArchitecture> architectureFilter,
Utilities\IListExtensions.cs (1)
14public static void AddRange<T>(this IList<T> list, ImmutableArray<T> items)
Utilities\ParameterValidationHelpers.cs (7)
17internal static ImmutableArray<T> CheckImmutableArray<T>(ImmutableArray<T> items, string parameterName) 35internal static ImmutableArray<T> ToImmutableArrayChecked<T>(IEnumerable<T> items, string parameterName) 43internal static ImmutableArray<T> ConcatChecked<T>(ImmutableArray<T> existing, IEnumerable<T> items, string parameterName) 78if (items == null || items is ImmutableArray<T> && ((ImmutableArray<T>)items).IsDefault)
Microsoft.CodeAnalysis.Scripting.Desktop.UnitTests (3)
GlobalAssemblyCacheTests.cs (1)
107var names = ClrGlobalAssemblyCache.GetAssemblyObjects(partialNameFilter: null, architectureFilter: default(ImmutableArray<ProcessorArchitecture>)).ToArray();
MetadataShadowCopyProviderTests.cs (2)
29private static readonly ImmutableArray<string> s_systemNoShadowCopyDirectories = IsRunningOnMono 30? ImmutableArray<string>.Empty
Microsoft.CodeAnalysis.Scripting.TestUtilities (2)
TestRuntimeMetadataReferenceResolver.cs (2)
47public override ImmutableArray<PortableExecutableReference> ResolveReference(string reference, string baseFilePath, MetadataReferenceProperties properties) 56return default(ImmutableArray<PortableExecutableReference>);
Microsoft.CodeAnalysis.Scripting.UnitTests (15)
RuntimeMetadataReferenceResolverTests.cs (7)
32packageResolver: new PackageResolver(ImmutableDictionary<string, ImmutableArray<string>>.Empty.Add("nuget:N/1.0", ImmutableArray.Create(assembly1.Path, assembly2.Path))), 37var actualReferences = resolver.ResolveReference("nuget:N/1.0", baseFilePath: null, properties: MetadataReferenceProperties.Assembly); 69private readonly IImmutableDictionary<string, ImmutableArray<string>> _map; 71internal PackageResolver(IImmutableDictionary<string, ImmutableArray<string>> map) 76internal override ImmutableArray<string> ResolveNuGetPackage(string packageName, string packageVersion) 79ImmutableArray<string> paths; 84return ImmutableArray<string>.Empty;
ScriptOptionsTests.cs (8)
40var options = ScriptOptions.Default.WithReferences(ImmutableArray<MetadataReference>.Empty); 63var empty = ScriptOptions.Default.WithReferences(ImmutableArray<MetadataReference>.Empty); 82var options = ScriptOptions.Default.WithReferences(ImmutableArray<MetadataReference>.Empty); 85Assert.Throws<ArgumentNullException>("references", () => options.WithReferences(default(ImmutableArray<MetadataReference>))); 91Assert.Throws<ArgumentNullException>("references", () => options.WithReferences(default(ImmutableArray<Assembly>))); 97Assert.Throws<ArgumentNullException>("references", () => options.WithReferences(default(ImmutableArray<string>))); 128Assert.Throws<ArgumentNullException>("imports", () => options.AddImports(default(ImmutableArray<string>))); 149Assert.Throws<ArgumentNullException>("imports", () => options.WithImports(default(ImmutableArray<string>)));
Microsoft.CodeAnalysis.Test.Utilities (341)
AssemblyLoadTestFixture.cs (1)
521private static string GenerateDll(string assemblyName, TempDirectory directory, string csSource, ImmutableArray<byte> publicKeyOpt, params MetadataReference[] additionalReferences)
Assert\AssertEx.cs (7)
167public static void Equal<T>(ImmutableArray<T> expected, IEnumerable<T> actual) 170public static void Equal<T>(ImmutableArray<T> expected, IEnumerable<T> actual, IEqualityComparer<T> comparer = null, string message = null) 182public static void Equal<T>(IEnumerable<T> expected, ImmutableArray<T> actual) 197public static void Equal<T>(ImmutableArray<T> expected, ImmutableArray<T> actual) 200public static void Equal<T>(ImmutableArray<T> expected, ImmutableArray<T> actual, IEqualityComparer<T> comparer = null, string message = null, string itemSeparator = null)
CommonTestBase.cs (8)
208public static ImmutableArray<byte> ReadFromFile(string path) 217out ImmutableArray<byte> assemblyBytes, 218out ImmutableArray<byte> pdbBytes, 240pdbBytes = default(ImmutableArray<byte>); 246EmitILToArray(ilSource, prependDefaultHeader, includePdb: false, assemblyBytes: out var assemblyBytes, pdbBytes: out var pdbBytes, autoInherit: autoInherit); 252EmitILToArray(ilSource, prependDefaultHeader, includePdb: false, assemblyBytes: out var assemblyBytes, pdbBytes: out var pdbBytes);
Compilation\CompilationDifference.cs (7)
29public readonly ImmutableArray<byte> MetadataDelta; 30public readonly ImmutableArray<byte> ILDelta; 31public readonly ImmutableArray<byte> PdbDelta; 36ImmutableArray<byte> metadata, 37ImmutableArray<byte> il, 38ImmutableArray<byte> pdb, 140internal static void VerifySynthesizedMembers(IReadOnlyDictionary<ISymbolInternal, ImmutableArray<ISymbolInternal>> actualMembers, bool displayTypeKind, params string[] expected)
Compilation\CompilationExtensions.cs (6)
50internal static ImmutableArray<byte> EmitToArray( 119ImmutableArray<string> aliases = default, 126ImmutableArray<string> aliases = default, 129var image = comp.EmitToArray(options, expectedWarnings: expectedWarnings); 143ImmutableArray<SemanticEdit> edits, 234ImmutableArray<SyntaxNode> executableCodeBlocks = declaration.ExecutableCodeBlocks;
Compilation\CompilationTestDataExtensions.cs (4)
43internal static ImmutableArray<KeyValuePair<IMethodSymbolInternal, CompilationTestData.MethodData>> GetExplicitlyDeclaredMethods(this CompilationTestData data) 110closures: ImmutableArray<ClosureDebugInfo>.Empty, 111lambdas: ImmutableArray<LambdaDebugInfo>.Empty, 112stateMachineStates: ImmutableArray<StateMachineStateDebugInfo>.Empty);
Compilation\ControlFlowGraphVerifier.cs (4)
111ImmutableArray<BasicBlock> blocks = graph.Blocks; 183var predecessors = block.Predecessors; 233var statements = block.Operations; 1615string buildList(ImmutableArray<ControlFlowRegion> list)
Compilation\DiagnosticBagErrorLogger.cs (1)
24public override void AddAnalyzerDescriptorsAndExecutionTime(ImmutableArray<(DiagnosticDescriptor Descriptor, DiagnosticDescriptorErrorLoggerInfo Info)> descriptors, double totalAnalyzerExecutionTime)
Compilation\IRuntimeEnvironment.cs (17)
45internal ImmutableArray<byte> Assembly { get; } 46internal ImmutableArray<byte> Pdb { get; } 48internal EmitOutput(ImmutableArray<byte> assembly, ImmutableArray<byte> pdb) 71unsafe ImmutableArray<byte> readMetadata(MetadataReader mdReader) 120ImmutableArray<byte> bytes = module.Module.PEReaderOpt.GetEntireImage().GetContent(); 128pdb: default(ImmutableArray<byte>), 136pdb: default(ImmutableArray<byte>), 218pdb: default(ImmutableArray<byte>), 246var pdb = default(ImmutableArray<byte>); 247var assembly = default(ImmutableArray<byte>); 251var embeddedTexts = compilation.SyntaxTrees 396ImmutableArray<byte> GetMainImage(); 397ImmutableArray<byte> GetMainPdb(); 398ImmutableArray<Diagnostic> GetDiagnostics();
Compilation\NullErrorLogger.cs (1)
18public override void AddAnalyzerDescriptorsAndExecutionTime(ImmutableArray<(DiagnosticDescriptor Descriptor, DiagnosticDescriptorErrorLoggerInfo Info)> descriptors, double totalAnalyzerExecutionTime)
Compilation\OperationTreeVerifier.cs (9)
348private void VisitArrayCommon<T>(ImmutableArray<T> list, string header, bool logElementCount, bool logNullForDefault, Action<T> arrayElementVisitor) 399var children = operation.ChildOperations.ToImmutableArray(); 406private void VisitArray<T>(ImmutableArray<T> list, string header, bool logElementCount, bool logNullForDefault = false) 412private void VisitArray(ImmutableArray<ISymbol> list, string header, bool logElementCount, bool logNullForDefault = false) 417private void VisitArray(ImmutableArray<string> list, string header, bool logElementCount, bool logNullForDefault = false) 422private void VisitArray(ImmutableArray<RefKind> list, string header, bool logElementCount, bool logNullForDefault = false) 849private void VisitArguments(ImmutableArray<IArgumentOperation> arguments) 864private static void VerifyGetArgumentNamePublicApi(HasDynamicArgumentsExpression operation, ImmutableArray<string> argumentNames) 884private static void VerifyGetArgumentRefKindPublicApi(HasDynamicArgumentsExpression operation, ImmutableArray<RefKind> argumentRefKinds)
Compilation\TestDesktopStrongNameProvider.cs (3)
20out ImmutableArray<byte> publicKey); 27public TestDesktopStrongNameProvider(ImmutableArray<string> keyFileSearchPaths = default, StrongNameFileSystem fileSystem = null) 36internal override void ReadKeysFromContainer(string keyContainer, out ImmutableArray<byte> publicKey) => ReadKeysFromContainerFunc(keyContainer, out publicKey);
Compilation\TestOperationVisitor.cs (3)
242private static void VisitLocals(ImmutableArray<ILocalSymbol> locals) 345void visitArguments(ImmutableArray<IArgumentOperation> arguments) 957var children = operation.ChildOperations.ToImmutableArray();
CompilationVerifier.cs (6)
36private ImmutableArray<Diagnostic> _diagnostics; 40public ImmutableArray<byte> EmittedAssemblyData; 41public ImmutableArray<byte> EmittedAssemblyPdb; 57internal ImmutableArray<Diagnostic> Diagnostics => _diagnostics; 74var images = new List<ImmutableArray<byte>> 709ImmutableArray<byte> image,
Diagnostics\BoxingOperationAnalyzer.cs (1)
33public sealed override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics
Diagnostics\CommonDiagnosticAnalyzers.cs (57)
56public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 445ImmutableArray<(DiagnosticDescriptor Descriptor, DiagnosticDescriptorErrorLoggerInfo Info)> descriptorsWithInfo, 517public override ImmutableArray<SuppressionDescriptor> SupportedSuppressions 551public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 598public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 649public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(DiagnosticDescriptor); 678public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => 717public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => 743public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(DummyRule); 760public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(Rule); 784public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => 806public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } 821public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(Descriptor); 832public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create((DiagnosticDescriptor)null); 852public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(Descriptor); 873public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(Descriptor); 896public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(Descriptor); 959public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(Descriptor); 983public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => throw new NotImplementedException(); 998public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(Rule); 1037public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(Rule); 1069public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(Descriptor); 1102public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(Descriptor); 1136public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(Descriptor); 1199public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(Descriptor); 1255public ImmutableArray<(ControlFlowGraph Graph, ISymbol AssociatedSymbol)> GetControlFlowGraphs() 1267private void CacheAndVerifyControlFlowGraph(ImmutableArray<IOperation> operationBlocks, Func<IOperation, (ControlFlowGraph Graph, ISymbol AssociatedSymbol)> getControlFlowGraph) 1327public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(Descriptor); 1385public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(Descriptor); 1416public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(Descriptor); 1461public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(Descriptor); 1518public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(Warning, Error, Summary, Summary2); 1691public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(Rule); 1792public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(GeneratedCodeDescriptor, NonGeneratedCodeDescriptor, UniqueTextFileDescriptor, NumberOfUniqueTextFileDescriptor); 1855public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(ParameterDescriptor); 1959public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 2168public override ImmutableArray<SuppressionDescriptor> SupportedSuppressions 2200public override ImmutableArray<SuppressionDescriptor> SupportedSuppressions { get; } 2230public override ImmutableArray<SuppressionDescriptor> SupportedSuppressions 2250public override ImmutableArray<SuppressionDescriptor> SupportedSuppressions 2273public override ImmutableArray<SuppressionDescriptor> SupportedSuppressions 2301public override ImmutableArray<SuppressionDescriptor> SupportedSuppressions 2333public override ImmutableArray<SuppressionDescriptor> SupportedSuppressions 2365public override ImmutableArray<SuppressionDescriptor> SupportedSuppressions 2416public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(_rule); 2482public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(Descriptor); 2532public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(Descriptor); 2560public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(s_descriptor); 2592public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(Descriptor); 2638public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(Descriptor); 2679public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(s_descriptor); 2727public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(s_descriptor); 2875public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(Descriptor); 2922public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(s_descriptor); 3006public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(s_descriptor); 3096public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(s_descriptor); 3237public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(_descriptor);
Diagnostics\CouldHaveMoreSpecificTypeAnalyzer.cs (1)
37public sealed override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics
Diagnostics\DiagnosticDescription.cs (5)
41private readonly ImmutableArray<string> _originalFormatSpecifiers = ImmutableArray<string>.Empty; 465private static ImmutableArray<string> GetFormatSpecifiers(string messageFormat) 467var specifiers = ImmutableArray<string>.Empty;
Diagnostics\DiagnosticExtensions.cs (21)
36public static void VerifyErrorCodes(this ImmutableArray<Diagnostic> actual, params DiagnosticDescription[] expected) 61public static void Verify(this ImmutableArray<Diagnostic> actual, params DiagnosticDescription[] expected) 108var diagnostics = c.GetDiagnostics(); 116TCompilation c, ImmutableArray<Diagnostic> diagnostics) where TCompilation : Compilation 125var assemblyIds = c.GetUnreferencedAssemblyIdentities(diagnostic); 136var assemblyIds = c.GetUnreferencedAssemblyIdentities(diagnostic); 172var newCompilation = c.GetCompilationWithAnalyzerDiagnostics(analyzers, options, onAnalyzerException, reportSuppressedDiagnostics, includeCompilerDiagnostics: false, CancellationToken.None, out var diagnostics); 177public static ImmutableArray<Diagnostic> GetAnalyzerDiagnostics<TCompilation>( 188public static ImmutableArray<Diagnostic> GetAnalyzerDiagnostics<TCompilation>( 197_ = GetCompilationWithAnalyzerDiagnostics(c, analyzers, options, onAnalyzerException, reportSuppressedDiagnostics, includeCompilerDiagnostics: false, cancellationToken, out var diagnostics); 275c = c.GetCompilationWithAnalyzerDiagnostics(analyzers, options, onAnalyzerException, reportSuppressedDiagnostics: true, includeCompilerDiagnostics: true, cancellationToken, out var diagnostics); 291c = c.GetCompilationWithAnalyzerDiagnostics(analyzers, options, onAnalyzerException, reportSuppressedDiagnostics: false, includeCompilerDiagnostics: true, cancellationToken, out var diagnostics); 303out ImmutableArray<Diagnostic> diagnostics) 306var analyzersArray = analyzers.ToImmutableArray(); 318var analyzerDiagnostics = driver.GetDiagnosticsAsync(newCompilation, cancellationToken).Result; 360public static ImmutableArray<Diagnostic> GetEmitDiagnostics<TCompilation>( 376public static ImmutableArray<Diagnostic> GetEmitDiagnostics<TCompilation>(this TCompilation c) 401public static ImmutableDictionary<string, ImmutableArray<DiagnosticAnalyzer>> GetCompilerDiagnosticAnalyzersMap() 403var builder = ImmutableDictionary.CreateBuilder<string, ImmutableArray<DiagnosticAnalyzer>>(); 415public static ImmutableDictionary<string, ImmutableArray<AnalyzerReference>> GetCompilerDiagnosticAnalyzerReferencesMap() 417var builder = ImmutableDictionary.CreateBuilder<string, ImmutableArray<AnalyzerReference>>();
Diagnostics\EmptyArrayAnalyzer.cs (1)
38public sealed override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics
Diagnostics\FieldCouldBeReadOnlyAnalyzer.cs (1)
29public sealed override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics
Diagnostics\LocalCouldBeConstAnalyzer.cs (1)
29public sealed override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics
Diagnostics\OperationTestAnalyzer.cs (35)
46public sealed override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 92public sealed override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 134public sealed override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 323public sealed override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 527public sealed override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 620public sealed override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 657public sealed override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 705public sealed override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 742public sealed override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 784public sealed override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 832public sealed override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 889public sealed override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 946public sealed override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(ImplicitInstanceDescriptor, ExplicitInstanceDescriptor); 1020public sealed override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => 1093public sealed override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(LongParamsDescriptor, InvalidConstructorDescriptor); 1174public sealed override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(EqualsValueDescriptor); 1216public sealed override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 1253public sealed override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => 1303public sealed override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => 1364public sealed override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 1442public sealed override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(LabelDescriptor, GotoDescriptor); 1508public sealed override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(OperatorAddMethodDescriptor, OperatorMinusMethodDescriptor, DoubleMultiplyDescriptor, BooleanNotDescriptor); 1561public sealed override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 1600public sealed override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 1684public sealed override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 1776public sealed override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(InvalidBinaryDescriptor, 1835public sealed override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 1884public sealed override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 1916public sealed override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 1963public sealed override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 2005public sealed override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 2041public sealed override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 2071public sealed override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 2099public sealed override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 2131public sealed override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics
Diagnostics\SuppressMessageAttributeTests.cs (1)
1395MarkupTestFile.GetSpans(markup, out var source, out ImmutableArray<TextSpan> spans);
Diagnostics\SuppressMessageAttributeTests.DiagnosticAnalyzers.cs (8)
30public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 80public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 105public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 127public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 192public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 231public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 267public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 299public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics
Diagnostics\TestDiagnosticAnalyzer.cs (5)
17protected static readonly ImmutableArray<SymbolKind> AllSymbolKinds = GetAllEnumValues<SymbolKind>(); 19protected static readonly ImmutableArray<TLanguageKindEnum> AllSyntaxKinds = GetAllEnumValues<TLanguageKindEnum>(); 21protected static readonly ImmutableArray<string> AllAnalyzerMemberNames = new string[] { "AnalyzeCodeBlock", "AnalyzeCompilation", "AnalyzeNode", "AnalyzeSemanticModel", "AnalyzeSymbol", "AnalyzeSyntaxTree", "AnalyzeAdditionalFile", "Initialize", "SupportedDiagnostics" }.ToImmutableArray(); 28private static ImmutableArray<T> GetAllEnumValues<T>() 71public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics
FX\ImmutableArrayTestExtensions.cs (3)
16/// The collection of extension methods for the <see cref="ImmutableArray{T}"/> type 27internal static void WriteToFile(this ImmutableArray<byte> bytes, string path) 33internal static void WriteToStream(this ImmutableArray<byte> bytes, Stream stream)
FX\PinnedBlob.cs (1)
20public PinnedBlob(ImmutableArray<byte> blob)
FX\PinnedMetadata.cs (1)
17public unsafe PinnedMetadata(ImmutableArray<byte> metadata)
ICompilationVerifier.cs (3)
13ImmutableArray<ModuleMetadata> GetAllModuleMetadata(); 14IModuleSymbol GetModuleSymbolForEmittedImage(ImmutableArray<byte> peImage, MetadataImportOptions importOptions); 16ImmutableArray<byte> EmittedAssemblyData { get; }
InstrumentationChecker.cs (6)
47var snippets = GetActualSnippets(method, reader, sourceLines); 182var snippets = GetActualSnippets(method, reader, sourceLines); 322var peImage = compilation.EmitToArray(EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.TestCoverage))); 335var actualSnippets = GetActualSnippets(method, reader, sourceLines); 347internal static ImmutableArray<string> GetActualSnippets(int method, DynamicAnalysisDataReader reader, string[] sourceLines) 349var actualSpans = reader.GetSpans(reader.Methods[method - 1].Blob);
MarkedSource\MarkupTestFile.cs (10)
212string input, out string output, out int? cursorPositionOpt, out ImmutableArray<TextSpan> spans, 223string input, out string output, out int? cursorPositionOpt, out IDictionary<string, ImmutableArray<TextSpan>> spans, 230public static void GetSpans(string input, out string output, out IDictionary<string, ImmutableArray<TextSpan>> spans, 234public static void GetPositionAndSpans(string input, out string output, out int cursorPosition, out ImmutableArray<TextSpan> spans) 241=> GetPositionAndSpans(input, out output, out cursorPosition, out ImmutableArray<TextSpan> spans); 244=> GetPositionAndSpans(input, out output, out cursorPosition, out var spans); 248GetPositionAndSpans(input, out output, out cursorPosition, out ImmutableArray<TextSpan> spans); 254GetPositionAndSpans(input, out output, out cursorPosition, out var spans); 258public static void GetSpans(string input, out string output, out ImmutableArray<TextSpan> spans) 265GetSpans(input, out output, out ImmutableArray<TextSpan> spans);
MarkedSource\SourceWithMarkedNodes.cs (1)
30public readonly ImmutableArray<MarkedSpan> MarkedSpans;
Metadata\AggregatedMetadataReader.cs (1)
20public ImmutableArray<MetadataReader> Readers { get; }
Metadata\DynamicAnalysisDataReader.cs (4)
65public ImmutableArray<DynamicAnalysisDocument> Documents { get; } 66public ImmutableArray<DynamicAnalysisMethod> Methods { get; } 197public ImmutableArray<DynamicAnalysisSpan> GetSpans(BlobHandle handle) 201return ImmutableArray<DynamicAnalysisSpan>.Empty;
Metadata\ILBuilderVisualizer.cs (2)
75private static List<HandlerSpan> GetHandlerSpans(ImmutableArray<Cci.ExceptionHandlerRegion> regions) 144var ilStream = builder.RealizedIL;
Metadata\ILValidation.cs (3)
94ImmutableArray<byte> publicKeyBlob = metadataReader.GetBlobContent(metadataReader.GetAssemblyDefinition().PublicKey); 266public static unsafe string GetMethodIL(this ImmutableArray<byte> ilArray) 310public static unsafe MethodBodyBlock GetMethodBodyBlock(this ImmutableArray<byte> ilArray)
Metadata\MetadataReaderUtils.cs (11)
181private static ImmutableArray<T> ReadArray<T>(this MetadataReader reader, BlobHandle blobHandle, ReadBlobItemDelegate<T> readItem) 196public static ImmutableArray<byte> ReadByteArray(this MetadataReader reader, BlobHandle blobHandle) 201public static ImmutableArray<bool> ReadBoolArray(this MetadataReader reader, BlobHandle blobHandle) 234public static bool IsIncluded(this ImmutableArray<byte> metadata, string str) 251public static bool IsAtIndex(this ImmutableArray<byte> metadata, ImmutableArray<byte> bytes, int offset) 263public static ImmutableArray<byte> GetSourceLinkBlob(this MetadataReader reader) 418public string GetGenericInstantiation(string genericType, ImmutableArray<string> typeArguments) 482internal static void VerifyMethodBodies(ImmutableArray<byte> peImage, Action<byte[]> ilValidator) 505internal static void AssertEmptyOrThrowNull(ImmutableArray<byte> peImage) 516internal static void AssertNotThrowNull(ImmutableArray<byte> peImage)
Metadata\MetadataValidation.cs (2)
171var md1 = peReader1.GetMetadata().GetContent(); 172var md2 = peReader2.GetMetadata().GetContent();
Metadata\ModuleData.cs (9)
56public readonly ImmutableArray<byte> Image; 57public readonly ImmutableArray<byte> Pdb; 65public ModuleData(string netModuleName, ImmutableArray<byte> image, ImmutableArray<byte> pdb, bool inMemoryModule, bool isCorLib) 75public ModuleData(AssemblyIdentity identity, OutputKind kind, ImmutableArray<byte> image, ImmutableArray<byte> pdb, bool inMemoryModule, bool isCorLib) 85public ModuleData(ModuleDataId id, OutputKind kind, ImmutableArray<byte> image, ImmutableArray<byte> pdb, bool inMemoryModule, bool isCorLib) 95private static Guid GetMvid(ImmutableArray<byte> image)
Mocks\Silverlight.cs (2)
77var publicKey = TestHelpers.HexToByte(publicKeyText.AsSpan()); 78var publicKeyToken = AssemblyIdentity.CalculatePublicKeyToken(publicKey);
Mocks\StdOle.cs (2)
64var publicKey = TestHelpers.HexToByte(publicKeyText.AsSpan()); 65var publicKeyToken = AssemblyIdentity.CalculatePublicKeyToken(publicKey);
Mocks\TestAnalyzerReference.cs (2)
28public override ImmutableArray<DiagnosticAnalyzer> GetAnalyzers(string language) => throw new NotImplementedException(); 29public override ImmutableArray<DiagnosticAnalyzer> GetAnalyzersForAllLanguages() => throw new NotImplementedException();
Mocks\TestMetadataReference.cs (2)
57private readonly ImmutableArray<byte> _metadataBytes; 65public TestImageReference(ImmutableArray<byte> metadataBytes, string display)
Mocks\TestMetadataReferenceResolver.cs (3)
31public override ImmutableArray<PortableExecutableReference> ResolveReference(string reference, string baseFilePath, MetadataReferenceProperties properties) 42return ImmutableArray<PortableExecutableReference>.Empty; 53return map.TryGetValue(reference, out var result) ? ImmutableArray.Create(result) : ImmutableArray<PortableExecutableReference>.Empty;
Mocks\TestMissingMetadataReferenceResolver.cs (2)
53public override ImmutableArray<PortableExecutableReference> ResolveReference(string reference, string baseFilePath, MetadataReferenceProperties properties) => default(ImmutableArray<PortableExecutableReference>);
Mocks\VirtualizedRelativePathResolver.cs (2)
19public VirtualizedRelativePathResolver(IEnumerable<string> existingFullPaths, string baseDirectory = null, ImmutableArray<string> searchPaths = default(ImmutableArray<string>))
PDB\DeterministicBuildCompilationTestHelpers.cs (2)
78var frameworkReferences = TargetFrameworkUtil.GetReferences(targetFramework); 146? ImmutableArray<string>.Empty
PDB\MetadataReferenceInfo.cs (2)
20public readonly ImmutableArray<string> ExternAliases; 29ImmutableArray<string> externAliases,
Platform\CoreClr\CoreCLRRuntimeEnvironment.cs (8)
53var mainImage = mainOutput.Value.Assembly; 54var mainPdb = mainOutput.Value.Pdb; 61pdb: usePdbForDebugging ? mainPdb : default(ImmutableArray<byte>), 102public ImmutableArray<Diagnostic> GetDiagnostics() => GetEmitData().Diagnostics; 104public ImmutableArray<byte> GetMainImage() => GetEmitData().MainModule.Image; 106public ImmutableArray<byte> GetMainPdb() => GetEmitData().MainModulePdb; 160internal ImmutableArray<byte> MainModulePdb; 162internal ImmutableArray<Diagnostic> Diagnostics;
Platform\CoreClr\TestExecutionLoadContext.cs (2)
55private Assembly LoadImageAsAssembly(ImmutableArray<byte> mainImage) 63internal (int ExitCode, string Output) Execute(ImmutableArray<byte> mainImage, string[] mainArgs, int? expectedOutputLength)
Platform\Custom\SigningTestHelpers.cs (2)
21new DesktopStrongNameProvider(ImmutableArray<string>.Empty, new VirtualizedStrongNameFileSystem(Path.GetTempPath())); 38internal static readonly ImmutableArray<byte> PublicKey = ImmutableArray.Create(TestResources.General.snPublicKey);
SourceGeneration\TestGenerators.cs (1)
84Func<ImmutableArray<(string hintName, SourceText? sourceText)>> computeSourceTexts)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\CustomDataFlowAnalysis.cs (2)
33var blocks = controlFlowGraph.Blocks; 68ImmutableArray<BasicBlock> blocks,
TargetFrameworkUtil.cs (34)
101public static ImmutableArray<Net70.ReferenceInfo> AllReferenceInfos { get; } = ImmutableArray.CreateRange(Net70.ReferenceInfos.All); 102public static ImmutableArray<MetadataReference> References { get; } = ImmutableArray.CreateRange<MetadataReference>(Net70.References.All); 116private static ImmutableArray<MetadataReference> s_references; 124public static ImmutableArray<MetadataReference> References 144public static ImmutableArray<MetadataReference> Standard { get; } = 168private static readonly ConcurrentDictionary<string, ImmutableArray<PortableExecutableReference>> s_dynamicReferenceMap = new ConcurrentDictionary<string, ImmutableArray<PortableExecutableReference>>(StringComparer.Ordinal); 170public static ImmutableArray<MetadataReference> NetLatest => RuntimeUtilities.IsCoreClrRuntime ? NetCoreApp.References : NetFramework.References; 171public static ImmutableArray<MetadataReference> StandardReferences => RuntimeUtilities.IsCoreClrRuntime ? NetStandard20References : NetFramework.Standard; 174public static ImmutableArray<MetadataReference> StandardAndCSharpReferences => StandardReferences.Add(StandardCSharpReference); 175public static ImmutableArray<MetadataReference> StandardAndVBRuntimeReferences => StandardReferences.Add(StandardVisualBasicReference); 183public static ImmutableArray<MetadataReference> WinRTReferences => 187public static ImmutableArray<MetadataReference> MinimalReferences => 191public static ImmutableArray<MetadataReference> MinimalAsyncReferences => 200public static ImmutableArray<MetadataReference> Mscorlib45ExtendedReferences { get; } = 208public static ImmutableArray<MetadataReference> Mscorlib46ExtendedReferences { get; } = 216public static ImmutableArray<MetadataReference> Mscorlib40References { get; } = 220public static ImmutableArray<MetadataReference> Mscorlib40ExtendedReferences { get; } = 226public static ImmutableArray<MetadataReference> Mscorlib40andSystemCoreReferences { get; } = 231public static ImmutableArray<MetadataReference> Mscorlib40andVBRuntimeReferences { get; } = 237public static ImmutableArray<MetadataReference> Mscorlib45References { get; } = 241public static ImmutableArray<MetadataReference> Mscorlib46References { get; } = 245public static ImmutableArray<MetadataReference> Mscorlib461References { get; } = 249public static ImmutableArray<MetadataReference> Mscorlib461ExtendedReferences { get; } = 257public static ImmutableArray<MetadataReference> Mscorlib461AndCSharpReferences { get; } = 263public static ImmutableArray<MetadataReference> Mscorlib461AndVBRuntimeReferences { get; } = 269public static ImmutableArray<MetadataReference> NetStandard20References { get; } = 279public static ImmutableArray<MetadataReference> DefaultVbReferences { get; } = 298public static ImmutableArray<MetadataReference> GetReferences(TargetFramework targetFramework) => targetFramework switch 302TargetFramework.Empty => ImmutableArray<MetadataReference>.Empty, 333public static ImmutableArray<MetadataReference> GetReferences(TargetFramework tf, IEnumerable<MetadataReference> additionalReferences) 335var references = GetReferences(tf); 408private static ImmutableArray<PortableExecutableReference> LoadDynamicReferences(string targetFrameworkName) 411if (s_dynamicReferenceMap.TryGetValue(assemblyName, out var references))
TempFiles\TempFile.cs (1)
103public TempFile WriteAllBytes(ImmutableArray<byte> content)
TestHelpers.cs (1)
151public static ImmutableArray<byte> HexToByte(ReadOnlySpan<char> input)
Microsoft.CodeAnalysis.UnitTests (337)
AnalyzerAssemblyLoaderTests.cs (4)
251var analyzers = analyzerMainReference.GetAnalyzersForAllLanguages(); 771var analyzers = analyzerMainReference.GetAnalyzersForAllLanguages(); 1218ImmutableArray<DiagnosticAnalyzer> analyzers = state is true 1451var assembly = typeof(ImmutableArray<int>).Assembly;
Analyzers\AnalyzerConfigTests.cs (17)
50var namedSections = config.NamedSections; 77var namedSections = config.NamedSections; 1660var globalConfig = AnalyzerConfigSet.MergeGlobalConfigs(configs, out var diagnostics); 1682var globalConfig = AnalyzerConfigSet.MergeGlobalConfigs(configs, out var diagnostics); 1716var globalConfig = AnalyzerConfigSet.MergeGlobalConfigs(configs, out var diagnostics); 1753var globalConfig = AnalyzerConfigSet.MergeGlobalConfigs(configs, out var diagnostics); 1774var globalConfig = AnalyzerConfigSet.MergeGlobalConfigs(configs, out var diagnostics); 1791var globalConfig = AnalyzerConfigSet.MergeGlobalConfigs(configs, out var diagnostics); 1809var globalConfig = AnalyzerConfigSet.MergeGlobalConfigs(configs, out var diagnostics); 1943var globalConfig = AnalyzerConfigSet.MergeGlobalConfigs(configs, out var diagnostics); 1964var globalConfig = AnalyzerConfigSet.MergeGlobalConfigs(configs, out var diagnostics); 1983var globalConfig = AnalyzerConfigSet.MergeGlobalConfigs(configs, out var diagnostics); 2232var set = AnalyzerConfigSet.Create(ImmutableArray<AnalyzerConfig>.Empty); 2422var globalConfig = AnalyzerConfigSet.MergeGlobalConfigs(configs, out var diagnostics); 2453var globalConfig = AnalyzerConfigSet.MergeGlobalConfigs(configs, out var diagnostics); 2492var globalConfig = AnalyzerConfigSet.MergeGlobalConfigs(configs, out var diagnostics); 2541var globalConfig = AnalyzerConfigSet.MergeGlobalConfigs(configs, out var diagnostics);
Analyzers\AnalyzerFileReferenceTests.cs (19)
125var analyzers = reference.GetAnalyzers(LanguageNames.CSharp); 152var analyzers = builder.ToImmutable(); 171var analyzers = builder.ToImmutable(); 188var analyzers = builder.ToImmutable(); 248var analyzers = builder.ToImmutable(); 266var analyzers = builder.ToImmutable(); 288var analyzers = builder.ToImmutable(); 368var generators = reference.GetGeneratorsForAllLanguages(); 392var generators = reference.GetGenerators(LanguageNames.CSharp); 395var generators2 = reference.GetGenerators(); 405var generators = reference.GetGenerators(LanguageNames.CSharp); 427var generators = reference.GetGenerators(LanguageNames.VisualBasic); 598public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get { throw new NotImplementedException(); } } 605public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get { throw new NotImplementedException(); } } 612public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get { throw new NotImplementedException(); } } 628public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get { throw new NotImplementedException(); } } 661public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get { throw new NotImplementedException(); } } 671public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get { throw new NotImplementedException(); } } 678public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get { throw new NotImplementedException(); } }
AssemblyUtilitiesTests.cs (7)
48var results = AssemblyUtilities.FindSatelliteAssemblies(assemblyFile); 61var results = AssemblyUtilities.FindSatelliteAssemblies(assemblyFile); 74var results = AssemblyUtilities.FindSatelliteAssemblies(assemblyFile); 87var results = AssemblyUtilities.FindSatelliteAssemblies(assemblyFile); 101var results = AssemblyUtilities.FindSatelliteAssemblies(assemblyFile); 114var results = AssemblyUtilities.FindSatelliteAssemblies(assemblyFile); 122var results = AssemblyUtilities.IdentifyMissingDependencies(_testFixture.Alpha, new[] { _testFixture.Alpha, _testFixture.Gamma, _testFixture.Delta1 });
CachingLookupTests.cs (19)
62private ImmutableArray<int> Values(string key, int[] numbers, bool ignoreCase) 156var dict = new Dictionary<string, ImmutableArray<int>>(comparer); 164s => dict.TryGetValue(s, out var value) ? value : ImmutableArray.Create<int>(), 170s => dict.TryGetValue(s, out var value) ? value : ImmutableArray.Create<int>(), 177s => dict.TryGetValue(s, out var value) ? value : ImmutableArray.Create<int>(), 188var dict = new Dictionary<string, ImmutableArray<int>>(comparer); 196s => dict.TryGetValue(s, out var value) ? value : ImmutableArray.Create<int>(), 202s => dict.TryGetValue(s, out var value) ? value : ImmutableArray.Create<int>(), 209s => dict.TryGetValue(s, out var value) ? value : ImmutableArray.Create<int>(), 220var dict = new Dictionary<string, ImmutableArray<int>>(comparer); 227var look2 = new CachingDictionary<string, int>(s => dict.TryGetValue(s, out var value) ? value : ImmutableArray.Create<int>(), 232look2 = new CachingDictionary<string, int>(s => dict.TryGetValue(s, out var value) ? value : ImmutableArray.Create<int>(), 238look2 = new CachingDictionary<string, int>(s => dict.TryGetValue(s, out var value) ? value : ImmutableArray.Create<int>(), 250var dict = new Dictionary<string, ImmutableArray<int>>(comparer); 263return dict.TryGetValue(s, out var value) ? value : ImmutableArray.Create<int>(); 276ImmutableArray<int> retval; 305ImmutableArray<FullyPopulateRaceHelper> getElementsOfKey(int id) 343ImmutableArray<FullyPopulateRaceHelper> getElementsOfKey(int id) 347return ImmutableArray<FullyPopulateRaceHelper>.Empty;
Collections\ImmutableArrayExtensionsTests.cs (68)
23ImmutableArray<int> a; 54ImmutableArray<int> nullOrEmpty = default(ImmutableArray<int>); 85var nul = default(ImmutableArray<int>); 86var empty = ImmutableArray.Create<int>(); 117var singleton1 = ImmutableArray.Create<int>(1); 118var singleton2 = ImmutableArray.Create<int>(2); 143Assert.Throws<NullReferenceException>(() => default(ImmutableArray<int>).Single()); 150Assert.Throws<NullReferenceException>(() => default(ImmutableArray<int>).Single(isOdd)); 159Assert.Throws<NullReferenceException>(() => default(ImmutableArray<int>).Single((_, _) => true, 1)); 164Assert.Throws<NullReferenceException>(() => default(ImmutableArray<int>).Single((x, a) => x % a == 1, 2)); 180var roaNull = default(ImmutableArray<int>); 186var copy = roaNull; 190var notnull = ImmutableArray.Create<int>(); 265var empty = ImmutableArray.Create<int>(); 266var a = ImmutableArray.Create<int>(0, 2, 4); 277var empty = ImmutableArray.Create<int>(); 278var a = ImmutableArray.Create<int>(0, 2, 4); 294var empty = ImmutableArray.Create<int>(); 295var a = ImmutableArray.Create<int>(0, 2, 4); 338var a = ImmutableArray.Create<string>("A", "B", "C"); 339var b = ImmutableArray.Create<string>("A", "b", "c"); 340var c = ImmutableArray.Create<string>("A", "b"); 348var r = ImmutableArray.Create<int>(1, 2, 3); 353var s = ImmutableArray.Create<int>(10, 20, 30); 360var empty = ImmutableArray.Create<object>(); 368var a = ImmutableArray.Create<int>(3, 2, 1, 0); 369var b = ImmutableArray.Create<int>(0, 1, 2, 3); 370var c = ImmutableArray.Create<int>(2, 2, 2, 2); 388Assert.Empty(ImmutableArray<object>.Empty.SelectAsArray<object, int>(item => throw null, item => throw null)); 390var array = ImmutableArray.Create(1, 2, 3, 4, 5); 399var empty = ImmutableArray.Create<object>(); 402var single1 = ImmutableArray.Create(1); 403var single2 = ImmutableArray.Create(10); 404var single3 = ImmutableArray.Create(11); 407var pair1 = ImmutableArray.Create(1, 2); 408var pair2 = ImmutableArray.Create(10, 11); 409var pair3 = ImmutableArray.Create(11, 13); 412var triple1 = ImmutableArray.Create(1, 2, 3); 413var triple2 = ImmutableArray.Create(10, 11, 12); 414var triple3 = ImmutableArray.Create(11, 13, 15); 417var quad1 = ImmutableArray.Create(1, 2, 3, 4); 418var quad2 = ImmutableArray.Create(10, 11, 12, 13); 419var quad3 = ImmutableArray.Create(11, 13, 15, 17); 422var quin1 = ImmutableArray.Create(1, 2, 3, 4, 5); 423var quin2 = ImmutableArray.Create(10, 11, 12, 13, 14); 424var quin3 = ImmutableArray.Create(11, 13, 15, 17, 19); 431var empty = ImmutableArray.Create<object>(); 434var single1 = ImmutableArray.Create(1); 435var single2 = ImmutableArray.Create(10); 436var single3 = ImmutableArray.Create(13); 439var pair1 = ImmutableArray.Create(1, 2); 440var pair2 = ImmutableArray.Create(10, 11); 441var pair3 = ImmutableArray.Create(13, 16); 444var triple1 = ImmutableArray.Create(1, 2, 3); 445var triple2 = ImmutableArray.Create(10, 11, 12); 446var triple3 = ImmutableArray.Create(13, 16, 19); 449var quad1 = ImmutableArray.Create(1, 2, 3, 4); 450var quad2 = ImmutableArray.Create(10, 11, 12, 13); 451var quad3 = ImmutableArray.Create(13, 16, 19, 22); 454var quin1 = ImmutableArray.Create(1, 2, 3, 4, 5); 455var quin2 = ImmutableArray.Create(10, 11, 12, 13, 14); 456var quin3 = ImmutableArray.Create(13, 16, 19, 22, 25); 463var empty = ImmutableArray.Create<object>(); 469var a = ImmutableArray.Create<int>(0, 1, 2, 3, 4, 5); 498var a = ImmutableArray.Create(0, 1, 2, 3, 4, 5);
Collections\ImmutableListTestBase.cs (2)
475var reverseSorted = System.Collections.Immutable.ImmutableArray.CreateRange(Enumerable.Range(1, 150).Select(n => n * 2).Reverse()); 481private void BinarySearchPartialSortedListHelper(System.Collections.Immutable.ImmutableArray<int> inputData, int sortedIndex, int sortedLength)
Collections\TemporaryArrayTests.cs (7)
179var immutableArray = array.ToImmutableAndClear(); 215foreach (var permutation in permute(Enumerable.Range(0, i).ToArray())) 221static void assertSort(ImmutableArray<int> inputArray) 223var sortedArray = inputArray.Sort(); 239static List<ImmutableArray<T>> permute<T>(T[] values) 241var result = new List<ImmutableArray<T>>(); 244result.Add(ImmutableArray<T>.Empty);
Collections\TopologicalSortTests.cs (1)
212private void AssertTopologicallySorted<T>(ImmutableArray<T> sorted, TopologicalSortAddSuccessors<T> addSuccessors, string? message = null)
CommonCommandLineParserTests.cs (3)
1014var includePaths = RuleSet.GetEffectiveIncludesFromFile(file.Path); 1051var includePaths = RuleSet.GetEffectiveIncludesFromFile(file.Path); 1103var includePaths = RuleSet.GetEffectiveIncludesFromFile(file.Path);
CryptoBlobParserTests.cs (10)
27var key = ImmutableArray.Create(TestResources.General.snKey); 70var key = ImmutableArray.Create(TestResources.General.snKey2); 113var key = ImmutableArray.Create(TestResources.General.snKey); 115ImmutableArray<byte> pubKey; 124var key = ImmutableArray.Create(TestResources.General.snKey2); 126ImmutableArray<byte> pubKey; 135var key = ImmutableArray.Create(TestResources.General.snPublicKey); 137ImmutableArray<byte> pubKey; 153var publicKeyBlob = ImmutableArray.Create(buf); 155ImmutableArray<byte> pubKey;
Diagnostics\AnalysisContextInfoTests.cs (2)
47var diagnostics = compilation.GetAnalyzerDiagnostics(new DiagnosticAnalyzer[] { analyzer }, options); 68public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(s_rule);
Diagnostics\CompilationWithAnalyzersTests.cs (3)
31Assert.Throws<ArgumentNullException>(() => CompilationWithAnalyzers.GetEffectiveDiagnostics(default(ImmutableArray<Diagnostic>), c)); 60var analyzers = ImmutableArray.Create(analyzer); 61var analyzerOptions = new AnalyzerOptions(ImmutableArray<AdditionalText>.Empty);
Diagnostics\DiagnosticLocalizationTests.cs (2)
314var descriptors = analyzerManager.GetSupportedDiagnosticDescriptors(analyzer, analyzerExecutor, CancellationToken.None); 374public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics
Diagnostics\OperationTests.cs (28)
26private static void TestCore(Func<ImmutableArray<IOperation>, ImmutableArray<string>, ImmutableArray<RefKind>, HasDynamicArgumentsExpression> createDynamicExpression) 29ImmutableArray<IOperation> arguments = ImmutableArray<IOperation>.Empty; 30ImmutableArray<string> argumentNames = default; 31ImmutableArray<RefKind> argumentRefKinds = default; 46argumentNames = ImmutableArray<string>.Empty; 47argumentRefKinds = ImmutableArray<RefKind>.Empty; 80Func<ImmutableArray<IOperation>, ImmutableArray<string>, ImmutableArray<RefKind>, HasDynamicArgumentsExpression> createDynamicExpression = 95Func<ImmutableArray<IOperation>, ImmutableArray<string>, ImmutableArray<RefKind>, HasDynamicArgumentsExpression> createDynamicExpression = 110Func<ImmutableArray<IOperation>, ImmutableArray<string>, ImmutableArray<RefKind>, HasDynamicArgumentsExpression> createDynamicExpression = 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,
Diagnostics\SuppressMessageAttributeCompilerTests.cs (3)
37private static readonly Lazy<ImmutableArray<MetadataReference>> s_references = new Lazy<ImmutableArray<MetadataReference>>(() => 71var references = s_references.Value;
Diagnostics\SuppressMessageTargetSymbolResolverTests.cs (3)
1339out var source, out var pos, out IDictionary<string, ImmutableArray<TextSpan>> spans); 1365var symbols = SuppressMessageAttributeState.ResolveTargetSymbols(compilation, fxCopName, scope); 1417var symbols = SuppressMessageAttributeState.ResolveTargetSymbols(compilation, fxCopName, scope);
EmbeddedTextTests.cs (6)
92var checksum = SourceText.CalculateChecksum(new byte[0], 0, 0, SourceHashAlgorithm.Sha1); 105var checksum = SourceText.CalculateChecksum(new byte[0], 0, 0, SourceHashAlgorithm.Sha1); 117var checksum = SourceText.CalculateChecksum(bytes, 0, bytes.Length, SourceHashAlgorithm.Sha1); 132var checksum = SourceText.CalculateChecksum(bytes, 0, bytes.Length, SourceHashAlgorithm.Sha1); 159var checksum = SourceText.CalculateChecksum(bytes, 0, bytes.Length, SourceHashAlgorithms.Default); 174var checksum = SourceText.CalculateChecksum(bytes, 0, bytes.Length, SourceHashAlgorithms.Default);
Emit\CustomDebugInfoTests.cs (48)
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; 208var bytes = cmw.ToImmutableArray(); 211var deserialized = EditAndContinueMethodDebugInformation.Create(bytes, default(ImmutableArray<byte>)).LocalSlots; 219var slots = ImmutableArray<LocalSlotDebugInfo>.Empty; 231var states = ImmutableArray<StateMachineStateDebugInfo>.Empty; 236var bytes = cmw.ToImmutableArray(); 240var deserialized = EditAndContinueMethodDebugInformation.Create(default(ImmutableArray<byte>), bytes); 249var slots = ImmutableArray<LocalSlotDebugInfo>.Empty; 251var closures = ImmutableArray<ClosureDebugInfo>.Empty; 253var states = ImmutableArray<StateMachineStateDebugInfo>.Empty; 259var bytes = cmw.ToImmutableArray(); 263var deserialized = EditAndContinueMethodDebugInformation.Create(default(ImmutableArray<byte>), bytes); 274var slots = ImmutableArray<LocalSlotDebugInfo>.Empty; 275var closures = ImmutableArray<ClosureDebugInfo>.Empty; 276var lambdas = ImmutableArray<LambdaDebugInfo>.Empty; 277var states = ImmutableArray<StateMachineStateDebugInfo>.Empty; 283var bytes = cmw.ToImmutableArray(); 287var deserialized = EditAndContinueMethodDebugInformation.Create(default(ImmutableArray<byte>), bytes); 300localSlots: ImmutableArray<LocalSlotDebugInfo>.Empty, 301closures: ImmutableArray<ClosureDebugInfo>.Empty, 302lambdas: ImmutableArray<LambdaDebugInfo>.Empty, 314var bytes = cmw.ToImmutableArray(); 317var deserialized = EditAndContinueMethodDebugInformation.Create( 318compressedSlotMap: ImmutableArray<byte>.Empty, 319compressedLambdaMap: ImmutableArray<byte>.Empty, 338compressedSlotMap: ImmutableArray<byte>.Empty, 339compressedLambdaMap: ImmutableArray<byte>.Empty, 360var states = ImmutableArray<StateMachineStateDebugInfo>.Empty;
InternalUtilities\OneOrManyTests.cs (13)
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)); 217Assert.Throws<ArgumentNullException>(() => OneOrMany.Create(default(ImmutableArray<int>))); 254Assert.True(ImmutableArray<int>.Empty.SequenceEqual(OneOrMany<int>.Empty));
MetadataReferences\AssemblyIdentityTestBase.cs (2)
46internal static ImmutableArray<byte> RoPublicKey1 = PublicKey1.AsImmutableOrNull(); 47internal static ImmutableArray<byte> RoPublicKeyToken1 = PublicKeyToken1.AsImmutableOrNull();
MetadataReferences\AssemblyIdentityTests.cs (10)
30var id6 = new AssemblyIdentity("Goo", new Version(1, 0, 0, 0), "", default(ImmutableArray<byte>), hasPublicKey: false, isRetargetable: false); 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, 370var aiPkt = AssemblyIdentity.CalculatePublicKeyToken(RoPublicKey1);
MetadataReferences\AssemblyMetadataTests.cs (2)
20Assert.Throws<ArgumentNullException>(() => AssemblyMetadata.CreateFromImage(default(ImmutableArray<byte>))); 29Assert.Throws<ArgumentException>(() => AssemblyMetadata.Create(default(ImmutableArray<ModuleMetadata>)));
MetadataReferences\FusionAssemblyPortabilityPolicy.cs (3)
29private readonly ImmutableArray<byte> _fileHash; 31private FusionAssemblyPortabilityPolicy(IntPtr asmConfigCookie, ImmutableArray<byte> fileHash) 52var hash = CryptographicHashProvider.ComputeSha1(File.ReadAllBytes(appConfigPath));
MetadataReferences\MetadataReferencePropertiesTests.cs (11)
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)); 61Assert.Equal(a.WithAliases(new string[0]), new MetadataReferenceProperties(MetadataImageKind.Assembly, default(ImmutableArray<string>), embedInteropTypes: true)); 67Assert.Equal(m.WithAliases(default(ImmutableArray<string>)), new MetadataReferenceProperties(MetadataImageKind.Module, default(ImmutableArray<string>), embedInteropTypes: false)); 68Assert.Equal(m.WithEmbedInteropTypes(false), new MetadataReferenceProperties(MetadataImageKind.Module, default(ImmutableArray<string>), embedInteropTypes: false));
MetadataReferences\MetadataReferenceTests.cs (1)
266var r1 = r.WithAliases(default(ImmutableArray<string>));
MetadataReferences\ModuleMetadataTests.cs (1)
93Assert.Throws<ArgumentNullException>(() => ModuleMetadata.CreateFromImage(default(ImmutableArray<byte>)));
StrongNameProviderTests.cs (8)
37var subdirSearchPath = ImmutableArray.Create(subdir); 44var searchPathsSP = ImmutableArray.Create(@"C:\goo", dir, subdir); 50var searchPathsEmpty = ImmutableArray<string>.Empty; 61var searchPathsNullBaseSP = ImmutableArray.Create(dir, subdir); 71string resolve(string keyFilePath, ImmutableArray<string> searchPaths) => DesktopStrongNameProvider.ResolveStrongNameKeyFile(keyFilePath, provider.FileSystem, searchPaths); 92ImmutableArray<string> searchPaths = default(ImmutableArray<string>))
Symbols\DocumentationCommentIdTests.cs (4)
45var foundSymbols = DocumentationCommentId.GetSymbolsForDeclarationId(expectedDocId, comp); 71var foundSymbols = DocumentationCommentId.GetSymbolsForDeclarationId(expectedDocId, comp); 95var foundSymbols = DocumentationCommentId.GetSymbolsForDeclarationId(expectedDocId, comp); 119var foundSymbols = DocumentationCommentId.GetSymbolsForDeclarationId(expectedDocId, comp);
Text\SourceTextTests.cs (9)
115var checksumNoBOM = ImmutableArray.Create<byte>(0xa, 0xa, 0x9f, 0x2a, 0x67, 0x72, 0x94, 0x25, 0x57, 0xab, 0x53, 0x55, 0xd7, 0x6a, 0xf4, 0x42, 0xf8, 0xf6, 0x5e, 0x1); 116var checksumBOM = ImmutableArray.Create<byte>(0xb2, 0x19, 0x0, 0x9b, 0x61, 0xce, 0xcd, 0x50, 0x7b, 0x2e, 0x56, 0x3c, 0xc0, 0xeb, 0x96, 0xe2, 0xa1, 0xd9, 0x3f, 0xfc); 118var expectedContentHash = ImmutableArray.Create<byte>(0xa9, 0x94, 0xb1, 0x1f, 0x7e, 0x49, 0x29, 0x4d, 0xd4, 0x90, 0xe0, 0x6e, 0xc8, 0xcc, 0x3c, 0xdd); 181static void verifyChecksumAndContentHash(SourceText text, ImmutableArray<byte> expectedChecksum, ImmutableArray<byte> expectedContentHash) 183var actualChecksum = text.GetChecksum(); 184var actualContentHash = text.GetContentHash(); 308var checksum1 = sourceText1.GetChecksum(); 309var checksum2 = sourceText2.GetChecksum();
Text\StringTextDecodingTests.cs (7)
81var checksum = data.GetChecksum(); 90var checksum = data.GetChecksum(); 99var checksum = data.GetChecksum(); 109var checksum = data.GetChecksum(); 118var checksum = data.GetChecksum(); 127var checksum = data.GetChecksum(); 136var checksum = data.GetChecksum();
Text\StringTextTest.cs (6)
25internal static string ChecksumToHexQuads(ImmutableArray<byte> checksum) 225var checksum = data.GetChecksum(); 237var checksum = source.GetChecksum(); 252var checksum = source.GetChecksum(); 264var checksum = source.GetChecksum(); 279var checksum = source.GetChecksum();
Text\TextChangeTests.cs (8)
590return new LargeText(ImmutableArray.Create(chunks), Encoding.UTF8, default(ImmutableArray<byte>), SourceHashAlgorithms.Default, default(ImmutableArray<byte>)); 593private ImmutableArray<char[]> GetChunks(SourceText text) 599return (ImmutableArray<char[]>)chunkField.GetValue(text); 603return ImmutableArray<char[]>.Empty; 925var oldChanges = ImmutableArray.Create( 931var newChanges = ImmutableArray.Create( 940var expected = ImmutableArray.Create(
Microsoft.CodeAnalysis.VisualBasic (4448)
Analysis\FlowAnalysis\AbstractFlowPass.NestedTypes.vb (1)
30Private ReadOnly _path As ImmutableArray(Of Integer)
Analysis\FlowAnalysis\AbstractFlowPass.vb (7)
177Protected ReadOnly Property PendingBranches As ImmutableArray(Of PendingBranch) 237Protected ReadOnly Property MethodParameters As ImmutableArray(Of ParameterSymbol) 239Return If(Me.symbol.Kind = SymbolKind.Method, DirectCast(Me.symbol, MethodSymbol).Parameters, ImmutableArray(Of ParameterSymbol).Empty) 1132Private Sub VisitLateBoundArguments(arguments As ImmutableArray(Of BoundExpression), isByRef As Boolean) 1252Private Sub VisitArguments(arguments As ImmutableArray(Of BoundExpression), parameters As ImmutableArray(Of ParameterSymbol)) 1806Private Sub VisitCaseBlocks(caseBlocks As ImmutableArray(Of BoundCaseBlock))
Analysis\FlowAnalysis\AbstractRegionDataFlowPass.vb (2)
36Private Sub MakeSlots(parameters As ImmutableArray(Of ParameterSymbol)) 56Protected Overrides Function CreateLocalSymbolForVariables(declarations As ImmutableArray(Of BoundLocalDeclaration)) As LocalSymbol
Analysis\FlowAnalysis\ControlFlowAnalysis.vb (7)
26Private _entryPoints As ImmutableArray(Of SyntaxNode) 27Private _exitPoints As ImmutableArray(Of SyntaxNode) 39Public Overrides ReadOnly Property EntryPoints As ImmutableArray(Of SyntaxNode) 43Dim result = If(Me._context.Failed, ImmutableArray(Of SyntaxNode).Empty, 54Public Overrides ReadOnly Property ExitPoints As ImmutableArray(Of SyntaxNode) 57Dim result = If(Me._context.Failed, ImmutableArray(Of SyntaxNode).Empty, 105Public Overrides ReadOnly Property ReturnStatements As ImmutableArray(Of SyntaxNode)
Analysis\FlowAnalysis\DataFlowPass.Symbols.vb (7)
21Public ReadOnly Locals As ImmutableArray(Of LocalSymbol) 23Private Sub New(container As Symbol, type As TypeSymbol, locals As ImmutableArray(Of LocalSymbol)) 48Friend Shared Shadows Function Create(locals As ImmutableArray(Of LocalSymbol)) As LocalSymbol 54Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 56Return ImmutableArray(Of Location).Empty 60Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 62Return ImmutableArray(Of SyntaxReference).Empty
Analysis\FlowAnalysis\DataFlowPass.vb (9)
797Private _typeToMembersCache As Dictionary(Of TypeSymbol, ImmutableArray(Of FieldSymbol)) = Nothing 851Private Function GetStructInstanceFields(type As TypeSymbol) As ImmutableArray(Of FieldSymbol) 852Dim result As ImmutableArray(Of FieldSymbol) = Nothing 881_typeToMembersCache = New Dictionary(Of TypeSymbol, ImmutableArray(Of FieldSymbol)) 1108Dim locations As ImmutableArray(Of Location) = sym.Locations 1530Private Sub EnterParameters(parameters As ImmutableArray(Of ParameterSymbol)) 1546Private Sub LeaveParameters(parameters As ImmutableArray(Of ParameterSymbol)) 2048Dim declarations As ImmutableArray(Of BoundLocalDeclaration) = node.LocalDeclarations 2111Protected Overridable Function CreateLocalSymbolForVariables(declarations As ImmutableArray(Of BoundLocalDeclaration)) As LocalSymbol
Analysis\FlowAnalysis\DataFlowsOutWalker.vb (3)
23Private ReadOnly _dataFlowsIn As ImmutableArray(Of ISymbol) 32unassignedVariables As HashSet(Of Symbol), originalUnassigned As HashSet(Of Symbol), dataFlowsIn As ImmutableArray(Of ISymbol)) 41unassignedVariables As HashSet(Of Symbol), dataFlowsIn As ImmutableArray(Of ISymbol)) As HashSet(Of Symbol)
Analysis\FlowAnalysis\VisualBasicDataFlowAnalysis.vb (39)
22Private _variablesDeclared As ImmutableArray(Of ISymbol) 24Private _dataFlowsIn As ImmutableArray(Of ISymbol) 25Private _definitelyAssignedOnEntry As ImmutableArray(Of ISymbol) 26Private _definitelyAssignedOnExit As ImmutableArray(Of ISymbol) 27Private _dataFlowsOut As ImmutableArray(Of ISymbol) 28Private _alwaysAssigned As ImmutableArray(Of ISymbol) 29Private _readInside As ImmutableArray(Of ISymbol) 30Private _writtenInside As ImmutableArray(Of ISymbol) 31Private _readOutside As ImmutableArray(Of ISymbol) 32Private _writtenOutside As ImmutableArray(Of ISymbol) 33Private _captured As ImmutableArray(Of ISymbol) 34Private _capturedInside As ImmutableArray(Of ISymbol) 35Private _capturedOutside As ImmutableArray(Of ISymbol) 47Public Overrides ReadOnly Property VariablesDeclared As ImmutableArray(Of ISymbol) 50Dim result = If(Me._context.Failed, ImmutableArray(Of ISymbol).Empty, 72Public Overrides ReadOnly Property DataFlowsIn As ImmutableArray(Of ISymbol) 76Dim result = If(Me._context.Failed, ImmutableArray(Of ISymbol).Empty, 84Public Overrides ReadOnly Property DefinitelyAssignedOnEntry As ImmutableArray(Of ISymbol) 90Public Overrides ReadOnly Property DefinitelyAssignedOnExit As ImmutableArray(Of ISymbol) 96Private Function ComputeDefinitelyAssignedValues() As (onEntry As ImmutableArray(Of ISymbol), onExit As ImmutableArray(Of ISymbol)) 101Dim entry = ImmutableArray(Of ISymbol).Empty 102Dim ex = ImmutableArray(Of ISymbol).Empty 121Public Overrides ReadOnly Property DataFlowsOut As ImmutableArray(Of ISymbol) 125Dim result = If(Me._context.Failed, ImmutableArray(Of ISymbol).Empty, 136Public Overrides ReadOnly Property AlwaysAssigned As ImmutableArray(Of ISymbol) 139Dim result = If(Me._context.Failed, ImmutableArray(Of ISymbol).Empty, 150Public Overrides ReadOnly Property ReadInside As ImmutableArray(Of ISymbol) 162Public Overrides ReadOnly Property WrittenInside As ImmutableArray(Of ISymbol) 174Public Overrides ReadOnly Property ReadOutside As ImmutableArray(Of ISymbol) 186Public Overrides ReadOnly Property WrittenOutside As ImmutableArray(Of ISymbol) 237Public Overrides ReadOnly Property Captured As ImmutableArray(Of ISymbol) 247Public Overrides ReadOnly Property CapturedInside As ImmutableArray(Of ISymbol) 257Public Overrides ReadOnly Property CapturedOutside As ImmutableArray(Of ISymbol) 283Public Overrides ReadOnly Property UnsafeAddressTaken As ImmutableArray(Of ISymbol) 285Return ImmutableArray(Of ISymbol).Empty 289Public Overrides ReadOnly Property UsedLocalFunctions As ImmutableArray(Of IMethodSymbol) 291Return ImmutableArray(Of IMethodSymbol).Empty 295Friend Function Normalize(data As IEnumerable(Of Symbol)) As ImmutableArray(Of ISymbol)
Analysis\InitializerRewriter.vb (4)
51Dim blockStatements As ImmutableArray(Of BoundStatement) = block.Statements 154ImmutableArray(Of BoundExpression).Empty, 199boundInitializers As ImmutableArray(Of BoundInitializer)) As ImmutableArray(Of BoundStatement)
Binding\BackstopBinder.vb (9)
67Public Overrides ReadOnly Property AdditionalContainingMembers As ImmutableArray(Of Symbol) 100Friend Overrides Function BindInsideCrefAttributeValue(name As TypeSyntax, preserveAliases As Boolean, diagnosticBag As BindingDiagnosticBag, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As ImmutableArray(Of Symbol) 101Return ImmutableArray(Of Symbol).Empty 104Friend Overrides Function BindInsideCrefAttributeValue(reference As CrefReferenceSyntax, preserveAliases As Boolean, diagnosticBag As BindingDiagnosticBag, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As ImmutableArray(Of Symbol) 105Return ImmutableArray(Of Symbol).Empty 108Friend Overrides Function BindXmlNameAttributeValue(identifier As IdentifierNameSyntax, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As ImmutableArray(Of Symbol) 109Return ImmutableArray(Of Symbol).Empty 197Public Overrides ReadOnly Property ImplicitlyDeclaredVariables As ImmutableArray(Of LocalSymbol) 199Return ImmutableArray(Of LocalSymbol).Empty
Binding\Binder.vb (6)
53Private Shared ReadOnly s_noArguments As ImmutableArray(Of BoundExpression) = ImmutableArray(Of BoundExpression).Empty 336Public Overridable ReadOnly Property AdditionalContainingMembers As ImmutableArray(Of Symbol) 645candidateSymbols As ImmutableArray(Of Symbol), 653Return GetErrorSymbol(name, errorInfo, ImmutableArray(Of Symbol).Empty, LookupResultKind.Empty, reportErrorWhenReferenced) 793Public Overridable ReadOnly Property ImplicitlyDeclaredVariables As ImmutableArray(Of LocalSymbol)
Binding\Binder_AnonymousTypes.vb (7)
27initExpressions As ImmutableArray(Of BoundExpression), 42initExpressions As ImmutableArray(Of BoundExpression), 58initExpressions As ImmutableArray(Of BoundExpression), 64ImmutableArray(Of BoundAnonymousTypePropertyAccess).Empty, 114Return BadExpression(owningSyntax, ImmutableArray(Of BoundExpression).Empty, ErrorTypeSymbol.UnknownResultType) 292initExpressions As ImmutableArray(Of BoundExpression), 310ImmutableArray(Of BoundAnonymousTypePropertyAccess).Empty,
Binding\Binder_Attributes.vb (28)
24Friend Shared Function BindAttributeTypes(binders As ImmutableArray(Of Binder), 25attributesToBind As ImmutableArray(Of AttributeSyntax), 27diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol) 54Friend Shared Sub GetAttributes(binders As ImmutableArray(Of Binder), 55attributesToBind As ImmutableArray(Of AttributeSyntax), 56boundAttributeTypes As ImmutableArray(Of NamedTypeSymbol), 79Dim args As ImmutableArray(Of TypedConstant) = visitor.VisitPositionalArguments(boundAttribute.ConstructorArguments, diagnostics) 80Dim namedArgs As ImmutableArray(Of KeyValuePair(Of String, TypedConstant)) = visitor.VisitNamedArguments(boundAttribute.NamedArguments, diagnostics) 256Dim boundArguments As ImmutableArray(Of BoundExpression) = analyzedArguments.positionalArguments 257Dim boundNamedArguments As ImmutableArray(Of BoundExpression) = analyzedArguments.namedArguments 355Dim argumentInfo As (Arguments As ImmutableArray(Of BoundExpression), DefaultArguments As BitVector) = PassArguments(node.Name, methodResult, boundArguments, diagnostics) 383Dim boundArguments As ImmutableArray(Of BoundExpression) 384Dim namedArguments As ImmutableArray(Of BoundExpression) 535lValue = New BoundPropertyAccess(identifierName, propertySym, Nothing, PropertyAccessKind.Set, Not isReadOnly, Nothing, ImmutableArray(Of BoundExpression).Empty, defaultArguments:=BitVector.Null, hasErrors) 684Public Function VisitPositionalArguments(arguments As ImmutableArray(Of BoundExpression), diag As BindingDiagnosticBag) As ImmutableArray(Of TypedConstant) 688Private Function VisitArguments(arguments As ImmutableArray(Of BoundExpression), diag As BindingDiagnosticBag) As ImmutableArray(Of TypedConstant) 698Return ImmutableArray(Of TypedConstant).Empty 704Public Function VisitNamedArguments(arguments As ImmutableArray(Of BoundExpression), diag As BindingDiagnosticBag) As ImmutableArray(Of KeyValuePair(Of String, TypedConstant)) 720Return ImmutableArray(Of KeyValuePair(Of String, TypedConstant)).Empty 854Dim values As ImmutableArray(Of TypedConstant) = Nothing 879Private Shared Function CreateTypedConstant(type As ArrayTypeSymbol, array As ImmutableArray(Of TypedConstant)) As TypedConstant 906Public positionalArguments As ImmutableArray(Of BoundExpression) 907Public namedArguments As ImmutableArray(Of BoundExpression) 909Public Sub New(positionalArguments As ImmutableArray(Of BoundExpression), namedArguments As ImmutableArray(Of BoundExpression))
Binding\Binder_Constraints.vb (2)
17) As ImmutableArray(Of TypeParameterConstraint) 21Return ImmutableArray(Of TypeParameterConstraint).Empty
Binding\Binder_Conversions.vb (4)
820Dim typeParameters As ImmutableArray(Of TypeParameterSymbol) = source.TypeParameters 821Dim sourceArguments As ImmutableArray(Of TypeSymbol) = source.TypeArgumentsNoUseSiteDiagnostics 822Dim destinationArguments As ImmutableArray(Of TypeSymbol) = destination.TypeArgumentsNoUseSiteDiagnostics 1665Dim targetElementTypes As ImmutableArray(Of TypeSymbol) = targetType.GetElementTypesOfTupleOrCompatible()
Binding\Binder_Delegates.vb (8)
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 1221Dim statementList As ImmutableArray(Of BoundStatement) = Nothing 1276ImmutableArray(Of LocalSymbol).Empty,
Binding\Binder_Diagnostics.vb (1)
43If(nodes.IsEmpty, ImmutableArray(Of BoundExpression).Empty, ImmutableArray.Create(nodes)),
Binding\Binder_DocumentationComments.vb (3)
14Friend Overridable Function BindInsideCrefAttributeValue(name As TypeSyntax, preserveAliases As Boolean, diagnosticBag As BindingDiagnosticBag, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As ImmutableArray(Of Symbol) 18Friend Overridable Function BindInsideCrefAttributeValue(reference As CrefReferenceSyntax, preserveAliases As Boolean, diagnosticBag As BindingDiagnosticBag, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As ImmutableArray(Of Symbol) 22Friend Overridable Function BindXmlNameAttributeValue(identifier As IdentifierNameSyntax, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As ImmutableArray(Of Symbol)
Binding\Binder_Expressions.vb (34)
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) 312Private Shared Function BadExpression(node As SyntaxNode, exprs As ImmutableArray(Of BoundExpression), resultType As TypeSymbol) As BoundBadExpression 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) 409As (elementNames As ImmutableArray(Of String), inferredPositions As ImmutableArray(Of Boolean), hasErrors As Boolean) 451inferredElementNames As ArrayBuilder(Of String)) As (names As ImmutableArray(Of String), 452inferred As ImmutableArray(Of Boolean)) 1557Dim bounds As ImmutableArray(Of BoundExpression) 1661Dim initializers = ImmutableArray(Of BoundExpression).Empty 3122Dim symbols As ImmutableArray(Of Symbol) 3134If(receiver IsNot Nothing, ImmutableArray.Create(receiver), ImmutableArray(Of BoundExpression).Empty), 3387Dim ambiguous As ImmutableArray(Of Symbol) = DirectCast(di, AmbiguousSymbolDiagnostic).AmbiguousSymbols 3481Dim groupConstituents As ImmutableArray(Of NamespaceSymbol) = namespaceGroup.ConstituentNamespaces 3482Dim otherConstituents As ImmutableArray(Of NamespaceSymbol) = other.ConstituentNamespaces 3600ImmutableArray(Of Symbol).Empty, 3601ImmutableArray(Of BoundExpression).Empty, 3863Private Shared Function GenerateBadExpression(node As InvocationExpressionSyntax, target As BoundExpression, boundArguments As ImmutableArray(Of BoundExpression)) As BoundExpression 3910Private Function BindArrayAccess(node As InvocationExpressionSyntax, expr As BoundExpression, boundArguments As ImmutableArray(Of BoundExpression), argumentNames As ImmutableArray(Of String), diagnostics As BindingDiagnosticBag) As BoundExpression 3958symbols As ImmutableArray(Of Symbol), 4079Dim boundArguments As ImmutableArray(Of BoundExpression) = Nothing 4122Dim sizes As ImmutableArray(Of BoundExpression) = CreateArrayBounds(node, knownSizes, diagnostics) 4127Private Function CreateArrayBounds(node As SyntaxNode, knownSizes() As DimensionSize, diagnostics As BindingDiagnosticBag) As ImmutableArray(Of BoundExpression) 4287init = New BoundArrayInitialization(expr, ImmutableArray(Of BoundExpression).Empty, arrayInitType, hasErrors:=True) 4338Optional errorOnEmptyBound As Boolean = False) As ImmutableArray(Of BoundExpression) 4755ImmutableArray(Of BoundExpression).Empty, 4804ImmutableArray(Of BoundExpression).Empty, 4853ImmutableArray(Of BoundExpression).Empty,
Binding\Binder_Initializers.vb (17)
20Friend ReadOnly BoundInitializers As ImmutableArray(Of BoundInitializer) 29Private _loweredInitializers As ImmutableArray(Of BoundStatement) 30Friend Property InitializerStatements As ImmutableArray(Of BoundStatement) 34Set(value As ImmutableArray(Of BoundStatement)) 44Me.BoundInitializers = ImmutableArray(Of BoundInitializer).Empty 46Me._loweredInitializers = ImmutableArray(Of BoundStatement).Empty 49Friend Sub New(boundInitializers As ImmutableArray(Of BoundInitializer)) 64ImmutableArray(Of LocalSymbol).Empty, 86initializers As ImmutableArray(Of ImmutableArray(Of FieldOrPropertyInitializer)), 89) As ImmutableArray(Of BoundInitializer) 93Return ImmutableArray(Of BoundInitializer).Empty 137Dim additionalSymbols = If(initializer.FieldsOrProperties.Length > 1, initializer.FieldsOrProperties.RemoveAt(0), ImmutableArray(Of Symbol).Empty) 263fieldSymbols As ImmutableArray(Of FieldSymbol), 334propertySymbols As ImmutableArray(Of PropertySymbol), 367arguments:=ImmutableArray(Of BoundExpression).Empty, 531ImmutableArray(Of Symbol).Empty,
Binding\Binder_Invocation.vb (58)
106Dim boundArguments As ImmutableArray(Of BoundExpression) = Nothing 107Dim argumentNames As ImmutableArray(Of String) = Nothing 108Dim argumentNamesLocations As ImmutableArray(Of Location) = Nothing 187Dim boundArguments As ImmutableArray(Of BoundExpression) = Nothing 188Dim argumentNames As ImmutableArray(Of String) = Nothing 189Dim argumentNamesLocations As ImmutableArray(Of Location) = Nothing 254boundArguments As ImmutableArray(Of BoundExpression), 255argumentNames As ImmutableArray(Of String), 256argumentNamesLocations As ImmutableArray(Of Location), 393boundArguments As ImmutableArray(Of BoundExpression), 394argumentNames As ImmutableArray(Of String), 395argumentNamesLocations As ImmutableArray(Of Location), 422ImmutableArray(Of BoundExpression).Empty, 647Dim additionalExtensionMethods As ImmutableArray(Of MethodSymbol) = methodGroup.AdditionalExtensionMethods(useSiteInfo) 727boundArguments As ImmutableArray(Of BoundExpression), 728argumentNames As ImmutableArray(Of String), 790ImmutableArray(Of Symbol).Empty, builder.ToImmutableAndFree(), 826boundArguments As ImmutableArray(Of BoundExpression), 828asyncLambdaSubToFunctionMismatch As ImmutableArray(Of BoundExpression), 846Dim argumentInfo As (Arguments As ImmutableArray(Of BoundExpression), DefaultArguments As BitVector) = PassArguments(node, bestResult, boundArguments, diagnostics) 1082arguments As ImmutableArray(Of BoundExpression), 1190boundArguments As ImmutableArray(Of BoundExpression), 1191argumentNames As ImmutableArray(Of String), 1220boundArguments As ImmutableArray(Of BoundExpression), 1221argumentNames As ImmutableArray(Of String), 1234Dim bestSymbols = ImmutableArray(Of Symbol).Empty 1268bestSymbols As ImmutableArray(Of Symbol), 1270boundArguments As ImmutableArray(Of BoundExpression), 1271argumentNames As ImmutableArray(Of String), 1343bestSymbols As ImmutableArray(Of Symbol), 1345boundArguments As ImmutableArray(Of BoundExpression), 1346argumentNames As ImmutableArray(Of String), 1367boundArguments = ImmutableArray(Of BoundExpression).Empty 1450Dim typeArguments = If(mg.TypeArgumentsOpt IsNot Nothing, mg.TypeArgumentsOpt.Arguments, ImmutableArray(Of TypeSymbol).Empty) 1453typeArguments = ImmutableArray(Of TypeSymbol).Empty 1621Dim childBoundNodes As ImmutableArray(Of BoundExpression) 1625childBoundNodes = ImmutableArray(Of BoundExpression).Empty 1674ByRef bestSymbols As ImmutableArray(Of Symbol) 1765bestSymbols As ImmutableArray(Of Symbol), 1829arguments As ImmutableArray(Of BoundExpression), 1830argumentNames As ImmutableArray(Of String), 1839arguments = ImmutableArray(Of BoundExpression).Empty 1936arguments As ImmutableArray(Of BoundExpression), 1982arguments As ImmutableArray(Of BoundExpression), 1983argumentNames As ImmutableArray(Of String), 1997arguments = ImmutableArray(Of BoundExpression).Empty 2628arguments As ImmutableArray(Of BoundExpression), 2630) As (Arguments As ImmutableArray(Of BoundExpression), DefaultArguments As BitVector) 2635arguments = ImmutableArray(Of BoundExpression).Empty 2975ByRef boundArguments As ImmutableArray(Of BoundExpression), 2976ByRef argumentNames As ImmutableArray(Of String), 2977ByRef argumentNamesLocations As ImmutableArray(Of Location), 2980Dim args As ImmutableArray(Of ArgumentSyntax) = Nothing 3004arguments As ImmutableArray(Of ArgumentSyntax), 3005ByRef boundArguments As ImmutableArray(Of BoundExpression), 3006ByRef argumentNames As ImmutableArray(Of String), 3007ByRef argumentNamesLocations As ImmutableArray(Of Location), 3096arguments As ImmutableArray(Of BoundExpression),
Binding\Binder_Lambda.vb (10)
30Dim parameters As ImmutableArray(Of ParameterSymbol) 87) As ImmutableArray(Of BoundLambdaParameterSymbol) 90Return ImmutableArray(Of BoundLambdaParameterSymbol).Empty 93Dim unboundParams As ImmutableArray(Of ParameterSymbol) = source.Parameters 217Dim parameters As ImmutableArray(Of BoundLambdaParameterSymbol) = BuildBoundLambdaParameters(source, target, diagnostics) 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) 774Dim parameters As ImmutableArray(Of BoundLambdaParameterSymbol) = BuildBoundLambdaParameters(source, targetSignature, diagnostics) 789parameters As ImmutableArray(Of BoundLambdaParameterSymbol), 901Dim parameters As ImmutableArray(Of BoundLambdaParameterSymbol) = BuildBoundLambdaParameters(source, targetParameters, diagnostics)
Binding\Binder_Latebound.vb (6)
81arguments As ImmutableArray(Of BoundExpression), 82argumentNames As ImmutableArray(Of String), 125arguments As ImmutableArray(Of BoundExpression), 126argumentNames As ImmutableArray(Of String), 231Private Sub CheckNamedArgumentsForLateboundInvocation(argumentNames As ImmutableArray(Of String), 232arguments As ImmutableArray(Of BoundExpression),
Binding\Binder_Lookup.vb (7)
555Private Shared ReadOnly s_ambiguousInModuleError As Func(Of ImmutableArray(Of Symbol), AmbiguousSymbolDiagnostic) = 556Function(syms As ImmutableArray(Of Symbol)) As AmbiguousSymbolDiagnostic 1123Private Shared Function GenerateAmbiguousDefaultPropertyDiagnostic(symbols As ImmutableArray(Of Symbol)) As AmbiguousSymbolDiagnostic 1873Dim interfaces As ImmutableArray(Of NamedTypeSymbol) = currentInfo.InterfaceType.GetDirectBaseInterfacesNoUseSiteDiagnostics(binder.BasesBeingResolved) 2092Dim members As ImmutableArray(Of Symbol) = ImmutableArray(Of Symbol).Empty 2098members = ImmutableArray(Of Symbol).CastUp(container.GetTypeMembers(name))
Binding\Binder_ObjectInitializer.vb (22)
34Dim boundArguments As ImmutableArray(Of BoundExpression) = Nothing 35Dim argumentNames As ImmutableArray(Of String) = Nothing 36Dim argumentNamesLocations As ImmutableArray(Of Location) = Nothing 122CheckRequiredMembersInObjectInitializer(constructorSymbol, namedType, If(initializerOpt?.Initializers, ImmutableArray(Of BoundExpression).Empty), typeNode, diagnostics) 132arguments:=ImmutableArray(Of BoundExpression).Empty, 141Dim boundArguments As ImmutableArray(Of BoundExpression) = Nothing 142Dim argumentNames As ImmutableArray(Of String) = Nothing 143Dim argumentNamesLocations As ImmutableArray(Of Location) = Nothing 165arguments As ImmutableArray(Of BoundExpression), 180boundArguments As ImmutableArray(Of BoundExpression), 182) As ImmutableArray(Of BoundExpression) 197boundArguments As ImmutableArray(Of BoundExpression), 198argumentNames As ImmutableArray(Of String), 299ImmutableArray(Of Symbol).Empty, 359Dim constructors As ImmutableArray(Of MethodSymbol) = GetAccessibleConstructors(type, useSiteInfo) 388ImmutableArray(Of Symbol).Empty, 470Dim argumentInfo As (Arguments As ImmutableArray(Of BoundExpression), DefaultArguments As BitVector) = PassArguments(typeNode, methodResult, boundArguments, diagnostics) 501CheckRequiredMembersInObjectInitializer(constructorSymbol, constructorSymbol.ContainingType, If(objectInitializerExpressionOpt?.Initializers, ImmutableArray(Of BoundExpression).Empty), typeNode, diagnostics) 523initializers As ImmutableArray(Of BoundExpression), 584boundArguments As ImmutableArray(Of BoundExpression), 906Dim addInvocationExpressions As ImmutableArray(Of BoundExpression) 1002ImmutableArray(Of Symbol).Empty,
Binding\Binder_Operators.vb (1)
745Dim argumentInfo As (Arguments As ImmutableArray(Of BoundExpression), DefaultArguments As BitVector) =
Binding\Binder_Query.vb (128)
20parameters As ImmutableArray(Of BoundLambdaParameterSymbol)) As SynthesizedLambdaSymbol 32rangeVariables As ImmutableArray(Of RangeVariableSymbol), 220ImmutableArray(Of RangeVariableSymbol).Empty, 237ImmutableArray(Of RangeVariableSymbol).Empty, 270ImmutableArray(Of RangeVariableSymbol).Empty, 321Dim declaredRangeVariables As ImmutableArray(Of RangeVariableSymbol) = Nothing 326ImmutableArray(Of RangeVariableSymbol).Empty, 366ImmutableArray(Of RangeVariableSymbol).Empty, 379sourceRangeVariablesPart1 As ImmutableArray(Of RangeVariableSymbol), 380sourceRangeVariablesPart2 As ImmutableArray(Of RangeVariableSymbol), 383firstSelectDeclaredRangeVariables As ImmutableArray(Of RangeVariableSymbol), 423ImmutableArray(Of Binder).Empty, 438Dim selectSelectorBinder As New QueryLambdaBinder(selectSelectorLambdaSymbol, ImmutableArray(Of RangeVariableSymbol).Empty) 446Dim keysRangeVariablesPart1 As ImmutableArray(Of RangeVariableSymbol) 448Dim keysRangeVariablesPart2 As ImmutableArray(Of RangeVariableSymbol) 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 517Dim declaredRangeVariables As ImmutableArray(Of RangeVariableSymbol) = Nothing 610ImmutableArray(Of RangeVariableSymbol).Empty, 632ImmutableArray(Of RangeVariableSymbol).Empty, 634ImmutableArray(Of Binder).Empty, 667Dim declaredRangeVariables As ImmutableArray(Of RangeVariableSymbol) = Nothing 804Dim declaredRangeVariables As ImmutableArray(Of RangeVariableSymbol) = Nothing 1050Dim lambdaBinders As ImmutableArray(Of Binder) 1062Dim joinSelectorRangeVariables As ImmutableArray(Of RangeVariableSymbol) = sourceRangeVariables.Concat(manySelector.RangeVariables) 1063Dim joinSelectorDeclaredRangeVariables As ImmutableArray(Of RangeVariableSymbol) 1094joinSelectorDeclaredRangeVariables = ImmutableArray(Of RangeVariableSymbol).Empty 1277joinSelectorDeclaredRangeVariables As ImmutableArray(Of RangeVariableSymbol), 1279leftRangeVariables As ImmutableArray(Of RangeVariableSymbol), 1280rightRangeVariables As ImmutableArray(Of RangeVariableSymbol), 1407ImmutableArray(Of Binder).Empty, 1430Dim joinSelectorRangeVariables As ImmutableArray(Of RangeVariableSymbol) = outer.RangeVariables.Concat(inner.RangeVariables) 1447Dim lambdaBinders As ImmutableArray(Of Binder) 1457Dim joinSelectorDeclaredRangeVariables As ImmutableArray(Of RangeVariableSymbol) 1489joinSelectorDeclaredRangeVariables = ImmutableArray(Of RangeVariableSymbol).Empty 1566Private Shared Function CreateSetOfDeclaredNames(rangeVariables As ImmutableArray(Of RangeVariableSymbol)) As HashSet(Of String) 1577Private Shared Sub AssertDeclaredNames(declaredNames As HashSet(Of String), rangeVariables As ImmutableArray(Of RangeVariableSymbol)) 1653ImmutableArray(Of Binder).Empty, 1690Dim intoRangeVariables As ImmutableArray(Of RangeVariableSymbol) = Nothing 1759Dim itemsRangeVariables As ImmutableArray(Of RangeVariableSymbol) = Nothing 1764Dim keysRangeVariables As ImmutableArray(Of RangeVariableSymbol) = Nothing 1773Dim groupRangeVariables As ImmutableArray(Of RangeVariableSymbol) 1785Dim intoRangeVariables As ImmutableArray(Of RangeVariableSymbol) = Nothing 1793Dim lambdaBinders As ImmutableArray(Of Binder) 1853<Out()> ByRef itemsRangeVariables As ImmutableArray(Of RangeVariableSymbol), 1887itemsRangeVariables = ImmutableArray(Of RangeVariableSymbol).Empty 1900<Out()> ByRef keysRangeVariables As ImmutableArray(Of RangeVariableSymbol), 1947keysRangeVariables As ImmutableArray(Of RangeVariableSymbol), 2092keysRangeVariables As ImmutableArray(Of RangeVariableSymbol), 2097groupRangeVariables As ImmutableArray(Of RangeVariableSymbol), 2103<Out()> ByRef intoRangeVariables As ImmutableArray(Of RangeVariableSymbol) 2125Dim intoLambdaBinder As New QueryLambdaBinder(intoLambdaSymbol, ImmutableArray(Of RangeVariableSymbol).Empty) 2137ImmutableArray(Of RangeVariableSymbol).Empty, 2169Private Shared Function GetQueryLambdaParameterSyntax(syntaxNode As VisualBasicSyntaxNode, rangeVariables As ImmutableArray(Of RangeVariableSymbol)) As VisualBasicSyntaxNode 2182rangeVariables As ImmutableArray(Of RangeVariableSymbol) 2199Private Shared Function GetQueryLambdaParameterName(rangeVariables As ImmutableArray(Of RangeVariableSymbol)) As String 2210Private Shared Function GetQueryLambdaParameterNameLeft(rangeVariables As ImmutableArray(Of RangeVariableSymbol)) As String 2221Private Shared Function GetQueryLambdaParameterNameRight(rangeVariables As ImmutableArray(Of RangeVariableSymbol)) As String 2422ImmutableArray(Of BoundExpression).Empty, 2431ImmutableArray(Of Binder).Empty, 2503ImmutableArray(Of Binder).Empty, 2638Private ReadOnly _rangeVariables As ImmutableArray(Of RangeVariableSymbol) 2640Public Sub New(lambdaSymbol As LambdaSymbol, rangeVariables As ImmutableArray(Of RangeVariableSymbol)) 2646Friend Overrides ReadOnly Property Locals As ImmutableArray(Of RangeVariableSymbol) 2652Public ReadOnly Property RangeVariables As ImmutableArray(Of RangeVariableSymbol) 2664Public Overrides ReadOnly Property AdditionalContainingMembers As ImmutableArray(Of Symbol) 2666Return ImmutableArray(Of Symbol).Empty 2688<Out()> ByRef declaredRangeVariables As ImmutableArray(Of RangeVariableSymbol), 2735<Out()> ByRef declaredRangeVariables As ImmutableArray(Of RangeVariableSymbol), 2757declaredRangeVariables = ImmutableArray(Of RangeVariableSymbol).Empty 2933<Out()> ByRef declaredRangeVariables As ImmutableArray(Of RangeVariableSymbol), 2980rangeVariablesPart1 As ImmutableArray(Of RangeVariableSymbol), 2981rangeVariablesPart2 As ImmutableArray(Of RangeVariableSymbol), 2982<Out()> ByRef declaredRangeVariables As ImmutableArray(Of RangeVariableSymbol), 3018ImmutableArray(Of RangeVariableSymbol).Empty), 3030ImmutableArray(Of RangeVariableSymbol).Empty), 3035Dim keysRangeVariablesPart1 As ImmutableArray(Of RangeVariableSymbol) 3037Dim keysRangeVariablesPart2 As ImmutableArray(Of RangeVariableSymbol) 3051keysRangeVariablesPart2 = ImmutableArray(Of RangeVariableSymbol).Empty 3058keysRangeVariablesPart2 = ImmutableArray(Of RangeVariableSymbol).Empty 3061keysRangeVariablesPart1 = ImmutableArray(Of RangeVariableSymbol).Empty 3063keysRangeVariablesPart2 = ImmutableArray(Of RangeVariableSymbol).Empty 3112leftRangeVariables As ImmutableArray(Of RangeVariableSymbol), 3113rightRangeVariables As ImmutableArray(Of RangeVariableSymbol), 3114<Out> ByRef joinSelectorDeclaredRangeVariables As ImmutableArray(Of RangeVariableSymbol), 3221Dim parameters As ImmutableArray(Of BoundLambdaParameterSymbol) = _lambdaSymbol.Parameters.As(Of BoundLambdaParameterSymbol) 3256joinSelectorRangeVariables As ImmutableArray(Of RangeVariableSymbol), 3392outerRangeVariables As ImmutableArray(Of RangeVariableSymbol), 3395innerRangeVariables As ImmutableArray(Of RangeVariableSymbol), 3525outerRangeVariables As ImmutableArray(Of RangeVariableSymbol), 3528innerRangeVariables As ImmutableArray(Of RangeVariableSymbol), 3590rangeVariables As ImmutableArray(Of RangeVariableSymbol) 3637Private ReadOnly _outerRangeVariables As ImmutableArray(Of Object) 'ImmutableArray(Of RangeVariableSymbol) 3638Private ReadOnly _innerRangeVariables As ImmutableArray(Of Object) 'ImmutableArray(Of RangeVariableSymbol) 3642outerRangeVariables As ImmutableArray(Of RangeVariableSymbol), 3643innerRangeVariables As ImmutableArray(Of RangeVariableSymbol) 3682Private ReadOnly _badRangeVariables As ImmutableArray(Of Object) 'ImmutableArray(Of RangeVariableSymbol) 3687badRangeVariables As ImmutableArray(Of RangeVariableSymbol), 3699badRangeVariables As ImmutableArray(Of RangeVariableSymbol), 3735Private ReadOnly _groupRangeVariables As ImmutableArray(Of RangeVariableSymbol) 3737Private ReadOnly _aggregationArgumentRangeVariables As ImmutableArray(Of RangeVariableSymbol) 3742groupRangeVariables As ImmutableArray(Of RangeVariableSymbol), 3744aggregationArgumentRangeVariables As ImmutableArray(Of RangeVariableSymbol) 3765keysRangeVariables As ImmutableArray(Of RangeVariableSymbol), 3767keysRangeVariablesPart1 As ImmutableArray(Of RangeVariableSymbol), 3769keysRangeVariablesPart2 As ImmutableArray(Of RangeVariableSymbol), 3773<Out()> ByRef declaredRangeVariables As ImmutableArray(Of RangeVariableSymbol), 3929Dim arguments As ImmutableArray(Of BoundExpression) 3933arguments = ImmutableArray(Of BoundExpression).Empty 3974ImmutableArray(Of RangeVariableSymbol).Empty, 4104groupRangeVariables As ImmutableArray(Of RangeVariableSymbol), 4106aggregationArgumentRangeVariables As ImmutableArray(Of RangeVariableSymbol) 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, 4591arguments As ImmutableArray(Of BoundExpression), 4609arguments As ImmutableArray(Of BoundExpression), 4630arguments As ImmutableArray(Of BoundExpression), 4689Dim childBoundNodes As ImmutableArray(Of BoundExpression)
Binding\Binder_SelectCase.vb (7)
44Dim caseBlocks As ImmutableArray(Of BoundCaseBlock) = selectBinder.BindCaseBlocks( 107) As ImmutableArray(Of BoundCaseBlock) 120Return ImmutableArray(Of BoundCaseBlock).Empty 146Dim caseClauses As ImmutableArray(Of BoundCaseClause) 159caseClauses = ImmutableArray(Of BoundCaseClause).Empty 378) As ImmutableArray(Of BoundCaseBlock) 433Dim newCaseClauses As ImmutableArray(Of BoundCaseClause)
Binding\Binder_Statements.vb (35)
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 1017Dim boundLocalDeclarations As ImmutableArray(Of BoundLocalDeclarationBase) = BindVariableDeclarators(node.Declarators, diagnostics) 1027) As ImmutableArray(Of BoundLocalDeclarationBase) 1124Dim boundArrayBounds As ImmutableArray(Of BoundExpression) = Nothing 2105Return New BoundBlock(syntax, stmtList, ImmutableArray(Of LocalSymbol).Empty, boundStatements.AsImmutableOrNull()) 2475Dim boundArguments As ImmutableArray(Of BoundExpression) = Nothing 2476Dim argumentNames As ImmutableArray(Of String) = Nothing 2477Dim argumentNamesLocations As ImmutableArray(Of Location) = Nothing 2909Dim nextVariables As ImmutableArray(Of BoundExpression) = Nothing 3040<Out()> ByRef nextVariables As ImmutableArray(Of BoundExpression), 3058nextVariables = ImmutableArray(Of BoundExpression).Empty 3246Dim nextVariables As ImmutableArray(Of BoundExpression) = Nothing 3528Dim nextVariables As ImmutableArray(Of BoundExpression) = Nothing 3610ImmutableArray(Of Symbol).Empty, 3801ImmutableArray(Of Symbol).Empty, 3854ImmutableArray(Of Symbol).Empty, 4225ImmutableArray(Of BoundExpression).Empty, 4439Dim resourceList As ImmutableArray(Of BoundLocalDeclarationBase) = Nothing 4534Dim locals As ImmutableArray(Of LocalSymbol) = GetUsingBlockLocals(usingBinder) 4539Private Function GetUsingBlockLocals(currentBinder As Binder) As ImmutableArray(Of LocalSymbol) 4553Return ImmutableArray(Of LocalSymbol).Empty 4747Dim catchBlocks As ImmutableArray(Of BoundCatchBlock) = BindCatchBlocks(node.CatchBlocks, diagnostics) 4765Public Function BindCatchBlocks(catchClauses As SyntaxList(Of CatchBlockSyntax), diagnostics As BindingDiagnosticBag) As ImmutableArray(Of BoundCatchBlock) 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_Symbols.vb (7)
102typeArguments As ImmutableArray(Of TypeSymbol), 191Friend Function GetAccessibleConstructors(type As NamedTypeSymbol, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As ImmutableArray(Of MethodSymbol) 667Dim typesArray As ImmutableArray(Of TypeSymbol) = types.ToImmutableAndFree() 668Dim locationsArray As ImmutableArray(Of Location) = locations.ToImmutableAndFree() 891Dim typeArguments As ImmutableArray(Of TypeSymbol) = BindTypeArguments(typeArgumentsSyntax, binder, diagBag, suppressUseSiteError) 1043Dim typeArguments As ImmutableArray(Of TypeSymbol) = BindTypeArguments(typeArgumentsSyntax, binder, diagBag, suppressUseSiteError) 1119suppressUseSiteError As Boolean) As ImmutableArray(Of TypeSymbol)
Binding\Binder_Utils.vb (11)
821) As ImmutableArray(Of ParameterSymbol) 824Return ImmutableArray(Of ParameterSymbol).Empty 829Dim result As ImmutableArray(Of ParameterSymbol) 861diagBag As BindingDiagnosticBag) As ImmutableArray(Of ParameterSymbol) 865Return ImmutableArray(Of ParameterSymbol).Empty 869Dim result As ImmutableArray(Of ParameterSymbol) 886Dim typeParams As ImmutableArray(Of TypeParameterSymbol) = If(methodSymbol IsNot Nothing AndAlso Not isFromLambda, 888ImmutableArray(Of TypeParameterSymbol).Empty) 951diagBag As BindingDiagnosticBag) As ImmutableArray(Of ParameterSymbol) 953Return ImmutableArray(Of ParameterSymbol).Empty 957Dim result As ImmutableArray(Of ParameterSymbol)
Binding\Binder_WithBlock.vb (5)
76Friend ReadOnly Property DraftInitializers As ImmutableArray(Of BoundExpression) 104draftInitializers As ImmutableArray(Of BoundExpression), 135Public ReadOnly DraftInitializers As ImmutableArray(Of BoundExpression) 411Friend Overrides ReadOnly Property Locals As ImmutableArray(Of LocalSymbol) 413Return ImmutableArray(Of LocalSymbol).Empty
Binding\Binder_XmlLiterals.vb (36)
219childNodes As ImmutableArray(Of BoundExpression), 237Dim inScopeXmlNamespaces As ImmutableArray(Of KeyValuePair(Of String, String)) = Nothing 326xmlnsAttributes = BindObjectCreationExpression(syntax, xmlnsAttributesPlaceholder.Type, ImmutableArray(Of BoundExpression).Empty, diagnostics).MakeCompilerGenerated() 374Return ArrayTypeSymbol.CreateSZArray(elementType, ImmutableArray(Of CustomModifier).Empty, compilation:=Compilation) 701Dim arguments As ImmutableArray(Of BoundExpression) = Nothing 1017Private Function BindInvocationExpressionIfGroupNotNothing(syntax As SyntaxNode, groupOpt As BoundMethodOrPropertyGroup, arguments As ImmutableArray(Of BoundExpression), diagnostics As BindingDiagnosticBag) As BoundExpression 1371Me.SideEffects = ImmutableArray(Of BoundExpression).Empty 1383importedNamespaces As ImmutableArray(Of KeyValuePair(Of String, String)), 1384inScopeXmlNamespaces As ImmutableArray(Of KeyValuePair(Of String, String)), 1385sideEffects As ImmutableArray(Of BoundExpression)) 1414Public ReadOnly ImportedNamespaces As ImmutableArray(Of KeyValuePair(Of String, String)) 1415Public ReadOnly InScopeXmlNamespaces As ImmutableArray(Of KeyValuePair(Of String, String)) 1416Public ReadOnly SideEffects As ImmutableArray(Of BoundExpression) 1435Public Function GetImportChainData() As ImmutableArray(Of ImportedXmlNamespace) 1585Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 1591Public Overrides ReadOnly Property ExplicitInterfaceImplementations As ImmutableArray(Of PropertySymbol) 1593Return ImmutableArray(Of PropertySymbol).Empty 1661Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 1667Public Overrides ReadOnly Property Parameters As ImmutableArray(Of ParameterSymbol) 1669Return ImmutableArray(Of ParameterSymbol).Empty 1697Public Overrides ReadOnly Property TypeCustomModifiers As ImmutableArray(Of CustomModifier) 1703Public Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier) 1731Private _lazyParameters As ImmutableArray(Of ParameterSymbol) 1786Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 1792Public Overrides ReadOnly Property ExplicitInterfaceImplementations As ImmutableArray(Of MethodSymbol) 1794Return ImmutableArray(Of MethodSymbol).Empty 1912Friend Overrides Function GetAppliedConditionalSymbols() As ImmutableArray(Of String) 1916Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 1940Public Overrides ReadOnly Property Parameters As ImmutableArray(Of ParameterSymbol) 1961Public Overrides ReadOnly Property ReturnTypeCustomModifiers As ImmutableArray(Of CustomModifier) 1967Public Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier) 1979Public Overrides ReadOnly Property TypeArguments As ImmutableArray(Of TypeSymbol) 1985Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of TypeParameterSymbol) 2015Public Shared Function MakeParameters(propertyOrAccessor As Symbol, originalParameters As ImmutableArray(Of ParameterSymbol)) As ImmutableArray(Of ParameterSymbol) 2020Return ImmutableArray(Of ParameterSymbol).Empty
Binding\BinderBuilder.vb (3)
327Return New DeclarationInitializerBinder(parameterSymbol, ImmutableArray(Of Symbol).Empty, containingBinder, node) 340Return New DeclarationInitializerBinder(parameterSymbol, ImmutableArray(Of Symbol).Empty, containingBinder, node) 422additionalFieldsOrProperties As ImmutableArray(Of Symbol)) As Binder
Binding\BinderFactory.vb (3)
288Dim additionalFieldsOrProperties = ImmutableArray(Of Symbol).Empty 359Return BuildInitializerBinder(containingNamedTypeBinder, field, ImmutableArray(Of Symbol).Empty) 664Private Function BuildInitializerBinder(containingBinder As Binder, fieldOrProperty As Symbol, additionalFieldsOrProperties As ImmutableArray(Of Symbol)) As Binder
Binding\Binders\AliasAndImportsClause.vb (2)
21Public ReadOnly Dependencies As ImmutableArray(Of AssemblySymbol) 23Public Sub New([alias] As AliasSymbol, importsClausePosition As Integer, syntaxReference As SyntaxReference, dependencies As ImmutableArray(Of AssemblySymbol))
Binding\Binders\NamespaceOrTypeAndImportsClause.vb (2)
13Public ReadOnly Dependencies As ImmutableArray(Of AssemblySymbol) 15Public Sub New(namespaceOrType As NamespaceOrTypeSymbol, importsClausePosition As Integer, syntaxReference As SyntaxReference, dependencies As ImmutableArray(Of AssemblySymbol))
Binding\BlockBaseBinder.vb (2)
33Friend MustOverride ReadOnly Property Locals As ImmutableArray(Of T) 45Private Function BuildMap(locals As ImmutableArray(Of T)) As Dictionary(Of String, T)
Binding\BlockStatementBinders.vb (2)
38Friend Overrides ReadOnly Property Locals As ImmutableArray(Of LocalSymbol) 40Return ImmutableArray(Of LocalSymbol).Empty
Binding\CatchBlockBinder.vb (4)
21Private _locals As ImmutableArray(Of LocalSymbol) = Nothing 30Friend Overrides ReadOnly Property Locals As ImmutableArray(Of LocalSymbol) 42Private Function BuildLocals() As ImmutableArray(Of LocalSymbol) 63Return ImmutableArray(Of LocalSymbol).Empty
Binding\ConstantFieldsInProgressBinder.vb (2)
40Public Overrides ReadOnly Property AdditionalContainingMembers As ImmutableArray(Of Symbol) 42Return ImmutableArray(Of Symbol).Empty
Binding\DeclarationInitializerBinder.vb (3)
26Private ReadOnly _additionalSymbols As ImmutableArray(Of Symbol) 38Public Sub New(symbol As Symbol, additionalSymbols As ImmutableArray(Of Symbol), [next] As Binder, root As VisualBasicSyntaxNode) 64Public Overrides ReadOnly Property AdditionalContainingMembers As ImmutableArray(Of Symbol)
Binding\DocumentationCommentBinder.vb (6)
143Friend Overrides Function BindXmlNameAttributeValue(identifier As IdentifierNameSyntax, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As ImmutableArray(Of Symbol) 147Friend Overrides Function BindInsideCrefAttributeValue(name As TypeSyntax, preserveAliases As Boolean, diagnosticBag As BindingDiagnosticBag, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As ImmutableArray(Of Symbol) 151Friend Overrides Function BindInsideCrefAttributeValue(reference As CrefReferenceSyntax, preserveAliases As Boolean, diagnosticBag As BindingDiagnosticBag, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As ImmutableArray(Of Symbol) 156name As String, symbols As ImmutableArray(Of TSymbol)) As ImmutableArray(Of Symbol) 166Return ImmutableArray(Of Symbol).Empty
Binding\DocumentationCommentCrefBinder.vb (12)
69Friend Overrides Function BindInsideCrefAttributeValue(reference As CrefReferenceSyntax, preserveAliases As Boolean, diagnosticBag As BindingDiagnosticBag, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As ImmutableArray(Of Symbol) 73Return ImmutableArray(Of Symbol).Empty 84Return ImmutableArray(Of Symbol).Empty 94Return ImmutableArray(Of Symbol).Empty 127Dim parameters As ImmutableArray(Of ParameterSymbol) = candidateMethod.Parameters 153Dim parameters As ImmutableArray(Of ParameterSymbol) = candidateProperty.Parameters 198Friend Overrides Function BindInsideCrefAttributeValue(name As TypeSyntax, preserveAliases As Boolean, diagnosticBag As BindingDiagnosticBag, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As ImmutableArray(Of Symbol) 204Return ImmutableArray(Of Symbol).Empty 219Private Function BindInsideCrefSignatureOrReturnType(crefReference As CrefReferenceSyntax, name As TypeSyntax, preserveAliases As Boolean, diagnosticBag As BindingDiagnosticBag) As ImmutableArray(Of Symbol) 230ImmutableArray(Of Symbol).Empty, 303Private Function BindInsideCrefReferenceName(name As TypeSyntax, argCount As Integer, preserveAliases As Boolean, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As ImmutableArray(Of Symbol) 875Dim ambiguousSymbols As ImmutableArray(Of Symbol) = DirectCast(di, AmbiguousSymbolDiagnostic).AmbiguousSymbols
Binding\DocumentationCommentCrefBinder_Compat.vb (5)
30Private Function BindNameInsideCrefReferenceInLegacyMode(nameFromCref As TypeSyntax, preserveAliases As Boolean, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As ImmutableArray(Of Symbol) 35Return ImmutableArray(Of Symbol).Empty 60Return ImmutableArray(Of Symbol).Empty 414Private Function BingTypeArgumentsForCref(args As SeparatedSyntaxList(Of TypeSyntax)) As ImmutableArray(Of TypeSymbol) 430Dim symbols As ImmutableArray(Of Symbol) = DirectCast(di, AmbiguousSymbolDiagnostic).AmbiguousSymbols
Binding\DocumentationCommentParamBinder.vb (5)
24Private ReadOnly Property Parameters As ImmutableArray(Of ParameterSymbol) 49Return ImmutableArray(Of ParameterSymbol).Empty 53Friend Overrides Function BindXmlNameAttributeValue(identifier As IdentifierNameSyntax, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As ImmutableArray(Of Symbol) 55Return ImmutableArray(Of Symbol).Empty 60Return ImmutableArray(Of Symbol).Empty
Binding\DocumentationCommentTypeParamBinder.vb (6)
24Friend Overrides Function BindXmlNameAttributeValue(identifier As IdentifierNameSyntax, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As ImmutableArray(Of Symbol) 26Return ImmutableArray(Of Symbol).Empty 31Return ImmutableArray(Of Symbol).Empty 37Protected ReadOnly Property TypeParameters As ImmutableArray(Of TypeParameterSymbol) 49Return ImmutableArray(Of TypeParameterSymbol).Empty 61Dim typeParameters As ImmutableArray(Of TypeParameterSymbol) = Me.TypeParameters
Binding\DocumentationCommentTypeParamRefBinder.vb (3)
24Friend Overrides Function BindXmlNameAttributeValue(identifier As IdentifierNameSyntax, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As ImmutableArray(Of Symbol) 25Dim result As ImmutableArray(Of Symbol) = MyBase.BindXmlNameAttributeValue(identifier, useSiteInfo) 51Return ImmutableArray(Of Symbol).Empty
Binding\EarlyWellKnownAttributeBinder.vb (2)
38Public Overrides ReadOnly Property AdditionalContainingMembers As ImmutableArray(Of Symbol) 40Return ImmutableArray(Of Symbol).Empty
Binding\ExecutableCodeBinder.vb (5)
30Private _labels As ImmutableArray(Of SourceLabelSymbol) = Nothing 39Friend ReadOnly Property Labels As ImmutableArray(Of SourceLabelSymbol) 50Private Function BuildLabels() As ImmutableArray(Of SourceLabelSymbol) 72Return ImmutableArray(Of SourceLabelSymbol).Empty 87Private Shared Function BuildLabelsMap(labels As ImmutableArray(Of SourceLabelSymbol)) As MultiDictionary(Of String, SourceLabelSymbol)
Binding\ForOrForEachBlockBinder.vb (4)
21Private _locals As ImmutableArray(Of LocalSymbol) = Nothing 30Friend Overrides ReadOnly Property Locals As ImmutableArray(Of LocalSymbol) 42Private Function BuildLocals() As ImmutableArray(Of LocalSymbol) 104Return ImmutableArray(Of LocalSymbol).Empty
Binding\ImplicitVariableBinder.vb (2)
132Public Overrides ReadOnly Property ImplicitlyDeclaredVariables As ImmutableArray(Of LocalSymbol) 137Return ImmutableArray(Of LocalSymbol).Empty
Binding\ImportAliasesBinder.vb (4)
44Public Function GetImportChainData() As ImmutableArray(Of IAliasSymbol) 45Return ImmutableArray(Of IAliasSymbol).CastUp(_importedAliases.SelectAsArray(Function(kvp) kvp.Value.Alias)) 87Public Overrides ReadOnly Property AdditionalContainingMembers As ImmutableArray(Of Symbol) 89Return ImmutableArray(Of Symbol).Empty
Binding\ImportedTypesAndNamespacesMembersBinder.vb (4)
27Private ReadOnly _importedSymbols As ImmutableArray(Of NamespaceOrTypeAndImportsClausePosition) 29Public Sub New(containingBinder As Binder, importedSymbols As ImmutableArray(Of NamespaceOrTypeAndImportsClausePosition)) 165Friend Shared GenerateAmbiguityError As Func(Of ImmutableArray(Of Symbol), AmbiguousSymbolDiagnostic) = 166Function(ambiguousSymbols As ImmutableArray(Of Symbol)) As AmbiguousSymbolDiagnostic
Binding\LocationSpecificBinder.vb (2)
51Public Overrides ReadOnly Property AdditionalContainingMembers As ImmutableArray(Of Symbol) 53Return ImmutableArray(Of Symbol).Empty
Binding\LookupResult.vb (10)
120Public Shared Function Ambiguous(syms As ImmutableArray(Of Symbol), 121generateAmbiguityDiagnostic As Func(Of ImmutableArray(Of Symbol), AmbiguousSymbolDiagnostic)) As SingleLookupResult 416Public Sub SetFrom(syms As ImmutableArray(Of Symbol), 417generateAmbiguityDiagnostic As Func(Of ImmutableArray(Of Symbol), AmbiguousSymbolDiagnostic)) 453generateAmbiguityDiagnostic As Func(Of ImmutableArray(Of Symbol), AmbiguousSymbolDiagnostic)) 481generateAmbiguityDiagnostic As Func(Of ImmutableArray(Of Symbol), AmbiguousSymbolDiagnostic)) 750Private Shared ReadOnly s_ambiguousInTypeError As Func(Of ImmutableArray(Of Symbol), AmbiguousSymbolDiagnostic) = 751Function(syms As ImmutableArray(Of Symbol)) As AmbiguousSymbolDiagnostic 1011Private Shared ReadOnly s_ambiguousInNSError As Func(Of ImmutableArray(Of Symbol), AmbiguousSymbolDiagnostic) = 1012Function(syms As ImmutableArray(Of Symbol)) As AmbiguousSymbolDiagnostic
Binding\MemberSemanticModel.vb (35)
413Public NotOverridable Overrides Function GetSyntaxDiagnostics(Optional span As TextSpan? = Nothing, Optional cancellationToken As CancellationToken = Nothing) As ImmutableArray(Of Diagnostic) 428Public NotOverridable Overrides Function GetDeclarationDiagnostics(Optional span As TextSpan? = Nothing, Optional cancellationToken As CancellationToken = Nothing) As ImmutableArray(Of Diagnostic) 443Public NotOverridable Overrides Function GetMethodBodyDiagnostics(Optional span As TextSpan? = Nothing, Optional cancellationToken As CancellationToken = Nothing) As ImmutableArray(Of Diagnostic) 460Public NotOverridable Overrides Function GetDiagnostics(Optional span As TextSpan? = Nothing, Optional cancellationToken As CancellationToken = Nothing) As ImmutableArray(Of Diagnostic) 708Friend Overrides Function GetDeclaredSymbols(declarationSyntax As FieldDeclarationSyntax, Optional cancellationToken As CancellationToken = Nothing) As ImmutableArray(Of ISymbol) 736<Out> ByRef getEnumeratorArguments As ImmutableArray(Of BoundExpression), 738<Out> ByRef moveNextArguments As ImmutableArray(Of BoundExpression), 740<Out> ByRef currentArguments As ImmutableArray(Of BoundExpression), 820Friend Overrides Function GetAttributeMemberGroup(attribute As AttributeSyntax, Optional cancellationToken As CancellationToken = Nothing) As ImmutableArray(Of Symbol) 884Friend Overrides Function GetExpressionMemberGroup(node As ExpressionSyntax, Optional cancellationToken As CancellationToken = Nothing) As ImmutableArray(Of Symbol) 891Return ImmutableArray(Of Symbol).Empty 1037Dim boundNodes As ImmutableArray(Of BoundNode) = GetBoundNodes(node) 1209Private ReadOnly _guardedBoundNodeMap As New SmallDictionary(Of SyntaxNode, ImmutableArray(Of BoundNode))(ReferenceEqualityComparer.Instance) 1212Private ReadOnly _guardedQueryBindersMap As New Dictionary(Of SyntaxNode, ImmutableArray(Of Binder))() 1237Private Function GuardedGetBoundNodesFromMap(node As SyntaxNode) As ImmutableArray(Of BoundNode) 1239Dim result As ImmutableArray(Of BoundNode) = Nothing 1427Dim binders As ImmutableArray(Of Binder) = GetQueryClauseLambdaBinders(aggregate) 1448Dim binders As ImmutableArray(Of Binder) = GetQueryClauseLambdaBinders(aggregate) 1469Dim binders As ImmutableArray(Of Binder) = GetQueryClauseLambdaBinders(join) 1496Dim binders As ImmutableArray(Of Binder) = GetQueryClauseLambdaBinders(join) 1537Dim binders As ImmutableArray(Of Binder) = GetQueryClauseLambdaBinders(item) 1562Dim binders As ImmutableArray(Of Binder) = GetQueryClauseLambdaBinders(item) 1585Dim binders As ImmutableArray(Of Binder) = GetQueryClauseLambdaBinders(groupBy) 1623Dim binders As ImmutableArray(Of Binder) = GetQueryClauseLambdaBinders(func) 1642Dim binders As ImmutableArray(Of Binder) = GetQueryClauseLambdaBinders(operatorSyntax) 1655Private Function GetQueryClauseLambdaBinders(node As VisualBasicSyntaxNode) As ImmutableArray(Of Binder) 1660Dim binders As ImmutableArray(Of Binder) = Nothing 1829Friend Function GetBoundNodes(node As SyntaxNode) As ImmutableArray(Of BoundNode) 1830Dim bound As ImmutableArray(Of BoundNode) = Nothing 1847Return ImmutableArray(Of BoundNode).Empty 1900Return ImmutableArray(Of BoundNode).Empty 2061Dim boundNodes As ImmutableArray(Of BoundNode) = _binding.GuardedGetBoundNodesFromMap(node) 2118nodeCache As SmallDictionary(Of SyntaxNode, ImmutableArray(Of BoundNode)), 2324Dim haveBindersInTheMap As ImmutableArray(Of Binder) = Nothing 2337Dim haveBindersInTheMap As ImmutableArray(Of Binder) = Nothing
Binding\MethodTypeParametersBinder.vb (2)
27Private ReadOnly _typeParameters As ImmutableArray(Of TypeParameterSymbol) 29Public Sub New(containingBinder As Binder, typeParameters As ImmutableArray(Of TypeParameterSymbol))
Binding\NamedTypeBinder.vb (2)
172Public Overrides ReadOnly Property AdditionalContainingMembers As ImmutableArray(Of Symbol) 174Return ImmutableArray(Of Symbol).Empty
Binding\NamespaceBinder.vb (2)
58Public Overrides ReadOnly Property AdditionalContainingMembers As ImmutableArray(Of Symbol) 60Return ImmutableArray(Of Symbol).Empty
Binding\StatementListBinder.vb (4)
22Private _locals As ImmutableArray(Of LocalSymbol) = Nothing 30Friend Overrides ReadOnly Property Locals As ImmutableArray(Of LocalSymbol) 41Private Function BuildLocals() As ImmutableArray(Of LocalSymbol) 91Return ImmutableArray(Of LocalSymbol).Empty
Binding\SubOrFunctionBodyBinder.vb (3)
26Dim parameters As ImmutableArray(Of ParameterSymbol) = methodOrLambdaSymbol.Parameters 53Public Overrides ReadOnly Property AdditionalContainingMembers As ImmutableArray(Of Symbol) 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 (7)
27Return (New BoundBlock(syntax, Nothing, ImmutableArray(Of LocalSymbol).Empty, ImmutableArray(Of BoundStatement).Empty, hasErrors:=True)).MakeCompilerGenerated() 56ImmutableArray(Of BoundExpression).Empty, 69Dim locals As ImmutableArray(Of LocalSymbol) 245ImmutableArray(Of BoundExpression).Empty) 325ImmutableArray(Of BoundExpression).Empty) 353locals = If(temps Is Nothing, ImmutableArray(Of LocalSymbol).Empty, temps.ToImmutableAndFree)
Binding\TypesOfImportedNamespacesMembersBinder.vb (3)
26Private ReadOnly _importedSymbols As ImmutableArray(Of NamespaceOrTypeAndImportsClausePosition) 29importedSymbols As ImmutableArray(Of NamespaceOrTypeAndImportsClausePosition)) 57Public Function GetImportChainData() As ImmutableArray(Of ImportedNamespaceOrType)
Binding\UsingBlockBinder.vb (4)
21Private _locals As ImmutableArray(Of LocalSymbol) = Nothing 30Friend Overrides ReadOnly Property Locals As ImmutableArray(Of LocalSymbol) 42Private Function BuildLocals() As ImmutableArray(Of LocalSymbol) 72Return ImmutableArray(Of LocalSymbol).Empty
BoundTree\BoundArrayAccess.vb (1)
15Public Sub New(syntax As SyntaxNode, expression As BoundExpression, indices As ImmutableArray(Of BoundExpression), type As TypeSymbol, Optional hasErrors As Boolean = False)
BoundTree\BoundArrayCreation.vb (2)
13Public Sub New(syntax As SyntaxNode, bounds As ImmutableArray(Of BoundExpression), initializerOpt As BoundArrayInitialization, type As TypeSymbol, Optional hasErrors As Boolean = False) 17Public Sub New(syntax As SyntaxNode, bounds As ImmutableArray(Of BoundExpression), initializerOpt As BoundArrayInitialization, arrayLiteralOpt As BoundArrayLiteral, arrayLiteralConversion As ConversionKind, type As TypeSymbol, Optional hasErrors As Boolean = False)
BoundTree\BoundCall.vb (2)
17arguments As ImmutableArray(Of BoundExpression), 36arguments As ImmutableArray(Of BoundExpression),
BoundTree\BoundDimStatement.vb (1)
10Private ReadOnly Property IBoundLocalDeclarations_Declarations As ImmutableArray(Of BoundLocalDeclarationBase) Implements IBoundLocalDeclarations.Declarations
BoundTree\BoundLocalDeclaration.vb (1)
24Private ReadOnly Property IBoundLocalDeclarations_Declarations As ImmutableArray(Of BoundLocalDeclarationBase) Implements IBoundLocalDeclarations.Declarations
BoundTree\BoundMethodGroup.vb (7)
20methods As ImmutableArray(Of MethodSymbol), 30Public Function AdditionalExtensionMethods(<[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As ImmutableArray(Of MethodSymbol) 32Return ImmutableArray(Of MethodSymbol).Empty 44Private _lazyMethods As ImmutableArray(Of MethodSymbol) 55Public Function LazyLookupAdditionalExtensionMethods(group As BoundMethodGroup, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As ImmutableArray(Of MethodSymbol) 61Dim methods As ImmutableArray(Of MethodSymbol) = ImmutableArray(Of MethodSymbol).Empty
BoundTree\BoundNodeExtensions.vb (1)
20Public Function NonNullAndHasErrors(Of T As BoundNode)(nodeArray As ImmutableArray(Of T)) As Boolean
BoundTree\BoundObjectCreationExpression.vb (2)
14Public Sub New(syntax As SyntaxNode, constructorOpt As MethodSymbol, arguments As ImmutableArray(Of BoundExpression), initializerOpt As BoundObjectInitializerExpressionBase, type As TypeSymbol, 19Public Function Update(constructorOpt As MethodSymbol, arguments As ImmutableArray(Of BoundExpression), defaultArguments As BitVector, initializerOpt As BoundObjectInitializerExpressionBase, type As TypeSymbol) As BoundObjectCreationExpression
BoundTree\BoundPropertyAccess.vb (1)
18Public Sub New(syntax As SyntaxNode, propertySymbol As PropertySymbol, propertyGroupOpt As BoundPropertyGroup, accessKind As PropertyAccessKind, isWriteable As Boolean, receiverOpt As BoundExpression, arguments As ImmutableArray(Of BoundExpression),
BoundTree\BoundTreeRewriter.vb (3)
19Public Overridable Function VisitList(Of T As BoundNode)(list As ImmutableArray(Of T)) As ImmutableArray(Of T) 51Public Sub VisitList(Of T As BoundNode)(list As ImmutableArray(Of T), results As ArrayBuilder(Of T))
BoundTree\BoundTreeWalker.vb (1)
18Public Overridable Sub VisitList(Of T As BoundNode)(list As ImmutableArray(Of T))
BoundTree\BoundWithStatement.vb (1)
33Friend ReadOnly Property DraftInitializers As ImmutableArray(Of BoundExpression)
BoundTree\Expression.vb (28)
11Protected Overrides ReadOnly Property Children As ImmutableArray(Of BoundNode) 17Private ReadOnly Property IBoundInvalidNode_InvalidNodeChildren As ImmutableArray(Of BoundNode) Implements IBoundInvalidNode.InvalidNodeChildren 25Protected Overrides ReadOnly Property Children As ImmutableArray(Of BoundNode) 33Protected Overrides ReadOnly Property Children As ImmutableArray(Of BoundNode) 41Protected Overrides ReadOnly Property Children As ImmutableArray(Of BoundNode) 49Protected Overrides ReadOnly Property Children As ImmutableArray(Of BoundNode) 54Return ImmutableArray(Of BoundNode).Empty 63Protected Overrides ReadOnly Property Children As ImmutableArray(Of BoundNode) 69Private ReadOnly Property IBoundInvalidNode_InvalidNodeChildren As ImmutableArray(Of BoundNode) Implements IBoundInvalidNode.InvalidNodeChildren 77Protected Overrides ReadOnly Property Children As ImmutableArray(Of BoundNode) 85Protected Overrides ReadOnly Property Children As ImmutableArray(Of BoundNode) 93Protected Overrides ReadOnly Property Children As ImmutableArray(Of BoundNode) 101Protected Overrides ReadOnly Property Children As ImmutableArray(Of BoundNode) 109Protected Overrides ReadOnly Property Children As ImmutableArray(Of BoundNode) 117Protected Overrides ReadOnly Property Children As ImmutableArray(Of BoundNode) 125Protected Overrides ReadOnly Property Children As ImmutableArray(Of BoundNode) 133Protected MustOverride Overrides ReadOnly Property Children As ImmutableArray(Of BoundNode) 137Protected Overrides ReadOnly Property Children As ImmutableArray(Of BoundNode) 145Protected Overrides ReadOnly Property Children As ImmutableArray(Of BoundNode) 153Protected Overrides ReadOnly Property Children As ImmutableArray(Of BoundNode) 161Protected Overrides ReadOnly Property Children As ImmutableArray(Of BoundNode) 169Protected Overrides ReadOnly Property Children As ImmutableArray(Of BoundNode) 177Protected Overrides ReadOnly Property Children As ImmutableArray(Of BoundNode) 185Protected Overrides ReadOnly Property Children As ImmutableArray(Of BoundNode) 193Protected Overrides ReadOnly Property Children As ImmutableArray(Of BoundNode) 201Protected Overrides ReadOnly Property Children As ImmutableArray(Of BoundNode) 209Protected Overrides ReadOnly Property Children As ImmutableArray(Of BoundNode) 217Protected Overrides ReadOnly Property Children As ImmutableArray(Of BoundNode)
BoundTree\GroupTypeInferenceLambda.vb (1)
15Public Function InferLambdaReturnType(delegateParams As ImmutableArray(Of ParameterSymbol)) As TypeSymbol
BoundTree\IBoundInvalidNode.vb (1)
13ReadOnly Property InvalidNodeChildren As ImmutableArray(Of BoundNode)
BoundTree\IBoundLocalDeclarations.vb (1)
9ReadOnly Property Declarations As ImmutableArray(Of BoundLocalDeclarationBase)
BoundTree\Statement.vb (12)
15Public ReadOnly Property IBoundNodeWithIOperationChildren_Children As ImmutableArray(Of BoundNode) Implements IBoundNodeWithIOperationChildren.Children 27Protected Overridable ReadOnly Property Children As ImmutableArray(Of BoundNode) 29Return ImmutableArray(Of BoundNode).Empty 35Protected Overrides ReadOnly Property Children As ImmutableArray(Of BoundNode) 43Protected Overrides ReadOnly Property Children As ImmutableArray(Of BoundNode) 52Protected Overrides ReadOnly Property Children As ImmutableArray(Of BoundNode) 58Private ReadOnly Property IBoundInvalidNode_InvalidNodeChildren As ImmutableArray(Of BoundNode) Implements IBoundInvalidNode.InvalidNodeChildren 66Protected Overrides ReadOnly Property Children As ImmutableArray(Of BoundNode) 76Private ReadOnly Property IBoundInvalidNode_InvalidNodeChildren As ImmutableArray(Of BoundNode) Implements IBoundInvalidNode.InvalidNodeChildren 84Protected Overrides ReadOnly Property Children As ImmutableArray(Of BoundNode) 92Protected Overrides ReadOnly Property Children As ImmutableArray(Of BoundNode) 100Protected Overrides ReadOnly Property Children As ImmutableArray(Of BoundNode)
BoundTree\UnboundLambda.vb (4)
132Public ReadOnly ParameterTypes As ImmutableArray(Of TypeSymbol) 137Public Sub New(parameterTypes As ImmutableArray(Of TypeSymbol), parameterIsByRef As BitVector, returnType As TypeSymbol, returnsByRef As Boolean) 147Public Sub New(params As ImmutableArray(Of ParameterSymbol), returnType As TypeSymbol, returnsByRef As Boolean) 154Me.ParameterTypes = ImmutableArray(Of TypeSymbol).Empty
CodeGen\CodeGenerator.vb (4)
112<Out> ByRef asyncYieldPoints As ImmutableArray(Of Integer), 113<Out> ByRef asyncResumePoints As ImmutableArray(Of Integer)) 125asyncYieldPoints = ImmutableArray(Of Integer).Empty 126asyncResumePoints = ImmutableArray(Of Integer).Empty
CodeGen\EmitArrayInitializer.vb (11)
53inits As ImmutableArray(Of BoundExpression), 64inits As ImmutableArray(Of BoundExpression), 98Public Sub New(Index As Integer, Initializers As ImmutableArray(Of BoundExpression)) 104Public ReadOnly Initializers As ImmutableArray(Of BoundExpression) 108inits As ImmutableArray(Of BoundExpression), 190Private Function ShouldEmitBlockInitializer(elementType As TypeSymbol, inits As ImmutableArray(Of BoundExpression)) As ArrayInitializerStyle 232Private Sub InitializerCountRecursive(inits As ImmutableArray(Of BoundExpression), ByRef initCount As Integer, ByRef constInits As Integer) 259Private Function GetRawData(initializers As ImmutableArray(Of BoundExpression)) As ImmutableArray(Of Byte) 269Private Sub SerializeArrayRecursive(bw As BlobBuilder, inits As ImmutableArray(Of BoundExpression)) 286Private Function IsMultidimensionalInitializer(inits As ImmutableArray(Of BoundExpression)) As Boolean
CodeGen\EmitConversion.vb (1)
237EmitNewObj(constructor, ImmutableArray(Of BoundExpression).Empty, used:=True, syntaxNode:=conversion.Syntax)
CodeGen\EmitExpression.vb (6)
535Private Sub EmitSideEffects(sideEffects As ImmutableArray(Of BoundExpression)) 543Private Sub EmitExpressions(expressions As ImmutableArray(Of BoundExpression), used As Boolean) 552Private Sub EmitArguments(arguments As ImmutableArray(Of BoundExpression), parameters As ImmutableArray(Of ParameterSymbol)) 1270Friend Shared Function IsSafeToDereferenceReceiverRefAfterEvaluatingArguments(arguments As ImmutableArray(Of BoundExpression)) As Boolean 1664arguments As ImmutableArray(Of BoundExpression),
CodeGen\EmitStatement.vb (10)
934Dim caseBlockLabels As ImmutableArray(Of GeneratedLabelSymbol) = CreateCaseBlockLabels(caseBlocks) 952Private Function CreateCaseBlockLabels(caseBlocks As ImmutableArray(Of BoundCaseBlock)) As ImmutableArray(Of GeneratedLabelSymbol) 970caseBlocks As ImmutableArray(Of BoundCaseBlock), 971caseBlockLabels As ImmutableArray(Of GeneratedLabelSymbol), 1184Private Sub EmitCaseBlocks(caseBlocks As ImmutableArray(Of BoundCaseBlock), caseBlockLabels As ImmutableArray(Of GeneratedLabelSymbol), exitLabel As LabelSymbol) 1243Dim dynamicTransformFlags = ImmutableArray(Of Boolean).Empty 1246ImmutableArray(Of String).Empty) 1411Private Sub EmitSwitch(jumps As ImmutableArray(Of BoundGotoStatement))
CodeGen\Optimizer\StackScheduler.Analyzer.vb (10)
360Dim sideeffects As ImmutableArray(Of BoundExpression) = node.SideEffects 686Dim rewrittenArguments As ImmutableArray(Of BoundExpression) = VisitArguments(node.Arguments, method.Parameters) 701Private Function VisitArguments(arguments As ImmutableArray(Of BoundExpression), parameters As ImmutableArray(Of ParameterSymbol)) As ImmutableArray(Of BoundExpression) 733Dim rewrittenArguments As ImmutableArray(Of BoundExpression) = If(constructor Is Nothing, node.Arguments, 1035Dim caseBlocks As ImmutableArray(Of BoundCaseBlock) = Me.VisitList(node.CaseBlocks) 1081Dim catchBlocks As ImmutableArray(Of BoundCatchBlock) = Me.VisitList(node.CatchBlocks) 1124Dim initializers As ImmutableArray(Of BoundExpression) = node.Initializers 1314Private Sub DeclareLocals(locals As ImmutableArray(Of LocalSymbol), stack As Integer)
CommandLine\CommandLineDiagnosticFormatter.vb (2)
15Private ReadOnly _getAdditionalTextFiles As Func(Of ImmutableArray(Of AdditionalTextFile)) 17Friend Sub New(baseDirectory As String, getAdditionalTextFiles As Func(Of ImmutableArray(Of AdditionalTextFile)))
CommandLine\VisualBasicCommandLineParser.vb (5)
149Dim pathMap As ImmutableArray(Of KeyValuePair(Of String, String)) = ImmutableArray(Of KeyValuePair(Of String, String)).Empty 1356Dim searchPaths As ImmutableArray(Of String) = BuildSearchPaths(baseDirectory, sdkPaths, responsePaths, libPaths) 1604Private Shared Function BuildSearchPaths(baseDirectory As String, sdkPaths As List(Of String), responsePaths As List(Of String), libPaths As List(Of String)) As ImmutableArray(Of String) 1780Dim importDiagnostics As ImmutableArray(Of Diagnostic) = Nothing
CommandLine\VisualBasicCompiler.vb (11)
21Private _additionalTextFiles As ImmutableArray(Of AdditionalTextFile) 33Private Function GetAdditionalTextFiles() As ImmutableArray(Of AdditionalTextFile) 38Protected Overrides Function ResolveAdditionalFilesFromArguments(diagnostics As List(Of DiagnosticInfo), messageProvider As CommonMessageProvider, touchedFilesLogger As TouchedFileLogger) As ImmutableArray(Of AdditionalTextFile) 89analyzerConfigOptions As ImmutableArray(Of AnalyzerConfigOptionsResult), 99Dim sourceFiles As ImmutableArray(Of CommandLineSourceFile) = Arguments.SourceFiles 159Dim sourceFileResolver = New LoggingSourceFileResolver(ImmutableArray(Of String).Empty, Arguments.BaseDirectory, Arguments.PathMap, touchedFilesLogger) 261ByRef analyzers As ImmutableArray(Of DiagnosticAnalyzer), 262ByRef generators As ImmutableArray(Of ISourceGenerator)) 300Private Protected Overrides Function CreateGeneratorDriver(baseDirectory As String, parseOptions As ParseOptions, generators As ImmutableArray(Of ISourceGenerator), analyzerConfigOptionsProvider As AnalyzerConfigOptionsProvider, additionalTexts As ImmutableArray(Of AdditionalText)) As GeneratorDriver 305Private Protected Overrides Sub DiagnoseBadAccesses(consoleOutput As TextWriter, errorLogger As ErrorLogger, compilation As Compilation, diagnostics As ImmutableArray(Of Diagnostic))
Compilation\ClsComplianceChecker.vb (13)
363Private Sub CheckTypeParameterCompliance(typeParameters As ImmutableArray(Of TypeParameterSymbol), context As NamedTypeSymbol) 374Private Sub CheckParameterCompliance(parameters As ImmutableArray(Of ParameterSymbol), context As NamedTypeSymbol) 777Dim args As ImmutableArray(Of TypedConstant) = attributeData.CommonConstructorArguments 875Dim xParameterTypes As ImmutableArray(Of TypeSymbol) = GetParameterTypes(x) 876Dim yParameterTypes As ImmutableArray(Of TypeSymbol) = GetParameterTypes(y) 877Dim xRefKinds As ImmutableArray(Of RefKind) = GetParameterRefKinds(x) 878Dim yRefKinds As ImmutableArray(Of RefKind) = GetParameterRefKinds(y) 919Private Shared Function GetParameterTypes(symbol As Symbol) As ImmutableArray(Of TypeSymbol) 920Dim parameters As ImmutableArray(Of ParameterSymbol) 931Return ImmutableArray(Of TypeSymbol).Empty 941Private Shared Function GetParameterRefKinds(symbol As Symbol) As ImmutableArray(Of RefKind) 942Dim parameters As ImmutableArray(Of ParameterSymbol) 953Return ImmutableArray(Of RefKind).Empty
Compilation\DocumentationComments\DocumentationCommentCompiler.Common.vb (5)
375symbolName As String, parameters As ImmutableArray(Of ParameterSymbol)) 389symbolName As String, typeParameters As ImmutableArray(Of TypeParameterSymbol)) 420Dim bindResult As ImmutableArray(Of Symbol) = binder.BindXmlNameAttributeValue(nameAttribute.Reference, useSiteInfo) 452allowedSymbols As ImmutableArray(Of TSymbol)) 488allowedSymbols As ImmutableArray(Of TSymbol),
Compilation\DocumentationComments\DocumentationCommentCompiler.Event.vb (2)
71Dim parameters As ImmutableArray(Of ParameterSymbol) = ImmutableArray(Of ParameterSymbol).Empty
Compilation\DocumentationComments\DocumentationCommentCompiler.Includes.vb (3)
625Dim bindResult As ImmutableArray(Of Symbol) = binder.BindInsideCrefAttributeValue(reference, preserveAliases:=False, 713Private Sub ProcessErrorLocations(currentXmlLocation As XmlLocation, referenceName As String, useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol), errorLocations As ImmutableArray(Of Location), errid As Nullable(Of ERRID)) 762Dim bindResult As ImmutableArray(Of Symbol) = binder.BindXmlNameAttributeValue(identifier, useSiteInfo)
Compilation\DocumentationComments\DocumentationCommentWalker.vb (2)
153Dim result As ImmutableArray(Of Symbol) = crefBinder.BindInsideCrefAttributeValue(reference, preserveAliases:=False, diagnosticBag:=diagnostics, useSiteInfo:=useSiteInfo) 277Private Sub ProcessErrorLocations(node As SyntaxNode, errorLocations As ImmutableArray(Of Location), useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol), errid As Nullable(Of ERRID))
Compilation\MethodCompiler.vb (41)
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) 463Private Sub AssertAllInitializersAreConstants(initializers As ImmutableArray(Of ImmutableArray(Of FieldOrPropertyInitializer))) 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) 921Private Sub CompileSynthesizedMethods(additionalTypes As ImmutableArray(Of NamedTypeSymbol)) 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 1344Private Sub CreateSyntheticWithEventOverridesIfNeeded(handledEvents As ImmutableArray(Of HandledEvent), 1395codeCoverageSpans:=ImmutableArray(Of SourceSpan).Empty, 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() 1595lambdaDebugInfo As ImmutableArray(Of EncLambdaInfo), 1596orderedLambdaRuntimeRudeEdits As ImmutableArray(Of LambdaRuntimeRudeEditInfo), 1597closureDebugInfo As ImmutableArray(Of EncClosureInfo), 1598stateMachineStateDebugInfos As ImmutableArray(Of StateMachineStateDebugInfo), 1604codeCoverageSpans As ImmutableArray(Of SourceSpan)) As MethodBody 1650Dim asyncYieldPoints As ImmutableArray(Of Integer) = Nothing 1651Dim asyncResumePoints As ImmutableArray(Of Integer) = Nothing 1692Dim stateMachineHoistedLocalSlots As ImmutableArray(Of EncHoistedLocalInfo) = Nothing 1693Dim stateMachineAwaiterSlots As ImmutableArray(Of Cci.ITypeReference) = Nothing 1736ByRef hoistedVariableSlots As ImmutableArray(Of EncHoistedLocalInfo), 1737ByRef awaiterSlots As ImmutableArray(Of Cci.ITypeReference)) 1993Dim locations As ImmutableArray(Of Location) = If(constructor.IsImplicitlyDeclared, containingType.Locations, constructor.Locations) 2093baseInvocation = New BoundCall(syntaxNode, constructorToCall, Nothing, thisRef, ImmutableArray(Of BoundExpression).Empty, Nothing, voidType) 2113ImmutableArray(Of BoundExpression).Empty,
Compilation\NamespaceScopeBuilder.vb (2)
20memberImports As ImmutableArray(Of NamespaceOrTypeAndImportsClausePosition), 22) As ImmutableArray(Of Cci.UsedNamespaceOrType)
Compilation\OverloadResolutionResult.vb (3)
25Private ReadOnly _results As ImmutableArray(Of MemberResolutionResult(Of TMember)) 28results As ImmutableArray(Of MemberResolutionResult(Of TMember)), 72Public ReadOnly Property Results As ImmutableArray(Of MemberResolutionResult(Of TMember))
Compilation\SemanticModel.vb (54)
100Friend MustOverride Function GetExpressionMemberGroup(node As ExpressionSyntax, Optional cancellationToken As CancellationToken = Nothing) As ImmutableArray(Of Symbol) 107Friend MustOverride Function GetAttributeMemberGroup(attribute As AttributeSyntax, Optional cancellationToken As CancellationToken = Nothing) As ImmutableArray(Of Symbol) 277Dim memberGroup As ImmutableArray(Of Symbol) = Nothing 278Dim symbols As ImmutableArray(Of Symbol) = GetSemanticSymbols(boundNodes, binderOpt, options, resultKind, memberGroup) 439Public Shadows Function GetMemberGroup(expression As ExpressionSyntax, Optional cancellationToken As CancellationToken = Nothing) As ImmutableArray(Of ISymbol) 451Return ImmutableArray(Of ISymbol).Empty 455Public Shadows Function GetSpeculativeMemberGroup(position As Integer, expression As ExpressionSyntax) As ImmutableArray(Of ISymbol) 468Return ImmutableArray(Of ISymbol).Empty 472Public Shadows Function GetMemberGroup(attribute As AttributeSyntax, Optional cancellationToken As CancellationToken = Nothing) As ImmutableArray(Of ISymbol) 484Return ImmutableArray(Of ISymbol).Empty 488Friend Function GetMemberGroupForNode(boundNodes As BoundNodeSummary, binderOpt As Binder) As ImmutableArray(Of Symbol) 491Dim memberGroup As ImmutableArray(Of Symbol) = Nothing 492Dim symbols As ImmutableArray(Of Symbol) = GetSemanticSymbols(boundNodes, binderOpt, SymbolInfoOptions.DefaultOptions, resultKind, memberGroup) 870Friend Function RemoveErrorTypesAndDuplicates(symbolsBuilder As ArrayBuilder(Of Symbol), options As SymbolInfoOptions) As ImmutableArray(Of Symbol) 875Return ImmutableArray(Of Symbol).Empty 1017ByRef memberGroup As ImmutableArray(Of Symbol)) As ImmutableArray(Of Symbol) 1089Dim symbols = ImmutableArray(Of Symbol).Empty 1169Dim bindingSymbols As ImmutableArray(Of Symbol) = RemoveErrorTypesAndDuplicates(symbolsBuilder, options) 1394Private Shared Function UnwrapAliases(symbols As ImmutableArray(Of Symbol)) As ImmutableArray(Of Symbol) 1416ByRef bindingSymbols As ImmutableArray(Of Symbol), 1468ByRef bindingSymbols As ImmutableArray(Of Symbol), 1483Dim candidateConstructors As ImmutableArray(Of MethodSymbol) 1496candidateConstructors = ImmutableArray(Of MethodSymbol).Empty 1544Dim symbols As ImmutableArray(Of Symbol) = RemoveErrorTypesAndDuplicates(symbolsBuilder, options) 1601) As ImmutableArray(Of ISymbol) 1651) As ImmutableArray(Of ISymbol) 1684) As ImmutableArray(Of ISymbol) 1716) As ImmutableArray(Of ISymbol) 1744) As ImmutableArray(Of ISymbol) 1820useBaseReferenceAccessibility As Boolean) As ImmutableArray(Of Symbol) 1832Return ImmutableArray(Of Symbol).Empty 2006Dim constructors As ImmutableArray(Of MethodSymbol) = ImmutableArray(Of MethodSymbol).Empty 2745Friend MustOverride Function GetDeclaredSymbols(declarationSyntax As FieldDeclarationSyntax, Optional cancellationToken As CancellationToken = Nothing) As ImmutableArray(Of ISymbol) 2818Dim memberGroup As ImmutableArray(Of Symbol) = Nothing 2819Dim containingInvocationInfosymbols As ImmutableArray(Of Symbol) = GetSemanticSymbols(summary, 2830Private Function FindNameParameterInfo(invocationInfosymbols As ImmutableArray(Of Symbol), 2853Dim params As ImmutableArray(Of ParameterSymbol) 3146Private Function GetMemberGroupForNode(node As SyntaxNode, Optional cancellationToken As CancellationToken = Nothing) As ImmutableArray(Of ISymbol) 3161Return ImmutableArray(Of ISymbol).Empty 3212Protected NotOverridable Overrides Function GetMemberGroupCore(node As SyntaxNode, Optional cancellationToken As CancellationToken = Nothing) As ImmutableArray(Of ISymbol) 3216Protected NotOverridable Overrides Function LookupSymbolsCore(position As Integer, container As INamespaceOrTypeSymbol, name As String, includeReducedExtensionMethods As Boolean) As ImmutableArray(Of ISymbol) 3220Protected NotOverridable Overrides Function LookupBaseMembersCore(position As Integer, name As String) As ImmutableArray(Of ISymbol) 3224Protected NotOverridable Overrides Function LookupStaticMembersCore(position As Integer, container As INamespaceOrTypeSymbol, name As String) As ImmutableArray(Of ISymbol) 3228Protected NotOverridable Overrides Function LookupNamespacesAndTypesCore(position As Integer, container As INamespaceOrTypeSymbol, name As String) As ImmutableArray(Of ISymbol) 3232Protected NotOverridable Overrides Function LookupLabelsCore(position As Integer, name As String) As ImmutableArray(Of ISymbol) 3360Protected NotOverridable Overrides Function GetDeclaredSymbolsCore(declaration As SyntaxNode, Optional cancellationToken As CancellationToken = Nothing) As ImmutableArray(Of ISymbol) 3439Private Protected NotOverridable Overrides Function GetImportScopesCore(position As Integer, cancellationToken As CancellationToken) As ImmutableArray(Of IImportScope) 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\SpeculativeSemanticModelWithMemberModel.vb (7)
137Public Overrides Function GetSyntaxDiagnostics(Optional span As TextSpan? = Nothing, Optional cancellationToken As CancellationToken = Nothing) As ImmutableArray(Of Diagnostic) 141Public Overrides Function GetDeclarationDiagnostics(Optional span As TextSpan? = Nothing, Optional cancellationToken As CancellationToken = Nothing) As ImmutableArray(Of Diagnostic) 145Public Overrides Function GetMethodBodyDiagnostics(Optional span As TextSpan? = Nothing, Optional cancellationToken As CancellationToken = Nothing) As ImmutableArray(Of Diagnostic) 149Public Overrides Function GetDiagnostics(Optional span As TextSpan? = Nothing, Optional cancellationToken As CancellationToken = Nothing) As ImmutableArray(Of Diagnostic) 209Friend Overrides Function GetDeclaredSymbols(declarationSyntax As FieldDeclarationSyntax, Optional cancellationToken As CancellationToken = Nothing) As ImmutableArray(Of ISymbol) 225Friend Overrides Function GetAttributeMemberGroup(attribute As AttributeSyntax, Optional cancellationToken As CancellationToken = Nothing) As ImmutableArray(Of Symbol) 241Friend Overrides Function GetExpressionMemberGroup(node As ExpressionSyntax, Optional cancellationToken As CancellationToken = Nothing) As ImmutableArray(Of Symbol)
Compilation\SpeculativeSyntaxTreeSemanticModel.vb (4)
105Friend Overrides Function GetExpressionMemberGroup(node As ExpressionSyntax, Optional cancellationToken As CancellationToken = Nothing) As ImmutableArray(Of Symbol) 113Public Overrides Function GetSyntaxDiagnostics(Optional span As TextSpan? = Nothing, Optional cancellationToken As CancellationToken = Nothing) As ImmutableArray(Of Diagnostic) 117Public Overrides Function GetDeclarationDiagnostics(Optional span As TextSpan? = Nothing, Optional cancellationToken As CancellationToken = Nothing) As ImmutableArray(Of Diagnostic) 121Public Overrides Function GetDiagnostics(Optional span As TextSpan? = Nothing, Optional cancellationToken As CancellationToken = Nothing) As ImmutableArray(Of Diagnostic)
Compilation\SymbolInfo.vb (3)
13Friend Shared Function Create(symbols As ImmutableArray(Of Symbol), resultKind As LookupResultKind) As SymbolInfo 17Friend Shared Function Create(symbols As ImmutableArray(Of ISymbol), resultKind As LookupResultKind) As SymbolInfo 22Friend Shared Function Create(symbols As ImmutableArray(Of ISymbol), reason As CandidateReason) As SymbolInfo
Compilation\SyntaxTreeSemanticModel.vb (26)
93Public Overrides Function GetDiagnostics(Optional span As TextSpan? = Nothing, Optional cancellationToken As CancellationToken = Nothing) As ImmutableArray(Of Diagnostic) 105Public Overrides Function GetSyntaxDiagnostics(Optional span As TextSpan? = Nothing, Optional cancellationToken As CancellationToken = Nothing) As ImmutableArray(Of Diagnostic) 120Public Overrides Function GetDeclarationDiagnostics(Optional span As TextSpan? = Nothing, Optional cancellationToken As CancellationToken = Nothing) As ImmutableArray(Of Diagnostic) 135Public Overrides Function GetMethodBodyDiagnostics(Optional span As TextSpan? = Nothing, Optional cancellationToken As CancellationToken = Nothing) As ImmutableArray(Of Diagnostic) 331Friend Overrides Function GetExpressionMemberGroup(node As ExpressionSyntax, Optional cancellationToken As CancellationToken = Nothing) As ImmutableArray(Of Symbol) 339Return ImmutableArray(Of Symbol).Empty 447Friend Overrides Function GetAttributeMemberGroup(attribute As AttributeSyntax, Optional cancellationToken As CancellationToken = Nothing) As ImmutableArray(Of Symbol) 453Return ImmutableArray(Of Symbol).Empty 475Dim typeParameters As ImmutableArray(Of Symbol) = Nothing 476Dim result As ImmutableArray(Of Symbol) = GetCrefOrNameAttributeReferenceSymbols(node, (options And SymbolInfoOptions.ResolveAliases) = 0, typeParameters) 492result = ImmutableArray(Of Symbol).Empty 497Dim symbols As ImmutableArray(Of Symbol) = RemoveErrorTypesAndDuplicates(symbolsBuilder, options) 509Dim typeParameters As ImmutableArray(Of Symbol) = Nothing 510Dim result As ImmutableArray(Of Symbol) = GetCrefOrNameAttributeReferenceSymbols(name, preserveAlias:=False, typeParameters:=typeParameters) 545<Out> ByRef typeParameters As ImmutableArray(Of Symbol)) As ImmutableArray(Of Symbol) 546typeParameters = ImmutableArray(Of Symbol).Empty 601Dim symbols As ImmutableArray(Of Symbol) 790Dim symbols As ImmutableArray(Of Symbol) = RemoveErrorTypesAndDuplicates(implementedMemberBuilder, options) 804Dim symbols As ImmutableArray(Of Symbol) = RemoveErrorTypesAndDuplicates(builder, options) 818Dim symbols As ImmutableArray(Of Symbol) = RemoveErrorTypesAndDuplicates(builder, options) 832Dim symbols As ImmutableArray(Of Symbol) = RemoveErrorTypesAndDuplicates(builder, options) 1141Private Function GetTypeParameterSymbol(parameters As ImmutableArray(Of TypeParameterSymbol), parameter As TypeParameterSyntax) As TypeParameterSymbol 1353Friend Overrides Function GetDeclaredSymbols(declarationSyntax As FieldDeclarationSyntax, Optional cancellationToken As CancellationToken = Nothing) As ImmutableArray(Of ISymbol) 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 (8)
31Public ReadOnly StateMachineStatesDebugInfo As ImmutableArray(Of StateMachineStateDebugInfo) 36stateMachineStatesDebugInfo As ImmutableArray(Of StateMachineStateDebugInfo)) 77Private _initializeComponentCallTree As Dictionary(Of MethodSymbol, ImmutableArray(Of MethodSymbol)) = Nothing 104stateMachineStatesDebugInfo As ImmutableArray(Of StateMachineStateDebugInfo)) 122AddSynthesizedMethod(wrapper, body, stateMachineType:=Nothing, ImmutableArray(Of StateMachineStateDebugInfo).Empty) 143Public Sub AddToInitializeComponentCallTree(method As MethodSymbol, callees As ImmutableArray(Of MethodSymbol)) 152_initializeComponentCallTree = New Dictionary(Of MethodSymbol, ImmutableArray(Of MethodSymbol))(ReferenceEqualityComparer.Instance) 172Dim callees As ImmutableArray(Of MethodSymbol) = Nothing
Compilation\VisualBasicCompilation.vb (58)
88Private ReadOnly _syntaxTrees As ImmutableArray(Of SyntaxTree) 96Private _lazyAllSyntaxTrees As ImmutableArray(Of SyntaxTree) 112Private _lazyImportClauseDependencies As ConcurrentDictionary(Of (SyntaxTree As SyntaxTree, ImportsClausePosition As Integer), ImmutableArray(Of AssemblySymbol)) 120Private _lazyClsComplianceDiagnostics As ImmutableArray(Of Diagnostic) 121Private _lazyClsComplianceDependencies As ImmutableArray(Of AssemblySymbol) 140Private ReadOnly _embeddedTrees As ImmutableArray(Of EmbeddedTreeAndDeclaration) 393ImmutableArray(Of SyntaxTree).Empty, 419references As ImmutableArray(Of MetadataReference), 420syntaxTrees As ImmutableArray(Of SyntaxTree), 423embeddedTrees As ImmutableArray(Of EmbeddedTreeAndDeclaration), 486Private Function CommonLanguageVersion(syntaxTrees As ImmutableArray(Of SyntaxTree)) As LanguageVersion 526syntaxTrees As ImmutableArray(Of SyntaxTree), 878Public Shadows ReadOnly Property SyntaxTrees As ImmutableArray(Of SyntaxTree) 888Friend Shadows ReadOnly Property AllSyntaxTrees As ImmutableArray(Of SyntaxTree) 1064Return UpdateSyntaxTrees(ImmutableArray(Of SyntaxTree).Empty, 1128Private Shared Function CreateEmbeddedTrees(compReference As Lazy(Of VisualBasicCompilation)) As ImmutableArray(Of EmbeddedTreeAndDeclaration) 1184embeddedTrees As ImmutableArray(Of EmbeddedTreeAndDeclaration) 1195embeddedTrees As ImmutableArray(Of EmbeddedTreeAndDeclaration) 1297Public Overrides ReadOnly Property DirectiveReferences As ImmutableArray(Of MetadataReference) 1362Public Overrides Function ToMetadataReference(Optional aliases As ImmutableArray(Of String) = Nothing, Optional embedInteropTypes As Boolean = False) As CompilationReference 1504Return New EntryPoint(Nothing, ImmutableArray(Of Diagnostic).Empty) 1508Dim diagnostics As ImmutableArray(Of Diagnostic) = Nothing 1516Private Function FindEntryPoint(cancellationToken As CancellationToken, ByRef sealedDiagnostics As ImmutableArray(Of Diagnostic)) As MethodSymbol 1671Public ReadOnly Diagnostics As ImmutableArray(Of Diagnostic) 1673Public Sub New(methodSymbol As MethodSymbol, diagnostics As ImmutableArray(Of Diagnostic)) 1682Friend ReadOnly Property MemberImports As ImmutableArray(Of NamespaceOrTypeSymbol) 1691Friend ReadOnly Property AliasImports As ImmutableArray(Of AliasSymbol) 1761Dim dependencies As ImmutableArray(Of AssemblySymbol) = Nothing 1820Friend Sub RecordImportsClauseDependencies(syntaxTree As SyntaxTree, importsClausePosition As Integer, dependencies As ImmutableArray(Of AssemblySymbol)) 1833Public ReadOnly ClauseSpans As ImmutableArray(Of TextSpan) 2080Public Overrides Function GetDiagnostics(Optional cancellationToken As CancellationToken = Nothing) As ImmutableArray(Of Diagnostic) 2089Public Overrides Function GetParseDiagnostics(Optional cancellationToken As CancellationToken = Nothing) As ImmutableArray(Of Diagnostic) 2099Public Overrides Function GetDeclarationDiagnostics(Optional cancellationToken As CancellationToken = Nothing) As ImmutableArray(Of Diagnostic) 2109Public Overrides Function GetMethodBodyDiagnostics(Optional cancellationToken As CancellationToken = Nothing) As ImmutableArray(Of Diagnostic) 2122Friend Overloads Function GetDiagnostics(stage As CompilationStage, Optional includeEarlierStages As Boolean = True, Optional cancellationToken As CancellationToken = Nothing) As ImmutableArray(Of Diagnostic) 2245Optional cancellationToken As CancellationToken = Nothing) As ImmutableArray(Of Diagnostic) 2321Friend Overrides Function CreateAnalyzerDriver(analyzers As ImmutableArray(Of DiagnosticAnalyzer), analyzerManager As AnalyzerManager, severityFilter As SeverityFilter) As AnalyzerDriver 2388ImmutableArray(Of NamedTypeSymbol).Empty, 2400additionalTypes As ImmutableArray(Of NamedTypeSymbol), 2574Dim modules As ImmutableArray(Of ModuleSymbol) = SourceAssembly.Modules 2667Private Shared Function CheckSumMatches(bytesText As String, bytes As ImmutableArray(Of Byte)) As Boolean 2685Private Shared Function MakeCheckSumBytes(bytesText As String) As ImmutableArray(Of Byte) 2755Protected Overrides ReadOnly Property CommonSyntaxTrees As ImmutableArray(Of SyntaxTree) 2855Protected Overrides Function CommonCreateTupleTypeSymbol(elementTypes As ImmutableArray(Of ITypeSymbol), 2856elementNames As ImmutableArray(Of String), 2857elementLocations As ImmutableArray(Of Location), 2858elementNullableAnnotations As ImmutableArray(Of NullableAnnotation)) As INamedTypeSymbol 2874elementNames As ImmutableArray(Of String), 2875elementLocations As ImmutableArray(Of Location), 2876elementNullableAnnotations As ImmutableArray(Of NullableAnnotation)) As INamedTypeSymbol 2903parameterTypes As ImmutableArray(Of ITypeSymbol), 2904parameterRefKinds As ImmutableArray(Of RefKind), 2906callingConventionTypes As ImmutableArray(Of INamedTypeSymbol)) As IFunctionPointerTypeSymbol 2915memberTypes As ImmutableArray(Of ITypeSymbol), 2916memberNames As ImmutableArray(Of String), 2917memberLocations As ImmutableArray(Of Location), 2918memberIsReadOnly As ImmutableArray(Of Boolean), 2919memberNullableAnnotations As ImmutableArray(Of CodeAnalysis.NullableAnnotation)) As INamedTypeSymbol
Compilation\VisualBasicCompilationReference.vb (1)
47Public Sub New(compilation As VisualBasicCompilation, Optional aliases As ImmutableArray(Of String) = Nothing, Optional embedInteropTypes As Boolean = False)
Compilation\VisualBasicCompilerDiagnosticAnalyzer.vb (1)
22Friend Overrides Function GetSupportedErrorCodes() As ImmutableArray(Of Integer)
Compilation\VisualBasicDiagnosticFilter.vb (1)
129customTags As ImmutableArray(Of String),
Declarations\Declaration.vb (2)
44Public ReadOnly Property Children As ImmutableArray(Of Declaration) 50Protected MustOverride Function GetDeclarationChildren() As ImmutableArray(Of Declaration)
Declarations\DeclarationTable.Cache.vb (2)
23Friend ReadOnly ReferenceDirectives As Lazy(Of ImmutableArray(Of ReferenceDirective)) 32Me.ReferenceDirectives = New Lazy(Of ImmutableArray(Of ReferenceDirective))(
Declarations\DeclarationTable.vb (4)
56Private _lazyAllRootDeclarations As ImmutableArray(Of RootSingleNamespaceDeclaration) 102Public Function AllRootNamespaces() As ImmutableArray(Of RootSingleNamespaceDeclaration) 133Private Function SelectManyFromOlderDeclarationsNoEmbedded(Of T)(selector As Func(Of RootSingleNamespaceDeclaration, ImmutableArray(Of T))) As ImmutableArray(Of T)
Declarations\DeclarationTreeBuilder.vb (22)
16Private ReadOnly _rootNamespace As ImmutableArray(Of String) 27Public Shared Function ForTree(tree As SyntaxTree, rootNamespace As ImmutableArray(Of String), scriptClassName As String, isSubmission As Boolean) As RootSingleNamespaceDeclaration 33Private Sub New(syntaxTree As SyntaxTree, rootNamespace As ImmutableArray(Of String), scriptClassName As String, isSubmission As Boolean) 44Private Function VisitNamespaceChildren(node As VisualBasicSyntaxNode, members As SyntaxList(Of StatementSyntax)) As ImmutableArray(Of SingleNamespaceOrTypeDeclaration) 101Private Shared Function GetReferenceDirectives(compilationUnit As CompilationUnitSyntax) As ImmutableArray(Of ReferenceDirective) 105Return ImmutableArray(Of ReferenceDirective).Empty 115Private Function CreateImplicitClass(parent As VisualBasicSyntaxNode, memberNames As ImmutableHashSet(Of String), children As ImmutableArray(Of SingleTypeDeclaration), declFlags As SingleTypeDeclaration.TypeDeclarationFlags) As SingleNamespaceOrTypeDeclaration 131Private Function CreateScriptClass(parent As VisualBasicSyntaxNode, children As ImmutableArray(Of SingleTypeDeclaration), memberNames As ImmutableHashSet(Of String), declFlags As SingleTypeDeclaration.TypeDeclarationFlags) As SingleNamespaceOrTypeDeclaration 165Dim children As ImmutableArray(Of SingleNamespaceOrTypeDeclaration) 166Dim globalChildren As ImmutableArray(Of SingleNamespaceOrTypeDeclaration) = Nothing 167Dim nonGlobal As ImmutableArray(Of SingleNamespaceOrTypeDeclaration) = Nothing 174Dim referenceDirectives As ImmutableArray(Of ReferenceDirective) 201referenceDirectives = ImmutableArray(Of ReferenceDirective).Empty 257Private Sub FindGlobalDeclarations(declarations As ImmutableArray(Of SingleNamespaceOrTypeDeclaration), 259ByRef globalDeclarations As ImmutableArray(Of SingleNamespaceOrTypeDeclaration), 260ByRef nonGlobal As ImmutableArray(Of SingleNamespaceOrTypeDeclaration)) 294children As ImmutableArray(Of SingleNamespaceOrTypeDeclaration)) As SingleNamespaceDeclaration 453Dim children = ImmutableArray(Of SingleTypeDeclaration).Empty 582Private Function VisitTypeChildren(members As SyntaxList(Of StatementSyntax)) As ImmutableArray(Of SingleTypeDeclaration) 584Return ImmutableArray(Of SingleTypeDeclaration).Empty 758children:=ImmutableArray(Of SingleTypeDeclaration).Empty, 784children:=ImmutableArray(Of SingleTypeDeclaration).Empty,
Declarations\GlobalNamespaceDeclaration.vb (1)
29children As ImmutableArray(Of SingleNamespaceOrTypeDeclaration))
Declarations\MergedNamespaceDeclaration.vb (10)
14Private ReadOnly _declarations As ImmutableArray(Of SingleNamespaceDeclaration) 16Private _children As ImmutableArray(Of MergedNamespaceOrTypeDeclaration) 18Private Sub New(declarations As ImmutableArray(Of SingleNamespaceDeclaration)) 41Public ReadOnly Property Declarations As ImmutableArray(Of SingleNamespaceDeclaration) 56Public ReadOnly Property NameLocations As ImmutableArray(Of Location) 61Return ImmutableArray(Of Location).Empty 79Public ReadOnly Property SyntaxReferences As ImmutableArray(Of SyntaxReference) 93Protected Overrides Function GetDeclarationChildren() As ImmutableArray(Of Declaration) 97Private Function MakeChildren() As ImmutableArray(Of MergedNamespaceOrTypeDeclaration) 151Public Overloads ReadOnly Property Children As ImmutableArray(Of MergedNamespaceOrTypeDeclaration)
Declarations\MergedTypeDeclaration.vb (9)
23Private _declarations As ImmutableArray(Of SingleTypeDeclaration) 27Public Property Declarations As ImmutableArray(Of SingleTypeDeclaration) 31Private Set(value As ImmutableArray(Of SingleTypeDeclaration)) 36Friend Sub New(declarations As ImmutableArray(Of SingleTypeDeclaration)) 41Public ReadOnly Property SyntaxReferences As ImmutableArray(Of SyntaxReference) 67Public Function GetAttributeDeclarations(Optional quickAttributes As QuickAttributes? = Nothing) As ImmutableArray(Of SyntaxList(Of AttributeListSyntax)) 119Public ReadOnly Property NameLocations As ImmutableArray(Of Location) 162Public Overloads ReadOnly Property Children As ImmutableArray(Of MergedTypeDeclaration) 171Protected Overrides Function GetDeclarationChildren() As ImmutableArray(Of Declaration)
Declarations\RootSingleNamespaceDeclaration.vb (4)
11Private ReadOnly _referenceDirectives As ImmutableArray(Of ReferenceDirective) 14Public ReadOnly Property ReferenceDirectives As ImmutableArray(Of ReferenceDirective) 28children As ImmutableArray(Of SingleNamespaceOrTypeDeclaration), 29referenceDirectives As ImmutableArray(Of ReferenceDirective),
Declarations\SingleNamespaceDeclaration.vb (4)
17Private ReadOnly _children As ImmutableArray(Of SingleNamespaceOrTypeDeclaration) 25children As ImmutableArray(Of SingleNamespaceOrTypeDeclaration), 46Protected Overrides Function GetNamespaceOrTypeDeclarationChildren() As ImmutableArray(Of SingleNamespaceOrTypeDeclaration) 83Public Overloads Shared Function BestName(Of T As SingleNamespaceDeclaration)(singleDeclarations As ImmutableArray(Of T), ByRef multipleSpellings As Boolean) As String
Declarations\SingleNamespaceOrTypeDeclaration.vb (5)
26Protected MustOverride Function GetNamespaceOrTypeDeclarationChildren() As ImmutableArray(Of SingleNamespaceOrTypeDeclaration) 28Protected Overrides Function GetDeclarationChildren() As ImmutableArray(Of Declaration) 32Public Overloads ReadOnly Property Children As ImmutableArray(Of SingleNamespaceOrTypeDeclaration) 48Public Shared Function BestName(Of T As SingleNamespaceOrTypeDeclaration)(singleDeclarations As ImmutableArray(Of T), ByRef multipleSpellings As Boolean) As String 71Public Shared Function BestName(Of T As SingleNamespaceOrTypeDeclaration)(singleDeclarations As ImmutableArray(Of T)) As String
Declarations\SingleTypeDeclaration.vb (4)
12Private ReadOnly _children As ImmutableArray(Of SingleTypeDeclaration) 40children As ImmutableArray(Of SingleTypeDeclaration), 91Public Overloads ReadOnly Property Children As ImmutableArray(Of SingleTypeDeclaration) 105Protected Overrides Function GetNamespaceOrTypeDeclarationChildren() As ImmutableArray(Of SingleNamespaceOrTypeDeclaration)
DocumentationComments\DocumentationCommentIDVisitor.PartVisitor.vb (1)
57Private Sub VisitParameters(parameters As ImmutableArray(Of ParameterSymbol), builder As StringBuilder)
Emit\ArrayTypeSymbolAdapter.vb (3)
21Dim customModifiers As ImmutableArray(Of CustomModifier) = AdaptedArrayTypeSymbol.CustomModifiers 37Private ReadOnly Property IArrayTypeReferenceLowerBounds As ImmutableArray(Of Integer) Implements Cci.IArrayTypeReference.LowerBounds 49Private ReadOnly Property IArrayTypeReferenceSizes As ImmutableArray(Of Integer) Implements Cci.IArrayTypeReference.Sizes
Emit\AttributeDataAdapter.vb (3)
16Private Function GetArguments1(context As EmitContext) As ImmutableArray(Of Cci.IMetadataExpression) Implements Cci.ICustomAttribute.GetArguments 38Private Function GetNamedArguments1(context As EmitContext) As ImmutableArray(Of Cci.IMetadataNamedArgument) Implements Cci.ICustomAttribute.GetNamedArguments 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 (3)
54MyBase.New(sourceAssembly, emitOptions, outputKind, serializationProperties, manifestResources, additionalTypes:=ImmutableArray(Of NamedTypeSymbol).Empty) 172Return New AnonymousTypeKey(ImmutableArray(Of AnonymousTypeKeyField).Empty) 240Friend Overrides Function GetPreviousAnonymousTypes() As ImmutableArray(Of AnonymousTypeKey)
Emit\EditAndContinue\VisualBasicDefinitionMap.vb (4)
100localSlotDebugInfo As ImmutableArray(Of LocalSlotDebugInfo), 158Protected Overrides Function GetLocalSlotMapFromMetadata(handle As StandaloneSignatureHandle, debugInfo As EditAndContinueMethodDebugInformation) As ImmutableArray(Of EncLocalInfo) 174slotMetadata As ImmutableArray(Of LocalInfo(Of TypeSymbol))) As ImmutableArray(Of EncLocalInfo)
Emit\EditAndContinue\VisualBasicSymbolMatcher.vb (18)
28otherSynthesizedMembersOpt As IReadOnlyDictionary(Of ISymbolInternal, ImmutableArray(Of ISymbolInternal)), 29otherDeletedMembersOpt As IReadOnlyDictionary(Of ISymbolInternal, ImmutableArray(Of ISymbolInternal))) 80Private ReadOnly _otherSynthesizedMembersOpt As IReadOnlyDictionary(Of ISymbolInternal, ImmutableArray(Of ISymbolInternal)) 81Private ReadOnly _otherDeletedMembersOpt As IReadOnlyDictionary(Of ISymbolInternal, ImmutableArray(Of ISymbolInternal)) 87Private ReadOnly _otherMembers As ConcurrentDictionary(Of ISymbolInternal, IReadOnlyDictionary(Of String, ImmutableArray(Of ISymbolInternal))) 92otherSynthesizedMembersOpt As IReadOnlyDictionary(Of ISymbolInternal, ImmutableArray(Of ISymbolInternal)), 93otherDeletedMembers As IReadOnlyDictionary(Of ISymbolInternal, ImmutableArray(Of ISymbolInternal)), 103_otherMembers = New ConcurrentDictionary(Of ISymbolInternal, IReadOnlyDictionary(Of String, ImmutableArray(Of ISymbolInternal)))(ReferenceEqualityComparer.Instance) 249Dim otherTypeParameters As ImmutableArray(Of TypeParameterSymbol) = otherDef.GetAllTypeParameters() 327Dim otherTypeParameters As ImmutableArray(Of TypeParameterSymbol) 344Private Function VisitCustomModifiers(modifiers As ImmutableArray(Of CustomModifier)) As ImmutableArray(Of CustomModifier) 382Dim otherMembers As ImmutableArray(Of ISymbolInternal) = Nothing 505Private Function GetAllEmittedMembers(symbol As ISymbolInternal) As IReadOnlyDictionary(Of String, ImmutableArray(Of ISymbolInternal)) 519Dim synthesizedMembers As ImmutableArray(Of ISymbolInternal) = Nothing 524Dim deletedMembers As ImmutableArray(Of ISymbolInternal) = Nothing 618Private Function VisitCustomModifiers(modifiers As ImmutableArray(Of CustomModifier)) As ImmutableArray(Of CustomModifier)
Emit\FieldSymbolAdapter.vb (5)
41Private ReadOnly Property IFieldReferenceRefCustomModifiers As ImmutableArray(Of ICustomModifier) Implements IFieldReference.RefCustomModifiers 43Return ImmutableArray(Of ICustomModifier).Empty 133Private ReadOnly Property IFieldDefinitionFieldMapping As ImmutableArray(Of Byte) Implements IFieldDefinition.MappedData 205Private ReadOnly Property IFieldDefinitionMarshallingDescriptor As ImmutableArray(Of Byte) Implements IFieldDefinition.MarshallingDescriptor 281Friend Overridable ReadOnly Property MarshallingDescriptor As ImmutableArray(Of Byte)
Emit\GenericTypeInstanceReference.vb (1)
39Private Function IGenericTypeInstanceReferenceGetGenericArguments(context As EmitContext) As ImmutableArray(Of Cci.ITypeReference) Implements Cci.IGenericTypeInstanceReference.GetGenericArguments
Emit\MethodReference.vb (5)
49Private ReadOnly Property IMethodReferenceExtraParameters As ImmutableArray(Of Cci.IParameterTypeInformation) Implements Cci.IMethodReference.ExtraParameters 51Return ImmutableArray(Of Cci.IParameterTypeInformation).Empty 61Private Function ISignatureGetParameters(context As EmitContext) As ImmutableArray(Of Cci.IParameterTypeInformation) Implements Cci.ISignature.GetParameters 67Private ReadOnly Property ISignatureReturnValueCustomModifiers As ImmutableArray(Of Cci.ICustomModifier) Implements Cci.ISignature.ReturnValueCustomModifiers 73Private ReadOnly Property ISignatureRefCustomModifiers As ImmutableArray(Of Cci.ICustomModifier) Implements Cci.ISignature.RefCustomModifiers
Emit\MethodSymbolAdapter.vb (10)
142Private ReadOnly Property IMethodReferenceExtraParameters As ImmutableArray(Of Cci.IParameterTypeInformation) Implements Cci.IMethodReference.ExtraParameters 144Return ImmutableArray(Of Cci.IParameterTypeInformation).Empty 154Private Function ISignatureGetParameters(context As EmitContext) As ImmutableArray(Of Cci.IParameterTypeInformation) Implements Cci.ISignature.GetParameters 171Private Function EnumerateDefinitionParameters() As ImmutableArray(Of Cci.IParameterTypeInformation) 180Private ReadOnly Property ISignatureReturnValueCustomModifiers As ImmutableArray(Of Cci.ICustomModifier) Implements Cci.ISignature.ReturnValueCustomModifiers 186Private ReadOnly Property ISignatureRefCustomModifiers As ImmutableArray(Of Cci.ICustomModifier) Implements Cci.ISignature.RefCustomModifiers 387Private ReadOnly Property IMethodDefinitionParameters As ImmutableArray(Of Cci.IParameterDefinition) Implements Cci.IMethodDefinition.Parameters 413Dim userDefined As ImmutableArray(Of VisualBasicAttributeData) 438Private ReadOnly Property IMethodDefinitionReturnValueMarshallingDescriptor As ImmutableArray(Of Byte) Implements Cci.IMethodDefinition.ReturnValueMarshallingDescriptor 573Friend Overridable ReadOnly Property ReturnValueMarshallingDescriptor As ImmutableArray(Of Byte)
Emit\ModuleReference.vb (1)
48Private Function IFileReferenceGetHashValue(algorithmId As AssemblyHashAlgorithm) As ImmutableArray(Of Byte) Implements Cci.IFileReference.GetHashValue
Emit\NamedTypeSymbolAdapter.vb (2)
831Private Function IGenericTypeInstanceReferenceGetGenericArguments(context As EmitContext) As ImmutableArray(Of ITypeReference) Implements IGenericTypeInstanceReference.GetGenericArguments 974Friend Overridable Function GetMembersForCci() As ImmutableArray(Of Symbol)
Emit\NoPia\EmbeddedField.vb (1)
85Protected Overrides ReadOnly Property MarshallingDescriptor As ImmutableArray(Of Byte)
Emit\NoPia\EmbeddedMethod.vb (3)
33Protected Overrides Function GetParameters() As ImmutableArray(Of EmbeddedParameter) 37Protected Overrides Function GetTypeParameters() As ImmutableArray(Of EmbeddedTypeParameter) 129Protected Overrides ReadOnly Property ReturnValueMarshallingDescriptor As ImmutableArray(Of Byte)
Emit\NoPia\EmbeddedParameter.vb (1)
68Protected Overrides ReadOnly Property MarshallingDescriptor As ImmutableArray(Of Byte)
Emit\NoPia\EmbeddedProperty.vb (1)
27Protected Overrides Function GetParameters() As ImmutableArray(Of EmbeddedParameter)
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 (9)
88Friend Overrides Function CreateSynthesizedAttribute(constructor As WellKnownMember, constructorArguments As ImmutableArray(Of TypedConstant), namedArguments As ImmutableArray(Of KeyValuePair(Of String, TypedConstant)), syntaxNodeOpt As SyntaxNode, diagnostics As DiagnosticBag) As VisualBasicAttributeData 101ImmutableArray(Of KeyValuePair(Of String, TypedConstant)).Empty) 110ImmutableArray(Of KeyValuePair(Of String, TypedConstant)).Empty) 118Friend Overrides Function TryGetAttributeArguments(attrData As VisualBasicAttributeData, ByRef constructorArguments As ImmutableArray(Of TypedConstant), ByRef namedArguments As ImmutableArray(Of KeyValuePair(Of String, TypedConstant)), syntaxNodeOpt As SyntaxNode, diagnostics As DiagnosticBag) As Boolean 145Protected Overrides Sub OnGetTypesCompleted(types As ImmutableArray(Of EmbeddedType), diagnostics As DiagnosticBag) 532Friend Shared Function EmbedParameters(containingPropertyOrMethod As CommonEmbeddedMember, underlyingParameters As ImmutableArray(Of ParameterSymbol)) As ImmutableArray(Of EmbeddedParameter)
Emit\ParameterSymbolAdapter.vb (4)
27Private ReadOnly Property IParameterTypeInformationCustomModifiers As ImmutableArray(Of Cci.ICustomModifier) Implements IParameterTypeInformation.CustomModifiers 33Private ReadOnly Property IParameterTypeInformationRefCustomModifiers As ImmutableArray(Of Cci.ICustomModifier) Implements IParameterTypeInformation.RefCustomModifiers 112Private ReadOnly Property IParameterDefinitionMarshallingDescriptor As ImmutableArray(Of Byte) Implements IParameterDefinition.MarshallingDescriptor 204Friend Overridable ReadOnly Property MarshallingDescriptor As ImmutableArray(Of Byte)
Emit\ParameterTypeInformation.vb (2)
21Private ReadOnly Property IParameterTypeInformationCustomModifiers As ImmutableArray(Of Cci.ICustomModifier) Implements Cci.IParameterTypeInformation.CustomModifiers 33Private ReadOnly Property IParameterTypeInformationRefCustomModifiers As ImmutableArray(Of Cci.ICustomModifier) Implements Cci.IParameterTypeInformation.RefCustomModifiers
Emit\PEAssemblyBuilder.vb (9)
21Private ReadOnly _additionalTypes As ImmutableArray(Of NamedTypeSymbol) 22Private _lazyFiles As ImmutableArray(Of Cci.IFileReference) 25Private _lazyFilesWithoutManifestResources As ImmutableArray(Of Cci.IFileReference) 41additionalTypes As ImmutableArray(Of NamedTypeSymbol)) 64Public Overrides Function GetAdditionalTopLevelTypes() As ImmutableArray(Of NamedTypeSymbol) 68Public Overrides Function GetEmbeddedTypes(diagnostics As DiagnosticBag) As ImmutableArray(Of NamedTypeSymbol) 69Return ImmutableArray(Of NamedTypeSymbol).Empty 80Private Function GetFilesCore(context As EmitContext, ByRef lazyFiles As ImmutableArray(Of Cci.IFileReference)) As IEnumerable(Of Cci.IFileReference) 178Optional additionalTypes As ImmutableArray(Of NamedTypeSymbol) = Nothing)
Emit\PEModuleBuilder.vb (12)
28Private _lazyExportedTypes As ImmutableArray(Of Cci.ExportedType) 29Private _lazyTranslatedImports As ImmutableArray(Of Cci.UsedNamespaceOrType) 99Public NotOverridable Overrides Function GetImports() As ImmutableArray(Of Cci.UsedNamespaceOrType) 130Dim modules As ImmutableArray(Of ModuleSymbol) = SourceModule.ContainingAssembly.Modules 328Friend Overridable Function GetPreviousAnonymousTypes() As ImmutableArray(Of AnonymousTypeKey) 329Return ImmutableArray(Of AnonymousTypeKey).Empty 374Dim members As ImmutableArray(Of Symbol) = sym.GetMembers() 385Public NotOverridable Overrides Function GetExportedTypes(diagnostics As DiagnosticBag) As ImmutableArray(Of Cci.ExportedType) 403Private Function CalculateExportedTypes() As ImmutableArray(Of Cci.ExportedType) 434Private Sub ReportExportedTypeNameCollisions(exportedTypes As ImmutableArray(Of Cci.ExportedType), diagnostics As DiagnosticBag) 570Dim nested As ImmutableArray(Of NamedTypeSymbol) = entry.type.GetTypeMembers() ' Ordered. 644Public Overrides Iterator Function GetTypeToDebugDocumentMap(context As EmitContext) As IEnumerable(Of (Cci.ITypeDefinition, ImmutableArray(Of Cci.DebugSourceDocument)))
Emit\PropertySymbolAdapter.vb (4)
75Private ReadOnly Property IPropertyDefinitionParameters As ImmutableArray(Of IParameterDefinition) Implements IPropertyDefinition.Parameters 117Private Function ISignatureGetParameters(context As EmitContext) As ImmutableArray(Of IParameterTypeInformation) Implements ISignature.GetParameters 126Private ReadOnly Property ISignatureReturnValueCustomModifiers As ImmutableArray(Of Cci.ICustomModifier) Implements ISignature.ReturnValueCustomModifiers 133Private ReadOnly Property ISignatureRefCustomModifiers As ImmutableArray(Of Cci.ICustomModifier) Implements ISignature.RefCustomModifiers
Emit\SpecializedFieldReference.vb (2)
64Private ReadOnly Property IFieldReferenceRefCustomModifiers As ImmutableArray(Of Cci.ICustomModifier) Implements Cci.IFieldReference.RefCustomModifiers 66Return ImmutableArray(Of Cci.ICustomModifier).Empty
Emit\SpecializedGenericNestedTypeInstanceReference.vb (1)
34Private Function IGenericTypeInstanceReferenceGetGenericArguments(context As EmitContext) As ImmutableArray(Of Cci.ITypeReference) Implements Cci.IGenericTypeInstanceReference.GetGenericArguments
Emit\SymbolAdapter.vb (2)
90Friend Function GetCustomAttributesToEmit(userDefined As ImmutableArray(Of VisualBasicAttributeData), 103Private Iterator Function GetCustomAttributesToEmitIterator(userDefined As ImmutableArray(Of VisualBasicAttributeData),
Emit\SymbolTranslator.vb (8)
20Private ReadOnly _translatedImportsMap As New ConcurrentDictionary(Of SourceFile, ImmutableArray(Of Cci.UsedNamespaceOrType))(ReferenceEqualityComparer.Instance) 404Friend Overloads Function Translate(params As ImmutableArray(Of ParameterSymbol)) As ImmutableArray(Of Microsoft.Cci.IParameterTypeInformation) 438Private Function TranslateAll(params As ImmutableArray(Of ParameterSymbol)) As ImmutableArray(Of Microsoft.Cci.IParameterTypeInformation) 470Friend Function TryGetTranslatedImports(file As SourceFile, <Runtime.InteropServices.Out> ByRef [imports] As ImmutableArray(Of Cci.UsedNamespaceOrType)) As Boolean 474Friend Function GetOrAddTranslatedImports(file As SourceFile, [imports] As ImmutableArray(Of Cci.UsedNamespaceOrType)) As ImmutableArray(Of Cci.UsedNamespaceOrType)
Emit\SynthesizedNamespaceSymbol.vb (16)
38Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 40Return ImmutableArray(Of Location).Empty 44Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 46Return ImmutableArray(Of SyntaxReference).Empty 62Friend Overrides ReadOnly Property TypesToCheckForExtensionMethods As ImmutableArray(Of NamedTypeSymbol) 64Return ImmutableArray(Of NamedTypeSymbol).Empty 74Public Overrides Function GetModuleMembers() As ImmutableArray(Of NamedTypeSymbol) 75Return ImmutableArray(Of NamedTypeSymbol).Empty 78Public Overrides Function GetMembers() As ImmutableArray(Of Symbol) 79Return ImmutableArray(Of Symbol).Empty 82Public Overrides Function GetMembers(name As String) As ImmutableArray(Of Symbol) 83Return ImmutableArray(Of Symbol).Empty 86Public Overrides Function GetTypeMembers() As ImmutableArray(Of NamedTypeSymbol) 87Return ImmutableArray(Of NamedTypeSymbol).Empty 90Public Overrides Function GetTypeMembers(name As String) As ImmutableArray(Of NamedTypeSymbol) 91Return ImmutableArray(Of NamedTypeSymbol).Empty
Emit\SynthesizedPrivateImplementationDetailsSharedConstructor.vb (1)
86factory.Array(payloadArrayType.ElementType, ImmutableArray.Create(factory.MaximumMethodDefIndex()), ImmutableArray(Of BoundExpression).Empty)))
Errors\CustomDiagnostics.vb (3)
73Private ReadOnly _symbols As ImmutableArray(Of Symbol) 76Friend Sub New(errid As ERRID, symbols As ImmutableArray(Of Symbol), ParamArray args As Object()) 81Public ReadOnly Property AmbiguousSymbols As ImmutableArray(Of Symbol)
Generated\BoundNodes.xml.Generated.vb (292)
238Public Sub New(syntax As SyntaxNode, arguments As ImmutableArray(Of TypeSymbol), hasErrors As Boolean) 246Public Sub New(syntax As SyntaxNode, arguments As ImmutableArray(Of TypeSymbol)) 255Private ReadOnly _Arguments As ImmutableArray(Of TypeSymbol) 256Public ReadOnly Property Arguments As ImmutableArray(Of TypeSymbol) 267Public Function Update(arguments As ImmutableArray(Of TypeSymbol)) As BoundTypeArguments 586Public Sub New(syntax As SyntaxNode, resultKind As LookupResultKind, symbols As ImmutableArray(Of Symbol), childBoundNodes As ImmutableArray(Of BoundExpression), type As TypeSymbol, Optional hasErrors As Boolean = False) 610Private ReadOnly _Symbols As ImmutableArray(Of Symbol) 611Public ReadOnly Property Symbols As ImmutableArray(Of Symbol) 617Private ReadOnly _ChildBoundNodes As ImmutableArray(Of BoundExpression) 618Public ReadOnly Property ChildBoundNodes As ImmutableArray(Of BoundExpression) 629Public Function Update(resultKind As LookupResultKind, symbols As ImmutableArray(Of Symbol), childBoundNodes As ImmutableArray(Of BoundExpression), type As TypeSymbol) As BoundBadExpression 642Public Sub New(syntax As SyntaxNode, childBoundNodes As ImmutableArray(Of BoundNode), Optional hasErrors As Boolean = False) 651Private ReadOnly _ChildBoundNodes As ImmutableArray(Of BoundNode) 652Public ReadOnly Property ChildBoundNodes As ImmutableArray(Of BoundNode) 663Public Function Update(childBoundNodes As ImmutableArray(Of BoundNode)) As BoundBadStatement 757Public Sub New(syntax As SyntaxNode, expression As BoundExpression, indices As ImmutableArray(Of BoundExpression), isLValue As Boolean, type As TypeSymbol, Optional hasErrors As Boolean = False) 782Private ReadOnly _Indices As ImmutableArray(Of BoundExpression) 783Public ReadOnly Property Indices As ImmutableArray(Of BoundExpression) 801Public Function Update(expression As BoundExpression, indices As ImmutableArray(Of BoundExpression), isLValue As Boolean, type As TypeSymbol) As BoundArrayAccess 2220Public Sub New(syntax As SyntaxNode, elementPlaceholders As ImmutableArray(Of BoundRValuePlaceholder), convertedElements As ImmutableArray(Of BoundExpression), Optional hasErrors As Boolean = False) 2236Private ReadOnly _ElementPlaceholders As ImmutableArray(Of BoundRValuePlaceholder) 2237Public ReadOnly Property ElementPlaceholders As ImmutableArray(Of BoundRValuePlaceholder) 2243Private ReadOnly _ConvertedElements As ImmutableArray(Of BoundExpression) 2244Public ReadOnly Property ConvertedElements As ImmutableArray(Of BoundExpression) 2255Public Function Update(elementPlaceholders As ImmutableArray(Of BoundRValuePlaceholder), convertedElements As ImmutableArray(Of BoundExpression)) As BoundConvertedTupleElements 2682Public Sub New(syntax As SyntaxNode, typeArgumentsOpt As BoundTypeArguments, methods As ImmutableArray(Of MethodSymbol), pendingExtensionMethodsOpt As ExtensionMethodGroup, resultKind As LookupResultKind, receiverOpt As BoundExpression, qualificationKind As QualificationKind, Optional hasErrors As Boolean = False) 2701Private ReadOnly _Methods As ImmutableArray(Of MethodSymbol) 2702Public ReadOnly Property Methods As ImmutableArray(Of MethodSymbol) 2727Public Function Update(typeArgumentsOpt As BoundTypeArguments, methods As ImmutableArray(Of MethodSymbol), pendingExtensionMethodsOpt As ExtensionMethodGroup, resultKind As LookupResultKind, receiverOpt As BoundExpression, qualificationKind As QualificationKind) As BoundMethodGroup 2740Public Sub New(syntax As SyntaxNode, properties As ImmutableArray(Of PropertySymbol), resultKind As LookupResultKind, receiverOpt As BoundExpression, qualificationKind As QualificationKind, Optional hasErrors As Boolean = False) 2750Private ReadOnly _Properties As ImmutableArray(Of PropertySymbol) 2751Public ReadOnly Property Properties As ImmutableArray(Of PropertySymbol) 2769Public Function Update(properties As ImmutableArray(Of PropertySymbol), resultKind As LookupResultKind, receiverOpt As BoundExpression, qualificationKind As QualificationKind) As BoundPropertyGroup 2904Public Sub New(syntax As SyntaxNode, clauses As ImmutableArray(Of BoundRedimClause), Optional hasErrors As Boolean = False) 2913Private ReadOnly _Clauses As ImmutableArray(Of BoundRedimClause) 2914Public ReadOnly Property Clauses As ImmutableArray(Of BoundRedimClause) 2925Public Function Update(clauses As ImmutableArray(Of BoundRedimClause)) As BoundRedimStatement 2938Public Sub New(syntax As SyntaxNode, operand As BoundExpression, indices As ImmutableArray(Of BoundExpression), arrayTypeOpt As ArrayTypeSymbol, preserve As Boolean, Optional hasErrors As Boolean = False) 2963Private ReadOnly _Indices As ImmutableArray(Of BoundExpression) 2964Public ReadOnly Property Indices As ImmutableArray(Of BoundExpression) 2989Public Function Update(operand As BoundExpression, indices As ImmutableArray(Of BoundExpression), arrayTypeOpt As ArrayTypeSymbol, preserve As Boolean) As BoundRedimClause 3002Public Sub New(syntax As SyntaxNode, clauses As ImmutableArray(Of BoundAssignmentOperator), Optional hasErrors As Boolean = False) 3011Private ReadOnly _Clauses As ImmutableArray(Of BoundAssignmentOperator) 3012Public ReadOnly Property Clauses As ImmutableArray(Of BoundAssignmentOperator) 3023Public Function Update(clauses As ImmutableArray(Of BoundAssignmentOperator)) As BoundEraseStatement 3036Public Sub New(syntax As SyntaxNode, method As MethodSymbol, methodGroupOpt As BoundMethodGroup, receiverOpt As BoundExpression, arguments As ImmutableArray(Of BoundExpression), defaultArguments As BitVector, constantValueOpt As ConstantValue, isLValue As Boolean, suppressObjectClone As Boolean, type As TypeSymbol, Optional hasErrors As Boolean = False) 3080Private ReadOnly _Arguments As ImmutableArray(Of BoundExpression) 3081Public ReadOnly Property Arguments As ImmutableArray(Of BoundExpression) 3120Public Function Update(method As MethodSymbol, methodGroupOpt As BoundMethodGroup, receiverOpt As BoundExpression, arguments As ImmutableArray(Of BoundExpression), defaultArguments As BitVector, constantValueOpt As ConstantValue, isLValue As Boolean, suppressObjectClone As Boolean, type As TypeSymbol) As BoundCall 3133Public Sub New(syntax As SyntaxNode, constructor As MethodSymbol, constructorArguments As ImmutableArray(Of BoundExpression), constructorDefaultArguments As BitVector, namedArguments As ImmutableArray(Of BoundExpression), resultKind As LookupResultKind, type As TypeSymbol, Optional hasErrors As Boolean = False) 3155Private ReadOnly _ConstructorArguments As ImmutableArray(Of BoundExpression) 3156Public ReadOnly Property ConstructorArguments As ImmutableArray(Of BoundExpression) 3169Private ReadOnly _NamedArguments As ImmutableArray(Of BoundExpression) 3170Public ReadOnly Property NamedArguments As ImmutableArray(Of BoundExpression) 3188Public Function Update(constructor As MethodSymbol, constructorArguments As ImmutableArray(Of BoundExpression), constructorDefaultArguments As BitVector, namedArguments As ImmutableArray(Of BoundExpression), resultKind As LookupResultKind, type As TypeSymbol) As BoundAttribute 3272Public Sub New(syntax As SyntaxNode, member As BoundExpression, argumentsOpt As ImmutableArray(Of BoundExpression), argumentNamesOpt As ImmutableArray(Of string), accessKind As LateBoundAccessKind, methodOrPropertyGroupOpt As BoundMethodOrPropertyGroup, type As TypeSymbol, Optional hasErrors As Boolean = False) 3298Private ReadOnly _ArgumentsOpt As ImmutableArray(Of BoundExpression) 3299Public ReadOnly Property ArgumentsOpt As ImmutableArray(Of BoundExpression) 3305Private ReadOnly _ArgumentNamesOpt As ImmutableArray(Of string) 3306Public ReadOnly Property ArgumentNamesOpt As ImmutableArray(Of string) 3331Public Function Update(member As BoundExpression, argumentsOpt As ImmutableArray(Of BoundExpression), argumentNamesOpt As ImmutableArray(Of string), accessKind As LateBoundAccessKind, methodOrPropertyGroupOpt As BoundMethodOrPropertyGroup, type As TypeSymbol) As BoundLateInvocation 3387Protected Sub New(kind As BoundKind, syntax as SyntaxNode, arguments As ImmutableArray(Of BoundExpression), type As TypeSymbol, Optional hasErrors As Boolean = False) 3396Private ReadOnly _Arguments As ImmutableArray(Of BoundExpression) 3397Public ReadOnly Property Arguments As ImmutableArray(Of BoundExpression) 3407Public Sub New(syntax As SyntaxNode, inferredType As TupleTypeSymbol, argumentNamesOpt As ImmutableArray(Of String), inferredNamesOpt As ImmutableArray(Of Boolean), arguments As ImmutableArray(Of BoundExpression), type As TypeSymbol, Optional hasErrors As Boolean = False) 3425Private ReadOnly _ArgumentNamesOpt As ImmutableArray(Of String) 3426Public ReadOnly Property ArgumentNamesOpt As ImmutableArray(Of String) 3432Private ReadOnly _InferredNamesOpt As ImmutableArray(Of Boolean) 3433Public ReadOnly Property InferredNamesOpt As ImmutableArray(Of Boolean) 3444Public Function Update(inferredType As TupleTypeSymbol, argumentNamesOpt As ImmutableArray(Of String), inferredNamesOpt As ImmutableArray(Of Boolean), arguments As ImmutableArray(Of BoundExpression), type As TypeSymbol) As BoundTupleLiteral 3457Public Sub New(syntax As SyntaxNode, naturalTypeOpt As TypeSymbol, arguments As ImmutableArray(Of BoundExpression), type As TypeSymbol, Optional hasErrors As Boolean = False) 3479Public Function Update(naturalTypeOpt As TypeSymbol, arguments As ImmutableArray(Of BoundExpression), type As TypeSymbol) As BoundConvertedTupleLiteral 3517Public Sub New(syntax As SyntaxNode, constructorOpt As MethodSymbol, methodGroupOpt As BoundMethodGroup, arguments As ImmutableArray(Of BoundExpression), defaultArguments As BitVector, initializerOpt As BoundObjectInitializerExpressionBase, type As TypeSymbol, Optional hasErrors As Boolean = False) 3549Private ReadOnly _Arguments As ImmutableArray(Of BoundExpression) 3550Public ReadOnly Property Arguments As ImmutableArray(Of BoundExpression) 3568Public Function Update(constructorOpt As MethodSymbol, methodGroupOpt As BoundMethodGroup, arguments As ImmutableArray(Of BoundExpression), defaultArguments As BitVector, initializerOpt As BoundObjectInitializerExpressionBase, type As TypeSymbol) As BoundObjectCreationExpression 3615Public Sub New(syntax As SyntaxNode, binderOpt As Binder.AnonymousTypeCreationBinder, declarations As ImmutableArray(Of BoundAnonymousTypePropertyAccess), arguments As ImmutableArray(Of BoundExpression), type As TypeSymbol, Optional hasErrors As Boolean = False) 3634Private ReadOnly _Declarations As ImmutableArray(Of BoundAnonymousTypePropertyAccess) 3635Public ReadOnly Property Declarations As ImmutableArray(Of BoundAnonymousTypePropertyAccess) 3641Private ReadOnly _Arguments As ImmutableArray(Of BoundExpression) 3642Public ReadOnly Property Arguments As ImmutableArray(Of BoundExpression) 3653Public Function Update(binderOpt As Binder.AnonymousTypeCreationBinder, declarations As ImmutableArray(Of BoundAnonymousTypePropertyAccess), arguments As ImmutableArray(Of BoundExpression), type As TypeSymbol) As BoundAnonymousTypeCreationExpression 3760Protected Sub New(kind As BoundKind, syntax as SyntaxNode, placeholderOpt As BoundWithLValueExpressionPlaceholder, initializers As ImmutableArray(Of BoundExpression), type As TypeSymbol, Optional hasErrors As Boolean = False) 3777Private ReadOnly _Initializers As ImmutableArray(Of BoundExpression) 3778Public ReadOnly Property Initializers As ImmutableArray(Of BoundExpression) 3788Public Sub New(syntax As SyntaxNode, createTemporaryLocalForInitialization As Boolean, placeholderOpt As BoundWithLValueExpressionPlaceholder, initializers As ImmutableArray(Of BoundExpression), type As TypeSymbol, Optional hasErrors As Boolean = False) 3814Public Function Update(createTemporaryLocalForInitialization As Boolean, placeholderOpt As BoundWithLValueExpressionPlaceholder, initializers As ImmutableArray(Of BoundExpression), type As TypeSymbol) As BoundObjectInitializerExpression 3827Public Sub New(syntax As SyntaxNode, placeholderOpt As BoundWithLValueExpressionPlaceholder, initializers As ImmutableArray(Of BoundExpression), type As TypeSymbol, Optional hasErrors As Boolean = False) 3845Public Function Update(placeholderOpt As BoundWithLValueExpressionPlaceholder, initializers As ImmutableArray(Of BoundExpression), type As TypeSymbol) As BoundCollectionInitializerExpression 3956Public Sub New(syntax As SyntaxNode, isParamArrayArgument As Boolean, bounds As ImmutableArray(Of BoundExpression), initializerOpt As BoundArrayInitialization, arrayLiteralOpt As BoundArrayLiteral, arrayLiteralConversion As ConversionKind, type As TypeSymbol, Optional hasErrors As Boolean = False) 3982Private ReadOnly _Bounds As ImmutableArray(Of BoundExpression) 3983Public ReadOnly Property Bounds As ImmutableArray(Of BoundExpression) 4015Public Function Update(isParamArrayArgument As Boolean, bounds As ImmutableArray(Of BoundExpression), initializerOpt As BoundArrayInitialization, arrayLiteralOpt As BoundArrayLiteral, arrayLiteralConversion As ConversionKind, type As TypeSymbol) As BoundArrayCreation 4028Public Sub New(syntax As SyntaxNode, hasDominantType As Boolean, numberOfCandidates As Integer, inferredType As ArrayTypeSymbol, bounds As ImmutableArray(Of BoundExpression), initializer As BoundArrayInitialization, binder As Binder, Optional hasErrors As Boolean = False) 4066Private ReadOnly _Bounds As ImmutableArray(Of BoundExpression) 4067Public ReadOnly Property Bounds As ImmutableArray(Of BoundExpression) 4092Public Function Update(hasDominantType As Boolean, numberOfCandidates As Integer, inferredType As ArrayTypeSymbol, bounds As ImmutableArray(Of BoundExpression), initializer As BoundArrayInitialization, binder As Binder) As BoundArrayLiteral 4105Public Sub New(syntax As SyntaxNode, initializers As ImmutableArray(Of BoundExpression), type As TypeSymbol, Optional hasErrors As Boolean = False) 4114Private ReadOnly _Initializers As ImmutableArray(Of BoundExpression) 4115Public ReadOnly Property Initializers As ImmutableArray(Of BoundExpression) 4126Public Function Update(initializers As ImmutableArray(Of BoundExpression), type As TypeSymbol) As BoundArrayInitialization 4211Public Sub New(syntax As SyntaxNode, propertySymbol As PropertySymbol, propertyGroupOpt As BoundPropertyGroup, accessKind As PropertyAccessKind, isWriteable As Boolean, isLValue As Boolean, receiverOpt As BoundExpression, arguments As ImmutableArray(Of BoundExpression), defaultArguments As BitVector, type As TypeSymbol, Optional hasErrors As Boolean = False) 4276Private ReadOnly _Arguments As ImmutableArray(Of BoundExpression) 4277Public ReadOnly Property Arguments As ImmutableArray(Of BoundExpression) 4295Public Function Update(propertySymbol As PropertySymbol, propertyGroupOpt As BoundPropertyGroup, accessKind As PropertyAccessKind, isWriteable As Boolean, isLValue As Boolean, receiverOpt As BoundExpression, arguments As ImmutableArray(Of BoundExpression), defaultArguments As BitVector, type As TypeSymbol) As BoundPropertyAccess 4351Public Sub New(syntax As SyntaxNode, statementListSyntax As SyntaxList(Of StatementSyntax), locals As ImmutableArray(Of LocalSymbol), statements As ImmutableArray(Of BoundStatement), Optional hasErrors As Boolean = False) 4370Private ReadOnly _Locals As ImmutableArray(Of LocalSymbol) 4371Public ReadOnly Property Locals As ImmutableArray(Of LocalSymbol) 4377Private ReadOnly _Statements As ImmutableArray(Of BoundStatement) 4378Public ReadOnly Property Statements As ImmutableArray(Of BoundStatement) 4389Public Function Update(statementListSyntax As SyntaxList(Of StatementSyntax), locals As ImmutableArray(Of LocalSymbol), statements As ImmutableArray(Of BoundStatement)) As BoundBlock 4402Public Sub New(syntax As SyntaxNode, fields As ImmutableArray(Of FieldSymbol), statement As BoundStatement, Optional hasErrors As Boolean = False) 4413Private ReadOnly _Fields As ImmutableArray(Of FieldSymbol) 4414Public ReadOnly Property Fields As ImmutableArray(Of FieldSymbol) 4432Public Function Update(fields As ImmutableArray(Of FieldSymbol), statement As BoundStatement) As BoundStateMachineScope 4521Public Sub New(syntax As SyntaxNode, localDeclarations As ImmutableArray(Of BoundLocalDeclaration), initializer As BoundExpression, binder As Binder, Optional hasErrors As Boolean = False) 4534Private ReadOnly _LocalDeclarations As ImmutableArray(Of BoundLocalDeclaration) 4535Public ReadOnly Property LocalDeclarations As ImmutableArray(Of BoundLocalDeclaration) 4560Public Function Update(localDeclarations As ImmutableArray(Of BoundLocalDeclaration), initializer As BoundExpression, binder As Binder) As BoundAsNewLocalDeclarations 4573Public Sub New(syntax As SyntaxNode, localDeclarations As ImmutableArray(Of BoundLocalDeclarationBase), initializerOpt As BoundExpression, Optional hasErrors As Boolean = False) 4583Private ReadOnly _LocalDeclarations As ImmutableArray(Of BoundLocalDeclarationBase) 4584Public ReadOnly Property LocalDeclarations As ImmutableArray(Of BoundLocalDeclarationBase) 4602Public Function Update(localDeclarations As ImmutableArray(Of BoundLocalDeclarationBase), initializerOpt As BoundExpression) As BoundDimStatement 4677Public Sub New(syntax As SyntaxNode, initializedFields As ImmutableArray(Of FieldSymbol), memberAccessExpressionOpt As BoundExpression, initialValue As BoundExpression, binderOpt As Binder, Optional hasErrors As Boolean = False) 4687Private ReadOnly _InitializedFields As ImmutableArray(Of FieldSymbol) 4688Public ReadOnly Property InitializedFields As ImmutableArray(Of FieldSymbol) 4699Public Function Update(initializedFields As ImmutableArray(Of FieldSymbol), memberAccessExpressionOpt As BoundExpression, initialValue As BoundExpression, binderOpt As Binder) As BoundFieldInitializer 4712Public Sub New(syntax As SyntaxNode, initializedProperties As ImmutableArray(Of PropertySymbol), memberAccessExpressionOpt As BoundExpression, initialValue As BoundExpression, binderOpt As Binder, Optional hasErrors As Boolean = False) 4722Private ReadOnly _InitializedProperties As ImmutableArray(Of PropertySymbol) 4723Public ReadOnly Property InitializedProperties As ImmutableArray(Of PropertySymbol) 4734Public Function Update(initializedProperties As ImmutableArray(Of PropertySymbol), memberAccessExpressionOpt As BoundExpression, initialValue As BoundExpression, binderOpt As Binder) As BoundPropertyInitializer 4824Public Sub New(syntax As SyntaxNode, locals As ImmutableArray(Of LocalSymbol), sideEffects As ImmutableArray(Of BoundExpression), valueOpt As BoundExpression, type As TypeSymbol, Optional hasErrors As Boolean = False) 4842Private ReadOnly _Locals As ImmutableArray(Of LocalSymbol) 4843Public ReadOnly Property Locals As ImmutableArray(Of LocalSymbol) 4849Private ReadOnly _SideEffects As ImmutableArray(Of BoundExpression) 4850Public ReadOnly Property SideEffects As ImmutableArray(Of BoundExpression) 4868Public Function Update(locals As ImmutableArray(Of LocalSymbol), sideEffects As ImmutableArray(Of BoundExpression), valueOpt As BoundExpression, type As TypeSymbol) As BoundSequence 4966Public Sub New(syntax As SyntaxNode, expressionStatement As BoundExpressionStatement, exprPlaceholderOpt As BoundRValuePlaceholder, caseBlocks As ImmutableArray(Of BoundCaseBlock), recommendSwitchTable As Boolean, exitLabel As LabelSymbol, Optional hasErrors As Boolean = False) 4995Private ReadOnly _CaseBlocks As ImmutableArray(Of BoundCaseBlock) 4996Public ReadOnly Property CaseBlocks As ImmutableArray(Of BoundCaseBlock) 5021Public Function Update(expressionStatement As BoundExpressionStatement, exprPlaceholderOpt As BoundRValuePlaceholder, caseBlocks As ImmutableArray(Of BoundCaseBlock), recommendSwitchTable As Boolean, exitLabel As LabelSymbol) As BoundSelectStatement 5077Public Sub New(syntax As SyntaxNode, caseClauses As ImmutableArray(Of BoundCaseClause), conditionOpt As BoundExpression, Optional hasErrors As Boolean = False) 5087Private ReadOnly _CaseClauses As ImmutableArray(Of BoundCaseClause) 5088Public ReadOnly Property CaseClauses As ImmutableArray(Of BoundCaseClause) 5106Public Function Update(caseClauses As ImmutableArray(Of BoundCaseClause), conditionOpt As BoundExpression) As BoundCaseStatement 5433Protected Sub New(kind As BoundKind, syntax as SyntaxNode, declaredOrInferredLocalOpt As LocalSymbol, controlVariable As BoundExpression, body As BoundStatement, nextVariablesOpt As ImmutableArray(Of BoundExpression), continueLabel As LabelSymbol, exitLabel As LabelSymbol, Optional hasErrors As Boolean = False) 5469Private ReadOnly _NextVariablesOpt As ImmutableArray(Of BoundExpression) 5470Public ReadOnly Property NextVariablesOpt As ImmutableArray(Of BoundExpression) 5564Public Sub New(syntax As SyntaxNode, initialValue As BoundExpression, limitValue As BoundExpression, stepValue As BoundExpression, checked As Boolean, operatorsOpt As BoundForToUserDefinedOperators, declaredOrInferredLocalOpt As LocalSymbol, controlVariable As BoundExpression, body As BoundStatement, nextVariablesOpt As ImmutableArray(Of BoundExpression), continueLabel As LabelSymbol, exitLabel As LabelSymbol, Optional hasErrors As Boolean = False) 5623Public Function Update(initialValue As BoundExpression, limitValue As BoundExpression, stepValue As BoundExpression, checked As Boolean, operatorsOpt As BoundForToUserDefinedOperators, declaredOrInferredLocalOpt As LocalSymbol, controlVariable As BoundExpression, body As BoundStatement, nextVariablesOpt As ImmutableArray(Of BoundExpression), continueLabel As LabelSymbol, exitLabel As LabelSymbol) As BoundForToStatement 5636Public Sub New(syntax As SyntaxNode, collection As BoundExpression, enumeratorInfo As ForEachEnumeratorInfo, declaredOrInferredLocalOpt As LocalSymbol, controlVariable As BoundExpression, body As BoundStatement, nextVariablesOpt As ImmutableArray(Of BoundExpression), continueLabel As LabelSymbol, exitLabel As LabelSymbol, Optional hasErrors As Boolean = False) 5670Public Function Update(collection As BoundExpression, enumeratorInfo As ForEachEnumeratorInfo, declaredOrInferredLocalOpt As LocalSymbol, controlVariable As BoundExpression, body As BoundStatement, nextVariablesOpt As ImmutableArray(Of BoundExpression), continueLabel As LabelSymbol, exitLabel As LabelSymbol) As BoundForEachStatement 5767Public Sub New(syntax As SyntaxNode, tryBlock As BoundBlock, catchBlocks As ImmutableArray(Of BoundCatchBlock), finallyBlockOpt As BoundBlock, exitLabelOpt As LabelSymbol, Optional hasErrors As Boolean = False) 5787Private ReadOnly _CatchBlocks As ImmutableArray(Of BoundCatchBlock) 5788Public ReadOnly Property CatchBlocks As ImmutableArray(Of BoundCatchBlock) 5813Public Function Update(tryBlock As BoundBlock, catchBlocks As ImmutableArray(Of BoundCatchBlock), finallyBlockOpt As BoundBlock, exitLabelOpt As LabelSymbol) As BoundTryStatement 6649Public Sub New(syntax As SyntaxNode, statements As ImmutableArray(Of BoundStatement), Optional hasErrors As Boolean = False) 6658Private ReadOnly _Statements As ImmutableArray(Of BoundStatement) 6659Public ReadOnly Property Statements As ImmutableArray(Of BoundStatement) 6670Public Function Update(statements As ImmutableArray(Of BoundStatement)) As BoundStatementList 6786Public Sub New(syntax As SyntaxNode, binder As Binder, flags As SourceMemberFlags, parameters As ImmutableArray(Of ParameterSymbol), returnType As TypeSymbol, bindingCache As UnboundLambda.UnboundLambdaBindingCache, hasErrors As Boolean) 6805Public Sub New(syntax As SyntaxNode, binder As Binder, flags As SourceMemberFlags, parameters As ImmutableArray(Of ParameterSymbol), returnType As TypeSymbol, bindingCache As UnboundLambda.UnboundLambdaBindingCache) 6836Private ReadOnly _Parameters As ImmutableArray(Of ParameterSymbol) 6837Public ReadOnly Property Parameters As ImmutableArray(Of ParameterSymbol) 6862Public Function Update(binder As Binder, flags As SourceMemberFlags, parameters As ImmutableArray(Of ParameterSymbol), returnType As TypeSymbol, bindingCache As UnboundLambda.UnboundLambdaBindingCache) As UnboundLambda 7079Protected Sub New(kind As BoundKind, syntax as SyntaxNode, rangeVariables As ImmutableArray(Of RangeVariableSymbol), compoundVariableType As TypeSymbol, binders As ImmutableArray(Of Binder), type As TypeSymbol, hasErrors As Boolean) 7092Protected Sub New(kind As BoundKind, syntax as SyntaxNode, rangeVariables As ImmutableArray(Of RangeVariableSymbol), compoundVariableType As TypeSymbol, binders As ImmutableArray(Of Binder), type As TypeSymbol) 7106Private ReadOnly _RangeVariables As ImmutableArray(Of RangeVariableSymbol) 7107Public ReadOnly Property RangeVariables As ImmutableArray(Of RangeVariableSymbol) 7120Private ReadOnly _Binders As ImmutableArray(Of Binder) 7121Public ReadOnly Property Binders As ImmutableArray(Of Binder) 7131Public Sub New(syntax As SyntaxNode, source As BoundQueryPart, rangeVariableOpt As RangeVariableSymbol, rangeVariables As ImmutableArray(Of RangeVariableSymbol), compoundVariableType As TypeSymbol, binders As ImmutableArray(Of Binder), type As TypeSymbol, Optional hasErrors As Boolean = False) 7169Public Function Update(source As BoundQueryPart, rangeVariableOpt As RangeVariableSymbol, rangeVariables As ImmutableArray(Of RangeVariableSymbol), compoundVariableType As TypeSymbol, binders As ImmutableArray(Of Binder), type As TypeSymbol) As BoundQueryableSource 7182Public Sub New(syntax As SyntaxNode, underlyingExpression As BoundExpression, rangeVariables As ImmutableArray(Of RangeVariableSymbol), compoundVariableType As TypeSymbol, binders As ImmutableArray(Of Binder), type As TypeSymbol, Optional hasErrors As Boolean = False) 7207Public Function Update(underlyingExpression As BoundExpression, rangeVariables As ImmutableArray(Of RangeVariableSymbol), compoundVariableType As TypeSymbol, binders As ImmutableArray(Of Binder), type As TypeSymbol) As BoundQueryClause 7255Public Sub New(syntax As SyntaxNode, lambdaSymbol As SynthesizedLambdaSymbol, rangeVariables As ImmutableArray(Of RangeVariableSymbol), expression As BoundExpression, exprIsOperandOfConditionalBranch As Boolean, Optional hasErrors As Boolean = False) 7276Private ReadOnly _RangeVariables As ImmutableArray(Of RangeVariableSymbol) 7277Public ReadOnly Property RangeVariables As ImmutableArray(Of RangeVariableSymbol) 7302Public Function Update(lambdaSymbol As SynthesizedLambdaSymbol, rangeVariables As ImmutableArray(Of RangeVariableSymbol), expression As BoundExpression, exprIsOperandOfConditionalBranch As Boolean) As BoundQueryLambda 7359Public Sub New(syntax As SyntaxNode, binder As Binder, parameters As ImmutableArray(Of ParameterSymbol), compilation As VisualBasicCompilation, hasErrors As Boolean) 7371Public Sub New(syntax As SyntaxNode, binder As Binder, parameters As ImmutableArray(Of ParameterSymbol), compilation As VisualBasicCompilation) 7391Private ReadOnly _Parameters As ImmutableArray(Of ParameterSymbol) 7392Public ReadOnly Property Parameters As ImmutableArray(Of ParameterSymbol) 7410Public Function Update(binder As Binder, parameters As ImmutableArray(Of ParameterSymbol), compilation As VisualBasicCompilation) As GroupTypeInferenceLambda 7423Public Sub New(syntax As SyntaxNode, capturedGroupOpt As BoundQueryClauseBase, groupPlaceholderOpt As BoundRValuePlaceholder, underlyingExpression As BoundExpression, rangeVariables As ImmutableArray(Of RangeVariableSymbol), compoundVariableType As TypeSymbol, binders As ImmutableArray(Of Binder), type As TypeSymbol, Optional hasErrors As Boolean = False) 7464Public Function Update(capturedGroupOpt As BoundQueryClauseBase, groupPlaceholderOpt As BoundRValuePlaceholder, underlyingExpression As BoundExpression, rangeVariables As ImmutableArray(Of RangeVariableSymbol), compoundVariableType As TypeSymbol, binders As ImmutableArray(Of Binder), type As TypeSymbol) As BoundAggregateClause 7682Public Sub New(syntax As SyntaxNode, resourceList As ImmutableArray(Of BoundLocalDeclarationBase), resourceExpressionOpt As BoundExpression, body As BoundBlock, usingInfo As UsingInfo, locals As ImmutableArray(Of LocalSymbol), Optional hasErrors As Boolean = False) 7697Private ReadOnly _ResourceList As ImmutableArray(Of BoundLocalDeclarationBase) 7698Public ReadOnly Property ResourceList As ImmutableArray(Of BoundLocalDeclarationBase) 7725Private ReadOnly _Locals As ImmutableArray(Of LocalSymbol) 7726Public ReadOnly Property Locals As ImmutableArray(Of LocalSymbol) 7737Public Function Update(resourceList As ImmutableArray(Of BoundLocalDeclarationBase), resourceExpressionOpt As BoundExpression, body As BoundBlock, usingInfo As UsingInfo, locals As ImmutableArray(Of LocalSymbol)) As BoundUsingStatement 7890Public Sub New(syntax As SyntaxNode, declaration As BoundExpression, childNodes As ImmutableArray(Of BoundExpression), rewriterInfo As BoundXmlContainerRewriterInfo, type As TypeSymbol, Optional hasErrors As Boolean = False) 7911Private ReadOnly _ChildNodes As ImmutableArray(Of BoundExpression) 7912Public ReadOnly Property ChildNodes As ImmutableArray(Of BoundExpression) 7930Public Function Update(declaration As BoundExpression, childNodes As ImmutableArray(Of BoundExpression), rewriterInfo As BoundXmlContainerRewriterInfo, type As TypeSymbol) As BoundXmlDocument 8165Public Sub New(syntax As SyntaxNode, argument As BoundExpression, childNodes As ImmutableArray(Of BoundExpression), rewriterInfo As BoundXmlContainerRewriterInfo, type As TypeSymbol, Optional hasErrors As Boolean = False) 8186Private ReadOnly _ChildNodes As ImmutableArray(Of BoundExpression) 8187Public ReadOnly Property ChildNodes As ImmutableArray(Of BoundExpression) 8205Public Function Update(argument As BoundExpression, childNodes As ImmutableArray(Of BoundExpression), rewriterInfo As BoundXmlContainerRewriterInfo, type As TypeSymbol) As BoundXmlElement 8556Public Sub New(syntax As SyntaxNode, value As BoundExpression, jumps As ImmutableArray(Of BoundGotoStatement), Optional hasErrors As Boolean = False) 8579Private ReadOnly _Jumps As ImmutableArray(Of BoundGotoStatement) 8580Public ReadOnly Property Jumps As ImmutableArray(Of BoundGotoStatement) 8591Public Function Update(value As BoundExpression, jumps As ImmutableArray(Of BoundGotoStatement)) As BoundUnstructuredExceptionOnErrorSwitch 8604Public Sub New(syntax As SyntaxNode, resumeTargetTemporary As BoundLocal, resumeLabel As BoundLabelStatement, resumeNextLabel As BoundLabelStatement, jumps As ImmutableArray(Of BoundGotoStatement), Optional hasErrors As Boolean = False) 8645Private ReadOnly _Jumps As ImmutableArray(Of BoundGotoStatement) 8646Public ReadOnly Property Jumps As ImmutableArray(Of BoundGotoStatement) 8657Public Function Update(resumeTargetTemporary As BoundLocal, resumeLabel As BoundLabelStatement, resumeNextLabel As BoundLabelStatement, jumps As ImmutableArray(Of BoundGotoStatement)) As BoundUnstructuredExceptionResumeSwitch 8755Public Sub New(syntax As SyntaxNode, locals As ImmutableArray(Of LocalSymbol), spillFields As ImmutableArray(Of FieldSymbol), statements As ImmutableArray(Of BoundStatement), valueOpt As BoundExpression, type As TypeSymbol, Optional hasErrors As Boolean = False) 8774Private ReadOnly _Locals As ImmutableArray(Of LocalSymbol) 8775Public ReadOnly Property Locals As ImmutableArray(Of LocalSymbol) 8781Private ReadOnly _SpillFields As ImmutableArray(Of FieldSymbol) 8782Public ReadOnly Property SpillFields As ImmutableArray(Of FieldSymbol) 8788Private ReadOnly _Statements As ImmutableArray(Of BoundStatement) 8789Public ReadOnly Property Statements As ImmutableArray(Of BoundStatement) 8807Public Function Update(locals As ImmutableArray(Of LocalSymbol), spillFields As ImmutableArray(Of FieldSymbol), statements As ImmutableArray(Of BoundStatement), valueOpt As BoundExpression, type As TypeSymbol) As BoundSpillSequence 9242Public Sub New(syntax As SyntaxNode, contents As ImmutableArray(Of BoundNode), constructionOpt As BoundExpression, type As TypeSymbol, Optional hasErrors As Boolean = False) 9258Private ReadOnly _Contents As ImmutableArray(Of BoundNode) 9259Public ReadOnly Property Contents As ImmutableArray(Of BoundNode) 9277Public Function Update(contents As ImmutableArray(Of BoundNode), constructionOpt As BoundExpression, type As TypeSymbol) As BoundInterpolatedStringExpression 12097Dim childBoundNodes As ImmutableArray(Of BoundExpression) = Me.VisitList(node.ChildBoundNodes) 12103Dim childBoundNodes As ImmutableArray(Of BoundNode) = Me.VisitList(node.ChildBoundNodes) 12121Dim indices As ImmutableArray(Of BoundExpression) = Me.VisitList(node.Indices) 12292Dim elementPlaceholders As ImmutableArray(Of BoundRValuePlaceholder) = Me.VisitList(node.ElementPlaceholders) 12293Dim convertedElements As ImmutableArray(Of BoundExpression) = Me.VisitList(node.ConvertedElements) 12373Dim clauses As ImmutableArray(Of BoundRedimClause) = Me.VisitList(node.Clauses) 12379Dim indices As ImmutableArray(Of BoundExpression) = Me.VisitList(node.Indices) 12384Dim clauses As ImmutableArray(Of BoundAssignmentOperator) = Me.VisitList(node.Clauses) 12391Dim arguments As ImmutableArray(Of BoundExpression) = Me.VisitList(node.Arguments) 12397Dim constructorArguments As ImmutableArray(Of BoundExpression) = Me.VisitList(node.ConstructorArguments) 12398Dim namedArguments As ImmutableArray(Of BoundExpression) = Me.VisitList(node.NamedArguments) 12413Dim argumentsOpt As ImmutableArray(Of BoundExpression) = Me.VisitList(node.ArgumentsOpt) 12426Dim arguments As ImmutableArray(Of BoundExpression) = Me.VisitList(node.Arguments) 12432Dim arguments As ImmutableArray(Of BoundExpression) = Me.VisitList(node.Arguments) 12440Dim arguments As ImmutableArray(Of BoundExpression) = Me.VisitList(node.Arguments) 12453Dim declarations As ImmutableArray(Of BoundAnonymousTypePropertyAccess) = Me.VisitList(node.Declarations) 12454Dim arguments As ImmutableArray(Of BoundExpression) = Me.VisitList(node.Arguments) 12472Dim initializers As ImmutableArray(Of BoundExpression) = Me.VisitList(node.Initializers) 12479Dim initializers As ImmutableArray(Of BoundExpression) = Me.VisitList(node.Initializers) 12500Dim bounds As ImmutableArray(Of BoundExpression) = Me.VisitList(node.Bounds) 12508Dim bounds As ImmutableArray(Of BoundExpression) = Me.VisitList(node.Bounds) 12515Dim initializers As ImmutableArray(Of BoundExpression) = Me.VisitList(node.Initializers) 12529Dim arguments As ImmutableArray(Of BoundExpression) = Me.VisitList(node.Arguments) 12541Dim statements As ImmutableArray(Of BoundStatement) = Me.VisitList(node.Statements) 12557Dim localDeclarations As ImmutableArray(Of BoundLocalDeclaration) = Me.VisitList(node.LocalDeclarations) 12563Dim localDeclarations As ImmutableArray(Of BoundLocalDeclarationBase) = Me.VisitList(node.LocalDeclarations) 12595Dim sideEffects As ImmutableArray(Of BoundExpression) = Me.VisitList(node.SideEffects) 12616Dim caseBlocks As ImmutableArray(Of BoundCaseBlock) = Me.VisitList(node.CaseBlocks) 12627Dim caseClauses As ImmutableArray(Of BoundCaseClause) = Me.VisitList(node.CaseClauses) 12682Dim nextVariablesOpt As ImmutableArray(Of BoundExpression) = Me.VisitList(node.NextVariablesOpt) 12690Dim nextVariablesOpt As ImmutableArray(Of BoundExpression) = Me.VisitList(node.NextVariablesOpt) 12704Dim catchBlocks As ImmutableArray(Of BoundCatchBlock) = Me.VisitList(node.CatchBlocks) 12803Dim statements As ImmutableArray(Of BoundStatement) = Me.VisitList(node.Statements) 12923Dim resourceList As ImmutableArray(Of BoundLocalDeclarationBase) = Me.VisitList(node.ResourceList) 12952Dim childNodes As ImmutableArray(Of BoundExpression) = Me.VisitList(node.ChildNodes) 12991Dim childNodes As ImmutableArray(Of BoundExpression) = Me.VisitList(node.ChildNodes) 13039Dim jumps As ImmutableArray(Of BoundGotoStatement) = Me.VisitList(node.Jumps) 13047Dim jumps As ImmutableArray(Of BoundGotoStatement) = Me.VisitList(node.Jumps) 13063Dim statements As ImmutableArray(Of BoundStatement) = Me.VisitList(node.Statements) 13127Dim contents As ImmutableArray(Of BoundNode) = Me.VisitList(node.Contents)
GlobalImport.vb (2)
68Public Shared Function Parse(importedNames As String, <Out()> ByRef diagnostics As ImmutableArray(Of Diagnostic)) As GlobalImport 103Public Shared Function Parse(importedNames As IEnumerable(Of String), <Out()> ByRef diagnostics As ImmutableArray(Of Diagnostic)) As IEnumerable(Of GlobalImport)
Lowering\AsyncRewriter\AsyncRewriter.AsyncMethodToClassRewriter.Expressions.vb (9)
32Dim statements As ImmutableArray(Of BoundStatement) = Me.VisitList(node.Statements) 53Dim locals As ImmutableArray(Of LocalSymbol) = rewritten.Locals 54Dim sideEffects As ImmutableArray(Of BoundExpression) = rewritten.SideEffects 97Dim arguments As ImmutableArray(Of BoundExpression) = rewritten.Arguments 191Dim arguments As ImmutableArray(Of BoundExpression) = rewritten.Arguments 262Dim newArgs As ImmutableArray(Of BoundExpression) = SpillExpressionList(builder, left, right) 818Dim bounds As ImmutableArray(Of BoundExpression) = Me.VisitList(node.Bounds) 857Dim parts As ImmutableArray(Of BoundExpression) = node.Initializers 885Dim indices As ImmutableArray(Of BoundExpression) = rewritten.Indices
Lowering\AsyncRewriter\AsyncRewriter.AsyncMethodToClassRewriter.Spilling.vb (13)
37Private Shared Function NeedsSpill(nodes As ImmutableArray(Of BoundExpression)) As Boolean 70Public ReadOnly Arguments As ImmutableArray(Of BoundExpression) 72Public Sub New(receiverOpt As BoundExpression, arguments As ImmutableArray(Of BoundExpression)) 131expressions As ImmutableArray(Of BoundExpression) 132) As ImmutableArray(Of BoundExpression) 135Dim newArgs As ImmutableArray(Of BoundExpression) = SpillArgumentListInner(expressions, spillBuilders, False) 148ParamArray expressions() As BoundExpression) As ImmutableArray(Of BoundExpression) 152Private Function SpillArgumentListInner(arguments As ImmutableArray(Of BoundExpression), 154<[In], Out> ByRef spilledFirstArg As Boolean) As ImmutableArray(Of BoundExpression) 163Dim newInitializers As ImmutableArray(Of BoundExpression) = 239Dim sideEffects As ImmutableArray(Of BoundExpression) = sequence.SideEffects 266Dim indices As ImmutableArray(Of BoundExpression) = array.Indices 447Dim fields As ImmutableArray(Of FieldSymbol) = spill.SpillFields
Lowering\AsyncRewriter\AsyncRewriter.AsyncMethodToClassRewriter.vb (3)
133Dim rootScopeHoistedLocals As ImmutableArray(Of FieldSymbol) = Nothing 171ImmutableArray(Of LocalSymbol).Empty, 220Dim newStatements As ImmutableArray(Of BoundStatement) = bodyBuilder.ToImmutableAndFree()
Lowering\AsyncRewriter\AsyncRewriter.CapturedSymbolOrExpression.vb (3)
165Friend ReadOnly Indices As ImmutableArray(Of CapturedSymbolOrExpression) 167Public Sub New(arrayPointer As CapturedSymbolOrExpression, indices As ImmutableArray(Of CapturedSymbolOrExpression)) 183Dim origIndices As ImmutableArray(Of CapturedSymbolOrExpression) = Me.Indices
Lowering\AsyncRewriter\AsyncRewriter.SpillBuilder.vb (6)
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()), 83Friend Sub AddLocals(locals As ImmutableArray(Of LocalSymbol)) 96ImmutableArray(Of FieldSymbol).Empty, 123Private Shared Sub AddRange(Of T)(<[In], Out> ByRef array As ArrayBuilder(Of T), other As ImmutableArray(Of T))
Lowering\AsyncRewriter\AsyncRewriter.vb (5)
251Return RewriteBodyIfNeeded(Me.F.Block(ImmutableArray(Of LocalSymbol).Empty, bodyBuilder.ToImmutableAndFree()), Me.F.TopLevelMethod, Me.Method) 448Dim indices As ImmutableArray(Of BoundExpression) = arrayAccess.Indices 509Return GenerateMethodCall(receiver, type, methodName, ImmutableArray(Of TypeSymbol).Empty, arguments) 515typeArgs As ImmutableArray(Of TypeSymbol), 542typeArgs As ImmutableArray(Of TypeSymbol)) As BoundMethodGroup
Lowering\AsyncRewriter\AsyncStateMachine.vb (1)
26Me._constructor.SetParameters(ImmutableArray(Of ParameterSymbol).Empty)
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter.vb (10)
539Private Function BuildIndices(expressions As ImmutableArray(Of BoundExpression)) As BoundExpression 588Dim initializers As ImmutableArray(Of BoundExpression) = initializer.Initializers 637Dim initializers As ImmutableArray(Of BoundExpression) = initializer.Initializers 682Dim properties As ImmutableArray(Of AnonymousTypeManager.AnonymousTypePropertyPublicSymbol) = anonType.Properties 701Dim locals As ImmutableArray(Of LocalSymbol) = node.Locals 702Dim sideEffects As ImmutableArray(Of BoundExpression) = node.SideEffects 724ImmutableArray(Of BoundExpression).Empty, 746Private Function ConvertArgumentsIntoArray(exprs As ImmutableArray(Of BoundExpression)) As BoundExpression 819Return ConvertRuntimeHelperToExpressionTree(helperMethod, ImmutableArray(Of TypeSymbol).Empty, arguments) 826typeArgs As ImmutableArray(Of TypeSymbol),
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_BinaryOperator.vb (2)
758Dim parameters As ImmutableArray(Of ParameterSymbol) = [call].Method.Parameters 761Dim oldArgs As ImmutableArray(Of BoundExpression) = [call].Arguments
Lowering\Instrumentation\CodeCoverageInstrumenter.vb (6)
27Private _dynamicAnalysisSpans As ImmutableArray(Of SourceSpan) = ImmutableArray(Of SourceSpan).Empty 97Public ReadOnly Property DynamicAnalysisSpans As ImmutableArray(Of SourceSpan) 120_payloadType = ArrayTypeSymbol.CreateVBArray(payloadElementType, ImmutableArray(Of CustomModifier).Empty, 1, methodBodyFactory.Compilation.Assembly) 171dynamicAnalysisSpans As ImmutableArray(Of SourceSpan), 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\IteratorRewriter\IteratorStateMachine.vb (1)
46containingAssembly As AssemblySymbol) As ImmutableArray(Of NamedTypeSymbol)
Lowering\LambdaRewriter\LambdaCapturedVariable.vb (4)
110Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 112Return ImmutableArray(Of Location).Empty 116Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 118Return ImmutableArray(Of SyntaxReference).Empty
Lowering\LambdaRewriter\LambdaFrame.vb (10)
23Private ReadOnly _typeParameters As ImmutableArray(Of TypeParameterSymbol) 58MyBase.New(topLevelMethod, MakeName(scopeSyntaxOpt, methodId, closureId, isStatic, isDelegateRelaxationFrame), topLevelMethod.ContainingType, ImmutableArray(Of NamedTypeSymbol).Empty) 136Public Overloads Overrides Function GetMembers(name As String) As ImmutableArray(Of Symbol) 137Return ImmutableArray(Of Symbol).Empty 140Public Overloads Overrides Function GetMembers() As ImmutableArray(Of Symbol) 191Friend Overrides Function MakeAcyclicInterfaces(diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol) 192Return ImmutableArray(Of NamedTypeSymbol).Empty 203Friend Overrides Function MakeDeclaredInterfaces(basesBeingResolved As BasesBeingResolved, diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol) 204Return ImmutableArray(Of NamedTypeSymbol).Empty 225Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of TypeParameterSymbol)
Lowering\LambdaRewriter\LambdaFrameCopyConstructor.vb (2)
24Private ReadOnly _parameters As ImmutableArray(Of ParameterSymbol) 32Public Overrides ReadOnly Property Parameters As ImmutableArray(Of ParameterSymbol)
Lowering\LambdaRewriter\LambdaRewriter.Analysis.vb (1)
243Public Function PushBlock(node As BoundNode, locals As ImmutableArray(Of LocalSymbol)) As BoundNode
Lowering\LambdaRewriter\LambdaRewriter.vb (11)
95Private _currentTypeParameters As ImmutableArray(Of TypeParameterSymbol) 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, 502Friend Shared Function ConstructFrameType(Of T As TypeSymbol)(type As LambdaFrame, typeArguments As ImmutableArray(Of T)) As NamedTypeSymbol 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 (10)
24Private ReadOnly _parameters As ImmutableArray(Of ParameterSymbol) 25Private ReadOnly _locations As ImmutableArray(Of Location) 26Private ReadOnly _typeParameters As ImmutableArray(Of TypeParameterSymbol) 67Me._typeParameters = ImmutableArray(Of TypeParameterSymbol).Empty 71Me._typeParameters = ImmutableArray(Of TypeParameterSymbol).Empty 113Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of TypeParameterSymbol) 119Public Overrides ReadOnly Property TypeArguments As ImmutableArray(Of TypeSymbol) 125Return ImmutableArray(Of TypeSymbol).Empty 130Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 136Public Overrides ReadOnly Property Parameters As ImmutableArray(Of ParameterSymbol)
Lowering\LocalRewriter\LocalRewriter.vb (11)
34Private _xmlImportedNamespaces As ImmutableArray(Of KeyValuePair(Of String, String)) 189Private Shared Function InsertXmlLiteralsPreamble(node As BoundNode, fixups As ImmutableArray(Of XmlLiteralFixupData.LocalWithInitialization)) As BoundBlock 448ImmutableArray(Of LocalSymbol).Empty, 484arguments As ImmutableArray(Of BoundExpression), 493Dim temporaries As ImmutableArray(Of SynthesizedLocal) = Nothing 494Dim copyBack As ImmutableArray(Of BoundExpression) = Nothing 520ImmutableArray(Of BoundExpression).Empty, 756temporaries As ImmutableArray(Of LocalSymbol), 757sideEffects As ImmutableArray(Of BoundExpression)) As BoundExpression 846ImmutableArray(Of BoundExpression).Empty, 872rewritten = nodeFactory.Call(Nothing, endApp, ImmutableArray(Of BoundExpression).Empty).ToStatement()
Lowering\LocalRewriter\LocalRewriter_AddRemoveHandler.vb (2)
118Dim marshalArguments As ImmutableArray(Of BoundExpression) 148ImmutableArray(Of BoundExpression).Empty,
Lowering\LocalRewriter\LocalRewriter_AnonymousTypeCreationExpression.vb (1)
64ImmutableArray(Of BoundExpression).Empty,
Lowering\LocalRewriter\LocalRewriter_AssignmentOperator.vb (5)
55Dim temps = ImmutableArray(Of SynthesizedLocal).Empty 111ImmutableArray(Of BoundExpression).Empty, 257Dim temps = ImmutableArray(Of SynthesizedLocal).Empty 479Dim temporaries As ImmutableArray(Of SynthesizedLocal) = Nothing 480Dim copyBack As ImmutableArray(Of BoundExpression) = Nothing
Lowering\LocalRewriter\LocalRewriter_BinaryOperators.vb (2)
73ImmutableArray(Of BoundExpression).Empty, 1039Return New BoundSequence(node.Syntax, ImmutableArray(Of LocalSymbol).Empty,
Lowering\LocalRewriter\LocalRewriter_Call.vb (12)
21Dim arguments As ImmutableArray(Of BoundExpression) = node.Arguments 79Dim temporaries As ImmutableArray(Of SynthesizedLocal) = Nothing 80Dim copyBack As ImmutableArray(Of BoundExpression) = Nothing 111ImmutableArray(Of BoundExpression).Empty, 123ByRef arguments As ImmutableArray(Of BoundExpression)) 154arguments As ImmutableArray(Of BoundExpression), 155parameters As ImmutableArray(Of ParameterSymbol), 156<Out()> ByRef temporaries As ImmutableArray(Of SynthesizedLocal), 157<Out()> ByRef copyBack As ImmutableArray(Of BoundExpression), 159) As ImmutableArray(Of BoundExpression) 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_DoLoop.vb (2)
35Dim conditionResumeTarget As ImmutableArray(Of BoundStatement) = Nothing 90Dim conditionResumeTarget As ImmutableArray(Of BoundStatement) = Nothing
Lowering\LocalRewriter\LocalRewriter_FieldOrPropertyInitializer.vb (4)
18Return VisitFieldOrPropertyInitializer(node, ImmutableArray(Of Symbol).CastUp(node.InitializedFields)) 22Return VisitFieldOrPropertyInitializer(node, ImmutableArray(Of Symbol).CastUp(node.InitializedProperties)) 37Private Function VisitFieldOrPropertyInitializer(node As BoundFieldOrPropertyInitializer, initializedSymbols As ImmutableArray(Of Symbol)) As BoundNode 114arguments:=ImmutableArray(Of BoundExpression).Empty)
Lowering\LocalRewriter\LocalRewriter_ForEach.vb (12)
192Dim loopResumeTarget As ImmutableArray(Of BoundStatement) = Nothing 267ImmutableArray(Of BoundExpression).Empty, 301boundCurrent = New BoundBadExpression(syntaxNode, LookupResultKind.NotReferencable, ImmutableArray(Of Symbol).Empty, 462ImmutableArray(Of LocalSymbol).Empty), 556Dim loopResumeTarget As ImmutableArray(Of BoundStatement) = Nothing 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 (4)
56Dim loopResumeTarget As ImmutableArray(Of BoundStatement) = Nothing 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_If.vb (2)
15Dim unstructuredExceptionHandlingResumeTarget As ImmutableArray(Of BoundStatement) = Nothing 117Optional unstructuredExceptionHandlingResumeTarget As ImmutableArray(Of BoundStatement) = Nothing
Lowering\LocalRewriter\LocalRewriter_LateAddressOf.vb (2)
101Dim statementList As ImmutableArray(Of BoundStatement) = Nothing 133ImmutableArray(Of LocalSymbol).Empty,
Lowering\LocalRewriter\LocalRewriter_LateBindingHelpers.vb (25)
57flags As ImmutableArray(Of Boolean), 85rewrittenArguments As ImmutableArray(Of BoundExpression), 86argumentNames As ImmutableArray(Of String), 157rewrittenArguments As ImmutableArray(Of BoundExpression), 158argumentNames As ImmutableArray(Of String), 261rewrittenArguments As ImmutableArray(Of BoundExpression), 300argumentNames As ImmutableArray(Of String), 395ImmutableArray(Of LocalSymbol).Empty, 396ImmutableArray(Of BoundExpression).Empty, 454ImmutableArray(Of LocalSymbol).Empty, 464argExpressions As ImmutableArray(Of BoundExpression)) As BoundExpression 512argExpressions As ImmutableArray(Of BoundExpression), 513argNames As ImmutableArray(Of String), 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)) 555Dim callArgs As ImmutableArray(Of BoundExpression) 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)) 626Dim callArgs As ImmutableArray(Of BoundExpression) 659argExpressions As ImmutableArray(Of BoundExpression), 660assignmentArguments As ImmutableArray(Of BoundExpression), 661argNames As ImmutableArray(Of String), 855ByRef arguments As ImmutableArray(Of BoundExpression), 856<Out> ByRef writeTargets As ImmutableArray(Of BoundExpression)) 945types As ImmutableArray(Of TypeSymbol),
Lowering\LocalRewriter\LocalRewriter_LateInvocation.vb (6)
48argExpressions As ImmutableArray(Of BoundExpression)) As BoundExpression 61argExpressions As ImmutableArray(Of BoundExpression), 62argNames As ImmutableArray(Of String), 69Dim assignmentArguments As ImmutableArray(Of BoundExpression) = Nothing 79Dim tempArray As ImmutableArray(Of SynthesizedLocal) = Nothing 86ImmutableArray(Of BoundExpression).Empty,
Lowering\LocalRewriter\LocalRewriter_LocalDeclaration.vb (8)
218ImmutableArray(Of BoundExpression).Empty, 286ImmutableArray(Of BoundExpression).Empty, 301Dim locals As ImmutableArray(Of LocalSymbol) 302Dim statementsInTry As ImmutableArray(Of BoundStatement) 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 (13)
25Dim temporaries As ImmutableArray(Of SynthesizedLocal) = Nothing 26Dim copyBack As ImmutableArray(Of BoundExpression) = Nothing 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) 303Dim sequenceTemporaries As ImmutableArray(Of LocalSymbol) 335sequenceTemporaries = ImmutableArray(Of LocalSymbol).Empty
Lowering\LocalRewriter\LocalRewriter_Query.vb (5)
81Dim nodeRangeVariables As ImmutableArray(Of RangeVariableSymbol) = node.RangeVariables 128rangeVariables As ImmutableArray(Of RangeVariableSymbol), 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 (8)
67caseBlocks As ImmutableArray(Of BoundCaseBlock), 84Dim tempLocals As ImmutableArray(Of LocalSymbol) = Nothing 198<Out()> ByRef tempLocals As ImmutableArray(Of LocalSymbol), 200caseBlocks As ImmutableArray(Of BoundCaseBlock), 246tempLocals = ImmutableArray(Of LocalSymbol).Empty 256caseBlocks As ImmutableArray(Of BoundCaseBlock), 272Dim unstructuredExceptionHandlingResumeTarget As ImmutableArray(Of BoundStatement) = Nothing 321<Out()> ByRef unstructuredExceptionHandlingResumeTarget As ImmutableArray(Of BoundStatement)
Lowering\LocalRewriter\LocalRewriter_StringConcat.vb (1)
281loweredArgs As ImmutableArray(Of BoundExpression)) As BoundExpression
Lowering\LocalRewriter\LocalRewriter_SyncLock.vb (8)
108Dim locals As ImmutableArray(Of LocalSymbol) 111Dim tryStatements As ImmutableArray(Of BoundStatement) 130ImmutableArray(Of LocalSymbol).Empty, 137ImmutableArray(Of LocalSymbol).Empty, 145Dim rewrittenSyncLock = RewriteTryStatement(syntaxNode, tryBody, ImmutableArray(Of BoundCatchBlock).Empty, finallyBody, Nothing) 173Dim parameters As ImmutableArray(Of BoundExpression) 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 (2)
70catchBlocks As ImmutableArray(Of BoundCatchBlock), 78catchBlocks = ImmutableArray(Of BoundCatchBlock).Empty
Lowering\LocalRewriter\LocalRewriter_TupleLiteralExpression.vb (9)
20Dim rewrittenArguments As ImmutableArray(Of BoundExpression) = VisitList(node.Arguments) 30Private Function RewriteTupleCreationExpression(node As BoundTupleExpression, rewrittenArguments As ImmutableArray(Of BoundExpression)) As BoundExpression 34Private Function MakeTupleCreationExpression(syntax As SyntaxNode, type As NamedTypeSymbol, rewrittenArguments As ImmutableArray(Of BoundExpression)) As BoundExpression 44Dim smallestCtorArguments As ImmutableArray(Of BoundExpression) = ImmutableArray.Create(rewrittenArguments, 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) 88Dim ctorArguments As ImmutableArray(Of BoundExpression) = ImmutableArray.Create(rewrittenArguments,
Lowering\LocalRewriter\LocalRewriter_UnstructuredExceptionHandling.vb (4)
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) 613Private Function RegisterUnstructuredExceptionHandlingResumeTarget(syntax As SyntaxNode, canThrow As Boolean) As ImmutableArray(Of BoundStatement)
Lowering\LocalRewriter\LocalRewriter_Using.vb (6)
80Dim locals As ImmutableArray(Of LocalSymbol) = node.Locals 147Dim statements As ImmutableArray(Of BoundStatement) = currentBody.Statements 242Dim finallyStatements As ImmutableArray(Of BoundStatement) 252locals:=ImmutableArray(Of LocalSymbol).Empty, 256Dim tryFinally = RewriteTryStatement(resourceSyntax, newBody, ImmutableArray(Of BoundCatchBlock).Empty, finallyBlock, exitLabelOpt:=Nothing) 260locals:=ImmutableArray(Of LocalSymbol).Empty,
Lowering\LocalRewriter\LocalRewriter_While.vb (2)
20Dim conditionResumeTarget As ImmutableArray(Of BoundStatement) = Nothing 54Optional conditionResumeTargetOpt As ImmutableArray(Of BoundStatement) = Nothing,
Lowering\LocalRewriter\LocalRewriter_With.vb (2)
53locals As ImmutableArray(Of LocalSymbol), 54initializers As ImmutableArray(Of BoundExpression),
Lowering\LocalRewriter\LocalRewriter_XmlLiteralFixupData.vb (1)
44Public Function MaterializeAndFree() As ImmutableArray(Of LocalWithInitialization)
Lowering\LocalRewriter\LocalRewriter_XmlLiterals.vb (2)
166Dim origSideEffects As ImmutableArray(Of BoundExpression) = rewriterInfo.SideEffects 344items As ImmutableArray(Of BoundExpression)) As BoundExpression
Lowering\MethodToClassRewriter\MethodToClassRewriter.MyBaseMyClassWrapper.vb (10)
120New BoundBlock(syntax, Nothing, ImmutableArray(Of LocalSymbol).Empty, 155Private ReadOnly _typeParameters As ImmutableArray(Of TypeParameterSymbol) 156Private ReadOnly _parameters As ImmutableArray(Of ParameterSymbol) 158Private ReadOnly _locations As ImmutableArray(Of Location) 179Me._typeParameters = ImmutableArray(Of TypeParameterSymbol).Empty 231Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of TypeParameterSymbol) 237Public Overrides ReadOnly Property TypeArguments As ImmutableArray(Of TypeSymbol) 243Return ImmutableArray(Of TypeSymbol).Empty 248Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 254Public Overrides ReadOnly Property Parameters As ImmutableArray(Of ParameterSymbol)
Lowering\MethodToClassRewriter\MethodToClassRewriter.vb (2)
116Dim arguments As ImmutableArray(Of BoundExpression) = node.Arguments 137Dim arguments As ImmutableArray(Of BoundExpression) = VisitList(node.Arguments)
Lowering\Rewriter.vb (2)
24<Out> ByRef codeCoverageSpans As ImmutableArray(Of SourceSpan), 69codeCoverageSpans = If(codeCoverageInstrumenter IsNot Nothing, codeCoverageInstrumenter.DynamicAnalysisSpans, ImmutableArray(Of SourceSpan).Empty)
Lowering\StateMachineRewriter\StateMachineRewriter.StateMachineMethodToClassRewriter.vb (5)
247Private Function PossibleStateMachineScope(locals As ImmutableArray(Of LocalSymbol), wrapped As BoundNode) As BoundNode 291Friend Function MakeStateMachineScope(hoistedLocals As ImmutableArray(Of FieldSymbol), statement As BoundStatement) As BoundBlock 298Friend Function TryUnwrapBoundStateMachineScope(ByRef statement As BoundStatement, <Out> ByRef hoistedLocals As ImmutableArray(Of FieldSymbol)) As Boolean 310hoistedLocals = ImmutableArray(Of FieldSymbol).Empty 385Dim catchBlocks As ImmutableArray(Of BoundCatchBlock) = Me.VisitList(node.CatchBlocks)
Lowering\StateMachineRewriter\StateMachineTypeSymbol.vb (4)
16Private _attributes As ImmutableArray(Of VisualBasicAttributeData) 24originalInterfaces As ImmutableArray(Of NamedTypeSymbol)) 62Public NotOverridable Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData) 82If(builder Is Nothing, ImmutableArray(Of VisualBasicAttributeData).Empty, builder.ToImmutableAndFree()),
Lowering\StateMachineRewriter\SynthesizedContainer.vb (22)
25Private ReadOnly _typeParameters As ImmutableArray(Of TypeParameterSymbol) 26Private ReadOnly _interfaces As ImmutableArray(Of NamedTypeSymbol) 41originalInterfaces As ImmutableArray(Of NamedTypeSymbol)) 50Me._typeParameters = ImmutableArray(Of TypeParameterSymbol).Empty 118Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of TypeParameterSymbol) 178Friend NotOverridable Overrides Function GetAppliedConditionalSymbols() As ImmutableArray(Of String) 179Return ImmutableArray(Of String).Empty 210Friend Overrides Function MakeAcyclicInterfaces(diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol) 214Friend Overrides Function MakeDeclaredInterfaces(basesBeingResolved As BasesBeingResolved, diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol) 218Public Overloads Overrides Function GetMembers() As ImmutableArray(Of Symbol) 223Public Overrides Function GetMembers(name As String) As ImmutableArray(Of Symbol) 225ImmutableArray.Create(Of Symbol)(Me.Constructor), ImmutableArray(Of Symbol).Empty) 250Public NotOverridable Overrides Function GetTypeMembers() As ImmutableArray(Of NamedTypeSymbol) 251Return ImmutableArray(Of NamedTypeSymbol).Empty 254Public NotOverridable Overrides Function GetTypeMembers(name As String) As ImmutableArray(Of NamedTypeSymbol) 255Return ImmutableArray(Of NamedTypeSymbol).Empty 258Public NotOverridable Overrides Function GetTypeMembers(name As String, arity As Integer) As ImmutableArray(Of NamedTypeSymbol) 259Return ImmutableArray(Of NamedTypeSymbol).Empty 268Public NotOverridable Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 270Return ImmutableArray(Of Location).Empty 274Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 276Return ImmutableArray(Of SyntaxReference).Empty
Lowering\StateMachineRewriter\SynthesizedStateMachineMethod.vb (10)
22Private ReadOnly _parameters As ImmutableArray(Of ParameterSymbol) 23Private ReadOnly _locations As ImmutableArray(Of Location) 72Public Overrides ReadOnly Property TypeArguments As ImmutableArray(Of TypeSymbol) 74Return ImmutableArray(Of TypeSymbol).Empty 78Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 84Public Overrides ReadOnly Property Parameters As ImmutableArray(Of ParameterSymbol) 139Public Overrides ReadOnly Property ExplicitInterfaceImplementations As ImmutableArray(Of MethodSymbol) 185Private _attributes As ImmutableArray(Of VisualBasicAttributeData) 202Public Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData) 224If(builder Is Nothing, ImmutableArray(Of VisualBasicAttributeData).Empty, builder.ToImmutableAndFree()),
Lowering\StateMachineRewriter\SynthesizedStateMachineProperty.vb (7)
58Public Overrides ReadOnly Property ExplicitInterfaceImplementations As ImmutableArray(Of PropertySymbol) 76Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 78Return ImmutableArray(Of SyntaxReference).Empty 94Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 96Return ImmutableArray(Of Location).Empty 112Public Overrides ReadOnly Property Parameters As ImmutableArray(Of ParameterSymbol) 124Public Overrides ReadOnly Property TypeCustomModifiers As ImmutableArray(Of CustomModifier)
Lowering\SyntheticBoundNodeFactory.vb (28)
315Public Function Block(statements As ImmutableArray(Of BoundStatement)) As BoundBlock 316Return Block(ImmutableArray(Of LocalSymbol).Empty, statements) 319Public Function Block(locals As ImmutableArray(Of LocalSymbol), statements As ImmutableArray(Of BoundStatement)) As BoundBlock 326Return Block(ImmutableArray(Of BoundStatement).Empty) 333Public Function Block(locals As ImmutableArray(Of LocalSymbol), ParamArray statements As BoundStatement()) As BoundBlock 338Return StatementList(ImmutableArray(Of BoundStatement).Empty) 341Public Function StatementList(statements As ImmutableArray(Of BoundStatement)) As BoundStatementList 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) 593Public Function [Call](receiver As BoundExpression, method As MethodSymbol, args As ImmutableArray(Of BoundExpression)) As BoundCall 665Public Function Sequence(temps As ImmutableArray(Of LocalSymbol), ParamArray parts As BoundExpression()) As BoundExpression 682Return Sequence(ImmutableArray(Of LocalSymbol).Empty, parts) 685Public Function Sequence(locals As ImmutableArray(Of LocalSymbol), sideEffects As ImmutableArray(Of BoundExpression), result As BoundExpression) As BoundExpression 709Private Sub CheckSwitchSections(sections As ImmutableArray(Of BoundCaseBlock)) 792Public Function ArrayAccess(array As BoundExpression, isLValue As Boolean, indices As ImmutableArray(Of BoundExpression)) As BoundArrayAccess 865Public Function TypeArguments(typeArgs As ImmutableArray(Of TypeSymbol)) As BoundTypeArguments 1035Public Function Array(elementType As TypeSymbol, elements As ImmutableArray(Of BoundExpression)) As BoundExpression 1042Public Function Array(elementType As TypeSymbol, bounds As ImmutableArray(Of BoundExpression), elements As ImmutableArray(Of BoundExpression)) As BoundExpression 1090catchBlocks As ImmutableArray(Of BoundCatchBlock), 1097Public Function CatchBlocks(ParamArray blocks() As BoundCatchBlock) As ImmutableArray(Of BoundCatchBlock) 1130CompilationState.AddSynthesizedMethod(Me.CurrentMethod, body, stateMachineType:=Nothing, ImmutableArray(Of StateMachineStateDebugInfo).Empty) 1134Public Function SpillSequence(locals As ImmutableArray(Of LocalSymbol), fields As ImmutableArray(Of FieldSymbol), statements As ImmutableArray(Of BoundStatement), valueOpt As BoundExpression) As BoundSpillSequence
Lowering\UseTwiceRewriter.vb (13)
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, 366Dim firstArgs As ImmutableArray(Of BoundExpression) 367Dim secondArgs As ImmutableArray(Of BoundExpression) 369firstArgs = ImmutableArray(Of BoundExpression).Empty 370secondArgs = ImmutableArray(Of BoundExpression).Empty 427Dim firstArgs As ImmutableArray(Of BoundExpression) 428Dim secondArgs As ImmutableArray(Of BoundExpression) 430firstArgs = ImmutableArray(Of BoundExpression).Empty 431secondArgs = ImmutableArray(Of BoundExpression).Empty
Lowering\WithExpressionRewriter.vb (6)
20Public Sub New(expression As BoundExpression, locals As ImmutableArray(Of LocalSymbol), initializers As ImmutableArray(Of BoundExpression), capturedLvalueByRefCallOrProperty As BoundExpression) 31Public ReadOnly Locals As ImmutableArray(Of LocalSymbol) 34Public ReadOnly Initializers As ImmutableArray(Of BoundExpression) 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\IBoundNodeWithIOperationChildren.vb (1)
15ReadOnly Property Children As ImmutableArray(Of BoundNode)
Operations\VisualBasicOperationFactory.vb (67)
321Dim children As ImmutableArray(Of IOperation) = GetIOperationChildren(boundNode) 331Public Function CreateFromArray(Of TBoundNode As BoundNode, TOperation As {Class, IOperation})(nodeArray As ImmutableArray(Of TBoundNode)) As ImmutableArray(Of TOperation) 340Friend Function GetIOperationChildren(boundNode As BoundNode) As ImmutableArray(Of IOperation) 343Return ImmutableArray(Of IOperation).Empty 365Dim children As ImmutableArray(Of IOperation) = GetIOperationChildren(boundAssignmentOperator) 449Dim arguments As ImmutableArray(Of IArgumentOperation) = DeriveArguments(boundCall) 671Dim children As ImmutableArray(Of IOperation) = ImmutableArray(Of IOperation).Empty 809Dim arguments As ImmutableArray(Of IOperation) = CreateFromArray(Of BoundExpression, IOperation)(boundLateInvocation.ArgumentsOpt) 810Dim argumentNames As ImmutableArray(Of String) = boundLateInvocation.ArgumentNamesOpt 811Dim argumentRefKinds As ImmutableArray(Of RefKind) = Nothing 822Dim arguments as ImmutableArray(Of IArgumentOperation) = DeriveArguments(boundObjectCreationExpression) 832Dim initializers As ImmutableArray(Of IOperation) = CreateFromArray(Of BoundExpression, IOperation)(boundObjectInitializerExpression.Initializers) 840Dim initializers As ImmutableArray(Of IOperation) = CreateFromArray(Of BoundExpression, IOperation)(boundCollectionInitializerExpression.Initializers) 864Dim dimensionSizes As ImmutableArray(Of IOperation) = CreateFromArray(Of BoundExpression, IOperation)(boundArrayCreation.Bounds) 873Dim elementValues As ImmutableArray(Of IOperation) = CreateFromArray(Of BoundExpression, IOperation)(boundArrayInitialization.Initializers) 884Dim arguments as ImmutableArray(Of IArgumentOperation) = DeriveArguments(boundPropertyAccess) 970Dim typeArguments As ImmutableArray(Of ITypeSymbol) = ImmutableArray(Of ITypeSymbol).Empty 972typeArguments = ImmutableArray(Of ITypeSymbol).CastUp(boundLateMemberAccess.TypeArgumentsOpt.Arguments) 991Dim initializedFields As ImmutableArray(Of IFieldSymbol) = boundFieldInitializer.InitializedFields.As(Of IFieldSymbol) 995Return New FieldInitializerOperation(initializedFields, ImmutableArray(Of ILocalSymbol).Empty, value, _semanticModel, syntax, isImplicit) 999Dim initializedProperties As ImmutableArray(Of IPropertySymbol) = boundPropertyInitializer.InitializedProperties.As(Of IPropertySymbol) 1003Return New PropertyInitializerOperation(initializedProperties, ImmutableArray(Of ILocalSymbol).Empty, value, _semanticModel, syntax, isImplicit) 1011Return New ParameterInitializerOperation(parameter, ImmutableArray(Of ILocalSymbol).Empty, value, _semanticModel, syntax, isImplicit) 1075Dim cases As ImmutableArray(Of ISwitchCaseOperation) = CreateFromArray(Of BoundCaseBlock, ISwitchCaseOperation)(boundSelectStatement.CaseBlocks) 1079Return New SwitchOperation(ImmutableArray(Of ILocalSymbol).Empty, value, cases, exitLabel, _semanticModel, syntax, isImplicit) 1082Friend Function CreateBoundCaseBlockClauses(boundCaseBlock As BoundCaseBlock) As ImmutableArray(Of ICaseClauseOperation) 1098Friend Function CreateBoundCaseBlockBody(boundCaseBlock As BoundCaseBlock) As ImmutableArray(Of IOperation) 1107Dim clauses As ImmutableArray(Of ICaseClauseOperation) = CreateBoundCaseBlockClauses(boundCaseBlock) 1108Dim body As ImmutableArray(Of IOperation) = ImmutableArray.Create(Create(boundCaseBlock.Body)) 1113Return New SwitchCaseOperation(clauses, body, ImmutableArray(Of ILocalSymbol).Empty, condition, _semanticModel, syntax, isImplicit) 1145Dim locals As ImmutableArray(Of ILocalSymbol) = ImmutableArray(Of ILocalSymbol).Empty 1161Dim nextVariables As ImmutableArray(Of IOperation) = If(boundForToStatement.NextVariablesOpt.IsDefault, 1162ImmutableArray(Of IOperation).Empty, 1164Dim locals As ImmutableArray(Of ILocalSymbol) = If(boundForToStatement.DeclaredOrInferredLocalOpt IsNot Nothing, 1166ImmutableArray(Of ILocalSymbol).Empty) 1192Dim getEnumeratorArguments As ImmutableArray(Of BoundExpression) = Nothing 1194Dim moveNextArguments As ImmutableArray(Of BoundExpression) = Nothing 1196Dim currentArguments As ImmutableArray(Of BoundExpression) = Nothing 1242ImmutableArray(Of IOperation).Empty, 1245Dim locals As ImmutableArray(Of ILocalSymbol) = If(boundForEachStatement.DeclaredOrInferredLocalOpt IsNot Nothing, 1247ImmutableArray(Of ILocalSymbol).Empty) 1259New VariableDeclaratorOperation(localOpt, initializer:=Nothing, ignoredArguments:=ImmutableArray(Of IOperation).Empty, semanticModel:=_semanticModel, syntax:=controlVariable.Syntax, isImplicit:=boundForStatement.WasCompilerGenerated), 1265Dim catches As ImmutableArray(Of ICatchClauseOperation) = CreateFromArray(Of BoundCatchBlock, ICatchClauseOperation)(boundTryStatement.CatchBlocks) 1277Return New VariableDeclaratorOperation(boundCatchBlock.LocalOpt, initializer:=Nothing, ignoredArguments:=ImmutableArray(Of IOperation).Empty, semanticModel:=_semanticModel, syntax:=boundCatchBlock.ExceptionSourceOpt.Syntax, isImplicit:=False) 1288Dim locals As ImmutableArray(Of ILocalSymbol) = If(boundCatchBlock.LocalOpt IsNot Nothing, 1290ImmutableArray(Of ILocalSymbol).Empty) 1297Dim operations As ImmutableArray(Of IOperation) = CreateFromArray(Of BoundStatement, IOperation)(boundBlock.Statements) 1298Dim locals As ImmutableArray(Of ILocalSymbol) = boundBlock.Locals.As(Of ILocalSymbol)() 1347Dim locals As ImmutableArray(Of ILocalSymbol) = ImmutableArray(Of ILocalSymbol).Empty 1358Dim declarations As ImmutableArray(Of IVariableDeclarationOperation) = GetVariableDeclarationStatementVariables(boundDimStatement.LocalDeclarations) 1365Dim declarations As ImmutableArray(Of IVariableDeclarationOperation) = 1466Dim locals As ImmutableArray(Of ILocalSymbol) = ImmutableArray(Of ILocalSymbol).CastUp(boundUsingStatement.Locals) 1553Dim elements As ImmutableArray(Of IOperation) = CreateFromArray(Of BoundExpression, IOperation)(boundTupleExpression.Arguments) 1561Dim parts As ImmutableArray(Of IInterpolatedStringContentOperation) = CreateBoundInterpolatedStringContentOperation(boundInterpolatedString.Contents) 1569Friend Function CreateBoundInterpolatedStringContentOperation(parts As ImmutableArray(Of BoundNode)) As ImmutableArray(Of IInterpolatedStringContentOperation) 1598Dim initializers As ImmutableArray(Of IOperation) = GetAnonymousTypeCreationInitializers(boundAnonymousTypeCreationExpression) 1612Dim arguments = ImmutableArray(Of IArgumentOperation).Empty 1671arguments:=ImmutableArray(Of IArgumentOperation).Empty, 1683Dim clauses As ImmutableArray(Of IReDimClauseOperation) = CreateFromArray(Of BoundRedimClause, IReDimClauseOperation)(boundRedimStatement.Clauses) 1697Dim dimensionSizes As ImmutableArray(Of IOperation) = CreateFromArray(Of BoundExpression, IOperation)(boundRedimClause.Indices)
Operations\VisualBasicOperationFactory_Methods.vb (21)
152Return OperationFactory.CreateInvalidOperation(_semanticModel, [operator].UnderlyingExpression.Syntax, ImmutableArray(Of IOperation).Empty, isImplicit) 169Friend Function DeriveArguments(boundNode As BoundNode) As ImmutableArray(Of IArgumentOperation) 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)) 194Friend Function DeriveArguments(boundArguments As ImmutableArray(Of BoundExpression), parameters As ImmutableArray(Of VisualBasic.Symbols.ParameterSymbol), ByRef defaultArguments As BitVector) As ImmutableArray(Of IArgumentOperation) 209parameters As ImmutableArray(Of VisualBasic.Symbols.ParameterSymbol), 298Return OperationFactory.CreateInvalidOperation(_semanticModel, parent.Syntax, ImmutableArray(Of IOperation).Empty, isImplicit) 310Friend Function GetAnonymousTypeCreationInitializers(expression As BoundAnonymousTypeCreationExpression) As ImmutableArray(Of IOperation) 333ImmutableArray(Of IArgumentOperation).Empty, 382Friend Function GetVariableDeclarationStatementVariables(declarations As ImmutableArray(Of BoundLocalDeclarationBase)) As ImmutableArray(Of IVariableDeclarationOperation) 406Dim declarators As ImmutableArray(Of IVariableDeclaratorOperation) = Nothing 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 468Private Function GetUsingStatementDeclaration(resourceList As ImmutableArray(Of BoundLocalDeclarationBase), syntax As SyntaxNode) As IVariableDeclarationGroupOperation
PredefinedPreprocessorSymbols.vb (5)
23Public Function AddPredefinedPreprocessorSymbols(kind As OutputKind, symbols As IEnumerable(Of KeyValuePair(Of String, Object))) As ImmutableArray(Of KeyValuePair(Of String, Object)) 33Public Function AddPredefinedPreprocessorSymbols(kind As OutputKind, ParamArray symbols As KeyValuePair(Of String, Object)()) As ImmutableArray(Of KeyValuePair(Of String, Object)) 43Public Function AddPredefinedPreprocessorSymbols(kind As OutputKind, symbols As ImmutableArray(Of KeyValuePair(Of String, Object))) As ImmutableArray(Of KeyValuePair(Of String, Object)) 52symbols = ImmutableArray(Of KeyValuePair(Of String, Object)).Empty
Semantics\AccessCheck.vb (3)
493Dim candidates As ImmutableArray(Of TypeSymbol) 499candidates = ImmutableArray(Of TypeSymbol).CastUp(DirectCast(derived, NamedTypeSymbol).GetDeclaredInterfacesNoUseSiteDiagnostics(basesBeingResolved)) 501candidates = ImmutableArray(Of TypeSymbol).CastUp(derived.InterfacesNoUseSiteDiagnostics)
Semantics\Conversions.vb (13)
1268Dim targetElementTypes As ImmutableArray(Of TypeSymbol) = destination.GetElementTypesOfTupleOrCompatible() 1390Dim lambdaParams As ImmutableArray(Of ParameterSymbol) = source.LambdaSymbol.Parameters 1391Dim invokeParams As ImmutableArray(Of ParameterSymbol) = invoke.Parameters 1550Dim lambdaParams As ImmutableArray(Of ParameterSymbol) = source.Parameters 1556Dim invokeParams As ImmutableArray(Of ParameterSymbol) = invoke.Parameters 2764Dim typeParameters As ImmutableArray(Of TypeParameterSymbol) = source.TypeParameters 2765Dim sourceArguments As ImmutableArray(Of TypeSymbol) = source.TypeArgumentsWithDefinitionUseSiteDiagnostics(useSiteInfo) 2766Dim destinationArguments As ImmutableArray(Of TypeSymbol) = destination.TypeArgumentsWithDefinitionUseSiteDiagnostics(useSiteInfo) 3581Dim targetElementTypes As ImmutableArray(Of TypeSymbol) = destination.GetElementTypesOfTupleOrCompatible() 4173parameters As ImmutableArray(Of ParameterSymbol), 4184parameters As ImmutableArray(Of ParameterSymbol), 4537Friend Overrides ReadOnly Property InterfacesNoUseSiteDiagnostics As ImmutableArray(Of NamedTypeSymbol) 4549Public Overrides ReadOnly Property CustomModifiers As ImmutableArray(Of CustomModifier)
Semantics\Operators.vb (9)
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) 3314Public Overrides ReadOnly Property CustomModifiers As ImmutableArray(Of CustomModifier) 3320Public Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier) 3326Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 3328Return ImmutableArray(Of SyntaxReference).Empty 3428Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 3430Return ImmutableArray(Of Location).Empty
Semantics\OverloadResolution.vb (77)
35Friend MustOverride Function Construct(typeArguments As ImmutableArray(Of TypeSymbol)) As Candidate 89Public MustOverride ReadOnly Property TypeParameters As ImmutableArray(Of TypeParameterSymbol) 161Friend Overrides Function Construct(typeArguments As ImmutableArray(Of TypeSymbol)) As Candidate 205Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of TypeParameterSymbol) 310Friend Overrides Function Construct(typeArguments As ImmutableArray(Of TypeSymbol)) As Candidate 354Private ReadOnly _parameters As ImmutableArray(Of ParameterSymbol) 357Public Sub New(method As MethodSymbol, parameters As ImmutableArray(Of ParameterSymbol), returnType As TypeSymbol) 400Friend Overrides Function Construct(typeArguments As ImmutableArray(Of TypeSymbol)) As Candidate 444Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of TypeParameterSymbol) 446Return ImmutableArray(Of TypeParameterSymbol).Empty 567Public ReadOnly Dependencies As ImmutableArray(Of AssemblySymbol) 569Public Sub New(value As BoundExpression, conversion As KeyValuePair(Of ConversionKind, MethodSymbol), dependencies As ImmutableArray(Of AssemblySymbol)) 743Public ArgsToParamsOpt As ImmutableArray(Of Integer) 746Public ConversionsOpt As ImmutableArray(Of KeyValuePair(Of ConversionKind, MethodSymbol)) 747Public ConversionsBackOpt As ImmutableArray(Of KeyValuePair(Of ConversionKind, MethodSymbol)) 751Public OptionalArguments As ImmutableArray(Of OptionalArgument) 777Private ReadOnly _allResults As ImmutableArray(Of CandidateAnalysisResult) 780Public ReadOnly AsyncLambdaSubToFunctionMismatch As ImmutableArray(Of BoundExpression) 783Public Sub New(allResults As ImmutableArray(Of CandidateAnalysisResult), resolutionIsLateBound As Boolean, 790ImmutableArray(Of BoundExpression).Empty, 798Public ReadOnly Property Candidates As ImmutableArray(Of CandidateAnalysisResult) 826Private Shared Function GetBestResult(allResults As ImmutableArray(Of CandidateAnalysisResult)) As CandidateAnalysisResult? 855arguments As ImmutableArray(Of BoundExpression), 856argumentNames As ImmutableArray(Of String), 894arguments As ImmutableArray(Of BoundExpression), 918arguments As ImmutableArray(Of BoundExpression), 919argumentNames As ImmutableArray(Of String), 932Dim typeArguments = If(methodGroup.TypeArgumentsOpt IsNot Nothing, methodGroup.TypeArgumentsOpt.Arguments, ImmutableArray(Of TypeSymbol).Empty) 936typeArguments = ImmutableArray(Of TypeSymbol).Empty 940arguments = ImmutableArray(Of BoundExpression).Empty 948Dim methods As ImmutableArray(Of MethodSymbol) = methodGroup.Methods 1080arguments As ImmutableArray(Of BoundExpression), 1081argumentNames As ImmutableArray(Of String), 1089Dim properties As ImmutableArray(Of PropertySymbol) = propertyGroup.Properties 1092arguments = ImmutableArray(Of BoundExpression).Empty 1111CollectOverloadedCandidates(binder, results, candidates, ImmutableArray(Of TypeSymbol).Empty, 1155arguments As ImmutableArray(Of BoundExpression), 1156argumentNames As ImmutableArray(Of String), 1368argumentNames As ImmutableArray(Of String), 1430argumentNames As ImmutableArray(Of String), 1588arguments As ImmutableArray(Of BoundExpression), 1680arguments As ImmutableArray(Of BoundExpression), 1716arguments As ImmutableArray(Of BoundExpression), 1793arguments As ImmutableArray(Of BoundExpression), 1845arguments As ImmutableArray(Of BoundExpression), 2068arguments As ImmutableArray(Of BoundExpression), 2277arguments As ImmutableArray(Of BoundExpression), 2533arguments As ImmutableArray(Of BoundExpression), 2586arguments As ImmutableArray(Of BoundExpression), 2689arguments As ImmutableArray(Of BoundExpression), 2948arguments As ImmutableArray(Of BoundExpression), 2949argumentNames As ImmutableArray(Of String), 3033arguments As ImmutableArray(Of BoundExpression), 3034argumentNames As ImmutableArray(Of String), 3215arguments As ImmutableArray(Of BoundExpression), 3216argumentNames As ImmutableArray(Of String), 3850typeArguments As ImmutableArray(Of TypeSymbol), 3851arguments As ImmutableArray(Of BoundExpression), 3852argumentNames As ImmutableArray(Of String), 4057typeArguments As ImmutableArray(Of TypeSymbol), 4058arguments As ImmutableArray(Of BoundExpression), 4145typeArguments As ImmutableArray(Of TypeSymbol), 4146arguments As ImmutableArray(Of BoundExpression), 4147argumentNames As ImmutableArray(Of String), 4243typeArguments As ImmutableArray(Of TypeSymbol), 4244arguments As ImmutableArray(Of BoundExpression), 4245argumentNames As ImmutableArray(Of String), 4282argumentNames As ImmutableArray(Of String), 4601arguments As ImmutableArray(Of BoundExpression), 4800arguments As ImmutableArray(Of BoundExpression), 4951Dim leftTypeArguments As ImmutableArray(Of TypeSymbol) = leftNamedType.TypeArgumentsNoUseSiteDiagnostics 4952Dim rightTypeArguments As ImmutableArray(Of TypeSymbol) = rightNamedType.TypeArgumentsNoUseSiteDiagnostics 5254arguments As ImmutableArray(Of BoundExpression), 5255argumentNames As ImmutableArray(Of String), 5270Dim typeArguments As ImmutableArray(Of TypeSymbol) = Nothing 5276Dim typeArgumentsLocation As ImmutableArray(Of SyntaxNodeOrToken) = Nothing 5358Private Shared Function ConstructIfNeedTo(candidate As Candidate, typeArguments As ImmutableArray(Of TypeSymbol)) As Candidate
Semantics\TypeInference\TypeArgumentInference.vb (22)
20arguments As ImmutableArray(Of BoundExpression), 25ByRef typeArguments As ImmutableArray(Of TypeSymbol), 31<Out> ByRef typeArgumentsLocation As ImmutableArray(Of SyntaxNodeOrToken), 451Dim lambdaParameters As ImmutableArray(Of ParameterSymbol) = unboundLambda.Parameters 452Dim delegateParameters As ImmutableArray(Of ParameterSymbol) = invokeMethod.Parameters 606Public ReadOnly Arguments As ImmutableArray(Of BoundExpression) 619Private ReadOnly _typeParameterNodes As ImmutableArray(Of TypeParameterNode) 624arguments As ImmutableArray(Of BoundExpression), 698arguments As ImmutableArray(Of BoundExpression), 703ByRef typeArguments As ImmutableArray(Of TypeSymbol), 709<Out> ByRef typeArgumentsLocation As ImmutableArray(Of SyntaxNodeOrToken), 915Dim arguments As ImmutableArray(Of BoundExpression) = Me.Arguments 1097Dim elementTypes As ImmutableArray(Of TypeSymbol) = Nothing 1195Dim delegateParameters As ImmutableArray(Of ParameterSymbol) = invoke.Parameters 1196Dim lambdaParameters As ImmutableArray(Of ParameterSymbol) 1319Dim elementTypes As ImmutableArray(Of TypeSymbol) = Nothing 1393Dim parameterElementTypes As ImmutableArray(Of TypeSymbol) = Nothing 1394Dim argumentElementTypes As ImmutableArray(Of TypeSymbol) = Nothing 1685Dim argumentParams As ImmutableArray(Of ParameterSymbol) = argumentInvokeProc.Parameters 1686Dim parameterParams As ImmutableArray(Of ParameterSymbol) = parameterInvokeProc.Parameters 2061Dim lambdaParams As ImmutableArray(Of ParameterSymbol) 2074Dim delegateParams As ImmutableArray(Of ParameterSymbol) = invokeMethod.Parameters
Semantics\TypeInference\TypeInferenceCollection.vb (3)
622Dim names1 As ImmutableArray(Of String) = VisualBasicCompilation.TupleNamesEncoder.Encode(first) 623Dim names2 As ImmutableArray(Of String) = VisualBasicCompilation.TupleNamesEncoder.Encode(second) 625Dim mergedNames As ImmutableArray(Of String)
SourceGeneration\VisualBasicGeneratorDriver.vb (6)
22Friend Sub New(parseOptions As VisualBasicParseOptions, generators As ImmutableArray(Of ISourceGenerator), optionsProvider As AnalyzerConfigOptionsProvider, additionalTexts As ImmutableArray(Of AdditionalText), driverOptions As GeneratorDriverOptions) 40Public Shared Function Create(generators As ImmutableArray(Of ISourceGenerator), Optional additionalTexts As ImmutableArray(Of AdditionalText) = Nothing, Optional parseOptions As VisualBasicParseOptions = Nothing, Optional analyzerConfigOptionsProvider As AnalyzerConfigOptionsProvider = Nothing, Optional driverOptions As GeneratorDriverOptions = Nothing) As VisualBasicGeneratorDriver 46Public Shared Function Create(generators As ImmutableArray(Of ISourceGenerator), additionalTexts As ImmutableArray(Of AdditionalText), parseOptions As VisualBasicParseOptions, analyzerConfigOptionsProvider As AnalyzerConfigOptionsProvider) As VisualBasicGeneratorDriver
src\Compilers\VisualBasic\BasicAnalyzerDriver\VisualBasicDeclarationComputer.vb (1)
70builder.Add(New DeclarationInfo(name, ImmutableArray(Of SyntaxNode).Empty, declaredSymbol))
SymbolDisplay\SymbolDisplay.vb (3)
78Optional format As SymbolDisplayFormat = Nothing) As ImmutableArray(Of SymbolDisplayPart) 98Optional format As SymbolDisplayFormat = Nothing) As ImmutableArray(Of SymbolDisplayPart) 107minimal As Boolean) As ImmutableArray(Of SymbolDisplayPart)
SymbolDisplay\SymbolDisplayVisitor.Members.vb (2)
571Private Sub AddCustomModifiersIfRequired(customModifiers As ImmutableArray(Of CustomModifier), Optional leadingSpace As Boolean = True, Optional trailingSpace As Boolean = False) 658Private Sub AddParametersIfRequired(isExtensionMethod As Boolean, parameters As ImmutableArray(Of IParameterSymbol))
SymbolDisplay\SymbolDisplayVisitor.Types.vb (2)
383Dim elements As ImmutableArray(Of IFieldSymbol) = symbol.TupleElements 481Private Sub AddTypeArguments(typeArguments As ImmutableArray(Of ITypeSymbol),
Symbols\AliasSymbol.vb (3)
58Private ReadOnly _aliasLocations As ImmutableArray(Of Location) 118Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 133Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference)
Symbols\AnonymousTypes\AnonymousTypeDescriptor.vb (6)
28Public ReadOnly Fields As ImmutableArray(Of AnonymousTypeField) 43Public ReadOnly Property Parameters As ImmutableArray(Of AnonymousTypeField) 49Public Sub New(fields As ImmutableArray(Of AnonymousTypeField), location As Location, isImplicitlyDeclared As Boolean) 56Friend Shared Function ComputeKey(Of T)(fields As ImmutableArray(Of T), getName As Func(Of T, String), getIsKey As Func(Of T, Boolean)) As String 95Dim myFields As ImmutableArray(Of AnonymousTypeField) = Me.Fields 97Dim otherFields As ImmutableArray(Of AnonymousTypeField) = other.Fields
Symbols\AnonymousTypes\AnonymousTypeExtensions.vb (1)
12Friend Function IsSubDescription(fields As ImmutableArray(Of AnonymousTypeField)) As Boolean
Symbols\AnonymousTypes\AnonymousTypeManager_Templates.vb (2)
123Dim parameters As ImmutableArray(Of AnonymousTypeField) = delegateDescr.Parameters 286Friend ReadOnly Property AllCreatedTemplates As ImmutableArray(Of NamedTypeSymbol)
Symbols\AnonymousTypes\PublicSymbols\AnonymousDelegate_TypePublicSymbol.vb (5)
21Private ReadOnly _members As ImmutableArray(Of SynthesizedDelegateMethodSymbol) 31Dim parameterDescriptors As ImmutableArray(Of AnonymousTypeField) = typeDescr.Parameters 137Public Overrides Function GetMembers() As ImmutableArray(Of Symbol) 158Friend Overrides Function MakeAcyclicInterfaces(diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol) 159Return ImmutableArray(Of NamedTypeSymbol).Empty
Symbols\AnonymousTypes\PublicSymbols\AnonymousType_PropertyPublicAccessors.vb (2)
68Private ReadOnly _parameters As ImmutableArray(Of ParameterSymbol) 83Public Overrides ReadOnly Property Parameters As ImmutableArray(Of ParameterSymbol)
Symbols\AnonymousTypes\PublicSymbols\AnonymousType_PropertyPublicSymbol.vb (2)
77Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 83Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference)
Symbols\AnonymousTypes\PublicSymbols\AnonymousType_TypePublicSymbol.vb (10)
21Private ReadOnly _properties As ImmutableArray(Of AnonymousTypePropertyPublicSymbol) 22Private ReadOnly _members As ImmutableArray(Of Symbol) 23Private ReadOnly _interfaces As ImmutableArray(Of NamedTypeSymbol) 85_interfaces = ImmutableArray(Of NamedTypeSymbol).Empty 135method.SetParameters(ImmutableArray(Of ParameterSymbol).Empty) 143method.SetParameters(ImmutableArray(Of ParameterSymbol).Empty) 159Public ReadOnly Property Properties As ImmutableArray(Of AnonymousTypePropertyPublicSymbol) 174Public Overrides Function GetMembers() As ImmutableArray(Of Symbol) 182Friend Overrides Function MakeAcyclicInterfaces(diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol) 190Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference)
Symbols\AnonymousTypes\PublicSymbols\AnonymousTypeOrDelegatePublicSymbol.vb (15)
71Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of TypeParameterSymbol) 73Return ImmutableArray(Of TypeParameterSymbol).Empty 123Friend Overrides Function MakeDeclaredInterfaces(basesBeingResolved As BasesBeingResolved, diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol) 127Public Overrides Function GetMembers(name As String) As ImmutableArray(Of Symbol) 152Public Overrides Function GetTypeMembers() As ImmutableArray(Of NamedTypeSymbol) 153Return ImmutableArray(Of NamedTypeSymbol).Empty 156Public Overrides Function GetTypeMembers(name As String) As ImmutableArray(Of NamedTypeSymbol) 157Return ImmutableArray(Of NamedTypeSymbol).Empty 160Public Overrides Function GetTypeMembers(name As String, arity As Integer) As ImmutableArray(Of NamedTypeSymbol) 161Return ImmutableArray(Of NamedTypeSymbol).Empty 170Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 176Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 178Return ImmutableArray(Of SyntaxReference).Empty 218Friend Overrides Function GetAppliedConditionalSymbols() As ImmutableArray(Of String) 219Return ImmutableArray(Of String).Empty
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousDelegate_TemplateSymbol.vb (6)
19Private ReadOnly _members As ImmutableArray(Of SynthesizedDelegateMethodSymbol) 38Dim parameterDescriptors As ImmutableArray(Of AnonymousTypeField) = typeDescr.Parameters 131Public Overrides Function GetMembers() As ImmutableArray(Of Symbol) 149Friend Overrides Function MakeAcyclicInterfaces(diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol) 150Return ImmutableArray(Of NamedTypeSymbol).Empty 210Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType_ConstructorSymbol.vb (2)
16Private ReadOnly _parameters As ImmutableArray(Of ParameterSymbol) 37Public Overrides ReadOnly Property Parameters As ImmutableArray(Of ParameterSymbol)
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType_EqualsMethodSymbol.vb (2)
16Private ReadOnly _parameters As ImmutableArray(Of ParameterSymbol) 56Public Overrides ReadOnly Property Parameters As ImmutableArray(Of ParameterSymbol)
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType_IEquatable_EqualsMethodSymbol.vb (4)
16Private ReadOnly _parameters As ImmutableArray(Of ParameterSymbol) 17Private ReadOnly _interfaceMethod As ImmutableArray(Of MethodSymbol) 62Public Overrides ReadOnly Property Parameters As ImmutableArray(Of ParameterSymbol) 68Public Overrides ReadOnly Property ExplicitInterfaceImplementations As ImmutableArray(Of MethodSymbol)
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType_PropertyAccessors.vb (2)
87Private ReadOnly _parameters As ImmutableArray(Of ParameterSymbol) 102Public Overrides ReadOnly Property Parameters As ImmutableArray(Of ParameterSymbol)
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType_PropertySymbol.vb (12)
59Public Overrides ReadOnly Property Parameters As ImmutableArray(Of ParameterSymbol) 61Return ImmutableArray(Of ParameterSymbol).Empty 65Public Overrides ReadOnly Property TypeCustomModifiers As ImmutableArray(Of CustomModifier) 67Return ImmutableArray(Of CustomModifier).Empty 71Public Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier) 73Return ImmutableArray(Of CustomModifier).Empty 143Public Overrides ReadOnly Property ExplicitInterfaceImplementations As ImmutableArray(Of PropertySymbol) 145Return ImmutableArray(Of PropertySymbol).Empty 195Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 197Return ImmutableArray(Of Location).Empty 201Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 203Return ImmutableArray(Of SyntaxReference).Empty
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType_TemplateSymbol.vb (7)
20Private ReadOnly _properties As ImmutableArray(Of AnonymousTypePropertySymbol) 21Private ReadOnly _members As ImmutableArray(Of Symbol) 22Private ReadOnly _interfaces As ImmutableArray(Of NamedTypeSymbol) 89_interfaces = ImmutableArray(Of NamedTypeSymbol).Empty 108Public ReadOnly Property Properties As ImmutableArray(Of AnonymousTypePropertySymbol) 114Public Overrides Function GetMembers() As ImmutableArray(Of Symbol) 130Friend Overrides Function MakeAcyclicInterfaces(diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol)
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousTypeOrDelegateTemplateSymbol.vb (18)
38Private ReadOnly _typeParameters As ImmutableArray(Of TypeParameterSymbol) 70_typeParameters = ImmutableArray(Of TypeParameterSymbol).Empty 128Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of TypeParameterSymbol) 194Friend Overrides Function GetAppliedConditionalSymbols() As ImmutableArray(Of String) 195Return ImmutableArray(Of String).Empty 222Friend Overrides Function MakeDeclaredInterfaces(basesBeingResolved As BasesBeingResolved, diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol) 226Public Overrides Function GetMembers(name As String) As ImmutableArray(Of Symbol) 251Public Overrides Function GetTypeMembers() As ImmutableArray(Of NamedTypeSymbol) 252Return ImmutableArray(Of NamedTypeSymbol).Empty 255Public Overrides Function GetTypeMembers(name As String) As ImmutableArray(Of NamedTypeSymbol) 256Return ImmutableArray(Of NamedTypeSymbol).Empty 259Public Overrides Function GetTypeMembers(name As String, arity As Integer) As ImmutableArray(Of NamedTypeSymbol) 260Return ImmutableArray(Of NamedTypeSymbol).Empty 269Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 271Return ImmutableArray(Of Location).Empty 275Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 277Return ImmutableArray(Of SyntaxReference).Empty 310Public ReadOnly Names As ImmutableArray(Of String)
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousTypeOrDelegateTypeParameterSymbol.vb (6)
39Friend Overrides ReadOnly Property ConstraintTypesNoUseSiteDiagnostics As ImmutableArray(Of TypeSymbol) 41Return ImmutableArray(Of TypeSymbol).Empty 51Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 53Return ImmutableArray(Of Location).Empty 57Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 59Return ImmutableArray(Of SyntaxReference).Empty
Symbols\ArrayTypeSymbol.vb (52)
26Friend Shared Function CreateVBArray(elementType As TypeSymbol, customModifiers As ImmutableArray(Of CustomModifier), rank As Integer, compilation As VisualBasicCompilation) As ArrayTypeSymbol 33Friend Shared Function CreateVBArray(elementType As TypeSymbol, customModifiers As ImmutableArray(Of CustomModifier), rank As Integer, declaringAssembly As AssemblySymbol) As ArrayTypeSymbol 43customModifiers As ImmutableArray(Of CustomModifier), 45sizes As ImmutableArray(Of Integer), 46lowerBounds As ImmutableArray(Of Integer), 67Friend Shared Function CreateSZArray(elementType As TypeSymbol, customModifiers As ImmutableArray(Of CustomModifier), compilation As VisualBasicCompilation) As ArrayTypeSymbol 71Friend Shared Function CreateSZArray(elementType As TypeSymbol, customModifiers As ImmutableArray(Of CustomModifier), declaringAssembly As AssemblySymbol) As ArrayTypeSymbol 78Private Shared Function GetSZArrayInterfaces(elementType As TypeSymbol, declaringAssembly As AssemblySymbol) As ImmutableArray(Of NamedTypeSymbol) 94Return ImmutableArray(Of NamedTypeSymbol).Empty 100Public MustOverride ReadOnly Property CustomModifiers As ImmutableArray(Of CustomModifier) 122Friend Overridable ReadOnly Property Sizes As ImmutableArray(Of Integer) 124Return ImmutableArray(Of Integer).Empty 133Friend Overridable ReadOnly Property LowerBounds As ImmutableArray(Of Integer) 200Public Overrides Function GetMembers() As ImmutableArray(Of Symbol) 201Return ImmutableArray(Of Symbol).Empty 209Public Overrides Function GetMembers(name As String) As ImmutableArray(Of Symbol) 210Return ImmutableArray(Of Symbol).Empty 218Public Overrides Function GetTypeMembers() As ImmutableArray(Of NamedTypeSymbol) 219Return ImmutableArray(Of NamedTypeSymbol).Empty 228Public Overrides Function GetTypeMembers(name As String) As ImmutableArray(Of NamedTypeSymbol) 229Return ImmutableArray(Of NamedTypeSymbol).Empty 238Public Overrides Function GetTypeMembers(name As String, arity As Integer) As ImmutableArray(Of NamedTypeSymbol) 239Return ImmutableArray(Of NamedTypeSymbol).Empty 283Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 285Return ImmutableArray(Of Location).Empty 295Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 297Return ImmutableArray(Of SyntaxReference).Empty 334Dim [mod] As ImmutableArray(Of CustomModifier) = CustomModifiers 335Dim otherMod As ImmutableArray(Of CustomModifier) = other.CustomModifiers 430Private ReadOnly Property IArrayTypeSymbol_Sizes As ImmutableArray(Of Integer) Implements IArrayTypeSymbol.Sizes 436Private ReadOnly Property IArrayTypeSymbol_LowerBounds As ImmutableArray(Of Integer) Implements IArrayTypeSymbol.LowerBounds 442Private ReadOnly Property IArrayTypeSymbol_CustomModifiers As ImmutableArray(Of CustomModifier) Implements IArrayTypeSymbol.CustomModifiers 478Private ReadOnly _customModifiers As ImmutableArray(Of CustomModifier) 481Public Sub New(elementType As TypeSymbol, customModifiers As ImmutableArray(Of CustomModifier), systemArray As NamedTypeSymbol) 490Public NotOverridable Overrides ReadOnly Property CustomModifiers As ImmutableArray(Of CustomModifier) 522Dim newInterfaces As ImmutableArray(Of NamedTypeSymbol) = Me.InterfacesNoUseSiteDiagnostics 549Private ReadOnly _interfaces As ImmutableArray(Of NamedTypeSymbol) ' Empty or IList(Of ElementType) and possibly IReadOnlyList(Of ElementType) 551Public Sub New(elementType As TypeSymbol, customModifiers As ImmutableArray(Of CustomModifier), systemArray As NamedTypeSymbol, interfaces As ImmutableArray(Of NamedTypeSymbol)) 570Friend Overrides ReadOnly Property InterfacesNoUseSiteDiagnostics As ImmutableArray(Of NamedTypeSymbol) 583Dim newInterfaces As ImmutableArray(Of NamedTypeSymbol) = _interfaces 600Public Sub New(elementType As TypeSymbol, customModifiers As ImmutableArray(Of CustomModifier), rank As Integer, systemArray As NamedTypeSymbol) 619Friend NotOverridable Overrides ReadOnly Property InterfacesNoUseSiteDiagnostics As ImmutableArray(Of NamedTypeSymbol) 621Return ImmutableArray(Of NamedTypeSymbol).Empty 630Public Sub New(elementType As TypeSymbol, customModifiers As ImmutableArray(Of CustomModifier), rank As Integer, systemArray As NamedTypeSymbol) 649Private ReadOnly _sizes As ImmutableArray(Of Integer) 650Private ReadOnly _lowerBounds As ImmutableArray(Of Integer) 654customModifiers As ImmutableArray(Of CustomModifier), 656sizes As ImmutableArray(Of Integer), 657lowerBounds As ImmutableArray(Of Integer), 668Friend Overrides ReadOnly Property Sizes As ImmutableArray(Of Integer) 674Friend Overrides ReadOnly Property LowerBounds As ImmutableArray(Of Integer)
Symbols\AssemblySymbol.vb (13)
127Public MustOverride ReadOnly Property Modules As ImmutableArray(Of ModuleSymbol) 229Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 231Return ImmutableArray(Of SyntaxReference).Empty 438Friend MustOverride Function GetNoPiaResolutionAssemblies() As ImmutableArray(Of AssemblySymbol) 439Friend MustOverride Sub SetNoPiaResolutionAssemblies(assemblies As ImmutableArray(Of AssemblySymbol)) 446Friend MustOverride Function GetLinkedReferencedAssemblies() As ImmutableArray(Of AssemblySymbol) 447Friend MustOverride Sub SetLinkedReferencedAssemblies(assemblies As ImmutableArray(Of AssemblySymbol)) 472Friend MustOverride Function GetInternalsVisibleToPublicKeys(simpleName As String) As IEnumerable(Of ImmutableArray(Of Byte)) 647Dim references As ImmutableArray(Of AssemblySymbol) = Me.Modules(0).GetReferencedAssemblySymbols() 718Friend MustOverride ReadOnly Property PublicKey As ImmutableArray(Of Byte) 767Return ImmutableArray(Of IModuleSymbol).CastUp(Me.Modules) 775Private Function IAssemblySymbol_GetForwardedTypes() As ImmutableArray(Of INamedTypeSymbol) Implements IAssemblySymbol.GetForwardedTypes 803Private Function IAssemblySymbolInternal_GetInternalsVisibleToPublicKeys(simpleName As String) As IEnumerable(Of ImmutableArray(Of Byte)) Implements IAssemblySymbolInternal.GetInternalsVisibleToPublicKeys
Symbols\Attributes\AttributeData.vb (1)
624Public Function IndexOfAttribute(attributes As ImmutableArray(Of VisualBasicAttributeData), description As AttributeDescription) As Integer
Symbols\Attributes\PEAttributeData.vb (2)
72Protected Overrides ReadOnly Property CommonConstructorArguments As ImmutableArray(Of TypedConstant) 85Protected Overrides ReadOnly Property CommonNamedArguments As ImmutableArray(Of KeyValuePair(Of String, TypedConstant))
Symbols\Attributes\RetargetingAttributeData.vb (6)
22Private ReadOnly _constructorArguments As ImmutableArray(Of TypedConstant) 23Private ReadOnly _namedArguments As ImmutableArray(Of KeyValuePair(Of String, TypedConstant)) 28ByVal constructorArguments As ImmutableArray(Of TypedConstant), 29ByVal namedArguments As ImmutableArray(Of KeyValuePair(Of String, TypedConstant))) 58Protected Overrides ReadOnly Property CommonConstructorArguments As ImmutableArray(Of TypedConstant) 64Protected Overrides ReadOnly Property CommonNamedArguments As ImmutableArray(Of KeyValuePair(Of String, TypedConstant))
Symbols\Attributes\SourceAttributeData.vb (6)
25Private ReadOnly _constructorArguments As ImmutableArray(Of TypedConstant) 26Private ReadOnly _namedArguments As ImmutableArray(Of KeyValuePair(Of String, TypedConstant)) 35ByVal constructorArgs As ImmutableArray(Of TypedConstant), 36ByVal namedArgs As ImmutableArray(Of KeyValuePair(Of String, TypedConstant)), 71Protected Overrides ReadOnly Property CommonConstructorArguments As ImmutableArray(Of TypedConstant) 77Protected Overrides ReadOnly Property CommonNamedArguments As ImmutableArray(Of KeyValuePair(Of String, TypedConstant))
Symbols\ConstraintsHelper.vb (5)
97constraints As ImmutableArray(Of TypeParameterConstraint), 100diagnosticsBuilder As ArrayBuilder(Of TypeParameterDiagnosticInfo)) As ImmutableArray(Of TypeParameterConstraint) 449elementLocations As ImmutableArray(Of Location), 617typeParameters As ImmutableArray(Of TypeParameterSymbol), 618typeArguments As ImmutableArray(Of TypeSymbol),
Symbols\CustomModifier.vb (3)
50Friend Shared Function Convert(customModifiers As ImmutableArray(Of ModifierInfo(Of TypeSymbol))) As ImmutableArray(Of CustomModifier) 52Return ImmutableArray(Of CustomModifier).Empty
Symbols\EmbeddedSymbols\Symbols\EmbeddedNamedTypeSymbol.vb (2)
26Dim references As ImmutableArray(Of SyntaxReference) = decl.SyntaxReferences 53Friend Overrides Function GetMembersForCci() As ImmutableArray(Of Symbol)
Symbols\ErrorMethodSymbol.vb (18)
54Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 56Return ImmutableArray(Of SyntaxReference).Empty 60Public Overrides ReadOnly Property ExplicitInterfaceImplementations As ImmutableArray(Of MethodSymbol) 62Return ImmutableArray(Of MethodSymbol).Empty 66Friend Overrides Function GetAppliedConditionalSymbols() As ImmutableArray(Of String) 67Return ImmutableArray(Of String).Empty 184Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 186Return ImmutableArray(Of Location).Empty 202Public Overrides ReadOnly Property Parameters As ImmutableArray(Of ParameterSymbol) 204Return ImmutableArray(Of ParameterSymbol).Empty 220Public Overrides ReadOnly Property ReturnTypeCustomModifiers As ImmutableArray(Of CustomModifier) 222Return ImmutableArray(Of CustomModifier).Empty 226Public Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier) 228Return ImmutableArray(Of CustomModifier).Empty 244Public Overrides ReadOnly Property TypeArguments As ImmutableArray(Of TypeSymbol) 246Return ImmutableArray(Of TypeSymbol).Empty 250Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of TypeParameterSymbol) 252Return ImmutableArray(Of TypeParameterSymbol).Empty
Symbols\ErrorTypeSymbol.vb (29)
48Friend Overrides Function MakeDeclaredInterfaces(basesBeingResolved As BasesBeingResolved, diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol) 49Return ImmutableArray(Of NamedTypeSymbol).Empty 56Friend Overrides Function MakeAcyclicInterfaces(diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol) 57Return ImmutableArray(Of NamedTypeSymbol).Empty 79Public Overrides Function GetMembers() As ImmutableArray(Of Symbol) 80Return ImmutableArray(Of Symbol).Empty 83Public Overrides Function GetMembers(name As String) As ImmutableArray(Of Symbol) 84Return ImmutableArray(Of Symbol).Empty 87Public Overrides Function GetTypeMembers() As ImmutableArray(Of NamedTypeSymbol) 88Return ImmutableArray(Of NamedTypeSymbol).Empty 91Public Overrides Function GetTypeMembers(name As String) As ImmutableArray(Of NamedTypeSymbol) 92Return ImmutableArray(Of NamedTypeSymbol).Empty 95Public Overrides Function GetTypeMembers(name As String, arity As Integer) As ImmutableArray(Of NamedTypeSymbol) 96Return ImmutableArray(Of NamedTypeSymbol).Empty 127Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 129Return ImmutableArray(Of Location).Empty 133Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 135Return ImmutableArray(Of SyntaxReference).Empty 182Friend Overrides ReadOnly Property TypeArgumentsNoUseSiteDiagnostics As ImmutableArray(Of TypeSymbol) 184Return ImmutableArray(Of TypeSymbol).Empty 194Public Overrides Function GetTypeArgumentCustomModifiers(ordinal As Integer) As ImmutableArray(Of CustomModifier) 198Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of TypeParameterSymbol) 200Return ImmutableArray(Of TypeParameterSymbol).Empty 284Friend Overrides Function GetAppliedConditionalSymbols() As ImmutableArray(Of String) 285Return ImmutableArray(Of String).Empty 324Public Overrides Function Construct(typeArguments As ImmutableArray(Of TypeSymbol)) As NamedTypeSymbol 373Public Overridable ReadOnly Property CandidateSymbols As ImmutableArray(Of Symbol) 375Return ImmutableArray(Of Symbol).Empty 422Public ReadOnly Property IErrorTypeSymbol_CandidateSymbols As ImmutableArray(Of ISymbol) Implements IErrorTypeSymbol.CandidateSymbols
Symbols\EventSymbol.vb (6)
87Public Function GetFieldAttributes() As ImmutableArray(Of VisualBasicAttributeData) 89Return If(field Is Nothing, ImmutableArray(Of VisualBasicAttributeData).Empty, field.GetAttributes()) 128Public MustOverride ReadOnly Property ExplicitInterfaceImplementations As ImmutableArray(Of EventSymbol) 140Friend Overridable ReadOnly Property DelegateParameters As ImmutableArray(Of ParameterSymbol) 146Return ImmutableArray(Of ParameterSymbol).Empty 320Private ReadOnly Property IEventSymbol_ExplicitInterfaceImplementations As ImmutableArray(Of IEventSymbol) Implements IEventSymbol.ExplicitInterfaceImplementations
Symbols\ExtendedErrorTypeSymbol.vb (4)
24Private ReadOnly _candidateSymbols As ImmutableArray(Of Symbol) 46candidateSymbols As ImmutableArray(Of Symbol), 87_candidateSymbols = ImmutableArray(Of Symbol).Empty 105Public Overrides ReadOnly Property CandidateSymbols As ImmutableArray(Of Symbol)
Symbols\FieldOrPropertyInitializer.vb (2)
18Public ReadOnly FieldsOrProperties As ImmutableArray(Of Symbol) 68Public Sub New(fieldsOrProperties As ImmutableArray(Of Symbol), syntax As SyntaxReference, precedingInitializersLength As Integer)
Symbols\FieldSymbol.vb (4)
71Public MustOverride ReadOnly Property CustomModifiers As ImmutableArray(Of CustomModifier) 464Private ReadOnly Property IFieldSymbol_RefCustomModifiers As ImmutableArray(Of CustomModifier) Implements IFieldSymbol.RefCustomModifiers 466Return ImmutableArray(Of CustomModifier).Empty 494Private ReadOnly Property IFieldSymbol_CustomModifiers As ImmutableArray(Of CustomModifier) Implements IFieldSymbol.CustomModifiers
Symbols\IndexedTypeParameterSymbol.vb (7)
73Friend Shared Function Take(count As Integer) As ImmutableArray(Of TypeParameterSymbol) 137Friend Overrides ReadOnly Property ConstraintTypesNoUseSiteDiagnostics As ImmutableArray(Of TypeSymbol) 139Return ImmutableArray(Of TypeSymbol).Empty 155Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 157Return ImmutableArray(Of Location).Empty 161Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 163Return ImmutableArray(Of SyntaxReference).Empty
Symbols\InstanceErrorTypeSymbol.vb (14)
19Private _lazyTypeParameters As ImmutableArray(Of TypeParameterSymbol) 26_lazyTypeParameters = ImmutableArray(Of TypeParameterSymbol).Empty 43Public NotOverridable Overrides Function Construct(typeArguments As ImmutableArray(Of TypeSymbol)) As NamedTypeSymbol 104Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of TypeParameterSymbol) 122Friend Overrides ReadOnly Property TypeArgumentsNoUseSiteDiagnostics As ImmutableArray(Of TypeSymbol) 128Public NotOverridable Overrides Function GetTypeArgumentCustomModifiers(ordinal As Integer) As ImmutableArray(Of CustomModifier) 202Friend Overrides ReadOnly Property ConstraintTypesNoUseSiteDiagnostics As ImmutableArray(Of TypeSymbol) 204Return ImmutableArray(Of TypeSymbol).Empty 214Friend Overrides Function GetConstraints() As ImmutableArray(Of TypeParameterConstraint) 215Return ImmutableArray(Of TypeParameterConstraint).Empty 248Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 250Return ImmutableArray(Of Location).Empty 254Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 256Return ImmutableArray(Of SyntaxReference).Empty
Symbols\InstanceTypeSymbol.vb (4)
22Friend NotOverridable Overrides ReadOnly Property TypeArgumentsNoUseSiteDiagnostics As ImmutableArray(Of TypeSymbol) 28Return ImmutableArray(Of TypeSymbol).Empty 33Public NotOverridable Overrides Function GetTypeArgumentCustomModifiers(ordinal As Integer) As ImmutableArray(Of CustomModifier) 52Public NotOverridable Overrides Function Construct(typeArguments As ImmutableArray(Of TypeSymbol)) As NamedTypeSymbol
Symbols\LabelSymbol.vb (4)
68Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 70Return ImmutableArray(Of Location).Empty 151Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 153Return ImmutableArray(Of SyntaxReference).Empty
Symbols\MergedNamespaceSymbol.vb (27)
32Protected ReadOnly _namespacesToMerge As ImmutableArray(Of NamespaceSymbol) 41Private _lazyModuleMembers As ImmutableArray(Of NamedTypeSymbol) 44Private _lazyMembers As ImmutableArray(Of Symbol) 72Private Shared Function Create(extent As AssemblySymbol, containingNamespace As AssemblyMergedNamespaceSymbol, namespacesToMerge As ImmutableArray(Of NamespaceSymbol)) As NamespaceSymbol 182Private Sub New(containingNamespace As MergedNamespaceSymbol, namespacesToMerge As ImmutableArray(Of NamespaceSymbol)) 199Public Overrides ReadOnly Property ConstituentNamespaces As ImmutableArray(Of NamespaceSymbol) 209Private Function SlowGetChildrenOfName(name As String) As ImmutableArray(Of Symbol) 232Protected MustOverride Function CreateChildMergedNamespaceSymbol(nsSymbols As ImmutableArray(Of NamespaceSymbol)) As NamespaceSymbol 280Public Overrides Function GetModuleMembers() As ImmutableArray(Of NamedTypeSymbol) 297Public Overrides Function GetMembers() As ImmutableArray(Of Symbol) 307Public Overrides Function GetMembers(name As String) As ImmutableArray(Of Symbol) 311Friend Overrides Function GetTypeMembersUnordered() As ImmutableArray(Of NamedTypeSymbol) 315Public Overrides Function GetTypeMembers() As ImmutableArray(Of NamedTypeSymbol) 319Public Overrides Function GetTypeMembers(name As String) As ImmutableArray(Of NamedTypeSymbol) 345Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 351Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 405Public Sub New(assembly As AssemblySymbol, containingNamespace As AssemblyMergedNamespaceSymbol, namespacesToMerge As ImmutableArray(Of NamespaceSymbol)) 425Protected Overrides Function CreateChildMergedNamespaceSymbol(nsSymbols As ImmutableArray(Of NamespaceSymbol)) As NamespaceSymbol 440Friend Overrides ReadOnly Property TypesToCheckForExtensionMethods As ImmutableArray(Of NamedTypeSymbol) 461Public Sub New(compilation As VisualBasicCompilation, containingNamespace As CompilationMergedNamespaceSymbol, namespacesToMerge As ImmutableArray(Of NamespaceSymbol)) 481Protected Overrides Function CreateChildMergedNamespaceSymbol(nsSymbols As ImmutableArray(Of NamespaceSymbol)) As NamespaceSymbol 581Friend Overrides ReadOnly Property TypesToCheckForExtensionMethods As ImmutableArray(Of NamedTypeSymbol) 593Public Shared ReadOnly GlobalNamespace As New NamespaceGroupSymbol(Nothing, ImmutableArray(Of NamespaceSymbol).Empty) 595Public Sub New(containingNamespace As NamespaceGroupSymbol, namespacesToMerge As ImmutableArray(Of NamespaceSymbol)) 640Friend Overrides ReadOnly Property TypesToCheckForExtensionMethods As ImmutableArray(Of NamedTypeSymbol) 650Protected Overrides Function CreateChildMergedNamespaceSymbol(nsSymbols As ImmutableArray(Of NamespaceSymbol)) As NamespaceSymbol 697Private Overloads Function Shrink(namespaceArray As ImmutableArray(Of NamespaceSymbol)) As NamespaceGroupSymbol
Symbols\Metadata\PE\MemberRefMetadataDecoder.vb (3)
148Dim customModifiers As ImmutableArray(Of ModifierInfo(Of TypeSymbol)) = Nothing 248Private Shared Function CustomModifiersMatch(candidateReturnTypeCustomModifiers As ImmutableArray(Of CustomModifier), targetReturnTypeCustomModifiers As ImmutableArray(Of ModifierInfo(Of TypeSymbol))) As Boolean
Symbols\Metadata\PE\MetadataDecoder.vb (1)
192Public Shared Function IsOrClosedOverATypeFromAssemblies(this As TypeSymbol, assemblies As ImmutableArray(Of AssemblySymbol)) As Boolean
Symbols\Metadata\PE\PEAssemblySymbol.vb (13)
42Private ReadOnly _modules As ImmutableArray(Of ModuleSymbol) 50Private _noPiaResolutionAssemblies As ImmutableArray(Of AssemblySymbol) 58Private _linkedReferencedAssemblies As ImmutableArray(Of AssemblySymbol) 67Private _lazyCustomAttributes As ImmutableArray(Of VisualBasicAttributeData) 109Friend Overrides ReadOnly Property PublicKey As ImmutableArray(Of Byte) 123Friend Overrides Function GetInternalsVisibleToPublicKeys(simpleName As String) As IEnumerable(Of ImmutableArray(Of Byte)) 131Public Overloads Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData) 138Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 150Public Overrides ReadOnly Property Modules As ImmutableArray(Of ModuleSymbol) 226Friend Overrides Function GetNoPiaResolutionAssemblies() As ImmutableArray(Of AssemblySymbol) 230Friend Overrides Sub SetNoPiaResolutionAssemblies(assemblies As ImmutableArray(Of AssemblySymbol)) 234Friend Overrides Sub SetLinkedReferencedAssemblies(assemblies As ImmutableArray(Of AssemblySymbol)) 238Friend Overrides Function GetLinkedReferencedAssemblies() As ImmutableArray(Of AssemblySymbol)
Symbols\Metadata\PE\PEEventSymbol.vb (7)
37Private _lazyCustomAttributes As ImmutableArray(Of VisualBasicAttributeData) 241Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 247Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 249Return ImmutableArray(Of SyntaxReference).Empty 260Public Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData) 272Public Overrides ReadOnly Property ExplicitInterfaceImplementations As ImmutableArray(Of EventSymbol) 275Return ImmutableArray(Of EventSymbol).Empty
Symbols\Metadata\PE\PEFieldSymbol.vb (10)
41Private _lazyCustomModifiers As ImmutableArray(Of CustomModifier) 44Private _lazyCustomAttributes As ImmutableArray(Of VisualBasicAttributeData) 140Public Overloads Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData) 341Friend Overrides ReadOnly Property MarshallingDescriptor As ImmutableArray(Of Byte) 357Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 363Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 365Return ImmutableArray(Of SyntaxReference).Empty 375Dim customModifiers As ImmutableArray(Of ModifierInfo(Of TypeSymbol)) = Nothing 385Friend Shared Sub GetSignatureParts(fieldInfo As FieldInfo(Of TypeSymbol), ByRef type As TypeSymbol, ByRef customModifiers As ImmutableArray(Of ModifierInfo(Of TypeSymbol))) 404Public Overrides ReadOnly Property CustomModifiers As ImmutableArray(Of CustomModifier)
Symbols\Metadata\PE\PEMethodSymbol.vb (36)
39Private _lazyTypeParameters As ImmutableArray(Of TypeParameterSymbol) 41Private _lazyExplicitMethodImplementations As ImmutableArray(Of MethodSymbol) 220Public _lazyCustomAttributes As ImmutableArray(Of VisualBasicAttributeData) 221Public _lazyConditionalAttributeSymbols As ImmutableArray(Of String) 245retVal._lazyCustomAttributes = ImmutableArray(Of VisualBasicAttributeData).Empty 249retVal._lazyConditionalAttributeSymbols = ImmutableArray(Of String).Empty 264Public ReadOnly Parameters As ImmutableArray(Of ParameterSymbol) 267Public Sub New(signatureHeader As SignatureHeader, parameters As ImmutableArray(Of ParameterSymbol), returnParam As PEParameterSymbol) 539Dim inputParams As ImmutableArray(Of ParameterSymbol) = Parameters 640Public Overloads Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData) 642Dim attributeData As ImmutableArray(Of VisualBasicAttributeData) = Nothing 656Return ImmutableArray(Of VisualBasicAttributeData).Empty 660InterlockedOperations.Initialize(uncommonFields._lazyCustomAttributes, ImmutableArray(Of VisualBasicAttributeData).Empty), 739Friend Overrides ReadOnly Property ReturnValueMarshallingDescriptor As ImmutableArray(Of Byte) 934Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 940Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 942Return ImmutableArray(Of SyntaxReference).Empty 963Public Overrides ReadOnly Property Parameters As ImmutableArray(Of ParameterSymbol) 981Public Overrides ReadOnly Property ReturnTypeCustomModifiers As ImmutableArray(Of CustomModifier) 987Public Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier) 993Public Overrides Function GetReturnTypeAttributes() As ImmutableArray(Of VisualBasicAttributeData) 1045ImmutableArray(Of TypeParameterSymbol).Empty) 1049Dim params As ImmutableArray(Of ParameterSymbol) 1065params = ImmutableArray(Of ParameterSymbol).Empty 1090Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of TypeParameterSymbol) 1102Public Overrides ReadOnly Property TypeArguments As ImmutableArray(Of TypeSymbol) 1107Return ImmutableArray(Of TypeSymbol).Empty 1112Private Function EnsureTypeParametersAreLoaded(ByRef errorInfo As DiagnosticInfo) As ImmutableArray(Of TypeParameterSymbol) 1121Private Function LoadTypeParameters(ByRef errorInfo As DiagnosticInfo) As ImmutableArray(Of TypeParameterSymbol) 1128Return ImmutableArray(Of TypeParameterSymbol).Empty 1139Return ImmutableArray(Of TypeParameterSymbol).Empty 1150Public Overrides ReadOnly Property ExplicitInterfaceImplementations As ImmutableArray(Of MethodSymbol) 1318Friend Overrides Function GetAppliedConditionalSymbols() As ImmutableArray(Of String) 1321Dim conditionalSymbols As ImmutableArray(Of String) = moduleSymbol.Module.GetConditionalAttributeValues(_handle) 1333Return ImmutableArray(Of String).Empty 1337InterlockedOperations.Initialize(uncommonFields._lazyConditionalAttributeSymbols, ImmutableArray(Of String).Empty),
Symbols\Metadata\PE\PEModuleSymbol.vb (16)
70Friend ReadOnly MetadataLocation As ImmutableArray(Of MetadataLocation) = 75Private _lazyCustomAttributes As ImmutableArray(Of VisualBasicAttributeData) 77Private _lazyAssemblyAttributes As ImmutableArray(Of VisualBasicAttributeData) 141Public Overloads Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData) 149Friend Function GetAssemblyAttributes() As ImmutableArray(Of VisualBasicAttributeData) 181ImmutableArray(Of VisualBasicAttributeData).Empty), 187Friend Function GetCustomAttributesForToken(token As EntityHandle) As ImmutableArray(Of VisualBasicAttributeData) 195Optional filterOut2 As AttributeDescription = Nothing) As ImmutableArray(Of VisualBasicAttributeData) 236Return ImmutableArray(Of VisualBasicAttributeData).Empty 239Friend Sub LoadCustomAttributes(token As EntityHandle, ByRef lazyCustomAttributes As ImmutableArray(Of VisualBasicAttributeData)) 240Dim attributes As ImmutableArray(Of VisualBasicAttributeData) = GetCustomAttributesForToken(token) 260Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 273typesDict As Dictionary(Of String, ImmutableArray(Of PENamedTypeSymbol)) 310Friend Overrides Function GetHash(algorithmId As AssemblyHashAlgorithm) As ImmutableArray(Of Byte) 393Dim assemblyAttributes As ImmutableArray(Of VisualBasicAttributeData) = GetAssemblyAttributes() 404Dim assemblyAttributes As ImmutableArray(Of VisualBasicAttributeData) = GetAssemblyAttributes()
Symbols\Metadata\PE\PENamedTypeSymbol.vb (36)
26Private Shared ReadOnly s_emptyNestedTypes As Dictionary(Of String, ImmutableArray(Of PENamedTypeSymbol)) = 27New Dictionary(Of String, ImmutableArray(Of PENamedTypeSymbol))(IdentifierComparison.Comparer) 44Private _lazyNestedTypes As Dictionary(Of String, ImmutableArray(Of PENamedTypeSymbol)) 56Private _lazyMembers As Dictionary(Of String, ImmutableArray(Of Symbol)) 58Private _lazyTypeParameters As ImmutableArray(Of TypeParameterSymbol) 62Private _lazyCustomAttributes As ImmutableArray(Of VisualBasicAttributeData) 63Private _lazyConditionalAttributeSymbols As ImmutableArray(Of String) 153_lazyTypeParameters = ImmutableArray(Of TypeParameterSymbol).Empty 270Friend Overrides Function MakeDeclaredInterfaces(basesBeingResolved As BasesBeingResolved, diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol) 276Return ImmutableArray(Of NamedTypeSymbol).Empty 314Friend Overrides Function MakeAcyclicInterfaces(diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol) 315Dim declaredInterfaces As ImmutableArray(Of NamedTypeSymbol) = GetDeclaredInterfacesNoUseSiteDiagnostics(Nothing) 412Public Overloads Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData) 504Public Overloads Overrides Function GetMembers() As ImmutableArray(Of Symbol) 511Friend Overrides Function GetMembersUnordered() As ImmutableArray(Of Symbol) 688Dim membersDict As New Dictionary(Of String, ImmutableArray(Of Symbol))(CaseInsensitiveComparison.Comparer) 700Dim weMembers As ImmutableArray(Of Symbol) = Nothing 720Dim symbols As ImmutableArray(Of Symbol) = Nothing 756Public Overloads Overrides Function GetMembers(name As String) As ImmutableArray(Of Symbol) 760Dim m As ImmutableArray(Of Symbol) = Nothing 766Return ImmutableArray(Of Symbol).Empty 769Friend Overrides Function GetTypeMembersUnordered() As ImmutableArray(Of NamedTypeSymbol) 775Public Overloads Overrides Function GetTypeMembers() As ImmutableArray(Of NamedTypeSymbol) 802Public Overloads Overrides Function GetTypeMembers(name As String) As ImmutableArray(Of NamedTypeSymbol) 805Dim t As ImmutableArray(Of PENamedTypeSymbol) = Nothing 811Return ImmutableArray(Of NamedTypeSymbol).Empty 814Public Overloads Overrides Function GetTypeMembers(name As String, arity As Integer) As ImmutableArray(Of NamedTypeSymbol) 818Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 824Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 826Return ImmutableArray(Of SyntaxReference).Empty 842Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of TypeParameterSymbol) 1277Private Shared Function GroupByName(symbols As ArrayBuilder(Of PENamedTypeSymbol)) As Dictionary(Of String, ImmutableArray(Of PENamedTypeSymbol)) 1447Friend Overrides Function GetAppliedConditionalSymbols() As ImmutableArray(Of String) 1449Dim conditionalSymbols As ImmutableArray(Of String) = ContainingPEModule.Module.GetConditionalAttributeValues(_handle) 1546Private Shared Function GetIndexOfFirstMember(members As ImmutableArray(Of Symbol), kind As SymbolKind) As Integer 1560Private Overloads Shared Iterator Function GetMembers(Of TSymbol As Symbol)(members As ImmutableArray(Of Symbol), kind As SymbolKind, Optional offset As Integer = -1) As IEnumerable(Of TSymbol)
Symbols\Metadata\PE\PENamespaceSymbol.vb (25)
27Protected m_lazyMembers As Dictionary(Of String, ImmutableArray(Of Symbol)) 33Protected m_lazyTypes As Dictionary(Of String, ImmutableArray(Of PENamedTypeSymbol)) 42Private _lazyModules As ImmutableArray(Of NamedTypeSymbol) 45Private _lazyFlattenedTypes As ImmutableArray(Of NamedTypeSymbol) 48Private _lazyFlattenedNamespacesAndTypes As ImmutableArray(Of Symbol) 56Public Overrides Function GetModuleMembers() As ImmutableArray(Of NamedTypeSymbol) 71Public Overrides Function GetModuleMembers(name As String) As ImmutableArray(Of NamedTypeSymbol) 76Public NotOverridable Overloads Overrides Function GetMembers() As ImmutableArray(Of Symbol) 91Public NotOverridable Overloads Overrides Function GetMembers(name As String) As ImmutableArray(Of Symbol) 94Dim m As ImmutableArray(Of Symbol) = Nothing 100Return ImmutableArray(Of Symbol).Empty 103Public NotOverridable Overloads Overrides Function GetTypeMembers() As ImmutableArray(Of NamedTypeSymbol) 116Public NotOverridable Overloads Overrides Function GetTypeMembers(name As String) As ImmutableArray(Of NamedTypeSymbol) 119Dim t As ImmutableArray(Of PENamedTypeSymbol) = Nothing 125Return ImmutableArray(Of NamedTypeSymbol).Empty 128Public Overloads Overrides Function GetTypeMembers(name As String, arity As Integer) As ImmutableArray(Of NamedTypeSymbol) 132Public NotOverridable Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 138Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 140Return ImmutableArray(Of SyntaxReference).Empty 201Dim members As New Dictionary(Of String, ImmutableArray(Of Symbol))(CaseInsensitiveComparison.Comparer) 211For Each typeSymbols As ImmutableArray(Of PENamedTypeSymbol) In m_lazyTypes.Values 213Dim symbols As ImmutableArray(Of Symbol) = Nothing 268Dim typesDict As Dictionary(Of String, ImmutableArray(Of PENamedTypeSymbol)) = 297Friend Overrides ReadOnly Property TypesToCheckForExtensionMethods As ImmutableArray(Of NamedTypeSymbol) 305Return ImmutableArray(Of NamedTypeSymbol).Empty
Symbols\Metadata\PE\PEParameterSymbol.vb (27)
42Private _lazyCustomAttributes As ImmutableArray(Of VisualBasicAttributeData) 65Private _lazyHiddenAttributes As ImmutableArray(Of VisualBasicAttributeData) 81refCustomModifiers As ImmutableArray(Of CustomModifier), 89customModifiers As ImmutableArray(Of CustomModifier) 138refCustomModifiers As ImmutableArray(Of ModifierInfo(Of TypeSymbol)), 141customModifiers As ImmutableArray(Of ModifierInfo(Of TypeSymbol)), 175_lazyCustomAttributes = ImmutableArray(Of VisualBasicAttributeData).Empty 176_lazyHiddenAttributes = ImmutableArray(Of VisualBasicAttributeData).Empty 207Private ReadOnly _customModifiers As ImmutableArray(Of CustomModifier) 208Private ReadOnly _refCustomModifiers As ImmutableArray(Of CustomModifier) 214refCustomModifiers As ImmutableArray(Of CustomModifier), 222customModifiers As ImmutableArray(Of CustomModifier) 237refCustomModifiers As ImmutableArray(Of ModifierInfo(Of TypeSymbol)), 240customModifiers As ImmutableArray(Of ModifierInfo(Of TypeSymbol)), 251Public Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier) 257Public Overrides ReadOnly Property CustomModifiers As ImmutableArray(Of CustomModifier) 358Public Overloads Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData) 402ImmutableInterlocked.InterlockedInitialize(_lazyHiddenAttributes, ImmutableArray(Of VisualBasicAttributeData).Empty) 412ImmutableInterlocked.InterlockedInitialize(_lazyHiddenAttributes, ImmutableArray(Of VisualBasicAttributeData).Empty) 454Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 460Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 462Return ImmutableArray(Of SyntaxReference).Empty 502Public Overrides ReadOnly Property CustomModifiers As ImmutableArray(Of CustomModifier) 504Return ImmutableArray(Of CustomModifier).Empty 508Public Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier) 510Return ImmutableArray(Of CustomModifier).Empty 527Friend Overrides ReadOnly Property MarshallingDescriptor As ImmutableArray(Of Byte)
Symbols\Metadata\PE\PEPropertyOrEventHelpers.vb (1)
31Dim implementedAccessors As ImmutableArray(Of MethodSymbol) = accessor.ExplicitInterfaceImplementations
Symbols\Metadata\PE\PEPropertySymbol.vb (19)
28Private ReadOnly _parameters As ImmutableArray(Of ParameterSymbol) 34Private _lazyCustomAttributes As ImmutableArray(Of VisualBasicAttributeData) 277Public Overrides ReadOnly Property Parameters As ImmutableArray(Of ParameterSymbol) 295Public Overrides ReadOnly Property TypeCustomModifiers As ImmutableArray(Of CustomModifier) 297Return ImmutableArray(Of CustomModifier).Empty 301Public Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier) 303Return ImmutableArray(Of CustomModifier).Empty 331Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 337Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 339Return ImmutableArray(Of SyntaxReference).Empty 350Public Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData) 362Public Overrides ReadOnly Property ExplicitInterfaceImplementations As ImmutableArray(Of PropertySymbol) 365Return ImmutableArray(Of PropertySymbol).Empty 458ByRef parametersMatch As Boolean) As ImmutableArray(Of ParameterSymbol) 463Return ImmutableArray(Of ParameterSymbol).Empty 644Private ReadOnly _typeCustomModifiers As ImmutableArray(Of CustomModifier) 645Private ReadOnly _refCustomModifiers As ImmutableArray(Of CustomModifier) 665Public Overrides ReadOnly Property TypeCustomModifiers As ImmutableArray(Of CustomModifier) 671Public Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier)
Symbols\Metadata\PE\PETypeParameterSymbol.vb (9)
29Private _lazyCustomAttributes As ImmutableArray(Of VisualBasicAttributeData) 37Private _lazyConstraintTypes As ImmutableArray(Of TypeSymbol) 144Public Overloads Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData) 152Friend Overrides ReadOnly Property ConstraintTypesNoUseSiteDiagnostics As ImmutableArray(Of TypeSymbol) 166Private Function GetDeclaredConstraints(<Out> ByRef hasUnmanagedModreqPattern As Boolean) As ImmutableArray(Of TypeParameterConstraint) 249Dim modifiers As ImmutableArray(Of ModifierInfo(Of TypeSymbol)) = Nothing 273Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 279Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 281Return ImmutableArray(Of SyntaxReference).Empty
Symbols\Metadata\PE\SymbolFactory.vb (10)
19customModifiers As ImmutableArray(Of ModifierInfo(Of TypeSymbol)), 20sizes As ImmutableArray(Of Integer), 21lowerBounds As ImmutableArray(Of Integer) 49Friend Overrides Function GetSZArrayTypeSymbol(moduleSymbol As PEModuleSymbol, elementType As TypeSymbol, customModifiers As ImmutableArray(Of ModifierInfo(Of TypeSymbol))) As TypeSymbol 64Friend Overrides Function MakePointerTypeSymbol(moduleSymbol As PEModuleSymbol, type As TypeSymbol, customModifiers As ImmutableArray(Of ModifierInfo(Of TypeSymbol))) As TypeSymbol 71arguments As ImmutableArray(Of KeyValuePair(Of TypeSymbol, ImmutableArray(Of ModifierInfo(Of TypeSymbol)))), 72refersToNoPiaLocalType As ImmutableArray(Of Boolean) 90Dim linkedAssemblies As ImmutableArray(Of AssemblySymbol) = moduleSymbol.ContainingAssembly.GetLinkedReferencedAssemblies() 148Friend Overrides Function MakeFunctionPointerTypeSymbol(moduleSymbol As PEModuleSymbol, callingConvention As Cci.CallingConvention, retAndParamTypes As ImmutableArray(Of ParamInfo(Of TypeSymbol))) As TypeSymbol
Symbols\Metadata\PE\TupleTypeDecoder.vb (9)
60Private ReadOnly _elementNames As ImmutableArray(Of String) 68Private Sub New(elementNames As ImmutableArray(Of String)) 80Dim elementNames As ImmutableArray(Of String) = Nothing 94elementNames As ImmutableArray(Of String)) As TypeSymbol 100elementNames As ImmutableArray(Of String), 223Private Shared Function Construct(type As NamedTypeSymbol, newTypeArgs As ImmutableArray(Of TypeWithModifiers)) As NamedTypeSymbol 237Private Function DecodeTypeArguments(typeArgs As ImmutableArray(Of TypeSymbol)) As ImmutableArray(Of TypeSymbol) 266Private Function EatElementNamesIfAvailable(numberOfElements As Integer) As ImmutableArray(Of String)
Symbols\MetadataOrSourceAssemblySymbol.vb (1)
140Dim publicKeys As IEnumerable(Of ImmutableArray(Of Byte)) = potentialGiverOfAccess.GetInternalsVisibleToPublicKeys(Me.Name)
Symbols\MethodSignatureComparer.vb (11)
442refCustomModifiers1 As ImmutableArray(Of CustomModifier), 446refCustomModifiers2 As ImmutableArray(Of CustomModifier), 485Private Shared Function SubstituteModifiers(typeSubstitution As TypeSubstitution, customModifiers As ImmutableArray(Of CustomModifier)) As ImmutableArray(Of CustomModifier) 494params1 As ImmutableArray(Of ParameterSymbol), 496params2 As ImmutableArray(Of ParameterSymbol), 504Dim longerParameters As ImmutableArray(Of ParameterSymbol) 674Private Shared Function GetRefModifiers(typeSubstitution As TypeSubstitution, param As ParameterSymbol) As ImmutableArray(Of CustomModifier) 715Public Shared Function HaveSameParameterTypes(params1 As ImmutableArray(Of ParameterSymbol), typeSubstitution1 As TypeSubstitution, 716params2 As ImmutableArray(Of ParameterSymbol), typeSubstitution2 As TypeSubstitution, 937Private Shared Sub SubstituteConstraintTypes(constraintTypes As ImmutableArray(Of TypeSymbol), result As ArrayBuilder(Of TypeSymbol), substitution As TypeSubstitution)
Symbols\MethodSymbol.vb (30)
68Public MustOverride ReadOnly Property TypeParameters As ImmutableArray(Of TypeParameterSymbol) 75Public MustOverride ReadOnly Property TypeArguments As ImmutableArray(Of TypeSymbol) 158Public MustOverride ReadOnly Property ReturnTypeCustomModifiers As ImmutableArray(Of CustomModifier) 163Public MustOverride ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier) 168Public Overridable Function GetReturnTypeAttributes() As ImmutableArray(Of VisualBasicAttributeData) 169Return ImmutableArray(Of VisualBasicAttributeData).Empty 195Public MustOverride ReadOnly Property Parameters As ImmutableArray(Of ParameterSymbol) 251Friend MustOverride Function GetAppliedConditionalSymbols() As ImmutableArray(Of String) 349Public Overridable ReadOnly Property HandledEvents As ImmutableArray(Of HandledEvent) 351Return ImmutableArray(Of HandledEvent).Empty 358Public MustOverride ReadOnly Property ExplicitInterfaceImplementations As ImmutableArray(Of MethodSymbol) 611Protected Sub CheckCanConstructAndTypeArguments(typeArguments As ImmutableArray(Of TypeSymbol)) 622Public Overridable Function Construct(typeArguments As ImmutableArray(Of TypeSymbol)) As MethodSymbol 804Friend Overridable ReadOnly Property FixedTypeParameters As ImmutableArray(Of KeyValuePair(Of TypeParameterSymbol, TypeSymbol)) 806Return ImmutableArray(Of KeyValuePair(Of TypeParameterSymbol, TypeSymbol)).Empty 935Private ReadOnly Property IMethodSymbol_ExplicitInterfaceImplementations As ImmutableArray(Of IMethodSymbol) Implements IMethodSymbol.ExplicitInterfaceImplementations 1001Private ReadOnly Property IMethodSymbol_Parameters As ImmutableArray(Of IParameterSymbol) Implements IMethodSymbol.Parameters 1003Return ImmutableArray(Of IParameterSymbol).CastUp(Me.Parameters) 1007Private ReadOnly Property IMethodSymbolInternal_Parameters As ImmutableArray(Of IParameterSymbolInternal) Implements IMethodSymbolInternal.Parameters 1009Return ImmutableArray(Of IParameterSymbolInternal).CastUp(Me.Parameters) 1104Private ReadOnly Property IMethodSymbol_UnmanagedCallingConventionTypes As ImmutableArray(Of INamedTypeSymbol) Implements IMethodSymbol.UnmanagedCallingConventionTypes 1106Return ImmutableArray(Of INamedTypeSymbol).Empty 1110Private ReadOnly Property IMethodSymbol_TypeArguments As ImmutableArray(Of ITypeSymbol) Implements IMethodSymbol.TypeArguments 1116Private ReadOnly Property IMethodSymbol_TypeArgumentsNullableAnnotation As ImmutableArray(Of NullableAnnotation) Implements IMethodSymbol.TypeArgumentNullableAnnotations 1122Private ReadOnly Property IMethodSymbol_TypeParameters As ImmutableArray(Of ITypeParameterSymbol) Implements IMethodSymbol.TypeParameters 1152Private ReadOnly Property IMethodSymbol_RefCustomModifiers As ImmutableArray(Of CustomModifier) Implements IMethodSymbol.RefCustomModifiers 1158Private ReadOnly Property IMethodSymbol_ReturnTypeCustomModifiers As ImmutableArray(Of CustomModifier) Implements IMethodSymbol.ReturnTypeCustomModifiers 1164Private Function IMethodSymbol_GetReturnTypeAttributes() As ImmutableArray(Of AttributeData) Implements IMethodSymbol.GetReturnTypeAttributes 1176Private Function IMethodSymbol_Construct(typeArguments As ImmutableArray(Of ITypeSymbol), typeArgumentNullableAnnotations As ImmutableArray(Of CodeAnalysis.NullableAnnotation)) As IMethodSymbol Implements IMethodSymbol.Construct
Symbols\MethodSymbolExtensions.vb (2)
47Friend Function GetParameterSymbol(parameters As ImmutableArray(Of ParameterSymbol), parameter As ParameterSyntax) As ParameterSymbol 97Friend Function ConstructIfGeneric(method As MethodSymbol, typeArguments As ImmutableArray(Of TypeSymbol)) As MethodSymbol
Symbols\MissingAssemblySymbol.vb (13)
27Private _lazyModules As ImmutableArray(Of ModuleSymbol) 63Friend Overrides ReadOnly Property PublicKey As ImmutableArray(Of Byte) 69Public Overrides ReadOnly Property Modules As ImmutableArray(Of ModuleSymbol) 109Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 111Return ImmutableArray(Of Location).Empty 115Friend Overrides Sub SetLinkedReferencedAssemblies(assemblies As ImmutableArray(Of AssemblySymbol)) 119Friend Overrides Function GetLinkedReferencedAssemblies() As ImmutableArray(Of AssemblySymbol) 120Return ImmutableArray(Of AssemblySymbol).Empty 123Friend Overrides Sub SetNoPiaResolutionAssemblies(assemblies As ImmutableArray(Of AssemblySymbol)) 127Friend Overrides Function GetNoPiaResolutionAssemblies() As ImmutableArray(Of AssemblySymbol) 128Return ImmutableArray(Of AssemblySymbol).Empty 131Friend Overrides Function GetInternalsVisibleToPublicKeys(simpleName As String) As IEnumerable(Of ImmutableArray(Of Byte)) 132Return SpecializedCollections.EmptyEnumerable(Of ImmutableArray(Of Byte))()
Symbols\MissingModuleSymbol.vb (6)
94Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 96Return ImmutableArray(Of Location).Empty 122Friend Overrides Function GetReferencedAssemblies() As ImmutableArray(Of AssemblyIdentity) 123Return ImmutableArray(Of AssemblyIdentity).Empty 126Friend Overrides Function GetReferencedAssemblySymbols() As ImmutableArray(Of AssemblySymbol) 127Return ImmutableArray(Of AssemblySymbol).Empty
Symbols\MissingNamespaceSymbol.vb (20)
85Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 87Return ImmutableArray(Of Location).Empty 91Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 93Return ImmutableArray(Of SyntaxReference).Empty 97Public Overrides Function GetTypeMembers() As ImmutableArray(Of NamedTypeSymbol) 98Return ImmutableArray(Of NamedTypeSymbol).Empty 101Public Overrides Function GetTypeMembers(name As String) As ImmutableArray(Of NamedTypeSymbol) 102Return ImmutableArray(Of NamedTypeSymbol).Empty 105Public Overrides Function GetTypeMembers(name As String, arity As Integer) As ImmutableArray(Of NamedTypeSymbol) 106Return ImmutableArray(Of NamedTypeSymbol).Empty 109Public Overrides Function GetModuleMembers() As ImmutableArray(Of NamedTypeSymbol) 110Return ImmutableArray(Of NamedTypeSymbol).Empty 113Public Overrides Function GetModuleMembers(name As String) As ImmutableArray(Of NamedTypeSymbol) 114Return ImmutableArray(Of NamedTypeSymbol).Empty 117Public Overrides Function GetMembers() As ImmutableArray(Of Symbol) 118Return ImmutableArray(Of Symbol).Empty 121Public Overrides Function GetMembers(name As String) As ImmutableArray(Of Symbol) 122Return ImmutableArray(Of Symbol).Empty 142Friend Overrides ReadOnly Property TypesToCheckForExtensionMethods As ImmutableArray(Of NamedTypeSymbol) 144Return ImmutableArray(Of NamedTypeSymbol).Empty
Symbols\ModuleSymbol.vb (9)
80Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 82Return ImmutableArray(Of SyntaxReference).Empty 123Public ReadOnly Property ReferencedAssemblies As ImmutableArray(Of AssemblyIdentity) Implements IModuleSymbol.ReferencedAssemblies 143Friend MustOverride Function GetReferencedAssemblies() As ImmutableArray(Of AssemblyIdentity) ' TODO: Remove this method and make ReferencedAssemblies property abstract instead. 150Public ReadOnly Property ReferencedAssemblySymbols As ImmutableArray(Of AssemblySymbol) 165Friend MustOverride Function GetReferencedAssemblySymbols() As ImmutableArray(Of AssemblySymbol) ' TODO: Remove this method and make ReferencedAssemblySymbols property abstract instead. 252Friend Overridable Function GetHash(algorithmId As AssemblyHashAlgorithm) As ImmutableArray(Of Byte) 307Private ReadOnly Property IModuleSymbol_ReferencedAssemblySymbols As ImmutableArray(Of IAssemblySymbol) Implements IModuleSymbol.ReferencedAssemblySymbols 309Return ImmutableArray(Of IAssemblySymbol).CastUp(ReferencedAssemblySymbols)
Symbols\NamedTypeSymbol.vb (53)
52Public MustOverride ReadOnly Property TypeParameters As ImmutableArray(Of TypeParameterSymbol) 59Public MustOverride Function GetTypeArgumentCustomModifiers(ordinal As Integer) As ImmutableArray(Of CustomModifier) 61Friend Function GetEmptyTypeArgumentCustomModifiers(ordinal As Integer) As ImmutableArray(Of CustomModifier) 66Return ImmutableArray(Of CustomModifier).Empty 76Friend MustOverride ReadOnly Property TypeArgumentsNoUseSiteDiagnostics As ImmutableArray(Of TypeSymbol) 78Friend Function TypeArgumentsWithDefinitionUseSiteDiagnostics(<[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As ImmutableArray(Of TypeSymbol) 236Dim methods As ImmutableArray(Of Symbol) = GetMembers(WellKnownMemberNames.DelegateInvokeName) 332Select New KeyValuePair(Of String, ImmutableArray(Of Symbol))(name, Me.GetMembers(name))) 375Select New KeyValuePair(Of String, ImmutableArray(Of Symbol))(name, Me.GetMembers(name))) 382Public ReadOnly Property InstanceConstructors As ImmutableArray(Of MethodSymbol) 391Public ReadOnly Property SharedConstructors As ImmutableArray(Of MethodSymbol) 400Public ReadOnly Property Constructors As ImmutableArray(Of MethodSymbol) 406Private Function GetConstructors(Of TMethodSymbol As {IMethodSymbol, Class})(includeInstance As Boolean, includeShared As Boolean) As ImmutableArray(Of TMethodSymbol) 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 489Public MustOverride Function Construct(typeArguments As ImmutableArray(Of TypeSymbol)) As NamedTypeSymbol 492Protected Sub CheckCanConstructAndTypeArguments(typeArguments As ImmutableArray(Of TypeSymbol)) 607Public MustOverride Overrides Function GetMembers() As ImmutableArray(Of Symbol) 614Public MustOverride Overrides Function GetMembers(name As String) As ImmutableArray(Of Symbol) 621Public MustOverride Overrides Function GetTypeMembers() As ImmutableArray(Of NamedTypeSymbol) 629Public MustOverride Overrides Function GetTypeMembers(name As String) As ImmutableArray(Of NamedTypeSymbol) 637Public MustOverride Overrides Function GetTypeMembers(name As String, arity As Integer) As ImmutableArray(Of NamedTypeSymbol) 682Friend MustOverride Function GetAppliedConditionalSymbols() As ImmutableArray(Of String) 720Private _lazyDeclaredInterfaces As ImmutableArray(Of NamedTypeSymbol) = Nothing 738Friend MustOverride Function MakeDeclaredInterfaces(basesBeingResolved As BasesBeingResolved, diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol) 757Friend Overridable Function GetSimpleNonTypeMembers(name As String) As ImmutableArray(Of Symbol) 777Friend Sub AtomicStoreArrayAndDiagnostics(Of T)(ByRef variable As ImmutableArray(Of T), 778value As ImmutableArray(Of T), 799Friend Overridable Function GetDeclaredInterfacesNoUseSiteDiagnostics(basesBeingResolved As BasesBeingResolved) As ImmutableArray(Of NamedTypeSymbol) 809Friend Function GetDeclaredInterfacesWithDefinitionUseSiteDiagnostics(basesBeingResolved As BasesBeingResolved, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As ImmutableArray(Of NamedTypeSymbol) 819Friend Function GetDirectBaseInterfacesNoUseSiteDiagnostics(basesBeingResolved As BasesBeingResolved) As ImmutableArray(Of NamedTypeSymbol) 827Return ImmutableArray(Of NamedTypeSymbol).Empty 831Friend Overridable Function GetDeclaredBaseInterfacesSafe(basesBeingResolved As BasesBeingResolved) As ImmutableArray(Of NamedTypeSymbol) 855Friend MustOverride Function MakeAcyclicInterfaces(diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol) 858Private _lazyInterfaces As ImmutableArray(Of NamedTypeSymbol) 887Friend NotOverridable Overrides ReadOnly Property InterfacesNoUseSiteDiagnostics As ImmutableArray(Of NamedTypeSymbol) 891Dim acyclicInterfaces As ImmutableArray(Of NamedTypeSymbol) = Me.MakeAcyclicInterfaces(diagnostics) 927Friend Function GetBestKnownInterfacesNoUseSiteDiagnostics() As ImmutableArray(Of NamedTypeSymbol) 1345Private Function INamedTypeSymbolInternal_GetMembers() As ImmutableArray(Of ISymbolInternal) Implements INamedTypeSymbolInternal.GetMembers 1349Private Function INamedTypeSymbolInternal_GetMembers(name As String) As ImmutableArray(Of ISymbolInternal) Implements INamedTypeSymbolInternal.GetMembers 1371Private Function INamedTypeSymbol_GetTypeArgumentCustomModifiers(ordinal As Integer) As ImmutableArray(Of CustomModifier) Implements INamedTypeSymbol.GetTypeArgumentCustomModifiers 1375Private ReadOnly Property INamedTypeSymbol_TypeArguments As ImmutableArray(Of ITypeSymbol) Implements INamedTypeSymbol.TypeArguments 1381Private ReadOnly Property TypeArgumentNullableAnnotations As ImmutableArray(Of NullableAnnotation) Implements INamedTypeSymbol.TypeArgumentNullableAnnotations 1387Private ReadOnly Property INamedTypeSymbol_TypeParameters As ImmutableArray(Of ITypeParameterSymbol) Implements INamedTypeSymbol.TypeParameters 1409Private Function INamedTypeSymbol_Construct(typeArguments As ImmutableArray(Of ITypeSymbol), typeArgumentNullableAnnotations As ImmutableArray(Of CodeAnalysis.NullableAnnotation)) As INamedTypeSymbol Implements INamedTypeSymbol.Construct 1417Private ReadOnly Property INamedTypeSymbol_InstanceConstructors As ImmutableArray(Of IMethodSymbol) Implements INamedTypeSymbol.InstanceConstructors 1423Private ReadOnly Property INamedTypeSymbol_StaticConstructors As ImmutableArray(Of IMethodSymbol) Implements INamedTypeSymbol.StaticConstructors 1429Private ReadOnly Property INamedTypeSymbol_Constructors As ImmutableArray(Of IMethodSymbol) Implements INamedTypeSymbol.Constructors 1475Private ReadOnly Property INamedTypeSymbol_TupleElements As ImmutableArray(Of IFieldSymbol) Implements INamedTypeSymbol.TupleElements
Symbols\NamedTypeSymbolExtensions.vb (1)
97Friend Function HaveVariance(this As ImmutableArray(Of TypeParameterSymbol)) As Boolean
Symbols\NamespaceOrTypeSymbol.vb (14)
51Public MustOverride Function GetMembers() As ImmutableArray(Of Symbol) 59Friend Overridable Function GetMembersUnordered() As ImmutableArray(Of Symbol) 75Public MustOverride Function GetMembers(name As String) As ImmutableArray(Of Symbol) 83Friend Overridable Function GetTypeMembersUnordered() As ImmutableArray(Of NamedTypeSymbol) 96Public MustOverride Function GetTypeMembers() As ImmutableArray(Of NamedTypeSymbol) 104Public MustOverride Function GetTypeMembers(name As String) As ImmutableArray(Of NamedTypeSymbol) 112Public Overridable Function GetTypeMembers(name As String, arity As Integer) As ImmutableArray(Of NamedTypeSymbol) 192membersByName As IEnumerable(Of KeyValuePair(Of String, ImmutableArray(Of Symbol))) 196For Each pair As KeyValuePair(Of String, ImmutableArray(Of Symbol)) In membersByName 268Private Function INamespaceOrTypeSymbol_GetMembers() As ImmutableArray(Of ISymbol) Implements INamespaceOrTypeSymbol.GetMembers 272Private Function INamespaceOrTypeSymbol_GetMembers(name As String) As ImmutableArray(Of ISymbol) Implements INamespaceOrTypeSymbol.GetMembers 276Private Function INamespaceOrTypeSymbol_GetTypeMembers() As ImmutableArray(Of INamedTypeSymbol) Implements INamespaceOrTypeSymbol.GetTypeMembers 280Private Function INamespaceOrTypeSymbol_GetTypeMembers(name As String) As ImmutableArray(Of INamedTypeSymbol) Implements INamespaceOrTypeSymbol.GetTypeMembers 284Public Function INamespaceOrTypeSymbol_GetTypeMembers(name As String, arity As Integer) As ImmutableArray(Of INamedTypeSymbol) Implements INamespaceOrTypeSymbol.GetTypeMembers
Symbols\NamespaceSymbol.vb (9)
42Public MustOverride Function GetModuleMembers() As ImmutableArray(Of NamedTypeSymbol) 50Public Overridable Function GetModuleMembers(name As String) As ImmutableArray(Of NamedTypeSymbol) 95Public Overridable ReadOnly Property ConstituentNamespaces As ImmutableArray(Of NamespaceSymbol) 266Friend Function LookupNestedNamespace(names As ImmutableArray(Of String)) As NamespaceSymbol 324Dim typeMembers As ImmutableArray(Of NamedTypeSymbol) 481Friend MustOverride ReadOnly Property TypesToCheckForExtensionMethods As ImmutableArray(Of NamedTypeSymbol) 490membersByName As IEnumerable(Of KeyValuePair(Of String, ImmutableArray(Of Symbol))) 494For Each pair As KeyValuePair(Of String, ImmutableArray(Of Symbol)) In membersByName 571Private ReadOnly Property INamespaceSymbol_ConstituentNamespaces As ImmutableArray(Of INamespaceSymbol) Implements INamespaceSymbol.ConstituentNamespaces
Symbols\NonMissingModuleSymbol.vb (3)
47Friend NotOverridable Overrides Function GetReferencedAssemblies() As ImmutableArray(Of AssemblyIdentity) 61Friend NotOverridable Overrides Function GetReferencedAssemblySymbols() As ImmutableArray(Of AssemblySymbol) 66Friend Function GetUnifiedAssemblies() As ImmutableArray(Of UnifiedAssembly(Of AssemblySymbol))
Symbols\OverriddenMembersResult.vb (15)
22New OverriddenMembersResult(Of TSymbol)(ImmutableArray(Of TSymbol).Empty, 23ImmutableArray(Of TSymbol).Empty, 24ImmutableArray(Of TSymbol).Empty) 26Private ReadOnly _overriddenMembers As ImmutableArray(Of TSymbol) 27Private ReadOnly _inexactOverriddenMembers As ImmutableArray(Of TSymbol) 28Private ReadOnly _inaccessibleMembers As ImmutableArray(Of TSymbol) 39Public ReadOnly Property OverriddenMembers As ImmutableArray(Of TSymbol) 53Public ReadOnly Property InexactOverriddenMembers As ImmutableArray(Of TSymbol) 62Public ReadOnly Property InaccessibleMembers As ImmutableArray(Of TSymbol) 68Private Sub New(overriddenMembers As ImmutableArray(Of TSymbol), 69inexactOverriddenMembers As ImmutableArray(Of TSymbol), 70inaccessibleMembers As ImmutableArray(Of TSymbol)) 76Public Shared Function Create(overriddenMembers As ImmutableArray(Of TSymbol), 77inexactOverriddenMembers As ImmutableArray(Of TSymbol), 78inaccessibleMembers As ImmutableArray(Of TSymbol)) As OverriddenMembersResult(Of TSymbol)
Symbols\ParameterSymbol.vb (4)
112Public MustOverride ReadOnly Property CustomModifiers As ImmutableArray(Of CustomModifier) 117Public MustOverride ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier) 348Private ReadOnly Property IParameterSymbol_RefCustomModifiers As ImmutableArray(Of CustomModifier) Implements IParameterSymbol.RefCustomModifiers 354Private ReadOnly Property IParameterSymbol_CustomModifiers As ImmutableArray(Of CustomModifier) Implements IParameterSymbol.CustomModifiers
Symbols\PEOrSourceOrMergedNamespaceSymbol.vb (4)
35Private _lazyExtensionMethodsMap As Dictionary(Of String, ImmutableArray(Of Symbol)) 40Private Shared ReadOnly s_emptyDictionary As New Dictionary(Of String, ImmutableArray(Of Symbol))() 89Dim match As ImmutableArray(Of Symbol) = Nothing 147Dim extensionMethods As New Dictionary(Of String, ImmutableArray(Of Symbol))(map.Count, CaseInsensitiveComparison.Comparer)
Symbols\PointerTypeSymbol.vb (2)
18Private ReadOnly _customModifiers As ImmutableArray(Of CustomModifier) 20Public Sub New(pointedAtType As TypeSymbol, customModifiers As ImmutableArray(Of CustomModifier))
Symbols\PreprocessingSymbol.vb (3)
28Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 30Return ImmutableArray(Of Location).Empty 34Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference)
Symbols\PropertySymbol.vb (10)
59Public MustOverride ReadOnly Property TypeCustomModifiers As ImmutableArray(Of CustomModifier) 64Public MustOverride ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier) 70Public MustOverride ReadOnly Property Parameters As ImmutableArray(Of ParameterSymbol) 289Public Function GetFieldAttributes() As ImmutableArray(Of VisualBasicAttributeData) 291Return If(field Is Nothing, ImmutableArray(Of VisualBasicAttributeData).Empty, field.GetAttributes()) 367Public MustOverride ReadOnly Property ExplicitInterfaceImplementations As ImmutableArray(Of PropertySymbol) 555Private ReadOnly Property IPropertySymbol_ExplicitInterfaceImplementations As ImmutableArray(Of IPropertySymbol) Implements IPropertySymbol.ExplicitInterfaceImplementations 579Private ReadOnly Property IPropertySymbol_Parameters As ImmutableArray(Of IParameterSymbol) Implements IPropertySymbol.Parameters 627Private ReadOnly Property IPropertySymbol_RefCustomModifiers As ImmutableArray(Of CustomModifier) Implements IPropertySymbol.RefCustomModifiers 633Private ReadOnly Property IPropertySymbol_TypeCustomModifiers As ImmutableArray(Of CustomModifier) Implements IPropertySymbol.TypeCustomModifiers
Symbols\ReducedExtensionMethodSymbol.vb (34)
24Private ReadOnly _fixedTypeParameters As ImmutableArray(Of KeyValuePair(Of TypeParameterSymbol, TypeSymbol)) 27Private ReadOnly _curriedTypeParameters As ImmutableArray(Of ReducedTypeParameterSymbol) 29Private _lazyParameters As ImmutableArray(Of ReducedParameterSymbol) 68Dim typeParametersToFixArray As ImmutableArray(Of TypeParameterSymbol) = Nothing 69Dim fixWithArray As ImmutableArray(Of TypeSymbol) = Nothing 78Dim typeArguments As ImmutableArray(Of TypeSymbol) = Nothing 189Dim fixedTypeParameters = ImmutableArray(Of KeyValuePair(Of TypeParameterSymbol, TypeSymbol)).Empty 209fixedTypeParameters As ImmutableArray(Of KeyValuePair(Of TypeParameterSymbol, TypeSymbol)), 219_curriedTypeParameters = ImmutableArray(Of ReducedTypeParameterSymbol).Empty 242_curriedTypeParameters = ImmutableArray(Of ReducedTypeParameterSymbol).Empty 270Friend Overrides ReadOnly Property FixedTypeParameters As ImmutableArray(Of KeyValuePair(Of TypeParameterSymbol, TypeSymbol)) 371Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of TypeParameterSymbol) 377Public Overrides ReadOnly Property TypeArguments As ImmutableArray(Of TypeSymbol) 405Public Overrides ReadOnly Property Parameters As ImmutableArray(Of ParameterSymbol) 408Dim fromParams As ImmutableArray(Of ParameterSymbol) = _curriedFromMethod.Parameters 411_lazyParameters = ImmutableArray(Of ReducedParameterSymbol).Empty 523Public Overrides Function GetReturnTypeAttributes() As ImmutableArray(Of VisualBasicAttributeData) 527Public Overrides ReadOnly Property ReturnTypeCustomModifiers As ImmutableArray(Of CustomModifier) 533Public Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier) 551Public Overrides ReadOnly Property ExplicitInterfaceImplementations As ImmutableArray(Of MethodSymbol) 553Return ImmutableArray(Of MethodSymbol).Empty 601Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 607Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 619Public Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData) 645Friend Overrides Function GetAppliedConditionalSymbols() As ImmutableArray(Of String) 725Friend Overrides ReadOnly Property ConstraintTypesNoUseSiteDiagnostics As ImmutableArray(Of TypeSymbol) 748Public Overloads Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData) 776Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 782Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 907Public Overrides ReadOnly Property CustomModifiers As ImmutableArray(Of CustomModifier) 913Public Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier) 991Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 997Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 1009Public Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData)
Symbols\ReferenceManager.vb (30)
68Protected Overrides Function GetNoPiaResolutionAssemblies(candidateAssembly As AssemblySymbol) As ImmutableArray(Of AssemblySymbol) 73Return ImmutableArray(Of AssemblySymbol).Empty 274Private Sub InitializeAssemblyReuseData(assemblySymbol As AssemblySymbol, referencedAssemblies As ImmutableArray(Of AssemblySymbol), unifiedAssemblies As ImmutableArray(Of UnifiedAssembly(Of AssemblySymbol))) 300Dim boundReferenceDirectives As ImmutableArray(Of MetadataReference) = Nothing 301Dim referencedAssemblies As ImmutableArray(Of AssemblyData) = Nothing 302Dim modules As ImmutableArray(Of PEModule) = Nothing ' To make sure the modules are not collected ahead of time. 303Dim explicitReferences As ImmutableArray(Of MetadataReference) = Nothing 305Dim referenceMap As ImmutableArray(Of ResolvedReference) = ResolveMetadataReferences( 321Dim implicitlyResolvedReferences As ImmutableArray(Of MetadataReference) = Nothing 322Dim implicitlyResolvedReferenceMap As ImmutableArray(Of ResolvedReference) = Nothing 323Dim allAssemblyData As ImmutableArray(Of AssemblyData) = Nothing 353Dim aliasesOfReferencedAssemblies As ImmutableArray(Of ImmutableArray(Of String)) = Nothing 354Dim mergedAssemblyReferencesMapOpt As Dictionary(Of MetadataReference, ImmutableArray(Of MetadataReference)) = Nothing 404Dim moduleReferences As ImmutableArray(Of ModuleReferences(Of AssemblySymbol)) = Nothing 471assemblies As ImmutableArray(Of AssemblyData), 532Private Sub UpdateSymbolCacheNoLock(newSymbols As List(Of Integer), assemblies As ImmutableArray(Of AssemblyData), bindingResult As BoundInputAssembly()) 553Dim modules As ImmutableArray(Of ModuleSymbol) = retargetingAssemblySymbol.Modules 558Dim referencedAssemblies As ImmutableArray(Of AssemblyIdentity) = retargetingAssemblySymbol.UnderlyingAssembly.Modules(j).GetReferencedAssemblies() 562Dim underlyingReferencedAssemblySymbols As ImmutableArray(Of AssemblySymbol) = 620Dim modules As ImmutableArray(Of ModuleSymbol) = peAssemblySymbol.Modules 651modules As ImmutableArray(Of PEModule), 655ByRef moduleReferences As ImmutableArray(Of ModuleReferences(Of AssemblySymbol)) 737Private _assemblies As ImmutableArray(Of AssemblySymbol) 739Private ReadOnly _referencedAssemblies As ImmutableArray(Of AssemblyIdentity) 743referencedAssemblies As ImmutableArray(Of AssemblyIdentity), 762Public Overrides ReadOnly Property AvailableSymbols As ImmutableArray(Of AssemblySymbol) 781Public Overrides ReadOnly Property AssemblyReferences As ImmutableArray(Of AssemblyIdentity) 941Private Shared Function GetReferencedAssemblies(compilation As VisualBasicCompilation) As ImmutableArray(Of AssemblyIdentity)
Symbols\Retargeting\RetargetingAssemblySymbol.vb (13)
50Private ReadOnly _modules As ImmutableArray(Of ModuleSymbol) 58Private _noPiaResolutionAssemblies As ImmutableArray(Of AssemblySymbol) 66Private _linkedReferencedAssemblies As ImmutableArray(Of AssemblySymbol) 82Private _lazyCustomAttributes As ImmutableArray(Of VisualBasicAttributeData) 136Friend Overrides ReadOnly Property PublicKey As ImmutableArray(Of Byte) 146Public Overloads Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData) 156Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 162Public Overrides ReadOnly Property Modules As ImmutableArray(Of ModuleSymbol) 199Friend Overrides Function GetNoPiaResolutionAssemblies() As ImmutableArray(Of AssemblySymbol) 203Friend Overrides Sub SetNoPiaResolutionAssemblies(assemblies As ImmutableArray(Of AssemblySymbol)) 207Friend Overrides Sub SetLinkedReferencedAssemblies(assemblies As ImmutableArray(Of AssemblySymbol)) 211Friend Overrides Function GetLinkedReferencedAssemblies() As ImmutableArray(Of AssemblySymbol) 233Friend Overrides Function GetInternalsVisibleToPublicKeys(simpleName As String) As IEnumerable(Of ImmutableArray(Of Byte))
Symbols\Retargeting\RetargetingEventSymbol.vb (7)
31Private _lazyCustomAttributes As ImmutableArray(Of VisualBasicAttributeData) 33Private _lazyExplicitInterfaceImplementations As ImmutableArray(Of EventSymbol) 79Public Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData) 99Public Overrides ReadOnly Property ExplicitInterfaceImplementations As ImmutableArray(Of EventSymbol) 112Private Function RetargetExplicitInterfaceImplementations() As ImmutableArray(Of EventSymbol) 160Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 166Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference)
Symbols\Retargeting\RetargetingFieldSymbol.vb (7)
35Private _lazyCustomModifiers As ImmutableArray(Of CustomModifier) 41Private _lazyCustomAttributes As ImmutableArray(Of VisualBasicAttributeData) 88Public Overrides ReadOnly Property CustomModifiers As ImmutableArray(Of CustomModifier) 106Public Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData) 168Friend Overrides ReadOnly Property MarshallingDescriptor As ImmutableArray(Of Byte) 216Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 222Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference)
Symbols\Retargeting\RetargetingMethodSymbol.vb (22)
37Private _lazyTypeParameters As ImmutableArray(Of TypeParameterSymbol) 39Private _lazyParameters As ImmutableArray(Of ParameterSymbol) 47Private _lazyCustomAttributes As ImmutableArray(Of VisualBasicAttributeData) 53Private _lazyReturnTypeCustomAttributes As ImmutableArray(Of VisualBasicAttributeData) 55Private _lazyExplicitInterfaceImplementations As ImmutableArray(Of MethodSymbol) 107Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of TypeParameterSymbol) 111_lazyTypeParameters = ImmutableArray(Of TypeParameterSymbol).Empty 122Public Overrides ReadOnly Property TypeArguments As ImmutableArray(Of TypeSymbol) 127Return ImmutableArray(Of TypeSymbol).Empty 168Public Overrides ReadOnly Property ReturnTypeCustomModifiers As ImmutableArray(Of CustomModifier) 174Public Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier) 192Public Overrides ReadOnly Property Parameters As ImmutableArray(Of ParameterSymbol) 202Private Function RetargetParameters() As ImmutableArray(Of ParameterSymbol) 207Return ImmutableArray(Of ParameterSymbol).Empty 260Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 266Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 334Friend Overrides ReadOnly Property ReturnValueMarshallingDescriptor As ImmutableArray(Of Byte) 380Public Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData) 384Public Overrides Function GetReturnTypeAttributes() As ImmutableArray(Of VisualBasicAttributeData) 434Friend Overrides Function GetAppliedConditionalSymbols() As ImmutableArray(Of String) 456Public Overrides ReadOnly Property ExplicitInterfaceImplementations As ImmutableArray(Of MethodSymbol) 469Private Function RetargetExplicitInterfaceImplementations() As ImmutableArray(Of MethodSymbol)
Symbols\Retargeting\RetargetingModuleSymbol.vb (6)
63Private _lazyCustomAttributes As ImmutableArray(Of VisualBasicAttributeData) 132Public Overloads Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData) 154Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 172Dim underlyingBoundReferences As ImmutableArray(Of AssemblySymbol) = _underlyingModule.GetReferencedAssemblySymbols() 173Dim referencedAssemblySymbols As ImmutableArray(Of AssemblySymbol) = moduleReferences.Symbols 174Dim referencedAssemblies As ImmutableArray(Of AssemblyIdentity) = moduleReferences.Identities
Symbols\Retargeting\RetargetingNamedTypeSymbol.vb (18)
39Private _lazyTypeParameters As ImmutableArray(Of TypeParameterSymbol) 46Private _lazyCustomAttributes As ImmutableArray(Of VisualBasicAttributeData) 87Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of TypeParameterSymbol) 91_lazyTypeParameters = ImmutableArray(Of TypeParameterSymbol).Empty 170Friend Overrides Function GetAppliedConditionalSymbols() As ImmutableArray(Of String) 289Public Overrides Function GetMembers() As ImmutableArray(Of Symbol) 293Friend Overrides Function GetMembersUnordered() As ImmutableArray(Of Symbol) 297Public Overrides Function GetMembers(name As String) As ImmutableArray(Of Symbol) 337Friend Overrides Function GetTypeMembersUnordered() As ImmutableArray(Of NamedTypeSymbol) 341Public Overrides Function GetTypeMembers() As ImmutableArray(Of NamedTypeSymbol) 345Public Overrides Function GetTypeMembers(name As String) As ImmutableArray(Of NamedTypeSymbol) 349Public Overrides Function GetTypeMembers(name As String, arity As Integer) As ImmutableArray(Of NamedTypeSymbol) 371Friend Overrides Function MakeDeclaredInterfaces(basesBeingResolved As BasesBeingResolved, diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol) 400Friend Overrides Function MakeAcyclicInterfaces(diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol) 401Dim declaredInterfaces As ImmutableArray(Of NamedTypeSymbol) = GetDeclaredInterfacesNoUseSiteDiagnostics(Nothing) 431Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 437Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 473Public Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData)
Symbols\Retargeting\RetargetingNamespaceSymbol.vb (16)
67Public Overrides Function GetMembers() As ImmutableArray(Of Symbol) 71Private Function RetargetMembers(underlyingMembers As ImmutableArray(Of Symbol)) As ImmutableArray(Of Symbol) 83Friend Overrides Function GetMembersUnordered() As ImmutableArray(Of Symbol) 87Public Overrides Function GetMembers(name As String) As ImmutableArray(Of Symbol) 91Friend Overrides Function GetTypeMembersUnordered() As ImmutableArray(Of NamedTypeSymbol) 95Public Overrides Function GetTypeMembers() As ImmutableArray(Of NamedTypeSymbol) 99Private Function RetargetTypeMembers(underlyingMembers As ImmutableArray(Of NamedTypeSymbol)) As ImmutableArray(Of NamedTypeSymbol) 112Public Overrides Function GetTypeMembers(name As String) As ImmutableArray(Of NamedTypeSymbol) 116Public Overrides Function GetTypeMembers(name As String, arity As Integer) As ImmutableArray(Of NamedTypeSymbol) 126Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 132Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 190Public Overrides Function GetModuleMembers() As ImmutableArray(Of NamedTypeSymbol) 194Public Overrides Function GetModuleMembers(name As String) As ImmutableArray(Of NamedTypeSymbol) 233Friend Overrides ReadOnly Property TypesToCheckForExtensionMethods As ImmutableArray(Of NamedTypeSymbol)
Symbols\Retargeting\RetargetingParameterSymbol.vb (7)
31Private _lazyCustomAttributes As ImmutableArray(Of VisualBasicAttributeData) 78Public Overrides ReadOnly Property CustomModifiers As ImmutableArray(Of CustomModifier) 84Public Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier) 204Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 210Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 216Public Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData) 266Friend Overrides ReadOnly Property MarshallingDescriptor As ImmutableArray(Of Byte)
Symbols\Retargeting\RetargetingPropertySymbol.vb (13)
27Private _lazyParameters As ImmutableArray(Of ParameterSymbol) 35Private _lazyCustomAttributes As ImmutableArray(Of VisualBasicAttributeData) 37Private _lazyExplicitInterfaceImplementations As ImmutableArray(Of PropertySymbol) 95Public Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData) 191Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 197Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 203Public Overrides ReadOnly Property Parameters As ImmutableArray(Of ParameterSymbol) 219Private Function RetargetParameters() As ImmutableArray(Of ParameterSymbol) 224Return ImmutableArray(Of ParameterSymbol).Empty 248Public Overrides ReadOnly Property TypeCustomModifiers As ImmutableArray(Of CustomModifier) 254Public Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier) 272Public Overrides ReadOnly Property ExplicitInterfaceImplementations As ImmutableArray(Of PropertySymbol) 285Private Function RetargetExplicitInterfaceImplementations() As ImmutableArray(Of PropertySymbol)
Symbols\Retargeting\RetargetingSymbolTranslator.vb (29)
518Dim assembliesToEmbedTypesFrom As ImmutableArray(Of AssemblySymbol) = UnderlyingModule.GetAssembliesToEmbedTypesFrom() 528Dim linkedAssemblies As ImmutableArray(Of AssemblySymbol) = RetargetingAssembly.GetLinkedReferencedAssemblies() 593Dim newModifiers As ImmutableArray(Of CustomModifier) = RetargetModifiers(type.CustomModifiers, modifiersHaveChanged) 606Friend Function RetargetModifiers(oldModifiers As ImmutableArray(Of CustomModifier), ByRef modifiersHaveChanged As Boolean) As ImmutableArray(Of CustomModifier) 631Friend Function RetargetModifiers(oldModifiers As ImmutableArray(Of CustomModifier), ByRef lazyCustomModifiers As ImmutableArray(Of CustomModifier)) As ImmutableArray(Of CustomModifier) 643oldTypeModifiers As ImmutableArray(Of CustomModifier), 644oldRefModifiers As ImmutableArray(Of CustomModifier), 658Private Function RetargetAttributes(oldAttributes As ImmutableArray(Of VisualBasicAttributeData)) As ImmutableArray(Of VisualBasicAttributeData) 701Private Function RetargetAttributeConstructorArguments(constructorArguments As ImmutableArray(Of TypedConstant)) As ImmutableArray(Of TypedConstant) 755Private Function RetargetAttributeNamedArguments(namedArguments As ImmutableArray(Of KeyValuePair(Of String, TypedConstant))) As ImmutableArray(Of KeyValuePair(Of String, TypedConstant)) 787Friend Function GetRetargetedAttributes(underlyingSymbol As Symbol, ByRef lazyCustomAttributes As ImmutableArray(Of VisualBasicAttributeData), Optional getReturnTypeAttributes As Boolean = False) As ImmutableArray(Of VisualBasicAttributeData) 789Dim oldAttributes As ImmutableArray(Of VisualBasicAttributeData) 804Dim retargetedAttributes As ImmutableArray(Of VisualBasicAttributeData) = RetargetAttributes(oldAttributes) 833Public Function Retarget(arr As ImmutableArray(Of Symbol)) As ImmutableArray(Of Symbol) 843Public Function Retarget(sequence As ImmutableArray(Of NamedTypeSymbol)) As ImmutableArray(Of NamedTypeSymbol) 855Public Function Retarget(sequence As ImmutableArray(Of TypeSymbol)) As ImmutableArray(Of TypeSymbol) 867Public Function Retarget(list As ImmutableArray(Of TypeParameterSymbol)) As ImmutableArray(Of TypeParameterSymbol) 984ImmutableArray(Of MethodSymbol).Empty)
Symbols\Retargeting\RetargetingTypeParameterSymbol.vb (4)
77Friend Overrides ReadOnly Property ConstraintTypesNoUseSiteDiagnostics As ImmutableArray(Of TypeSymbol) 125Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 131Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 137Public Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData)
Symbols\SignatureOnlyMethodSymbol.vb (19)
25Private ReadOnly _typeParameters As ImmutableArray(Of TypeParameterSymbol) 26Private ReadOnly _parameters As ImmutableArray(Of ParameterSymbol) 29Private ReadOnly _returnTypeCustomModifiers As ImmutableArray(Of CustomModifier) 30Private ReadOnly _refCustomModifiers As ImmutableArray(Of CustomModifier) 31Private ReadOnly _explicitInterfaceImplementations As ImmutableArray(Of MethodSymbol) 34Public Sub New(ByVal name As String, ByVal m_containingType As TypeSymbol, ByVal methodKind As MethodKind, ByVal callingConvention As CallingConvention, ByVal typeParameters As ImmutableArray(Of TypeParameterSymbol), ByVal parameters As ImmutableArray(Of ParameterSymbol), 35ByVal returnsByRef As Boolean, ByVal returnType As TypeSymbol, ByVal returnTypeCustomModifiers As ImmutableArray(Of CustomModifier), refCustomModifiers As ImmutableArray(Of CustomModifier), 36ByVal explicitInterfaceImplementations As ImmutableArray(Of MethodSymbol), 76Public Overrides ReadOnly Property TypeParameters() As ImmutableArray(Of TypeParameterSymbol) 94Public Overrides ReadOnly Property ReturnTypeCustomModifiers() As ImmutableArray(Of CustomModifier) 100Public Overrides ReadOnly Property RefCustomModifiers() As ImmutableArray(Of CustomModifier) 106Public Overrides ReadOnly Property Parameters() As ImmutableArray(Of ParameterSymbol) 112Public Overrides ReadOnly Property ExplicitInterfaceImplementations() As ImmutableArray(Of MethodSymbol) 180Public Overrides ReadOnly Property TypeArguments() As ImmutableArray(Of TypeSymbol) 198Public Overrides ReadOnly Property Locations() As ImmutableArray(Of Location) 204Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 300Friend Overrides Function GetAppliedConditionalSymbols() As ImmutableArray(Of String)
Symbols\SignatureOnlyParameterSymbol.vb (8)
19Private ReadOnly _customModifiers As ImmutableArray(Of CustomModifier) 20Private ReadOnly _refCustomModifiers As ImmutableArray(Of CustomModifier) 28ByVal customModifiers As ImmutableArray(Of CustomModifier), 29ByVal refCustomModifiers As ImmutableArray(Of CustomModifier), 52Public Overrides ReadOnly Property CustomModifiers() As ImmutableArray(Of CustomModifier) 58Public Overrides ReadOnly Property RefCustomModifiers() As ImmutableArray(Of CustomModifier) 143Public Overrides ReadOnly Property Locations() As ImmutableArray(Of Location) 149Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference)
Symbols\SignatureOnlyPropertySymbol.vb (12)
25Private ReadOnly _parameters As ImmutableArray(Of ParameterSymbol) 28Private ReadOnly _typeCustomModifiers As ImmutableArray(Of CustomModifier) 29Private ReadOnly _refCustomModifiers As ImmutableArray(Of CustomModifier) 37parameters As ImmutableArray(Of ParameterSymbol), 40typeCustomModifiers As ImmutableArray(Of CustomModifier), 41refCustomModifiers As ImmutableArray(Of CustomModifier), 87Public Overrides ReadOnly Property Parameters As ImmutableArray(Of ParameterSymbol) 105Public Overrides ReadOnly Property TypeCustomModifiers As ImmutableArray(Of CustomModifier) 111Public Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier) 142Public Overrides ReadOnly Property ExplicitInterfaceImplementations As ImmutableArray(Of PropertySymbol) 218Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 224Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference)
Symbols\Source\CrefTypeParameterSymbol.vb (8)
48Public Overloads Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData) 49Return ImmutableArray(Of VisualBasicAttributeData).Empty 76Friend Overrides ReadOnly Property ConstraintTypesNoUseSiteDiagnostics As ImmutableArray(Of TypeSymbol) 78Return ImmutableArray(Of TypeSymbol).Empty 88Friend Overrides Function GetConstraints() As ImmutableArray(Of TypeParameterConstraint) 89Return ImmutableArray(Of TypeParameterConstraint).Empty 104Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 110Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\Source\CustomEventAccessorSymbol.vb (8)
19Private _lazyExplicitImplementations As ImmutableArray(Of MethodSymbol) ' lazily populated with explicit implementations 47Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of TypeParameterSymbol) 49Return ImmutableArray(Of TypeParameterSymbol).Empty 64Protected Overrides Function GetParameters(sourceModule As SourceModuleSymbol, diagBag As BindingDiagnosticBag) As ImmutableArray(Of ParameterSymbol) 85Public Overrides ReadOnly Property ExplicitInterfaceImplementations As ImmutableArray(Of MethodSymbol) 105Public Overrides ReadOnly Property ReturnTypeCustomModifiers As ImmutableArray(Of CustomModifier) 108Return ImmutableArray(Of CustomModifier).Empty 153diagnostics As BindingDiagnosticBag) As ImmutableArray(Of ParameterSymbol)
Symbols\Source\CustomModifierUtils.vb (9)
18destinationTypeParameters As ImmutableArray(Of TypeSymbol), 20<[In], Out> ByRef parameters As ImmutableArray(Of ParameterSymbol)) 55Dim names As ImmutableArray(Of String) = VisualBasicCompilation.TupleNamesEncoder.Encode(destinationType) 67overriddenMemberParameters As ImmutableArray(Of ParameterSymbol), 68parameters As ImmutableArray(Of ParameterSymbol) 69) As ImmutableArray(Of ParameterSymbol) 114Dim names As ImmutableArray(Of String) = VisualBasicCompilation.TupleNamesEncoder.Encode(thisParamType) 121If(thisParam.IsByRef, overriddenParam.RefCustomModifiers, ImmutableArray(Of CustomModifier).Empty)) 129Friend Shared Function HasIsExternalInitModifier(modifiers As ImmutableArray(Of CustomModifier)) As Boolean
Symbols\Source\ImplementsHelper.vb (8)
24Public Function GetExplicitInterfaceImplementations(member As Symbol) As ImmutableArray(Of Symbol) 33Return ImmutableArray(Of Symbol).Empty 95diagBag As BindingDiagnosticBag) As ImmutableArray(Of TSymbol) 110Return ImmutableArray(Of TSymbol).Empty 117Return ImmutableArray(Of TSymbol).Empty 664Public Function SubstituteExplicitInterfaceImplementations(Of TSymbol As Symbol)(unsubstitutedImplementations As ImmutableArray(Of TSymbol), 665substitution As TypeSubstitution) As ImmutableArray(Of TSymbol) 667Return ImmutableArray(Of TSymbol).Empty
Symbols\Source\ImplicitNamedTypeSymbol.vb (8)
46Friend Overrides Function MakeAcyclicInterfaces(diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol) 47Return ImmutableArray(Of NamedTypeSymbol).Empty 61Friend Overrides Function MakeDeclaredInterfaces(basesBeingResolved As BasesBeingResolved, diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol) 62Return ImmutableArray(Of NamedTypeSymbol).Empty 65Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of TypeParameterSymbol) 67Return ImmutableArray(Of TypeParameterSymbol).Empty 129Friend Overrides Function GetAppliedConditionalSymbols() As ImmutableArray(Of String) 130Return ImmutableArray(Of String).Empty
Symbols\Source\LambdaParameterSymbol.vb (8)
15Private ReadOnly _location As ImmutableArray(Of Location) 35_location = ImmutableArray(Of Location).Empty 137Public NotOverridable Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 143Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 167Public NotOverridable Overrides ReadOnly Property CustomModifiers As ImmutableArray(Of CustomModifier) 169Return ImmutableArray(Of CustomModifier).Empty 173Public NotOverridable Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier) 175Return ImmutableArray(Of CustomModifier).Empty
Symbols\Source\LambdaSymbol.vb (17)
47Private ReadOnly _parameters As ImmutableArray(Of ParameterSymbol) 60parameters As ImmutableArray(Of BoundLambdaParameterSymbol), 97Friend Overrides Function GetAppliedConditionalSymbols() As ImmutableArray(Of String) 98Return ImmutableArray(Of String).Empty 149Public Overrides ReadOnly Property ExplicitInterfaceImplementations As ImmutableArray(Of MethodSymbol) 151Return ImmutableArray(Of MethodSymbol).Empty 258Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 264Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 288Public Overrides ReadOnly Property Parameters As ImmutableArray(Of ParameterSymbol) 306Public Overrides ReadOnly Property ReturnTypeCustomModifiers As ImmutableArray(Of CustomModifier) 308Return ImmutableArray(Of CustomModifier).Empty 312Public Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier) 314Return ImmutableArray(Of CustomModifier).Empty 324Public Overrides ReadOnly Property TypeArguments As ImmutableArray(Of TypeSymbol) 326Return ImmutableArray(Of TypeSymbol).Empty 330Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of TypeParameterSymbol) 332Return ImmutableArray(Of TypeParameterSymbol).Empty
Symbols\Source\LocalSymbol.vb (10)
192Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 582Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 585Return ImmutableArray(Of SyntaxReference).Empty 721Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 788Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 921Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 925Return ImmutableArray(Of SyntaxReference).Empty 931Return ImmutableArray(Of SyntaxReference).Empty 983Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 989Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\Source\MeParameterSymbol.vb (8)
42Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 44Return If(_container Is Nothing, ImmutableArray(Of Location).Empty, _container.Locations) 48Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 50Return ImmutableArray(Of SyntaxReference).Empty 90Public Overrides ReadOnly Property CustomModifiers As ImmutableArray(Of CustomModifier) 92Return ImmutableArray(Of CustomModifier).Empty 96Public Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier) 98Return ImmutableArray(Of CustomModifier).Empty
Symbols\Source\OverrideHidingHelper.vb (1)
839Dim overriddenMembers As ImmutableArray(Of TSymbol) = overriddenMembersResult.OverriddenMembers
Symbols\Source\RangeVariableSymbol.vb (7)
53Public MustOverride Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 183Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 189Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 217Return ImmutableArray(Of SyntaxReference).Empty 265Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 271Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 273Return ImmutableArray(Of SyntaxReference).Empty
Symbols\Source\SourceAssemblySymbol.vb (32)
46Private ReadOnly _modules As ImmutableArray(Of ModuleSymbol) 64Private _lazyAssemblyLevelDeclarationErrors As ImmutableArray(Of Diagnostic) 65Private _lazyAssemblyLevelDeclarationDependencies As ImmutableArray(Of AssemblySymbol) 74Private _lazyInternalsVisibleToMap As ConcurrentDictionary(Of String, ConcurrentDictionary(Of ImmutableArray(Of Byte), Tuple(Of Location, String))) 79netModules As ImmutableArray(Of PEModule)) 208Dim appliedSourceAttributes As ImmutableArray(Of VisualBasicAttributeData) = Me.GetSourceAttributesBag().Attributes 287Private Function GetNetModuleAttributes(<Out> ByRef netModuleNames As ImmutableArray(Of String)) As ImmutableArray(Of VisualBasicAttributeData) 306netModuleNames = ImmutableArray(Of String).Empty 307Return ImmutableArray(Of VisualBasicAttributeData).Empty 315attributesFromNetModules As ImmutableArray(Of VisualBasicAttributeData), 316netModuleNames As ImmutableArray(Of String), 382Dim netModuleNames As ImmutableArray(Of String) = Nothing 383Dim attributesFromNetModules As ImmutableArray(Of VisualBasicAttributeData) = GetNetModuleAttributes(netModuleNames) 487Friend Function GetAttributeDeclarations() As ImmutableArray(Of SyntaxList(Of AttributeListSyntax)) 521Private Function GetNetModuleAttributes() As ImmutableArray(Of VisualBasicAttributeData) 541Public Overloads Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData) 818Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 824Public Overrides ReadOnly Property Modules As ImmutableArray(Of ModuleSymbol) 830Friend Overrides Function GetNoPiaResolutionAssemblies() As ImmutableArray(Of AssemblySymbol) 834Friend Overrides Sub SetNoPiaResolutionAssemblies(assemblies As ImmutableArray(Of AssemblySymbol)) 838Friend Overrides Function GetLinkedReferencedAssemblies() As ImmutableArray(Of AssemblySymbol) 844Friend Overrides Sub SetLinkedReferencedAssemblies(assemblies As ImmutableArray(Of AssemblySymbol)) 903Friend Overrides Function GetInternalsVisibleToPublicKeys(simpleName As String) As IEnumerable(Of ImmutableArray(Of Byte)) 911Return SpecializedCollections.EmptyEnumerable(Of ImmutableArray(Of Byte))() 914Dim result As ConcurrentDictionary(Of ImmutableArray(Of Byte), Tuple(Of Location, String)) = Nothing 918Return If(result IsNot Nothing, result.Keys, SpecializedCollections.EmptyEnumerable(Of ImmutableArray(Of Byte))()) 984New ConcurrentDictionary(Of String, ConcurrentDictionary(Of ImmutableArray(Of Byte), Tuple(Of Location, String)))(StringComparer.OrdinalIgnoreCase), Nothing) 1003Dim keys As ConcurrentDictionary(Of ImmutableArray(Of Byte), Tuple(Of Location, String)) = Nothing 1007keys = New ConcurrentDictionary(Of ImmutableArray(Of Byte), Tuple(Of Location, String)) 1572ImmutableArray(Of TypedConstant).Empty, 1638Friend Overrides ReadOnly Property PublicKey As ImmutableArray(Of Byte)
Symbols\Source\SourceClonedParameterSymbol.vb (16)
33Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 37Return ImmutableArray(Of SyntaxReference).Empty 60Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 66Public Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData) 76Public Overrides ReadOnly Property CustomModifiers As ImmutableArray(Of CustomModifier) 82Public Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier) 161Friend Overrides Function WithTypeAndCustomModifiers(type As TypeSymbol, customModifiers As ImmutableArray(Of CustomModifier), refCustomModifiers As ImmutableArray(Of CustomModifier)) As ParameterSymbol 169Private ReadOnly _customModifiers As ImmutableArray(Of CustomModifier) 170Private ReadOnly _refCustomModifiers As ImmutableArray(Of CustomModifier) 177customModifiers As ImmutableArray(Of CustomModifier), 178refCustomModifiers As ImmutableArray(Of CustomModifier) 194Public Overrides ReadOnly Property CustomModifiers As ImmutableArray(Of CustomModifier) 200Public Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier) 230Friend Overrides Function WithTypeAndCustomModifiers(type As TypeSymbol, customModifiers As ImmutableArray(Of CustomModifier), refCustomModifiers As ImmutableArray(Of CustomModifier)) As ParameterSymbol
Symbols\Source\SourceComplexParameterSymbol.vb (16)
188Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 191Return ImmutableArray(Of SyntaxReference).Empty 393Public Overrides ReadOnly Property CustomModifiers As ImmutableArray(Of CustomModifier) 395Return ImmutableArray(Of CustomModifier).Empty 399Public Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier) 401Return ImmutableArray(Of CustomModifier).Empty 405Friend Overrides Function WithTypeAndCustomModifiers(type As TypeSymbol, customModifiers As ImmutableArray(Of CustomModifier), refCustomModifiers As ImmutableArray(Of CustomModifier)) As ParameterSymbol 416Private ReadOnly _customModifiers As ImmutableArray(Of CustomModifier) 417Private ReadOnly _refCustomModifiers As ImmutableArray(Of CustomModifier) 428customModifiers As ImmutableArray(Of CustomModifier), 429refCustomModifiers As ImmutableArray(Of CustomModifier) 440Public Overrides ReadOnly Property CustomModifiers As ImmutableArray(Of CustomModifier) 446Public Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier) 452Friend Overrides Function WithTypeAndCustomModifiers(type As TypeSymbol, customModifiers As ImmutableArray(Of CustomModifier), refCustomModifiers As ImmutableArray(Of CustomModifier)) As ParameterSymbol
Symbols\Source\SourceDeclareMethodSymbol.vb (2)
108Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of TypeParameterSymbol) 110Return ImmutableArray(Of TypeParameterSymbol).Empty
Symbols\Source\SourceDelegateMethodSymbol.vb (9)
23Private _parameters As ImmutableArray(Of ParameterSymbol) 41Protected Sub InitializeParameters(parameters As ImmutableArray(Of ParameterSymbol)) 53Public Overrides ReadOnly Property Parameters As ImmutableArray(Of ParameterSymbol) 164Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 166Return ImmutableArray(Of SyntaxReference).Empty 174Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of TypeParameterSymbol) 176Return ImmutableArray(Of TypeParameterSymbol).Empty 202Friend Overrides Function GetAppliedConditionalSymbols() As ImmutableArray(Of String) 203Return ImmutableArray(Of String).Empty
Symbols\Source\SourceEnumConstantSymbol.vb (1)
57Public NotOverridable Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\Source\SourceEventSymbol.vb (12)
47Private _lazyImplementedEvents As ImmutableArray(Of EventSymbol) 48Private _lazyDelegateParameters As ImmutableArray(Of ParameterSymbol) 251Private Function ComputeImplementedEvents(diagnostics As BindingDiagnosticBag) As ImmutableArray(Of EventSymbol) 278Return ImmutableArray(Of EventSymbol).Empty 309Friend Overrides ReadOnly Property DelegateParameters As ImmutableArray(Of ParameterSymbol) 388Friend Function GetAccessorImplementations(kind As MethodKind) As ImmutableArray(Of MethodSymbol) 393Return ImmutableArray(Of MethodSymbol).Empty 444Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 450Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 512Public Overrides ReadOnly Property ExplicitInterfaceImplementations As ImmutableArray(Of EventSymbol) 615Public NotOverridable Overloads Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData) 771Dim implementedEvents As ImmutableArray(Of EventSymbol) = ExplicitInterfaceImplementations
Symbols\Source\SourceFieldSymbol.vb (5)
151Public Overrides ReadOnly Property CustomModifiers As ImmutableArray(Of CustomModifier) 153Return ImmutableArray(Of CustomModifier).Empty 618Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 624Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 646Public NotOverridable Overloads Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData)
Symbols\Source\SourceFile.vb (15)
40Public ReadOnly MemberImports As ImmutableArray(Of NamespaceOrTypeAndImportsClausePosition) 43Public ReadOnly MemberImportsSyntax As ImmutableArray(Of SyntaxReference) 57Public Sub New(memberImports As ImmutableArray(Of NamespaceOrTypeAndImportsClausePosition), 58memberImportsSyntax As ImmutableArray(Of SyntaxReference), 175Dim importMembersOf As ImmutableArray(Of NamespaceOrTypeAndImportsClausePosition) = Nothing 176Dim importMembersOfSyntax As ImmutableArray(Of SyntaxReference) = Nothing 242<Out> ByRef importMembersOf As ImmutableArray(Of NamespaceOrTypeAndImportsClausePosition), 243<Out> ByRef importMembersOfSyntax As ImmutableArray(Of SyntaxReference), 326memberImports As ImmutableArray(Of NamespaceOrTypeAndImportsClausePosition), 327memberImportsSyntax As ImmutableArray(Of SyntaxReference), 355dependencies As ImmutableArray(Of AssemblySymbol), 394Public ReadOnly Property MemberImports As ImmutableArray(Of NamespaceOrTypeAndImportsClausePosition) 488Public Function GetUsedNamespaces(context As EmitContext) As ImmutableArray(Of Cci.UsedNamespaceOrType) Implements Cci.IImportScope.GetUsedNamespaces 489Dim [imports] As ImmutableArray(Of Cci.UsedNamespaceOrType) = Nothing 497Private Function TranslateImports(moduleBuilder As Emit.PEModuleBuilder, diagnostics As DiagnosticBag) As ImmutableArray(Of Cci.UsedNamespaceOrType)
Symbols\Source\SourceLabelSymbol.vb (2)
54Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 60Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference)
Symbols\Source\SourceLambdaSymbol.vb (1)
20parameters As ImmutableArray(Of BoundLambdaParameterSymbol),
Symbols\Source\SourceMemberContainerTypeSymbol.vb (70)
85Private Shared ReadOnly s_emptyTypeMembers As New Dictionary(Of String, ImmutableArray(Of NamedTypeSymbol))(IdentifierComparison.Comparer) 86Private _lazyTypeMembers As Dictionary(Of String, ImmutableArray(Of NamedTypeSymbol)) 89Private _lazyMembersFlattened As ImmutableArray(Of Symbol) 116Dim declarations As ImmutableArray(Of SingleTypeDeclaration) = declaration.Declarations 439For Each batch As ImmutableArray(Of Symbol) In GetMembersAndInitializers().Members.Values 993parameters As ImmutableArray(Of ParameterSymbol), 1029parameters As ImmutableArray(Of TypeParameterSymbol), 1376Public NotOverridable Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 1388Public ReadOnly Property SyntaxReferences As ImmutableArray(Of SyntaxReference) 1394Public NotOverridable Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 1498Friend ReadOnly Members As Dictionary(Of String, ImmutableArray(Of Symbol)) 1499Friend ReadOnly StaticInitializers As ImmutableArray(Of ImmutableArray(Of FieldOrPropertyInitializer)) 1500Friend ReadOnly InstanceInitializers As ImmutableArray(Of ImmutableArray(Of FieldOrPropertyInitializer)) 1511members As Dictionary(Of String, ImmutableArray(Of Symbol)), 1512staticInitializers As ImmutableArray(Of ImmutableArray(Of FieldOrPropertyInitializer)), 1513instanceInitializers As ImmutableArray(Of ImmutableArray(Of FieldOrPropertyInitializer)), 1533Friend Property StaticInitializers As ArrayBuilder(Of ImmutableArray(Of FieldOrPropertyInitializer)) 1534Friend Property InstanceInitializers As ArrayBuilder(Of ImmutableArray(Of FieldOrPropertyInitializer)) 1544Dim readonlyMembers = New Dictionary(Of String, ImmutableArray(Of Symbol))(IdentifierComparison.Comparer) 1590Friend Shared Sub AddInitializers(ByRef allInitializers As ArrayBuilder(Of ImmutableArray(Of FieldOrPropertyInitializer)), siblings As ArrayBuilder(Of FieldOrPropertyInitializer)) 1593allInitializers = New ArrayBuilder(Of ImmutableArray(Of FieldOrPropertyInitializer))() 1600Protected Function GetTypeMembersDictionary() As Dictionary(Of String, ImmutableArray(Of NamedTypeSymbol)) 1609Private Function MakeTypeMembers() As Dictionary(Of String, ImmutableArray(Of NamedTypeSymbol)) 1610Dim children As ImmutableArray(Of MergedTypeDeclaration) = _declaration.Children 1623Friend Overrides Function GetTypeMembersUnordered() As ImmutableArray(Of NamedTypeSymbol) 1627Public Overloads Overrides Function GetTypeMembers() As ImmutableArray(Of NamedTypeSymbol) 1631Public Overloads Overrides Function GetTypeMembers(name As String) As ImmutableArray(Of NamedTypeSymbol) 1632Dim members As ImmutableArray(Of NamedTypeSymbol) = Nothing 1636Return ImmutableArray(Of NamedTypeSymbol).Empty 1639Public Overrides Function GetTypeMembers(name As String, arity As Integer) As ImmutableArray(Of NamedTypeSymbol) 1723Dim nontypeSymbols As ImmutableArray(Of Symbol) = Nothing 1743Private Function FindPartialMethodDeclarations(diagnostics As BindingDiagnosticBag, members As Dictionary(Of String, ImmutableArray(Of Symbol))) As HashSet(Of SourceMemberMethodSymbol) 1765Private Sub ProcessPartialMethodsIfAny(members As Dictionary(Of String, ImmutableArray(Of Symbol)), diagnostics As BindingDiagnosticBag) 1794Dim memberGroup As ImmutableArray(Of Symbol) = members(originalPartialMethod.Name) 1910Dim declMethodParams As ImmutableArray(Of ParameterSymbol) = partialMethod.Parameters 1911Dim implMethodParams As ImmutableArray(Of ParameterSymbol) = implMethod.Parameters 1930Dim declTypeParams As ImmutableArray(Of TypeParameterSymbol) = partialMethod.TypeParameters 1931Dim implTypeParams As ImmutableArray(Of TypeParameterSymbol) = implMethod.TypeParameters 2268Private Function DetermineDefaultPropertyName(membersByName As Dictionary(Of String, ImmutableArray(Of Symbol)), diagBag As BindingDiagnosticBag) As String 2355initializerSet As IEnumerable(Of ImmutableArray(Of FieldOrPropertyInitializer)), 2361Dim fieldOrPropertyArray As ImmutableArray(Of Symbol) = initializer.FieldsOrProperties 2721initializers As ArrayBuilder(Of ImmutableArray(Of FieldOrPropertyInitializer)), 3142Friend Overrides Function GetMembersUnordered() As ImmutableArray(Of Symbol) 3152Public Overloads Overrides Function GetMembers() As ImmutableArray(Of Symbol) 3170Public Overloads Overrides Function GetMembers(name As String) As ImmutableArray(Of Symbol) 3172Dim members As ImmutableArray(Of Symbol) = Nothing 3178Return ImmutableArray(Of Symbol).Empty 3181Friend Overrides Function GetSimpleNonTypeMembers(name As String) As ImmutableArray(Of Symbol) 3186Return ImmutableArray(Of Symbol).Empty 3198Dim symbols As ImmutableArray(Of Symbol) = Nothing 3225Public ReadOnly Property StaticInitializers As ImmutableArray(Of ImmutableArray(Of FieldOrPropertyInitializer)) 3234Public ReadOnly Property InstanceInitializers As ImmutableArray(Of ImmutableArray(Of FieldOrPropertyInitializer)) 3304Private Shared Function GetInitializersInSourceTree(tree As SyntaxTree, initializers As ImmutableArray(Of ImmutableArray(Of FieldOrPropertyInitializer))) As ImmutableArray(Of FieldOrPropertyInitializer) 3306For Each siblingInitializers As ImmutableArray(Of FieldOrPropertyInitializer) In initializers 3315Private Shared Function IndexOfInitializerContainingPosition(initializers As ImmutableArray(Of FieldOrPropertyInitializer), position As Integer) As Integer 3505Dim structEnumerator As Dictionary(Of String, ImmutableArray(Of Symbol)).Enumerator = lookup.Members.GetEnumerator 3509Dim memberList As ImmutableArray(Of Symbol) = structEnumerator.Current.Value 3602memberList As ImmutableArray(Of Symbol), 3604membersEnumerator As Dictionary(Of String, ImmutableArray(Of Symbol)).Enumerator, 3645Dim otherMembers As ImmutableArray(Of Symbol) = Nothing 3689Dim otherMembers As ImmutableArray(Of Symbol) = Nothing 3732memberList As ImmutableArray(Of Symbol),
Symbols\Source\SourceMemberMethodSymbol.vb (15)
33Private _lazyImplementedMethods As ImmutableArray(Of MethodSymbol) 36Private _lazyTypeParameters As ImmutableArray(Of TypeParameterSymbol) 39Private _lazyHandles As ImmutableArray(Of HandledEvent) 75Optional handledEvents As ImmutableArray(Of HandledEvent) = Nothing) 282Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of TypeParameterSymbol) 305diagBag As BindingDiagnosticBag) As ImmutableArray(Of TypeParameterSymbol) 309Return ImmutableArray(Of TypeParameterSymbol).Empty 350Public Overrides ReadOnly Property ExplicitInterfaceImplementations As ImmutableArray(Of MethodSymbol) 355Dim implementedMethods As ImmutableArray(Of MethodSymbol) 374ImmutableArray(Of MethodSymbol).Empty, 387Private Function GetExplicitInterfaceImplementations(sourceModule As SourceModuleSymbol, diagBag As BindingDiagnosticBag) As ImmutableArray(Of MethodSymbol) 409Return ImmutableArray(Of MethodSymbol).Empty 552Public Overrides ReadOnly Property HandledEvents As ImmutableArray(Of HandledEvent) 571Private Function GetHandles(sourceModule As SourceModuleSymbol, diagBag As BindingDiagnosticBag) As ImmutableArray(Of HandledEvent) 575Return ImmutableArray(Of HandledEvent).Empty
Symbols\Source\SourceMethodSymbol.vb (38)
48Private _lazyLocations As ImmutableArray(Of Location) 56Private _cachedDiagnostics As ImmutableArray(Of Diagnostic) 61Optional locations As ImmutableArray(Of Location) = Nothing) 94Dim handledEvents As ImmutableArray(Of HandledEvent) 117handledEvents = ImmutableArray(Of HandledEvent).Empty 565Friend ReadOnly Property Diagnostics As ImmutableArray(Of Diagnostic) 574Friend Function SetDiagnostics(diags As ImmutableArray(Of Diagnostic)) As Boolean 621Public Overrides ReadOnly Property ExplicitInterfaceImplementations As ImmutableArray(Of MethodSymbol) 623Return ImmutableArray(Of MethodSymbol).Empty 797Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 831Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 841ImmutableArray(Of Location).Empty, 892diagnostics As BindingDiagnosticBag) As ImmutableArray(Of TypeParameterConstraint) 1199Return New BoundBlock(methodBlock, methodBlock.Statements, ImmutableArray(Of LocalSymbol).Empty, ImmutableArray.Create(boundStatement)) 1246Public NotOverridable Overrides ReadOnly Property TypeArguments As ImmutableArray(Of TypeSymbol) 1266Public NotOverridable Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier) 1268Return ImmutableArray(Of CustomModifier).Empty 1311Public Overrides ReadOnly Property ReturnTypeCustomModifiers As ImmutableArray(Of CustomModifier) 1316Return ImmutableArray(Of CustomModifier).Empty 1433Public NotOverridable Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData) 1477Public NotOverridable Overrides Function GetReturnTypeAttributes() As ImmutableArray(Of VisualBasicAttributeData) 1579Friend Overrides Function GetAppliedConditionalSymbols() As ImmutableArray(Of String) 1581Return If(data IsNot Nothing, data.ConditionalSymbols, ImmutableArray(Of String).Empty) 1859boundAttributes As ImmutableArray(Of VisualBasicAttributeData), 1860allAttributeSyntaxNodes As ImmutableArray(Of AttributeSyntax), 2050Public MustOverride Overrides ReadOnly Property Parameters As ImmutableArray(Of ParameterSymbol) 2065Private _lazyParameters As ImmutableArray(Of ParameterSymbol) 2076Optional locations As ImmutableArray(Of Location) = Nothing) 2107Public NotOverridable Overrides ReadOnly Property Parameters As ImmutableArray(Of ParameterSymbol) 2120Dim params As ImmutableArray(Of ParameterSymbol) = GetParameters(sourceModule, diagBag) 2135Dim fakeTypeParameters As ImmutableArray(Of TypeParameterSymbol) 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, 2237diagBag As BindingDiagnosticBag) As ImmutableArray(Of ParameterSymbol)
Symbols\Source\SourceModuleSymbol.BoundImports.vb (8)
16Public ReadOnly MemberImports As ImmutableArray(Of NamespaceOrTypeAndImportsClausePosition) 17Public ReadOnly MemberImportsInfo As ImmutableArray(Of GlobalImportInfo) 21Public ReadOnly AliasImports As ImmutableArray(Of AliasAndImportsClausePosition) 22Public ReadOnly AliasImportsInfo As ImmutableArray(Of GlobalImportInfo) 29Public Sub New(memberImports As ImmutableArray(Of NamespaceOrTypeAndImportsClausePosition), 30memberImportsInfo As ImmutableArray(Of GlobalImportInfo), 32aliasImports As ImmutableArray(Of AliasAndImportsClausePosition), 33aliasImportsInfo As ImmutableArray(Of GlobalImportInfo),
Symbols\Source\SourceModuleSymbol.vb (19)
44Private _lazyAssembliesToEmbedTypesFrom As ImmutableArray(Of AssemblySymbol) 48Private _locations As ImmutableArray(Of Location) 81Private _lazyLinkedAssemblyDiagnostics As ImmutableArray(Of Diagnostic) 204Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 236Public Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData) 280Friend Function GetAssembliesToEmbedTypesFrom() As ImmutableArray(Of AssemblySymbol) 464member, importsClausePosition, If(isPrjectImportDeclaration, Nothing, syntaxRef), ImmutableArray(Of AssemblySymbol).Empty) 478Dim pair = New AliasAndImportsClausePosition([alias], importsClausePosition, syntaxRef, ImmutableArray(Of AssemblySymbol).Empty) 491memberImports As ImmutableArray(Of NamespaceOrTypeAndImportsClausePosition), 492memberImportsInfo As ImmutableArray(Of GlobalImportInfo), 493aliasImports As ImmutableArray(Of AliasAndImportsClausePosition), 494aliasImportsInfo As ImmutableArray(Of GlobalImportInfo), 551Friend ReadOnly Property MemberImports As ImmutableArray(Of NamespaceOrTypeAndImportsClausePosition) 558Friend ReadOnly Property AliasImports As ImmutableArray(Of AliasAndImportsClausePosition) 587cancellationToken As CancellationToken) As ImmutableArray(Of Diagnostic) 932Friend Function AtomicStoreArrayAndDiagnostics(Of T)(ByRef variable As ImmutableArray(Of T), 933value As ImmutableArray(Of T), 960attributesToStore As ImmutableArray(Of VisualBasicAttributeData), 989Private Sub RecordPresenceOfBadAttributes(attributes As ImmutableArray(Of VisualBasicAttributeData))
Symbols\Source\SourceNamedTypeSymbol.vb (26)
29Private _lazyTypeParameters As ImmutableArray(Of TypeParameterSymbol) 486Dim symbols As ImmutableArray(Of Symbol) 592Dim contenders As ImmutableArray(Of NamedTypeSymbol) = constituent.GetTypeMembers(Me.Name, arity) 754constraints As ImmutableArray(Of TypeParameterConstraint)) 760Public ReadOnly Constraints As ImmutableArray(Of TypeParameterConstraint) 769Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of TypeParameterSymbol) 788<Out()> ByRef constraints As ImmutableArray(Of TypeParameterConstraint), 862Private Shared Function HaveSameConstraints(constraints1 As ImmutableArray(Of TypeParameterConstraint), 863constraints2 As ImmutableArray(Of TypeParameterConstraint)) As Boolean 898Private Shared Function GetConstraintKind(constraints As ImmutableArray(Of TypeParameterConstraint)) As TypeParameterConstraintKind 906Private Function MakeTypeParameters() As ImmutableArray(Of TypeParameterSymbol) 909Return ImmutableArray(Of TypeParameterSymbol).Empty 951Friend Sub CheckForDuplicateTypeParameters(typeParameters As ImmutableArray(Of TypeParameterSymbol), 1287Friend Overrides Function MakeDeclaredInterfaces(basesBeingResolved As BasesBeingResolved, diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol) 1456Friend Overrides Function MakeAcyclicInterfaces(diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol) 1457Dim declaredInterfaces As ImmutableArray(Of NamedTypeSymbol) = GetDeclaredInterfacesNoUseSiteDiagnostics(Nothing) 1582Friend Overrides Function GetDeclaredBaseInterfacesSafe(basesBeingResolved As BasesBeingResolved) As ImmutableArray(Of NamedTypeSymbol) 1598Dim declaredBases As ImmutableArray(Of NamedTypeSymbol) = GetDeclaredInterfacesNoUseSiteDiagnostics(basesBeingResolved) 1601Return If(m_baseCycleDiagnosticInfo Is Nothing, declaredBases, ImmutableArray(Of NamedTypeSymbol).Empty) 1808Private Function GetAttributeDeclarations(Optional quickAttributes As QuickAttributes? = Nothing) As ImmutableArray(Of SyntaxList(Of AttributeListSyntax)) 1857Public NotOverridable Overloads Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData) 2113Friend NotOverridable Overrides Function GetAppliedConditionalSymbols() As ImmutableArray(Of String) 2115Return If(data IsNot Nothing, data.ConditionalSymbols, ImmutableArray(Of String).Empty) 2338Dim attributeLists As ImmutableArray(Of SyntaxList(Of AttributeListSyntax)) = GetAttributeDeclarations(QuickAttributes.TypeIdentifier) 2377boundAttributes As ImmutableArray(Of VisualBasicAttributeData), 2378allAttributeSyntaxNodes As ImmutableArray(Of AttributeSyntax),
Symbols\Source\SourceNamedTypeSymbol_ComClass.vb (65)
34Private _syntheticInterfaces As ImmutableArray(Of NamedTypeSymbol) 38Dim args As ImmutableArray(Of TypedConstant) = attrData.CommonConstructorArguments 65Public Function GetSynthesizedInterfaces() As ImmutableArray(Of NamedTypeSymbol) 122Dim interfaces As ImmutableArray(Of NamedTypeSymbol) = ImmutableArray(Of NamedTypeSymbol).Empty 306Dim attrData As ImmutableArray(Of VisualBasicAttributeData) = target.GetAttributes() 480Dim attrData As ImmutableArray(Of VisualBasicAttributeData) = target.GetAttributes() 515Private ReadOnly _members As ImmutableArray(Of Symbol) 726Public Overloads Overrides Function Construct(typeArguments As ImmutableArray(Of TypeSymbol)) As NamedTypeSymbol 748Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 770Public Overloads Overrides Function GetMembers() As ImmutableArray(Of Symbol) 774Public Overloads Overrides Function GetMembers(name As String) As ImmutableArray(Of Symbol) 778Public Overloads Overrides Function GetTypeMembers() As ImmutableArray(Of NamedTypeSymbol) 779Return ImmutableArray(Of NamedTypeSymbol).Empty 782Public Overloads Overrides Function GetTypeMembers(name As String) As ImmutableArray(Of NamedTypeSymbol) 786Public Overloads Overrides Function GetTypeMembers(name As String, arity As Integer) As ImmutableArray(Of NamedTypeSymbol) 836Friend Overrides Function GetAppliedConditionalSymbols() As ImmutableArray(Of String) 837Return ImmutableArray(Of String).Empty 870Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 880Friend Overrides Function MakeAcyclicInterfaces(diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol) 881Return ImmutableArray(Of NamedTypeSymbol).Empty 888Friend Overrides Function MakeDeclaredInterfaces(basesBeingResolved As BasesBeingResolved, diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol) 889Return ImmutableArray(Of NamedTypeSymbol).Empty 940Friend Overrides ReadOnly Property TypeArgumentsNoUseSiteDiagnostics As ImmutableArray(Of TypeSymbol) 942Return ImmutableArray(Of TypeSymbol).Empty 946Public Overrides Function GetTypeArgumentCustomModifiers(ordinal As Integer) As ImmutableArray(Of CustomModifier) 968Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of TypeParameterSymbol) 970Return ImmutableArray(Of TypeParameterSymbol).Empty 980Public Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData) 981Return ImmutableArray(Of VisualBasicAttributeData).Empty 1047Private ReadOnly _parameters As ImmutableArray(Of ParameterSymbol) 1056_parameters = ImmutableArray(Of ParameterSymbol).Empty 1087Friend Overrides Function GetAppliedConditionalSymbols() As ImmutableArray(Of String) 1088Return ImmutableArray(Of String).Empty 1127Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 1133Public Overrides ReadOnly Property ExplicitInterfaceImplementations As ImmutableArray(Of MethodSymbol) 1221Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 1278Public Overrides ReadOnly Property Parameters As ImmutableArray(Of ParameterSymbol) 1296Public Overrides ReadOnly Property ReturnTypeCustomModifiers As ImmutableArray(Of CustomModifier) 1302Public Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier) 1314Public Overrides ReadOnly Property TypeArguments As ImmutableArray(Of TypeSymbol) 1316Return ImmutableArray(Of TypeSymbol).Empty 1320Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of TypeParameterSymbol) 1322Return ImmutableArray(Of TypeParameterSymbol).Empty 1326Public Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData) 1328Dim toClone As ImmutableArray(Of VisualBasicAttributeData) = attributeSource.GetAttributes() 1368Public Overrides Function GetReturnTypeAttributes() As ImmutableArray(Of VisualBasicAttributeData) 1375Return ImmutableArray(Of VisualBasicAttributeData).Empty 1450Public Overrides ReadOnly Property CustomModifiers As ImmutableArray(Of CustomModifier) 1456Public Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier) 1462Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 1610Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 1628Public Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData) 1630Return ImmutableArray(Of VisualBasicAttributeData).Empty 1673Private ReadOnly _parameters As ImmutableArray(Of ParameterSymbol) 1690_parameters = ImmutableArray(Of ParameterSymbol).Empty 1738Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 1744Public Overrides ReadOnly Property ExplicitInterfaceImplementations As ImmutableArray(Of PropertySymbol) 1746Return ImmutableArray(Of PropertySymbol).Empty 1808Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 1814Public Overrides ReadOnly Property Parameters As ImmutableArray(Of ParameterSymbol) 1844Public Overrides ReadOnly Property TypeCustomModifiers As ImmutableArray(Of CustomModifier) 1850Public Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier) 1856Public Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData) 1904Dim interfaces As ImmutableArray(Of NamedTypeSymbol) = _comClassData.GetSynthesizedInterfaces()
Symbols\Source\SourceNamedTypeSymbol_GroupClass.vb (3)
129Dim attributeLists As ImmutableArray(Of SyntaxList(Of AttributeListSyntax)) = GetAttributeDeclarations() 423nestedTypes As Dictionary(Of String, ImmutableArray(Of NamedTypeSymbol)), 427Dim types As ImmutableArray(Of NamedTypeSymbol) = Nothing
Symbols\Source\SourceNamespaceSymbol.vb (26)
20Private _nameToMembersMap As Dictionary(Of String, ImmutableArray(Of NamespaceOrTypeSymbol)) 21Private _nameToTypeMembersMap As Dictionary(Of String, ImmutableArray(Of NamedTypeSymbol)) 35Private _lazyModuleMembers As ImmutableArray(Of NamedTypeSymbol) 38Private _lazyAllMembers As ImmutableArray(Of Symbol) 125Private Function GetNameToMembersMap() As Dictionary(Of String, ImmutableArray(Of NamespaceOrTypeSymbol)) 136Private Function MakeNameToMembersMap() As Dictionary(Of String, ImmutableArray(Of NamespaceOrTypeSymbol)) 155Dim result As New Dictionary(Of String, ImmutableArray(Of NamespaceOrTypeSymbol))(builder.Count, IdentifierComparison.Comparer) 184Private Function GetNameToTypeMembersMap() As Dictionary(Of String, ImmutableArray(Of NamedTypeSymbol)) 199Public Overloads Overrides Function GetMembers() As ImmutableArray(Of Symbol) 217Friend Overloads Overrides Function GetMembersUnordered() As ImmutableArray(Of Symbol) 226Public Overloads Overrides Function GetMembers(name As String) As ImmutableArray(Of Symbol) 227Dim members As ImmutableArray(Of NamespaceOrTypeSymbol) = Nothing 229Return ImmutableArray(Of Symbol).CastUp(members) 231Return ImmutableArray(Of Symbol).Empty 235Friend Overrides Function GetTypeMembersUnordered() As ImmutableArray(Of NamedTypeSymbol) 239Public Overloads Overrides Function GetTypeMembers() As ImmutableArray(Of NamedTypeSymbol) 243Public Overloads Overrides Function GetTypeMembers(name As String) As ImmutableArray(Of NamedTypeSymbol) 244Dim members As ImmutableArray(Of NamedTypeSymbol) = Nothing 248Return ImmutableArray(Of NamedTypeSymbol).Empty 253Public Overrides Function GetModuleMembers() As ImmutableArray(Of NamedTypeSymbol) 280Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 286Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 292Private Function ComputeDeclaringReferencesCore() As ImmutableArray(Of SyntaxReference) 293Dim declarations As ImmutableArray(Of SingleNamespaceDeclaration) = _declaration.Declarations 489Friend Overrides ReadOnly Property TypesToCheckForExtensionMethods As ImmutableArray(Of NamedTypeSymbol) 496Return ImmutableArray(Of NamedTypeSymbol).Empty
Symbols\Source\SourceParameterSymbol.vb (7)
69Public NotOverridable Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 74Return ImmutableArray(Of Location).Empty 85Public MustOverride Overrides ReadOnly Property CustomModifiers As ImmutableArray(Of CustomModifier) 87Public MustOverride Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier) 89Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 92Return ImmutableArray(Of SyntaxReference).Empty 179Public NotOverridable Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData)
Symbols\Source\SourceParameterSymbolBase.vb (2)
77Friend MustOverride Function WithTypeAndCustomModifiers(type As TypeSymbol, customModifiers As ImmutableArray(Of CustomModifier), refCustomModifiers As ImmutableArray(Of CustomModifier)) As ParameterSymbol
Symbols\Source\SourcePropertyAccessorSymbol.vb (16)
20Private _lazyExplicitImplementations As ImmutableArray(Of MethodSymbol) ' lazily populated with explicit implementations 23Private _lazyParameters As ImmutableArray(Of ParameterSymbol) 32locations As ImmutableArray(Of Location)) 44Private Shared Function SynthesizeAutoGetterParameters(getter As SourcePropertyAccessorSymbol, propertySymbol As SourcePropertySymbol) As ImmutableArray(Of ParameterSymbol) 46Return ImmutableArray(Of ParameterSymbol).Empty 54Private Shared Function SynthesizeAutoSetterParameters(setter As SourcePropertyAccessorSymbol, propertySymbol As SourcePropertySymbol) As ImmutableArray(Of ParameterSymbol) 137Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 139Return If(Me.m_property.IsCustomProperty, MyBase.DeclaringSyntaxReferences, ImmutableArray(Of SyntaxReference).Empty) 249Public Overrides ReadOnly Property Parameters As ImmutableArray(Of ParameterSymbol) 285Private Function GetParameters(sourceModule As SourceModuleSymbol, diagBag As BindingDiagnosticBag) As ImmutableArray(Of ParameterSymbol) 299Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of TypeParameterSymbol) 301Return ImmutableArray(Of TypeParameterSymbol).Empty 333Public Overrides ReadOnly Property ExplicitInterfaceImplementations As ImmutableArray(Of MethodSymbol) 346Public Overrides ReadOnly Property ReturnTypeCustomModifiers As ImmutableArray(Of CustomModifier) 353Return If(Me.MethodKind = MethodKind.PropertySet, ImmutableArray(Of CustomModifier).Empty, m_property.TypeCustomModifiers) 393diagnostics As BindingDiagnosticBag) As ImmutableArray(Of ParameterSymbol)
Symbols\Source\SourcePropertySymbol.vb (25)
33Private _lazyParameters As ImmutableArray(Of ParameterSymbol) 48Private _lazyImplementedProperties As ImmutableArray(Of PropertySymbol) 267prop._lazyImplementedProperties = ImmutableArray(Of PropertySymbol).Empty 326Public Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier) 328Return ImmutableArray(Of CustomModifier).Empty 451Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 457Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 517Public Overloads Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData) 774Public Overrides ReadOnly Property Parameters As ImmutableArray(Of ParameterSymbol) 786Dim params As ImmutableArray(Of ParameterSymbol) = ComputeParameters(diagnostics) 801ImmutableArray(Of CustomModifier).Empty, 802ImmutableArray(Of CustomModifier).Empty, 816typeCustomModifiers:=ImmutableArray(Of CustomModifier).Empty, 817refCustomModifiers:=ImmutableArray(Of CustomModifier).Empty, 871Private Function ComputeParameters(diagnostics As BindingDiagnosticBag) As ImmutableArray(Of ParameterSymbol) 875Return ImmutableArray(Of ParameterSymbol).Empty 911Public Overrides ReadOnly Property ExplicitInterfaceImplementations As ImmutableArray(Of PropertySymbol) 926Private Function ComputeExplicitInterfaceImplementations(diagnostics As BindingDiagnosticBag) As ImmutableArray(Of PropertySymbol) 938Friend Function GetAccessorImplementations(getter As Boolean) As ImmutableArray(Of MethodSymbol) 943Return ImmutableArray(Of MethodSymbol).Empty 965Public Overrides ReadOnly Property TypeCustomModifiers As ImmutableArray(Of CustomModifier) 970Return ImmutableArray(Of CustomModifier).Empty 1152diagnostics As BindingDiagnosticBag) As ImmutableArray(Of PropertySymbol) 1170Return ImmutableArray(Of PropertySymbol).Empty 1210Private Shared Function HasRequiredParameters(parameters As ImmutableArray(Of ParameterSymbol)) As Boolean
Symbols\Source\SourceSimpleParameterSymbol.vb (14)
150Public Overrides ReadOnly Property CustomModifiers As ImmutableArray(Of CustomModifier) 152Return ImmutableArray(Of CustomModifier).Empty 156Public Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier) 158Return ImmutableArray(Of CustomModifier).Empty 162Friend Overrides Function WithTypeAndCustomModifiers(type As TypeSymbol, customModifiers As ImmutableArray(Of CustomModifier), refCustomModifiers As ImmutableArray(Of CustomModifier)) As ParameterSymbol 173Private ReadOnly _customModifiers As ImmutableArray(Of CustomModifier) 174Private ReadOnly _refCustomModifiers As ImmutableArray(Of CustomModifier) 182customModifiers As ImmutableArray(Of CustomModifier), 183refCustomModifiers As ImmutableArray(Of CustomModifier) 194Public Overrides ReadOnly Property CustomModifiers As ImmutableArray(Of CustomModifier) 200Public Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier) 206Friend Overrides Function WithTypeAndCustomModifiers(type As TypeSymbol, customModifiers As ImmutableArray(Of CustomModifier), refCustomModifiers As ImmutableArray(Of CustomModifier)) As ParameterSymbol
Symbols\Source\SourceTypeParameterSymbol.vb (20)
20Private _lazyConstraints As ImmutableArray(Of TypeParameterConstraint) 21Private _lazyConstraintTypes As ImmutableArray(Of TypeSymbol) 40Public Overloads Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData) 41Return ImmutableArray(Of VisualBasicAttributeData).Empty 86Friend Overrides ReadOnly Property ConstraintTypesNoUseSiteDiagnostics As ImmutableArray(Of TypeSymbol) 99Friend Overrides Function GetConstraints() As ImmutableArray(Of TypeParameterConstraint) 149Protected MustOverride ReadOnly Property ContainerTypeParameters As ImmutableArray(Of TypeParameterSymbol) 151Protected MustOverride Overloads Function GetDeclaredConstraints(diagnostics As BindingDiagnosticBag) As ImmutableArray(Of TypeParameterConstraint) 179Private Sub CheckConstraintTypeConstraints(constraints As ImmutableArray(Of TypeParameterConstraint), diagnostics As BindingDiagnosticBag) 235Private ReadOnly _syntaxRefs As ImmutableArray(Of SyntaxReference) 238Public Sub New(container As SourceNamedTypeSymbol, ordinal As Integer, name As String, syntaxRefs As ImmutableArray(Of SyntaxReference)) 260Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 270Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 282Protected Overrides ReadOnly Property ContainerTypeParameters As ImmutableArray(Of TypeParameterSymbol) 288Protected Overrides Function GetDeclaredConstraints(diagnostics As BindingDiagnosticBag) As ImmutableArray(Of TypeParameterConstraint) 290Dim constraints As ImmutableArray(Of TypeParameterConstraint) = Nothing 338Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 344Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 350Protected Overrides ReadOnly Property ContainerTypeParameters As ImmutableArray(Of TypeParameterSymbol) 356Protected Overrides Function GetDeclaredConstraints(diagnostics As BindingDiagnosticBag) As ImmutableArray(Of TypeParameterConstraint)
Symbols\Source\SourceWithEventsBackingFieldSymbol.vb (2)
43Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 45Return ImmutableArray(Of SyntaxReference).Empty
Symbols\Source\SynthesizedConstructorSymbol.vb (2)
49Public Overrides ReadOnly Property Parameters As ImmutableArray(Of ParameterSymbol) 51Return ImmutableArray(Of ParameterSymbol).Empty
Symbols\Source\SynthesizedEntryPointSymbol.vb (16)
117Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of TypeParameterSymbol) 119Return ImmutableArray(Of TypeParameterSymbol).Empty 133Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 135Return ImmutableArray(Of Location).Empty 145Public Overrides ReadOnly Property ReturnTypeCustomModifiers As ImmutableArray(Of CustomModifier) 147Return ImmutableArray(Of CustomModifier).Empty 151Public Overrides ReadOnly Property TypeArguments As ImmutableArray(Of TypeSymbol) 153Return ImmutableArray(Of TypeSymbol).Empty 169Public Overrides ReadOnly Property ExplicitInterfaceImplementations As ImmutableArray(Of MethodSymbol) 171Return ImmutableArray(Of MethodSymbol).Empty 213arguments:=ImmutableArray(Of BoundExpression).Empty, 241Public Overrides ReadOnly Property Parameters As ImmutableArray(Of ParameterSymbol) 243Return ImmutableArray(Of ParameterSymbol).Empty 278ImmutableArray(Of BoundExpression).Empty, 315Private ReadOnly _parameters As ImmutableArray(Of ParameterSymbol) 330Public Overrides ReadOnly Property Parameters As ImmutableArray(Of ParameterSymbol)
Symbols\Source\SynthesizedEventAccessorSymbol.vb (10)
21Private _lazyParameters As ImmutableArray(Of ParameterSymbol) 22Private _lazyExplicitImplementations As ImmutableArray(Of MethodSymbol) ' lazily populated with explicit implementations 36Public Overrides ReadOnly Property ExplicitInterfaceImplementations As ImmutableArray(Of MethodSymbol) 48Public Overrides ReadOnly Property Parameters As ImmutableArray(Of ParameterSymbol) 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 (5)
86Public Overrides ReadOnly Property CustomModifiers As ImmutableArray(Of CustomModifier) 88Return ImmutableArray(Of CustomModifier).Empty 136Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 142Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 144Return ImmutableArray(Of SyntaxReference).Empty
Symbols\Source\SynthesizedInteractiveInitializerMethod.vb (1)
99Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\Source\SynthesizedLambdaSymbol.vb (3)
21parameters As ImmutableArray(Of BoundLambdaParameterSymbol), 59Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 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 (4)
99boundStatement = New BoundBadStatement(accessorBlock, ImmutableArray(Of BoundNode).Empty) 128Return New BoundBlock(accessorBlock, Nothing, ImmutableArray(Of LocalSymbol).Empty, ImmutableArray.Create(Of BoundStatement)(boundStatement)) 188Private ReadOnly _parameters As ImmutableArray(Of ParameterSymbol) 217Public Overrides ReadOnly Property Parameters As ImmutableArray(Of ParameterSymbol)
Symbols\Source\SynthesizedMyGroupCollectionPropertySymbol.vb (4)
101Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 103Return ImmutableArray(Of SyntaxReference).Empty 107Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 109Return ImmutableArray(Of Location).Empty
Symbols\Source\SynthesizedSubmissionConstructorSymbol.vb (4)
12Private ReadOnly _parameters As ImmutableArray(Of ParameterSymbol) 40Public Overrides ReadOnly Property Parameters As ImmutableArray(Of ParameterSymbol) 51ImmutableArray(Of LocalSymbol).Empty, 59compilation As VisualBasicCompilation) As ImmutableArray(Of BoundStatement)
Symbols\Source\SynthesizedWithEventsAccessorSymbol.vb (10)
16Private _lazyParameters As ImmutableArray(Of ParameterSymbol) 17Private _lazyExplicitImplementations As ImmutableArray(Of MethodSymbol) ' lazily populated with explicit implementations 30Public Overrides ReadOnly Property ExplicitInterfaceImplementations As ImmutableArray(Of MethodSymbol) 42Private Function GetExplicitInterfaceImplementations() As ImmutableArray(Of MethodSymbol) 48Return ImmutableArray(Of MethodSymbol).Empty 78Public Overrides ReadOnly Property Parameters As ImmutableArray(Of ParameterSymbol) 88Protected MustOverride Function GetParameters() As ImmutableArray(Of ParameterSymbol) 136Protected Overrides Function GetParameters() As ImmutableArray(Of ParameterSymbol) 145Return ImmutableArray(Of ParameterSymbol).Empty 184Protected Overrides Function GetParameters() As ImmutableArray(Of ParameterSymbol)
Symbols\SubstitutedErrorType.vb (4)
109Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of TypeParameterSymbol) 115Friend Overrides ReadOnly Property TypeArgumentsNoUseSiteDiagnostics As ImmutableArray(Of TypeSymbol) 127Public Overrides Function GetTypeArgumentCustomModifiers(ordinal As Integer) As ImmutableArray(Of CustomModifier) 201Public Overrides Function Construct(typeArguments As ImmutableArray(Of TypeSymbol)) As NamedTypeSymbol
Symbols\SubstitutedEventSymbol.vb (5)
30Private _lazyExplicitInterfaceImplementations As ImmutableArray(Of EventSymbol) 109Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 115Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 121Public Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData) 191Public Overrides ReadOnly Property ExplicitInterfaceImplementations As ImmutableArray(Of EventSymbol)
Symbols\SubstitutedFieldSymbol.vb (4)
127Public Overloads Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData) 150Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 156Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 168Public Overrides ReadOnly Property CustomModifiers As ImmutableArray(Of CustomModifier)
Symbols\SubstitutedMethodSymbol.vb (43)
28Protected Overridable Function SubstituteParameters() As ImmutableArray(Of ParameterSymbol) 34Return ImmutableArray(Of ParameterSymbol).Empty 98Friend Overrides Function GetAppliedConditionalSymbols() As ImmutableArray(Of String) 132Friend Overrides ReadOnly Property FixedTypeParameters As ImmutableArray(Of KeyValuePair(Of TypeParameterSymbol, TypeSymbol)) 160Public Overloads Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData) 271Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 277Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 301Public MustOverride Overrides ReadOnly Property Parameters As ImmutableArray(Of ParameterSymbol) 315Public Overrides ReadOnly Property ReturnTypeCustomModifiers As ImmutableArray(Of CustomModifier) 321Public Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier) 327Public MustOverride Overrides ReadOnly Property TypeArguments As ImmutableArray(Of TypeSymbol) 329Public MustOverride Overrides ReadOnly Property TypeParameters As ImmutableArray(Of TypeParameterSymbol) 331Public Overrides ReadOnly Property ExplicitInterfaceImplementations As ImmutableArray(Of MethodSymbol) 405Public MustOverride Overrides Function Construct(typeArguments As ImmutableArray(Of TypeSymbol)) As MethodSymbol 488Private ReadOnly _parameters As ImmutableArray(Of ParameterSymbol) 497Public Overrides ReadOnly Property Parameters As ImmutableArray(Of ParameterSymbol) 521Public Overrides Function Construct(typeArguments As ImmutableArray(Of TypeSymbol)) As MethodSymbol 525Public Overrides ReadOnly Property TypeArguments As ImmutableArray(Of TypeSymbol) 527Return ImmutableArray(Of TypeSymbol).Empty 531Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of TypeParameterSymbol) 533Return ImmutableArray(Of TypeParameterSymbol).Empty 564Private ReadOnly _typeParameters As ImmutableArray(Of TypeParameterSymbol) 565Private ReadOnly _parameters As ImmutableArray(Of ParameterSymbol) 578Dim typeParametersDefinitions As ImmutableArray(Of TypeParameterSymbol) = originalDefinition.TypeParameters 601typeParameters As ImmutableArray(Of SubstitutedTypeParameterSymbol) 618Public Overrides ReadOnly Property Parameters As ImmutableArray(Of ParameterSymbol) 663Public Overrides Function Construct(typeArguments As ImmutableArray(Of TypeSymbol)) As MethodSymbol 679Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of TypeParameterSymbol) 685Public Overrides ReadOnly Property TypeArguments As ImmutableArray(Of TypeSymbol) 705Protected ReadOnly _typeArguments As ImmutableArray(Of TypeSymbol) 707Protected Sub New(substitution As TypeSubstitution, typeArguments As ImmutableArray(Of TypeSymbol)) 732Public Overrides Function Construct(typeArguments As ImmutableArray(Of TypeSymbol)) As MethodSymbol 736Public Overrides ReadOnly Property TypeArguments As ImmutableArray(Of TypeSymbol) 792Private ReadOnly _parameters As ImmutableArray(Of ParameterSymbol) 794Public Sub New(constructedFrom As SpecializedGenericMethod, substitution As TypeSubstitution, typeArguments As ImmutableArray(Of TypeSymbol)) 818Public Overrides ReadOnly Property Parameters As ImmutableArray(Of ParameterSymbol) 824Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of TypeParameterSymbol) 838Private ReadOnly _parameters As ImmutableArray(Of ParameterSymbol) 840Public Sub New(substitution As TypeSubstitution, typeArguments As ImmutableArray(Of TypeSymbol)) 860Public Overrides ReadOnly Property Parameters As ImmutableArray(Of ParameterSymbol) 866Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of TypeParameterSymbol) 890Dim typeParameters As ImmutableArray(Of TypeParameterSymbol) = Me.TypeParameters 891Dim typeArguments As ImmutableArray(Of TypeSymbol) = Me.TypeArguments
Symbols\SubstitutedNamedType.vb (35)
188Friend NotOverridable Overrides Function GetAppliedConditionalSymbols() As ImmutableArray(Of String) 218Public NotOverridable Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 224Public NotOverridable Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 230Public NotOverridable Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData) 250Friend NotOverridable Overrides Function MakeDeclaredInterfaces(basesBeingResolved As BasesBeingResolved, diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol) 254Return ImmutableArray(Of NamedTypeSymbol).Empty 278Friend NotOverridable Overrides Function MakeAcyclicInterfaces(diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol) 282Return ImmutableArray(Of NamedTypeSymbol).Empty 340Public Overrides Function GetMembers() As ImmutableArray(Of Symbol) 346Friend Overrides Function GetMembersUnordered() As ImmutableArray(Of Symbol) 352Private Function GetMembers_Worker(members As ImmutableArray(Of Symbol)) As ImmutableArray(Of Symbol) 408Public Overrides Function GetMembers(name As String) As ImmutableArray(Of Symbol) 413Friend Overrides Function GetTypeMembersUnordered() As ImmutableArray(Of NamedTypeSymbol) 417Public Overrides Function GetTypeMembers() As ImmutableArray(Of NamedTypeSymbol) 421Public Overrides Function GetTypeMembers(name As String) As ImmutableArray(Of NamedTypeSymbol) 426Public Overrides Function GetTypeMembers(name As String, arity As Integer) As ImmutableArray(Of NamedTypeSymbol) 667Private ReadOnly _typeParameters As ImmutableArray(Of TypeParameterSymbol) 680Dim typeParametersDefinitions As ImmutableArray(Of TypeParameterSymbol) = fullInstanceType.TypeParameters 703typeParameters As ImmutableArray(Of SubstitutedTypeParameterSymbol) 716Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of TypeParameterSymbol) 722Friend Overrides ReadOnly Property TypeArgumentsNoUseSiteDiagnostics As ImmutableArray(Of TypeSymbol) 728Public NotOverridable Overrides Function GetTypeArgumentCustomModifiers(ordinal As Integer) As ImmutableArray(Of CustomModifier) 765Public Overrides Function Construct(typeArguments As ImmutableArray(Of TypeSymbol)) As NamedTypeSymbol 881Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of TypeParameterSymbol) 883Return ImmutableArray(Of TypeParameterSymbol).Empty 887Friend Overrides ReadOnly Property TypeArgumentsNoUseSiteDiagnostics As ImmutableArray(Of TypeSymbol) 889Return ImmutableArray(Of TypeSymbol).Empty 893Public NotOverridable Overrides Function GetTypeArgumentCustomModifiers(ordinal As Integer) As ImmutableArray(Of CustomModifier) 909Public Overrides Function Construct(typeArguments As ImmutableArray(Of TypeSymbol)) As NamedTypeSymbol 957Private ReadOnly _typeArguments As ImmutableArray(Of TypeSymbol) 977Public NotOverridable Overrides ReadOnly Property TypeParameters As ImmutableArray(Of TypeParameterSymbol) 983Friend NotOverridable Overrides ReadOnly Property TypeArgumentsNoUseSiteDiagnostics As ImmutableArray(Of TypeSymbol) 989Public NotOverridable Overrides Function GetTypeArgumentCustomModifiers(ordinal As Integer) As ImmutableArray(Of CustomModifier) 1009Public Overrides Function Construct(typeArguments As ImmutableArray(Of TypeSymbol)) As NamedTypeSymbol
Symbols\SubstitutedParameterSymbol.vb (5)
58Public Overloads Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData) 86Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 92Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 170Public Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier) 182Public Overrides ReadOnly Property CustomModifiers As ImmutableArray(Of CustomModifier)
Symbols\SubstitutedPropertySymbol.vb (10)
24Private ReadOnly _parameters As ImmutableArray(Of ParameterSymbol) 105Public Overrides ReadOnly Property ExplicitInterfaceImplementations As ImmutableArray(Of PropertySymbol) 113Public Overloads Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData) 154Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 194Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 200Public Overrides ReadOnly Property Parameters As ImmutableArray(Of ParameterSymbol) 224Public Overrides ReadOnly Property TypeCustomModifiers As ImmutableArray(Of CustomModifier) 230Public Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier) 249Private Function SubstituteParameters() As ImmutableArray(Of ParameterSymbol) 255Return ImmutableArray(Of ParameterSymbol).Empty
Symbols\SubstitutedTypeParameterSymbol.vb (4)
95Friend Overrides ReadOnly Property ConstraintTypesNoUseSiteDiagnostics As ImmutableArray(Of TypeSymbol) 113Public Overloads Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData) 147Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 153Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference)
Symbols\Symbol.vb (29)
341Public MustOverride ReadOnly Property Locations As ImmutableArray(Of Location) 361Public MustOverride ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 366Friend Shared Function GetDeclaringSyntaxNodeHelper(Of TNode As VisualBasicSyntaxNode)(locations As ImmutableArray(Of Location)) As ImmutableArray(Of VisualBasicSyntaxNode) 368Return ImmutableArray(Of VisualBasicSyntaxNode).Empty 390Friend Shared Function GetDeclaringSyntaxReferenceHelper(Of TNode As VisualBasicSyntaxNode)(locations As ImmutableArray(Of Location)) As ImmutableArray(Of SyntaxReference) 394Return ImmutableArray(Of SyntaxReference).Empty 408Friend Shared Function GetDeclaringSyntaxReferenceHelper(references As ImmutableArray(Of SyntaxReference)) As ImmutableArray(Of SyntaxReference) 426Friend Shared Function GetDeclaringSyntaxReferenceHelper(reference As SyntaxReference) As ImmutableArray(Of SyntaxReference) 434Return ImmutableArray(Of SyntaxReference).Empty 868Public Function ToDisplayParts(Optional format As SymbolDisplayFormat = Nothing) As ImmutableArray(Of SymbolDisplayPart) 876Public Function ToMinimalDisplayParts(semanticModel As SemanticModel, position As Integer, Optional format As SymbolDisplayFormat = Nothing) As ImmutableArray(Of SymbolDisplayPart) 1072Friend Function DeriveUseSiteInfoFromParameters(parameters As ImmutableArray(Of ParameterSymbol)) As UseSiteInfo(Of AssemblySymbol) 1085customModifiers As ImmutableArray(Of CustomModifier), 1114Friend Overloads Shared Function GetUnificationUseSiteDiagnosticRecursive(Of T As TypeSymbol)(types As ImmutableArray(Of T), owner As Symbol, ByRef checkedTypes As HashSet(Of TypeSymbol)) As DiagnosticInfo 1125Friend Overloads Shared Function GetUnificationUseSiteDiagnosticRecursive(modifiers As ImmutableArray(Of CustomModifier), owner As Symbol, ByRef checkedTypes As HashSet(Of TypeSymbol)) As DiagnosticInfo 1136Friend Overloads Shared Function GetUnificationUseSiteDiagnosticRecursive(parameters As ImmutableArray(Of ParameterSymbol), owner As Symbol, ByRef checkedTypes As HashSet(Of TypeSymbol)) As DiagnosticInfo 1150Friend Overloads Shared Function GetUnificationUseSiteDiagnosticRecursive(typeParameters As ImmutableArray(Of TypeParameterSymbol), owner As Symbol, ByRef checkedTypes As HashSet(Of TypeSymbol)) As DiagnosticInfo 1295Private ReadOnly Property ISymbol_Locations As ImmutableArray(Of Location) Implements ISymbol.Locations, ISymbolInternal.Locations 1301Private ReadOnly Property ISymbol_DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) Implements ISymbol.DeclaringSyntaxReferences 1329Private Function ISymbol_ToDisplayParts(Optional format As SymbolDisplayFormat = Nothing) As ImmutableArray(Of SymbolDisplayPart) Implements ISymbol.ToDisplayParts 1337Private Function ISymbol_ToMinimalDisplayParts(semanticModel As SemanticModel, position As Integer, Optional format As SymbolDisplayFormat = Nothing) As ImmutableArray(Of SymbolDisplayPart) Implements ISymbol.ToMinimalDisplayParts 1347Private Function ISymbol_GetAttributes() As ImmutableArray(Of AttributeData) Implements ISymbol.GetAttributes 1353Protected Shared Function ConstructTypeArguments(ParamArray typeArguments() As ITypeSymbol) As ImmutableArray(Of TypeSymbol) 1361Protected Shared Function ConstructTypeArguments(typeArguments As ImmutableArray(Of ITypeSymbol), typeArgumentNullableAnnotations As ImmutableArray(Of CodeAnalysis.NullableAnnotation)) As ImmutableArray(Of TypeSymbol)
Symbols\Symbol_Attributes.vb (18)
29Public Overridable Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData) 30Return ImmutableArray(Of VisualBasicAttributeData).Empty 233Friend Overridable Sub PostDecodeWellKnownAttributes(boundAttributes As ImmutableArray(Of VisualBasicAttributeData), 234allAttributeSyntaxNodes As ImmutableArray(Of AttributeSyntax), 259Dim binders As ImmutableArray(Of Binder) = Nothing 262Dim boundAttributes As ImmutableArray(Of VisualBasicAttributeData) 275Dim boundAttributeTypes As ImmutableArray(Of NamedTypeSymbol) = Binder.BindAttributeTypes(binders, attributesToBind, Me, diagnostics) 294boundAttributes = ImmutableArray(Of VisualBasicAttributeData).Empty 311<Out> ByRef binders As ImmutableArray(Of Binder)) As ImmutableArray(Of AttributeSyntax) 355binders = ImmutableArray(Of Binder).Empty 356Return ImmutableArray(Of AttributeSyntax).Empty 419Private Function EarlyDecodeWellKnownAttributes(binders As ImmutableArray(Of Binder), 420boundAttributeTypes As ImmutableArray(Of NamedTypeSymbol), 421attributesToBind As ImmutableArray(Of AttributeSyntax), 451binders As ImmutableArray(Of Binder), 452attributeSyntaxList As ImmutableArray(Of AttributeSyntax), 453boundAttributes As ImmutableArray(Of VisualBasicAttributeData),
Symbols\SymbolExtensions.vb (4)
122Friend Function MatchesAnyName(this As ImmutableArray(Of TypeParameterSymbol), name As String) As Boolean 339Friend Function GetParameters(sym As Symbol) As ImmutableArray(Of ParameterSymbol) 346Return ImmutableArray(Of ParameterSymbol).Empty 481Private Function ContainsTupleNames(parameters As ImmutableArray(Of ParameterSymbol)) As Boolean
Symbols\SynthesizedSymbols\SynthesizedAccessor.vb (1)
122Public NotOverridable Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\SynthesizedSymbols\SynthesizedAttributeData.vb (10)
21Private ReadOnly _constructorArguments As ImmutableArray(Of TypedConstant) 22Private ReadOnly _namedArguments As ImmutableArray(Of KeyValuePair(Of String, TypedConstant)) 26arguments As ImmutableArray(Of TypedConstant), 27namedArgs As ImmutableArray(Of KeyValuePair(Of String, TypedConstant))) 45Optional arguments As ImmutableArray(Of TypedConstant) = Nothing, 46Optional namedArguments As ImmutableArray(Of KeyValuePair(Of String, TypedConstant)) = Nothing) As SynthesizedAttributeData 58arguments = ImmutableArray(Of TypedConstant).Empty 62namedArguments = ImmutableArray(Of KeyValuePair(Of String, TypedConstant)).Empty 87Protected Overrides ReadOnly Property CommonConstructorArguments As ImmutableArray(Of TypedConstant) 93Protected Overrides ReadOnly Property CommonNamedArguments As ImmutableArray(Of KeyValuePair(Of String, TypedConstant))
Symbols\SynthesizedSymbols\SynthesizedBackingFieldBase.vb (5)
33Public Overrides ReadOnly Property CustomModifiers As ImmutableArray(Of CustomModifier) 35Return ImmutableArray(Of CustomModifier).Empty 83Public NotOverridable Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 89Public NotOverridable Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 91Return ImmutableArray(Of SyntaxReference).Empty
Symbols\SynthesizedSymbols\SynthesizedClonedTypeParameterSymbol.vb (6)
33Private _lazyConstraints As ImmutableArray(Of TypeSymbol) 35Friend Shared Function MakeTypeParameters(origParameters As ImmutableArray(Of TypeParameterSymbol), container As Symbol, 36mapFunction As Func(Of TypeParameterSymbol, Symbol, TypeParameterSymbol)) As ImmutableArray(Of TypeParameterSymbol) 69Friend Overrides ReadOnly Property ConstraintTypesNoUseSiteDiagnostics As ImmutableArray(Of TypeSymbol) 115Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 121Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference)
Symbols\SynthesizedSymbols\SynthesizedConstructorBase.vb (1)
179Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\SynthesizedSymbols\SynthesizedDelegateMethodSymbol.vb (21)
25Private _parameters As ImmutableArray(Of ParameterSymbol) 54Friend Sub SetParameters(parameters As ImmutableArray(Of ParameterSymbol)) 120Public Overrides ReadOnly Property ExplicitInterfaceImplementations As ImmutableArray(Of MethodSymbol) 122Return ImmutableArray(Of MethodSymbol).Empty 298Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 304Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 306Return ImmutableArray(Of SyntaxReference).Empty 330Public Overrides ReadOnly Property Parameters As ImmutableArray(Of ParameterSymbol) 335Return ImmutableArray(Of ParameterSymbol).Empty 358Public Overrides Function GetReturnTypeAttributes() As ImmutableArray(Of VisualBasicAttributeData) 359Return ImmutableArray(Of VisualBasicAttributeData).Empty 365Public Overrides ReadOnly Property ReturnTypeCustomModifiers As ImmutableArray(Of CustomModifier) 367Return ImmutableArray(Of CustomModifier).Empty 371Public Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier) 373Return ImmutableArray(Of CustomModifier).Empty 382Public Overrides ReadOnly Property TypeArguments As ImmutableArray(Of TypeSymbol) 384Return ImmutableArray(Of TypeSymbol).Empty 392Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of TypeParameterSymbol) 394Return ImmutableArray(Of TypeParameterSymbol).Empty 423Friend Overrides Function GetAppliedConditionalSymbols() As ImmutableArray(Of String) 424Return ImmutableArray(Of String).Empty
Symbols\SynthesizedSymbols\SynthesizedEventDelegateSymbol.vb (21)
37Private _lazyMembers As ImmutableArray(Of Symbol) 51Public Overloads Overrides Function GetMembers() As ImmutableArray(Of Symbol) 75Dim members As ImmutableArray(Of Symbol) 88Public Overloads Overrides Function GetMembers(name As String) As ImmutableArray(Of Symbol) 184Public Overloads Overrides Function GetTypeMembers() As ImmutableArray(Of NamedTypeSymbol) 185Return ImmutableArray(Of NamedTypeSymbol).Empty 188Public Overloads Overrides Function GetTypeMembers(name As String) As ImmutableArray(Of NamedTypeSymbol) 189Return ImmutableArray(Of NamedTypeSymbol).Empty 192Public Overloads Overrides Function GetTypeMembers(name As String, arity As Integer) As ImmutableArray(Of NamedTypeSymbol) 193Return ImmutableArray(Of NamedTypeSymbol).Empty 219Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 225Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 227Return ImmutableArray(Of SyntaxReference).Empty 235Friend Overrides Function MakeAcyclicInterfaces(diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol) 236Return ImmutableArray(Of NamedTypeSymbol).Empty 243Friend Overrides Function MakeDeclaredInterfaces(basesBeingResolved As BasesBeingResolved, diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol) 244Return ImmutableArray(Of NamedTypeSymbol).Empty 307Friend Overrides Function GetAppliedConditionalSymbols() As ImmutableArray(Of String) 308Return ImmutableArray(Of String).Empty 372Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of TypeParameterSymbol) 374Return ImmutableArray(Of TypeParameterSymbol).Empty
Symbols\SynthesizedSymbols\SynthesizedGlobal_StringSwitchHashMethodSymbol.vb (2)
25Private ReadOnly _parameters As ImmutableArray(Of ParameterSymbol) 47Public Overrides ReadOnly Property Parameters As ImmutableArray(Of ParameterSymbol)
Symbols\SynthesizedSymbols\SynthesizedGlobalMethodBase.vb (20)
55Friend Overrides Function GetAppliedConditionalSymbols() As ImmutableArray(Of String) 56Return ImmutableArray(Of String).Empty 142Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 144Return ImmutableArray(Of Location).Empty 148Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 150Return ImmutableArray(Of SyntaxReference).Empty 174Public Overrides ReadOnly Property Parameters As ImmutableArray(Of ParameterSymbol) 176Return ImmutableArray(Of ParameterSymbol).Empty 240Public Overrides ReadOnly Property ExplicitInterfaceImplementations As ImmutableArray(Of MethodSymbol) 242Return ImmutableArray(Of MethodSymbol).Empty 302Public Overrides ReadOnly Property TypeArguments As ImmutableArray(Of TypeSymbol) 304Return ImmutableArray(Of TypeSymbol).Empty 308Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of TypeParameterSymbol) 310Return ImmutableArray(Of TypeParameterSymbol).Empty 314Public Overrides ReadOnly Property ReturnTypeCustomModifiers As ImmutableArray(Of CustomModifier) 316Return ImmutableArray(Of CustomModifier).Empty 320Public Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier) 322Return ImmutableArray(Of CustomModifier).Empty 326Public Overrides Function GetReturnTypeAttributes() As ImmutableArray(Of VisualBasicAttributeData) 327Return ImmutableArray(Of VisualBasicAttributeData).Empty
Symbols\SynthesizedSymbols\SynthesizedHotReloadExceptionConstructorSymbol.vb (2)
14Private ReadOnly _parameters As ImmutableArray(Of ParameterSymbol) 48Public Overrides ReadOnly Property Parameters As ImmutableArray(Of ParameterSymbol)
Symbols\SynthesizedSymbols\SynthesizedHotReloadExceptionSymbol.vb (21)
19Private ReadOnly _members As ImmutableArray(Of Symbol) 46Public Overloads Overrides Function GetMembers() As ImmutableArray(Of Symbol) 50Public Overloads Overrides Function GetMembers(name As String) As ImmutableArray(Of Symbol) 54Public Overloads Overrides Function GetTypeMembers() As ImmutableArray(Of NamedTypeSymbol) 55Return ImmutableArray(Of NamedTypeSymbol).Empty 58Public Overloads Overrides Function GetTypeMembers(name As String) As ImmutableArray(Of NamedTypeSymbol) 59Return ImmutableArray(Of NamedTypeSymbol).Empty 62Public Overloads Overrides Function GetTypeMembers(name As String, arity As Integer) As ImmutableArray(Of NamedTypeSymbol) 63Return ImmutableArray(Of NamedTypeSymbol).Empty 130Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 132Return ImmutableArray(Of Location).Empty 136Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 138Return ImmutableArray(Of SyntaxReference).Empty 146Friend Overrides Function MakeAcyclicInterfaces(diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol) 147Return ImmutableArray(Of NamedTypeSymbol).Empty 154Friend Overrides Function MakeDeclaredInterfaces(basesBeingResolved As BasesBeingResolved, diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol) 155Return ImmutableArray(Of NamedTypeSymbol).Empty 212Friend Overrides Function GetAppliedConditionalSymbols() As ImmutableArray(Of String) 213Return ImmutableArray(Of String).Empty 277Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of TypeParameterSymbol) 279Return ImmutableArray(Of TypeParameterSymbol).Empty
Symbols\SynthesizedSymbols\SynthesizedInterfaceImplementationStubSymbol.vb (11)
20Private ReadOnly _typeParameters As ImmutableArray(Of TypeParameterSymbol) 22Private ReadOnly _parameters As ImmutableArray(Of ParameterSymbol) 24Private ReadOnly _customModifiers As ImmutableArray(Of CustomModifier) 27Private _explicitInterfaceImplementations As ImmutableArray(Of MethodSymbol) 71Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of TypeParameterSymbol) 77Public Overrides ReadOnly Property TypeArguments As ImmutableArray(Of TypeSymbol) 89Public Overrides ReadOnly Property ReturnTypeCustomModifiers As ImmutableArray(Of CustomModifier) 95Public Overrides ReadOnly Property Parameters As ImmutableArray(Of ParameterSymbol) 111Public Overrides ReadOnly Property ExplicitInterfaceImplementations As ImmutableArray(Of MethodSymbol) 166Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 168Return ImmutableArray(Of Location).Empty
Symbols\SynthesizedSymbols\SynthesizedIntrinsicOperatorSymbol.vb (4)
12Private ReadOnly _parameters As ImmutableArray(Of ParameterSymbol) 54Public Overrides ReadOnly Property Parameters As ImmutableArray(Of ParameterSymbol) 152Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 154Return ImmutableArray(Of Location).Empty
Symbols\SynthesizedSymbols\SynthesizedLocal.vb (4)
34Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 36Return If(_syntaxOpt Is Nothing, ImmutableArray(Of Location).Empty, ImmutableArray.Create(_syntaxOpt.GetLocation())) 40Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 42Return If(_syntaxOpt Is Nothing, ImmutableArray(Of SyntaxReference).Empty, ImmutableArray.Create(_syntaxOpt.GetReference()))
Symbols\SynthesizedSymbols\SynthesizedMethod.vb (5)
88Public Overrides ReadOnly Property Parameters As ImmutableArray(Of ParameterSymbol) 90Return ImmutableArray(Of ParameterSymbol).Empty 174Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 176Return ImmutableArray(Of Location).Empty 180Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference)
Symbols\SynthesizedSymbols\SynthesizedMethodBase.vb (18)
62Public Overrides ReadOnly Property ExplicitInterfaceImplementations As ImmutableArray(Of MethodSymbol) 64Return ImmutableArray(Of MethodSymbol).Empty 120Public NotOverridable Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier) 122Return ImmutableArray(Of CustomModifier).Empty 132Public Overrides ReadOnly Property TypeArguments As ImmutableArray(Of TypeSymbol) 134Return ImmutableArray(Of TypeSymbol).Empty 138Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of TypeParameterSymbol) 140Return ImmutableArray(Of TypeParameterSymbol).Empty 144Public Overrides ReadOnly Property ReturnTypeCustomModifiers As ImmutableArray(Of CustomModifier) 146Return ImmutableArray(Of CustomModifier).Empty 150Public Overrides Function GetReturnTypeAttributes() As ImmutableArray(Of VisualBasicAttributeData) 151Return ImmutableArray(Of VisualBasicAttributeData).Empty 160Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 162Return ImmutableArray(Of SyntaxReference).Empty 172Public Overrides ReadOnly Property Parameters As ImmutableArray(Of ParameterSymbol) 174Return ImmutableArray(Of ParameterSymbol).Empty 191Friend Overrides Function GetAppliedConditionalSymbols() As ImmutableArray(Of String) 192Return ImmutableArray(Of String).Empty
Symbols\SynthesizedSymbols\SynthesizedOverridingWitheventsProperty.vb (9)
106Public Overrides ReadOnly Property ExplicitInterfaceImplementations As ImmutableArray(Of PropertySymbol) 108Return ImmutableArray(Of PropertySymbol).Empty 183Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 189Public Overrides ReadOnly Property Parameters As ImmutableArray(Of ParameterSymbol) 192Return ImmutableArray(Of ParameterSymbol).Empty 215Public Overrides ReadOnly Property TypeCustomModifiers As ImmutableArray(Of CustomModifier) 221Public Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier) 227Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 230Return ImmutableArray(Of SyntaxReference).Empty
Symbols\SynthesizedSymbols\SynthesizedParameterSymbol.vb (19)
51Public Overrides ReadOnly Property CustomModifiers As ImmutableArray(Of CustomModifier) 53Return ImmutableArray(Of CustomModifier).Empty 57Public Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier) 59Return ImmutableArray(Of CustomModifier).Empty 208Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 210Return ImmutableArray(Of Location).Empty 214Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 216Return ImmutableArray(Of SyntaxReference).Empty 295customModifiers As ImmutableArray(Of CustomModifier), refCustomModifiers As ImmutableArray(Of CustomModifier) 332ImmutableArray(Of CustomModifier).Empty) ' Never ByRef 379Private ReadOnly _customModifiers As ImmutableArray(Of CustomModifier) 380Private ReadOnly _refCustomModifiers As ImmutableArray(Of CustomModifier) 393customModifiers As ImmutableArray(Of CustomModifier), refCustomModifiers As ImmutableArray(Of CustomModifier)) 406Public NotOverridable Overrides ReadOnly Property CustomModifiers As ImmutableArray(Of CustomModifier) 412Public NotOverridable Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier) 425Private ReadOnly _locations As ImmutableArray(Of Location) 432Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\SynthesizedSymbols\SynthesizedPropertyBase.vb (8)
32Public Overrides ReadOnly Property Parameters As ImmutableArray(Of ParameterSymbol) 34Return ImmutableArray(Of ParameterSymbol).Empty 38Public Overrides ReadOnly Property TypeCustomModifiers As ImmutableArray(Of CustomModifier) 40Return ImmutableArray(Of CustomModifier).Empty 44Public NotOverridable Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier) 46Return ImmutableArray(Of CustomModifier).Empty 74Public Overrides ReadOnly Property ExplicitInterfaceImplementations As ImmutableArray(Of PropertySymbol) 76Return ImmutableArray(Of PropertySymbol).Empty
Symbols\SynthesizedSymbols\SynthesizedRegularMethodBase.vb (3)
129Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 149Public Overrides ReadOnly Property Parameters As ImmutableArray(Of ParameterSymbol) 151Return ImmutableArray(Of ParameterSymbol).Empty
Symbols\SynthesizedSymbols\SynthesizedSimpleConstructorSymbol.vb (3)
17Private _parameters As ImmutableArray(Of ParameterSymbol) 29Friend Sub SetParameters(parameters As ImmutableArray(Of ParameterSymbol)) 42Public Overrides ReadOnly Property Parameters As ImmutableArray(Of ParameterSymbol)
Symbols\SynthesizedSymbols\SynthesizedSimpleMethodSymbol.vb (6)
18Private _parameters As ImmutableArray(Of ParameterSymbol) 20Private ReadOnly _interfaceMethods As ImmutableArray(Of MethodSymbol) 36ImmutableArray(Of MethodSymbol).Empty, 64Public Overrides ReadOnly Property ExplicitInterfaceImplementations As ImmutableArray(Of MethodSymbol) 88Friend Sub SetParameters(parameters As ImmutableArray(Of ParameterSymbol)) 101Public Overrides ReadOnly Property Parameters As ImmutableArray(Of ParameterSymbol)
Symbols\Tuples\TupleErrorFieldSymbol.vb (5)
27Private ReadOnly _locations As ImmutableArray(Of Location) 47Me._locations = If((location Is Nothing), ImmutableArray(Of Location).Empty, ImmutableArray.Create(Of Location)(location)) 92Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 98Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 101ImmutableArray(Of SyntaxReference).Empty,
Symbols\Tuples\TupleEventSymbol.vb (2)
74Public Overrides ReadOnly Property ExplicitInterfaceImplementations As ImmutableArray(Of EventSymbol) 104Public Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData)
Symbols\Tuples\TupleFieldSymbol.vb (7)
74Public Overrides ReadOnly Property CustomModifiers As ImmutableArray(Of CustomModifier) 96Public Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData) 134Private ReadOnly _locations As ImmutableArray(Of Location) 151Me._locations = If((location Is Nothing), ImmutableArray(Of Location).Empty, ImmutableArray.Create(Of Location)(location)) 160Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 166Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 169ImmutableArray(Of SyntaxReference).Empty,
Symbols\Tuples\TupleMethodSymbol.vb (11)
22Private ReadOnly _typeParameters As ImmutableArray(Of TypeParameterSymbol) 24Private _lazyParameters As ImmutableArray(Of ParameterSymbol) 56Public Overrides ReadOnly Property ExplicitInterfaceImplementations As ImmutableArray(Of MethodSymbol) 62Public Overrides ReadOnly Property Parameters As ImmutableArray(Of ParameterSymbol) 83Public Overrides ReadOnly Property ReturnTypeCustomModifiers As ImmutableArray(Of CustomModifier) 89Public Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier) 95Public Overrides ReadOnly Property TypeArguments As ImmutableArray(Of TypeSymbol) 101Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of TypeParameterSymbol) 115Private Function CreateParameters() As ImmutableArray(Of ParameterSymbol) 119Public Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData) 123Public Overrides Function GetReturnTypeAttributes() As ImmutableArray(Of VisualBasicAttributeData)
Symbols\Tuples\TuplePropertySymbol.vb (7)
20Private _lazyParameters As ImmutableArray(Of ParameterSymbol) 40Public Overrides ReadOnly Property TypeCustomModifiers As ImmutableArray(Of CustomModifier) 46Public Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier) 52Public Overrides ReadOnly Property Parameters As ImmutableArray(Of ParameterSymbol) 80Public Overrides ReadOnly Property ExplicitInterfaceImplementations As ImmutableArray(Of PropertySymbol) 113Private Function CreateParameters() As ImmutableArray(Of ParameterSymbol) 136Public Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData)
Symbols\Tuples\TupleTypeSymbol.vb (69)
19Private ReadOnly _locations As ImmutableArray(Of Location) 21Private ReadOnly _elementLocations As ImmutableArray(Of Location) 26Private ReadOnly _providedElementNames As ImmutableArray(Of String) 33Private ReadOnly _errorPositions As ImmutableArray(Of Boolean) 42Private _lazyActualElementNames As ImmutableArray(Of String) 44Private ReadOnly _elementTypes As ImmutableArray(Of TypeSymbol) 46Private _lazyMembers As ImmutableArray(Of Symbol) 48Private _lazyFields As ImmutableArray(Of FieldSymbol) 84Public Overrides ReadOnly Property TupleElementTypes As ImmutableArray(Of TypeSymbol) 90Public Overrides ReadOnly Property TupleElementNames As ImmutableArray(Of String) 113Public Overrides ReadOnly Property TupleElements As ImmutableArray(Of FieldSymbol) 158Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 164Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 200Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of TypeParameterSymbol) 202Return ImmutableArray(Of TypeParameterSymbol).Empty 206Public Overrides Function GetTypeArgumentCustomModifiers(ordinal As Integer) As ImmutableArray(Of CustomModifier) 216Friend Overrides ReadOnly Property TypeArgumentsNoUseSiteDiagnostics As ImmutableArray(Of TypeSymbol) 218Return ImmutableArray(Of TypeSymbol).Empty 332Private Sub New(locationOpt As Location, underlyingType As NamedTypeSymbol, elementLocations As ImmutableArray(Of Location), 333elementNames As ImmutableArray(Of String), elementTypes As ImmutableArray(Of TypeSymbol), 334errorPositions As ImmutableArray(Of Boolean)) 336Me.New(If((locationOpt Is Nothing), ImmutableArray(Of Location).Empty, ImmutableArray.Create(Of Location)(locationOpt)), 340Private Sub New(locations As ImmutableArray(Of Location), underlyingType As NamedTypeSymbol, 341elementLocations As ImmutableArray(Of Location), elementNames As ImmutableArray(Of String), 342elementTypes As ImmutableArray(Of TypeSymbol), errorPositions As ImmutableArray(Of Boolean)) 361elementTypes As ImmutableArray(Of TypeSymbol), 362elementLocations As ImmutableArray(Of Location), 363elementNames As ImmutableArray(Of String), 366errorPositions As ImmutableArray(Of Boolean), 392Return TupleTypeSymbol.Create(ImmutableArray(Of Location).Empty, tupleCompatibleType, Nothing, Nothing, Nothing) 395Public Shared Function Create(tupleCompatibleType As NamedTypeSymbol, elementNames As ImmutableArray(Of String)) As TupleTypeSymbol 396Return TupleTypeSymbol.Create(ImmutableArray(Of Location).Empty, tupleCompatibleType, Nothing, elementNames, errorPositions:=Nothing) 400elementLocations As ImmutableArray(Of Location), elementNames As ImmutableArray(Of String), 401errorPositions As ImmutableArray(Of Boolean)) As TupleTypeSymbol 403Return TupleTypeSymbol.Create(If((locationOpt Is Nothing), ImmutableArray(Of Location).Empty, ImmutableArray.Create(Of Location)(locationOpt)), 407Public Shared Function Create(locations As ImmutableArray(Of Location), tupleCompatibleType As NamedTypeSymbol, 408elementLocations As ImmutableArray(Of Location), elementNames As ImmutableArray(Of String), 409errorPositions As ImmutableArray(Of Boolean)) As TupleTypeSymbol 413Dim elementTypes As ImmutableArray(Of TypeSymbol) 416Dim tupleElementTypes As ImmutableArray(Of TypeSymbol) = tupleCompatibleType.TypeArgumentsNoUseSiteDiagnostics(TupleTypeSymbol.RestPosition - 1).TupleElementTypes 461Dim typeArgumentsNoUseSiteDiagnostics As ImmutableArray(Of TypeSymbol) = tupleCompatibleType.TypeArgumentsNoUseSiteDiagnostics 482Friend Function WithElementNames(newElementNames As ImmutableArray(Of String)) As TupleTypeSymbol 543Private Shared Function GetTupleUnderlyingType(elementTypes As ImmutableArray(Of TypeSymbol), syntax As SyntaxNode, compilation As VisualBasicCompilation, diagnostics As BindingDiagnosticBag) As NamedTypeSymbol 563Dim typeArguments As ImmutableArray(Of TypeSymbol) = ImmutableArray.Create(Of TypeSymbol)(elementTypes, ([loop] - 1) * (TupleTypeSymbol.RestPosition - 1), TupleTypeSymbol.RestPosition - 1).Add(namedTypeSymbol) 657Private Function CollectTupleElementFields() As ImmutableArray(Of FieldSymbol) 684Public Overrides Function GetMembers() As ImmutableArray(Of Symbol) 692Private Function CreateMembers() As ImmutableArray(Of Symbol) 704Dim underlyingMembers As ImmutableArray(Of Symbol) = currentUnderlying.OriginalDefinition.GetMembers() 885Dim members As ImmutableArray(Of Symbol) = Me.GetMembers() 944Public Overrides Function GetMembers(name As String) As ImmutableArray(Of Symbol) 948Public Overrides Function GetTypeMembers() As ImmutableArray(Of NamedTypeSymbol) 951Return ImmutableArray(Of NamedTypeSymbol).Empty 954Public Overrides Function GetTypeMembers(name As String) As ImmutableArray(Of NamedTypeSymbol) 957Return ImmutableArray(Of NamedTypeSymbol).Empty 960Public Overrides Function GetTypeMembers(name As String, arity As Integer) As ImmutableArray(Of NamedTypeSymbol) 963Return ImmutableArray(Of NamedTypeSymbol).Empty 966Public Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData) 1029Friend Overrides Function GetAppliedConditionalSymbols() As ImmutableArray(Of String) 1030Return ImmutableArray(Of String).Empty 1067Public Overrides Function Construct(typeArguments As ImmutableArray(Of TypeSymbol)) As NamedTypeSymbol 1083Friend Overrides Function MakeDeclaredInterfaces(basesBeingResolved As BasesBeingResolved, diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol) 1091Friend Overrides Function MakeAcyclicInterfaces(diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol) 1112Dim inferredNames As ImmutableArray(Of Boolean) = literal.InferredNamesOpt 1114Dim destinationNames As ImmutableArray(Of String) = destination.TupleElementNames
Symbols\TypeParameterSymbol.vb (23)
62Friend MustOverride ReadOnly Property ConstraintTypesNoUseSiteDiagnostics As ImmutableArray(Of TypeSymbol) 64Friend Function ConstraintTypesWithDefinitionUseSiteDiagnostics(<[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As ImmutableArray(Of TypeSymbol) 82Public NotOverridable Overrides Function GetMembers() As ImmutableArray(Of Symbol) 83Return ImmutableArray(Of Symbol).Empty 87Public NotOverridable Overrides Function GetMembers(name As String) As ImmutableArray(Of Symbol) 88Return ImmutableArray(Of Symbol).Empty 112Public NotOverridable Overrides Function GetTypeMembers() As ImmutableArray(Of NamedTypeSymbol) 113Return ImmutableArray(Of NamedTypeSymbol).Empty 117Public NotOverridable Overrides Function GetTypeMembers(name As String) As ImmutableArray(Of NamedTypeSymbol) 118Return ImmutableArray(Of NamedTypeSymbol).Empty 122Public NotOverridable Overrides Function GetTypeMembers(name As String, arity As Integer) As ImmutableArray(Of NamedTypeSymbol) 123Return ImmutableArray(Of NamedTypeSymbol).Empty 158Friend NotOverridable Overrides ReadOnly Property InterfacesNoUseSiteDiagnostics As ImmutableArray(Of NamedTypeSymbol) 160Return ImmutableArray(Of NamedTypeSymbol).Empty 175Friend Shared Sub EnsureAllConstraintsAreResolved(typeParameters As ImmutableArray(Of TypeParameterSymbol)) 191Friend Overridable Function GetConstraints() As ImmutableArray(Of TypeParameterConstraint) 205Friend Shared Function GetConstraintTypesOnly(constraints As ImmutableArray(Of TypeParameterConstraint)) As ImmutableArray(Of TypeSymbol) 207Return ImmutableArray(Of TypeSymbol).Empty 349Friend Shared Function InternalSubstituteTypeParametersDistinct(substitution As TypeSubstitution, types As ImmutableArray(Of TypeSymbol)) As ImmutableArray(Of TypeSymbol) 393Private ReadOnly Property ITypeParameterSymbol_ConstraintTypes As ImmutableArray(Of ITypeSymbol) Implements ITypeParameterSymbol.ConstraintTypes 399Private ReadOnly Property ITypeParameterSymbol_ConstraintNullableAnnotations As ImmutableArray(Of NullableAnnotation) Implements ITypeParameterSymbol.ConstraintNullableAnnotations
Symbols\TypeSubstitution.vb (28)
73Private ReadOnly _pairs As ImmutableArray(Of KeyValuePair(Of TypeParameterSymbol, TypeWithModifiers)) 85Public ReadOnly Property Pairs As ImmutableArray(Of KeyValuePair(Of TypeParameterSymbol, TypeWithModifiers)) 95Public ReadOnly Property PairsIncludingParent As ImmutableArray(Of KeyValuePair(Of TypeParameterSymbol, TypeWithModifiers)) 144Return New TypeWithModifiers(tp, ImmutableArray(Of CustomModifier).Empty) 151Return New TypeWithModifiers(tp, ImmutableArray(Of CustomModifier).Empty) 154Public Function GetTypeArgumentsFor(originalDefinition As NamedTypeSymbol, <Out> ByRef hasTypeArgumentsCustomModifiers As Boolean) As ImmutableArray(Of TypeSymbol) 187Public Function GetTypeArgumentsCustomModifiersFor(originalDefinition As TypeParameterSymbol) As ImmutableArray(Of CustomModifier) 207Return ImmutableArray(Of CustomModifier).Empty 342Return Concat(sub1, targetGenericDefinition, ImmutableArray(Of KeyValuePair(Of TypeParameterSymbol, TypeWithModifiers)).Empty) 397params As ImmutableArray(Of TypeParameterSymbol), 398args As ImmutableArray(Of TypeWithModifiers), 463currentParent = Concat(currentParent, targetGenericDefinition, ImmutableArray(Of KeyValuePair(Of TypeParameterSymbol, TypeWithModifiers)).Empty) 484params As ImmutableArray(Of TypeParameterSymbol), 485args As ImmutableArray(Of TypeSymbol), 497args As ImmutableArray(Of TypeSymbol), 513pairs As ImmutableArray(Of KeyValuePair(Of TypeParameterSymbol, TypeWithModifiers)) 526Concat(parent, containingType, ImmutableArray(Of KeyValuePair(Of TypeParameterSymbol, TypeWithModifiers)).Empty)) 556Private Sub New(targetGenericDefinition As Symbol, pairs As ImmutableArray(Of KeyValuePair(Of TypeParameterSymbol, TypeWithModifiers)), parent As TypeSubstitution) 585alphaRenamedTypeParameters As ImmutableArray(Of SubstitutedTypeParameterSymbol) 594Dim typeParametersDefinitions As ImmutableArray(Of TypeParameterSymbol) 630typeArguments As ImmutableArray(Of TypeWithModifiers) 635Dim typeParametersDefinitions As ImmutableArray(Of TypeParameterSymbol) = targetMethod.TypeParameters 806args As ImmutableArray(Of TypeWithModifiers), 812Dim typeParametersDefinitions As ImmutableArray(Of TypeParameterSymbol) 861Public Function SubstituteCustomModifiers(type As TypeSymbol, customModifiers As ImmutableArray(Of CustomModifier)) As ImmutableArray(Of CustomModifier) 869Public Function SubstituteCustomModifiers(customModifiers As ImmutableArray(Of CustomModifier)) As ImmutableArray(Of CustomModifier)
Symbols\TypeSymbol.vb (16)
36Private _lazyAllInterfaces As ImmutableArray(Of NamedTypeSymbol) 122Friend MustOverride ReadOnly Property InterfacesNoUseSiteDiagnostics As ImmutableArray(Of NamedTypeSymbol) 134Friend ReadOnly Property AllInterfacesNoUseSiteDiagnostics As ImmutableArray(Of NamedTypeSymbol) 144Friend Function AllInterfacesWithDefinitionUseSiteDiagnostics(<[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As ImmutableArray(Of NamedTypeSymbol) 161Protected Overridable Function MakeAllInterfaces() As ImmutableArray(Of NamedTypeSymbol) 168Dim baseInterfaces As ImmutableArray(Of NamedTypeSymbol) = baseType.InterfacesNoUseSiteDiagnostics 182Dim baseInterfaces As ImmutableArray(Of NamedTypeSymbol) = i.InterfacesNoUseSiteDiagnostics 216Private Shared Function MakeInterfacesAndTheirBaseInterfaces(declaredInterfaces As ImmutableArray(Of NamedTypeSymbol)) As MultiDictionary(Of NamedTypeSymbol, NamedTypeSymbol) 379Dim typeMembers As ImmutableArray(Of NamedTypeSymbol) 468Public Overridable ReadOnly Property TupleElements As ImmutableArray(Of FieldSymbol) 474Public Overridable ReadOnly Property TupleElementTypes() As ImmutableArray(Of TypeSymbol) 480Public Overridable ReadOnly Property TupleElementNames() As ImmutableArray(Of String) 545Private ReadOnly Property ITypeSymbol_AllInterfaces As ImmutableArray(Of INamedTypeSymbol) Implements ITypeSymbol.AllInterfaces 557Private ReadOnly Property ITypeSymbol_Interfaces As ImmutableArray(Of INamedTypeSymbol) Implements ITypeSymbol.Interfaces 618Private Function ITypeSymbol_ToDisplayParts(topLevelNullability As NullableFlowState, Optional format As SymbolDisplayFormat = Nothing) As ImmutableArray(Of SymbolDisplayPart) Implements ITypeSymbol.ToDisplayParts 626Private Function ITypeSymbol_ToMinimalDisplayParts(semanticModel As SemanticModel, topLevelNullability As NullableFlowState, position As Integer, Optional format As SymbolDisplayFormat = Nothing) As ImmutableArray(Of SymbolDisplayPart) Implements ITypeSymbol.ToMinimalDisplayParts
Symbols\TypeSymbolExtensions.vb (15)
65Public Function TryGetElementTypesIfTupleOrCompatible(type As TypeSymbol, <Out> ByRef elementTypes As ImmutableArray(Of TypeSymbol)) As Boolean 95Public Function GetElementTypesOfTupleOrCompatible(Type As TypeSymbol) As ImmutableArray(Of TypeSymbol) 274Friend Function AreSameCustomModifiers([mod] As ImmutableArray(Of CustomModifier), otherMod As ImmutableArray(Of CustomModifier)) As Boolean 953Friend Sub CheckTypeArguments(typeArguments As ImmutableArray(Of TypeSymbol), expectedCount As Integer) 974typeArguments As ImmutableArray(Of TypeSymbol), 976) As ImmutableArray(Of TypeSymbol) 985typeArguments As ImmutableArray(Of TypeSymbol), 987) As ImmutableArray(Of TypeSymbol) 992typeArguments As ImmutableArray(Of TypeSymbol), 994specializedTypeParameters As ImmutableArray(Of TypeParameterSymbol) 995) As ImmutableArray(Of TypeSymbol) 1160Public Function GetAllTypeParameters(type As NamedTypeSymbol) As ImmutableArray(Of TypeParameterSymbol) 1190Public Function GetAllTypeArguments(type As NamedTypeSymbol) As ImmutableArray(Of TypeSymbol) 1209Public Function GetAllTypeArgumentsWithModifiers(type As NamedTypeSymbol) As ImmutableArray(Of TypeWithModifiers)
Symbols\TypeWithModifiers.vb (3)
13Public ReadOnly CustomModifiers As ImmutableArray(Of CustomModifier) 15Public Sub New(type As TypeSymbol, customModifiers As ImmutableArray(Of CustomModifier)) 24Me.CustomModifiers = ImmutableArray(Of CustomModifier).Empty
Symbols\UnboundGenericType.vb (41)
109Public MustOverride Overrides ReadOnly Property TypeParameters As ImmutableArray(Of TypeParameterSymbol) 113Friend MustOverride Overrides ReadOnly Property TypeArgumentsNoUseSiteDiagnostics As ImmutableArray(Of TypeSymbol) 115Public NotOverridable Overrides Function GetTypeArgumentCustomModifiers(ordinal As Integer) As ImmutableArray(Of CustomModifier) 179Friend Overrides Function GetAppliedConditionalSymbols() As ImmutableArray(Of String) 215Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 221Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 245Public Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData) 271Friend Overrides Function MakeDeclaredInterfaces(basesBeingResolved As BasesBeingResolved, diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol) 272Return ImmutableArray(Of NamedTypeSymbol).Empty 275Friend Overrides Function MakeAcyclicInterfaces(diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol) 276Return ImmutableArray(Of NamedTypeSymbol).Empty 279Friend Overrides Function GetDeclaredInterfacesNoUseSiteDiagnostics(basesBeingResolved As BasesBeingResolved) As ImmutableArray(Of NamedTypeSymbol) 280Return ImmutableArray(Of NamedTypeSymbol).Empty 309Public Overrides Function Construct(typeArguments As ImmutableArray(Of TypeSymbol)) As NamedTypeSymbol 357Private _lazyTypeArguments As ImmutableArray(Of TypeSymbol) 367_lazyTypeArguments = ImmutableArray(Of TypeSymbol).Empty 431Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of TypeParameterSymbol) 434Return ImmutableArray(Of TypeParameterSymbol).Empty 441Friend Overrides ReadOnly Property TypeArgumentsNoUseSiteDiagnostics As ImmutableArray(Of TypeSymbol) 497Public Overrides Function GetMembers() As ImmutableArray(Of Symbol) 509Public Overrides Function GetMembers(name As String) As ImmutableArray(Of Symbol) 514Friend Overrides Function GetTypeMembersUnordered() As ImmutableArray(Of NamedTypeSymbol) 518Public Overrides Function GetTypeMembers() As ImmutableArray(Of NamedTypeSymbol) 522Private Overloads Shared Function GetTypeMembers(originalTypeMembers As ImmutableArray(Of NamedTypeSymbol)) As ImmutableArray(Of NamedTypeSymbol) 536Public Overrides Function GetTypeMembers(name As String) As ImmutableArray(Of NamedTypeSymbol) 540Public Overrides Function GetTypeMembers(name As String, arity As Integer) As ImmutableArray(Of NamedTypeSymbol) 555Private ReadOnly _typeParameters As ImmutableArray(Of TypeParameterSymbol) 565Dim typeParametersDefinitions As ImmutableArray(Of TypeParameterSymbol) = originalDefinition.TypeParameters 615Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of TypeParameterSymbol) 621Friend Overrides ReadOnly Property TypeArgumentsNoUseSiteDiagnostics As ImmutableArray(Of TypeSymbol) 639Public Overrides Function GetMembers() As ImmutableArray(Of Symbol) 640Return ImmutableArray(Of Symbol).Empty 643Public Overrides Function GetMembers(name As String) As ImmutableArray(Of Symbol) 644Return ImmutableArray(Of Symbol).Empty 647Public Overrides Function GetTypeMembers() As ImmutableArray(Of NamedTypeSymbol) 648Return ImmutableArray(Of NamedTypeSymbol).Empty 651Public Overrides Function GetTypeMembers(name As String) As ImmutableArray(Of NamedTypeSymbol) 652Return ImmutableArray(Of NamedTypeSymbol).Empty 655Public Overrides Function GetTypeMembers(name As String, arity As Integer) As ImmutableArray(Of NamedTypeSymbol) 656Return ImmutableArray(Of NamedTypeSymbol).Empty
Symbols\UsedAssemblies.vb (2)
18Public Overrides Function GetUsedAssemblyReferences(Optional cancellationToken As CancellationToken = Nothing) As ImmutableArray(Of MetadataReference) 22Return ImmutableArray(Of MetadataReference).Empty
Symbols\WellKnownMembers.vb (11)
154Optional arguments As ImmutableArray(Of TypedConstant) = Nothing, 155Optional namedArguments As ImmutableArray(Of KeyValuePair(Of WellKnownMember, TypedConstant)) = Nothing, 166arguments = ImmutableArray(Of TypedConstant).Empty 169Dim namedStringArguments As ImmutableArray(Of KeyValuePair(Of String, TypedConstant)) 171namedStringArguments = ImmutableArray(Of KeyValuePair(Of String, TypedConstant)).Empty 617Protected Overrides Function GetParameters(ByVal method As MethodSymbol) As ImmutableArray(Of ParameterSymbol) 621Protected Overrides Function GetParameters(ByVal [property] As PropertySymbol) As ImmutableArray(Of ParameterSymbol) 707Dim names As ImmutableArray(Of TypedConstant) = TupleNamesEncoder.Encode(type, stringType) 711Dim stringArray = ArrayTypeSymbol.CreateSZArray(stringType, ImmutableArray(Of CustomModifier).Empty, stringType.ContainingAssembly) 717Public Shared Function Encode(type As TypeSymbol) As ImmutableArray(Of String) 728Public Shared Function Encode(type As TypeSymbol, stringType As TypeSymbol) As ImmutableArray(Of TypedConstant)
Symbols\Wrapped\WrappedEventSymbol.vb (2)
46Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 52Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference)
Symbols\Wrapped\WrappedFieldSymbol.vb (3)
76Friend Overrides ReadOnly Property MarshallingDescriptor As ImmutableArray(Of Byte) 112Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 118Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference)
Symbols\Wrapped\WrappedMethodSymbol.vb (4)
66Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 72Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 204Friend Overrides ReadOnly Property ReturnValueMarshallingDescriptor As ImmutableArray(Of Byte) 264Friend Overrides Function GetAppliedConditionalSymbols() As ImmutableArray(Of String)
Symbols\Wrapped\WrappedNamedTypeSymbol.vb (3)
90Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 96Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 205Friend Overrides Function GetAppliedConditionalSymbols() As ImmutableArray(Of String)
Symbols\Wrapped\WrappedParameterSymbol.vb (5)
55Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 61Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 103Public Overrides ReadOnly Property CustomModifiers As ImmutableArray(Of CustomModifier) 109Public Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier) 174Public Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData)
Symbols\Wrapped\WrappedPropertySymbol.vb (2)
65Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 71Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference)
Symbols\Wrapped\WrappedTypeParameterSymbol.vb (2)
76Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 82Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference)
Syntax\VisualBasicWarningStateMap.vb (1)
47Private Shared Function CreateWarningStateEntries(directiveList As ImmutableArray(Of DirectiveTriviaSyntax)) As WarningStateMapEntry()
VisualBasicCompilationOptions.vb (16)
19Private _globalImports As ImmutableArray(Of GlobalImport) 85Optional cryptoPublicKey As ImmutableArray(Of Byte) = Nothing, 162cryptoPublicKey As ImmutableArray(Of Byte), 230cryptoPublicKey As ImmutableArray(Of Byte), 343Friend Overrides Function GetImports() As ImmutableArray(Of String) 362Public ReadOnly Property GlobalImports As ImmutableArray(Of GlobalImport) 379Friend Function GetRootNamespaceParts() As ImmutableArray(Of String) 381Return ImmutableArray(Of String).Empty 531Public Function WithGlobalImports(globalImports As ImmutableArray(Of GlobalImport)) As VisualBasicCompilationOptions 757Public Shadows Function WithCryptoPublicKey(value As ImmutableArray(Of Byte)) As VisualBasicCompilationOptions 759value = ImmutableArray(Of Byte).Empty 832Protected Overrides Function CommonWithFeatures(features As ImmutableArray(Of String)) As CompilationOptions 1161cryptoPublicKey As ImmutableArray(Of Byte), 1226cryptoPublicKey As ImmutableArray(Of Byte), 1292Optional cryptoPublicKey As ImmutableArray(Of Byte) = Nothing, 1367Protected Overrides Function CommonWithCryptoPublicKey(cryptoPublicKey As ImmutableArray(Of Byte)) As CompilationOptions
VisualBasicExtensions.vb (11)
571Public Function HandledEvents(methodSymbol As IMethodSymbol) As ImmutableArray(Of HandledEvent) 576Return ImmutableArray(Of HandledEvent).Empty 611Public Function GetFieldAttributes(eventSymbol As IEventSymbol) As ImmutableArray(Of AttributeData) 616Return ImmutableArray(Of AttributeData).Empty 632Public Function GetModuleMembers([namespace] As INamespaceSymbol) As ImmutableArray(Of INamedTypeSymbol) 648Public Function GetModuleMembers([namespace] As INamespaceSymbol, name As String) As ImmutableArray(Of INamedTypeSymbol) 740Public Function AliasImports(compilation As Compilation) As ImmutableArray(Of IAliasSymbol) 755Public Function MemberImports(compilation As Compilation) As ImmutableArray(Of INamespaceOrTypeSymbol) 1527Public Function GetMemberGroup(semanticModel As SemanticModel, expression As ExpressionSyntax, Optional cancellationToken As CancellationToken = Nothing) As ImmutableArray(Of ISymbol) 1540Public Function GetSpeculativeMemberGroup(semanticModel As SemanticModel, position As Integer, expression As ExpressionSyntax) As ImmutableArray(Of ISymbol) 1553Public Function GetMemberGroup(semanticModel As SemanticModel, attribute As AttributeSyntax, Optional cancellationToken As CancellationToken = Nothing) As ImmutableArray(Of ISymbol)
VisualBasicParseOptions.vb (7)
20Private Shared s_defaultPreprocessorSymbols As ImmutableArray(Of KeyValuePair(Of String, Object)) 24Private _preprocessorSymbols As ImmutableArray(Of KeyValuePair(Of String, Object)) 52preprocessorSymbols As ImmutableArray(Of KeyValuePair(Of String, Object)), 78Private Shared ReadOnly Property DefaultPreprocessorSymbols As ImmutableArray(Of KeyValuePair(Of String, Object)) 114Public ReadOnly Property PreprocessorSymbols As ImmutableArray(Of KeyValuePair(Of String, Object)) 193Public Shadows Function WithPreprocessorSymbols(symbols As ImmutableArray(Of KeyValuePair(Of String, Object))) As VisualBasicParseOptions 195symbols = ImmutableArray(Of KeyValuePair(Of String, Object)).Empty
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (37)
src\Analyzers\VisualBasic\Analyzers\AddRequiredParentheses\VisualBasicAddRequiredParenthesesDiagnosticAnalyzer.vb (2)
21Private Shared ReadOnly s_kinds As ImmutableArray(Of SyntaxKind) = ImmutableArray.Create( 51Protected Overrides Function GetSyntaxNodeKinds() As ImmutableArray(Of SyntaxKind)
src\Analyzers\VisualBasic\Analyzers\NamingStyle\VisualBasicNamingStyleDiagnosticAnalyzer.vb (1)
14Protected Overrides ReadOnly Property SupportedSyntaxKinds As ImmutableArray(Of SyntaxKind) =
src\Analyzers\VisualBasic\Analyzers\RemoveUnnecessaryCast\VisualBasicRemoveUnnecessaryCastDiagnosticAnalyzer.vb (1)
18Protected Overrides ReadOnly Property SyntaxKindsOfInterest As ImmutableArray(Of SyntaxKind) =
src\Analyzers\VisualBasic\Analyzers\RemoveUnnecessaryImports\VisualBasicRemoveUnnecessaryImportsDiagnosticAnalyzer.vb (2)
36Protected Overrides Function MergeImports(unnecessaryImports As ImmutableArray(Of ImportsClauseSyntax)) As ImmutableArray(Of SyntaxNode)
src\Analyzers\VisualBasic\Analyzers\UseCollectionInitializer\VisualBasicUseCollectionInitializerDiagnosticAnalyzer.vb (1)
47matches As ImmutableArray(Of CollectionMatch(Of SyntaxNode)),
src\Analyzers\VisualBasic\Analyzers\UseCompoundAssignment\Utilities.vb (1)
9Public ReadOnly Kinds As ImmutableArray(Of (SyntaxKind, SyntaxKind, SyntaxKind)) =
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 (3)
69cancellationToken As CancellationToken) As ImmutableArray(Of DirectiveTriviaSyntax) 74Dim result As ImmutableArray(Of DirectiveTriviaSyntax) = Nothing 77ImmutableArray(Of DirectiveTriviaSyntax).Empty)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\SyntaxNodeExtensions.vb (4)
438Public Function GetLeadingBlankLines(Of TSyntaxNode As SyntaxNode)(node As TSyntaxNode) As ImmutableArray(Of SyntaxTrivia) 448Public Function GetNodeWithoutLeadingBlankLines(Of TSyntaxNode As SyntaxNode)(node As TSyntaxNode, ByRef strippedTrivia As ImmutableArray(Of SyntaxTrivia)) As TSyntaxNode 453Public Function GetLeadingBannerAndPreprocessorDirectives(Of TSyntaxNode As SyntaxNode)(node As TSyntaxNode) As ImmutableArray(Of SyntaxTrivia) 463Public Function GetNodeWithoutLeadingBannerAndPreprocessorDirectives(Of TSyntaxNode As SyntaxNode)(node As TSyntaxNode, ByRef strippedTrivia As ImmutableArray(Of SyntaxTrivia)) As TSyntaxNode
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Helpers\RemoveUnnecessaryImports\VisualBasicUnnecessaryImportsProvider.vb (1)
28cancellationToken As CancellationToken) As ImmutableArray(Of ImportsClauseSyntax)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Indentation\VisualBasicSmartTokenFormatter.vb (2)
19Private ReadOnly _formattingRules As ImmutableArray(Of AbstractFormattingRule) 24formattingRules As ImmutableArray(Of AbstractFormattingRule),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Services\SelectedMembers\VisualBasicSelectedMembers.vb (1)
27Protected Overrides Function GetDeclaratorsAndIdentifiers(member As StatementSyntax) As ImmutableArray(Of (declarator As SyntaxNode, identifier As SyntaxToken))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Services\SemanticFacts\VisualBasicSemanticFacts.vb (8)
207Public Function GetDeconstructionAssignmentMethods(model As SemanticModel, deconstruction As SyntaxNode) As ImmutableArray(Of IMethodSymbol) Implements ISemanticFacts.GetDeconstructionAssignmentMethods 208Return ImmutableArray(Of IMethodSymbol).Empty 211Public Function GetDeconstructionForEachMethods(model As SemanticModel, deconstruction As SyntaxNode) As ImmutableArray(Of IMethodSymbol) Implements ISemanticFacts.GetDeconstructionForEachMethods 212Return ImmutableArray(Of IMethodSymbol).Empty 260Public Function GetBestOrAllSymbols(semanticModel As SemanticModel, node As SyntaxNode, token As SyntaxToken, cancellationToken As CancellationToken) As ImmutableArray(Of ISymbol) Implements ISemanticFacts.GetBestOrAllSymbols 262Return ImmutableArray(Of ISymbol).Empty 275Public Function GetLocalFunctionSymbols(compilation As Compilation, symbol As ISymbol, cancellationToken As CancellationToken) As ImmutableArray(Of IMethodSymbol) Implements ISemanticFacts.GetLocalFunctionSymbols 276Return ImmutableArray(Of IMethodSymbol).Empty
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Services\SyntaxFacts\VisualBasicSyntaxFacts.vb (1)
1476Public Function GetMatchingConditionalDirectives(directive As SyntaxNode, cancellationToken As CancellationToken) As ImmutableArray(Of SyntaxNode) Implements ISyntaxFacts.GetMatchingConditionalDirectives
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Utilities\ImportsOrganizer.vb (1)
80Dim leadingTrivia As ImmutableArray(Of SyntaxTrivia) = Nothing
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Utilities\SpeculationAnalyzer.vb (2)
482Protected Overrides Function GetArguments(expression As ExpressionSyntax) As ImmutableArray(Of ArgumentSyntax) 601ByRef localVariables As ImmutableArray(Of ILocalSymbol))
src\Workspaces\VisualBasic\Portable\Formatting\Engine\VisualBasicFormatEngine.vb (1)
17formattingRules As ImmutableArray(Of AbstractFormattingRule),
src\Workspaces\VisualBasic\Portable\Formatting\VisualBasicSyntaxFormatting.vb (3)
20Private ReadOnly _rules As ImmutableArray(Of AbstractFormattingRule) = ImmutableArray.Create(Of AbstractFormattingRule)( 28Public Overrides Function GetDefaultFormattingRules() As ImmutableArray(Of AbstractFormattingRule) 46Protected Overrides Function Format(root As SyntaxNode, options As SyntaxFormattingOptions, formattingRules As ImmutableArray(Of AbstractFormattingRule), startToken As SyntaxToken, endToken As SyntaxToken, cancellationToken As CancellationToken) As AbstractFormattingResult
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (97)
src\Analyzers\VisualBasic\CodeFixes\AddAnonymousTypeMemberName\VisualBasicAddAnonymousTypeMemberNameCodeFixProvider.vb (1)
27Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String) =
src\Analyzers\VisualBasic\CodeFixes\AddExplicitCast\VisualBasicAddExplicitCastCodeFixProvider.vb (3)
34Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String) = ImmutableArray.Create(BC30512, BC42016, BC30518, BC30519) 111parameters As ImmutableArray(Of IParameterSymbol), 171cancellationToken As CancellationToken) As ImmutableArray(Of (ExpressionSyntax, ITypeSymbol))
src\Analyzers\VisualBasic\CodeFixes\AddObsoleteAttribute\VisualBasicAddObsoleteAttributeCodeFixProvider.vb (1)
17Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String) =
src\Analyzers\VisualBasic\CodeFixes\AddParameter\VisualBasicAddParameterCodeFixProvider.vb (3)
46Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String) = ImmutableArray.Create( 49Protected Overrides ReadOnly Property TooManyArgumentsDiagnosticIds As ImmutableArray(Of String) = 52Protected Overrides ReadOnly Property CannotConvertDiagnosticIds As ImmutableArray(Of String) =
src\Analyzers\VisualBasic\CodeFixes\AliasAmbiguousType\VisualBasicAliasAmbiguousTypeCodeFixProvider.vb (1)
25Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String) = ImmutableArray.Create(BC30561)
src\Analyzers\VisualBasic\CodeFixes\ConvertToAsync\VisualBasicConvertToAsyncFunctionCodeFixProvider.vb (2)
22Friend ReadOnly Ids As ImmutableArray(Of String) = ImmutableArray.Create(Of String)(BC37001) 29Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String)
src\Analyzers\VisualBasic\CodeFixes\DocumentationComments\VisualBasicRemoveDocCommentNodeCodeFixProvider.vb (2)
48Friend ReadOnly Id As ImmutableArray(Of String) = ImmutableArray.Create(BC42305, BC42306, BC42307, BC42313, BC42315, BC42317) 55Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String)
src\Analyzers\VisualBasic\CodeFixes\GenerateConstructor\GenerateConstructorCodeFixProvider.vb (2)
28Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String) 34Protected Overrides Function GetCodeActionsAsync(document As Document, node As SyntaxNode, cancellationToken As CancellationToken) As Task(Of ImmutableArray(Of CodeAction))
src\Analyzers\VisualBasic\CodeFixes\GenerateConstructor\GenerateConstructorDiagnosticIds.vb (3)
21Friend Shared ReadOnly AllDiagnosticIds As ImmutableArray(Of String) = ImmutableArray.Create(BC30057, BC30272, BC30274, BC30389, BC30455, BC32006, BC30512, BC30387, BC30516) 22Friend Shared ReadOnly TooManyArgumentsDiagnosticIds As ImmutableArray(Of String) = ImmutableArray.Create(BC30057) 23Friend Shared ReadOnly CannotConvertDiagnosticIds As ImmutableArray(Of String) = ImmutableArray.Create(BC30512, BC32006, BC30311, BC36625)
src\Analyzers\VisualBasic\CodeFixes\GenerateConstructor\VisualBasicGenerateConstructorService.vb (5)
28Protected Overrides Function TryInitializeImplicitObjectCreation(document As SemanticDocument, node As SyntaxNode, cancellationToken As CancellationToken, ByRef token As SyntaxToken, ByRef arguments As ImmutableArray(Of Argument(Of ExpressionSyntax)), ByRef typeToGenerateIn As INamedTypeSymbol) As Boolean 61ByRef arguments As ImmutableArray(Of Argument(Of ExpressionSyntax)), 96ByRef arguments As ImmutableArray(Of Argument(Of ExpressionSyntax)), 131ByRef arguments As ImmutableArray(Of Argument(Of ExpressionSyntax)), 160Private Shared Function GetArguments(arguments As SeparatedSyntaxList(Of ArgumentSyntax)) As ImmutableArray(Of Argument(Of ExpressionSyntax))
src\Analyzers\VisualBasic\CodeFixes\GenerateEnumMember\GenerateEnumMemberCodeFixProvider.vb (2)
29Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String) 35Protected Overrides Function GetCodeActionsAsync(document As Document, node As SyntaxNode, cancellationToken As CancellationToken) As Task(Of ImmutableArray(Of CodeAction))
src\Analyzers\VisualBasic\CodeFixes\GenerateParameterizedMember\GenerateConversionCodeFixProvider.vb (2)
29Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String) 35Protected Overrides Function GetCodeActionsAsync(document As Document, node As SyntaxNode, cancellationToken As CancellationToken) As Task(Of ImmutableArray(Of CodeAction))
src\Analyzers\VisualBasic\CodeFixes\GenerateParameterizedMember\GenerateParameterizedMemberCodeFixProvider.vb (2)
48Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String) 54Protected Overrides Function GetCodeActionsAsync(document As Document, node As SyntaxNode, cancellationToken As CancellationToken) As Task(Of ImmutableArray(Of CodeAction))
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 (10)
31Protected Overrides Function DetermineParameterNames(cancellationToken As CancellationToken) As ImmutableArray(Of ParameterName) 64Protected Overrides Function GetCapturedTypeParameters(cancellationToken As CancellationToken) As ImmutableArray(Of ITypeParameterSymbol) 76Protected Overrides Function GenerateTypeParameters(cancellationToken As CancellationToken) As ImmutableArray(Of ITypeParameterSymbol) 131Protected Overrides Function DetermineParameterModifiers(cancellationToken As CancellationToken) As ImmutableArray(Of RefKind) 134ImmutableArray(Of RefKind).Empty) 137Protected Overrides Function DetermineParameterTypes(cancellationToken As CancellationToken) As ImmutableArray(Of ITypeSymbol) 140ImmutableArray(Of ITypeSymbol).Empty) 143Protected Overrides Function DetermineParameterOptionality(cancellationToken As CancellationToken) As ImmutableArray(Of Boolean) 146ImmutableArray(Of Boolean).Empty) 167Protected Overrides Function DetermineTypeArguments(cancellationToken As CancellationToken) As ImmutableArray(Of ITypeSymbol)
src\Analyzers\VisualBasic\CodeFixes\GenerateVariable\VisualBasicGenerateVariableCodeFixProvider.vb (3)
32Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String) 38Protected Overrides Async Function GetCodeActionsAsync(document As Document, node As SyntaxNode, cancellationToken As CancellationToken) As Task(Of ImmutableArray(Of CodeAction)) 46Return ImmutableArray(Of CodeAction).Empty
src\Analyzers\VisualBasic\CodeFixes\ImplementInterface\VisualBasicImplementInterfaceCodeFixProvider.vb (1)
25Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String) = ImmutableArray.Create(BC30149)
src\Analyzers\VisualBasic\CodeFixes\ImplementInterface\VisualBasicImplementInterfaceService.vb (1)
45ByRef interfaceTypes As ImmutableArray(Of INamedTypeSymbol)) As Boolean
src\Analyzers\VisualBasic\CodeFixes\Iterator\VisualBasicChangeToYieldCodeFixProvider.vb (2)
23Friend Shared ReadOnly Ids As ImmutableArray(Of String) = ImmutableArray.Create(BC36942) 30Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String)
src\Analyzers\VisualBasic\CodeFixes\Iterator\VisualBasicConvertToIteratorCodeFixProvider.vb (2)
25Friend Shared ReadOnly Ids As ImmutableArray(Of String) = ImmutableArray.Create(BC30451) 32Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String)
src\Analyzers\VisualBasic\CodeFixes\MakeMethodAsynchronous\VisualBasicMakeMethodAsynchronousCodeFixProvider.vb (2)
24Private Shared ReadOnly s_diagnosticIds As ImmutableArray(Of String) = ImmutableArray.Create( 38Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String)
src\Analyzers\VisualBasic\CodeFixes\MakeMethodSynchronous\VisualBasicMakeMethodSynchronousCodeFixProvider.vb (2)
21Private Shared ReadOnly s_diagnosticIds As ImmutableArray(Of String) = ImmutableArray.Create(BC42356) 28Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String)
src\Analyzers\VisualBasic\CodeFixes\MakeTypeAbstract\VisualBasicMakeTypeAbstractCodeFixProvider.vb (1)
22Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String) =
src\Analyzers\VisualBasic\CodeFixes\MakeTypePartial\VisualBasicMakeTypePartialCodeFixProvider.vb (1)
23Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String) = ImmutableArray.Create(BC40046)
src\Analyzers\VisualBasic\CodeFixes\OrderModifiers\VisualBasicOrderModifiersCodeFixProvider.vb (2)
31Protected Overrides ReadOnly Property FixableCompilerErrorIds As ImmutableArray(Of String) = 32ImmutableArray(Of String).Empty
src\Analyzers\VisualBasic\CodeFixes\RemoveAsyncModifier\VisualBasicRemoveAsyncModifierCodeFixProvider.vb (2)
21Private Shared ReadOnly s_diagnosticIds As ImmutableArray(Of String) = ImmutableArray.Create(BC42356) 28Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String) = s_diagnosticIds
src\Analyzers\VisualBasic\CodeFixes\RemoveUnnecessaryByVal\VisualBasicRemoveUnnecessaryByValCodeFixProvider.vb (2)
26Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String) = 37Protected Overrides Async Function FixAllAsync(document As Document, diagnostics As ImmutableArray(Of Diagnostic), editor As SyntaxEditor, cancellationToken As CancellationToken) As Task
src\Analyzers\VisualBasic\CodeFixes\RemoveUnnecessaryCast\VisualBasicRemoveUnnecessaryCastCodeFixProvider.vb (4)
30Public NotOverridable Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String) = 54diagnostics As ImmutableArray(Of Diagnostic), 94document As Document, originalCastNodes As ImmutableArray(Of ExpressionSyntax), 116document As Document, originalNodes As ImmutableArray(Of ExpressionSyntax),
src\Analyzers\VisualBasic\CodeFixes\SimplifyObjectCreation\VisualBasicSimplifyObjectCreationCodeFixProvider.vb (2)
25Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String) = ImmutableArray.Create(IDEDiagnosticIds.SimplifyObjectCreationDiagnosticId) 35Protected Overrides Async Function FixAllAsync(document As Document, diagnostics As ImmutableArray(Of Diagnostic), editor As SyntaxEditor, cancellationToken As CancellationToken) As Task
src\Analyzers\VisualBasic\CodeFixes\UnsealClass\VisualBasicUnsealClassCodeFixProvider.vb (1)
23Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String) =
src\Analyzers\VisualBasic\CodeFixes\UseCollectionInitializer\VisualBasicUseCollectionInitializerCodeFixProvider.vb (4)
45preMatches As ImmutableArray(Of CollectionMatch(Of SyntaxNode)), 46postMatches As ImmutableArray(Of CollectionMatch(Of SyntaxNode)), 75matches As ImmutableArray(Of CollectionMatch(Of SyntaxNode))) As ObjectCreationExpressionSyntax 85matches As ImmutableArray(Of CollectionMatch(Of SyntaxNode))) As CollectionInitializerSyntax
src\Analyzers\VisualBasic\CodeFixes\UseIsNotExpression\VisualBasicUseIsNotExpressionCodeFixProvider.vb (2)
26Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String) = ImmutableArray.Create(IDEDiagnosticIds.UseIsNotExpressionDiagnosticId) 35diagnostics As ImmutableArray(Of Diagnostic),
src\Analyzers\VisualBasic\CodeFixes\UseObjectInitializer\VisualBasicUseObjectInitializerCodeFixProvider.vb (3)
53matches As ImmutableArray(Of Match(Of ExpressionSyntax, StatementSyntax, MemberAccessExpressionSyntax, AssignmentStatementSyntax))) As StatementSyntax 77matches As ImmutableArray(Of Match(Of ExpressionSyntax, StatementSyntax, MemberAccessExpressionSyntax, AssignmentStatementSyntax))) As ObjectCreationExpressionSyntax 88matches As ImmutableArray(Of Match(Of ExpressionSyntax, StatementSyntax, MemberAccessExpressionSyntax, AssignmentStatementSyntax))) As SeparatedSyntaxList(Of FieldInitializerSyntax)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\AttributeGenerator.vb (1)
15Public Function GenerateAttributeBlocks(attributes As ImmutableArray(Of AttributeData), options As CodeGenerationContextInfo, Optional target As SyntaxToken? = Nothing) As SyntaxList(Of AttributeListSyntax)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\ParameterGenerator.vb (1)
14Public Shared Function GenerateParameterList(parameterDefinitions As ImmutableArray(Of IParameterSymbol), options As CodeGenerationContextInfo) As ParameterListSyntax
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\TypeParameterGenerator.vb (1)
10Public Shared Function GenerateTypeParameterList(typeParameters As ImmutableArray(Of ITypeParameterSymbol)) As TypeParameterListSyntax
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\VisualBasicCodeGenerationService.vb (1)
511Dim strippedTrivia As ImmutableArray(Of SyntaxTrivia) = Nothing
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Editing\VisualBasicImportAdder.vb (3)
39Protected Overrides Function AddPotentiallyConflictingImportsAsync(model As SemanticModel, container As SyntaxNode, namespaceSymbols As ImmutableArray(Of INamespaceSymbol), conflicts As HashSet(Of INamespaceSymbol), cancellationToken As CancellationToken) As Task 87namespaceSymbols As ImmutableArray(Of INamespaceSymbol)) 98Private Sub AddImportedMembers(namespaceSymbols As ImmutableArray(Of INamespaceSymbol))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\SemanticModelExtensions.vb (7)
19cancellationToken As CancellationToken) As ImmutableArray(Of ParameterName) 21Return ImmutableArray(Of ParameterName).Empty 33cancellationToken As CancellationToken) As ImmutableArray(Of ParameterName) 45cancellationToken As CancellationToken) As ImmutableArray(Of ParameterName) 47Return ImmutableArray(Of ParameterName).Empty 67cancellationToken As CancellationToken) As ImmutableArray(Of ParameterName) 69Return ImmutableArray(Of ParameterName).Empty
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\LanguageServices\VisualBasicAddImportsService.vb (1)
51Protected Overrides Function GetGlobalImports(compilation As Compilation, generator As SyntaxGenerator) As ImmutableArray(Of SyntaxNode)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\LanguageServices\VisualBasicSymbolDeclarationService.vb (2)
26Public Function GetDeclarations(symbol As ISymbol) As ImmutableArray(Of SyntaxReference) Implements ISymbolDeclarationService.GetDeclarations 28ImmutableArray(Of SyntaxReference).Empty,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\LanguageServices\VisualBasicSyntaxFactsService.vb (1)
39Public Function GetSelectedFieldsAndPropertiesAsync(tree As SyntaxTree, textSpan As TextSpan, allowPartialSelection As Boolean, cancellationToken As CancellationToken) As Task(Of ImmutableArray(Of SyntaxNode)) Implements ISyntaxFactsService.GetSelectedFieldsAndPropertiesAsync
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\LanguageServices\VisualBasicTypeInferenceService.TypeInferrer.vb (1)
385parameterizedSymbols As IEnumerable(Of ImmutableArray(Of IParameterSymbol))) As IEnumerable(Of TypeInferenceInfo)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.UnitTests (6)
src\Analyzers\VisualBasic\Tests\AddExplicitCast\AddExplicitCastTests.vb (2)
20Protected Overrides Function MassageActions(actions As ImmutableArray(Of CodeAction)) As ImmutableArray(Of CodeAction)
src\Analyzers\VisualBasic\Tests\AddParameter\AddParameterTests.vb (2)
21Protected Overrides Function MassageActions(actions As ImmutableArray(Of CodeAction)) As ImmutableArray(Of CodeAction)
src\Analyzers\VisualBasic\Tests\AliasAmbiguousType\AliasAmbiguousTypeTests.vb (2)
20Protected Overrides Function MassageActions(actions As ImmutableArray(Of CodeAction)) As ImmutableArray(Of CodeAction)
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (10)
CommandLineTests.vb (10)
2510_pathResolver = New RelativePathResolver(ImmutableArray(Of String).Empty, baseDirectory) 2513Public Overrides Function ResolveReference(reference As String, baseFilePath As String, properties As MetadataReferenceProperties) As ImmutableArray(Of PortableExecutableReference) 3596AssertEx.Equal(ImmutableArray(Of String).Empty, parser.ReferencePaths) 5382Private Sub AssertReferencePathsEqual(refPaths As ImmutableArray(Of String), sdkPathOrNothing As String, ParamArray paths() As String) 10984Public Overrides ReadOnly Property SupportedDiagnostics As ImmutableArray(Of DiagnosticDescriptor) 11009Public Overrides ReadOnly Property SupportedDiagnostics As ImmutableArray(Of DiagnosticDescriptor) 11035Public Overrides ReadOnly Property SupportedDiagnostics As ImmutableArray(Of DiagnosticDescriptor) 11059Public Overrides ReadOnly Property SupportedDiagnostics As ImmutableArray(Of DiagnosticDescriptor) 11083Public Overrides ReadOnly Property SupportedDiagnostics As ImmutableArray(Of DiagnosticDescriptor) 11104Public Overrides ReadOnly Property SupportedDiagnostics As ImmutableArray(Of DiagnosticDescriptor)
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures (5)
CodeCleanup\VisualBasicCodeCleanupService.vb (2)
21Private Shared ReadOnly s_diagnosticSets As ImmutableArray(Of DiagnosticSet) = ImmutableArray.Create( 91Protected Overrides Function GetDiagnosticSets() As ImmutableArray(Of DiagnosticSet)
LineCommit\CommitFormatter.vb (1)
169cancellationToken As CancellationToken) As ImmutableArray(Of AbstractFormattingRule)
NavigationBar\VisualBasicEditorNavigationBarItemService_CodeGeneration.vb (2)
140parameters:=ImmutableArray(Of IParameterSymbol).Empty, 238parameters:=ImmutableArray(Of IParameterSymbol).Empty,
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (47)
Attributes\AssemblyAttributes.vb (3)
587ImmutableArray(Of Byte).Empty, False, False)}). 620ImmutableArray(Of Byte).Empty, False, False), 624ImmutableArray(Of Byte).Empty, False, False)},
Attributes\AttributeTests.vb (6)
2182typeArg = ArrayTypeSymbol.CreateVBArray(classW, CType(Nothing, ImmutableArray(Of CustomModifier)), rank:=2, declaringAssembly:=m.ContainingAssembly) 2188typeArg = ArrayTypeSymbol.CreateVBArray(typeArg, CType(Nothing, ImmutableArray(Of CustomModifier)), rank:=2, declaringAssembly:=m.ContainingAssembly) 2194typeArg = ArrayTypeSymbol.CreateVBArray(classYOfW, CType(Nothing, ImmutableArray(Of CustomModifier)), rank:=2, declaringAssembly:=m.ContainingAssembly) 2202typeArg = ArrayTypeSymbol.CreateVBArray(substNestedF, CType(Nothing, ImmutableArray(Of CustomModifier)), rank:=3, declaringAssembly:=m.ContainingAssembly) 2204typeArg = ArrayTypeSymbol.CreateVBArray(typeArg, CType(Nothing, ImmutableArray(Of CustomModifier)), rank:=2, declaringAssembly:=m.ContainingAssembly) 2211typeArg = ArrayTypeSymbol.CreateVBArray(typeArg, CType(Nothing, ImmutableArray(Of CustomModifier)), rank:=2, declaringAssembly:=m.ContainingAssembly)
Attributes\AttributeTests_Conditional.vb (8)
158Dim attributesArrayBuilder = ArrayBuilder(Of Tuple(Of ImmutableArray(Of VisualBasicAttributeData), Boolean)).GetInstance() 236Dim attributesArray As ImmutableArray(Of VisualBasicAttributeData) = tup.Item1 273Private Sub TestConditionAttributeType_SameSource(condDefs As String, preprocessorSymbols As ImmutableArray(Of KeyValuePair(Of String, Object))) 291preprocessorSymbolsSrcFile1 As ImmutableArray(Of KeyValuePair(Of String, Object)), 293preprocessorSymbolsSrcFile2 As ImmutableArray(Of KeyValuePair(Of String, Object))) 564Private Sub TestConditionalMethod_SameSource(condDefs As String, preprocessorSymbols As ImmutableArray(Of KeyValuePair(Of String, Object))) 578preprocessorSymbolsSrcFile1 As ImmutableArray(Of KeyValuePair(Of String, Object)), 580preprocessorSymbolsSrcFile2 As ImmutableArray(Of KeyValuePair(Of String, Object)))
Attributes\AttributeTests_Synthesized.vb (1)
1435Private Shared Function GetDebuggerBrowsableState(attributes As ImmutableArray(Of VisualBasicAttributeData)) As DebuggerBrowsableState
Attributes\InternalsVisibleToAndStrongNameTests.vb (2)
46Private Shared ReadOnly s_publicKey As ImmutableArray(Of Byte) = SigningTestHelpers.PublicKey 48ImmutableArray(Of String).Empty,
CodeGen\CodeGenTests.vb (1)
13753Dim diagnostics = ImmutableArray(Of Diagnostic).Empty
CodeGen\CodeGenTuples.vb (8)
7223Assert.Throws(Of ArgumentException)(Sub() comp.CreateTupleTypeSymbol(elementTypes:=ImmutableArray(Of ITypeSymbol).Empty, elementNames:=Nothing)) 7461Private Shared Function GetTupleElementNames(tuple As INamedTypeSymbol) As ImmutableArray(Of String) 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)) 7723Private Shared Function CreateAnnotations(annotation As CodeAnalysis.NullableAnnotation, n As Integer) As ImmutableArray(Of CodeAnalysis.NullableAnnotation) 15250Private Sub AssertTupleMembersParametersEquality(parameters1 As ImmutableArray(Of ParameterSymbol), parameters2 As ImmutableArray(Of ParameterSymbol)) 15279Private Shared Sub AssertTestDisplayString(symbols As ImmutableArray(Of Symbol), ParamArray baseLine As String())
Emit\CompilationEmitTests.vb (7)
889Private Sub RefAssemblyNoPia_VerifyNoPia(image As ImmutableArray(Of Byte)) 964Private Sub RefAssemblyNoPiaReferenceFromMethodBody_VerifyNoPia(image As ImmutableArray(Of Byte), expectMissing As Boolean) 991Private Shared Function EmitRefOut(comp As VisualBasicCompilation) As (image As ImmutableArray(Of Byte), refImage As ImmutableArray(Of Byte)) 1002Private Shared Function EmitRefOnly(comp As VisualBasicCompilation) As ImmutableArray(Of Byte) 1063Dim image1 As ImmutableArray(Of Byte) = comp1.EmitToArray(EmitOptions.Default.WithEmitMetadataOnly(True).WithIncludePrivateMembers(includePrivateMembers)) 1068Dim image2 As ImmutableArray(Of Byte) = comp2.EmitToArray(EmitOptions.Default.WithEmitMetadataOnly(True).WithIncludePrivateMembers(includePrivateMembers))
Emit\DeterministicTests.vb (1)
19Private Function GetBytesEmitted(source As String, platform As Platform, debug As Boolean) As ImmutableArray(Of Byte)
Emit\DynamicAnalysis\DynamicAnalysisResourceTests.vb (1)
845Private Sub VerifyDocuments(reader As DynamicAnalysisDataReader, documents As ImmutableArray(Of DynamicAnalysisDocument), ParamArray expected As String())
Emit\DynamicAnalysis\DynamicInstrumentationTests.vb (1)
1915Dim diagnostics As ImmutableArray(Of Diagnostic) = CreateCompilation(source).GetEmitDiagnostics(EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.TestCoverage)))
Emit\EditAndContinue\EditAndContinueTestBase.vb (3)
90Friend Shared Function GetAllLocals(compilation As VisualBasicCompilation, method As MethodSymbol) As ImmutableArray(Of LocalSymbol) 107Friend Shared Function GetAllLocals(compilation As VisualBasicCompilation, method As IMethodSymbol) As ImmutableArray(Of KeyValuePair(Of ILocalSymbol, Integer)) 112Friend Shared Function GetAllLocals(method As SourceMethodSymbol) As ImmutableArray(Of VisualBasicSyntaxNode)
Emit\EditAndContinue\EditAndContinueTests.vb (2)
3035Dim metadata3 As ImmutableArray(Of Byte) = Nothing 3036Dim il3 As ImmutableArray(Of Byte) = Nothing
Emit\EditAndContinue\SymbolMatcherTests.vb (1)
78Private Shared Sub MatchAll(matcher As VisualBasicSymbolMatcher, members As ImmutableArray(Of Symbol), startAt As Integer)
Emit\NoPiaEmbedTypes.vb (1)
4566Private Shared Sub AssertParametersWithoutNames(parameters As ImmutableArray(Of ParameterSymbol), isEmbedded As Boolean)
PDB\ChecksumTests.vb (1)
31Dim resolver As New SourceFileResolver(ImmutableArray(Of String).Empty, baseDirectory)
Microsoft.CodeAnalysis.VisualBasic.ExpressionCompiler (183)
Binders\EENamedTypeBinder.vb (2)
40Public Overrides ReadOnly Property AdditionalContainingMembers As ImmutableArray(Of Symbol) 42Return ImmutableArray(Of Symbol).Empty
Binders\ParametersAndLocalsBinder.vb (4)
29Private Shared Function BuildNameToSymbolMap(parameters As ImmutableArray(Of ParameterSymbol), locals As ImmutableArray(Of LocalSymbol)) As Dictionary(Of String, Symbol) 56Public Overrides ReadOnly Property AdditionalContainingMembers As ImmutableArray(Of Symbol) 58Return ImmutableArray(Of Symbol).Empty
Binders\PlaceholderLocalBinder.vb (1)
22aliases As ImmutableArray(Of [Alias]),
CompilationContext.vb (35)
36Private ReadOnly _locals As ImmutableArray(Of LocalSymbol) 38Private ReadOnly _sourceMethodParametersInOrder As ImmutableArray(Of String) 39Private ReadOnly _localsForBinding As ImmutableArray(Of LocalSymbol) 50locals As ImmutableArray(Of LocalSymbol), 102Dim displayClassVariableNamesInOrder As ImmutableArray(Of String) = Nothing 114_locals = ImmutableArray(Of LocalSymbol).Empty 116_localsForBinding = ImmutableArray(Of LocalSymbol).Empty 129aliases As ImmutableArray(Of [Alias]), 196aliases As ImmutableArray(Of [Alias]), 218constructor.SetParameters(ImmutableArray(Of ParameterSymbol).Empty) 404methods As ImmutableArray(Of MethodSymbol), 405additionalTypes As ImmutableArray(Of NamedTypeSymbol), 484Dim expression = New BoundObjectCreationExpression(syntax, type.InstanceConstructors(0), ImmutableArray(Of BoundExpression).Empty, Nothing, type) 571importRecordGroups As ImmutableArray(Of ImmutableArray(Of ImportRecord))) As Binder 615aliases As ImmutableArray(Of [Alias]), 661importRecordGroups As ImmutableArray(Of ImmutableArray(Of ImportRecord))) As Binder 723Dim [imports] As ImmutableArray(Of NamespaceOrTypeAndImportsClausePosition) = importsBuilder.ToImmutableAndFree() 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) 974locals As ImmutableArray(Of LocalSymbol), 975displayClassVariableNamesInOrder As ImmutableArray(Of String), 976displayClassVariables As ImmutableDictionary(Of String, DisplayClassVariable)) As ImmutableArray(Of LocalSymbol) 1001sourceMethod As MethodSymbol) As ImmutableArray(Of String) 1048locals As ImmutableArray(Of LocalSymbol), 1050sourceMethodParametersInOrder As ImmutableArray(Of String), 1051<Out> ByRef displayClassVariableNamesInOrder As ImmutableArray(Of String), 1124displayClassVariableNamesInOrder = ImmutableArray(Of String).Empty 1409desiredTypeParameters As ImmutableArray(Of TypeParameterSymbol), 1419Private Shared Function HasDesiredConstraints(candidateMethod As MethodSymbol, desiredTypeParameters As ImmutableArray(Of TypeParameterSymbol)) As Boolean 1433Dim sourceTypeTypeParameters As ImmutableArray(Of TypeParameterSymbol) = candidateMethodDefinition.ContainingType.TypeParameters
CompilationExtensions.vb (4)
76Friend Function ToCompilation(metadataBlocks As ImmutableArray(Of MetadataBlock)) As VisualBasicCompilation 81Friend Function ToCompilationReferencedModulesOnly(metadataBlocks As ImmutableArray(Of MetadataBlock), moduleVersionId As Guid) As VisualBasicCompilation 86Friend Function ToCompilation(metadataBlocks As ImmutableArray(Of MetadataBlock), moduleVersionId As Guid, kind As MakeAssemblyReferencesKind) As VisualBasicCompilation 87Dim referencesBySimpleName As IReadOnlyDictionary(Of String, ImmutableArray(Of (AssemblyIdentity, MetadataReference))) = Nothing
EEAssemblyBuilder.vb (13)
25Friend ReadOnly Methods As ImmutableArray(Of MethodSymbol) 30methods As ImmutableArray(Of MethodSymbol), 32additionalTypes As ImmutableArray(Of NamedTypeSymbol), 106Private Function GetLocalDefinitions(locals As ImmutableArray(Of LocalSymbol), diagnostics As DiagnosticBag) As ImmutableArray(Of LocalDefinition) 133dynamicTransformFlags:=ImmutableArray(Of Boolean).Empty, 134tupleElementNames:=ImmutableArray(Of String).Empty) 146Private ReadOnly _locals As ImmutableArray(Of LocalDefinition) 148Friend Sub New(locals As ImmutableArray(Of LocalDefinition)) 164dynamicTransformFlags As ImmutableArray(Of Boolean), 165tupleElementNames As ImmutableArray(Of String)) As LocalDefinition 196Public Overrides Function TryGetPreviousClosure(closureSyntax As SyntaxNode, parentClosureId As DebugId?, structCaptures As ImmutableArray(Of String), ByRef closureId As DebugId, ByRef runtimeRudeEdit As RuntimeRudeEdit?) As Boolean 202Public Overrides Function TryGetPreviousLambda(lambdaOrLambdaBodySyntax As SyntaxNode, isLambdaBody As Boolean, closureOrdinal As Integer, structClosureIds As ImmutableArray(Of DebugId), ByRef lambdaId As DebugId, ByRef runtimeRudeEdit As RuntimeRudeEdit?) As Boolean
EvaluationContext.vb (17)
42Private ReadOnly _locals As ImmutableArray(Of LocalSymbol) 51locals As ImmutableArray(Of LocalSymbol), 109metadataBlocks As ImmutableArray(Of MetadataBlock), 110lazyAssemblyReaders As Lazy(Of ImmutableArray(Of AssemblyReaders)), 146lazyAssemblyReaders As Lazy(Of ImmutableArray(Of AssemblyReaders)), 202Private Shared Function GetInScopeHoistedLocalSlots(allLocalNames As ImmutableArray(Of String)) As ImmutableSortedSet(Of Integer) 253Friend Shared Function SynthesizeMethodDebugInfoForDtee(assemblyReaders As ImmutableArray(Of AssemblyReaders)) As MethodDebugInfo(Of TypeSymbol, LocalSymbol) 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, 349aliases As ImmutableArray(Of [Alias]), 407aliases As ImmutableArray(Of [Alias]), 464aliases As ImmutableArray(Of [Alias]), 556Friend Overrides Function GetMissingAssemblyIdentities(diagnostic As Diagnostic, linqLibrary As AssemblyIdentity) As ImmutableArray(Of AssemblyIdentity) 563Friend Shared Function GetMissingAssemblyIdentitiesHelper(code As ERRID, arguments As IReadOnlyList(Of Object), globalNamespace As NamespaceSymbol, linqLibrary As AssemblyIdentity) As ImmutableArray(Of AssemblyIdentity)
Rewriters\LocalDeclarationRewriter.vb (2)
65ImmutableArray(Of CustomModifier).Empty, 75Dim customTypeInfoPayloadId = New BoundObjectCreationExpression(syntax, Nothing, ImmutableArray(Of BoundExpression).Empty, Nothing, guidType)
SymbolExtensions.vb (1)
77Friend Function GetAllTypeParameters(method As MethodSymbol) As ImmutableArray(Of TypeParameterSymbol)
Symbols\DisplayClassVariable.vb (4)
134Public Overrides ReadOnly Property CustomModifiers As ImmutableArray(Of CustomModifier) 136Return ImmutableArray(Of CustomModifier).Empty 146Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 180Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\EEConstructorSymbol.vb (1)
21ImmutableArray(Of LocalSymbol).Empty,
Symbols\EEDisplayClassFieldLocalSymbol.vb (3)
42Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 60Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 62Return ImmutableArray(Of SyntaxReference).Empty
Symbols\EELocalConstantSymbol.vb (3)
57Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 59Return ImmutableArray(Of SyntaxReference).Empty 69Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\EELocalSymbol.vb (5)
14Private ReadOnly _locations As ImmutableArray(Of Location) 23locations As ImmutableArray(Of Location), 83Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 85Return ImmutableArray(Of SyntaxReference).Empty 95Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\EELocalSymbolBase.vb (1)
26Friend Shared ReadOnly NoLocations As ImmutableArray(Of Location) = ImmutableArray.Create(NoLocation.Singleton)
Symbols\EEMethodSymbol.vb (20)
26Friend ReadOnly Locals As ImmutableArray(Of LocalSymbol) 27Friend ReadOnly LocalsForBinding As ImmutableArray(Of LocalSymbol) 32Private ReadOnly _locations As ImmutableArray(Of Location) 33Private ReadOnly _typeParameters As ImmutableArray(Of TypeParameterSymbol) 34Private ReadOnly _parameters As ImmutableArray(Of ParameterSymbol) 50Private ReadOnly _allTypeParameters As ImmutableArray(Of TypeParameterSymbol) 58sourceLocals As ImmutableArray(Of LocalSymbol), 59sourceLocalsForBinding As ImmutableArray(Of LocalSymbol), 282Public Overrides ReadOnly Property TypeArguments As ImmutableArray(Of TypeSymbol) 288Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of TypeParameterSymbol) 294Public Overrides ReadOnly Property Parameters As ImmutableArray(Of ParameterSymbol) 300Public Overrides ReadOnly Property ExplicitInterfaceImplementations As ImmutableArray(Of MethodSymbol) 302Return ImmutableArray(Of MethodSymbol).Empty 306Public Overrides ReadOnly Property ReturnTypeCustomModifiers As ImmutableArray(Of CustomModifier) 308Return ImmutableArray(Of CustomModifier).Empty 312Public Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier) 314Return ImmutableArray(Of CustomModifier).Empty 324Friend Overrides Function GetAppliedConditionalSymbols() As ImmutableArray(Of String) 354Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 360Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference)
Symbols\EENamedTypeSymbol.vb (23)
17Friend ReadOnly SourceTypeParameters As ImmutableArray(Of TypeParameterSymbol) 23Private ReadOnly _typeParameters As ImmutableArray(Of TypeParameterSymbol) 24Private ReadOnly _methods As ImmutableArray(Of MethodSymbol) 45getMethods As Func(Of MethodSymbol, EENamedTypeSymbol, ImmutableArray(Of MethodSymbol)), 46sourceTypeParameters As ImmutableArray(Of TypeParameterSymbol), 47getTypeParameters As Func(Of NamedTypeSymbol, EENamedTypeSymbol, ImmutableArray(Of TypeParameterSymbol))) 66getMethods As Func(Of MethodSymbol, EENamedTypeSymbol, ImmutableArray(Of MethodSymbol))) 101Friend ReadOnly Property Methods As ImmutableArray(Of MethodSymbol) 125Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of TypeParameterSymbol) 167Public Overrides Function GetMembers() As ImmutableArray(Of Symbol) 171Public Overrides Function GetMembers(name As String) As ImmutableArray(Of Symbol) 177Public Overrides Function GetTypeMembers() As ImmutableArray(Of NamedTypeSymbol) 178Return ImmutableArray(Of NamedTypeSymbol).Empty 181Public Overrides Function GetTypeMembers(name As String) As ImmutableArray(Of NamedTypeSymbol) 185Public Overrides Function GetTypeMembers(name As String, arity As Integer) As ImmutableArray(Of NamedTypeSymbol) 247Friend Overrides Function GetAppliedConditionalSymbols() As ImmutableArray(Of String) 263Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 269Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 307Friend Overrides Function MakeAcyclicInterfaces(diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol) 308Return ImmutableArray(Of NamedTypeSymbol).Empty 311Friend Overrides Function MakeDeclaredInterfaces(basesBeingResolved As BasesBeingResolved, diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol) 312Return ImmutableArray(Of NamedTypeSymbol).Empty 366Friend Shared Sub VerifyTypeParameters(container As Symbol, typeParameters As ImmutableArray(Of TypeParameterSymbol))
Symbols\EEStaticLocalSymbol.vb (3)
54Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 56Return ImmutableArray(Of SyntaxReference).Empty 66Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\EETypeParameterSymbol.vb (4)
43Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 73Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 107Friend Overrides ReadOnly Property ConstraintTypesNoUseSiteDiagnostics As ImmutableArray(Of TypeSymbol) 111Return ImmutableArray(Of TypeSymbol).Empty
Symbols\ExceptionLocalSymbol.vb (1)
39arguments:=ImmutableArray(Of BoundExpression).Empty,
Symbols\PlaceholderLocalSymbol.vb (3)
82Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 94Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 96Return ImmutableArray(Of SyntaxReference).Empty
Symbols\PlaceholderMethodSymbol.vb (9)
18Friend Delegate Function GetTypeParameters(method As PlaceholderMethodSymbol) As ImmutableArray(Of TypeParameterSymbol) 19Friend Delegate Function GetParameters(method As PlaceholderMethodSymbol) As ImmutableArray(Of ParameterSymbol) 23Private ReadOnly _typeParameters As ImmutableArray(Of TypeParameterSymbol) 24Private ReadOnly _parameters As ImmutableArray(Of ParameterSymbol) 117Public Overrides ReadOnly Property TypeArguments As ImmutableArray(Of TypeSymbol) 123Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of TypeParameterSymbol) 129Public Overrides ReadOnly Property Parameters As ImmutableArray(Of ParameterSymbol) 135Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 137Return ImmutableArray(Of Location).Empty
Symbols\SimpleTypeParameterSymbol.vb (4)
85Friend Overrides ReadOnly Property ConstraintTypesNoUseSiteDiagnostics As ImmutableArray(Of TypeSymbol) 87Return ImmutableArray(Of TypeSymbol).Empty 97Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 103Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference)
Symbols\SynthesizedContextMethodSymbol.vb (1)
57Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
TypeParameterChecker.vb (3)
14Public Shared Sub Check(symbol As Symbol, acceptableTypeParameters As ImmutableArray(Of TypeParameterSymbol)) 20Public Shared Sub Check(node As BoundNode, acceptableTypeParameters As ImmutableArray(Of TypeParameterSymbol)) 25Private Sub New(acceptableTypeParameters As ImmutableArray(Of TypeParameterSymbol))
VisualBasicEESymbolProvider.vb (6)
30dynamicFlagsOpt As ImmutableArray(Of Boolean), 31tupleElementNamesOpt As ImmutableArray(Of String)) As LocalSymbol 45dynamicFlagsOpt As ImmutableArray(Of Boolean), 46tupleElementNamesOpt As ImmutableArray(Of String)) As LocalSymbol 54Public Overrides Function DecodeLocalVariableType(signature As ImmutableArray(Of Byte)) As TypeSymbol 83Private Function IncludeTupleElementNamesIfAny(type As TypeSymbol, tupleElementNamesOpt As ImmutableArray(Of String)) As TypeSymbol
VisualBasicExpressionCompiler.vb (7)
40metadataBlocks As ImmutableArray(Of MetadataBlock), 57metadataBlocks As ImmutableArray(Of MetadataBlock), 101metadataBlocks As ImmutableArray(Of MetadataBlock), 102lazyAssemblyReaders As Lazy(Of ImmutableArray(Of AssemblyReaders)), 130metadataBlocks As ImmutableArray(Of MetadataBlock), 131lazyAssemblyReaders As Lazy(Of ImmutableArray(Of AssemblyReaders)), 204Friend Overrides Function GetMetadataBlocks(appDomain As DkmClrAppDomain, runtimeInstance As DkmClrRuntimeInstance) As ImmutableArray(Of MetadataBlock)
VisualBasicInstructionDecoder.vb (3)
72Friend Overrides Function ConstructMethod(method As MethodSymbol, typeParameters As ImmutableArray(Of TypeParameterSymbol), typeArguments As ImmutableArray(Of TypeSymbol)) As MethodSymbol 87Friend Overrides Function GetAllTypeParameters(method As MethodSymbol) As ImmutableArray(Of TypeParameterSymbol)
Microsoft.CodeAnalysis.VisualBasic.Features (734)
AddImport\VisualBasicAddImportCodeFixProvider.vb (2)
96Public ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String) 122Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String) = AddImportDiagnosticIds.FixableDiagnosticIds
AddImport\VisualBasicAddMissingImportsFeatureService.vb (2)
23Protected Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String) = AddImportDiagnosticIds.FixableDiagnosticIds 25Protected Overrides Function GetFormatRules(text As SourceText) As ImmutableArray(Of AbstractFormattingRule)
AddPackage\VisualBasicAddSpecificPackageCodeFixProvider.vb (1)
23Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String)
BraceMatching\VisualBasicDirectiveTriviaBraceMatcher.vb (1)
26Protected Overrides Function GetMatchingConditionalDirectives(directive As DirectiveTriviaSyntax, cancellationToken As CancellationToken) As ImmutableArray(Of DirectiveTriviaSyntax)
ChangeSignature\VisualBasicChangeSignatureService.vb (17)
28Private Shared ReadOnly _declarationKinds As ImmutableArray(Of SyntaxKind) = ImmutableArray.Create( 37Private Shared ReadOnly _declarationAndInvocableKinds As ImmutableArray(Of SyntaxKind) = 47Private Shared ReadOnly _nodeKindsToIgnore As ImmutableArray(Of SyntaxKind) = ImmutableArray.Create( 50Private Shared ReadOnly _updatableNodeKinds As ImmutableArray(Of SyntaxKind) = ImmutableArray.Create( 71Private Shared ReadOnly _updatableAncestorKinds As ImmutableArray(Of SyntaxKind) = ImmutableArray.Create( 563Dim newArguments As ImmutableArray(Of IUnifiedArgumentSyntax) = PermuteArguments( 612lineFormattingOption As LineFormattingOptions) As ImmutableArray(Of SyntaxTrivia) 615Return ImmutableArray(Of SyntaxTrivia).Empty 633Private Function VerifyAndPermuteParamNodes(paramNodes As ImmutableArray(Of XmlElementSyntax), declarationSymbol As ISymbol, updatedSignature As SignatureChange) As ImmutableArray(Of SyntaxNode) 641Return ImmutableArray(Of SyntaxNode).Empty 645Return ImmutableArray(Of SyntaxNode).Empty 653Return ImmutableArray(Of SyntaxNode).Empty 658Return ImmutableArray(Of SyntaxNode).Empty 686cancellationToken As CancellationToken) As Task(Of ImmutableArray(Of ISymbol)) 737Protected Overrides Function GetFormattingRules(document As Document) As ImmutableArray(Of AbstractFormattingRule) 793Protected Overrides Function GetParameters(declarationSymbol As ISymbol) As ImmutableArray(Of IParameterSymbol)
CodeFixes\AddMissingReference\VisualBasicAddMissingReferenceCodeFixProvider.vb (1)
26Public NotOverridable Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String) =
CodeFixes\CorrectNextControlVariable\CorrectNextControlVariableCodeFixProvider.vb (1)
24Public NotOverridable Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String)
CodeFixes\GenerateEndConstruct\GenerateEndConstructCodeFixProvider.vb (1)
51Public NotOverridable Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String)
CodeFixes\GenerateEvent\GenerateEventCodeFixProvider.vb (3)
32Public NotOverridable Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String) 148attributes:=ImmutableArray(Of AttributeData).Empty, 289ImmutableArray(Of IParameterSymbol).Empty)
CodeFixes\GenerateType\GenerateTypeCodeFixProvider.vb (2)
37Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String) 43Protected Overrides Function GetCodeActionsAsync(document As Document, node As SyntaxNode, cancellationToken As CancellationToken) As Task(Of ImmutableArray(Of CodeAction))
CodeFixes\IncorrectExitContinue\IncorrectExitContinueCodeFixProvider.vb (1)
46Public NotOverridable Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String)
CodeFixes\IncorrectFunctionReturnType\IncorrectFunctionReturnTypeCodeFixProvider.vb (1)
29Public NotOverridable Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String)
CodeFixes\MoveToTopOfFile\MoveToTopOfFileCodeFixProvider.vb (1)
31Public NotOverridable Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String)
CodeFixes\OverloadBase\OverloadBaseCodeFixProvider.vb (1)
26Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String)
CodeLens\VisualBasicCodeLensMemberFinder.vb (1)
24Public Async Function GetCodeLensMembersAsync(document As Document, cancellationToken As CancellationToken) As Task(Of ImmutableArray(Of CodeLensMember)) Implements ICodeLensMemberFinder.GetCodeLensMembersAsync
CodeRefactorings\MoveStaticMembers\VisualBasicMoveStaticMembersRefactoringProvider.vb (1)
22Protected Overrides Async Function GetSelectedNodesAsync(context As CodeRefactoringContext) As Task(Of ImmutableArray(Of SyntaxNode))
CodeRefactorings\NodeSelectionHelpers.vb (3)
14Friend Async Function GetSelectedMemberDeclarationAsync(context As CodeRefactoringContext) As Task(Of ImmutableArray(Of SyntaxNode)) 31Return ImmutableArray(Of SyntaxNode).Empty 48Return ImmutableArray(Of SyntaxNode).Empty
CodeRefactorings\SyncNamespace\VisualBasicChangeNamespaceService.vb (7)
24Public Overrides Function TryGetReplacementReferenceSyntax(reference As SyntaxNode, newNamespaceParts As ImmutableArray(Of String), syntaxFacts As ISyntaxFactsService, ByRef old As SyntaxNode, ByRef [new] As SyntaxNode) As Boolean 60Protected Overrides Function GetValidContainersFromAllLinkedDocumentsAsync(document As Document, container As SyntaxNode, cancellationToken As CancellationToken) As Task(Of ImmutableArray(Of (DocumentId, SyntaxNode))) 61Return SpecializedTasks.Default(Of ImmutableArray(Of (DocumentId, SyntaxNode)))() 65Protected Overrides Function ChangeNamespaceDeclaration(root As CompilationUnitSyntax, declaredNamespaceParts As ImmutableArray(Of String), targetNamespaceParts As ImmutableArray(Of String)) As CompilationUnitSyntax 84Private Shared Function CreateNamespaceAsQualifiedName(namespaceParts As ImmutableArray(Of String), index As Integer) As NameSyntax 95Private Shared Function CreateNamespaceAsMemberAccess(namespaceParts As ImmutableArray(Of String), index As Integer) As ExpressionSyntax
Completion\CompletionProviders\CompletionListTagCompletionProvider.vb (2)
34cancellationToken As CancellationToken) As Task(Of ImmutableArray(Of SymbolAndSelectionInfo)) 97symbols As ImmutableArray(Of SymbolAndSelectionInfo),
Completion\CompletionProviders\CrefCompletionProvider.vb (1)
100Protected Overrides Async Function GetSymbolsAsync(document As Document, position As Integer, options As CompletionOptions, cancellationToken As CancellationToken) As Task(Of (SyntaxToken, SemanticModel, ImmutableArray(Of ISymbol)))
Completion\CompletionProviders\EnumCompletionProvider.vb (2)
42cancellationToken As CancellationToken) As Task(Of ImmutableArray(Of SymbolAndSelectionInfo)) 129symbols As ImmutableArray(Of SymbolAndSelectionInfo),
Completion\CompletionProviders\HandlesClauseCompletionProvider.vb (9)
40cancellationToken As CancellationToken) As Task(Of ImmutableArray(Of SymbolAndSelectionInfo)) 46Private Overloads Shared Function GetSymbolsAsync(context As VisualBasicSyntaxContext, position As Integer, cancellationToken As CancellationToken) As Task(Of ImmutableArray(Of ISymbol)) 79) As ImmutableArray(Of ISymbol) 90Return ImmutableArray(Of ISymbol).Empty 102) As ImmutableArray(Of ISymbol) 114Return ImmutableArray(Of ISymbol).Empty 117Dim result = ImmutableArray(Of IEventSymbol).Empty 142Return ImmutableArray(Of ISymbol).CastUp(result) 164Protected Overrides Function CreateItem(completionContext As CompletionContext, displayText As String, displayTextSuffix As String, insertionText As String, symbols As ImmutableArray(Of SymbolAndSelectionInfo), context As VisualBasicSyntaxContext, supportedPlatformData As SupportedPlatformData) As CompletionItem
Completion\CompletionProviders\ImplementsClauseCompletionProvider.vb (12)
51cancellationToken As CancellationToken) As Task(Of ImmutableArray(Of SymbolAndSelectionInfo)) 58context As VisualBasicSyntaxContext, position As Integer, cancellationToken As CancellationToken) As Task(Of ImmutableArray(Of ISymbol)) 90Dim result = ImmutableArray(Of ISymbol).Empty 138Private Shared Function GetDottedMembers(position As Integer, qualifiedName As QualifiedNameSyntax, semanticModel As SemanticModel, memberKindKeyword As SyntaxKind, cancellationToken As CancellationToken) As ImmutableArray(Of ISymbol) 141Return ImmutableArray(Of ISymbol).Empty 174Return ImmutableArray(Of ISymbol).Empty 186Private Function interfaceMemberGetter([interface] As ITypeSymbol, within As ISymbol) As ImmutableArray(Of ISymbol) 191Private Function GetInterfacesAndContainers(position As Integer, node As SyntaxNode, semanticModel As SemanticModel, kind As SyntaxKind, cancellationToken As CancellationToken) As ImmutableArray(Of ISymbol) 194Return ImmutableArray(Of ISymbol).Empty 260Private Shared Function TryAddGlobalTo(symbols As ImmutableArray(Of ISymbol)) As ImmutableArray(Of ISymbol) 305symbols As ImmutableArray(Of SymbolAndSelectionInfo),
Completion\CompletionProviders\KeywordCompletionProvider.vb (1)
23Private Shared ReadOnly s_tags As ImmutableArray(Of String) = ImmutableArray.Create(WellKnownTags.Intrinsic)
Completion\CompletionProviders\NamedParameterCompletionProvider.vb (5)
114Private Shared Function IsValid(parameterList As ImmutableArray(Of ISymbol), existingNamedParameters As ISet(Of String)) As Boolean 133cancellationToken As CancellationToken) As IEnumerable(Of ImmutableArray(Of ISymbol)) 143cancellationToken As CancellationToken) As IEnumerable(Of ImmutableArray(Of ISymbol)) 158cancellationToken As CancellationToken) As IEnumerable(Of ImmutableArray(Of ISymbol)) 170cancellationToken As CancellationToken) As IEnumerable(Of ImmutableArray(Of ISymbol))
Completion\CompletionProviders\ObjectCreationCompletionProvider.vb (1)
65Protected Overrides Function GetCompletionItemRules(symbols As ImmutableArray(Of SymbolAndSelectionInfo)) As CompletionItemRules
Completion\CompletionProviders\OverrideCompletionProvider.vb (4)
156Public Overrides Function FilterOverrides(members As ImmutableArray(Of ISymbol), 157returnType As ITypeSymbol) As ImmutableArray(Of ISymbol) 168Return ImmutableArray(Of ISymbol).CastUp(filteredMembers.ToImmutableArray()) 180Return ImmutableArray(Of ISymbol).CastUp(filteredMembers.ToImmutableArray())
Completion\CompletionProviders\PartialTypeCompletionProvider.vb (1)
68Protected Overrides Function GetProperties(symbol As INamedTypeSymbol, context As VisualBasicSyntaxContext) As ImmutableArray(Of KeyValuePair(Of String, String))
Completion\CompletionProviders\SymbolCompletionProvider.vb (1)
115Protected Overrides Function GetCompletionItemRules(symbols As ImmutableArray(Of SymbolAndSelectionInfo), context As VisualBasicSyntaxContext) As CompletionItemRules
Completion\CompletionProviders\XmlDocCommentCompletionProvider.vb (3)
29Private Shared ReadOnly s_keywordNames As ImmutableArray(Of String) 285Protected Overrides Function GetKeywordNames() As ImmutableArray(Of String) 353Protected Overrides Function GetParameters(symbol As ISymbol) As ImmutableArray(Of IParameterSymbol)
Completion\KeywordRecommenders\AbstractKeywordRecommender.vb (3)
17cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) Implements IKeywordRecommender(Of VisualBasicSyntaxContext).RecommendKeywords 22Friend Function RecommendKeywords_Test(context As VisualBasicSyntaxContext) As ImmutableArray(Of RecommendedKeyword) 26Protected MustOverride Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword)
Completion\KeywordRecommenders\ArrayStatements\EraseKeywordRecommender.vb (3)
17Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = 20Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 21Return If(context.IsStatementContext, s_keywords, ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\ArrayStatements\PreserveKeywordRecommender.vb (4)
18Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = 21Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 23Return ImmutableArray(Of RecommendedKeyword).Empty 31Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\ArrayStatements\ReDimKeywordRecommender.vb (3)
17Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = 20Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 21Return If(context.IsStatementContext, s_keywords, ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\Declarations\AliasKeywordRecommender.vb (4)
18Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = 21Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 23Return ImmutableArray(Of RecommendedKeyword).Empty 30ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\Declarations\AsKeywordRecommender.vb (5)
18Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = 21Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 23Return ImmutableArray(Of RecommendedKeyword).Empty 119Return ImmutableArray(Of RecommendedKeyword).Empty 132Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Declarations\AsyncKeywordRecommender.vb (3)
14Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = 17Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 29Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Declarations\AttributeScopesKeywordRecommender.vb (4)
18Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = 23Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 25Return ImmutableArray(Of RecommendedKeyword).Empty 43Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Declarations\CharsetModifierKeywordRecommender.vb (4)
18Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = ImmutableArray.Create( 23Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 25Return ImmutableArray(Of RecommendedKeyword).Empty 32ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\Declarations\ClassKeywordRecommender.vb (3)
18Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = 21Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 29Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Declarations\ConstKeywordRecommender.vb (3)
17Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = 20Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 21Return If(context.IsMultiLineStatementContext, s_keywords, ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\Declarations\CovarianceModifiersKeywordRecommender.vb (6)
16Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = ImmutableArray.Create( 20Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 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 (3)
18Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = 21Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, CancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 31Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Declarations\DeclareKeywordRecommender.vb (3)
18Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = 21Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 29Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Declarations\DelegateKeywordRecommender.vb (3)
18Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = 21Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 29Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Declarations\DelegateSubFunctionKeywordRecommender.vb (4)
18Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = ImmutableArray.Create( 22Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 24Return ImmutableArray(Of RecommendedKeyword).Empty 29ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\Declarations\DimKeywordRecommender.vb (3)
18Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = 21Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, CancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 38Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Declarations\EndBlockKeywordRecommender.vb (3)
18Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 20Return ImmutableArray(Of RecommendedKeyword).Empty 63Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Declarations\EnumKeywordRecommender.vb (3)
18Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = 21Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 29Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Declarations\EventKeywordRecommender.vb (4)
19Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = 22Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 32Return ImmutableArray(Of RecommendedKeyword).Empty 49Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Declarations\ExternalSubFunctionKeywordRecommender.vb (4)
18Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = ImmutableArray.Create( 22Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 24Return ImmutableArray(Of RecommendedKeyword).Empty 30ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\Declarations\FunctionKeywordRecommender.vb (5)
18Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = 21Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, CancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 25Return ImmutableArray(Of RecommendedKeyword).Empty 34Return ImmutableArray(Of RecommendedKeyword).Empty 45Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Declarations\GenericConstraintsKeywordRecommender.vb (3)
16Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 18Return ImmutableArray(Of RecommendedKeyword).Empty 53Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Declarations\GetSetKeywordRecommender.vb (2)
19Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 23Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Declarations\ImplementsKeywordRecommender.vb (3)
18Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 23Return ImmutableArray(Of RecommendedKeyword).Empty 54Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Declarations\ImportsKeywordRecommender.vb (5)
18Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = 21Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 23Return ImmutableArray(Of RecommendedKeyword).Empty 34Return ImmutableArray(Of RecommendedKeyword).Empty 49Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Declarations\InheritsKeywordRecommender.vb (3)
18Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = 21Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 35Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Declarations\InKeywordRecommender.vb (3)
18Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 20Return ImmutableArray(Of RecommendedKeyword).Empty 50Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Declarations\InterfaceKeywordRecommender.vb (3)
18Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = 21Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 30Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Declarations\IteratorKeywordRecommender.vb (3)
18Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = 21Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 31Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Declarations\LibKeywordRecommender.vb (4)
18Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = 21Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 23Return ImmutableArray(Of RecommendedKeyword).Empty 28ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\Declarations\ModifierKeywordsRecommender.vb (2)
18Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 20Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Declarations\ModuleKeywordRecommender.vb (3)
18Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = 21Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 29Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Declarations\NamespaceKeywordRecommender.vb (3)
18Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = 21Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 29Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Declarations\OfKeywordRecommender.vb (4)
16Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 18Return ImmutableArray(Of RecommendedKeyword).Empty 23Return ImmutableArray(Of RecommendedKeyword).Empty 103Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Declarations\OperatorKeywordRecommender.vb (2)
18Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 30Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Declarations\OverloadableOperatorRecommender.vb (3)
17Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 19Return ImmutableArray(Of RecommendedKeyword).Empty 26Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Declarations\ParameterModifiersKeywordRecommender.vb (5)
18Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 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 (4)
18Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = 21Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 30Return ImmutableArray(Of RecommendedKeyword).Empty 41Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Declarations\StaticKeywordRecommender.vb (3)
17Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = 20Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 21Return If(context.IsMultiLineStatementContext, s_keywords, ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\Declarations\StructureKeywordRecommender.vb (3)
18Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = 21Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 29Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Declarations\SubKeywordRecommender.vb (3)
18Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 30Return ImmutableArray(Of RecommendedKeyword).Empty 40Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Declarations\ToKeywordRecommender.vb (4)
18Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = 21Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 23Return ImmutableArray(Of RecommendedKeyword).Empty 49Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\EventHandling\AddHandlerKeywordRecommender.vb (3)
18Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = 22Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 25ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\EventHandling\HandlesKeywordRecommender.vb (6)
18Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = 21Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 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 (2)
17Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 23Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\EventHandling\RemoveHandlerKeywordRecommender.vb (3)
18Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = ImmutableArray.Create( 24Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 27ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\Expressions\AddressOfKeywordRecommender.vb (4)
17Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = 20Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, CancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 22Return ImmutableArray(Of RecommendedKeyword).Empty 33Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Expressions\BinaryOperatorKeywordRecommender.vb (3)
18Friend Shared ReadOnly KeywordList As ImmutableArray(Of RecommendedKeyword) = ImmutableArray.Create( 29Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 34Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Expressions\CastOperatorsKeywordRecommender.vb (2)
34Protected Overloads Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 69Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Expressions\FromKeywordRecommender.vb (4)
18Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = 21Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 23Return ImmutableArray(Of RecommendedKeyword).Empty 39Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Expressions\GetTypeKeywordRecommender.vb (2)
18Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 24Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Expressions\GetXmlNamespaceKeywordRecommender.vb (2)
18Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 29Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Expressions\GlobalKeywordRecommender.vb (3)
17Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = 20Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 22Return If(context.IsNamespaceContext AndAlso Not context.IsInImportsDirective OrElse context.IsEnumBaseListContext, s_keywords, ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\Expressions\IfKeywordRecommender.vb (3)
18Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = 25Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 26Return If(context.IsAnyExpressionContext, s_keywords, ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\Expressions\KeyKeywordRecommender.vb (4)
18Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = 21Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 23Return ImmutableArray(Of RecommendedKeyword).Empty 45Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Expressions\LambdaKeywordRecommender.vb (2)
17Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 37Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Expressions\MeKeywordRecommender.vb (2)
19Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 55Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Expressions\MyBaseKeywordRecommender.vb (3)
17Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = 20Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 32Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Expressions\MyClassKeywordRecommender.vb (4)
18Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = 21Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 30Return ImmutableArray(Of RecommendedKeyword).Empty 40Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Expressions\NameOfKeywordRecommender.vb (2)
15Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 26Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Expressions\NewKeywordRecommender.vb (4)
18Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = 21Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 27Return ImmutableArray(Of RecommendedKeyword).Empty 43Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Expressions\NothingKeywordRecommender.vb (3)
17Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = 20Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 21Return If(context.IsAnyExpressionContext, s_keywords, ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\Expressions\NotKeywordRecommender.vb (3)
17Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = 20Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 21Return If(context.IsAnyExpressionContext, s_keywords, ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\Expressions\TrueFalseKeywordRecommender.vb (2)
18Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 28Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Expressions\TypeOfKeywordRecommender.vb (3)
17Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = 20Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 21Return If(context.IsAnyExpressionContext, s_keywords, ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\Expressions\WithKeywordRecommender.vb (4)
18Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = 21Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 23Return ImmutableArray(Of RecommendedKeyword).Empty 35Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\OnErrorStatements\ErrorKeywordRecommender.vb (2)
17Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 31Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\OnErrorStatements\GoToDestinationsRecommender.vb (4)
18Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = 21Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 23Return ImmutableArray(Of RecommendedKeyword).Empty 30ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\OnErrorStatements\GoToKeywordRecommender.vb (4)
17Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = 20Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 22Return ImmutableArray(Of RecommendedKeyword).Empty 29ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\OnErrorStatements\NextKeywordRecommender.vb (4)
17Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = 20Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 22Return ImmutableArray(Of RecommendedKeyword).Empty 28ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\OnErrorStatements\OnErrorKeywordRecommender.vb (3)
17Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = ImmutableArray.Create( 21Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 22Return If(context.IsMultiLineStatementContext AndAlso Not context.IsInLambda, s_keywords, ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\OnErrorStatements\ResumeKeywordRecommender.vb (3)
17Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 20Return ImmutableArray(Of RecommendedKeyword).Empty 38Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\OptionStatements\CompareBinaryTextRecommender.vb (4)
17Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = ImmutableArray.Create( 21Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, CancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 23Return ImmutableArray(Of RecommendedKeyword).Empty 26Return If(context.TargetToken.IsKind(SyntaxKind.CompareKeyword), s_keywords, ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\OptionStatements\ExplicitOptionsRecommender.vb (4)
17Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = ImmutableArray.Create( 21Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, CancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 23Return ImmutableArray(Of RecommendedKeyword).Empty 26Return If(context.TargetToken.IsKind(SyntaxKind.ExplicitKeyword), s_keywords, ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\OptionStatements\InferOptionsRecommender.vb (4)
17Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = ImmutableArray.Create( 21Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, CancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 23Return ImmutableArray(Of RecommendedKeyword).Empty 26Return If(context.TargetToken.IsKind(SyntaxKind.InferKeyword), s_keywords, ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\OptionStatements\OptionKeywordRecommender.vb (4)
17Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = 20Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, CancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 22Return ImmutableArray(Of RecommendedKeyword).Empty 37Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\OptionStatements\OptionNamesRecommender.vb (4)
17Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = ImmutableArray.Create( 23Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 25Return ImmutableArray(Of RecommendedKeyword).Empty 28Return If(context.TargetToken.IsKind(SyntaxKind.OptionKeyword), s_keywords, ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\OptionStatements\StrictOptionsRecommender.vb (4)
17Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = ImmutableArray.Create( 21Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, CancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 23Return ImmutableArray(Of RecommendedKeyword).Empty 26Return If(context.TargetToken.IsKind(SyntaxKind.StrictKeyword), s_keywords, ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\PreprocessorDirectives\ConstDirectiveKeywordRecommender.vb (3)
17Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = 20Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 23ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\PreprocessorDirectives\ElseDirectiveKeywordRecommender.vb (3)
17Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = 20Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 29Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\PreprocessorDirectives\ElseIfDirectiveKeywordRecommender.vb (3)
17Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = 20Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 29Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\PreprocessorDirectives\EndIfDirectiveKeywordRecommender.vb (2)
17Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 31Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\PreprocessorDirectives\EndRegionDirectiveKeywordRecommender.vb (2)
17Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 32Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\PreprocessorDirectives\IfDirectiveKeywordRecommender.vb (3)
17Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = 20Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 23ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\PreprocessorDirectives\ReferenceDirectiveKeywordRecommender.vb (3)
17Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = 20Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 23ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\PreprocessorDirectives\RegionDirectiveKeywordRecommender.vb (3)
17Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = 20Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 23ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\PreprocessorDirectives\WarningDirectiveKeywordRecommender.vb (2)
17Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 30Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Queries\AggregateKeywordRecommender.vb (3)
17Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = 20Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 23ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\Queries\AscendingDescendingKeywordRecommender.vb (3)
18Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = ImmutableArray.Create( 22Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 25ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\Queries\DistinctKeywordRecommender.vb (3)
17Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = 20Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, CancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 21Return If(context.IsQueryOperatorContext, s_keywords, ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\Queries\EqualsKeywordRecommender.vb (3)
18Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = 21Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 24ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\Queries\FromKeywordRecommender.vb (3)
17Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = 20Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 23ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\Queries\GroupByKeywordRecommender.vb (4)
18Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = 21Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 23Return ImmutableArray(Of RecommendedKeyword).Empty 32Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Queries\GroupJoinKeywordRecommender.vb (3)
17Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = 20Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 21Return If(context.IsAdditionalJoinOperatorContext(cancellationToken), s_keywords, ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\Queries\GroupKeywordRecommender.vb (2)
18Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 52Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Queries\IntoKeywordRecommender.vb (3)
18Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = 21Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 44Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Queries\JoinKeywordRecommender.vb (3)
18Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = 21Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 33ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\Queries\LetKeywordRecommender.vb (3)
17Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = 20Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 21Return If(context.IsQueryOperatorContext, s_keywords, ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\Queries\OnKeywordRecommender.vb (3)
18Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = 21Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 35Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Queries\OrderByKeywordRecommender.vb (3)
17Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = 20Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 21Return If(context.IsQueryOperatorContext, s_keywords, ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\Queries\SelectKeywordRecommender.vb (3)
17Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = 20Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 21Return If(context.IsQueryOperatorContext, s_keywords, ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\Queries\SkipKeywordRecommender.vb (3)
17Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = 20Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 21Return If(context.IsQueryOperatorContext, s_keywords, ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\Queries\TakeKeywordRecommender.vb (3)
17Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = 20Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 21Return If(context.IsQueryOperatorContext, s_keywords, ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\Queries\WhereKeywordRecommender.vb (3)
17Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = 20Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 21Return If(context.IsQueryOperatorContext, s_keywords, ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\Queries\WhileKeywordRecommender.vb (3)
18Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = 21Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 30Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Statements\CallKeywordRecommender.vb (3)
17Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = 20Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 21Return If(context.IsStatementContext, s_keywords, ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\Statements\CaseKeywordRecommender.vb (2)
18Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 33Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Statements\CatchKeywordRecommender.vb (4)
17Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = 20Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 22Return ImmutableArray(Of RecommendedKeyword).Empty 29ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\Statements\ContinueKeywordRecommender.vb (3)
17Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = 20Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 36Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Statements\DoKeywordRecommender.vb (3)
17Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 27Return ImmutableArray(Of RecommendedKeyword).Empty 44Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Statements\EachKeywordRecommender.vb (4)
18Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = 21Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 23Return ImmutableArray(Of RecommendedKeyword).Empty 35Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Statements\ElseIfKeywordRecommender.vb (3)
17Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = 20Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 28Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Statements\ElseKeywordRecommender.vb (2)
18Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 48Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Statements\EndKeywordRecommender.vb (3)
17Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = 20Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 21Return If(context.IsStatementContext, s_keywords, ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\Statements\ExitKeywordRecommender.vb (5)
17Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = 20Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 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 (5)
19Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = 22Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 24Return ImmutableArray(Of RecommendedKeyword).Empty 31Return ImmutableArray(Of RecommendedKeyword).Empty 48Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Statements\ForKeywordRecommender.vb (3)
17Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 26Return ImmutableArray(Of RecommendedKeyword).Empty 41Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Statements\GoToKeywordRecommender.vb (3)
17Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = 20Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 23ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\Statements\IfKeywordRecommender.vb (3)
18Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 26Return ImmutableArray(Of RecommendedKeyword).Empty 35Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Statements\IsKeywordRecommender.vb (4)
18Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = 21Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 23Return ImmutableArray(Of RecommendedKeyword).Empty 44Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Statements\LoopKeywordRecommender.vb (3)
18Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 25Return ImmutableArray(Of RecommendedKeyword).Empty 38Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Statements\MidKeywordRecommender.vb (3)
18Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = ImmutableArray.Create( 25Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 26Return If(context.IsStatementContext, s_keywords, ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\Statements\NextKeywordRecommender.vb (3)
17Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = 20Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, CancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 23ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\Statements\ReturnKeywordRecommender.vb (3)
17Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = 20Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 23ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\Statements\SelectKeywordRecommender.vb (2)
17Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 30Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Statements\StepKeywordRecommender.vb (3)
18Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = 21Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 31Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Statements\StopKeywordRecommender.vb (3)
17Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = 20Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 21Return If(context.IsStatementContext, s_keywords, ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\Statements\SyncLockKeywordRecommender.vb (3)
17Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = 20Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 21Return If(context.IsMultiLineStatementContext, s_keywords, ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\Statements\ThenKeywordRecommender.vb (3)
18Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = 21Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 41Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Statements\ThrowKeywordRecommender.vb (3)
17Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = 20Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 21Return If(context.IsStatementContext, s_keywords, ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\Statements\ToKeywordRecommender.vb (4)
18Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = 21Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 23Return ImmutableArray(Of RecommendedKeyword).Empty 38Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Statements\TryKeywordRecommender.vb (3)
17Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 24Return ImmutableArray(Of RecommendedKeyword).Empty 35Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Statements\UntilAndWhileKeywordRecommender.vb (3)
18Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 20Return ImmutableArray(Of RecommendedKeyword).Empty 37Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Statements\UsingKeywordRecommender.vb (3)
17Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = 20Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 21Return If(context.IsMultiLineStatementContext, s_keywords, ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\Statements\WhenKeywordRecommender.vb (4)
18Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = 21Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 23Return ImmutableArray(Of RecommendedKeyword).Empty 38Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Statements\WhileLoopKeywordRecommender.vb (3)
18Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 25Return ImmutableArray(Of RecommendedKeyword).Empty 39Return ImmutableArray(Of RecommendedKeyword).Empty
Completion\KeywordRecommenders\Statements\WithKeywordRecommender.vb (3)
17Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = 20Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 21Return If(context.IsMultiLineStatementContext, s_keywords, ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\Statements\YieldKeywordRecommender.vb (3)
17Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = 20Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 21Return If(context.IsMultiLineStatementContext, s_keywords, ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\Types\BuiltInTypesKeywordRecommender.vb (8)
19Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) 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 103Private Shared Function GetIntrinsicTypeKeywords(context As VisualBasicSyntaxContext) As ImmutableArray(Of RecommendedKeyword)
ConvertIfToSwitch\VisualBasicConvertIfToSwitchCodeRefactoringProvider.Rewriting.vb (1)
22Public Overrides Function CreateSwitchExpressionStatement(target As SyntaxNode, sections As ImmutableArray(Of AnalyzedSwitchSection), feature As Feature) As SyntaxNode
Diagnostics\Analyzers\TypeSyntaxSimplifierWalker.vb (4)
46Private _diagnostics As ImmutableArray(Of Diagnostic).Builder 56Public ReadOnly Property Diagnostics As ImmutableArray(Of Diagnostic) 58Return If(_diagnostics?.ToImmutable(), ImmutableArray(Of Diagnostic).Empty) 62Public ReadOnly Property DiagnosticsBuilder As ImmutableArray(Of Diagnostic).Builder
Diagnostics\Analyzers\VisualBasicPreferFrameworkTypeDiagnosticAnalyzer.vb (1)
20Protected Overrides ReadOnly Property SyntaxKindsOfInterest As ImmutableArray(Of SyntaxKind) =
Diagnostics\Analyzers\VisualBasicSimplifyTypeNamesDiagnosticAnalyzer.vb (5)
23Private Shared ReadOnly s_kindsOfInterest As ImmutableArray(Of SyntaxKind) = ImmutableArray.Create( 38Protected Overrides Function AnalyzeCodeBlock(context As CodeBlockAnalysisContext, root As SyntaxNode) As ImmutableArray(Of Diagnostic) 46Return ImmutableArray(Of Diagnostic).Empty 54Protected Overrides Function AnalyzeSemanticModel(context As SemanticModelAnalysisContext, root As SyntaxNode, codeBlockIntervalTree As TextSpanMutableIntervalTree) As ImmutableArray(Of Diagnostic) 57Return ImmutableArray(Of Diagnostic).Empty
Diagnostics\Analyzers\VisualBasicUnboundIdentifiersDiagnosticAnalyzer.vb (2)
17Private Shared ReadOnly s_kindsOfInterest As ImmutableArray(Of SyntaxKind) = ImmutableArray.Create(SyntaxKind.IncompleteMember) 19Protected Overrides ReadOnly Property SyntaxKindsOfInterest As ImmutableArray(Of SyntaxKind) = s_kindsOfInterest
EditAndContinue\DeclarationBody\FieldOrPropertyDeclarationBody.vb (1)
130Public Overrides Function GetCapturedVariables(model As SemanticModel) As ImmutableArray(Of ISymbol)
EditAndContinue\DeclarationBody\FieldWithMultipleArrayBoundsDeclarationBody.vb (1)
35Public Overrides Function GetCapturedVariables(model As SemanticModel) As ImmutableArray(Of ISymbol)
EditAndContinue\DeclarationBody\FieldWithSingleArrayBoundsDeclarationBody.vb (1)
40Public Overrides Function GetCapturedVariables(model As SemanticModel) As ImmutableArray(Of ISymbol)
EditAndContinue\DeclarationBody\MethodBody.vb (2)
21Public Overrides Function GetCapturedVariables(model As SemanticModel) As ImmutableArray(Of ISymbol) 24Return ImmutableArray(Of ISymbol).Empty
EditAndContinue\DeclarationBody\VisualBasicLambdaBody.vb (1)
44Public Overrides Function GetCapturedVariables(model As SemanticModel) As ImmutableArray(Of ISymbol)
EditAndContinue\SyntaxComparer.vb (6)
1399Private Shared Function CreateArrayForDistanceCalculation(Of T)(enumerable As IEnumerable(Of T)) As ImmutableArray(Of T) 1400Return If(enumerable Is Nothing, ImmutableArray(Of T).Empty, enumerable.Take(LongestCommonSubsequence.MaxSequenceLengthForDistanceCalculation).ToImmutableArray()) 1433Public Shared Function GetSequenceEdits(oldNodes As ImmutableArray(Of SyntaxNode), newNodes As ImmutableArray(Of SyntaxNode)) As IEnumerable(Of SequenceEdit) 1447Public Shared Function GetSequenceEdits(oldTokens As ImmutableArray(Of SyntaxToken), newTokens As ImmutableArray(Of SyntaxToken)) As IEnumerable(Of SequenceEdit)
EditAndContinue\SyntaxUtilities.vb (3)
117Friend Shared Function GetArrayBoundsCapturedVariables(model As SemanticModel, arrayBounds As ArgumentListSyntax) As ImmutableArray(Of ISymbol) 224Public Shared Function GetAwaitExpressions(body As SyntaxNode) As ImmutableArray(Of SyntaxNode) 230Public Shared Function GetYieldStatements(body As SyntaxNode) As ImmutableArray(Of SyntaxNode)
EditAndContinue\VisualBasicEditAndContinueAnalyzer.vb (4)
305Protected Overrides Function GetSyntaxSequenceEdits(oldNodes As ImmutableArray(Of SyntaxNode), newNodes As ImmutableArray(Of SyntaxNode)) As IEnumerable(Of SequenceEdit) 532Protected Overrides Function GetSymbolDeclarationSyntax(symbol As ISymbol, selector As Func(Of ImmutableArray(Of SyntaxReference), SyntaxReference), cancellationToken As CancellationToken) As SyntaxNode 534Dim syntaxRefs As ImmutableArray(Of SyntaxReference)
EncapsulateField\VisualBasicEncapsulateFieldService.vb (1)
70Protected Overrides Async Function GetFieldsAsync(document As Document, span As TextSpan, cancellationToken As CancellationToken) As Task(Of ImmutableArray(Of IFieldSymbol))
ExtractMethod\VisualBasicMethodExtractor.PostProcessor.vb (8)
23Public Function MergeDeclarationStatements(statements As ImmutableArray(Of StatementSyntax)) As ImmutableArray(Of StatementSyntax) 31Private Function MergeDeclarationStatementsWorker(statements As ImmutableArray(Of StatementSyntax)) As ImmutableArray(Of StatementSyntax) 175Public Shared Function RemoveDeclarationAssignmentPattern(statements As ImmutableArray(Of StatementSyntax)) As ImmutableArray(Of StatementSyntax) 214Public Shared Function RemoveInitializedDeclarationAndReturnPattern(statements As ImmutableArray(Of StatementSyntax)) As ImmutableArray(Of StatementSyntax)
ExtractMethod\VisualBasicMethodExtractor.VisualBasicCodeGenerator.ExpressionCodeGenerator.vb (2)
72Protected Overrides Function GetInitialStatementsForMethodDefinitions() As ImmutableArray(Of StatementSyntax) 87Return ImmutableArray(Of StatementSyntax).Empty
ExtractMethod\VisualBasicMethodExtractor.VisualBasicCodeGenerator.MultipleStatementsCodeGenerator.vb (1)
32Protected Overrides Function GetInitialStatementsForMethodDefinitions() As ImmutableArray(Of StatementSyntax)
ExtractMethod\VisualBasicMethodExtractor.VisualBasicCodeGenerator.SingleStatementCodeGenerator.vb (1)
33Protected Overrides Function GetInitialStatementsForMethodDefinitions() As ImmutableArray(Of StatementSyntax)
ExtractMethod\VisualBasicMethodExtractor.VisualBasicCodeGenerator.vb (11)
75attributes:=ImmutableArray(Of AttributeData).Empty, 175insertionPointNode As SyntaxNode, cancellationToken As CancellationToken) As OperationStatus(Of ImmutableArray(Of SyntaxNode)) 181Private Function CreateMethodBody(insertionPointNode As SyntaxNode, cancellationToken As CancellationToken) As ImmutableArray(Of StatementSyntax) 186Dim emptyStatements = ImmutableArray(Of StatementSyntax).Empty 199Private Shared Function CheckActiveStatements(statements As ImmutableArray(Of StatementSyntax)) As OperationStatus 233Private Function MoveDeclarationOutFromMethodDefinition(statements As ImmutableArray(Of StatementSyntax), cancellationToken As CancellationToken) As ImmutableArray(Of StatementSyntax) 294statements As ImmutableArray(Of StatementSyntax), 295cancellationToken As CancellationToken) As ImmutableArray(Of StatementSyntax) 408variables As ImmutableArray(Of VariableInfo), 416variables As ImmutableArray(Of VariableInfo),
FullyQualify\VisualBasicFullyQualifyCodeFixProvider.vb (1)
48Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String) =
GenerateEqualsAndGetHashCodeFromMembers\VisualBasicGenericEqualsAndGetHashCodeService.vb (2)
20Protected Overrides Function TryWrapWithUnchecked(statements As ImmutableArray(Of SyntaxNode), ByRef wrappedStatements As ImmutableArray(Of SyntaxNode)) As Boolean
GenerateType\VisualBasicGenerateTypeService.vb (3)
371cancellationToken As CancellationToken) As ImmutableArray(Of ITypeParameterSymbol) 380Return ImmutableArray(Of ITypeParameterSymbol).Empty 686attributes:=ImmutableArray(Of AttributeData).Empty,
InheritanceMargin\VisualBasicInheritanceMarginService.vb (1)
26Protected Overrides Function GetMembers(nodesToSearch As IEnumerable(Of SyntaxNode)) As ImmutableArray(Of SyntaxNode)
LanguageServices\VisualBasicStructuralTypeDisplayService.vb (1)
29position As Integer) As ImmutableArray(Of SymbolDisplayPart)
LanguageServices\VisualBasicSymbolDisplayService.SymbolDescriptionBuilder.vb (7)
77Protected Overrides Function GetInitializerSourcePartsAsync(symbol As ISymbol) As Task(Of ImmutableArray(Of SymbolDisplayPart)) 89Protected Overrides Function ToMinimalDisplayParts(symbol As ISymbol, semanticModel As SemanticModel, position As Integer, format As SymbolDisplayFormat) As ImmutableArray(Of SymbolDisplayPart) 122Private Overloads Async Function GetInitializerSourcePartsAsync(symbol As IParameterSymbol) As Task(Of ImmutableArray(Of SymbolDisplayPart)) 128Return ImmutableArray(Of SymbolDisplayPart).Empty 131Private Overloads Async Function GetInitializerSourcePartsAsync(symbol As ILocalSymbol) As Task(Of ImmutableArray(Of SymbolDisplayPart)) 141Private Overloads Async Function GetInitializerSourcePartsAsync(symbol As IFieldSymbol) As Task(Of ImmutableArray(Of SymbolDisplayPart)) 156Private Overloads Async Function GetInitializerSourcePartsAsync(equalsValue As EqualsValueSyntax) As Task(Of ImmutableArray(Of SymbolDisplayPart))
LineSeparators\VisualBasicLineSeparatorService.vb (2)
57cancellationToken As CancellationToken) As Task(Of ImmutableArray(Of TextSpan)) Implements ILineSeparatorService.GetLineSeparatorsAsync 67Return ImmutableArray(Of TextSpan).Empty
MetadataAsSource\VisualBasicMetadataAsSourceService.vb (2)
67Protected Overrides Function GetFormattingRules(document As Document) As ImmutableArray(Of AbstractFormattingRule) 75Protected Overrides Function GetReducers() As ImmutableArray(Of AbstractReducer)
NavigationBar\VisualBasicNavigationBarItemService.vb (3)
42cancellationToken As CancellationToken) As Task(Of ImmutableArray(Of RoslynNavigationBarItem)) 108cancellationToken As CancellationToken) As ImmutableArray(Of RoslynNavigationBarItem) 177ImmutableArray(Of RoslynNavigationBarItem).CastUp(members.WhereNotNull().ToImmutableArray()),
Options\VisualBasicEditorConfigOptionsEnumerator.vb (1)
21Public Iterator Function GetOptions(includeUnsupported As Boolean) As IEnumerable(Of (String, ImmutableArray(Of IOption2))) Implements IEditorConfigOptionsEnumerator.GetOptions
RemoveSharedFromModuleMembers\VisualBasicRemoveSharedFromModuleMembersCodeFixProvider.vb (2)
36Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String) = ImmutableArray.Create( 62Protected Overrides Function FixAllAsync(document As Document, diagnostics As ImmutableArray(Of Diagnostic), editor As SyntaxEditor, cancellationToken As CancellationToken) As Task
RemoveUnusedVariable\VisualBasicRemoveUnusedVariableCodeFixProvider.vb (1)
28Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String) =
ReplacePropertyWithMethods\VisualBasicReplacePropertyWithMethods.vb (2)
33cancellationToken As CancellationToken) As Task(Of ImmutableArray(Of SyntaxNode)) 54cancellationToken As CancellationToken) As ImmutableArray(Of SyntaxNode)
SignatureHelp\InvocationExpressionSignatureHelpProvider.MemberGroup.vb (2)
18cancellationToken As CancellationToken) As ImmutableArray(Of ISymbol) 38Private Shared Function GetMemberGroupItems(accessibleMembers As ImmutableArray(Of ISymbol),
SignatureHelp\InvocationExpressionSignatureHelpProvider.vb (1)
119Dim accessibleMembers = ImmutableArray(Of ISymbol).Empty
SpellCheck\VisualBasicSpellCheckCodeFixProvider.vb (1)
46Public NotOverridable Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String)
SplitOrMergeIfStatements\VisualBasicIfLikeStatementGenerator.vb (1)
97Public Function GetElseIfAndElseClauses(ifOrElseIf As SyntaxNode) As ImmutableArray(Of SyntaxNode) Implements IIfLikeStatementGenerator.GetElseIfAndElseClauses
src\Analyzers\VisualBasic\Analyzers\AddRequiredParentheses\VisualBasicAddRequiredParenthesesDiagnosticAnalyzer.vb (2)
21Private Shared ReadOnly s_kinds As ImmutableArray(Of SyntaxKind) = ImmutableArray.Create( 51Protected Overrides Function GetSyntaxNodeKinds() As ImmutableArray(Of SyntaxKind)
src\Analyzers\VisualBasic\Analyzers\NamingStyle\VisualBasicNamingStyleDiagnosticAnalyzer.vb (1)
14Protected Overrides ReadOnly Property SupportedSyntaxKinds As ImmutableArray(Of SyntaxKind) =
src\Analyzers\VisualBasic\Analyzers\RemoveUnnecessaryCast\VisualBasicRemoveUnnecessaryCastDiagnosticAnalyzer.vb (1)
18Protected Overrides ReadOnly Property SyntaxKindsOfInterest As ImmutableArray(Of SyntaxKind) =
src\Analyzers\VisualBasic\Analyzers\RemoveUnnecessaryImports\VisualBasicRemoveUnnecessaryImportsDiagnosticAnalyzer.vb (2)
36Protected Overrides Function MergeImports(unnecessaryImports As ImmutableArray(Of ImportsClauseSyntax)) As ImmutableArray(Of SyntaxNode)
src\Analyzers\VisualBasic\Analyzers\UseCollectionInitializer\VisualBasicUseCollectionInitializerDiagnosticAnalyzer.vb (1)
47matches As ImmutableArray(Of CollectionMatch(Of SyntaxNode)),
src\Analyzers\VisualBasic\Analyzers\UseCompoundAssignment\Utilities.vb (1)
9Public ReadOnly Kinds As ImmutableArray(Of (SyntaxKind, SyntaxKind, SyntaxKind)) =
src\Analyzers\VisualBasic\Analyzers\UseInferredMemberName\VisualBasicUseInferredMemberNameDiagnosticAnalyzer.vb (2)
61additionalLocations:=ImmutableArray(Of Location).Empty, 85additionalLocations:=ImmutableArray(Of Location).Empty,
src\Analyzers\VisualBasic\CodeFixes\AddAnonymousTypeMemberName\VisualBasicAddAnonymousTypeMemberNameCodeFixProvider.vb (1)
27Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String) =
src\Analyzers\VisualBasic\CodeFixes\AddExplicitCast\VisualBasicAddExplicitCastCodeFixProvider.vb (3)
34Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String) = ImmutableArray.Create(BC30512, BC42016, BC30518, BC30519) 111parameters As ImmutableArray(Of IParameterSymbol), 171cancellationToken As CancellationToken) As ImmutableArray(Of (ExpressionSyntax, ITypeSymbol))
src\Analyzers\VisualBasic\CodeFixes\AddObsoleteAttribute\VisualBasicAddObsoleteAttributeCodeFixProvider.vb (1)
17Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String) =
src\Analyzers\VisualBasic\CodeFixes\AddParameter\VisualBasicAddParameterCodeFixProvider.vb (3)
46Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String) = ImmutableArray.Create( 49Protected Overrides ReadOnly Property TooManyArgumentsDiagnosticIds As ImmutableArray(Of String) = 52Protected Overrides ReadOnly Property CannotConvertDiagnosticIds As ImmutableArray(Of String) =
src\Analyzers\VisualBasic\CodeFixes\AliasAmbiguousType\VisualBasicAliasAmbiguousTypeCodeFixProvider.vb (1)
25Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String) = ImmutableArray.Create(BC30561)
src\Analyzers\VisualBasic\CodeFixes\ConvertToAsync\VisualBasicConvertToAsyncFunctionCodeFixProvider.vb (2)
22Friend ReadOnly Ids As ImmutableArray(Of String) = ImmutableArray.Create(Of String)(BC37001) 29Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String)
src\Analyzers\VisualBasic\CodeFixes\DocumentationComments\VisualBasicRemoveDocCommentNodeCodeFixProvider.vb (2)
48Friend ReadOnly Id As ImmutableArray(Of String) = ImmutableArray.Create(BC42305, BC42306, BC42307, BC42313, BC42315, BC42317) 55Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String)
src\Analyzers\VisualBasic\CodeFixes\GenerateConstructor\GenerateConstructorCodeFixProvider.vb (2)
28Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String) 34Protected Overrides Function GetCodeActionsAsync(document As Document, node As SyntaxNode, cancellationToken As CancellationToken) As Task(Of ImmutableArray(Of CodeAction))
src\Analyzers\VisualBasic\CodeFixes\GenerateConstructor\GenerateConstructorDiagnosticIds.vb (3)
21Friend Shared ReadOnly AllDiagnosticIds As ImmutableArray(Of String) = ImmutableArray.Create(BC30057, BC30272, BC30274, BC30389, BC30455, BC32006, BC30512, BC30387, BC30516) 22Friend Shared ReadOnly TooManyArgumentsDiagnosticIds As ImmutableArray(Of String) = ImmutableArray.Create(BC30057) 23Friend Shared ReadOnly CannotConvertDiagnosticIds As ImmutableArray(Of String) = ImmutableArray.Create(BC30512, BC32006, BC30311, BC36625)
src\Analyzers\VisualBasic\CodeFixes\GenerateConstructor\VisualBasicGenerateConstructorService.vb (5)
28Protected Overrides Function TryInitializeImplicitObjectCreation(document As SemanticDocument, node As SyntaxNode, cancellationToken As CancellationToken, ByRef token As SyntaxToken, ByRef arguments As ImmutableArray(Of Argument(Of ExpressionSyntax)), ByRef typeToGenerateIn As INamedTypeSymbol) As Boolean 61ByRef arguments As ImmutableArray(Of Argument(Of ExpressionSyntax)), 96ByRef arguments As ImmutableArray(Of Argument(Of ExpressionSyntax)), 131ByRef arguments As ImmutableArray(Of Argument(Of ExpressionSyntax)), 160Private Shared Function GetArguments(arguments As SeparatedSyntaxList(Of ArgumentSyntax)) As ImmutableArray(Of Argument(Of ExpressionSyntax))
src\Analyzers\VisualBasic\CodeFixes\GenerateEnumMember\GenerateEnumMemberCodeFixProvider.vb (2)
29Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String) 35Protected Overrides Function GetCodeActionsAsync(document As Document, node As SyntaxNode, cancellationToken As CancellationToken) As Task(Of ImmutableArray(Of CodeAction))
src\Analyzers\VisualBasic\CodeFixes\GenerateParameterizedMember\GenerateConversionCodeFixProvider.vb (2)
29Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String) 35Protected Overrides Function GetCodeActionsAsync(document As Document, node As SyntaxNode, cancellationToken As CancellationToken) As Task(Of ImmutableArray(Of CodeAction))
src\Analyzers\VisualBasic\CodeFixes\GenerateParameterizedMember\GenerateParameterizedMemberCodeFixProvider.vb (2)
48Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String) 54Protected Overrides Function GetCodeActionsAsync(document As Document, node As SyntaxNode, cancellationToken As CancellationToken) As Task(Of ImmutableArray(Of CodeAction))
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 (10)
31Protected Overrides Function DetermineParameterNames(cancellationToken As CancellationToken) As ImmutableArray(Of ParameterName) 64Protected Overrides Function GetCapturedTypeParameters(cancellationToken As CancellationToken) As ImmutableArray(Of ITypeParameterSymbol) 76Protected Overrides Function GenerateTypeParameters(cancellationToken As CancellationToken) As ImmutableArray(Of ITypeParameterSymbol) 131Protected Overrides Function DetermineParameterModifiers(cancellationToken As CancellationToken) As ImmutableArray(Of RefKind) 134ImmutableArray(Of RefKind).Empty) 137Protected Overrides Function DetermineParameterTypes(cancellationToken As CancellationToken) As ImmutableArray(Of ITypeSymbol) 140ImmutableArray(Of ITypeSymbol).Empty) 143Protected Overrides Function DetermineParameterOptionality(cancellationToken As CancellationToken) As ImmutableArray(Of Boolean) 146ImmutableArray(Of Boolean).Empty) 167Protected Overrides Function DetermineTypeArguments(cancellationToken As CancellationToken) As ImmutableArray(Of ITypeSymbol)
src\Analyzers\VisualBasic\CodeFixes\GenerateVariable\VisualBasicGenerateVariableCodeFixProvider.vb (3)
32Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String) 38Protected Overrides Async Function GetCodeActionsAsync(document As Document, node As SyntaxNode, cancellationToken As CancellationToken) As Task(Of ImmutableArray(Of CodeAction)) 46Return ImmutableArray(Of CodeAction).Empty
src\Analyzers\VisualBasic\CodeFixes\ImplementInterface\VisualBasicImplementInterfaceCodeFixProvider.vb (1)
25Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String) = ImmutableArray.Create(BC30149)
src\Analyzers\VisualBasic\CodeFixes\ImplementInterface\VisualBasicImplementInterfaceService.vb (1)
45ByRef interfaceTypes As ImmutableArray(Of INamedTypeSymbol)) As Boolean
src\Analyzers\VisualBasic\CodeFixes\Iterator\VisualBasicChangeToYieldCodeFixProvider.vb (2)
23Friend Shared ReadOnly Ids As ImmutableArray(Of String) = ImmutableArray.Create(BC36942) 30Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String)
src\Analyzers\VisualBasic\CodeFixes\Iterator\VisualBasicConvertToIteratorCodeFixProvider.vb (2)
25Friend Shared ReadOnly Ids As ImmutableArray(Of String) = ImmutableArray.Create(BC30451) 32Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String)
src\Analyzers\VisualBasic\CodeFixes\MakeMethodAsynchronous\VisualBasicMakeMethodAsynchronousCodeFixProvider.vb (2)
24Private Shared ReadOnly s_diagnosticIds As ImmutableArray(Of String) = ImmutableArray.Create( 38Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String)
src\Analyzers\VisualBasic\CodeFixes\MakeMethodSynchronous\VisualBasicMakeMethodSynchronousCodeFixProvider.vb (2)
21Private Shared ReadOnly s_diagnosticIds As ImmutableArray(Of String) = ImmutableArray.Create(BC42356) 28Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String)
src\Analyzers\VisualBasic\CodeFixes\MakeTypeAbstract\VisualBasicMakeTypeAbstractCodeFixProvider.vb (1)
22Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String) =
src\Analyzers\VisualBasic\CodeFixes\MakeTypePartial\VisualBasicMakeTypePartialCodeFixProvider.vb (1)
23Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String) = ImmutableArray.Create(BC40046)
src\Analyzers\VisualBasic\CodeFixes\OrderModifiers\VisualBasicOrderModifiersCodeFixProvider.vb (2)
31Protected Overrides ReadOnly Property FixableCompilerErrorIds As ImmutableArray(Of String) = 32ImmutableArray(Of String).Empty
src\Analyzers\VisualBasic\CodeFixes\RemoveAsyncModifier\VisualBasicRemoveAsyncModifierCodeFixProvider.vb (2)
21Private Shared ReadOnly s_diagnosticIds As ImmutableArray(Of String) = ImmutableArray.Create(BC42356) 28Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String) = s_diagnosticIds
src\Analyzers\VisualBasic\CodeFixes\RemoveUnnecessaryByVal\VisualBasicRemoveUnnecessaryByValCodeFixProvider.vb (2)
26Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String) = 37Protected Overrides Async Function FixAllAsync(document As Document, diagnostics As ImmutableArray(Of Diagnostic), editor As SyntaxEditor, cancellationToken As CancellationToken) As Task
src\Analyzers\VisualBasic\CodeFixes\RemoveUnnecessaryCast\VisualBasicRemoveUnnecessaryCastCodeFixProvider.vb (4)
30Public NotOverridable Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String) = 54diagnostics As ImmutableArray(Of Diagnostic), 94document As Document, originalCastNodes As ImmutableArray(Of ExpressionSyntax), 116document As Document, originalNodes As ImmutableArray(Of ExpressionSyntax),
src\Analyzers\VisualBasic\CodeFixes\SimplifyObjectCreation\VisualBasicSimplifyObjectCreationCodeFixProvider.vb (2)
25Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String) = ImmutableArray.Create(IDEDiagnosticIds.SimplifyObjectCreationDiagnosticId) 35Protected Overrides Async Function FixAllAsync(document As Document, diagnostics As ImmutableArray(Of Diagnostic), editor As SyntaxEditor, cancellationToken As CancellationToken) As Task
src\Analyzers\VisualBasic\CodeFixes\UnsealClass\VisualBasicUnsealClassCodeFixProvider.vb (1)
23Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String) =
src\Analyzers\VisualBasic\CodeFixes\UseCollectionInitializer\VisualBasicUseCollectionInitializerCodeFixProvider.vb (4)
45preMatches As ImmutableArray(Of CollectionMatch(Of SyntaxNode)), 46postMatches As ImmutableArray(Of CollectionMatch(Of SyntaxNode)), 75matches As ImmutableArray(Of CollectionMatch(Of SyntaxNode))) As ObjectCreationExpressionSyntax 85matches As ImmutableArray(Of CollectionMatch(Of SyntaxNode))) As CollectionInitializerSyntax
src\Analyzers\VisualBasic\CodeFixes\UseIsNotExpression\VisualBasicUseIsNotExpressionCodeFixProvider.vb (2)
26Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String) = ImmutableArray.Create(IDEDiagnosticIds.UseIsNotExpressionDiagnosticId) 35diagnostics As ImmutableArray(Of Diagnostic),
src\Analyzers\VisualBasic\CodeFixes\UseObjectInitializer\VisualBasicUseObjectInitializerCodeFixProvider.vb (3)
53matches As ImmutableArray(Of Match(Of ExpressionSyntax, StatementSyntax, MemberAccessExpressionSyntax, AssignmentStatementSyntax))) As StatementSyntax 77matches As ImmutableArray(Of Match(Of ExpressionSyntax, StatementSyntax, MemberAccessExpressionSyntax, AssignmentStatementSyntax))) As ObjectCreationExpressionSyntax 88matches As ImmutableArray(Of Match(Of ExpressionSyntax, StatementSyntax, MemberAccessExpressionSyntax, AssignmentStatementSyntax))) As SeparatedSyntaxList(Of FieldInitializerSyntax)
src\Compilers\VisualBasic\BasicAnalyzerDriver\VisualBasicDeclarationComputer.vb (1)
70builder.Add(New DeclarationInfo(name, ImmutableArray(Of SyntaxNode).Empty, declaredSymbol))
Structure\VisualBasicBlockStructureProvider.vb (4)
13Public Shared Function CreateDefaultNodeStructureProviderMap() As ImmutableDictionary(Of Type, ImmutableArray(Of AbstractSyntaxStructureProvider)) 14Dim builder = ImmutableDictionary.CreateBuilder(Of Type, ImmutableArray(Of AbstractSyntaxStructureProvider))() 60Public Shared Function CreateDefaultTriviaStructureProviderMap() As ImmutableDictionary(Of Integer, ImmutableArray(Of AbstractSyntaxStructureProvider)) 61Dim builder = ImmutableDictionary.CreateBuilder(Of Integer, ImmutableArray(Of AbstractSyntaxStructureProvider))()
Structure\VisualBasicBlockStructureService.vb (1)
39Protected Overrides Function GetBuiltInProviders() As ImmutableArray(Of BlockStructureProvider)
Structure\VisualBasicStructureHelpers.vb (1)
40Friend Function CreateCommentsRegions(triviaList As SyntaxTriviaList) As ImmutableArray(Of BlockSpan)
TaskList\VisualBasicTaskListService.vb (1)
23commentDescriptors As ImmutableArray(Of TaskListItemDescriptor),
UseAutoProperty\VisualBasicUseAutoPropertyCodeFixProvider.vb (1)
38Protected Overrides Function GetFormattingRules(document As Document, finalProperty As SyntaxNode) As ImmutableArray(Of AbstractFormattingRule)
UseNamedArguments\VisualBasicUseNamedArgumentsCodeRefactoringProvider.vb (2)
45Protected Overrides Function IsLegalToAddNamedArguments(parameters As ImmutableArray(Of IParameterSymbol), argumentCount As Integer) As Boolean 53Protected Overrides Function IsImplicitIndexOrRangeIndexer(parameters As ImmutableArray(Of IParameterSymbol), argument As ArgumentSyntax, semanticModel As SemanticModel) As Boolean
Wrapping\VisualBasicWrappingCodeRefactoringProvider.vb (1)
22Private Shared ReadOnly s_wrappers As ImmutableArray(Of ISyntaxWrapper) =
Microsoft.CodeAnalysis.VisualBasic.Features.UnitTests (30)
ConvertAnonymousType\ConvertAnonymousTypeToTupleTests.vb (2)
21Protected Overrides Function MassageActions(actions As ImmutableArray(Of CodeAction)) As ImmutableArray(Of CodeAction)
ConvertNumericLiteral\ConvertNumericLiteralTests.vb (2)
21Protected Overrides Function MassageActions(actions As ImmutableArray(Of CodeAction)) As ImmutableArray(Of CodeAction)
Diagnostics\Configuration\ConfigureSeverity\DotNetDiagnosticSeverityBasedSeverityConfigurationTests.vb (1)
27Public Overrides ReadOnly Property SupportedDiagnostics As ImmutableArray(Of DiagnosticDescriptor)
Diagnostics\Suppression\RemoveUnnecessaryPragmaSuppressionsTests.vb (2)
52Friend Overrides ReadOnly Property OtherAnalyzers As ImmutableArray(Of DiagnosticAnalyzer) 83Private Function GetUnsupportedDiagnosticIds() As ImmutableArray(Of String)
Diagnostics\Suppression\SuppressionTests.vb (8)
23Protected Overrides Function MassageActions(ByVal actions As ImmutableArray(Of CodeAction)) As ImmutableArray(Of CodeAction) 699Public Overrides ReadOnly Property SupportedDiagnostics() As ImmutableArray(Of DiagnosticDescriptor) 774Public Overrides ReadOnly Property SupportedDiagnostics() As ImmutableArray(Of DiagnosticDescriptor) 818Public Overrides ReadOnly Property SupportedDiagnostics() As ImmutableArray(Of DiagnosticDescriptor) 884Public Overrides ReadOnly Property SupportedDiagnostics() As ImmutableArray(Of DiagnosticDescriptor) 1004Public Overrides ReadOnly Property SupportedDiagnostics() As ImmutableArray(Of DiagnosticDescriptor) 1720Public Overrides ReadOnly Property SupportedDiagnostics() As ImmutableArray(Of DiagnosticDescriptor)
EditAndContinue\BreakpointSpansTests.vb (1)
69Dim expectedSpans As ImmutableArray(Of TextSpan) = Nothing
EditAndContinue\Helpers\VisualBasicEditAndContinueTestVerifier.vb (1)
48Public Overrides Function GetDeclarators(method As ISymbol) As ImmutableArray(Of SyntaxNode)
EditAndContinue\VisualBasicEditAndContinueAnalyzerTests.vb (1)
126Return Await analyzer.AnalyzeDocumentAsync(oldProject, baseActiveStatements, newDocument, ImmutableArray(Of ActiveStatementLineSpan).Empty, capabilities, CancellationToken.None)
FullyQualify\FullyQualifyTests.vb (2)
22Protected Overrides Function MassageActions(actions As ImmutableArray(Of CodeAction)) As ImmutableArray(Of CodeAction)
GenerateComparisonOperators\GenerateComparisonOperatorsTests.vb (2)
21Protected Overrides Function MassageActions(actions As ImmutableArray(Of CodeAction)) As ImmutableArray(Of CodeAction)
GenerateVariable\GenerateVariableTests.vb (2)
20Protected Overrides Function MassageActions(actions As ImmutableArray(Of CodeAction)) As ImmutableArray(Of CodeAction)
IntroduceVariable\IntroduceVariableTests.vb (2)
22Protected Overrides Function MassageActions(actions As ImmutableArray(Of CodeAction)) As ImmutableArray(Of CodeAction)
SpellCheck\SpellCheckTests.vb (2)
22Protected Overrides Function MassageActions(actions As ImmutableArray(Of CodeAction)) As ImmutableArray(Of CodeAction)
Wrapping\AbstractParameterWrappingTests.vb (2)
21Protected Overrides Function MassageActions(actions As ImmutableArray(Of CodeAction)) As ImmutableArray(Of CodeAction)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (116)
Binding\LookupTests.vb (1)
228Private Function GenerateAmbiguity(syms As ImmutableArray(Of Symbol)) As AmbiguousSymbolDiagnostic
Compilation\CompilationAPITests.vb (6)
1706Dim type = comp.CreateAnonymousTypeSymbol(ImmutableArray(Of ITypeSymbol).Empty, ImmutableArray(Of String).Empty, memberNullableAnnotations:=ImmutableArray(Of CodeAnalysis.NullableAnnotation).Empty) 1729Private Shared Function GetAnonymousTypeNullableAnnotations(type As ITypeSymbol) As ImmutableArray(Of CodeAnalysis.NullableAnnotation) 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\GetImportScopesTests.vb (1)
19Private Shared Function GetImportScopes(text As String) As ImmutableArray(Of IImportScope)
Compilation\SemanticModelLookupSymbolsAPITests.vb (1)
349Private Shared Sub CheckSymbols(symbols As ImmutableArray(Of ISymbol), ParamArray descriptions As String())
Compilation\VisualBasicCompilationOptionsTests.vb (7)
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)) 359Dim diagnostics As ImmutableArray(Of Diagnostic) = Nothing 388Dim diagnostics As ImmutableArray(Of Diagnostic) = 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))
DeclaringSyntaxNodeTests.vb (8)
23Private Function CheckDeclaringSyntaxNodes(compilation As VisualBasicCompilation, symbol As Symbol, expectedNumber As Integer) As ImmutableArray(Of SyntaxReference) 24Dim declaringNodes As ImmutableArray(Of SyntaxReference) = symbol.DeclaringSyntaxReferences 51Private Function CheckDeclaringSyntaxNodesIncludingParameters(compilation As VisualBasicCompilation, symbol As Symbol, expectedNumber As Integer) As ImmutableArray(Of SyntaxReference) 52Dim nodes As ImmutableArray(Of SyntaxReference) = CheckDeclaringSyntaxNodes(compilation, symbol, expectedNumber) 72Private Function CheckDeclaringSyntaxNodesWithoutGetDeclaredSymbol(compilation As VisualBasicCompilation, symbol As Symbol, expectedNumber As Integer, expectedSyntaxKind As SyntaxKind) As ImmutableArray(Of SyntaxReference) 73Dim declaringNodes As ImmutableArray(Of SyntaxReference) = symbol.DeclaringSyntaxReferences 273Dim declaringNodes As ImmutableArray(Of SyntaxReference) = localA1Type.DeclaringSyntaxReferences 314Dim declaringNodes As ImmutableArray(Of SyntaxReference) = localA1Type.DeclaringSyntaxReferences
Diagnostics\DiagnosticAnalyzerTests.vb (13)
29Public Overrides ReadOnly Property SupportedDiagnostics() As ImmutableArray(Of DiagnosticDescriptor) 218Public Overrides ReadOnly Property SupportedDiagnostics As ImmutableArray(Of DiagnosticDescriptor) 234Public Overrides ReadOnly Property SupportedDiagnostics As ImmutableArray(Of DiagnosticDescriptor) 267Public Overrides ReadOnly Property SupportedDiagnostics As ImmutableArray(Of DiagnosticDescriptor) 305Public Overrides ReadOnly Property SupportedDiagnostics As ImmutableArray(Of DiagnosticDescriptor) 350Public Overrides ReadOnly Property SupportedDiagnostics As ImmutableArray(Of DiagnosticDescriptor) 401Public Overrides ReadOnly Property SupportedDiagnostics As ImmutableArray(Of DiagnosticDescriptor) 499Public Overrides ReadOnly Property SupportedDiagnostics As ImmutableArray(Of DiagnosticDescriptor) 564Public Overrides ReadOnly Property SupportedDiagnostics As ImmutableArray(Of DiagnosticDescriptor) 952Public NotOverridable Overrides ReadOnly Property SupportedDiagnostics As ImmutableArray(Of DiagnosticDescriptor) 1615Private Shared Sub verifyFlowGraphs(compilation As Compilation, flowGraphs As ImmutableArray(Of (Graph As ControlFlowGraph, AssociatedSymbol As ISymbol)), expectedFlowGraphs As String()) 1659Dim analyzers As ImmutableArray(Of DiagnosticAnalyzer) = ImmutableArray.Create(Of DiagnosticAnalyzer)(analyzer) 1673Private Shared Sub TestAdditionalFileAnalyzer_VerifyDiagnostics(diagnostics As ImmutableArray(Of Diagnostic),
Diagnostics\GetDiagnosticsTests.vb (2)
595Public Overrides ReadOnly Property SupportedDiagnostics As ImmutableArray(Of DiagnosticDescriptor) 713Public Overrides ReadOnly Property SupportedDiagnostics As ImmutableArray(Of DiagnosticDescriptor)
FlowAnalysis\FlowTestBase.vb (2)
23Friend Function FlowDiagnostics(compilation As VisualBasicCompilation) As ImmutableArray(Of Diagnostic) 85Dim ilImage As ImmutableArray(Of Byte) = Nothing
Semantics\FieldInitializerBindingTests.vb (4)
1530Private Shared Sub CheckBoundInitializers(expectedInitializers As IEnumerable(Of ExpectedInitializer), syntaxTree As SyntaxTree, boundInitializers As ImmutableArray(Of BoundInitializer), isStatic As Boolean) 1579Private Shared Function BindInitializersWithoutDiagnostics(typeSymbol As SourceNamedTypeSymbol, initializers As ImmutableArray(Of ImmutableArray(Of FieldOrPropertyInitializer))) As ImmutableArray(Of BoundInitializer)
Semantics\GetSemanticInfoTests.vb (1)
3105Assert.Equal(ImmutableArray(Of VisualBasicAttributeData).Empty, handledEvent3.EventSymbol.GetFieldAttributes)
Semantics\NameOfTests.vb (39)
55Dim group As ImmutableArray(Of ISymbol) 454Dim group As ImmutableArray(Of ISymbol) 526Dim group As ImmutableArray(Of ISymbol) 610Dim group As ImmutableArray(Of ISymbol) 662Dim group As ImmutableArray(Of ISymbol) 712Dim group As ImmutableArray(Of ISymbol) 765Dim group As ImmutableArray(Of ISymbol) 815Dim group As ImmutableArray(Of ISymbol) 865Dim group As ImmutableArray(Of ISymbol) 942Dim group As ImmutableArray(Of ISymbol) 1055Dim group As ImmutableArray(Of ISymbol) 1123Dim group As ImmutableArray(Of ISymbol) 1188Dim group As ImmutableArray(Of ISymbol) 1270Dim group As ImmutableArray(Of ISymbol) 1352Dim group As ImmutableArray(Of ISymbol) 1433Dim group As ImmutableArray(Of ISymbol) 1513Dim group As ImmutableArray(Of ISymbol) 1644Dim group As ImmutableArray(Of ISymbol) 1737Dim group As ImmutableArray(Of ISymbol) 1794Dim group As ImmutableArray(Of ISymbol) 1851Dim group As ImmutableArray(Of ISymbol) 1908Dim group As ImmutableArray(Of ISymbol) 2050Dim group As ImmutableArray(Of ISymbol) 2149Dim group As ImmutableArray(Of ISymbol) 2250Dim group As ImmutableArray(Of ISymbol) 2356Dim group As ImmutableArray(Of ISymbol) 2460Dim group As ImmutableArray(Of ISymbol) 2793Dim group As ImmutableArray(Of ISymbol) 2868Dim group As ImmutableArray(Of ISymbol) 2933Dim group As ImmutableArray(Of ISymbol) 2996Dim group As ImmutableArray(Of ISymbol) 3057Dim group As ImmutableArray(Of ISymbol) 3118Dim group As ImmutableArray(Of ISymbol) 3178Dim group As ImmutableArray(Of ISymbol) 3241Dim group As ImmutableArray(Of ISymbol) 3302Dim group As ImmutableArray(Of ISymbol) 3359Dim group As ImmutableArray(Of ISymbol) 3418Dim group As ImmutableArray(Of ISymbol) 3474Dim group As ImmutableArray(Of ISymbol)
Semantics\OptionalArgumentTests.vb (1)
2111searchPaths:=ImmutableArray(Of String).Empty,
Semantics\OverloadResolution.vb (6)
27instanceMethods As ImmutableArray(Of MethodSymbol), 28extensionMethods As ImmutableArray(Of MethodSymbol), 29typeArguments As ImmutableArray(Of TypeSymbol), 30arguments As ImmutableArray(Of BoundExpression), 31argumentNames As ImmutableArray(Of String), 36Dim methods As ImmutableArray(Of MethodSymbol)
Semantics\TypeOfTests.vb (2)
800Private Shared Sub AssertSequenceEqual(Of TElement)(a1 As ImmutableArray(Of TElement), a2 As ImmutableArray(Of TElement))
SourceGeneration\GeneratorDriverTests.vb (22)
31Dim outputDiagnostics As ImmutableArray(Of Diagnostic) = Nothing 55Dim outputDiagnostics As ImmutableArray(Of Diagnostic) = Nothing 69Dim outputDiagnostics As ImmutableArray(Of Diagnostic) = Nothing 97Dim outputDiagnostics As ImmutableArray(Of Diagnostic) = Nothing 120Dim outputDiagnostics As ImmutableArray(Of Diagnostic) = Nothing 136Dim outputDiagnostics As ImmutableArray(Of Diagnostic) = Nothing 152Dim outputDiagnostics As ImmutableArray(Of Diagnostic) = Nothing 317Dim diagnostics As ImmutableArray(Of Diagnostic) = Nothing 349Dim diagnostics As ImmutableArray(Of Diagnostic) = Nothing 378Dim diagnostics As ImmutableArray(Of Diagnostic) = Nothing 409Dim diagnostics As ImmutableArray(Of Diagnostic) = Nothing 439Dim diagnostics As ImmutableArray(Of Diagnostic) = Nothing 470Dim diagnostics As ImmutableArray(Of Diagnostic) = Nothing 499Dim diagnostics As ImmutableArray(Of Diagnostic) = Nothing 529Dim diagnostics As ImmutableArray(Of Diagnostic) = Nothing 559Dim diagnostics As ImmutableArray(Of Diagnostic) = Nothing 588Dim diagnostics As ImmutableArray(Of Diagnostic) = Nothing 603Dim outputDiagnostics As ImmutableArray(Of Diagnostic) = Nothing 621Dim outputDiagnostics As ImmutableArray(Of Diagnostic) = Nothing 655Dim diagnostics As ImmutableArray(Of Diagnostic) = Nothing 682Dim diagnostics As ImmutableArray(Of Diagnostic) = Nothing 717Dim diagnostics As ImmutableArray(Of Diagnostic) = Nothing
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (44)
DocumentationComments\DocCommentTests.vb (6)
11941Private Shared Function FilterOfSymbolKindOnly(symbols As ImmutableArray(Of ISymbol), ParamArray kinds() As SymbolKind) As ImmutableArray(Of ISymbol) 11948Private Shared Sub AssertLookupResult(actual As ImmutableArray(Of ISymbol), ParamArray expected() As String) 11952Private Function CheckSymbolInfoOnly(model As SemanticModel, syntax As ExpressionSyntax, ParamArray expected() As String) As ImmutableArray(Of ISymbol) 12007Private Function CheckTypeParameterCrefSymbolInfoAndTypeInfo(model As SemanticModel, syntax As ExpressionSyntax, Optional expected As String = Nothing) As ImmutableArray(Of Symbol) 12030Private Function CheckSymbolInfoAndTypeInfo(model As SemanticModel, syntax As ExpressionSyntax, ParamArray expected() As String) As ImmutableArray(Of Symbol)
SymbolDisplay\SymbolDisplayTests.vb (3)
6056Dim description As ImmutableArray(Of SymbolDisplayPart) 6104Private Shared Function Verify(parts As ImmutableArray(Of SymbolDisplayPart), expectedText As String, ParamArray kinds As SymbolDisplayPartKind()) As ImmutableArray(Of SymbolDisplayPart)
SymbolsTests\AttributeTests_UnmanagedCallersOnly.vb (1)
15Private ReadOnly _csharpReferences As ImmutableArray(Of MetadataReference) = TargetFrameworkUtil.GetReferences(TargetFramework.Net50)
SymbolsTests\CompilationCreationTests.vb (1)
24Friend Function Length(Of T)(this As ImmutableArray(Of T)) As Integer
SymbolsTests\InstantiatingGenerics.vb (5)
29Dim typeParameters As ImmutableArray(Of TypeParameterSymbol) 30Dim typeArguments As ImmutableArray(Of TypeSymbol) 31Dim constructedFromTypeParameters As ImmutableArray(Of TypeParameterSymbol) 32Dim constructedFromTypeArguments As ImmutableArray(Of TypeSymbol) 33Dim originalDefinitionTypeParameters As ImmutableArray(Of TypeParameterSymbol)
SymbolsTests\Metadata\PE\HasUnsupportedMetadata.vb (3)
546Private Shared Function ReplaceBytes(bytes As ImmutableArray(Of Byte), before As Byte(), after As Byte()) As ImmutableArray(Of Byte) 557Private Shared Function IndexOfBytes(bytes As ImmutableArray(Of Byte), pattern As Byte(), startIndex As Integer) As Integer
SymbolsTests\Metadata\PE\LoadingNamespacesAndTypes.vb (1)
64Dim children As ImmutableArray(Of Symbol) = n.GetMembers()
SymbolsTests\Metadata\PE\LoadingOperators.vb (5)
590Dim members As ImmutableArray(Of Symbol) = a1.GetMembers() 1186Dim members As ImmutableArray(Of Symbol) = a1.GetMembers() 1371Dim members As ImmutableArray(Of Symbol) = a1.GetMembers() 1948Dim members As ImmutableArray(Of Symbol) = a1.GetMembers() 2082Dim members As ImmutableArray(Of Symbol) = a1.GetMembers()
SymbolsTests\Metadata\PE\NoPia.vb (2)
55Dim param As ImmutableArray(Of ParameterSymbol) 323Dim param As ImmutableArray(Of ParameterSymbol)
SymbolsTests\Metadata\PE\NoPiaLocalHideAndTypeSubstitutionTests.vb (3)
36Dim param As ImmutableArray(Of ParameterSymbol) = methodSymbol.Parameters 74Dim param As ImmutableArray(Of ParameterSymbol) = refMethodSymbol.Parameters 134Dim param As ImmutableArray(Of ParameterSymbol) = refMethodSymbol.Parameters
SymbolsTests\Metadata\PE\TypeForwarders.vb (2)
1103Dim ilBytes As ImmutableArray(Of Byte) = Nothing 1284Dim ilBytes As ImmutableArray(Of Byte) = Nothing
SymbolsTests\Retargeting\NoPia.vb (1)
347Dim param As ImmutableArray(Of ParameterSymbol)
SymbolsTests\Source\BindingsTests.vb (1)
456Dim symbols As ImmutableArray(Of ISymbol)
SymbolsTests\Source\ComClassTests.vb (1)
82Private Function ReflectAttributes(attrData As ImmutableArray(Of VisualBasicAttributeData)) As XElement
SymbolsTests\Source\TypeTests.vb (3)
3154Dim ilBytes As ImmutableArray(Of Byte) = Nothing 3220Dim ilBytes As ImmutableArray(Of Byte) = Nothing 3326Dim ilBytes As ImmutableArray(Of Byte) = Nothing
SymbolsTests\SymbolErrorTests.vb (1)
20733Dim diagnostics As ImmutableArray(Of Diagnostic) = Nothing
UsedAssembliesTests.vb (5)
137Private Function CompileWithUsedAssemblyReferences(source As BasicTestSource, targetFramework As TargetFramework, ParamArray references As MetadataReference()) As ImmutableArray(Of MetadataReference) 141Private Function CompileWithUsedAssemblyReferences(source As BasicTestSource, targetFramework As TargetFramework, options As VisualBasicCompilationOptions, ParamArray references As MetadataReference()) As ImmutableArray(Of MetadataReference) 149Private Function CompileWithUsedAssemblyReferences(comp As Compilation, Optional expectedOutput As String = Nothing, Optional specificReferencesToAssert As MetadataReference() = Nothing) As ImmutableArray(Of MetadataReference) 173Private Function CompileWithUsedAssemblyReferences(source As BasicTestSource, ParamArray references As MetadataReference()) As ImmutableArray(Of MetadataReference) 177Private Function CompileWithUsedAssemblyReferences(source As BasicTestSource, options As VisualBasicCompilationOptions, ParamArray references As MetadataReference()) As ImmutableArray(Of MetadataReference)
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (4)
IncrementalParser\SyntaxDifferences.vb (1)
15Public Function GetRebuiltNodes(oldTree As SyntaxTree, newTree As SyntaxTree) As ImmutableArray(Of SyntaxNodeOrToken)
LocationTests.vb (1)
20MyBase.New(ImmutableArray(Of String).Empty, Nothing)
Parser\ParseDirectives.vb (1)
3167Public Overrides ReadOnly Property SupportedDiagnostics As ImmutableArray(Of DiagnosticDescriptor)
Parser\VisualBasicParseOptionsTests.vb (1)
49Assert.Equal(0, VisualBasicParseOptions.Default.WithPreprocessorSymbols(syms).WithPreprocessorSymbols(CType(Nothing, ImmutableArray(Of KeyValuePair(Of String, Object)))).PreprocessorSymbols.Length)
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (89)
BasicTestBase.vb (3)
442Friend Shared Function GetAttributeNames(attributes As ImmutableArray(Of SynthesizedAttributeData)) As IEnumerable(Of String) 446Friend Shared Function GetAttributeNames(attributes As ImmutableArray(Of VisualBasicAttributeData)) As IEnumerable(Of String) 912Public Shared Function GetAssertTheseDiagnosticsString(allDiagnostics As ImmutableArray(Of Diagnostic), suppressInfos As Boolean) As String
CompilationTestUtils.vb (16)
114Private Sub AssertSubset(used As ImmutableArray(Of MetadataReference), resolvedReferences As IEnumerable(Of MetadataReference)) 383<Out> Optional ByRef ilImage As ImmutableArray(Of Byte) = Nothing 403Public Function CreateReferenceFromIlCode(ilSource As String, Optional appendDefaultHeader As Boolean = True, <Out> Optional ByRef ilImage As ImmutableArray(Of Byte) = Nothing) As MetadataReference 526Public CandidateSymbols As ImmutableArray(Of ISymbol) = ImmutableArray.Create(Of ISymbol)() 527Public AllSymbols As ImmutableArray(Of ISymbol) = ImmutableArray.Create(Of ISymbol)() 531Public MemberGroup As ImmutableArray(Of ISymbol) = ImmutableArray.Create(Of ISymbol)() 650Dim spans As ImmutableArray(Of TextSpan) = Nothing 740Private Sub AssertNoDiagnostics(diags As ImmutableArray(Of Diagnostic), suppressInfos As Boolean) 762Public Sub AssertNoErrors(errors As ImmutableArray(Of Diagnostic)) 763Dim diags As ImmutableArray(Of Diagnostic) = errors.WhereAsArray(Function(e) e.Severity = DiagnosticSeverity.Error) 867Public Sub AssertTheseDiagnostics(errors As ImmutableArray(Of Diagnostic), errs As XElement, Optional suppressInfos As Boolean = True) 876Public Sub AssertTheseDiagnostics(errors As ImmutableArray(Of Diagnostic), errs As XCData, Optional suppressInfos As Boolean = True) 881Private Sub AssertTheseDiagnostics(errors As ImmutableArray(Of Diagnostic), expectedText As String, suppressInfos As Boolean) 982Friend Function DumpAllDiagnostics(allDiagnostics As ImmutableArray(Of Diagnostic), suppressInfos As Boolean) As String 1206Public Sub CheckSymbols(Of TSymbol As ISymbol)(symbols As ImmutableArray(Of TSymbol), ParamArray descriptions As String()) 1240Public Sub CheckSymbolsUnordered(Of TSymbol As ISymbol)(symbols As ImmutableArray(Of TSymbol), ParamArray descriptions As String())
DiagnosticExtensions.vb (1)
23Friend Function GetDiagnosticsForSyntaxTree(c As VisualBasicCompilation, stage As CompilationStage, tree As SyntaxTree, Optional filterSpan As TextSpan? = Nothing) As ImmutableArray(Of Diagnostic)
Extensions.vb (9)
26Private Function SplitMemberName(qualifiedName As String) As ImmutableArray(Of String) 47Public Function GetMembers(comp As Compilation, qualifiedName As String) As ImmutableArray(Of Symbol) 52Private Function GetMembers(container As NamespaceOrTypeSymbol, qualifiedName As String, <Out> ByRef lastContainer As NamespaceOrTypeSymbol) As ImmutableArray(Of Symbol) 278Private Function AreEqual(tc As ImmutableArray(Of TypedConstant), o As Object) As Boolean 306Public Function Interfaces(symbol As TypeSymbol) As ImmutableArray(Of NamedTypeSymbol) 311Public Function AllInterfaces(symbol As TypeSymbol) As ImmutableArray(Of NamedTypeSymbol) 316Public Function TypeArguments(symbol As NamedTypeSymbol) As ImmutableArray(Of TypeSymbol) 321Public Function ConstraintTypes(symbol As TypeParameterSymbol) As ImmutableArray(Of TypeSymbol) 326Friend Function ParameterSymbols(this As IMethodSymbolInternal) As ImmutableArray(Of ParameterSymbol)
LocalVariableDeclaratorsCollector.vb (1)
17Friend Shared Function GetDeclarators(method As SourceMethodSymbol) As ImmutableArray(Of SyntaxNode)
MetadataHelpers.vb (2)
36If TypeOf r Is ImmutableArray(Of Byte) Then 37refs.Add(MetadataReference.CreateFromImage(CType(r, ImmutableArray(Of Byte))))
MockSymbols.vb (47)
21Private ReadOnly _children As ImmutableArray(Of Symbol) 46Public Overrides Function GetModuleMembers() As ImmutableArray(Of NamedTypeSymbol) 50Public Overrides Function GetModuleMembers(name As String) As ImmutableArray(Of NamedTypeSymbol) 54Public Overrides Function GetMembers() As ImmutableArray(Of Symbol) 58Public Overrides Function GetMembers(name As String) As ImmutableArray(Of Symbol) 62Public Overrides Function GetTypeMembers() As ImmutableArray(Of NamedTypeSymbol) 66Public Overrides Function GetTypeMembers(name As String) As ImmutableArray(Of NamedTypeSymbol) 82Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 88Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 113Friend Overrides ReadOnly Property TypesToCheckForExtensionMethods As ImmutableArray(Of NamedTypeSymbol) 126Private ReadOnly _children As ImmutableArray(Of Symbol) 173Friend Overrides Function MakeDeclaredInterfaces(basesBeingResolved As BasesBeingResolved, diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol) 181Friend Overrides Function MakeAcyclicInterfaces(diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol) 197Public Overloads Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData) 221Public Overloads Overrides Function GetMembers() As ImmutableArray(Of Symbol) 225Public Overloads Overrides Function GetMembers(name As String) As ImmutableArray(Of Symbol) 229Public Overloads Overrides Function GetTypeMembers() As ImmutableArray(Of NamedTypeSymbol) 233Public Overloads Overrides Function GetTypeMembers(name As String) As ImmutableArray(Of NamedTypeSymbol) 237Public Overloads Overrides Function GetTypeMembers(name As String, arity As Integer) As ImmutableArray(Of NamedTypeSymbol) 247Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 253Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 271Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of TypeParameterSymbol) 343Friend Overrides Function GetAppliedConditionalSymbols() As ImmutableArray(Of String) 440Public Overrides ReadOnly Property ExplicitInterfaceImplementations As ImmutableArray(Of MethodSymbol) 446Public Overloads Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData) 570Friend Overrides Function GetAppliedConditionalSymbols() As ImmutableArray(Of String) 574Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 580Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 598Public Overrides ReadOnly Property Parameters As ImmutableArray(Of ParameterSymbol) 616Public Overrides ReadOnly Property ReturnTypeCustomModifiers As ImmutableArray(Of CustomModifier) 618Return ImmutableArray(Of CustomModifier).Empty 622Public Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier) 624Return ImmutableArray(Of CustomModifier).Empty 628Public Overrides ReadOnly Property TypeArguments As ImmutableArray(Of TypeSymbol) 634Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of TypeParameterSymbol) 704Public Overloads Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData) 714Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 791Public Overloads Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData) 795Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 801Public Overrides ReadOnly Property Modules As ImmutableArray(Of ModuleSymbol) 835Friend Overrides Function GetNoPiaResolutionAssemblies() As ImmutableArray(Of AssemblySymbol) 836Return CType(Nothing, ImmutableArray(Of AssemblySymbol)) 839Friend Overrides Sub SetNoPiaResolutionAssemblies(assemblies As ImmutableArray(Of AssemblySymbol)) 843Friend Overrides Function GetLinkedReferencedAssemblies() As ImmutableArray(Of AssemblySymbol) 847Friend Overrides Sub SetLinkedReferencedAssemblies(assemblies As ImmutableArray(Of AssemblySymbol)) 851Friend Overrides Function GetInternalsVisibleToPublicKeys(simpleName As String) As IEnumerable(Of ImmutableArray(Of Byte)) 863Friend Overrides ReadOnly Property PublicKey As ImmutableArray(Of Byte)
MockVisualBasicCompiler.vb (10)
15Private ReadOnly _analyzers As ImmutableArray(Of DiagnosticAnalyzer) 16Private ReadOnly _generators As ImmutableArray(Of ISourceGenerator) 17Private ReadOnly _additionalReferences As ImmutableArray(Of MetadataReference) 20Public DescriptorsWithInfo As ImmutableArray(Of (Descriptor As DiagnosticDescriptor, Info As DiagnosticDescriptorErrorLoggerInfo)) 56ByRef analyzers As ImmutableArray(Of DiagnosticAnalyzer), 57ByRef generators As ImmutableArray(Of ISourceGenerator)) 69Public Overloads Function CreateCompilation(consoleOutput As TextWriter, touchedFilesLogger As TouchedFileLogger, errorLogger As ErrorLogger, syntaxTreeDiagnosticOptionsOpt As ImmutableArray(Of AnalyzerConfigOptionsResult)) As Compilation 73Public Overrides Function CreateCompilation(consoleOutput As TextWriter, touchedFilesLogger As TouchedFileLogger, errorLogger As ErrorLogger, syntaxTreeDiagnosticOptionsOpt As ImmutableArray(Of AnalyzerConfigOptionsResult), globalConfigOptions As AnalyzerConfigOptionsResult) As Compilation 84additionalTextFiles As ImmutableArray(Of AdditionalText), 90Protected Overrides Sub AddAnalyzerDescriptorsAndExecutionTime(errorLogger As ErrorLogger, descriptorsWithInfo As ImmutableArray(Of (Descriptor As DiagnosticDescriptor, Info As DiagnosticDescriptorErrorLoggerInfo)), totalAnalyzerExecutionTime As Double)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (137)
CaseCorrection\VisualBasicCaseCorrectionService.vb (1)
29spans As ImmutableArray(Of TextSpan),
Classification\SyntaxClassification\IdentifierNameSyntaxClassifier.vb (1)
19Public Overrides ReadOnly Property SyntaxNodeTypes As ImmutableArray(Of Type) = ImmutableArray.Create(GetType(IdentifierNameSyntax))
Classification\SyntaxClassification\ImportAliasClauseSyntaxClassifier.vb (1)
18Public Overrides ReadOnly Property SyntaxNodeTypes As ImmutableArray(Of Type) = ImmutableArray.Create(GetType(ImportAliasClauseSyntax))
Classification\SyntaxClassification\NameSyntaxClassifier.vb (1)
18Public Overrides ReadOnly Property SyntaxNodeTypes As ImmutableArray(Of Type) = ImmutableArray.Create(
Classification\SyntaxClassification\OperatorOverloadSyntaxClassifier.vb (1)
18Public Overrides ReadOnly Property SyntaxNodeTypes As ImmutableArray(Of Type) = ImmutableArray.Create(
Classification\SyntaxClassification\VisualBasicSyntaxClassificationService.vb (3)
20Private ReadOnly s_defaultSyntaxClassifiers As ImmutableArray(Of ISyntaxClassifier) = ImmutableArray.Create(Of ISyntaxClassifier)( 31Public Overrides Function GetDefaultSyntaxClassifiers() As ImmutableArray(Of ISyntaxClassifier) 39Public Overrides Sub AddSyntacticClassifications(root As SyntaxNode, textSpans As ImmutableArray(Of TextSpan), result As SegmentedList(Of ClassifiedSpan), cancellationToken As CancellationToken)
CodeCleanup\Providers\AbstractTokensCodeCleanupProvider.vb (4)
20document As Document, root As SyntaxNode, spans As ImmutableArray(Of TextSpan), cancellationToken As CancellationToken) As Task(Of Rewriter) 22Public Async Function CleanupAsync(document As Document, spans As ImmutableArray(Of TextSpan), options As CodeCleanupOptions, cancellationToken As CancellationToken) As Task(Of Document) Implements ICodeCleanupProvider.CleanupAsync 30Public Async Function CleanupAsync(root As SyntaxNode, spans As ImmutableArray(Of TextSpan), options As SyntaxFormattingOptions, services As SolutionServices, cancellationToken As CancellationToken) As Task(Of SyntaxNode) Implements ICodeCleanupProvider.CleanupAsync 44Public Sub New(spans As ImmutableArray(Of TextSpan), cancellationToken As CancellationToken)
CodeCleanup\Providers\AddMissingTokensCodeCleanupProvider.vb (3)
29Protected Overrides Async Function GetRewriterAsync(document As Document, root As SyntaxNode, spans As ImmutableArray(Of TextSpan), cancellationToken As CancellationToken) As Task(Of Rewriter) 38Private Sub New(semanticModel As SemanticModel, spans As ImmutableArray(Of TextSpan), cancellationToken As CancellationToken) 44Public Shared Async Function CreateAsync(document As Document, spans As ImmutableArray(Of TextSpan), cancellationToken As CancellationToken) As Task(Of AddMissingTokensRewriter)
CodeCleanup\Providers\CaseCorrectionCodeCleanupProvider.vb (2)
31Public Function CleanupAsync(document As Document, spans As ImmutableArray(Of TextSpan), options As CodeCleanupOptions, cancellationToken As CancellationToken) As Task(Of Document) Implements ICodeCleanupProvider.CleanupAsync 35Public Function CleanupAsync(root As SyntaxNode, spans As ImmutableArray(Of TextSpan), options As SyntaxFormattingOptions, services As SolutionServices, cancellationToken As CancellationToken) As Task(Of SyntaxNode) Implements ICodeCleanupProvider.CleanupAsync
CodeCleanup\Providers\FixIncorrectTokensCodeCleanupProvider.vb (3)
38Protected Overrides Function GetRewriterAsync(document As Document, root As SyntaxNode, spans As ImmutableArray(Of TextSpan), cancellationToken As CancellationToken) As Task(Of Rewriter) 48spans As ImmutableArray(Of TextSpan), 55Public Shared Async Function CreateAsync(document As Document, spans As ImmutableArray(Of TextSpan), cancellationToken As CancellationToken) As Task(Of Rewriter)
CodeCleanup\Providers\NormalizeModifiersOrOperatorsCodeCleanupProvider.vb (3)
35Public Async Function CleanupAsync(document As Document, spans As ImmutableArray(Of TextSpan), options As CodeCleanupOptions, cancellationToken As CancellationToken) As Task(Of Document) Implements ICodeCleanupProvider.CleanupAsync 42Public Function CleanupAsync(root As SyntaxNode, spans As ImmutableArray(Of TextSpan), options As SyntaxFormattingOptions, services As SolutionServices, cancellationToken As CancellationToken) As Task(Of SyntaxNode) Implements ICodeCleanupProvider.CleanupAsync 81Public Sub New(spans As ImmutableArray(Of TextSpan), cancellationToken As CancellationToken)
CodeCleanup\Providers\ReduceTokensCodeCleanupProvider.vb (2)
33Protected Overrides Function GetRewriterAsync(document As Document, root As SyntaxNode, spans As ImmutableArray(Of TextSpan), cancellationToken As CancellationToken) As Task(Of Rewriter) 40Public Sub New(spans As ImmutableArray(Of TextSpan), cancellationToken As CancellationToken)
CodeCleanup\Providers\RemoveUnnecessaryLineContinuationCodeCleanupProvider.vb (5)
32Public Async Function CleanupAsync(document As Document, spans As ImmutableArray(Of TextSpan), options As CodeCleanupOptions, cancellationToken As CancellationToken) As Task(Of Document) Implements ICodeCleanupProvider.CleanupAsync 45Public Function CleanupAsync(root As SyntaxNode, spans As ImmutableArray(Of TextSpan), options As SyntaxFormattingOptions, services As SolutionServices, cancellationToken As CancellationToken) As Task(Of SyntaxNode) Implements ICodeCleanupProvider.CleanupAsync 55Private ReadOnly _spans As ImmutableArray(Of TextSpan) 57Public Shared Function Process(root As SyntaxNode, spans As ImmutableArray(Of TextSpan), cancellationToken As CancellationToken) As SyntaxNode 62Private Sub New(root As SyntaxNode, spans As ImmutableArray(Of TextSpan))
CodeCleanup\VisualBasicCodeCleanerService.vb (3)
17Private Shared ReadOnly s_defaultProviders As ImmutableArray(Of ICodeCleanupProvider) = ImmutableArray.Create(Of ICodeCleanupProvider)( 27Public Overrides Function GetDefaultProviders() As ImmutableArray(Of ICodeCleanupProvider) 31Protected Overrides Function GetSpansToAvoid(root As SyntaxNode) As ImmutableArray(Of TextSpan)
CodeGeneration\VisualBasicSyntaxGenerator.vb (3)
1542Friend Overrides Function GetTypeInheritance(declaration As SyntaxNode) As ImmutableArray(Of SyntaxNode) 1545Return ImmutableArray(Of SyntaxNode).Empty 2619explicitInterfaceImplementations As ImmutableArray(Of ISymbol),
FindSymbols\VisualBasicDeclaredSymbolInfoFactoryService.vb (11)
40Private Shared Function GetInheritanceNames(stringTable As StringTable, typeBlock As TypeBlockSyntax) As ImmutableArray(Of String) 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)) 555Protected Overrides Function TryGetAliasesFromUsingDirective(importStatement As ImportsStatementSyntax, ByRef aliases As ImmutableArray(Of (aliasName As String, name As String))) As Boolean 584Private Shared Function TryGetSimpleTypeNameWorker(node As SyntaxNode, typeParameterNames As ImmutableArray(Of String)?, ByRef simpleTypeName As String, ByRef isArray As Boolean) As Boolean
FindSymbols\VisualBasicReferenceFinder.vb (4)
25cancellationToken As CancellationToken) As Task(Of ImmutableArray(Of ISymbol)) Implements ILanguageServiceReferenceFinder.DetermineCascadedSymbolsAsync 38cancellationToken As CancellationToken) As Task(Of ImmutableArray(Of ISymbol)) 44ImmutableArray(Of ISymbol).Empty, 51cancellationToken As CancellationToken) As Task(Of ImmutableArray(Of ISymbol))
Formatting\Engine\VisualBasicFormatEngine.vb (1)
17formattingRules As ImmutableArray(Of AbstractFormattingRule),
Formatting\VisualBasicSyntaxFormatting.vb (3)
20Private ReadOnly _rules As ImmutableArray(Of AbstractFormattingRule) = ImmutableArray.Create(Of AbstractFormattingRule)( 28Public Overrides Function GetDefaultFormattingRules() As ImmutableArray(Of AbstractFormattingRule) 46Protected Overrides Function Format(root As SyntaxNode, options As SyntaxFormattingOptions, formattingRules As ImmutableArray(Of AbstractFormattingRule), startToken As SyntaxToken, endToken As SyntaxToken, cancellationToken As CancellationToken) As AbstractFormattingResult
Formatting\VisualBasicSyntaxFormattingService.vb (2)
28Public Function GetFormattingChangesOnTypedCharacter(document As ParsedDocument, caretPosition As Integer, indentationOptions As IndentationOptions, cancellationToken As CancellationToken) As ImmutableArray(Of TextChange) Implements ISyntaxFormattingService.GetFormattingChangesOnTypedCharacter 32Public Function GetFormattingChangesOnPaste(document As ParsedDocument, textSpan As TextSpan, options As SyntaxFormattingOptions, cancellationToken As CancellationToken) As ImmutableArray(Of TextChange) Implements ISyntaxFormattingService.GetFormattingChangesOnPaste
LanguageServices\FixAllSpanMappingService\VisualBasicFixAllSpanMappingService.vb (2)
22Protected Overrides Function GetFixAllSpansIfWithinGlobalStatementAsync(document As Document, diagnosticSpan As TextSpan, cancellationToken As CancellationToken) As Task(Of ImmutableDictionary(Of Document, ImmutableArray(Of TextSpan))) 24Return Task.FromResult(ImmutableDictionary(Of Document, ImmutableArray(Of TextSpan)).Empty)
Recommendations\VisualBasicRecommendationServiceRunner.vb (23)
30Private Overloads Function GetSymbols() As ImmutableArray(Of ISymbol) 33Return ImmutableArray(Of ISymbol).Empty 66Return ImmutableArray(Of ISymbol).Empty 97Private Function GetSymbolsForGlobalStatementContext() As ImmutableArray(Of ISymbol) 101Private Function GetUnqualifiedSymbolsForQueryIntoContext() As ImmutableArray(Of ISymbol) 105Return ImmutableArray(Of ISymbol).CastUp( 111Private Function GetUnqualifiedSymbolsForLabelContext() As ImmutableArray(Of ISymbol) 115Private Function GetUnqualifiedSymbolsForRaiseEvent() As ImmutableArray(Of ISymbol) 123Private Function GetUnqualifiedSymbolsForType() As ImmutableArray(Of ISymbol) 128Private Function GetUnqualifiedSymbolsForExpressionOrStatementContext() As ImmutableArray(Of ISymbol) 164Private Function GetSymbolsForQualifiedNameSyntax(node As QualifiedNameSyntax) As ImmutableArray(Of ISymbol) 172Return ImmutableArray(Of ISymbol).Empty 179Dim symbols As ImmutableArray(Of ISymbol) 197Private Function GetSymbolsForMemberAccessExpression(node As MemberAccessExpressionSyntax) As ImmutableArray(Of ISymbol) 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 310Dim symbols As ImmutableArray(Of ISymbol) 390Private Function FilterToValidAccessibleSymbols(symbols As ImmutableArray(Of ISymbol)) As ImmutableArray(Of ISymbol) 419Return ImmutableArray(Of ISymbol).Empty
Rename\VisualBasicRenameRewriterLanguageService.vb (8)
44Private ReadOnly _possibleNameConflicts As ImmutableArray(Of String) 689cancellationToken As CancellationToken) As Task(Of ImmutableArray(Of Location)) 809cancellationToken As CancellationToken) As Task(Of ImmutableArray(Of Location)) 834Return ImmutableArray(Of Location).Empty 912cancellationToken As CancellationToken) As ImmutableArray(Of Location) 923Return ImmutableArray(Of Location).Empty 929Return ImmutableArray(Of Location).Empty 976Return ImmutableArray(Of Location).Empty
Simplification\VisualBasicSimplificationService.NodesAndTokensToReduceComputer.vb (1)
25Public Shared Function Compute(root As SyntaxNode, isNodeOrTokenOutsideSimplifySpans As Func(Of SyntaxNodeOrToken, Boolean)) As ImmutableArray(Of NodeOrTokenToReduce)
Simplification\VisualBasicSimplificationService.vb (2)
22Private Shared ReadOnly s_reducers As ImmutableArray(Of AbstractReducer) = 151Protected Overrides Function GetNodesAndTokensToReduce(root As SyntaxNode, isNodeOrTokenOutsideSimplifySpans As Func(Of SyntaxNodeOrToken, Boolean)) As ImmutableArray(Of NodeOrTokenToReduce)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\DirectiveSyntaxExtensions.vb (3)
69cancellationToken As CancellationToken) As ImmutableArray(Of DirectiveTriviaSyntax) 74Dim result As ImmutableArray(Of DirectiveTriviaSyntax) = Nothing 77ImmutableArray(Of DirectiveTriviaSyntax).Empty)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\SyntaxNodeExtensions.vb (4)
438Public Function GetLeadingBlankLines(Of TSyntaxNode As SyntaxNode)(node As TSyntaxNode) As ImmutableArray(Of SyntaxTrivia) 448Public Function GetNodeWithoutLeadingBlankLines(Of TSyntaxNode As SyntaxNode)(node As TSyntaxNode, ByRef strippedTrivia As ImmutableArray(Of SyntaxTrivia)) As TSyntaxNode 453Public Function GetLeadingBannerAndPreprocessorDirectives(Of TSyntaxNode As SyntaxNode)(node As TSyntaxNode) As ImmutableArray(Of SyntaxTrivia) 463Public Function GetNodeWithoutLeadingBannerAndPreprocessorDirectives(Of TSyntaxNode As SyntaxNode)(node As TSyntaxNode, ByRef strippedTrivia As ImmutableArray(Of SyntaxTrivia)) As TSyntaxNode
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Helpers\RemoveUnnecessaryImports\VisualBasicUnnecessaryImportsProvider.vb (1)
28cancellationToken As CancellationToken) As ImmutableArray(Of ImportsClauseSyntax)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Indentation\VisualBasicSmartTokenFormatter.vb (2)
19Private ReadOnly _formattingRules As ImmutableArray(Of AbstractFormattingRule) 24formattingRules As ImmutableArray(Of AbstractFormattingRule),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Services\SelectedMembers\VisualBasicSelectedMembers.vb (1)
27Protected Overrides Function GetDeclaratorsAndIdentifiers(member As StatementSyntax) As ImmutableArray(Of (declarator As SyntaxNode, identifier As SyntaxToken))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Services\SemanticFacts\VisualBasicSemanticFacts.vb (8)
207Public Function GetDeconstructionAssignmentMethods(model As SemanticModel, deconstruction As SyntaxNode) As ImmutableArray(Of IMethodSymbol) Implements ISemanticFacts.GetDeconstructionAssignmentMethods 208Return ImmutableArray(Of IMethodSymbol).Empty 211Public Function GetDeconstructionForEachMethods(model As SemanticModel, deconstruction As SyntaxNode) As ImmutableArray(Of IMethodSymbol) Implements ISemanticFacts.GetDeconstructionForEachMethods 212Return ImmutableArray(Of IMethodSymbol).Empty 260Public Function GetBestOrAllSymbols(semanticModel As SemanticModel, node As SyntaxNode, token As SyntaxToken, cancellationToken As CancellationToken) As ImmutableArray(Of ISymbol) Implements ISemanticFacts.GetBestOrAllSymbols 262Return ImmutableArray(Of ISymbol).Empty 275Public Function GetLocalFunctionSymbols(compilation As Compilation, symbol As ISymbol, cancellationToken As CancellationToken) As ImmutableArray(Of IMethodSymbol) Implements ISemanticFacts.GetLocalFunctionSymbols 276Return ImmutableArray(Of IMethodSymbol).Empty
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Services\SyntaxFacts\VisualBasicSyntaxFacts.vb (1)
1476Public Function GetMatchingConditionalDirectives(directive As SyntaxNode, cancellationToken As CancellationToken) As ImmutableArray(Of SyntaxNode) Implements ISyntaxFacts.GetMatchingConditionalDirectives
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Utilities\ImportsOrganizer.vb (1)
80Dim leadingTrivia As ImmutableArray(Of SyntaxTrivia) = Nothing
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Utilities\SpeculationAnalyzer.vb (2)
482Protected Overrides Function GetArguments(expression As ExpressionSyntax) As ImmutableArray(Of ArgumentSyntax) 601ByRef localVariables As ImmutableArray(Of ILocalSymbol))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\AttributeGenerator.vb (1)
15Public Function GenerateAttributeBlocks(attributes As ImmutableArray(Of AttributeData), options As CodeGenerationContextInfo, Optional target As SyntaxToken? = Nothing) As SyntaxList(Of AttributeListSyntax)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\ParameterGenerator.vb (1)
14Public Shared Function GenerateParameterList(parameterDefinitions As ImmutableArray(Of IParameterSymbol), options As CodeGenerationContextInfo) As ParameterListSyntax
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\TypeParameterGenerator.vb (1)
10Public Shared Function GenerateTypeParameterList(typeParameters As ImmutableArray(Of ITypeParameterSymbol)) As TypeParameterListSyntax
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\VisualBasicCodeGenerationService.vb (1)
511Dim strippedTrivia As ImmutableArray(Of SyntaxTrivia) = Nothing
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Editing\VisualBasicImportAdder.vb (3)
39Protected Overrides Function AddPotentiallyConflictingImportsAsync(model As SemanticModel, container As SyntaxNode, namespaceSymbols As ImmutableArray(Of INamespaceSymbol), conflicts As HashSet(Of INamespaceSymbol), cancellationToken As CancellationToken) As Task 87namespaceSymbols As ImmutableArray(Of INamespaceSymbol)) 98Private Sub AddImportedMembers(namespaceSymbols As ImmutableArray(Of INamespaceSymbol))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\SemanticModelExtensions.vb (7)
19cancellationToken As CancellationToken) As ImmutableArray(Of ParameterName) 21Return ImmutableArray(Of ParameterName).Empty 33cancellationToken As CancellationToken) As ImmutableArray(Of ParameterName) 45cancellationToken As CancellationToken) As ImmutableArray(Of ParameterName) 47Return ImmutableArray(Of ParameterName).Empty 67cancellationToken As CancellationToken) As ImmutableArray(Of ParameterName) 69Return ImmutableArray(Of ParameterName).Empty
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\LanguageServices\VisualBasicAddImportsService.vb (1)
51Protected Overrides Function GetGlobalImports(compilation As Compilation, generator As SyntaxGenerator) As ImmutableArray(Of SyntaxNode)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\LanguageServices\VisualBasicSymbolDeclarationService.vb (2)
26Public Function GetDeclarations(symbol As ISymbol) As ImmutableArray(Of SyntaxReference) Implements ISymbolDeclarationService.GetDeclarations 28ImmutableArray(Of SyntaxReference).Empty,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\LanguageServices\VisualBasicSyntaxFactsService.vb (1)
39Public Function GetSelectedFieldsAndPropertiesAsync(tree As SyntaxTree, textSpan As TextSpan, allowPartialSelection As Boolean, cancellationToken As CancellationToken) As Task(Of ImmutableArray(Of SyntaxNode)) Implements ISyntaxFactsService.GetSelectedFieldsAndPropertiesAsync
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\LanguageServices\VisualBasicTypeInferenceService.TypeInferrer.vb (1)
385parameterizedSymbols As IEnumerable(Of ImmutableArray(Of IParameterSymbol))) As IEnumerable(Of TypeInferenceInfo)
Workspace\LanguageServices\VisualBasicCompilationFactoryService.vb (2)
65generators As ImmutableArray(Of ISourceGenerator), 67additionalTexts As ImmutableArray(Of AdditionalText),
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (1)
Formatting\VisualBasicFormattingTestBase.vb (1)
86Dim spans As ImmutableArray(Of TextSpan) = Nothing
Microsoft.CodeAnalysis.Workspaces (2580)
CaseCorrection\AbstractCaseCorrectionService.cs (4)
20protected abstract void AddReplacements(SemanticModel? semanticModel, SyntaxNode root, ImmutableArray<TextSpan> spans, ConcurrentDictionary<SyntaxToken, SyntaxToken> replacements, CancellationToken cancellationToken); 22public async Task<Document> CaseCorrectAsync(Document document, ImmutableArray<TextSpan> spans, CancellationToken cancellationToken) 41public SyntaxNode CaseCorrect(SyntaxNode root, ImmutableArray<TextSpan> spans, CancellationToken cancellationToken) 44private SyntaxNode CaseCorrect(SemanticModel? semanticModel, SyntaxNode root, ImmutableArray<TextSpan> spans, CancellationToken cancellationToken)
CaseCorrection\CaseCorrector.cs (2)
63public static Task<Document> CaseCorrectAsync(Document document, ImmutableArray<TextSpan> spans, CancellationToken cancellationToken = default) 69internal static SyntaxNode CaseCorrect(SyntaxNode root, ImmutableArray<TextSpan> spans, SolutionServices services, CancellationToken cancellationToken = default)
CaseCorrection\ICaseCorrectionService.cs (2)
18Task<Document> CaseCorrectAsync(Document document, ImmutableArray<TextSpan> spans, CancellationToken cancellationToken); 23SyntaxNode CaseCorrect(SyntaxNode root, ImmutableArray<TextSpan> spans, CancellationToken cancellationToken);
Classification\AbstractClassificationService.cs (14)
28private Func<SyntaxNode, ImmutableArray<ISyntaxClassifier>>? _getNodeClassifiers; 29private Func<SyntaxToken, ImmutableArray<ISyntaxClassifier>>? _getTokenClassifiers; 35Document document, ImmutableArray<TextSpan> textSpans, ClassificationOptions options, SegmentedList<ClassifiedSpan> result, CancellationToken cancellationToken) 41Document document, ImmutableArray<TextSpan> textSpans, ClassificationOptions options, SegmentedList<ClassifiedSpan> result, CancellationToken cancellationToken) 48ImmutableArray<TextSpan> textSpans, 109ImmutableArray<TextSpan> textSpans, 139ImmutableArray<TextSpan> textSpans, 157var reassignedVariableSpans = await reassignedVariableService.GetLocationsAsync(document, textSpans, cancellationToken).ConfigureAwait(false); 165var obsoleteSymbolSpans = await obsoleteSymbolService.GetLocationsAsync(document, textSpans, cancellationToken).ConfigureAwait(false); 186(Func<SyntaxNode, ImmutableArray<ISyntaxClassifier>>, Func<SyntaxToken, ImmutableArray<ISyntaxClassifier>>) GetExtensionClassifiers( 192var classifiers = classificationService.GetDefaultSyntaxClassifiers(); 202public async Task AddSyntacticClassificationsAsync(Document document, ImmutableArray<TextSpan> textSpans, SegmentedList<ClassifiedSpan> result, CancellationToken cancellationToken) 209SolutionServices services, SyntaxNode? root, ImmutableArray<TextSpan> textSpans, SegmentedList<ClassifiedSpan> result, CancellationToken cancellationToken)
Classification\ClassificationTypeNames.cs (2)
14public static ImmutableArray<string> AdditiveTypeNames { get; } = [StaticSymbol, ReassignedVariable, ObsoleteSymbol, TestCode]; 16public static ImmutableArray<string> AllTypeNames { get; } =
Classification\Classifier.cs (3)
81var syntaxClassifiers = classificationService.GetDefaultSyntaxClassifiers(); 113internal static async Task<ImmutableArray<SymbolDisplayPart>> GetClassifiedSymbolDisplayPartsAsync( 123internal static ImmutableArray<SymbolDisplayPart> ConvertClassificationsToParts(
Classification\ClassifierHelper.cs (7)
24/// cref="ImmutableArray{T}.IsDefault"/> will be returned if this fails. 29public static async Task<ImmutableArray<ClassifiedSpan>> GetClassifiedSpansAsync( 43/// cref="ImmutableArray{T}.IsDefault"/> will be returned if this fails. 52public static async Task<ImmutableArray<ClassifiedSpan>> GetClassifiedSpansAsync( 54ImmutableArray<TextSpan> spans, 93var classifiedSpans = MergeClassifiedSpans(syntaxSpans, semanticSpans, widenedSpan); 107private static ImmutableArray<ClassifiedSpan> MergeClassifiedSpans(
Classification\IClassificationService.cs (4)
34void AddSyntacticClassifications(SolutionServices services, SyntaxNode? root, ImmutableArray<TextSpan> textSpans, SegmentedList<ClassifiedSpan> result, CancellationToken cancellationToken); 46Task AddSyntacticClassificationsAsync(Document document, ImmutableArray<TextSpan> textSpans, SegmentedList<ClassifiedSpan> result, CancellationToken cancellationToken); 63Task AddSemanticClassificationsAsync(Document document, ImmutableArray<TextSpan> textSpans, ClassificationOptions options, SegmentedList<ClassifiedSpan> result, CancellationToken cancellationToken); 74Task AddEmbeddedLanguageClassificationsAsync(Document document, ImmutableArray<TextSpan> textSpans, ClassificationOptions options, SegmentedList<ClassifiedSpan> result, CancellationToken cancellationToken);
Classification\IEmbeddedLanguageClassificationService.cs (2)
18ImmutableArray<TextSpan> textSpans, 27ImmutableArray<TextSpan> textSpans,
Classification\IRemoteSemanticClassificationService.cs (7)
33ImmutableArray<TextSpan> textSpans, 52ImmutableArray<TextSpan> textSpans, 64internal sealed class SerializableClassifiedSpans(ImmutableArray<string> classificationTypes, ImmutableArray<int> classificationTriples) 67public readonly ImmutableArray<string> ClassificationTypes = classificationTypes; 70public readonly ImmutableArray<int> ClassificationTriples = classificationTriples; 106internal ImmutableArray<ClassifiedSpan> Rehydrate()
Classification\SyntaxClassification\AbstractSyntaxClassificationService.cs (8)
20public abstract void AddSyntacticClassifications(SyntaxNode root, ImmutableArray<TextSpan> textSpans, SegmentedList<ClassifiedSpan> result, CancellationToken cancellationToken); 22public abstract ImmutableArray<ISyntaxClassifier> GetDefaultSyntaxClassifiers(); 28ImmutableArray<TextSpan> textSpans, 30Func<SyntaxNode, ImmutableArray<ISyntaxClassifier>> getNodeClassifiers, 31Func<SyntaxToken, ImmutableArray<ISyntaxClassifier>> getTokenClassifiers, 50ImmutableArray<TextSpan> textSpans, 51Func<SyntaxNode, ImmutableArray<ISyntaxClassifier>> getNodeClassifiers, 52Func<SyntaxToken, ImmutableArray<ISyntaxClassifier>> getTokenClassifiers,
Classification\SyntaxClassification\AbstractSyntaxClassificationService.Worker.cs (7)
25private readonly Func<SyntaxNode, ImmutableArray<ISyntaxClassifier>> _getNodeClassifiers; 26private readonly Func<SyntaxToken, ImmutableArray<ISyntaxClassifier>> _getTokenClassifiers; 38Func<SyntaxNode, ImmutableArray<ISyntaxClassifier>> getNodeClassifiers, 39Func<SyntaxToken, ImmutableArray<ISyntaxClassifier>> getTokenClassifiers, 58ImmutableArray<TextSpan> textSpans, 60Func<SyntaxNode, ImmutableArray<ISyntaxClassifier>> getNodeClassifiers, 61Func<SyntaxToken, ImmutableArray<ISyntaxClassifier>> getTokenClassifiers,
Classification\SyntaxClassification\AbstractSyntaxClassifier.cs (2)
30public virtual ImmutableArray<Type> SyntaxNodeTypes 33public virtual ImmutableArray<int> SyntaxTokenKinds
Classification\SyntaxClassification\ISyntaxClassificationService.cs (8)
18ImmutableArray<ISyntaxClassifier> GetDefaultSyntaxClassifiers(); 29ImmutableArray<TextSpan> textSpans, 36ImmutableArray<TextSpan> textSpans, 38Func<SyntaxNode, ImmutableArray<ISyntaxClassifier>> getNodeClassifiers, 39Func<SyntaxToken, ImmutableArray<ISyntaxClassifier>> getTokenClassifiers, 46ImmutableArray<TextSpan> textSpans, 47Func<SyntaxNode, ImmutableArray<ISyntaxClassifier>> getNodeClassifiers, 48Func<SyntaxToken, ImmutableArray<ISyntaxClassifier>> getTokenClassifiers,
Classification\SyntaxClassification\ISyntaxClassifier.cs (2)
19ImmutableArray<Type> SyntaxNodeTypes { get; } 24ImmutableArray<int> SyntaxTokenKinds { get; }
Classification\SyntaxClassification\SyntaxClassificationExtensions.cs (4)
32Func<SyntaxNode, ImmutableArray<ISyntaxClassifier>> getNodeClassifiers, 33Func<SyntaxToken, ImmutableArray<ISyntaxClassifier>> getTokenClassifiers, 51Func<SyntaxNode, ImmutableArray<ISyntaxClassifier>> getNodeClassifiers, 52Func<SyntaxToken, ImmutableArray<ISyntaxClassifier>> getTokenClassifiers,
CodeActions\CodeAction.cs (25)
58private protected static ImmutableArray<string> RequiresNonDocumentChangeTags = [RequiresNonDocumentChange]; 147public virtual ImmutableArray<string> Tags => []; 152/// actions, use <see cref="Create(string, ImmutableArray{CodeAction}, bool)"/>. 154public virtual ImmutableArray<CodeAction> NestedActions 161internal virtual ImmutableArray<CodeAction> AdditionalPreviewFlavors => []; 166internal ImmutableArray<CodeAction> NestedCodeActions 176/// cref="Create(string, ImmutableArray{CodeAction}, bool)"/>. 183internal ImmutableArray<string> CustomTags { get; set; } = []; 229public Task<ImmutableArray<CodeActionOperation>> GetOperationsAsync(CancellationToken cancellationToken) 235public Task<ImmutableArray<CodeActionOperation>> GetOperationsAsync( 241private protected virtual async Task<ImmutableArray<CodeActionOperation>> GetOperationsCoreAsync( 244var operations = await this.ComputeOperationsAsync(progress, cancellationToken).ConfigureAwait(false); 257public Task<ImmutableArray<CodeActionOperation>> GetPreviewOperationsAsync(CancellationToken cancellationToken) 260internal async Task<ImmutableArray<CodeActionOperation>> GetPreviewOperationsAsync( 295protected virtual async Task<ImmutableArray<CodeActionOperation>> ComputeOperationsAsync( 421protected Task<ImmutableArray<CodeActionOperation>> PostProcessAsync(IEnumerable<CodeActionOperation> operations, CancellationToken cancellationToken) 425internal static async Task<ImmutableArray<CodeActionOperation>> PostProcessAsync( 567public static CodeAction Create(string title, ImmutableArray<CodeAction> nestedActions, bool isInlinable) 570/// <inheritdoc cref="Create(string, ImmutableArray{CodeAction}, bool)"/> 573public static CodeAction Create(string title, ImmutableArray<CodeAction> nestedActions, bool isInlinable, CodeActionPriority priority = CodeActionPriority.Default) 608ImmutableArray<CodeAction> nestedActions, 621ImmutableArray<CodeAction> nestedActions, 630ImmutableArray<CodeAction> nestedActions, 637public sealed override ImmutableArray<CodeAction> NestedActions { get; } 639private static string? ComputeEquivalenceKey(ImmutableArray<CodeAction> nestedActions)
CodeActions\CodeAction_Cleanup.cs (7)
29private static readonly ImmutableArray<Func<Document, CodeCleanupOptions, CancellationToken, Task<Document>>> s_cleanupPasses = 59internal static ImmutableArray<DocumentId> GetAllChangedOrAddedDocumentIds( 64var documentIds = solutionChanges 78var documentIds = GetAllChangedOrAddedDocumentIds(originalSolution, changedSolution); 79var documentIdsAndOptionsToClean = await GetDocumentIdsAndOptionsToCleanAsync().ConfigureAwait(false); 87async Task<ImmutableArray<(DocumentId documentId, CodeCleanupOptions codeCleanupOptions)>> GetDocumentIdsAndOptionsToCleanAsync() 122ImmutableArray<(DocumentId documentId, CodeCleanupOptions options)> documentIdsAndOptions,
CodeActions\CodeActionRequestPriority.cs (1)
58public static CodeActionRequestPriority Clamp(this CodeActionRequestPriority priority, ImmutableArray<string> customTags)
CodeActions\CodeActionWithOptions.cs (1)
53private protected sealed override async Task<ImmutableArray<CodeActionOperation>> GetOperationsCoreAsync(
CodeActions\Operations\ApplyChangesOperation.cs (1)
115var changedDocuments = changedProject.GetChangedDocuments()
CodeCleanup\AbstractCodeCleanerService.cs (26)
26public abstract ImmutableArray<ICodeCleanupProvider> GetDefaultProviders(); 27protected abstract ImmutableArray<TextSpan> GetSpansToAvoid(SyntaxNode root); 29public async Task<Document> CleanupAsync(Document document, ImmutableArray<TextSpan> spans, CodeCleanupOptions options, ImmutableArray<ICodeCleanupProvider> providers, CancellationToken cancellationToken) 40var codeCleaners = providers.IsDefault ? GetDefaultProviders() : providers; 44var normalizedSpan = spans.ToNormalizedSpans(); 73public async Task<SyntaxNode> CleanupAsync(SyntaxNode root, ImmutableArray<TextSpan> spans, SyntaxFormattingOptions options, SolutionServices services, ImmutableArray<ICodeCleanupProvider> providers, CancellationToken cancellationToken) 84var codeCleaners = providers.IsDefault ? GetDefaultProviders() : providers; 86var normalizedSpan = spans.ToNormalizedSpans(); 114private static ImmutableArray<TextSpan> GetTextSpansFromAnnotation( 270SyntaxNode root, ImmutableArray<TextSpan> spans, CancellationToken cancellationToken) 273var nonOverlappingSpans = GetNonOverlappingSpans(root, spans, cancellationToken); 320private static ImmutableArray<TextSpan> GetNonOverlappingSpans( 321SyntaxNode root, ImmutableArray<TextSpan> spans, CancellationToken cancellationToken) 444private static bool CleanupWholeNode(TextSpan nodeSpan, ImmutableArray<TextSpan> spans) 458Func<SyntaxNode, ImmutableArray<TextSpan>> spanGetter, 459ImmutableArray<ICodeCleanupProvider> codeCleaners, 466var spans = ImmutableArray<TextSpan>.Empty; 520private ImmutableArray<TextSpan> GetSpans( 521SyntaxNode root, Func<SyntaxNode, ImmutableArray<TextSpan>> spanGetter) 539Func<SyntaxNode, ImmutableArray<TextSpan>> spanGetter, 541ImmutableArray<ICodeCleanupProvider> codeCleaners, 548var spans = ImmutableArray<TextSpan>.Empty;
CodeCleanup\CodeCleaner.cs (9)
28public static ImmutableArray<ICodeCleanupProvider> GetDefaultProviders(Document document) 50public static async Task<Document> CleanupAsync(Document document, CodeCleanupOptions options, ImmutableArray<ICodeCleanupProvider> providers = default, CancellationToken cancellationToken = default) 60public static async Task<Document> CleanupAsync(Document document, SyntaxAnnotation annotation, CodeCleanupOptions options, ImmutableArray<ICodeCleanupProvider> providers = default, CancellationToken cancellationToken = default) 70public static Task<Document> CleanupAsync(Document document, TextSpan span, CodeCleanupOptions options, ImmutableArray<ICodeCleanupProvider> providers = default, CancellationToken cancellationToken = default) 77public static async Task<Document> CleanupAsync(Document document, ImmutableArray<TextSpan> spans, CodeCleanupOptions options, ImmutableArray<ICodeCleanupProvider> providers = default, CancellationToken cancellationToken = default) 87public static Task<SyntaxNode> CleanupAsync(SyntaxNode root, TextSpan span, SyntaxFormattingOptions options, SolutionServices services, ImmutableArray<ICodeCleanupProvider> providers = default, CancellationToken cancellationToken = default) 94public static Task<SyntaxNode> CleanupAsync(SyntaxNode root, ImmutableArray<TextSpan> spans, SyntaxFormattingOptions options, SolutionServices services, ImmutableArray<ICodeCleanupProvider> providers = default, CancellationToken cancellationToken = default)
CodeCleanup\ICodeCleanerService.cs (5)
25ImmutableArray<ICodeCleanupProvider> GetDefaultProviders(); 30Task<Document> CleanupAsync(Document document, ImmutableArray<TextSpan> spans, CodeCleanupOptions options, ImmutableArray<ICodeCleanupProvider> providers, CancellationToken cancellationToken); 37Task<SyntaxNode> CleanupAsync(SyntaxNode root, ImmutableArray<TextSpan> spans, SyntaxFormattingOptions options, SolutionServices services, ImmutableArray<ICodeCleanupProvider> providers, CancellationToken cancellationToken);
CodeCleanup\Providers\FormatCodeCleanupProvider.cs (3)
16internal sealed class FormatCodeCleanupProvider(ImmutableArray<AbstractFormattingRule> rules = default) : ICodeCleanupProvider 20public async Task<Document> CleanupAsync(Document document, ImmutableArray<TextSpan> spans, CodeCleanupOptions options, CancellationToken cancellationToken) 32public Task<SyntaxNode> CleanupAsync(SyntaxNode root, ImmutableArray<TextSpan> spans, SyntaxFormattingOptions options, SolutionServices services, CancellationToken cancellationToken)
CodeCleanup\Providers\ICodeCleanupProvider.cs (2)
27Task<Document> CleanupAsync(Document document, ImmutableArray<TextSpan> spans, CodeCleanupOptions options, CancellationToken cancellationToken); 34Task<SyntaxNode> CleanupAsync(SyntaxNode root, ImmutableArray<TextSpan> spans, SyntaxFormattingOptions options, SolutionServices services, CancellationToken cancellationToken);
CodeCleanup\Providers\SimplificationCodeCleanupProvider.cs (2)
19public Task<Document> CleanupAsync(Document document, ImmutableArray<TextSpan> spans, CodeCleanupOptions options, CancellationToken cancellationToken) 22public Task<SyntaxNode> CleanupAsync(SyntaxNode root, ImmutableArray<TextSpan> spans, SyntaxFormattingOptions options, SolutionServices services, CancellationToken cancellationToken)
CodeFixes\CodeFix.cs (2)
23internal readonly ImmutableArray<Diagnostic> Diagnostics; 50internal CodeFix(Project project, CodeAction action, ImmutableArray<Diagnostic> diagnostics)
CodeFixes\CodeFixContext.cs (10)
21private readonly Action<CodeAction, ImmutableArray<Diagnostic>> _registerCodeFix; 60public ImmutableArray<Diagnostic> Diagnostics { get; } 88ImmutableArray<Diagnostic> diagnostics, 89Action<CodeAction, ImmutableArray<Diagnostic>> registerCodeFix, 119ImmutableArray<Diagnostic> diagnostics, 120Action<CodeAction, ImmutableArray<Diagnostic>> registerCodeFix, 147Action<CodeAction, ImmutableArray<Diagnostic>> registerCodeFix, 171Action<CodeAction, ImmutableArray<Diagnostic>> registerCodeFix, 221public void RegisterCodeFix(CodeAction action, ImmutableArray<Diagnostic> diagnostics) 238private static void VerifyDiagnosticsArgument(ImmutableArray<Diagnostic> diagnostics, TextSpan span)
CodeFixes\CodeFixProvider.cs (2)
18private protected ImmutableArray<string> CustomTags = []; 23public abstract ImmutableArray<string> FixableDiagnosticIds { get; }
CodeFixes\FixAllOccurrences\BatchFixAllProvider.cs (13)
40ImmutableArray<FixAllContext> fixAllContexts) 87private static async Task<ImmutableDictionary<Document, ImmutableArray<Diagnostic>>> DetermineDiagnosticsAsync(FixAllContext fixAllContext, IProgress<CodeAnalysisProgress> progressTracker) 111ImmutableDictionary<Document, ImmutableArray<Diagnostic>> documentToDiagnostics) 117var orderedDiagnostics = documentToDiagnostics.SelectMany(kvp => kvp.Value) 124var allChangedDocumentsInDiagnosticsOrder = 137private static async Task<ImmutableArray<Document>> GetAllChangedDocumentsInDiagnosticsOrderAsync( 138FixAllContext fixAllContext, ImmutableArray<Diagnostic> orderedDiagnostics) 145using var _1 = ArrayBuilder<Task<ImmutableArray<Document>>>.GetInstance(out var tasks); 199ImmutableArray<Document> allChangedDocumentsInDiagnosticsOrder, 211var allDocChanges = group.ToImmutableArray(); 230private static Action<CodeAction, ImmutableArray<Diagnostic>> GetRegisterCodeFixAction( 254ImmutableArray<(DocumentId documentId, TextChangeMerger merger)> docIdsAndMerger, 257var docIdsAndTexts = await docIdsAndMerger.SelectAsArrayAsync(async t => (t.documentId, await t.merger.GetFinalMergedTextAsync(cancellationToken).ConfigureAwait(false))).ConfigureAwait(false);
CodeFixes\FixAllOccurrences\DocumentBasedFixAllProvider.cs (5)
26/// cref="FixAllAsync(FixAllContext, Document, ImmutableArray{Diagnostic})"/> for implementors to process. 28public abstract class DocumentBasedFixAllProvider(ImmutableArray<FixAllScope> supportedFixAllScopes) : FixAllProvider 30private readonly ImmutableArray<FixAllScope> _supportedFixAllScopes = supportedFixAllScopes; 58protected abstract Task<Document?> FixAllAsync(FixAllContext fixAllContext, Document document, ImmutableArray<Diagnostic> diagnostics); 67private Task<Solution?> FixAllContextsHelperAsync(FixAllContext originalFixAllContext, ImmutableArray<FixAllContext> fixAllContexts)
CodeFixes\FixAllOccurrences\FixAllContext.cs (8)
225public async Task<ImmutableArray<Diagnostic>> GetDocumentDiagnosticsAsync(Document document) 241private static async Task<ImmutableArray<Diagnostic>> GetFilteredDiagnosticsAsync( 262internal async Task<ImmutableArray<Diagnostic>> GetDocumentSpanDiagnosticsAsync(Document document, TextSpan filterSpan) 283public Task<ImmutableArray<Diagnostic>> GetProjectDiagnosticsAsync(Project project) 297public Task<ImmutableArray<Diagnostic>> GetAllDiagnosticsAsync(Project project) 312private async Task<ImmutableArray<Diagnostic>> GetProjectDiagnosticsAsync(Project project, bool includeAllDocumentDiagnostics) 347internal Task<ImmutableDictionary<Document, ImmutableArray<Diagnostic>>> GetDocumentDiagnosticsToFixAsync() 350internal Task<ImmutableDictionary<Project, ImmutableArray<Diagnostic>>> GetProjectDiagnosticsToFixAsync()
CodeFixes\FixAllOccurrences\FixAllContext.DiagnosticProvider.cs (8)
43internal static async Task<ImmutableDictionary<Document, ImmutableArray<Diagnostic>>> GetDocumentDiagnosticsToFixAsync(FixAllContext fixAllContext) 50static async Task<ImmutableDictionary<Document, ImmutableArray<Diagnostic>>> GetDocumentDiagnosticsToFixWorkerAsync(FixAllContext fixAllContext) 67internal static async Task<ImmutableDictionary<Project, ImmutableArray<Diagnostic>>> GetProjectDiagnosticsToFixAsync( 81var diagnostics = await fixAllContext.GetProjectDiagnosticsAsync(project).ConfigureAwait(false); 85return await ProducerConsumer<(Project project, ImmutableArray<Diagnostic> diagnostics)>.RunParallelAsync( 89var diagnostics = await fixAllContext.GetProjectDiagnosticsAsync(project).ConfigureAwait(false); 94var projectsAndDiagnostics = ImmutableDictionary.CreateBuilder<Project, ImmutableArray<Diagnostic>>(); 109return ImmutableDictionary<Project, ImmutableArray<Diagnostic>>.Empty;
CodeFixes\FixAllOccurrences\FixAllContextHelper.cs (15)
21public static async Task<ImmutableDictionary<Document, ImmutableArray<Diagnostic>>> GetDocumentDiagnosticsToFixAsync( 26var allDiagnostics = ImmutableArray<Diagnostic>.Empty; 39var documentDiagnostics = await fixAllContext.GetDocumentDiagnosticsAsync(document).ConfigureAwait(false); 40return ImmutableDictionary<Document, ImmutableArray<Diagnostic>>.Empty.SetItem(document, documentDiagnostics); 67var projectsToFix = project.Solution.Projects 76allDiagnostics = await ProducerConsumer<ImmutableArray<Diagnostic>>.RunParallelAsync( 88await foreach (var diagnostics in results) 102return ImmutableDictionary<Document, ImmutableArray<Diagnostic>>.Empty; 108static async Task<ImmutableDictionary<Document, ImmutableArray<Diagnostic>>> GetSpanDiagnosticsAsync( 110IEnumerable<KeyValuePair<Document, ImmutableArray<TextSpan>>> documentsAndSpans) 117var documentDiagnostics = await fixAllContext.GetDocumentSpanDiagnosticsAsync(document, span).ConfigureAwait(false); 126private static async Task<ImmutableDictionary<Document, ImmutableArray<Diagnostic>>> GetDocumentDiagnosticsToFixAsync( 128ImmutableArray<Diagnostic> diagnostics, 131var builder = ImmutableDictionary.CreateBuilder<Document, ImmutableArray<Diagnostic>>();
CodeFixes\FixAllOccurrences\FixAllProvider.cs (7)
21private protected static ImmutableArray<FixAllScope> DefaultSupportedFixAllScopes 58public static FixAllProvider Create(Func<FixAllContext, Document, ImmutableArray<Diagnostic>, Task<Document?>> fixAllAsync) 78Func<FixAllContext, Document, ImmutableArray<Diagnostic>, Task<Document?>> fixAllAsync, 79ImmutableArray<FixAllScope> supportedFixAllScopes) 99Func<FixAllContext, Document, ImmutableArray<Diagnostic>, Task<Document?>> fixAllAsync, 100ImmutableArray<FixAllScope> supportedFixAllScopes) : DocumentBasedFixAllProvider(supportedFixAllScopes) 102protected override Task<Document?> FixAllAsync(FixAllContext context, Document document, ImmutableArray<Diagnostic> diagnostics)
CodeFixes\FixAllOccurrences\FixAllState.cs (4)
65ImmutableDictionary<Document, ImmutableArray<Diagnostic>> diagnosticsToFix, 87ImmutableDictionary<Project, ImmutableArray<Diagnostic>> diagnosticsToFix, 106private static ImmutableHashSet<string> GetDiagnosticsIds(IEnumerable<ImmutableArray<Diagnostic>> diagnosticsCollection) 109foreach (var diagnostics in diagnosticsCollection)
CodeFixes\FixAllOccurrences\FixAllState.FixMultipleDiagnosticProvider.cs (9)
21public ImmutableDictionary<Document, ImmutableArray<Diagnostic>> DocumentDiagnosticsMap { get; } 22public ImmutableDictionary<Project, ImmutableArray<Diagnostic>> ProjectDiagnosticsMap { get; } 24public FixMultipleDiagnosticProvider(ImmutableDictionary<Document, ImmutableArray<Diagnostic>> diagnosticsMap) 27ProjectDiagnosticsMap = ImmutableDictionary<Project, ImmutableArray<Diagnostic>>.Empty; 30public FixMultipleDiagnosticProvider(ImmutableDictionary<Project, ImmutableArray<Diagnostic>> diagnosticsMap) 33DocumentDiagnosticsMap = ImmutableDictionary<Document, ImmutableArray<Diagnostic>>.Empty; 39ImmutableArray<Diagnostic> diagnostics; 61if (DocumentDiagnosticsMap.TryGetValue(document, out var diagnostics)) 71if (ProjectDiagnosticsMap.TryGetValue(project, out var diagnostics))
CodeFixes\FixAllOccurrences\TextChangeMerger.cs (4)
48var currentChanges = await _differenceService.GetTextChangesAsync( 63public async Task TryMergeChangesAsync(ImmutableArray<Document> newDocuments, CancellationToken cancellationToken) 82ImmutableArray<TextChange> currentChanges) 95ImmutableArray<TextChange> currentChanges,
CodeFixes\Supression\IConfigurationFixProvider.cs (2)
28Task<ImmutableArray<CodeFix>> GetFixesAsync(TextDocument document, TextSpan span, IEnumerable<Diagnostic> diagnostics, CancellationToken cancellationToken); 34Task<ImmutableArray<CodeFix>> GetFixesAsync(Project project, IEnumerable<Diagnostic> diagnostics, CancellationToken cancellationToken);
CodeFixesAndRefactorings\DefaultFixAllProviderHelpers.cs (4)
26Func<TFixAllContext, ImmutableArray<TFixAllContext>, Task<Solution?>> fixAllContextsAsync) 53Func<TFixAllContext, ImmutableArray<TFixAllContext>, Task<Solution?>> fixAllContextsAsync) 59Func<TFixAllContext, ImmutableArray<TFixAllContext>, Task<Solution?>> fixAllContextsAsync) 65Func<TFixAllContext, ImmutableArray<TFixAllContext>, Task<Solution?>> fixAllContextsAsync)
CodeFixesAndRefactorings\DocumentBasedFixAllProviderHelpers.cs (2)
25ImmutableArray<TFixAllContext> fixAllContexts, 56var cleanedTexts = await CodeAction.GetAllChangedOrAddedDocumentIds(originalSolution, cleanedSolution)
CodeFixesAndRefactorings\EnumArrayConverter.cs (1)
12public static ImmutableArray<TEnum> FromStringArray<TEnum>(string[] strings) where TEnum : struct, Enum
CodeFixesAndRefactorings\FixAllLogger.cs (2)
156public static void LogDiagnosticsStats(int correlationId, ImmutableDictionary<Document, ImmutableArray<Diagnostic>> documentsAndDiagnosticsToFixMap) 166public static void LogDiagnosticsStats(int correlationId, ImmutableDictionary<Project, ImmutableArray<Diagnostic>> projectsAndDiagnosticsToFixMap)
CodeFixesAndRefactorings\FixAllProviderInfo.cs (8)
20public readonly ImmutableArray<FixAllScope> SupportedScopes; 24ImmutableArray<FixAllScope> supportedScopes) 64var scopes = fixAllProvider.GetSupportedFixAllScopes().ToImmutableArrayOrEmpty(); 84var scopes = fixAllProvider.GetSupportedFixAllScopes().ToImmutableArrayOrEmpty(); 104var scopes = fixAllProvider.GetSupportedFixAllScopes().ToImmutableArrayOrEmpty(); 118ImmutableArray<FixAllScope> supportedScopes) : FixAllProviderInfo(fixAllProvider, supportedScopes) 127ImmutableArray<FixAllScope> supportedScopes) : FixAllProviderInfo(fixAllProvider, supportedScopes) 137ImmutableArray<FixAllScope> supportedScopes) : FixAllProviderInfo(fixAllProvider, supportedScopes)
CodeRefactorings\CodeRefactoringProvider.cs (1)
18private protected ImmutableArray<string> CustomTags = [];
CodeRefactorings\FixAllOccurences\DocumentBasedFixAllProvider.cs (5)
25/// <see cref="FixAllAsync(FixAllContext, Document, Optional{ImmutableArray{TextSpan}})"/> is invoked for each document for implementors to process. 29internal abstract class DocumentBasedFixAllProvider(ImmutableArray<FixAllScope> supportedFixAllScopes) : FixAllProvider 31private readonly ImmutableArray<FixAllScope> _supportedFixAllScopes = supportedFixAllScopes; 59protected abstract Task<Document?> FixAllAsync(FixAllContext fixAllContext, Document document, Optional<ImmutableArray<TextSpan>> fixAllSpans); 68private Task<Solution?> FixAllContextsHelperAsync(FixAllContext originalFixAllContext, ImmutableArray<FixAllContext> fixAllContexts)
CodeRefactorings\FixAllOccurences\FixAllContext.cs (1)
96public Task<ImmutableDictionary<Document, Optional<ImmutableArray<TextSpan>>>> GetFixAllSpansAsync(CancellationToken cancellationToken)
CodeRefactorings\FixAllOccurences\FixAllProvider.cs (7)
24private protected static ImmutableArray<FixAllScope> DefaultSupportedFixAllScopes 58public static FixAllProvider Create(Func<FixAllContext, Document, Optional<ImmutableArray<TextSpan>>, Task<Document?>> fixAllAsync) 78Func<FixAllContext, Document, Optional<ImmutableArray<TextSpan>>, Task<Document?>> fixAllAsync, 79ImmutableArray<FixAllScope> supportedFixAllScopes) 94Func<FixAllContext, Document, Optional<ImmutableArray<TextSpan>>, Task<Document?>> fixAllAsync, 95ImmutableArray<FixAllScope> supportedFixAllScopes) : DocumentBasedFixAllProvider(supportedFixAllScopes) 97protected override Task<Document?> FixAllAsync(FixAllContext context, Document document, Optional<ImmutableArray<TextSpan>> fixAllSpans)
CodeRefactorings\FixAllOccurences\FixAllState.cs (5)
90internal async Task<ImmutableDictionary<Document, Optional<ImmutableArray<TextSpan>>>> GetFixAllSpansAsync(CancellationToken cancellationToken) 99return ImmutableDictionary<Document, Optional<ImmutableArray<TextSpan>>>.Empty; 103return spansByDocument.Select(kvp => KeyValuePairUtil.Create(kvp.Key, new Optional<ImmutableArray<TextSpan>>(kvp.Value))) 120return ImmutableDictionary<Document, Optional<ImmutableArray<TextSpan>>>.Empty; 123return documentsToFix.ToImmutableDictionary(d => d, _ => default(Optional<ImmutableArray<TextSpan>>));
CodeRefactorings\SyntaxEditorBasedCodeRefactoringProvider.cs (5)
19protected static readonly ImmutableArray<FixAllScope> DefaultFixAllScopes = [FixAllScope.Document, FixAllScope.Project, FixAllScope.Solution]; 20protected static readonly ImmutableArray<FixAllScope> AllFixAllScopes = [FixAllScope.Document, FixAllScope.Project, FixAllScope.Solution, FixAllScope.ContainingType, FixAllScope.ContainingMember]; 22protected abstract ImmutableArray<FixAllScope> SupportedFixAllScopes { get; } 50Optional<ImmutableArray<TextSpan>> fixAllSpans, 81ImmutableArray<TextSpan> fixAllSpans,
Diagnostics\AbstractDiagnosticPropertiesService.cs (1)
22var assemblyIds = compilation.GetUnreferencedAssemblyIdentities(diagnostic);
Diagnostics\AnalysisResultPair.cs (15)
16private ImmutableDictionary<SyntaxTree, ImmutableDictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>>>? _lazyMergedSyntaxDiagnostics; 17private ImmutableDictionary<SyntaxTree, ImmutableDictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>>>? _lazyMergedSemanticDiagnostics; 18private ImmutableDictionary<AdditionalText, ImmutableDictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>>>? _lazyMergedAdditionalFileDiagnostics; 19private ImmutableDictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>>? _lazyMergedCompilationDiagnostics; 40public ImmutableDictionary<SyntaxTree, ImmutableDictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>>> MergedSyntaxDiagnostics 65public ImmutableDictionary<SyntaxTree, ImmutableDictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>>> MergedSemanticDiagnostics 90public ImmutableDictionary<AdditionalText, ImmutableDictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>>> MergedAdditionalFileDiagnostics 115public ImmutableDictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>> MergedCompilationDiagnostics 173private static ImmutableDictionary<TKey, ImmutableDictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>>> MergeDiagnostics<TKey>( 174ImmutableDictionary<TKey, ImmutableDictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>>> first, 175ImmutableDictionary<TKey, ImmutableDictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>>> second) 193private static ImmutableDictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>> MergeDiagnostics( 194ImmutableDictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>> first, 195ImmutableDictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>> second) 200if (!analyzerToDiagnostics.TryGetValue(analyzer, out var firstDiagnostics))
Diagnostics\CompilationWithAnalyzersPair.cs (8)
53public ImmutableArray<DiagnosticAnalyzer> ProjectAnalyzers => _projectCompilationWithAnalyzers?.Analyzers ?? []; 55public ImmutableArray<DiagnosticAnalyzer> HostAnalyzers => _hostCompilationWithAnalyzers?.Analyzers ?? []; 82public async Task<AnalysisResultPair?> GetAnalysisResultAsync(SyntaxTree tree, TextSpan? filterSpan, ImmutableArray<DiagnosticAnalyzer> projectAnalyzers, ImmutableArray<DiagnosticAnalyzer> hostAnalyzers, CancellationToken cancellationToken) 94public async Task<AnalysisResultPair?> GetAnalysisResultAsync(AdditionalText file, TextSpan? filterSpan, ImmutableArray<DiagnosticAnalyzer> projectAnalyzers, ImmutableArray<DiagnosticAnalyzer> hostAnalyzers, CancellationToken cancellationToken) 106public async Task<AnalysisResultPair?> GetAnalysisResultAsync(SemanticModel model, TextSpan? filterSpan, ImmutableArray<DiagnosticAnalyzer> projectAnalyzers, ImmutableArray<DiagnosticAnalyzer> hostAnalyzers, CancellationToken cancellationToken)
Diagnostics\DiagnosticAnalysisResult.cs (32)
36private readonly ImmutableDictionary<DocumentId, ImmutableArray<DiagnosticData>>? _syntaxLocals; 41private readonly ImmutableDictionary<DocumentId, ImmutableArray<DiagnosticData>>? _semanticLocals; 46private readonly ImmutableDictionary<DocumentId, ImmutableArray<DiagnosticData>>? _nonLocals; 51private readonly ImmutableArray<DiagnosticData> _others; 70ImmutableDictionary<DocumentId, ImmutableArray<DiagnosticData>> syntaxLocals, 71ImmutableDictionary<DocumentId, ImmutableArray<DiagnosticData>> semanticLocals, 72ImmutableDictionary<DocumentId, ImmutableArray<DiagnosticData>> nonLocals, 73ImmutableArray<DiagnosticData> others, 101syntaxLocals: ImmutableDictionary<DocumentId, ImmutableArray<DiagnosticData>>.Empty, 102semanticLocals: ImmutableDictionary<DocumentId, ImmutableArray<DiagnosticData>>.Empty, 103nonLocals: ImmutableDictionary<DocumentId, ImmutableArray<DiagnosticData>>.Empty, 118public static DiagnosticAnalysisResult CreateFromBuild(Project project, ImmutableArray<DiagnosticData> diagnostics, IEnumerable<DocumentId> initialDocuments) 148syntaxLocals: ImmutableDictionary<DocumentId, ImmutableArray<DiagnosticData>>.Empty, 150nonLocals: ImmutableDictionary<DocumentId, ImmutableArray<DiagnosticData>>.Empty, 160ImmutableDictionary<DocumentId, ImmutableArray<DiagnosticData>> syntaxLocalMap, 161ImmutableDictionary<DocumentId, ImmutableArray<DiagnosticData>> semanticLocalMap, 162ImmutableDictionary<DocumentId, ImmutableArray<DiagnosticData>> nonLocalMap, 163ImmutableArray<DiagnosticData> others, 202private ImmutableDictionary<DocumentId, ImmutableArray<DiagnosticData>>? GetMap(AnalysisKind kind) 211public ImmutableArray<DiagnosticData> GetAllDiagnostics() 226foreach (var data in _syntaxLocals.Values) 229foreach (var data in _semanticLocals.Values) 232foreach (var data in _nonLocals.Values) 241public ImmutableArray<DiagnosticData> GetDocumentDiagnostics(DocumentId documentId, AnalysisKind kind) 251if (map.TryGetValue(documentId, out var diagnostics)) 260public ImmutableArray<DiagnosticData> GetOtherDiagnostics() 285semanticLocals: ImmutableDictionary<DocumentId, ImmutableArray<DiagnosticData>>.Empty, 286nonLocals: ImmutableDictionary<DocumentId, ImmutableArray<DiagnosticData>>.Empty, 293ImmutableDictionary<DocumentId, ImmutableArray<DiagnosticData>>? syntaxLocals, 294ImmutableDictionary<DocumentId, ImmutableArray<DiagnosticData>>? semanticLocals, 295ImmutableDictionary<DocumentId, ImmutableArray<DiagnosticData>>? nonLocals) 324private static void VerifyDocumentMap(Project project, ImmutableDictionary<DocumentId, ImmutableArray<DiagnosticData>> map)
Diagnostics\DiagnosticAnalysisResultBuilder.cs (6)
33public readonly ImmutableDictionary<DocumentId, ImmutableArray<DiagnosticData>> SyntaxLocals => Convert(_lazySyntaxLocals); 34public readonly ImmutableDictionary<DocumentId, ImmutableArray<DiagnosticData>> SemanticLocals => Convert(_lazySemanticLocals); 35public readonly ImmutableDictionary<DocumentId, ImmutableArray<DiagnosticData>> NonLocals => Convert(_lazyNonLocals); 36public readonly ImmutableArray<DiagnosticData> Others => _lazyOthers == null ? [] : [.. _lazyOthers]; 195private static ImmutableDictionary<DocumentId, ImmutableArray<DiagnosticData>> Convert(Dictionary<DocumentId, List<DiagnosticData>>? map) 198? ImmutableDictionary<DocumentId, ImmutableArray<DiagnosticData>>.Empty
Diagnostics\DiagnosticAnalyzerInfoCache.cs (12)
55private sealed class DiagnosticDescriptorsInfo(ImmutableArray<DiagnosticDescriptor> supportedDescriptors, bool telemetryAllowed) 57public readonly ImmutableArray<DiagnosticDescriptor> SupportedDescriptors = supportedDescriptors; 62private sealed class SuppressionDescriptorsInfo(ImmutableArray<SuppressionDescriptor> supportedSuppressions) 64public readonly ImmutableArray<SuppressionDescriptor> SupportedSuppressions = supportedSuppressions; 89public ImmutableArray<DiagnosticDescriptor> GetDiagnosticDescriptors(DiagnosticAnalyzer analyzer) 95public ImmutableArray<SuppressionDescriptor> GetDiagnosticSuppressions(DiagnosticSuppressor suppressor) 102public ImmutableArray<DiagnosticDescriptor> GetNonCompilationEndDiagnosticDescriptors(DiagnosticAnalyzer analyzer) 114public ImmutableArray<DiagnosticDescriptor> GetCompilationEndDiagnosticDescriptors(DiagnosticAnalyzer analyzer) 143ImmutableArray<DiagnosticDescriptor> descriptors; 166ImmutableArray<SuppressionDescriptor> suppressions; 182private static bool IsTelemetryCollectionAllowed(DiagnosticAnalyzer analyzer, ImmutableArray<DiagnosticDescriptor> descriptors) 187private void PopulateIdToDescriptorMap(ImmutableArray<DiagnosticDescriptor> descriptors)
Diagnostics\DiagnosticData.cs (8)
28ImmutableArray<string> customTags, 32ImmutableArray<DiagnosticDataLocation> additionalLocations = default, 61public readonly ImmutableArray<string> CustomTags = customTags; 73public readonly ImmutableArray<DiagnosticDataLocation> AdditionalLocations = additionalLocations.NullToEmpty(); 99public DiagnosticData WithLocations(DiagnosticDataLocation location, ImmutableArray<DiagnosticDataLocation> additionalLocations) 157public Diagnostic ToDiagnostic(Location location, ImmutableArray<Location> additionalLocations) 225ImmutableArray<DiagnosticDataLocation> additionalLocations, 254private static ImmutableArray<DiagnosticDataLocation> GetAdditionalLocations(TextDocument document, Diagnostic diagnostic)
Diagnostics\DocumentAnalysisScope.cs (6)
24ImmutableArray<DiagnosticAnalyzer> projectAnalyzers, 25ImmutableArray<DiagnosticAnalyzer> hostAnalyzers, 44public ImmutableArray<DiagnosticAnalyzer> ProjectAnalyzers { get; } 45public ImmutableArray<DiagnosticAnalyzer> HostAnalyzers { get; } 65public DocumentAnalysisScope WithAnalyzers(ImmutableArray<DiagnosticAnalyzer> projectAnalyzers, ImmutableArray<DiagnosticAnalyzer> hostAnalyzers)
Diagnostics\DocumentDiagnosticAnalyzer.cs (2)
20public abstract Task<ImmutableArray<Diagnostic>> AnalyzeSyntaxAsync(Document document, CancellationToken cancellationToken); 22public abstract Task<ImmutableArray<Diagnostic>> AnalyzeSemanticsAsync(Document document, CancellationToken cancellationToken);
Diagnostics\Extensions.cs (19)
24public static async Task<ImmutableArray<Diagnostic>> ToDiagnosticsAsync(this IEnumerable<DiagnosticData> diagnostics, Project project, CancellationToken cancellationToken) 35public static ValueTask<ImmutableArray<Location>> ConvertLocationsAsync(this IReadOnlyCollection<DiagnosticDataLocation> locations, Project project, CancellationToken cancellationToken) 103ImmutableArray<Diagnostic> additionalPragmaSuppressionDiagnostics, 107ImmutableArray<DiagnosticAnalyzer> projectAnalyzers, 108ImmutableArray<DiagnosticAnalyzer> hostAnalyzers, 148ImmutableDictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>>? diagnosticsByAnalyzerMap; 215var diagnostics = additionalPragmaSuppressionDiagnostics.WhereAsArray(d => d.Location.SourceTree == treeToAnalyze); 239ImmutableDictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>> diagnosticsByAnalyzer, 245ImmutableArray<string> diagnosticIdsToFilter, 248if (diagnosticsByAnalyzer.TryGetValue(analyzer, out var diagnostics)) 256ImmutableArray<Diagnostic> diagnostics, 262ImmutableArray<string> diagnosticIdsToFilter, 305public static ImmutableArray<Diagnostic> Filter( 306this ImmutableArray<Diagnostic> diagnostics, 307ImmutableArray<string> diagnosticIdsToFilter, 322public static async Task<(AnalysisResultPair? analysisResult, ImmutableArray<Diagnostic> additionalDiagnostics)> GetAnalysisResultAsync( 330var additionalDiagnostics = await compilationWithAnalyzers.GetPragmaSuppressionAnalyzerDiagnosticsAsync( 370private static async Task<ImmutableArray<Diagnostic>> GetPragmaSuppressionAnalyzerDiagnosticsAsync( 377var hostAnalyzers = documentAnalysisScope?.HostAnalyzers ?? compilationWithAnalyzers.HostAnalyzers;
Diagnostics\FileContentLoadAnalyzer.cs (1)
22public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics
Diagnostics\GeneratorDiagnosticsPlaceholderAnalyzer.cs (1)
21public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => [];
Diagnostics\HostDiagnosticAnalyzers.cs (27)
31private readonly ConcurrentDictionary<string, ImmutableDictionary<object, ImmutableArray<DiagnosticAnalyzer>>> _hostDiagnosticAnalyzersPerLanguageMap; 40private readonly Lazy<ImmutableDictionary<object, ImmutableArray<DiagnosticAnalyzer>>> _lazyHostDiagnosticAnalyzersPerReferenceMap; 61_hostDiagnosticAnalyzersPerLanguageMap = new ConcurrentDictionary<string, ImmutableDictionary<object, ImmutableArray<DiagnosticAnalyzer>>>(concurrencyLevel: 2, capacity: 2); 62_lazyHostDiagnosticAnalyzersPerReferenceMap = new Lazy<ImmutableDictionary<object, ImmutableArray<DiagnosticAnalyzer>>>(() => CreateDiagnosticAnalyzersPerReferenceMap(_hostAnalyzerReferencesMap), isThreadSafe: true); 75public ImmutableDictionary<object, ImmutableArray<DiagnosticAnalyzer>> GetOrCreateHostDiagnosticAnalyzersPerReference(string language) 78public ImmutableDictionary<string, ImmutableArray<DiagnosticDescriptor>> GetDiagnosticDescriptorsPerReference(DiagnosticAnalyzerInfoCache infoCache) 85public ImmutableDictionary<string, ImmutableArray<DiagnosticDescriptor>> GetDiagnosticDescriptorsPerReference(DiagnosticAnalyzerInfoCache infoCache, Project project) 92private static ImmutableDictionary<string, ImmutableArray<DiagnosticDescriptor>> ConvertReferenceIdentityToName( 93ImmutableDictionary<object, ImmutableArray<DiagnosticDescriptor>> descriptorsPerReference, 96var builder = ImmutableDictionary.CreateBuilder<string, ImmutableArray<DiagnosticDescriptor>>(); 108if (builder.TryGetValue(displayName, out var existing)) 124public ImmutableDictionary<object, ImmutableArray<DiagnosticAnalyzer>> CreateDiagnosticAnalyzersPerReference(Project project) 136public ImmutableDictionary<object, ImmutableArray<DiagnosticAnalyzer>> CreateProjectDiagnosticAnalyzersPerReference(Project project) 139public ImmutableDictionary<object, ImmutableArray<DiagnosticAnalyzer>> CreateProjectDiagnosticAnalyzersPerReference(IReadOnlyList<AnalyzerReference> projectAnalyzerReferences, string language) 159private static ImmutableDictionary<object, ImmutableArray<DiagnosticDescriptor>> CreateDiagnosticDescriptorsPerReference( 161ImmutableDictionary<object, ImmutableArray<DiagnosticAnalyzer>> analyzersMap) 163var builder = ImmutableDictionary.CreateBuilder<object, ImmutableArray<DiagnosticDescriptor>>(); 180private ImmutableDictionary<object, ImmutableArray<DiagnosticAnalyzer>> CreateHostDiagnosticAnalyzersAndBuildMap(string language) 184var builder = ImmutableDictionary.CreateBuilder<object, ImmutableArray<DiagnosticAnalyzer>>(); 187var analyzers = reference.GetAnalyzers(language); 202private void UpdateCompilerAnalyzerMapIfNeeded(string language, ImmutableArray<DiagnosticAnalyzer> analyzers) 219private static ImmutableDictionary<object, ImmutableArray<DiagnosticAnalyzer>> CreateDiagnosticAnalyzersPerReferenceMap( 222var builder = ImmutableDictionary.CreateBuilder<object, ImmutableArray<DiagnosticAnalyzer>>(); 227var analyzers = language == null ? reference.Value.GetAnalyzersForAllLanguages() : reference.Value.GetAnalyzers(language); 279private static ImmutableDictionary<object, ImmutableArray<DiagnosticAnalyzer>> MergeDiagnosticAnalyzerMap( 280ImmutableDictionary<object, ImmutableArray<DiagnosticAnalyzer>> map1, 281ImmutableDictionary<object, ImmutableArray<DiagnosticAnalyzer>> map2)
Diagnostics\ProjectDiagnosticAnalyzer.cs (1)
20public abstract Task<ImmutableArray<Diagnostic>> AnalyzeProjectAsync(Project project, CancellationToken cancellationToken);
Diagnostics\SerializableDiagnosticAnalysisResultMap.cs (20)
13ImmutableArray<(string analyzerId, SerializableDiagnosticMap diagnosticMap)> diagnostics, 14ImmutableArray<(string analyzerId, AnalyzerTelemetryInfo)> telemetry) 17ImmutableArray<(string, SerializableDiagnosticMap)>.Empty, 18ImmutableArray<(string, AnalyzerTelemetryInfo)>.Empty); 21internal readonly ImmutableArray<(string analyzerId, SerializableDiagnosticMap diagnosticMap)> Diagnostics = diagnostics; 24internal readonly ImmutableArray<(string analyzerId, AnalyzerTelemetryInfo telemetry)> Telemetry = telemetry; 29ImmutableArray<(DocumentId, ImmutableArray<DiagnosticData>)> syntax, 30ImmutableArray<(DocumentId, ImmutableArray<DiagnosticData>)> semantic, 31ImmutableArray<(DocumentId, ImmutableArray<DiagnosticData>)> nonLocal, 32ImmutableArray<DiagnosticData> other) 35public readonly ImmutableArray<(DocumentId, ImmutableArray<DiagnosticData>)> Syntax = syntax; 38public readonly ImmutableArray<(DocumentId, ImmutableArray<DiagnosticData>)> Semantic = semantic; 41public readonly ImmutableArray<(DocumentId, ImmutableArray<DiagnosticData>)> NonLocal = nonLocal; 44public readonly ImmutableArray<DiagnosticData> Other = other;
Diagnostics\SkippedHostAnalyzersInfo.cs (7)
23ImmutableDictionary<DiagnosticAnalyzer, ImmutableArray<string>>.Empty); 37public ImmutableDictionary<DiagnosticAnalyzer, ImmutableArray<string>> FilteredDiagnosticIdsForAnalyzers { get; } 41ImmutableDictionary<DiagnosticAnalyzer, ImmutableArray<string>> filteredDiagnosticIdsForAnalyzers) 84var partiallySkippedHostAnalyzersBuilder = ImmutableDictionary.CreateBuilder<DiagnosticAnalyzer, ImmutableArray<string>>(); 98if (!ShouldIncludeHostAnalyzer(hostAnalyzer, projectAnalyzerDiagnosticIds, projectSuppressedDiagnosticIds, analyzerInfoCache, out var skippedIdsForAnalyzer)) 110var filteredDiagnosticIdsForAnalyzers = partiallySkippedHostAnalyzersBuilder.ToImmutable(); 124out ImmutableArray<string> skippedDiagnosticIdsForAnalyzer)
Differencing\EditScript.cs (1)
29public ImmutableArray<Edit<TNode>> Edits { get; }
Differencing\LongestCommonImmutableArraySubsequence.cs (7)
15internal abstract class LongestCommonImmutableArraySubsequence<TElement> : LongestCommonSubsequence<ImmutableArray<TElement>> 19protected sealed override bool ItemsEqual(ImmutableArray<TElement> oldSequence, int oldIndex, ImmutableArray<TElement> newSequence, int newIndex) 22public IEnumerable<SequenceEdit> GetEdits(ImmutableArray<TElement> oldSequence, ImmutableArray<TElement> newSequence) 25public double ComputeDistance(ImmutableArray<TElement> oldSequence, ImmutableArray<TElement> newSequence)
Editing\SymbolEditor.cs (3)
129private ImmutableDictionary<string, ImmutableArray<ProjectId>> _assemblyNameToProjectIdMap; 131private ImmutableArray<ProjectId> GetProjectsForAssembly(IAssemblySymbol assembly) 137if (!_assemblyNameToProjectIdMap.TryGetValue(assembly.Name, out var projectIds))
Editing\SyntaxGenerator.cs (7)
235ImmutableArray<ISymbol>.CastUp(method.ExplicitInterfaceImplementations)); 401ImmutableArray<ISymbol>.CastUp(property.ExplicitInterfaceImplementations)); 462ImmutableArray<ISymbol>.CastUp(indexer.ExplicitInterfaceImplementations)); 501ImmutableArray<ISymbol>.CastUp(symbol.ExplicitInterfaceImplementations)); 860private SyntaxNode WithTypeParametersAndConstraints(SyntaxNode declaration, ImmutableArray<ITypeParameterSymbol> typeParameters) 887SyntaxNode declaration, ImmutableArray<ISymbol> explicitInterfaceImplementations, bool removeDefaults = true); 1083internal abstract ImmutableArray<SyntaxNode> GetTypeInheritance(SyntaxNode declaration);
ExtensionManager\IExtensionManagerExtensions.cs (12)
90public static Func<SyntaxNode, ImmutableArray<TExtension>> CreateNodeExtensionGetter<TExtension>( 91this IExtensionManager extensionManager, IEnumerable<TExtension> extensions, Func<TExtension, ImmutableArray<Type>> nodeTypeGetter) 93var map = new Dictionary<Type, ImmutableArray<TExtension>>(); 100var types = extensionManager.PerformFunction( 104map[type] = map.TryGetValue(type, out var existing) 110return n => map.TryGetValue(n.GetType(), out var extensions) ? extensions : []; 114public static Func<SyntaxToken, ImmutableArray<TExtension>> CreateTokenExtensionGetter<TExtension>( 115this IExtensionManager extensionManager, IEnumerable<TExtension> extensions, Func<TExtension, ImmutableArray<int>> tokenKindGetter) 117var map = new Dictionary<int, ImmutableArray<TExtension>>(); 124var kinds = extensionManager.PerformFunction( 128map[kind] = map.TryGetValue(kind, out var existing) 134return t => map.TryGetValue(t.RawKind, out var extensions) ? extensions : [];
ExternalAccess\Pythia\Api\PythiaTypeInferenceServiceWrapper.cs (1)
22public ImmutableArray<ITypeSymbol> InferTypes(SemanticModel semanticModel, int position, string? name, CancellationToken cancellationToken)
FindSymbols\Declarations\DeclarationFinder.cs (4)
61var symbolsWithName = symbols.ToImmutableArray(); 87var symbols = await info.FindAsync(query, lazyAssembly, filter, cancellationToken).ConfigureAwait(false); 92internal static ImmutableArray<ISymbol> FilterByCriteria(ImmutableArray<ISymbol> symbols, SymbolFilter criteria)
FindSymbols\Declarations\DeclarationFinder_AllDeclarations.cs (4)
23public static async Task<ImmutableArray<ISymbol>> FindAllDeclarationsWithNormalQueryAsync( 42var result = await client.TryInvokeAsync<IRemoteSymbolFinderService, ImmutableArray<SerializableSymbolAndProjectId>>( 59internal static async Task<ImmutableArray<ISymbol>> FindAllDeclarationsWithNormalQueryInCurrentProcessAsync( 158private static async Task<ImmutableArray<ISymbol>> RehydrateAsync(
FindSymbols\Declarations\DeclarationFinder_SourceDeclarations.cs (15)
25public static async Task<ImmutableArray<ISymbol>> FindSourceDeclarationsWithNormalQueryAsync( 46var result = await client.TryInvokeAsync<IRemoteSymbolFinderService, ImmutableArray<SerializableSymbolAndProjectId>>( 63public static async Task<ImmutableArray<ISymbol>> FindSourceDeclarationsWithNormalQueryAsync( 84var result = await client.TryInvokeAsync<IRemoteSymbolFinderService, ImmutableArray<SerializableSymbolAndProjectId>>( 101public static async Task<ImmutableArray<ISymbol>> FindSourceDeclarationsWithPatternAsync( 117var result = await client.TryInvokeAsync<IRemoteSymbolFinderService, ImmutableArray<SerializableSymbolAndProjectId>>( 134public static async Task<ImmutableArray<ISymbol>> FindSourceDeclarationsWithPatternAsync( 150var result = await client.TryInvokeAsync<IRemoteSymbolFinderService, ImmutableArray<SerializableSymbolAndProjectId>>( 175internal static async Task<ImmutableArray<ISymbol>> FindSourceDeclarationsWithNormalQueryInCurrentProcessAsync( 190internal static async Task<ImmutableArray<ISymbol>> FindSourceDeclarationsWithNormalQueryInCurrentProcessAsync( 202private static async Task<ImmutableArray<ISymbol>> FindSourceDeclarationsWithPatternInCurrentProcessAsync( 203string pattern, Func<SearchQuery, Task<ImmutableArray<ISymbol>>> searchAsync) 219var symbolAndProjectIds = await searchAsync(query).ConfigureAwait(false); 237internal static Task<ImmutableArray<ISymbol>> FindSourceDeclarationsWithPatternInCurrentProcessAsync( 245internal static Task<ImmutableArray<ISymbol>> FindSourceDeclarationsWithPatternInCurrentProcessAsync(
FindSymbols\FindReferences\BaseTypeFinder.cs (3)
14public static ImmutableArray<INamedTypeSymbol> FindBaseTypesAndInterfaces(INamedTypeSymbol type) 17public static ImmutableArray<ISymbol> FindOverriddenAndImplementedMembers( 80private static ImmutableArray<INamedTypeSymbol> FindBaseTypes(INamedTypeSymbol type)
FindSymbols\FindReferences\DependentProjectsFinder.cs (12)
37ImmutableArray<(Project project, bool hasInternalsAccess)>>> s_solutionToDependentProjectMap = new(); 40public static async Task<ImmutableArray<Project>> GetDependentProjectsAsync( 41Solution solution, ImmutableArray<ISymbol> symbols, IImmutableSet<Project> projects, CancellationToken cancellationToken) 49var dependentProjects = await GetDependentProjectsWorkerAsync(solution, symbols, cancellationToken).ConfigureAwait(false); 73private static async Task<ImmutableArray<Project>> GetDependentProjectsWorkerAsync( 74Solution solution, ImmutableArray<ISymbol> symbols, CancellationToken cancellationToken) 85var dependentProjects = await ComputeDependentProjectsAsync( 89var filteredProjects = maxVisibility == SymbolVisibility.Internal 105Solution solution, ImmutableArray<ISymbol> symbols, CancellationToken cancellationToken) 134private static async Task<ImmutableArray<(Project project, bool hasInternalsAccess)>> ComputeDependentProjectsAsync( 143ImmutableArray<(Project project, bool hasInternalsAccess)> dependentProjects; 162static async Task<ImmutableArray<(Project project, bool hasInternalsAccess)>> ComputeDependentProjectsWorkerAsync(
FindSymbols\FindReferences\DependentTypeFinder.cs (6)
60private static async Task<ImmutableArray<INamedTypeSymbol>> DescendInheritanceTreeAsync( 102var orderedProjectsToExamine = GetOrderedProjectsToExamine( 447private static ImmutableArray<Project> GetOrderedProjectsToExamine( 452var projectsToExamine = GetProjectsToExamineWorker( 461private static ImmutableArray<Project> OrderTopologically( 478private static ImmutableArray<Project> GetProjectsToExamineWorker(
FindSymbols\FindReferences\DependentTypeFinder_DerivedClasses.cs (1)
15private static Task<ImmutableArray<INamedTypeSymbol>> FindDerivedClassesInCurrentProcessAsync(
FindSymbols\FindReferences\DependentTypeFinder_DerivedInterfaces.cs (1)
15private static Task<ImmutableArray<INamedTypeSymbol>> FindDerivedInterfacesInCurrentProcessAsync(
FindSymbols\FindReferences\DependentTypeFinder_ImplementingTypes.cs (2)
14private static async Task<ImmutableArray<INamedTypeSymbol>> FindImplementingTypesInCurrentProcessAsync( 44var allTypes = await DescendInheritanceTreeAsync(type, solution, projects,
FindSymbols\FindReferences\DependentTypeFinder_Remote.cs (6)
18public static async Task<ImmutableArray<INamedTypeSymbol>> FindTypesAsync( 31var projectIds = projects?.Where(p => RemoteSupportedLanguages.IsSupported(p.Language)).SelectAsArray(p => p.Id) ?? default; 33var result = await client.TryInvokeAsync<IRemoteDependentTypeFinderService, ImmutableArray<SerializableSymbolAndProjectId>>( 52public static async Task<ImmutableArray<INamedTypeSymbol>> FindTypesInCurrentProcessAsync( 82private static async Task<ImmutableArray<INamedTypeSymbol>> RehydrateAsync(Solution solution, ImmutableArray<SerializableSymbolAndProjectId> values, CancellationToken cancellationToken)
FindSymbols\FindReferences\Finders\AbstractMemberScopedReferenceFinder.cs (1)
67var tokens = FindMatchingIdentifierTokens(state, symbol.Name, cancellationToken);
FindSymbols\FindReferences\Finders\AbstractMethodOrPropertyOrEventSymbolReferenceFinder.cs (1)
15protected static ImmutableArray<IMethodSymbol> GetReferencedAccessorSymbols(
FindSymbols\FindReferences\Finders\AbstractReferenceFinder.cs (17)
27public abstract Task<ImmutableArray<string>> DetermineGlobalAliasesAsync( 30public abstract ValueTask<ImmutableArray<ISymbol>> DetermineCascadedSymbolsAsync( 172var tokens = FindMatchingIdentifierTokens(state, identifier, cancellationToken); 176public static ImmutableArray<SyntaxToken> FindMatchingIdentifierTokens(FindReferencesDocumentState state, string identifier, CancellationToken cancellationToken) 182ImmutableArray<SyntaxToken> tokens, 250var aliasSymbols = GetLocalAliasSymbols(state, initialReferences, cancellationToken); 262var aliasSymbols = GetLocalAliasSymbols(state, initialReferences, cancellationToken); 267private static ImmutableArray<IAliasSymbol> GetLocalAliasSymbols( 286ImmutableArray<IAliasSymbol> localAliasSymbols, 308ImmutableArray<IAliasSymbol> localAliasSymbols, 750internal static ImmutableArray<(string key, string value)> GetAdditionalFindUsagesProperties( 779internal static ImmutableArray<(string key, string value)> GetAdditionalFindUsagesProperties(ISymbol definition) 812protected virtual Task<ImmutableArray<string>> DetermineGlobalAliasesAsync( 818public sealed override Task<ImmutableArray<string>> DetermineGlobalAliasesAsync( 844public sealed override ValueTask<ImmutableArray<ISymbol>> DetermineCascadedSymbolsAsync( 857protected virtual ValueTask<ImmutableArray<ISymbol>> DetermineCascadedSymbolsAsync( 870protected static async Task<ImmutableArray<string>> GetAllMatchingGlobalAliasNamesAsync(
FindSymbols\FindReferences\Finders\AbstractTypeParameterSymbolReferenceFinder.cs (2)
31var tokens = FindMatchingIdentifierTokens(state, symbol.Name, cancellationToken); 55ImmutableArray<SyntaxToken> objectCreationTokens,
FindSymbols\FindReferences\Finders\ConstructorSymbolReferenceFinder.cs (1)
27protected override Task<ImmutableArray<string>> DetermineGlobalAliasesAsync(IMethodSymbol symbol, Project project, CancellationToken cancellationToken)
FindSymbols\FindReferences\Finders\EventSymbolReferenceFinder.cs (3)
20protected sealed override ValueTask<ImmutableArray<ISymbol>> DetermineCascadedSymbolsAsync( 26var backingFields = symbol.ContainingType.GetMembers() 31var associatedNamedTypes = symbol.ContainingType.GetTypeMembers()
FindSymbols\FindReferences\Finders\FieldSymbolReferenceFinder.cs (2)
18protected override ValueTask<ImmutableArray<ISymbol>> DetermineCascadedSymbolsAsync( 26: new(ImmutableArray<ISymbol>.Empty);
FindSymbols\FindReferences\Finders\ILanguageServiceReferenceFinder.cs (1)
19Task<ImmutableArray<ISymbol>> DetermineCascadedSymbolsAsync(
FindSymbols\FindReferences\Finders\IReferenceFinder.cs (2)
27Task<ImmutableArray<string>> DetermineGlobalAliasesAsync( 38ValueTask<ImmutableArray<ISymbol>> DetermineCascadedSymbolsAsync(
FindSymbols\FindReferences\Finders\MethodTypeParameterSymbolReferenceFinder.cs (1)
19protected override ValueTask<ImmutableArray<ISymbol>> DetermineCascadedSymbolsAsync(
FindSymbols\FindReferences\Finders\NamedTypeSymbolReferenceFinder.cs (3)
22protected override Task<ImmutableArray<string>> DetermineGlobalAliasesAsync(INamedTypeSymbol symbol, Project project, CancellationToken cancellationToken) 27protected override ValueTask<ImmutableArray<ISymbol>> DetermineCascadedSymbolsAsync( 47private static void Add<TSymbol>(ArrayBuilder<ISymbol> result, ImmutableArray<TSymbol> enumerable) where TSymbol : ISymbol
FindSymbols\FindReferences\Finders\NamespaceSymbolReferenceFinder.cs (2)
21protected override Task<ImmutableArray<string>> DetermineGlobalAliasesAsync(INamespaceSymbol symbol, Project project, CancellationToken cancellationToken) 117var tokens = FindMatchingIdentifierTokens(state, name, cancellationToken);
FindSymbols\FindReferences\Finders\OrdinaryMethodReferenceFinder.cs (2)
22protected override ValueTask<ImmutableArray<ISymbol>> DetermineCascadedSymbolsAsync( 35private static ImmutableArray<ISymbol> GetOtherPartsOfPartial(IMethodSymbol symbol)
FindSymbols\FindReferences\Finders\ParameterSymbolReferenceFinder.cs (2)
53protected override async ValueTask<ImmutableArray<ISymbol>> DetermineCascadedSymbolsAsync( 234ImmutableArray<IParameterSymbol>? parameters)
FindSymbols\FindReferences\Finders\PreprocessingSymbolReferenceFinder.cs (1)
47var tokens = FindMatchingIdentifierTokens(state, symbol.Name, cancellationToken);
FindSymbols\FindReferences\Finders\PropertyAccessorSymbolReferenceFinder.cs (3)
19protected override ValueTask<ImmutableArray<ISymbol>> DetermineCascadedSymbolsAsync( 28? new(ImmutableArray<ISymbol>.Empty) 85var accessors = GetReferencedAccessorSymbols(
FindSymbols\FindReferences\Finders\PropertySymbolReferenceFinder.cs (3)
30protected override ValueTask<ImmutableArray<ISymbol>> DetermineCascadedSymbolsAsync( 84var containingTypeSyntaxes = containingType.DeclaringSyntaxReferences.SelectAsArray(r => r.GetSyntax(cancellationToken)); 153var accessors = GetReferencedAccessorSymbols(
FindSymbols\FindReferences\Finders\ReferenceFinders.cs (2)
12public static readonly ImmutableArray<IReferenceFinder> DefaultRenameReferenceFinders = 39internal static readonly ImmutableArray<IReferenceFinder> DefaultReferenceFinders = [.. DefaultRenameReferenceFinders, new ConstructorInitializerSymbolReferenceFinder()];
FindSymbols\FindReferences\FindReferenceCache.cs (11)
67private readonly ConcurrentDictionary<string, ImmutableArray<SyntaxToken>> _identifierCache; 70private ImmutableArray<SyntaxToken> _constructorInitializerCache; 71private ImmutableArray<SyntaxToken> _newKeywordsCache; 110public ImmutableArray<SyntaxToken> FindMatchingIdentifierTokens( 123if (_identifierCache.TryGetValue(identifier, out var result)) 152private ImmutableArray<SyntaxToken> FindMatchingIdentifierTokensFromTree( 190private ImmutableArray<SyntaxToken> FindMatchingTokensFromText<TArgs>( 213public ImmutableArray<SyntaxToken> GetConstructorInitializerTokens(CancellationToken cancellationToken) 222ImmutableArray<SyntaxToken> GetConstructorInitializerTokensWorker() 239public ImmutableArray<SyntaxToken> GetNewKeywordTokens(CancellationToken cancellationToken) 246ImmutableArray<SyntaxToken> GetNewKeywordTokensWorker()
FindSymbols\FindReferences\FindReferencesSearchEngine.BidirectionalSymbolSet.cs (1)
44public override ImmutableArray<ISymbol> GetAllSymbols()
FindSymbols\FindReferences\FindReferencesSearchEngine.cs (13)
27ImmutableArray<IReferenceFinder> finders, 40private readonly ImmutableArray<IReferenceFinder> _finders = finders; 64ImmutableArray<ISymbol> symbols, CancellationToken cancellationToken) 83ImmutableArray<ISymbol> symbols, Action<Reference> onReferenceFound, CancellationToken cancellationToken) 105var allSymbols = symbolSet.GetAllSymbols(); 126private async IAsyncEnumerable<(Project project, ImmutableArray<(ISymbol symbol, SymbolGroup group)> allSymbols)> GetProjectsAndSymbolsToSearchSeriallyAsync( 128ImmutableArray<Project> projectsToSearch, 164private async Task<ImmutableArray<(ISymbol symbol, SymbolGroup group)>> ReportGroupsSeriallyAsync( 165ImmutableArray<ISymbol> symbols, Dictionary<ISymbol, SymbolGroup> symbolToGroup, CancellationToken cancellationToken) 206private Task<ImmutableArray<Project>> GetProjectsToSearchAsync( 207ImmutableArray<ISymbol> symbols, CancellationToken cancellationToken) 217Project project, ImmutableArray<(ISymbol symbol, SymbolGroup group)> allSymbols, Action<Reference> onReferenceFound, CancellationToken cancellationToken) 344ImmutableArray<(ISymbol symbol, SymbolGroup group)> allSymbols,
FindSymbols\FindReferences\FindReferencesSearchEngine.NonCascadingSymbolSet.cs (2)
19private readonly ImmutableArray<ISymbol> _symbols = [.. searchSymbols]; 21public override ImmutableArray<ISymbol> GetAllSymbols()
FindSymbols\FindReferences\FindReferencesSearchEngine.SymbolSet.cs (2)
44public abstract ImmutableArray<ISymbol> GetAllSymbols(); 186FindReferencesSearchEngine engine, ImmutableArray<ISymbol> symbols, MetadataUnifyingSymbolHashSet seenSymbols, ArrayBuilder<ISymbol> workQueue, CancellationToken cancellationToken)
FindSymbols\FindReferences\FindReferencesSearchEngine.UnidirectionalSymbolSet.cs (1)
37public override ImmutableArray<ISymbol> GetAllSymbols()
FindSymbols\FindReferences\FindReferencesSearchEngine_FindReferencesInDocuments.cs (5)
75async ValueTask PerformSearchInProjectSeriallyAsync(ImmutableArray<(ISymbol symbol, SymbolGroup group)> symbols, Project project) 100ImmutableArray<(ISymbol symbol, SymbolGroup group)> symbols, 157var converted = await ConvertLocationsAsync(@this, values, symbol, group, cancellationToken).ConfigureAwait(false); 164static async Task<ImmutableArray<(SymbolGroup group, ISymbol symbol, ReferenceLocation location)>> ConvertLocationsAsync( 180var tokens = AbstractReferenceFinder.FindMatchingIdentifierTokens(state, symbol.Name, cancellationToken);
FindSymbols\FindReferences\IRemoteDependentTypeFinderService.cs (2)
14ValueTask<ImmutableArray<SerializableSymbolAndProjectId>> FindTypesAsync( 17ImmutableArray<ProjectId> projectsOpt,
FindSymbols\FindReferences\NoOpStreamingFindReferencesProgress.cs (1)
31public ValueTask OnReferencesFoundAsync(ImmutableArray<(SymbolGroup group, ISymbol symbol, ReferenceLocation location)> references, CancellationToken cancellationToken) => default;
FindSymbols\FindReferences\StreamingFindReferencesProgress.cs (1)
57public ValueTask OnReferencesFoundAsync(ImmutableArray<(SymbolGroup group, ISymbol symbol, ReferenceLocation location)> references, CancellationToken cancellationToken)
FindSymbols\IRemoteSymbolFinderService.cs (7)
23ValueTask OnReferencesFoundAsync(RemoteServiceCallbackId callbackId, ImmutableArray<(SerializableSymbolGroup group, SerializableSymbolAndProjectId definition, SerializableReferenceLocation reference)> references, CancellationToken cancellationToken); 30ValueTask FindReferencesAsync(Checksum solutionChecksum, RemoteServiceCallbackId callbackId, SerializableSymbolAndProjectId symbolAndProjectIdArg, ImmutableArray<DocumentId> documentArgs, 35ValueTask<ImmutableArray<SerializableSymbolAndProjectId>> FindAllDeclarationsWithNormalQueryAsync( 38ValueTask<ImmutableArray<SerializableSymbolAndProjectId>> FindSolutionSourceDeclarationsWithNormalQueryAsync( 41ValueTask<ImmutableArray<SerializableSymbolAndProjectId>> FindProjectSourceDeclarationsWithNormalQueryAsync( 44ValueTask<ImmutableArray<SerializableSymbolAndProjectId>> FindSolutionSourceDeclarationsWithPatternAsync( 47ValueTask<ImmutableArray<SerializableSymbolAndProjectId>> FindProjectSourceDeclarationsWithPatternAsync(
FindSymbols\IStreamingFindReferencesProgress.cs (2)
34public SymbolGroup(ImmutableArray<ISymbol> symbols) 77ValueTask OnReferencesFoundAsync(ImmutableArray<(SymbolGroup group, ISymbol symbol, ReferenceLocation location)> references, CancellationToken cancellationToken);
FindSymbols\ReferencedSymbol.cs (3)
32/// Same as <see cref="Locations"/> but exposed as an <see cref="ImmutableArray{T}"/> for performance. 34internal ImmutableArray<ReferenceLocation> LocationsArray { get; } 43ImmutableArray<ReferenceLocation> locations)
FindSymbols\ReferenceLocation.cs (3)
55internal ImmutableArray<(string key, string value)> AdditionalProperties { get; } 72ImmutableArray<(string key, string value)> additionalProperties, 89internal ReferenceLocation(Document document, IAliasSymbol? alias, Location location, bool isImplicit, SymbolUsageInfo symbolUsageInfo, ImmutableArray<(string key, string value)> additionalProperties, CandidateReason candidateReason)
FindSymbols\StreamingProgressCollector.cs (2)
38public ImmutableArray<ReferencedSymbol> GetReferencedSymbols() 72ImmutableArray<(SymbolGroup group, ISymbol symbol, ReferenceLocation location)> references, CancellationToken cancellationToken)
FindSymbols\SymbolFinder.CallbackDispatcher.cs (1)
47public ValueTask OnReferencesFoundAsync(RemoteServiceCallbackId callbackId, ImmutableArray<(SerializableSymbolGroup group, SerializableSymbolAndProjectId definition, SerializableReferenceLocation reference)> references, CancellationToken cancellationToken)
FindSymbols\SymbolFinder.cs (1)
189internal static async Task<ImmutableArray<ISymbol>> FindLinkedSymbolsAsync(
FindSymbols\SymbolFinder.FindReferencesServerCallback.cs (1)
69ImmutableArray<(SerializableSymbolGroup serializableSymbolGroup, SerializableSymbolAndProjectId serializableSymbol, SerializableReferenceLocation reference)> references,
FindSymbols\SymbolFinder_Callers.cs (3)
44var references = await FindCallReferencesAsync(solution, symbol, documents, cancellationToken).ConfigureAwait(false); 49var indirectReferences = references.WhereAsArray(r => r != directReference); 75private static async Task<ImmutableArray<ReferencedSymbol>> FindCallReferencesAsync(
FindSymbols\SymbolFinder_Declarations_AllDeclarations.cs (2)
20var declarations = await DeclarationFinder.FindAllDeclarationsWithNormalQueryAsync( 32var declarations = await DeclarationFinder.FindAllDeclarationsWithNormalQueryAsync(
FindSymbols\SymbolFinder_Declarations_CustomQueries.cs (6)
37var declarations = await FindSourceDeclarationsWithCustomQueryAsync( 43internal static async Task<ImmutableArray<ISymbol>> FindSourceDeclarationsWithCustomQueryAsync( 62var symbols = await FindSourceDeclarationsWithCustomQueryAsync(project, query, filter, cancellationToken).ConfigureAwait(false); 82var declarations = await FindSourceDeclarationsWithCustomQueryAsync( 88internal static async Task<ImmutableArray<ISymbol>> FindSourceDeclarationsWithCustomQueryAsync( 107var unfiltered = compilation.GetSymbolsWithName(query.GetPredicate(), filter, cancellationToken)
FindSymbols\SymbolFinder_Declarations_SourceDeclarations.cs (4)
31var declarations = await DeclarationFinder.FindSourceDeclarationsWithNormalQueryAsync( 51var declarations = await DeclarationFinder.FindSourceDeclarationsWithNormalQueryAsync( 82var declarations = await DeclarationFinder.FindSourceDeclarationsWithPatternAsync( 110var declarations = await DeclarationFinder.FindSourceDeclarationsWithPatternAsync(
FindSymbols\SymbolFinder_FindReferences_Current.cs (3)
51var documentIds = documents?.SelectAsArray(d => d.Id) ?? default; 78var finders = ReferenceFinders.DefaultReferenceFinders; 98var finders = ReferenceFinders.DefaultReferenceFinders;
FindSymbols\SymbolFinder_FindReferences_Legacy.cs (2)
38internal static async Task<ImmutableArray<ReferencedSymbol>> FindReferencesAsync( 96internal static async Task<ImmutableArray<ReferencedSymbol>> FindReferencesAsync(
FindSymbols\SymbolFinder_FindRenamableReferences.cs (2)
15internal static async Task<ImmutableArray<ReferencedSymbol>> FindRenamableReferencesAsync( 16ImmutableArray<ISymbol> symbols,
FindSymbols\SymbolFinder_Hierarchy.cs (13)
36internal static async Task<ImmutableArray<ISymbol>> FindOverridesArrayAsync( 101internal static Task<ImmutableArray<ISymbol>> FindImplementedInterfaceMembersArrayAsync( 113internal static async Task<ImmutableArray<ISymbol>> FindImplementedInterfaceMembersArrayAsync( 125var explicitImplementations = symbol.ExplicitInterfaceImplementations(); 172var implementations = type.FindImplementationsForInterfaceMember(bestMethod, solution, cancellationToken); 245internal static async Task<ImmutableArray<INamedTypeSymbol>> FindDerivedClassesArrayAsync( 248var types = await DependentTypeFinder.FindTypesAsync( 281internal static async Task<ImmutableArray<INamedTypeSymbol>> FindDerivedInterfacesArrayAsync( 284var types = await DependentTypeFinder.FindTypesAsync( 317internal static async Task<ImmutableArray<INamedTypeSymbol>> FindImplementationsArrayAsync( 320var types = await DependentTypeFinder.FindTypesAsync( 355internal static async Task<ImmutableArray<ISymbol>> FindMemberImplementationsArrayAsync( 373var implementations = t.FindImplementationsForInterfaceMember(symbol, solution, cancellationToken);
FindSymbols\SymbolTree\SymbolTreeInfo.cs (23)
40private readonly ImmutableArray<Node> _nodes; 75ImmutableArray<Node> sortedNodes, 87ImmutableArray<Node> sortedNodes, 102var sortedNodes = SortNodes(unsortedNodes); 118public Task<ImmutableArray<ISymbol>> FindAsync( 129public async Task<ImmutableArray<ISymbol>> FindAsync( 137var symbols = await FindCoreAsync(query, lazyAssembly, cancellationToken).ConfigureAwait(false); 142private Task<ImmutableArray<ISymbol>> FindCoreAsync( 167private async Task<ImmutableArray<ISymbol>> FuzzyFindAsync( 182var symbols = await FindAsync(lazyAssembly, similarName, ignoreCase: true, cancellationToken).ConfigureAwait(false); 213private async Task<ImmutableArray<ISymbol>> FindAsync( 245ImmutableArray<Node> nodes, string name) 270private static int BinarySearch(ImmutableArray<Node> nodes, string name) 299private static SpellChecker CreateSpellChecker(ImmutableArray<Node> sortedNodes) 302private static ImmutableArray<Node> SortNodes(ImmutableArray<BuilderNode> unsortedNodes) 350BuilderNode x, BuilderNode y, ImmutableArray<BuilderNode> nodeList) 409var members = rootContainer.GetMembers(node.Name); 422var members = nsOrType.GetMembers(node.Name); 459ImmutableArray<BuilderNode> unsortedNodes, 463var sortedNodes = SortNodes(unsortedNodes); 470ImmutableArray<Node> nodes, 497public ImmutableArray<INamedTypeSymbol> GetDerivedMetadataTypes(
FindSymbols\SymbolTree\SymbolTreeInfo.FirstEntityHandleProvider.cs (1)
41public EntityHandle GetGenericInstantiation(EntityHandle genericType, ImmutableArray<EntityHandle> typeArguments) => genericType;
FindSymbols\SymbolTree\SymbolTreeInfo.Node.cs (1)
122public ParameterTypeInfo GetGenericInstantiation(ParameterTypeInfo genericType, ImmutableArray<ParameterTypeInfo> typeArguments)
FindSymbols\SymbolTree\SymbolTreeInfo_Metadata.cs (3)
272private static ImmutableArray<ModuleMetadata> GetModuleMetadata(Metadata? metadata) 324var unsortedNodes = GenerateUnsortedNodes(receiverTypeNameToExtensionMethodMap); 727private readonly ImmutableArray<BuilderNode> GenerateUnsortedNodes(MultiDictionary<string, ExtensionMethodInfo> receiverTypeNameToMethodMap)
FindSymbols\SyntaxTree\SyntaxTreeIndex_Forwarders.cs (3)
49public ImmutableArray<string> GetGlobalAliases(string name, int arity) 52public ImmutableArray<string> GetAliases(string name, int arity) 55private ImmutableArray<string> GetAliasesWorker(
FindSymbols\TopLevelSyntaxTree\DeclaredSymbolInfo.cs (4)
47ImmutableArray<string> inheritanceNames, 89public ImmutableArray<string> InheritanceNames { get; } = inheritanceNames; 118ImmutableArray<string> inheritanceNames, 201var inheritanceNames = reader.ReadArray(static r => r.ReadRequiredString());
FindSymbols\TopLevelSyntaxTree\TopLevelSyntaxTreeIndex.cs (2)
33public ImmutableArray<DeclaredSymbolInfo> DeclaredSymbolInfos => _declarationInfo.DeclaredSymbolInfos; 40public ImmutableDictionary<string, ImmutableArray<int>> ReceiverTypeNameToExtensionMethodMap
FindSymbols\TopLevelSyntaxTree\TopLevelSyntaxTreeIndex.DeclarationInfo.cs (2)
14private readonly struct DeclarationInfo(ImmutableArray<DeclaredSymbolInfo> declaredSymbolInfos) 16public ImmutableArray<DeclaredSymbolInfo> DeclaredSymbolInfos { get; } = declaredSymbolInfos;
FindSymbols\TopLevelSyntaxTree\TopLevelSyntaxTreeIndex.ExtensionMethodInfo.cs (3)
14private readonly struct ExtensionMethodInfo(ImmutableDictionary<string, ImmutableArray<int>> receiverTypeNameToExtensionMethodMap) 42public readonly ImmutableDictionary<string, ImmutableArray<int>> ReceiverTypeNameToExtensionMethodMap { get; } = receiverTypeNameToExtensionMethodMap; 61var receiverTypeNameToExtensionMethodMapBuilder = ImmutableDictionary.CreateBuilder<string, ImmutableArray<int>>();
Formatting\Formatter.cs (13)
34internal static ImmutableArray<AbstractFormattingRule> GetDefaultFormattingRules(Document document) 37internal static ImmutableArray<AbstractFormattingRule> GetDefaultFormattingRules(LanguageServices languageServices) 91internal static async Task<Document> FormatAsync(Document document, IEnumerable<TextSpan>? spans, SyntaxFormattingOptions? options, ImmutableArray<AbstractFormattingRule> rules, CancellationToken cancellationToken) 113internal static async Task<Document> FormatAsync(Document document, SyntaxAnnotation annotation, SyntaxFormattingOptions options, ImmutableArray<AbstractFormattingRule> rules, CancellationToken cancellationToken) 120internal static async Task<Document> FormatAsync(Document document, SyntaxAnnotation annotation, OptionSet? optionSet, ImmutableArray<AbstractFormattingRule> rules, CancellationToken cancellationToken) 157private static SyntaxNode Format(SyntaxNode node, SyntaxAnnotation annotation, Workspace workspace, OptionSet? options, ImmutableArray<AbstractFormattingRule> rules, CancellationToken cancellationToken) 177internal static SyntaxNode Format(SyntaxNode node, SyntaxAnnotation annotation, SolutionServices services, SyntaxFormattingOptions options, ImmutableArray<AbstractFormattingRule> rules, CancellationToken cancellationToken) 221private static SyntaxNode Format(SyntaxNode node, IEnumerable<TextSpan>? spans, Workspace workspace, OptionSet? options, ImmutableArray<AbstractFormattingRule> rules, CancellationToken cancellationToken) 227internal static SyntaxNode Format(SyntaxNode node, IEnumerable<TextSpan>? spans, SolutionServices services, SyntaxFormattingOptions options, ImmutableArray<AbstractFormattingRule> rules, CancellationToken cancellationToken) 230private static IFormattingResult? GetFormattingResult(SyntaxNode node, IEnumerable<TextSpan>? spans, Workspace workspace, OptionSet? options, ImmutableArray<AbstractFormattingRule> rules, CancellationToken cancellationToken) 254internal static IFormattingResult GetFormattingResult(SyntaxNode node, IEnumerable<TextSpan>? spans, SolutionServices services, SyntaxFormattingOptions options, ImmutableArray<AbstractFormattingRule> rules, CancellationToken cancellationToken) 304private static IList<TextChange> GetFormattedTextChanges(SyntaxNode node, IEnumerable<TextSpan>? spans, Workspace workspace, OptionSet? options, ImmutableArray<AbstractFormattingRule> rules, CancellationToken cancellationToken) 312internal static IList<TextChange> GetFormattedTextChanges(SyntaxNode node, IEnumerable<TextSpan>? spans, SolutionServices services, SyntaxFormattingOptions options, ImmutableArray<AbstractFormattingRule> rules, CancellationToken cancellationToken = default)
LanguageServices\DeclaredSymbolFactoryService\AbstractDeclaredSymbolInfoFactoryService.cs (4)
85protected abstract bool TryGetAliasesFromUsingDirective(TUsingDirectiveSyntax node, out ImmutableArray<(string aliasName, string name)> aliases); 166if (this.TryGetAliasesFromUsingDirective(usingAlias, out var current)) 196if (this.TryGetAliasesFromUsingDirective(usingAlias, out var current)) 361private static void AddAliases(Dictionary<string, string?> allAliases, ImmutableArray<(string aliasName, string name)> aliases)
LanguageServices\DeclaredSymbolFactoryService\ArityUtilities.cs (1)
14private static readonly ImmutableArray<string> s_aritySuffixesOneToNine = ["`1", "`2", "`3", "`4", "`5", "`6", "`7", "`8", "`9"];
LanguageServices\FixAllSpanMappingService\AbstractFixAllSpanMappingService.cs (3)
19protected abstract Task<ImmutableDictionary<Document, ImmutableArray<TextSpan>>> GetFixAllSpansIfWithinGlobalStatementAsync( 22public Task<ImmutableDictionary<Document, ImmutableArray<TextSpan>>> GetFixAllSpansAsync( 31private async Task<ImmutableDictionary<Document, ImmutableArray<TextSpan>>> GetFixAllSpansAsync(
LanguageServices\FixAllSpanMappingService\IFixAllSpanMappingService.cs (1)
30Task<ImmutableDictionary<Document, ImmutableArray<TextSpan>>> GetFixAllSpansAsync(
LinkedFileDiffMerging\AbstractLinkedFileMergeConflictCommentAdditionService.cs (3)
16public static ImmutableArray<TextChange> CreateEdits(SourceText originalSourceText, ArrayBuilder<UnmergedDocumentChanges> unmergedChanges) 23var comments = GetCommentChangesForDocument(partitionedChanges, documentWithChanges.ProjectName, originalSourceText); 62private static ImmutableArray<TextChange> GetCommentChangesForDocument(IEnumerable<IEnumerable<TextChange>> partitionedChanges, string projectName, SourceText oldDocumentText)
LinkedFileDiffMerging\DefaultDocumentTextDifferencingService.cs (2)
24public Task<ImmutableArray<TextChange>> GetTextChangesAsync(Document oldDocument, Document newDocument, CancellationToken cancellationToken) 27public async Task<ImmutableArray<TextChange>> GetTextChangesAsync(Document oldDocument, Document newDocument, TextDifferenceTypes preferredDifferenceType, CancellationToken cancellationToken)
LinkedFileDiffMerging\LinkedFileDiffMergingSession.cs (13)
17using DocumentAndHashBuilder = ArrayBuilder<(Document newDocument, ImmutableArray<byte> newContentHash)>; 40var newContentHash = newText.GetContentHash(); 127var mergeConflictTextEdits = LinkedFileMergeConflictCommentAdditionService.CreateEdits(firstOldSourceText, unmergedChanges); 134private static async Task<ImmutableArray<TextChange>> AddDocumentMergeChangesAsync( 137ImmutableArray<TextChange> cumulativeChanges, 147var textChanges = await textDiffService.GetTextChangesAsync( 207private static (ImmutableArray<TextChange> mergeChanges, ImmutableArray<TextSpan> mergeConflictResolutionSpans) MergeChangesWithMergeFailComments( 208ImmutableArray<TextChange> mergedChanges, 209ImmutableArray<TextChange> commentChanges) 269private static ImmutableArray<TextChange> NormalizeChanges(ImmutableArray<TextChange> changes) 274var orderedChanges = changes.Sort(static (c1, c2) => c1.Span.Start - c2.Span.Start);
LinkedFileDiffMerging\LinkedFileMergeResult.cs (4)
10internal readonly struct LinkedFileMergeResult(ImmutableArray<DocumentId> documentIds, SourceText mergedSourceText, ImmutableArray<TextSpan> mergeConflictResolutionSpans) 12public readonly ImmutableArray<DocumentId> DocumentIds = documentIds; 14public readonly ImmutableArray<TextSpan> MergeConflictResolutionSpans = mergeConflictResolutionSpans;
LinkedFileDiffMerging\LinkedFileMergeSessionResult.cs (1)
16public readonly Dictionary<DocumentId, ImmutableArray<TextSpan>> MergeConflictCommentSpans = [];
LinkedFileDiffMerging\UnmergedDocumentChanges.cs (2)
10internal readonly struct UnmergedDocumentChanges(ImmutableArray<TextChange> unmergedChanges, string projectName, DocumentId documentId) 12public readonly ImmutableArray<TextChange> UnmergedChanges = unmergedChanges;
Log\AggregateLogger.cs (2)
21private readonly ImmutableArray<ILogger> _loggers; 111private AggregateLogger(ImmutableArray<ILogger> loggers)
ObsoleteSymbol\AbstractObsoleteSymbolService.cs (3)
30public async Task<ImmutableArray<TextSpan>> GetLocationsAsync(Document document, ImmutableArray<TextSpan> textSpans, CancellationToken cancellationToken) 49return ImmutableArray<TextSpan>.Empty;
ObsoleteSymbol\IObsoleteSymbolService.cs (2)
20Task<ImmutableArray<TextSpan>> GetLocationsAsync(Document document, ImmutableArray<TextSpan> textSpans, CancellationToken cancellationToken);
Options\GlobalOptionService.cs (14)
27private readonly ImmutableArray<Lazy<IOptionPersisterProvider>> _optionPersisterProviders = optionPersisters.ToImmutableArray(); 33private ImmutableArray<IOptionPersister> _lazyOptionPersisters; 40private ImmutableArray<IOptionPersister> GetOptionPersisters() 56static ImmutableArray<IOptionPersister> GetOptionPersistersSlow( 58ImmutableArray<Lazy<IOptionPersisterProvider>> persisterProviders, 71static async Task<ImmutableArray<IOptionPersister>> GetOptionPersistersAsync( 72ImmutableArray<Lazy<IOptionPersisterProvider>> persisterProviders, 81private static object? LoadOptionFromPersisterOrGetDefault(OptionKey2 optionKey, ImmutableArray<IOptionPersister> persisters) 126public ImmutableArray<object?> GetOptions(ImmutableArray<OptionKey2> optionKeys) 160private static object? GetOption_NoLock(ref ImmutableDictionary<OptionKey2, object?> currentValues, OptionKey2 optionKey, ImmutableArray<IOptionPersister> persisters) 186public bool SetGlobalOptions(ImmutableArray<KeyValuePair<OptionKey2, object?>> options) 226private static void PersistOption(ImmutableArray<IOptionPersister> persisters, OptionKey2 optionKey, object? value) 267private void RaiseOptionChangedEvent(ImmutableArray<(OptionKey2, object?)> changedOptions)
Options\IGlobalOptionService.cs (3)
37ImmutableArray<object?> GetOptions(ImmutableArray<OptionKey2> optionKeys); 58bool SetGlobalOptions(ImmutableArray<KeyValuePair<OptionKey2, object?>> options);
Options\ILegacyWorkspaceOptionService.cs (2)
31ImmutableArray<KeyValuePair<OptionKey2, object?>> internallyDefinedOptions, 32ImmutableArray<KeyValuePair<OptionKey, object?>> externallyDefinedOptions);
Options\IOption.cs (1)
18ImmutableArray<OptionStorageLocation> StorageLocations { get; }
Options\LegacyWorkspaceOptionService.cs (3)
32private ImmutableArray<WeakReference<Workspace>> _registeredWorkspaces = []; 52ImmutableArray<KeyValuePair<OptionKey2, object?>> internallyDefinedOptions, 53ImmutableArray<KeyValuePair<OptionKey, object?>> externallyDefinedOptions)
Options\Option.cs (3)
29public ImmutableArray<OptionStorageLocation> StorageLocations { get; } 67ImmutableArray<OptionStorageLocation> storageLocations, 74internal Option(OptionDefinition optionDefinition, string feature, string name, ImmutableArray<OptionStorageLocation> storageLocations)
Options\OptionChangedEventArgs.cs (2)
10internal sealed class OptionChangedEventArgs(ImmutableArray<(OptionKey2 key, object? newValue)> changedOptions) : EventArgs 12public ImmutableArray<(OptionKey2 key, object? newValue)> ChangedOptions => changedOptions;
Options\PerLanguageOption.cs (3)
28public ImmutableArray<OptionStorageLocation> StorageLocations { get; } 59ImmutableArray<OptionStorageLocation> storageLocations, 66internal PerLanguageOption(OptionDefinition optionDefinition, string feature, string name, ImmutableArray<OptionStorageLocation> storageLocations)
Options\SolutionOptionSet.cs (4)
79internal (ImmutableArray<KeyValuePair<OptionKey2, object?>> internallyDefined, ImmutableArray<KeyValuePair<OptionKey, object?>> externallyDefined) GetChangedOptions() 81var internallyDefined = _changedOptionKeys.Where(key => key.Option is IOption2).SelectAsArray(key => KeyValuePairUtil.Create(new OptionKey2((IOption2)key.Option, key.Language), _values[key])); 82var externallyDefined = _changedOptionKeys.Where(key => key.Option is not IOption2).SelectAsArray(key => KeyValuePairUtil.Create(key, _values[key]));
Packaging\IPackageInstallerService.cs (3)
27ImmutableArray<string> GetInstalledVersions(string packageName); 29ImmutableArray<Project> GetProjectsWithInstalledPackage(Solution solution, string packageName, string version); 41ImmutableArray<PackageSource> TryGetPackageSources();
PatternMatching\AllLowerCamelCaseMatcher.cs (1)
38in TemporaryArray<TextSpan> candidateHumps, out ImmutableArray<TextSpan> matchedSpans)
PatternMatching\PatternMatch.cs (3)
35public ImmutableArray<TextSpan> MatchedSpans { get; } 51ImmutableArray<TextSpan> matchedSpans) 59public PatternMatch WithMatchedSpans(ImmutableArray<TextSpan> matchedSpans)
PatternMatching\PatternMatcher.cs (5)
464candidate, candidateHumps, patternChunk, out var matchedSpans); 481var camelCaseKindIgnoreCase = TryUpperCaseCamelCaseMatch(candidate, candidateHumps, patternChunk, CompareOptions.IgnoreCase, out var matchedSpansIgnoreCase); 484var camelCaseKind = TryUpperCaseCamelCaseMatch(candidate, candidateHumps, patternChunk, CompareOptions.None, out var matchedSpans); 506out ImmutableArray<TextSpan> matchedSpans) 517out ImmutableArray<TextSpan> matchedSpans)
ReassignedVariable\AbstractReassignedVariableService.cs (2)
39public async Task<ImmutableArray<TextSpan>> GetLocationsAsync( 40Document document, ImmutableArray<TextSpan> spans, CancellationToken cancellationToken)
ReassignedVariable\IReassignedVariableService.cs (2)
20Task<ImmutableArray<TextSpan>> GetLocationsAsync(Document document, ImmutableArray<TextSpan> textSpans, CancellationToken cancellationToken);
Recommendations\AbstractRecommendationService.cs (4)
63private ImmutableArray<INamedTypeSymbol> _lazyOuterTypesAndBases; 64private ImmutableArray<INamedTypeSymbol> _lazyEnclosingTypeBases; 143private ImmutableArray<INamedTypeSymbol> GetOuterTypesAndBases() 155private ImmutableArray<INamedTypeSymbol> GetEnclosingTypeBases()
Recommendations\AbstractRecommendationServiceRunner.cs (25)
49private ImmutableArray<ISymbol> GetMemberSymbolsForParameter(IParameterSymbol parameter, int position, bool useBaseReferenceAccessibility, bool unwrapNullable, bool isForDereference) 51var symbols = TryGetMemberSymbolsForLambdaParameter(parameter, position, unwrapNullable, isForDereference); 57private ImmutableArray<ISymbol> TryGetMemberSymbolsForLambdaParameter( 96var parameterTypeSymbols = ImmutableArray<ITypeSymbol>.Empty; 106var candidateSymbols = _context.SemanticModel.GetMemberGroup(expressionOfInvocationExpression, _cancellationToken); 134private ImmutableArray<ITypeSymbol> SubstituteTypeParameters(ImmutableArray<ITypeSymbol> parameterTypeSymbols, SyntaxNode invocationExpression) 141var invocationSymbols = _context.SemanticModel.GetSymbolInfo(invocationExpression).GetAllSymbols(); 150var typeParameters = invocationSymbol.GetTypeParameters(); 151var typeArguments = invocationSymbol.GetTypeArguments(); 185private ImmutableArray<ITypeSymbol> GetTypeSymbols( 186ImmutableArray<ISymbol> candidateSymbols, 209var allTypeArguments = type.GetAllTypeArguments(); 218var methods = type.GetMembers(WellKnownMemberNames.DelegateInvokeName); 222var parameters = methods[0].GetParameters(); 271protected ImmutableArray<ISymbol> GetSymbolsForNamespaceDeclarationNameContext<TNamespaceDeclarationSyntax>() 282var symbols = semanticModel.LookupNamespacesAndTypes(declarationSyntax.SpanStart, containingNamespaceSymbol) 288protected ImmutableArray<ISymbol> GetSymbolsForEnumBaseList(INamespaceOrTypeSymbol container) 357protected ImmutableArray<ISymbol> GetMemberSymbols( 388protected ImmutableArray<ISymbol> LookupSymbolsInContainer( 394var containerMembers = SuppressDefaultTupleElements( 427static bool MatchesConstraints(ITypeSymbol originalContainerType, ImmutableArray<ITypeSymbol> constraintTypes) 528protected static ImmutableArray<ISymbol> SuppressDefaultTupleElements(INamespaceOrTypeSymbol container, ImmutableArray<ISymbol> symbols)
Recommendations\IRecommendationService.cs (5)
21ImmutableArray<ISymbol> namedSymbols, 22ImmutableArray<ISymbol> unnamedSymbols = default) 28public ImmutableArray<ISymbol> NamedSymbols => namedSymbols.NullToEmpty(); 33public ImmutableArray<ISymbol> UnnamedSymbols => unnamedSymbols.NullToEmpty(); 35public RecommendedSymbols(ImmutableArray<ISymbol> namedSymbols)
Recommendations\Recommender.cs (1)
45public static async Task<ImmutableArray<ISymbol>> GetRecommendedSymbolsAtPositionAsync(
Remote\RemoteArguments.cs (2)
135ImmutableArray<(string key, string value)> additionalProperties, 154public readonly ImmutableArray<(string key, string value)> AdditionalProperties = additionalProperties;
Remote\RemoteUtilities.cs (6)
22public static async ValueTask<ImmutableArray<(DocumentId, ImmutableArray<TextChange>)>> GetDocumentTextChangesAsync( 27using var _ = ArrayBuilder<(DocumentId, ImmutableArray<TextChange>)>.GetInstance(out var builder); 50ImmutableArray<(DocumentId documentId, ImmutableArray<TextChange> textChanges)> documentTextChanges, 55var documentIdsAndTexts = await documentTextChanges
Rename\ConflictEngine\ComplexifiedSpan.cs (2)
12internal readonly struct ComplexifiedSpan(TextSpan originalSpan, TextSpan newSpan, ImmutableArray<(TextSpan oldSpan, TextSpan newSpan)> modifiedSubSpans) 21public readonly ImmutableArray<(TextSpan oldSpan, TextSpan newSpan)> ModifiedSubSpans = modifiedSubSpans;
Rename\ConflictEngine\ConflictResolver.cs (9)
56ImmutableArray<SymbolKey> nonConflictSymbolKeys, 97ImmutableArray<SymbolKey> nonConflictSymbolKeys, 118ImmutableArray<SymbolKey> nonConflictSymbolKeys, 130private static ImmutableArray<ISymbol> SymbolsForEnclosingInvocationExpressionWorker(SyntaxNode invocationExpression, SemanticModel semanticModel, CancellationToken cancellationToken) 145private static bool LocalVariableConflictPerLanguage(SyntaxToken tokenOrNode, Document document, ImmutableArray<ISymbol> newReferencedSymbols) 188var implicitUsageConflicts = renameRewriterService.ComputePossibleImplicitUsageConflicts(renamedSymbol, semanticModel, originalDeclarationLocation, newDeclarationLocationStartingPosition, cancellationToken); 207var implicitConflicts = await renameRewriterService.ComputeImplicitReferenceConflictsAsync( 354var locations = symbol.Locations; 403var locations = symbol.Locations;
Rename\ConflictEngine\ConflictResolver.Session.cs (18)
40private readonly ImmutableArray<SymbolKey> _nonConflictSymbolKeys; 54ImmutableArray<SymbolKey> nonConflictSymbolKeys, 192var unresolvedLocations = conflictResolution.RelatedLocations 243var definitionLocations = _renameLocationSet.Symbol.Locations; 244var definitionDocuments = definitionLocations 374ImmutableArray<ISymbol> newReferencedSymbols = default; 458var referencedSymbols = _renameLocationSet.ReferencedSymbols; 483ImmutableArray<ISymbol> symbols, ImmutableHashSet<ISymbol>? nonConflictSymbols) 518ImmutableArray<ISymbol> newReferencedSymbols) 656private ImmutableArray<ISymbol> GetSymbolsInNewSolution(Document newDocument, SemanticModel newDocumentSemanticModel, RenameActionAnnotation conflictAnnotation, SyntaxNodeOrToken tokenOrNode) 658var newReferencedSymbols = RenameUtilities.GetSymbolsTouchingPosition(tokenOrNode.Span.Start, newDocumentSemanticModel, newDocument.Project.Solution.Services, _cancellationToken); 664var invocationReferencedSymbols = SymbolsForEnclosingInvocationExpressionWorker((SyntaxNode)tokenOrNode!, newDocumentSemanticModel, _cancellationToken); 703private async Task<(ImmutableHashSet<DocumentId> documentIds, ImmutableArray<string> possibleNameConflicts)> FindDocumentsAndPossibleNameConflictsAsync() 723var possibleNameConflicts = possibleNameConflictsList.ToImmutableArray(); 736ImmutableArray<string> possibleNameConflicts) 782ImmutableArray<RenameLocation> renameLocations, 786ImmutableArray<string> possibleNameConflicts) 865private static bool ShouldIncludeLocation(ImmutableArray<RenameLocation> renameLocations, RenameLocation location)
Rename\ConflictEngine\DeclarationConflictHelpers.cs (16)
15public static ImmutableArray<Location> GetMembersWithConflictingSignatures(IMethodSymbol renamedMethod, bool trimOptionalParameters) 26public static ImmutableArray<Location> GetMembersWithConflictingSignatures(IPropertySymbol renamedProperty, bool trimOptionalParameters) 37private static ImmutableArray<Location> GetConflictLocations(ISymbol renamedMember, 40Func<ISymbol, ImmutableArray<ImmutableArray<ITypeSymbol>>> getAllSignatures) 42var signatureToConflictingMember = new Dictionary<ImmutableArray<ITypeSymbol>, ISymbol>(ConflictingSignatureComparer.Instance); 46foreach (var signature in getAllSignatures(member)) 54foreach (var signature in getAllSignatures(renamedMember)) 77private sealed class ConflictingSignatureComparer : IEqualityComparer<ImmutableArray<ITypeSymbol>> 83public bool Equals(ImmutableArray<ITypeSymbol> x, ImmutableArray<ITypeSymbol> y) 86public int GetHashCode(ImmutableArray<ITypeSymbol> obj) 95private static ImmutableArray<ImmutableArray<ITypeSymbol>> GetAllSignatures(ImmutableArray<IParameterSymbol> parameters, bool trimOptionalParameters) 97var resultBuilder = ArrayBuilder<ImmutableArray<ITypeSymbol>>.GetInstance();
Rename\ConflictEngine\MutableConflictResolution.cs (2)
146var documentIds = renamedSpansTracker.DocumentIds.Concat( 149var relatedLocations = this.RelatedLocations.ToImmutableArray();
Rename\ConflictEngine\RenamedSpansTracker.cs (4)
224public ImmutableDictionary<DocumentId, ImmutableArray<(TextSpan oldSpan, TextSpan newSpan)>> GetDocumentToModifiedSpansMap() 226var builder = ImmutableDictionary.CreateBuilder<DocumentId, ImmutableArray<(TextSpan oldSpan, TextSpan newSpan)>>(); 234public ImmutableDictionary<DocumentId, ImmutableArray<ComplexifiedSpan>> GetDocumentToComplexifiedSpansMap() 236var builder = ImmutableDictionary.CreateBuilder<DocumentId, ImmutableArray<ComplexifiedSpan>>();
Rename\ConflictResolution.cs (22)
45public readonly ImmutableArray<DocumentId> DocumentIds; 47public readonly ImmutableArray<RelatedLocation> RelatedLocations; 49private readonly ImmutableDictionary<DocumentId, ImmutableArray<(TextSpan oldSpan, TextSpan newSpan)>> _documentToModifiedSpansMap; 50private readonly ImmutableDictionary<DocumentId, ImmutableArray<ComplexifiedSpan>> _documentToComplexifiedSpansMap; 51private readonly ImmutableDictionary<DocumentId, ImmutableArray<RelatedLocation>> _documentToRelatedLocationsMap; 65_documentToModifiedSpansMap = ImmutableDictionary<DocumentId, ImmutableArray<(TextSpan oldSpan, TextSpan newSpan)>>.Empty; 66_documentToComplexifiedSpansMap = ImmutableDictionary<DocumentId, ImmutableArray<ComplexifiedSpan>>.Empty; 67_documentToRelatedLocationsMap = ImmutableDictionary<DocumentId, ImmutableArray<RelatedLocation>>.Empty; 75ImmutableArray<DocumentId> documentIds, ImmutableArray<RelatedLocation> relatedLocations, 76ImmutableDictionary<DocumentId, ImmutableArray<(TextSpan oldSpan, TextSpan newSpan)>> documentToModifiedSpansMap, 77ImmutableDictionary<DocumentId, ImmutableArray<ComplexifiedSpan>> documentToComplexifiedSpansMap, 78ImmutableDictionary<DocumentId, ImmutableArray<RelatedLocation>> documentToRelatedLocationsMap) 98public ImmutableArray<(TextSpan oldSpan, TextSpan newSpan)> GetComplexifiedSpans(DocumentId documentId) 99=> _documentToComplexifiedSpansMap.TryGetValue(documentId, out var complexifiedSpans) 101: ImmutableArray<(TextSpan oldSpan, TextSpan newSpan)>.Empty; 106if (_documentToModifiedSpansMap.TryGetValue(documentId, out var modifiedSpans)) 112if (_documentToComplexifiedSpansMap.TryGetValue(documentId, out var complexifiedSpans)) 124public ImmutableArray<RelatedLocation> GetRelatedLocationsForDocument(DocumentId documentId) 125=> _documentToRelatedLocationsMap.TryGetValue(documentId, out var result) 131if (_documentToModifiedSpansMap.TryGetValue(documentId, out var modifiedSpans)) 138if (_documentToComplexifiedSpansMap.TryGetValue(documentId, out var complexifiedSpans))
Rename\IRemoteRenamerService.cs (23)
34ImmutableArray<SymbolKey> nonConflictSymbolKeys, 48ImmutableArray<SymbolKey> nonConflictSymbolKeys, 149ImmutableArray<SerializableRenameLocation> locations, 150ImmutableArray<SerializableReferenceLocation> implicitLocations, 151ImmutableArray<SerializableSymbolAndProjectId> referencedSymbols) 157public readonly ImmutableArray<SerializableRenameLocation> Locations = locations; 160public readonly ImmutableArray<SerializableReferenceLocation> ImplicitLocations = implicitLocations; 163public readonly ImmutableArray<SerializableSymbolAndProjectId> ReferencedSymbols = referencedSymbols; 165public async ValueTask<ImmutableArray<RenameLocation>> RehydrateLocationsAsync( 212ImmutableArray<DocumentId> documentIds, 213ImmutableArray<RelatedLocation> relatedLocations, 214ImmutableArray<(DocumentId, ImmutableArray<TextChange>)> documentTextChanges, 215ImmutableDictionary<DocumentId, ImmutableArray<(TextSpan oldSpan, TextSpan newSpan)>> documentToModifiedSpansMap, 216ImmutableDictionary<DocumentId, ImmutableArray<ComplexifiedSpan>> documentToComplexifiedSpansMap, 217ImmutableDictionary<DocumentId, ImmutableArray<RelatedLocation>> documentToRelatedLocationsMap) 226public readonly ImmutableArray<DocumentId> DocumentIds = documentIds; 229public readonly ImmutableArray<RelatedLocation> RelatedLocations = relatedLocations; 232public readonly ImmutableArray<(DocumentId, ImmutableArray<TextChange>)> DocumentTextChanges = documentTextChanges; 235public readonly ImmutableDictionary<DocumentId, ImmutableArray<(TextSpan oldSpan, TextSpan newSpan)>> DocumentToModifiedSpansMap = documentToModifiedSpansMap; 238public readonly ImmutableDictionary<DocumentId, ImmutableArray<ComplexifiedSpan>> DocumentToComplexifiedSpansMap = documentToComplexifiedSpansMap; 241public readonly ImmutableDictionary<DocumentId, ImmutableArray<RelatedLocation>> DocumentToRelatedLocationsMap = documentToRelatedLocationsMap;
Rename\IRenameRewriterLanguageService.cs (6)
52Task<ImmutableArray<Location>> ComputeDeclarationConflictsAsync( 70Task<ImmutableArray<Location>> ComputeImplicitReferenceConflictsAsync( 85ImmutableArray<Location> ComputePossibleImplicitUsageConflicts( 126public abstract Task<ImmutableArray<Location>> ComputeDeclarationConflictsAsync(string replacementText, ISymbol renamedSymbol, ISymbol renameSymbol, IEnumerable<ISymbol> referencedSymbols, Solution baseSolution, Solution newSolution, IDictionary<Location, Location> reverseMappedLocations, CancellationToken cancellationToken); 127public abstract Task<ImmutableArray<Location>> ComputeImplicitReferenceConflictsAsync(ISymbol renameSymbol, ISymbol renamedSymbol, IEnumerable<ReferenceLocation> implicitReferenceLocations, CancellationToken cancellationToken); 128public abstract ImmutableArray<Location> ComputePossibleImplicitUsageConflicts(ISymbol renamedSymbol, SemanticModel semanticModel, Location originalDeclarationLocation, int newDeclarationLocationStartingPosition, CancellationToken cancellationToken);
Rename\LightweightRenameLocations.cs (7)
29public readonly ImmutableArray<RenameLocation> Locations; 30private readonly ImmutableArray<SerializableReferenceLocation> _implicitLocations; 31private readonly ImmutableArray<SerializableSymbolAndProjectId> _referencedSymbols; 36ImmutableArray<RenameLocation> locations, 37ImmutableArray<SerializableReferenceLocation> implicitLocations, 38ImmutableArray<SerializableSymbolAndProjectId> referencedSymbols) 118public Task<ConflictResolution> ResolveConflictsAsync(ISymbol symbol, string replacementText, ImmutableArray<SymbolKey> nonConflictSymbolKeys, CancellationToken cancellationToken)
Rename\Renamer.cs (2)
149ImmutableArray<SymbolKey> nonConflictSymbolKeys, 194ImmutableArray<SymbolKey> nonConflictSymbolKeys,
Rename\Renamer.RenameDocumentAction.cs (3)
23private readonly ImmutableArray<ErrorResource> _errorStringKeys; 25internal RenameDocumentAction(ImmutableArray<ErrorResource> errors) 34public ImmutableArray<string> GetErrors(CultureInfo? culture = null)
Rename\Renamer.RenameDocumentActionSet.cs (10)
19/// document metadata will still be updated by calling <see cref="UpdateSolutionAsync(Solution, ImmutableArray{RenameDocumentAction}, CancellationToken)"/> 22/// of the actions by calling <see cref="UpdateSolutionAsync(Solution, ImmutableArray{RenameDocumentAction}, CancellationToken)"/>. 30private readonly ImmutableArray<string> _documentFolders; 34ImmutableArray<RenameDocumentAction> actions, 37ImmutableArray<string> documentFolders, 49/// contents rather than metadata. Document metadata will still not be updated unless <see cref="UpdateSolutionAsync(Solution, ImmutableArray{RenameDocumentAction}, CancellationToken)" /> 52public ImmutableArray<RenameDocumentAction> ApplicableActions { get; } 55/// Same as calling <see cref="UpdateSolutionAsync(Solution, ImmutableArray{RenameDocumentAction}, CancellationToken)"/> with 70/// immediately call <see cref="UpdateSolutionAsync(Solution, ImmutableArray{RenameDocumentAction}, CancellationToken)"/> without 73public async Task<Solution> UpdateSolutionAsync(Solution solution, ImmutableArray<RenameDocumentAction> actions, CancellationToken cancellationToken)
Rename\RenameRewriterParameters.cs (2)
20ImmutableArray<string> possibleNameConflicts, 40internal readonly ImmutableArray<string> PossibleNameConflicts = possibleNameConflicts;
Rename\RenameUtilities.cs (1)
44internal static ImmutableArray<ISymbol> GetSymbolsTouchingPosition(
Rename\SymbolicRenameLocations.cs (7)
30public readonly ImmutableArray<RenameLocation> Locations; 31public readonly ImmutableArray<ReferenceLocation> ImplicitLocations; 32public readonly ImmutableArray<ISymbol> ReferencedSymbols; 38ImmutableArray<RenameLocation> locations, 39ImmutableArray<ReferenceLocation> implicitLocations, 40ImmutableArray<ISymbol> referencedSymbols) 114private static async Task<ImmutableArray<SearchResult>> GetOverloadsAsync(
Rename\SymbolicRenameLocations.ReferenceProcessing.cs (3)
160public static async Task<ImmutableArray<RenameLocation>> GetRenamableDefinitionLocationsAsync( 319internal static async Task<(ImmutableArray<RenameLocation> strings, ImmutableArray<RenameLocation> comments)> GetRenamableLocationsInStringsAndCommentsAsync(
Rename\SymbolicRenameLocations.SearchResult.cs (4)
16public readonly ImmutableArray<ReferenceLocation> ImplicitLocations; 17public readonly ImmutableArray<ISymbol> ReferencedSymbols; 21ImmutableArray<ReferenceLocation> implicitLocations, 22ImmutableArray<ISymbol> referencedSymbols)
Serialization\AbstractOptionsSerializationService.cs (3)
87ImmutableArray<byte> cryptoPublicKey, 120var cryptoPublicKey = reader.ReadByteArray().ToImmutableArrayOrEmpty(); 162var strongNameProvider = new DesktopStrongNameProvider(ImmutableArray<string>.Empty, Path.GetTempPath());
Serialization\SerializableSourceText.cs (3)
64public SerializableSourceText(SourceText text, ImmutableArray<byte> contentHash) 188var contentHash = ImmutableCollectionsMarshal.AsImmutableArray(reader.ReadByteArray()); 197var contentHash = ImmutableCollectionsMarshal.AsImmutableArray(reader.ReadByteArray());
Serialization\SerializationExtensions.cs (1)
59private static ImmutableArray<string> GetStrongNameKeyPaths(ProjectInfo.ProjectAttributes info)
Serialization\SerializedPortableExecutableReference.cs (5)
22private readonly ImmutableArray<TemporaryStorageStreamHandle> _storageHandles; 31ImmutableArray<TemporaryStorageStreamHandle> storageHandles, 57var modules = GetModules(metadata); 69static ImmutableArray<ModuleMetadata> GetModules(Metadata? metadata) 73if (TryGetModules(assemblyMetadata, out var modules))
Serialization\SerializerService_Asset.cs (1)
79var aliases = reader.ReadArray(static r => r.ReadString());
Serialization\SerializerService_Reference.cs (5)
216if (!TryGetModules(assemblyMetadata, out var modules)) 233private static bool TryGetModules(AssemblyMetadata assemblyMetadata, out ImmutableArray<ModuleMetadata> modules) 315var aliases = reader.ReadArray(static r => r.ReadRequiredString()); 332if (!TryGetModules(assemblyMetadata, out var modules)) 372private (Metadata metadata, ImmutableArray<TemporaryStorageStreamHandle> storageHandles)? TryReadMetadataFrom(
Shared\Extensions\IFindReferencesResultExtensions.cs (8)
27public static ImmutableArray<ReferencedSymbol> FilterToItemsToShow( 28this ImmutableArray<ReferencedSymbol> result, FindReferencesSearchOptions options) 96public static ImmutableArray<ReferencedSymbol> FilterToAliasMatches( 97this ImmutableArray<ReferencedSymbol> result, 113public static ImmutableArray<ReferencedSymbol> FilterNonMatchingMethodNames( 114this ImmutableArray<ReferencedSymbol> result, 123private static ImmutableArray<ReferencedSymbol> FilterNonMatchingMethodNamesWorker( 124ImmutableArray<ReferencedSymbol> references,
Shared\Extensions\ILanguageMetadataExtensions.cs (2)
29public static ImmutableDictionary<string, ImmutableArray<Lazy<TInterface, TMetadata>>> ToPerLanguageMap<TInterface, TMetadata>(this IEnumerable<Lazy<TInterface, TMetadata>> services) 44public static ImmutableDictionary<string, ImmutableArray<Lazy<TInterface, TMetadata>>> ToPerLanguageMapWithMultipleLanguages<TInterface, TMetadata>(this IEnumerable<Lazy<TInterface, TMetadata>> services)
Shared\Extensions\IMethodSymbolExtensions.cs (2)
59var p1 = method1.Parameters; 60var p2 = method2.Parameters;
Shared\Extensions\INamespaceSymbolExtensions.cs (1)
183var members = ns.GetMembers();
Shared\Extensions\ISolutionExtensions.cs (1)
18public static async Task<ImmutableArray<INamespaceSymbol>> GetGlobalNamespacesAsync(
Shared\Extensions\ISymbolExtensions.cs (19)
91var attributes = symbol.GetAttributes(); 107ISymbol symbol, INamedTypeSymbol? hideModuleNameAttribute, ImmutableArray<AttributeData> attributes = default) 128ImmutableArray<AttributeData> attributes, bool hideAdvancedMembers, IMethodSymbol? constructor) 151ImmutableArray<AttributeData> attributes, ImmutableArray<IMethodSymbol> constructors) 160ImmutableArray<AttributeData> attributes, ImmutableArray<IMethodSymbol> constructors) 169ImmutableArray<AttributeData> attributes, ImmutableArray<IMethodSymbol> constructors) 182ImmutableArray<AttributeData> attributes, ImmutableArray<IMethodSymbol> attributeConstructors, int hiddenFlag) 426var typeParameterRefs = document.Descendants(DocumentationCommentXmlNames.TypeParameterReferenceElementName).ToImmutableArray(); 434var typeArgs = symbol.GetAllTypeArguments(); 645public static ImmutableArray<T> FilterToVisibleAndBrowsableSymbols<T>( 646this ImmutableArray<T> symbols, bool hideAdvancedMembers, Compilation compilation) where T : ISymbol 668private static ImmutableArray<T> RemoveOverriddenSymbolsWithinSet<T>(this ImmutableArray<T> symbols) where T : ISymbol 682public static ImmutableArray<T> FilterToVisibleAndBrowsableSymbolsAndNotUnsafeSymbols<T>( 683this ImmutableArray<T> symbols, bool hideAdvancedMembers, Compilation compilation) where T : ISymbol
Shared\Extensions\ITypeSymbolExtensions.cs (1)
27public static ImmutableArray<ISymbol> FindImplementationsForInterfaceMember(
Shared\Extensions\SemanticModelExtensions.cs (2)
91var allSymbols = ImmutableArray<ISymbol?>.Empty;
Shared\Extensions\SourceTextExtensions.cs (2)
232private sealed class CharArrayChunkTextReader(ImmutableArray<char[]> chunks, int length) : TextReaderWithLength(length) 234private readonly ImmutableArray<char[]> _chunks = chunks;
Shared\Extensions\SyntaxGeneratorExtensions.cs (1)
254var typeParams = overriddenMethod.GetTypeArguments();
Shared\Extensions\TokenSemanticInfo.cs (3)
18ImmutableArray<ISymbol> referencedSymbols, 29public readonly ImmutableArray<ISymbol> ReferencedSymbols = referencedSymbols; 34public ImmutableArray<ISymbol> GetSymbols(bool includeType)
Shared\TestHooks\AsynchronousOperationListener.cs (1)
227public ImmutableArray<DiagnosticAsyncToken> ActiveDiagnosticTokens
Shared\TestHooks\IAsynchronousOperationWaiter.cs (1)
13ImmutableArray<AsynchronousOperationListener.DiagnosticAsyncToken> ActiveDiagnosticTokens { get; }
Shared\TestHooks\IRemoteAsynchronousOperationListenerService.cs (2)
15ValueTask<bool> IsCompletedAsync(ImmutableArray<string> featureNames, CancellationToken cancellationToken); 17ValueTask ExpeditedWaitAsync(ImmutableArray<string> featureNames, CancellationToken cancellationToken);
Shared\Utilities\BloomFilter.cs (3)
350var hashes = BloomFilterHash.GetOrCreateHashArray(value, _isCaseSensitive, _hashFunctionCount); 412private readonly ImmutableArray<int> _hashes; 440public static ImmutableArray<int> GetOrCreateHashArray(string value, bool isCaseSensitive, int hashFunctionCount)
Shared\Utilities\DocumentationComment.cs (10)
58public ImmutableArray<string> ParameterNames { get; private set; } 63public ImmutableArray<string> TypeParameterNames { get; private set; } 68public ImmutableArray<string> ExceptionTypes { get; private set; } 119private ImmutableArray<string>.Builder? _parameterNamesBuilder; 120private ImmutableArray<string>.Builder? _typeParameterNamesBuilder; 121private ImmutableArray<string>.Builder? _exceptionTypesBuilder; 122private Dictionary<string, ImmutableArray<string>.Builder>? _exceptionTextBuilders; 318private readonly Dictionary<string, ImmutableArray<string>> _exceptionTexts = []; 357public ImmutableArray<string> GetExceptionTexts(string exceptionName) 359_exceptionTexts.TryGetValue(exceptionName, out var texts);
Shared\Utilities\EditorBrowsableHelpers.cs (7)
19public ImmutableArray<IMethodSymbol> TypeLibTypeAttributeConstructors { get; } = GetSpecialTypeLibTypeAttributeConstructors(compilation); 20public ImmutableArray<IMethodSymbol> TypeLibFuncAttributeConstructors { get; } = GetSpecialTypeLibFuncAttributeConstructors(compilation); 21public ImmutableArray<IMethodSymbol> TypeLibVarAttributeConstructors { get; } = GetSpecialTypeLibVarAttributeConstructors(compilation); 62public static ImmutableArray<IMethodSymbol> GetSpecialTypeLibTypeAttributeConstructors(Compilation compilation) 70public static ImmutableArray<IMethodSymbol> GetSpecialTypeLibFuncAttributeConstructors(Compilation compilation) 78public static ImmutableArray<IMethodSymbol> GetSpecialTypeLibVarAttributeConstructors(Compilation compilation) 93private static ImmutableArray<IMethodSymbol> GetSpecialTypeLibAttributeConstructorsWorker(
Simplification\Simplifier.cs (1)
245Document document, ImmutableArray<AbstractReducer> reducers, CancellationToken cancellationToken)
SourceGeneration\IRemoteSourceGenerationService.cs (5)
34ValueTask<ImmutableArray<SourceGeneratedDocumentInfo>> GetSourceGeneratedDocumentInfoAsync( 45ValueTask<ImmutableArray<string>> GetContentsAsync( 46Checksum solutionChecksum, ProjectId projectId, ImmutableArray<DocumentId> documentIds, bool withFrozenSourceGeneratedDocuments, CancellationToken cancellationToken); 52Checksum solutionChecksum, ProjectId projectId, ImmutableArray<Checksum> analyzerReferenceChecksums, string language, CancellationToken cancellationToken); 58ValueTask<ImmutableArray<SourceGeneratorIdentity>> GetSourceGeneratorIdentitiesAsync(
src\Compilers\Core\Portable\Collections\ArrayBuilderExtensions.cs (8)
71public static ImmutableArray<TResult> SelectAsArray<TItem, TResult>(this ArrayBuilder<TItem> items, Func<TItem, TResult> map) 76return ImmutableArray<TResult>.Empty; 111public static ImmutableArray<TResult> SelectAsArray<TItem, TArg, TResult>(this ArrayBuilder<TItem> items, Func<TItem, TArg, TResult> map, TArg arg) 116return ImmutableArray<TResult>.Empty; 151public static ImmutableArray<TResult> SelectAsArrayWithIndex<TItem, TArg, TResult>(this ArrayBuilder<TItem> items, Func<TItem, int, TArg, TResult> map, TArg arg) 156return ImmutableArray<TResult>.Empty; 222public static ImmutableArray<T> ToImmutableOrEmptyAndFree<T>(this ArrayBuilder<T>? builder) 224return builder?.ToImmutableAndFree() ?? ImmutableArray<T>.Empty;
src\Compilers\Core\Portable\Collections\DictionaryExtensions.cs (2)
91public static ImmutableSegmentedDictionary<K, ImmutableArray<V>> ToImmutableSegmentedDictionaryAndFree<K, V>(this IReadOnlyDictionary<K, ArrayBuilder<V>> builder) 94var result = ImmutableSegmentedDictionary.CreateBuilder<K, ImmutableArray<V>>();
src\Compilers\Core\Portable\Collections\ImmutableArrayExtensions.cs (152)
27/// The collection of extension methods for the <see cref="ImmutableArray{T}"/> type 39public static ImmutableArray<T> AsImmutable<T>(this IEnumerable<T> items) 51public static ImmutableArray<T> AsImmutableOrEmpty<T>(this IEnumerable<T>? items) 55return ImmutableArray<T>.Empty; 68public static ImmutableArray<T> AsImmutableOrNull<T>(this IEnumerable<T>? items) 84public static ImmutableArray<T> AsImmutable<T>(this T[] items) 97public static ImmutableArray<T> AsImmutableOrNull<T>(this T[]? items) 113public static ImmutableArray<T> AsImmutableOrEmpty<T>(this T[]? items) 117return ImmutableArray<T>.Empty; 128public static ImmutableArray<byte> ToImmutable(this MemoryStream stream) 141public static ImmutableArray<TResult> SelectAsArray<TItem, TResult>(this ImmutableArray<TItem> items, Func<TItem, TResult> map) 156public static ImmutableArray<TResult> SelectAsArray<TItem, TArg, TResult>(this ImmutableArray<TItem> items, Func<TItem, TArg, TResult> map, TArg arg) 171public static ImmutableArray<TResult> SelectAsArray<TItem, TArg, TResult>(this ImmutableArray<TItem> items, Func<TItem, int, TArg, TResult> map, TArg arg) 176return ImmutableArray<TResult>.Empty; 210public static ImmutableArray<TResult> SelectAsArray<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, bool> predicate, Func<TItem, TResult> selector) 214return ImmutableArray<TResult>.Empty; 240public static ImmutableArray<TResult> SelectAsArray<TItem, TArg, TResult>(this ImmutableArray<TItem> array, Func<TItem, TArg, bool> predicate, Func<TItem, TArg, TResult> selector, TArg arg) 244return ImmutableArray<TResult>.Empty; 267public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, IEnumerable<TResult>> selector) 270return ImmutableArray<TResult>.Empty; 287public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, ImmutableArray<TResult>> selector) 290return ImmutableArray<TResult>.Empty; 307public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, OneOrMany<TResult>> selector) 310return ImmutableArray<TResult>.Empty; 330public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, bool> predicate, Func<TItem, IEnumerable<TResult>> selector) 333return ImmutableArray<TResult>.Empty; 354public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, bool> predicate, Func<TItem, ImmutableArray<TResult>> selector) 357return ImmutableArray<TResult>.Empty; 378public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, bool> predicate, Func<TItem, OneOrMany<TResult>> selector) 381return ImmutableArray<TResult>.Empty; 403public static ImmutableArray<TResult> SelectManyAsArray<TItem, TArg, TResult>(this ImmutableArray<TItem> array, Func<TItem, TArg, bool> predicate, Func<TItem, TArg, OneOrMany<TResult>> selector, TArg arg) 406return ImmutableArray<TResult>.Empty; 421public static async ValueTask<ImmutableArray<TResult>> SelectAsArrayAsync<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, CancellationToken, ValueTask<TResult>> selector, CancellationToken cancellationToken) 424return ImmutableArray<TResult>.Empty; 439public static async ValueTask<ImmutableArray<TResult>> SelectAsArrayAsync<TItem, TArg, TResult>(this ImmutableArray<TItem> array, Func<TItem, TArg, CancellationToken, ValueTask<TResult>> selector, TArg arg, CancellationToken cancellationToken) 442return ImmutableArray<TResult>.Empty; 454public static ValueTask<ImmutableArray<TResult>> SelectManyAsArrayAsync<TItem, TArg, TResult>(this ImmutableArray<TItem> source, Func<TItem, TArg, CancellationToken, ValueTask<ImmutableArray<TResult>>> selector, TArg arg, CancellationToken cancellationToken) 458return new ValueTask<ImmutableArray<TResult>>(ImmutableArray<TResult>.Empty); 468async ValueTask<ImmutableArray<TResult>> CreateTaskAsync() 485public static ImmutableArray<TResult> ZipAsArray<T1, T2, TResult>(this ImmutableArray<T1> self, ImmutableArray<T2> other, Func<T1, T2, TResult> map) 491return ImmutableArray<TResult>.Empty; 516public static ImmutableArray<TResult> ZipAsArray<T1, T2, TArg, TResult>(this ImmutableArray<T1> self, ImmutableArray<T2> other, TArg arg, Func<T1, T2, int, TArg, TResult> map) 521return ImmutableArray<TResult>.Empty; 537public static ImmutableArray<T> WhereAsArray<T>(this ImmutableArray<T> array, Func<T, bool> predicate) 545public static ImmutableArray<T> WhereAsArray<T, TArg>(this ImmutableArray<T> array, Func<T, TArg, bool> predicate, TArg arg) 548private static ImmutableArray<T> WhereAsArrayImpl<T, TArg>(ImmutableArray<T> array, Func<T, bool>? predicateWithoutArg, Func<T, TArg, bool>? predicateWithArg, TArg arg) 613return ImmutableArray<T>.Empty; 617public static bool Any<T, TArg>(this ImmutableArray<T> array, Func<T, TArg, bool> predicate, TArg arg) 633public static bool All<T, TArg>(this ImmutableArray<T> array, Func<T, TArg, bool> predicate, TArg arg) 649public static async Task<bool> AnyAsync<T>(this ImmutableArray<T> array, Func<T, Task<bool>> predicateAsync) 665public static async Task<bool> AnyAsync<T, TArg>(this ImmutableArray<T> array, Func<T, TArg, Task<bool>> predicateAsync, TArg arg) 681public static async ValueTask<T?> FirstOrDefaultAsync<T>(this ImmutableArray<T> array, Func<T, Task<bool>> predicateAsync) 697public static TValue? FirstOrDefault<TValue, TArg>(this ImmutableArray<TValue> array, Func<TValue, TArg, bool> predicate, TArg arg) 710public static TValue? Single<TValue, TArg>(this ImmutableArray<TValue> array, Func<TValue, TArg, bool> predicate, TArg arg) 740public static ImmutableArray<TBase> Cast<TDerived, TBase>(this ImmutableArray<TDerived> items) 743return ImmutableArray<TBase>.CastUp(items); 754public static bool SetEquals<T>(this ImmutableArray<T> array1, ImmutableArray<T> array2, IEqualityComparer<T> comparer) 795public static ImmutableArray<T> NullToEmpty<T>(this ImmutableArray<T> array) 797return array.IsDefault ? ImmutableArray<T>.Empty : array; 803public static ImmutableArray<T> NullToEmpty<T>(this ImmutableArray<T>? array) 806null or { IsDefault: true } => ImmutableArray<T>.Empty, 814public static ImmutableArray<T> Distinct<T>(this ImmutableArray<T> array, IEqualityComparer<T>? comparer = null) 833var result = (builder.Count == array.Length) ? array : builder.ToImmutable(); 840internal static ImmutableArray<T> ConditionallyDeOrder<T>(this ImmutableArray<T> array) 856internal static ImmutableArray<TValue> Flatten<TKey, TValue>( 857this Dictionary<TKey, ImmutableArray<TValue>> dictionary, 863return ImmutableArray<TValue>.Empty; 882internal static ImmutableArray<T> Concat<T>(this ImmutableArray<T> first, ImmutableArray<T> second) 887internal static ImmutableArray<T> Concat<T>(this ImmutableArray<T> first, ImmutableArray<T> second, ImmutableArray<T> third) 910internal static ImmutableArray<T> Concat<T>(this ImmutableArray<T> first, ImmutableArray<T> second, ImmutableArray<T> third, ImmutableArray<T> fourth) 938internal static ImmutableArray<T> Concat<T>(this ImmutableArray<T> first, ImmutableArray<T> second, ImmutableArray<T> third, ImmutableArray<T> fourth, ImmutableArray<T> fifth) 971internal static ImmutableArray<T> Concat<T>(this ImmutableArray<T> first, ImmutableArray<T> second, ImmutableArray<T> third, ImmutableArray<T> fourth, ImmutableArray<T> fifth, ImmutableArray<T> sixth) 1009internal static ImmutableArray<T> Concat<T>(this ImmutableArray<T> first, T second) 1014internal static ImmutableArray<T> AddRange<T>(this ImmutableArray<T> self, in TemporaryArray<T> items) 1047internal static bool HasDuplicates<T>(this ImmutableArray<T> array) 1083internal static bool HasDuplicates<T>(this ImmutableArray<T> array, IEqualityComparer<T> comparer) 1109public static int Count<T>(this ImmutableArray<T> items, Func<T, bool> predicate) 1128public static int Sum<T>(this ImmutableArray<T> items, Func<T, int> selector) 1137public static int Sum<T>(this ImmutableArray<T> items, Func<T, int, int> selector) 1174(Dictionary<TKey, object> dictionary, Dictionary<TKey, ImmutableArray<TNamespaceOrTypeSymbol>> result) 1185static ImmutableArray<TNamespaceOrTypeSymbol> createMembers(object value) 1196return ImmutableArray<TNamespaceOrTypeSymbol>.CastUp(builder.ToDowncastedImmutableAndFree<TNamedTypeSymbol>()); 1203: ImmutableArray<TNamespaceOrTypeSymbol>.CastUp(ImmutableArray.Create((TNamedTypeSymbol)symbol)); 1208internal static Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>> GetTypesFromMemberMap<TKey, TNamespaceOrTypeSymbol, TNamedTypeSymbol> 1209(Dictionary<TKey, ImmutableArray<TNamespaceOrTypeSymbol>> map, IEqualityComparer<TKey> comparer) 1220var dictionary = new Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>>(capacity, comparer); 1224var namedTypes = getOrCreateNamedTypes(entry.Value); 1231static ImmutableArray<TNamedTypeSymbol> getOrCreateNamedTypes(ImmutableArray<TNamespaceOrTypeSymbol> members) 1238var membersAsNamedTypes = members.As<TNamedTypeSymbol>(); 1251return ImmutableArray<TNamedTypeSymbol>.Empty; 1265internal static bool SequenceEqual<TElement, TArg>(this ImmutableArray<TElement> array1, ImmutableArray<TElement> array2, TArg arg, Func<TElement, TElement, TArg, bool> predicate) 1295internal static int IndexOf<T>(this ImmutableArray<T> array, T item, IEqualityComparer<T> comparer) 1298internal static bool IsSorted<T>(this ImmutableArray<T> array, IComparer<T>? comparer = null) 1314internal static int BinarySearch<TElement, TValue>(this ImmutableArray<TElement> array, TValue value, Func<TElement, TValue, int> comparer) 1373public static bool IsSubsetOf<TElement>(this ImmutableArray<TElement> array, ImmutableArray<TElement> other)
src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (3)
143public ImmutableArray<V> this[K k] 153return ImmutableArray<V>.Empty; 270internal ImmutableArray<V> Items
src\Compilers\Core\Portable\Collections\TemporaryArray`1.cs (6)
21/// <see cref="ImmutableArray{T}"/>. 176public void AddRange(ImmutableArray<T> items) 296/// Create an <see cref="ImmutableArray{T}"/> with the elements currently held in the temporary array, and clear 299public ImmutableArray<T> ToImmutableAndClear() 307var result = _count switch 3090 => ImmutableArray<T>.Empty,
src\Compilers\Core\Portable\Diagnostic\DiagnosticArrayExtensions.cs (1)
11internal static bool HasAnyErrors<T>(this ImmutableArray<T> diagnostics) where T : Diagnostic
src\Compilers\Core\Portable\DiagnosticAnalyzer\AnalyzerAssemblyLoader.cs (1)
78private readonly ImmutableArray<IAnalyzerAssemblyResolver> _externalResolvers;
src\Compilers\Core\Portable\DiagnosticAnalyzer\DefaultAnalyzerAssemblyLoader.cs (2)
24internal DefaultAnalyzerAssemblyLoader(ImmutableArray<IAnalyzerAssemblyResolver> externalResolvers) 60internal static IAnalyzerAssemblyLoaderInternal CreateNonLockingLoader(string windowsShadowPath, ImmutableArray<IAnalyzerAssemblyResolver>? externalResolvers = null)
src\Compilers\Core\Portable\DiagnosticAnalyzer\ShadowCopyAnalyzerAssemblyLoader.cs (1)
55public ShadowCopyAnalyzerAssemblyLoader(string baseDirectory, ImmutableArray<IAnalyzerAssemblyResolver>? externalResolvers = null)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
702public static string NormalizePathPrefix(string filePath, ImmutableArray<KeyValuePair<string, string>> pathMap)
src\Compilers\Core\Portable\FileSystem\RelativePathResolver.cs (3)
18public ImmutableArray<string> SearchPaths { get; } 27public RelativePathResolver(ImmutableArray<string> searchPaths, string? baseDirectory) 54public RelativePathResolver WithSearchPaths(ImmutableArray<string> searchPaths) =>
src\Compilers\Core\Portable\InternalUtilities\EnumerableExtensions.cs (28)
66public static ImmutableArray<T> ToImmutableArrayOrEmpty<T>(this IEnumerable<T>? items) 73if (items is ImmutableArray<T> array) 88if (items is ImmutableArray<T> array) 354public static ImmutableArray<TResult> SelectAsArray<TSource, TResult>(this IEnumerable<TSource>? source, Func<TSource, TResult> selector) 358return ImmutableArray<TResult>.Empty; 367public static ImmutableArray<TResult> SelectAsArray<TSource, TResult>(this IEnumerable<TSource>? source, Func<TSource, int, TResult> selector) 370return ImmutableArray<TResult>.Empty; 384public static ImmutableArray<TResult> SelectAsArray<TSource, TResult>(this IReadOnlyCollection<TSource>? source, Func<TSource, TResult> selector) 387return ImmutableArray<TResult>.Empty; 400public static ImmutableArray<TResult> SelectAsArray<TSource, TResult, TArg>(this IReadOnlyCollection<TSource>? source, Func<TSource, TArg, TResult> selector, TArg arg) 403return ImmutableArray<TResult>.Empty; 416public static ImmutableArray<TResult> SelectManyAsArray<TSource, TResult>(this IEnumerable<TSource>? source, Func<TSource, IEnumerable<TResult>> selector) 419return ImmutableArray<TResult>.Empty; 428public static ImmutableArray<TResult> SelectManyAsArray<TItem, TArg, TResult>(this IEnumerable<TItem>? source, Func<TItem, TArg, IEnumerable<TResult>> selector, TArg arg) 431return ImmutableArray<TResult>.Empty; 440public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, IEnumerable<TResult>> selector) 443return ImmutableArray<TResult>.Empty; 453public static ImmutableArray<TResult> SelectManyAsArray<TItem, TArg, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, TArg, IEnumerable<TResult>> selector, TArg arg) 456return ImmutableArray<TResult>.Empty; 466public static ImmutableArray<TResult> SelectManyAsArray<TSource, TResult>(this IEnumerable<TSource>? source, Func<TSource, OneOrMany<TResult>> selector) 469return ImmutableArray<TResult>.Empty; 481public static async ValueTask<ImmutableArray<TResult>> SelectAsArrayAsync<TItem, TResult>(this IEnumerable<TItem> source, Func<TItem, ValueTask<TResult>> selector) 496public static async ValueTask<ImmutableArray<TResult>> SelectAsArrayAsync<TItem, TResult>(this IEnumerable<TItem> source, Func<TItem, CancellationToken, ValueTask<TResult>> selector, CancellationToken cancellationToken) 511public static async ValueTask<ImmutableArray<TResult>> SelectAsArrayAsync<TItem, TArg, TResult>(this IEnumerable<TItem> source, Func<TItem, TArg, CancellationToken, ValueTask<TResult>> selector, TArg arg, CancellationToken cancellationToken) 523public static async ValueTask<ImmutableArray<TResult>> SelectManyAsArrayAsync<TItem, TArg, TResult>(this IEnumerable<TItem> source, Func<TItem, TArg, CancellationToken, ValueTask<IEnumerable<TResult>>> selector, TArg arg, CancellationToken cancellationToken) 787internal static Dictionary<K, ImmutableArray<T>> ToMultiDictionary<K, T>(this IEnumerable<T> data, Func<T, K> keySelector, IEqualityComparer<K>? comparer = null) 790var dictionary = new Dictionary<K, ImmutableArray<T>>(comparer); 794var items = grouping.AsImmutable();
src\Compilers\Core\Portable\InternalUtilities\Hash.cs (3)
114internal static int CombineValues<T>(ImmutableArray<T> values, int maxItemsToHash = int.MaxValue) 165internal static int CombineValues(ImmutableArray<string> values, StringComparer stringComparer, int maxItemsToHash = int.MaxValue) 246internal static int GetFNVHashCode(ImmutableArray<byte> data)
src\Compilers\Core\Portable\InternalUtilities\InterlockedOperations.cs (14)
154public static ImmutableArray<T> Initialize<T>(ref ImmutableArray<T> target, ImmutableArray<T> initializedValue) 157var oldValue = ImmutableInterlocked.InterlockedCompareExchange(ref target, initializedValue, default(ImmutableArray<T>)); 170public static ImmutableArray<T> Initialize<T>(ref ImmutableArray<T> target, Func<ImmutableArray<T>> createArray) 183public static ImmutableArray<T> Initialize<T, TArg>(ref ImmutableArray<T> target, Func<TArg, ImmutableArray<T>> createArray, TArg arg) 193private static ImmutableArray<T> Initialize_Slow<T, TArg>(ref ImmutableArray<T> target, Func<TArg, ImmutableArray<T>> createArray, TArg arg)
src\Compilers\Core\Portable\InternalUtilities\ISetExtensions.cs (2)
23public static bool AddAll<T>(this ISet<T> set, ImmutableArray<T> values) 45public static bool RemoveAll<T>(this ISet<T> set, ImmutableArray<T> values)
src\Compilers\Core\Portable\InternalUtilities\OneOrMany.cs (8)
27public static readonly OneOrMany<T> Empty = new OneOrMany<T>(ImmutableArray<T>.Empty); 30private readonly ImmutableArray<T> _many; 38public OneOrMany(ImmutableArray<T> many) 166: new OneOrMany<T>(ImmutableArray<T>.CastUp(from._many)); 184public ImmutableArray<T> ToImmutable() 205public bool SequenceEqual(ImmutableArray<T> other, IEqualityComparer<T>? comparer = null) 277public static OneOrMany<T> Create<T>(ImmutableArray<T> many) 280public static bool SequenceEqual<T>(this ImmutableArray<T> array, OneOrMany<T> other, IEqualityComparer<T>? comparer = null)
src\Compilers\Core\Portable\InternalUtilities\SetWithInsertionOrder.cs (1)
94public ImmutableArray<T> AsImmutable() => _elements.ToImmutableArrayOrEmpty();
src\Compilers\Core\Portable\InternalUtilities\SpecializedCollections.Empty.List.cs (1)
18public static readonly IReadOnlyList<T> Instance = ImmutableArray<T>.Empty;
src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (2)
15private static ImmutableArray<string> s_lazyNumerals; 19var numerals = s_lazyNumerals;
src\Compilers\Core\Portable\MetadataReference\AssemblyIdentityUtils.cs (1)
36ImmutableArray<byte> publicKeyOrToken = !publicKeyHandle.IsNil
src\Compilers\Core\Portable\Text\TextChangeRangeExtensions.cs (5)
117public static ImmutableArray<TextChangeRange> Merge(ImmutableArray<TextChangeRange> oldChanges, ImmutableArray<TextChangeRange> newChanges) 406/// Represents a new change being processed by <see cref="Merge(ImmutableArray&lt;TextChangeRange&gt;, ImmutableArray&lt;TextChangeRange&gt;)"/>.
src\Dependencies\Collections\ImmutableSegmentedDictionary`2.cs (1)
21/// the scenarios where <see cref="ImmutableArray{T}"/> is applicable, and
src\Dependencies\Collections\Internal\HashHelpers.cs (1)
38private static readonly ImmutableArray<int> s_primes = ImmutableArray.Create(
src\Dependencies\Collections\RoslynImmutableInterlocked.cs (4)
616public static ImmutableArray<T> VolatileRead<T>(ref readonly ImmutableArray<T> location) 630public static void VolatileWrite<T>(ref ImmutableArray<T> location, ImmutableArray<T> value)
src\Dependencies\PooledObjects\ArrayBuilder.cs (23)
54private readonly ImmutableArray<T>.Builder _builder; 76public ImmutableArray<T> ToImmutable() 84public ImmutableArray<T> ToImmutableAndClear() 86ImmutableArray<T> result; 89result = ImmutableArray<T>.Empty; 353public ImmutableArray<T> ToImmutableOrNull() 366public ImmutableArray<U> ToDowncastedImmutable<U>() 371return ImmutableArray<U>.Empty; 383public ImmutableArray<U> ToDowncastedImmutableAndFree<U>() where U : T 385var result = ToDowncastedImmutable<U>(); 393public ImmutableArray<T> ToImmutableAndFree() 397ImmutableArray<T> result; 400result = ImmutableArray<T>.Empty; 516internal Dictionary<K, ImmutableArray<T>> ToDictionary<K>(Func<T, K> keySelector, IEqualityComparer<K>? comparer = null) 521var dictionary1 = new Dictionary<K, ImmutableArray<T>>(1, comparer); 529return new Dictionary<K, ImmutableArray<T>>(comparer); 548var dictionary = new Dictionary<K, ImmutableArray<T>>(accumulator.Count, comparer); 587public void AddRange(ImmutableArray<T> items) 592public void AddRange(ImmutableArray<T> items, int length) 597public void AddRange(ImmutableArray<T> items, int start, int length) 607public void AddRange<S>(ImmutableArray<S> items) where S : class, T 609AddRange(ImmutableArray<T>.CastUp(items)); 706public ImmutableArray<S> SelectDistinct<S>(Func<T, S> selector)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleHelpers.cs (3)
118this ImmutableArray<IOption2>.Builder optionsBuilder, 131this ImmutableArray<IOption2>.Builder optionsBuilder, 143this ImmutableArray<IOption2>.Builder optionsBuilder,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleOptions2.cs (2)
20private static readonly ImmutableArray<IOption2>.Builder s_editorConfigOptionsBuilder = ImmutableArray.CreateBuilder<IOption2>(); 350internal static readonly ImmutableArray<IOption2> EditorConfigOptions = s_editorConfigOptionsBuilder.ToImmutable();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\VisualBasic\VisualBasicCodeStyleOptions.cs (2)
16private static readonly ImmutableArray<IOption2>.Builder s_allOptionsBuilder = ImmutableArray.CreateBuilder<IOption2>(); 57public static ImmutableArray<IOption2> EditorConfigOptions => s_allOptionsBuilder.ToImmutable();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\IntervalTreeAlgorithms`2.cs (4)
18public ImmutableArray<T> GetIntervalsThatMatch<TIntrospector, TIntervalTester>( 28public ImmutableArray<T> GetIntervalsThatOverlapWith<TIntrospector>( 35public ImmutableArray<T> GetIntervalsThatIntersectWith<TIntrospector>( 42public ImmutableArray<T> GetIntervalsThatContain<TIntrospector>(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\SimpleMutableIntervalTree`2.cs (3)
40public ImmutableArray<T> GetIntervalsThatOverlapWith(int start, int length) 43public ImmutableArray<T> GetIntervalsThatIntersectWith(int start, int length) 46public ImmutableArray<T> GetIntervalsThatContain(int start, int length)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Diagnostics\IPragmaSuppressionsAnalyzer.cs (1)
26Func<DiagnosticAnalyzer, ImmutableArray<DiagnosticDescriptor>> getSupportedDiagnostics,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Editing\GenerationOptions.cs (1)
30public static readonly ImmutableArray<IOption2> EditorConfigOptions = [PlaceSystemNamespaceFirst, SeparateImportDirectiveGroups];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\EditorConfigFile.cs (3)
19internal record class EditorConfigFile<T>(string? FilePath, ImmutableArray<T> Options) 23private readonly Lazy<ImmutableArray<Section>> _sections = new(() => Options.SelectAsArray(x => x.Section).Distinct()); 25public ImmutableArray<Section> Sections => _sections.Value;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\NamingStyles\EditorConfigNamingStyles.cs (1)
14internal record class EditorConfigNamingStyles(string? FileName, ImmutableArray<NamingStyleOption> Rules)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\NamingStyles\NamingStyleOption.cs (3)
37EditorConfigOption<ImmutableArray<SymbolKindOrTypeKind>> SymbolKinds, 38EditorConfigOption<ImmutableArray<Accessibility>> Accessibilities, 39EditorConfigOption<ImmutableArray<ModifierKind>> Modifiers);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\Sections\SectionMatcher.cs (2)
14private readonly ImmutableArray<(int minValue, int maxValue)> _numberRangePairs; 26ImmutableArray<(int minValue, int maxValue)> numberRangePairs)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\Common\EmbeddedSeparatedSyntaxNodeList.cs (2)
17public ImmutableArray<EmbeddedSyntaxNodeOrToken<TSyntaxKind, TSyntaxNode>> NodesAndTokens { get; } 25ImmutableArray<EmbeddedSyntaxNodeOrToken<TSyntaxKind, TSyntaxNode>> nodesAndTokens)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\Common\EmbeddedSyntaxToken.cs (10)
18public readonly ImmutableArray<EmbeddedSyntaxTrivia<TSyntaxKind>> LeadingTrivia; 20public readonly ImmutableArray<EmbeddedSyntaxTrivia<TSyntaxKind>> TrailingTrivia; 21internal readonly ImmutableArray<EmbeddedDiagnostic> Diagnostics; 31ImmutableArray<EmbeddedSyntaxTrivia<TSyntaxKind>> leadingTrivia, 33ImmutableArray<EmbeddedSyntaxTrivia<TSyntaxKind>> trailingTrivia, 34ImmutableArray<EmbeddedDiagnostic> diagnostics, object value) 53public EmbeddedSyntaxToken<TSyntaxKind> WithDiagnostics(ImmutableArray<EmbeddedDiagnostic> diagnostics) 58Optional<ImmutableArray<EmbeddedSyntaxTrivia<TSyntaxKind>>> leadingTrivia = default, 60Optional<ImmutableArray<EmbeddedSyntaxTrivia<TSyntaxKind>>> trailingTrivia = default, 61Optional<ImmutableArray<EmbeddedDiagnostic>> diagnostics = default,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\Common\EmbeddedSyntaxTree.cs (2)
17public readonly ImmutableArray<EmbeddedDiagnostic> Diagnostics; 22ImmutableArray<EmbeddedDiagnostic> diagnostics)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\Common\EmbeddedSyntaxTrivia.cs (2)
24internal readonly ImmutableArray<EmbeddedDiagnostic> Diagnostics; 26public EmbeddedSyntaxTrivia(TSyntaxKind kind, VirtualCharSequence virtualChars, ImmutableArray<EmbeddedDiagnostic> diagnostics)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\VirtualCharSequence.Chunks.cs (1)
17/// is used so we can expose <see cref="VirtualChar"/>s over an <see cref="ImmutableArray{VirtualChar}"/>
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticDescriptorExtensions.cs (3)
23public static ImmutableArray<string> ImmutableCustomTags(this DiagnosticDescriptor descriptor) 25Debug.Assert(descriptor.CustomTags is ImmutableArray<string>); 26return (ImmutableArray<string>)descriptor.CustomTags;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DirectiveInfo.cs (2)
13Dictionary<TDirectiveTriviaSyntax, ImmutableArray<TDirectiveTriviaSyntax>> conditionalMap) 20public Dictionary<TDirectiveTriviaSyntax, ImmutableArray<TDirectiveTriviaSyntax>> ConditionalMap { get; } = conditionalMap;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ICollectionExtensions.cs (1)
14public static ImmutableArray<T> WhereAsArray<T, TState>(this IEnumerable<T> values, Func<T, TState, bool> predicate, TState state)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ICompilationExtensions.cs (4)
23public static ImmutableArray<Compilation> GetReferencedCompilations(this Compilation compilation) 42public static ImmutableArray<IAssemblySymbol> GetReferencedAssemblySymbols(this Compilation compilation, bool excludePreviousSubmissions = false) 46var referencedAssemblySymbols = compilation.Assembly.Modules.First().ReferencedAssemblySymbols; 163=> compilation.GetTypeByMetadataName(typeof(ImmutableArray<>).FullName!);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\IMethodSymbolExtensions.cs (1)
20public static ImmutableArray<IMethodSymbol> GetAllMethodSymbolsOfPartialParts(this IMethodSymbol method)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ImmutableArrayExtensions.cs (9)
12public static ImmutableArray<T> ToImmutableArray<T>(this HashSet<T> set) 21public static bool Contains<T>(this ImmutableArray<T> items, T item, IEqualityComparer<T>? equalityComparer) 24public static ImmutableArray<T> ToImmutableArrayOrEmpty<T>(this T[]? items) 34public static ImmutableArray<T> TakeAsArray<T>(this ImmutableArray<T> array, int count) 43public static ImmutableArray<T> ToImmutableAndClear<T>(this ImmutableArray<T>.Builder builder) 46return ImmutableArray<T>.Empty; 51var result = builder.ToImmutable();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\INamedTypeSymbolExtensions.cs (23)
30public static ImmutableArray<ITypeParameterSymbol> GetAllTypeParameters(this INamedTypeSymbol? symbol) 176public static ImmutableArray<(INamedTypeSymbol type, ImmutableArray<ISymbol> members)> GetAllUnimplementedMembers( 194static ImmutableArray<ISymbol> GetImplicitlyImplementableMembers(INamedTypeSymbol type, ISymbol within) 246public static ImmutableArray<(INamedTypeSymbol type, ImmutableArray<ISymbol> members)> GetAllUnimplementedMembersInThis( 264public static ImmutableArray<(INamedTypeSymbol type, ImmutableArray<ISymbol> members)> GetAllUnimplementedMembersInThis( 267Func<INamedTypeSymbol, ISymbol, ImmutableArray<ISymbol>> interfaceMemberGetter, 283public static ImmutableArray<(INamedTypeSymbol type, ImmutableArray<ISymbol> members)> GetAllUnimplementedExplicitMembers( 297private static ImmutableArray<ISymbol> GetExplicitlyImplementableMembers(INamedTypeSymbol type, ISymbol within) 324private static ImmutableArray<(INamedTypeSymbol type, ImmutableArray<ISymbol> members)> GetAllUnimplementedMembers( 329Func<INamedTypeSymbol, ISymbol, ImmutableArray<ISymbol>> interfaceMemberGetter, 353var typesToImplement = GetTypesToImplement(classOrStructType, interfacesOrAbstractClasses, allowReimplementation, cancellationToken); 358private static ImmutableArray<INamedTypeSymbol> GetTypesToImplement( 369private static ImmutableArray<INamedTypeSymbol> GetAbstractClassesToImplement( 377private static ImmutableArray<INamedTypeSymbol> GetInterfacesToImplement( 401private static ImmutableArray<ISymbol> GetUnimplementedMembers( 406Func<INamedTypeSymbol, ISymbol, ImmutableArray<ISymbol>> interfaceMemberGetter, 516private static ImmutableArray<ISymbol> GetMembers(INamedTypeSymbol type, ISymbol within) 529public static ImmutableArray<ISymbol> GetOverridableMembers(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs (12)
137public static ImmutableArray<ISymbol> ExplicitInterfaceImplementations(this ISymbol symbol) 140IEventSymbol @event => ImmutableArray<ISymbol>.CastUp(@event.ExplicitInterfaceImplementations), 141IMethodSymbol method => ImmutableArray<ISymbol>.CastUp(method.ExplicitInterfaceImplementations), 142IPropertySymbol property => ImmutableArray<ISymbol>.CastUp(property.ExplicitInterfaceImplementations), 146public static ImmutableArray<ISymbol> ExplicitOrImplicitInterfaceImplementations(this ISymbol symbol) 171public static ImmutableArray<ISymbol> ImplicitInterfaceImplementations(this ISymbol symbol) 421public static ImmutableArray<IParameterSymbol> GetParameters(this ISymbol? symbol) 429public static ImmutableArray<ITypeParameterSymbol> GetTypeParameters(this ISymbol? symbol) 437public static ImmutableArray<ITypeParameterSymbol> GetAllTypeParameters(this ISymbol? symbol) 450public static ImmutableArray<ITypeSymbol> GetTypeArguments(this ISymbol? symbol) 458public static ImmutableArray<ITypeSymbol> GetAllTypeArguments(this ISymbol symbol) 662var potentialGetAwaiters = semanticModel.LookupSymbols(position,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.cs (4)
41var allInterfaces = type.AllInterfaces; 443public static ImmutableArray<T> GetAccessibleMembersInThisAndBaseTypes<T>(this ITypeSymbol? containingType, ISymbol within) where T : class, ISymbol 453public static ImmutableArray<T> GetAccessibleMembersInThisAndBaseTypes<T>(this ITypeSymbol? containingType, string memberName, ISymbol within) where T : class, ISymbol 457return ImmutableArray<T>.Empty;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ObjectWriterExtensions.cs (3)
14public static void WriteArray<T>(this ObjectWriter writer, ImmutableArray<T> values, Action<ObjectWriter, T> write) 24public static ImmutableArray<T> ReadArray<T>(this ObjectReader reader, Func<ObjectReader, T> read) 27public static ImmutableArray<T> ReadArray<T, TArg>(this ObjectReader reader, Func<ObjectReader, TArg, T> read, TArg arg)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (3)
338public static bool HasAnyOperationDescendant(this ImmutableArray<IOperation> operationBlocks, Func<IOperation, bool> predicate) 371public static bool HasAnyOperationDescendant(this ImmutableArray<IOperation> operationBlocks, OperationKind kind) 434static IOperation? TryGetSingleExplicitStatement(ImmutableArray<IOperation> operations)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SemanticModelExtensions.cs (2)
153var typeArguments = type.GetAllTypeArguments(); 196ImmutableArray<ITypeSymbol> typeArguments,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\StackExtensions.cs (1)
40public static void Push<T>(this Stack<T> stack, ImmutableArray<T> values)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\StringExtensions.cs (1)
188public static ImmutableArray<SymbolDisplayPart> ToSymbolDisplayParts(this string text)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SymbolInfoExtensions.cs (3)
15public static ImmutableArray<ISymbol> GetAllSymbols(this SymbolInfo info) 18private static ImmutableArray<ISymbol> GetAllSymbolsWorker(this SymbolInfo info) 24public static ImmutableArray<ISymbol> GetBestOrAllSymbols(this SymbolInfo info)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (2)
861var conditionalMap = new Dictionary<TDirectiveTriviaSyntax, ImmutableArray<TDirectiveTriviaSyntax>>( 927var condDirectives = condDirectivesBuilder.ToImmutableAndClear();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\TextSpanExtensions.cs (2)
21public static ImmutableArray<TextSpan> ToNormalizedSpans(this ImmutableArray<TextSpan> spans)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\CustomDataFlowAnalysis.cs (2)
33var blocks = controlFlowGraph.Blocks; 68ImmutableArray<BasicBlock> blocks,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.AnalysisData.cs (2)
144ImmutableArray<IParameterSymbol> parameters) 152ImmutableArray<IParameterSymbol> parameters)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (4)
26private readonly ImmutableArray<IParameterSymbol> _parameters; 74ImmutableArray<IParameterSymbol> parameters, 123var parameters = owningSymbol.GetParameters(); 148var parameters = lambdaOrLocalFunction.GetParameters();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\AbstractSyntaxFormatting.cs (3)
26public abstract ImmutableArray<AbstractFormattingRule> GetDefaultFormattingRules(); 30protected abstract AbstractFormattingResult Format(SyntaxNode node, SyntaxFormattingOptions options, ImmutableArray<AbstractFormattingRule> rules, SyntaxToken startToken, SyntaxToken endToken, CancellationToken cancellationToken); 32public IFormattingResult GetFormattingResult(SyntaxNode node, IEnumerable<TextSpan>? spans, SyntaxFormattingOptions options, ImmutableArray<AbstractFormattingRule> rules, CancellationToken cancellationToken)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.cs (2)
413var intervals = tree.GetIntervalsThatContain(textSpan.Start, textSpan.Length); 543var anchorData = _anchorTree.GetIntervalsThatOverlapWith(baseAnchorData.TextSpan.Start, baseAnchorData.TextSpan.Length);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.InitialContextFinder.cs (3)
44public (List<IndentBlockOperation> indentOperations, ImmutableArray<SuppressOperation> suppressOperations) Do(SyntaxToken startToken, SyntaxToken endToken) 54var initialSuppressOperations = GetInitialSuppressOperations(startToken, endToken); 125private ImmutableArray<SuppressOperation> GetInitialSuppressOperations(SyntaxToken startToken, SyntaxToken endToken)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.cs (3)
58private static Tuple<ImmutableArray<AbstractFormattingRule>, SyntaxFormattingOptions, ChainedFormattingRules>? s_lastRulesAndOptions; 63ImmutableArray<AbstractFormattingRule> formattingRules, 75private static ChainedFormattingRules GetChainedFormattingRules(ImmutableArray<AbstractFormattingRule> formattingRules, SyntaxFormattingOptions options)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\ChainedFormattingRules.cs (9)
22private readonly ImmutableArray<AbstractFormattingRule> _formattingRules; 25private readonly ImmutableArray<AbstractFormattingRule> _addSuppressOperationsRules; 26private readonly ImmutableArray<AbstractFormattingRule> _addAnchorIndentationOperationsRules; 27private readonly ImmutableArray<AbstractFormattingRule> _addIndentBlockOperationsRules; 28private readonly ImmutableArray<AbstractFormattingRule> _addAlignTokensOperationsRules; 29private readonly ImmutableArray<AbstractFormattingRule> _getAdjustNewLinesOperationRules; 30private readonly ImmutableArray<AbstractFormattingRule> _getAdjustSpacesOperationRules; 83private static ImmutableArray<AbstractFormattingRule> FilterToRulesImplementingMethod(ImmutableArray<AbstractFormattingRule> rules, string name)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingOptions2.cs (2)
98internal static readonly ImmutableArray<IOption2> EditorConfigOptions = [UseTabs, TabSize, IndentationSize, NewLine, InsertFinalNewLine]; 103internal static readonly ImmutableArray<IOption2> UndocumentedOptions = [WrappingColumn, ConditionalExpressionWrappingLength];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\ISyntaxFormatting.cs (2)
19ImmutableArray<AbstractFormattingRule> GetDefaultFormattingRules(); 20IFormattingResult GetFormattingResult(SyntaxNode node, IEnumerable<TextSpan>? spans, SyntaxFormattingOptions options, ImmutableArray<AbstractFormattingRule> rules, CancellationToken cancellationToken);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextAlignTokensOperationAction.cs (1)
13ImmutableArray<AbstractFormattingRule> formattingRules,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextAnchorIndentationOperationAction.cs (1)
13ImmutableArray<AbstractFormattingRule> formattingRules,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextGetAdjustNewLinesOperation.cs (1)
12ImmutableArray<AbstractFormattingRule> formattingRules,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextGetAdjustSpacesOperation.cs (1)
12ImmutableArray<AbstractFormattingRule> formattingRules,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextIndentBlockOperationAction.cs (1)
13ImmutableArray<AbstractFormattingRule> formattingRules,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextSuppressOperationAction.cs (1)
14ImmutableArray<AbstractFormattingRule> formattingRules,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\TriviaEngine\AbstractTriviaFormatter.cs (1)
266public ImmutableArray<TextChange> FormatToTextChanges(CancellationToken cancellationToken)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Helpers\RemoveUnnecessaryImports\AbstractUnnecessaryImportsProvider.cs (3)
20public abstract ImmutableArray<TSyntaxNode> GetUnnecessaryImports( 23public ImmutableArray<TSyntaxNode> GetUnnecessaryImports(SemanticModel model, TextSpan? span, CancellationToken cancellationToken) 26public ImmutableArray<TSyntaxNode> GetUnnecessaryImports(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Helpers\RemoveUnnecessaryImports\IUnnecessaryImportsProvider.cs (2)
15ImmutableArray<TSyntaxNode> GetUnnecessaryImports(SemanticModel model, TextSpan? span, CancellationToken cancellationToken); 17ImmutableArray<TSyntaxNode> GetUnnecessaryImports(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Indentation\AbstractIndentation.Indenter.cs (1)
45ImmutableArray<AbstractFormattingRule> rules,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser_SymbolSpec.cs (17)
72(ImmutableArray<SymbolKindOrTypeKind> kinds, TData data), 73(ImmutableArray<Accessibility> accessibilities, TData data), 74(ImmutableArray<ModifierKind> modifiers, TData data), 108private static (ImmutableArray<SymbolKindOrTypeKind> kinds, TData data) GetSymbolsApplicableKinds<T, TData>( 117var kinds = ParseSymbolKindList(symbolSpecApplicableKinds ?? string.Empty); 138private static readonly ImmutableArray<SymbolKindOrTypeKind> _all = 141private static ImmutableArray<SymbolKindOrTypeKind> ParseSymbolKindList(string symbolSpecApplicableKinds) 208private static (ImmutableArray<Accessibility> accessibilities, TData data) GetSymbolsApplicableAccessibilities<T, TData>( 223private static readonly ImmutableArray<Accessibility> s_allAccessibility = 234private static ImmutableArray<Accessibility> ParseAccessibilityKindList(string symbolSpecApplicableAccessibilities) 282private static (ImmutableArray<ModifierKind> modifiers, TData data) GetSymbolsRequiredModifiers<T, TData>( 294return (ImmutableArray<ModifierKind>.Empty, defaultValue()); 302private static readonly ImmutableArray<ModifierKind> _allModifierKind = [s_abstractModifierKind, s_asyncModifierKind, s_constModifierKind, s_readonlyModifierKind, s_staticModifierKind]; 304private static ImmutableArray<ModifierKind> ParseModifiers(string symbolSpecRequiredModifiers) 346public static string ToEditorConfigString(this ImmutableArray<SymbolKindOrTypeKind> symbols) 444public static string ToEditorConfigString(this ImmutableArray<Accessibility> accessibilities, string languageName) 503public static string ToEditorConfigString(this ImmutableArray<ModifierKind> modifiers, string languageName)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Naming\IdentifierNameParts.cs (5)
16internal readonly struct IdentifierNameParts(string baseName, ImmutableArray<string> baseNameParts) 19public readonly ImmutableArray<string> BaseNameParts = baseNameParts; 21public static IdentifierNameParts CreateIdentifierNameParts(ISymbol symbol, ImmutableArray<NamingRule> rules) 37private static string RemovePrefixesAndSuffixes(ISymbol symbol, ImmutableArray<NamingRule> rules, string baseName) 74private static ImmutableArray<string> CreateWords(in TemporaryArray<TextSpan> parts, string name)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (1)
60public string CreateName(ImmutableArray<string> words)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyleRules.cs (5)
13internal sealed class NamingStyleRules(ImmutableArray<NamingRule> namingRules) 15public ImmutableArray<NamingRule> NamingRules { get; } = namingRules; 17private readonly ImmutableArray<SymbolKind> _symbolKindsThatCanBeOverridden = 90var implementedInterfaces = containingType.AllInterfaces; 94var implementedInterfaceMembersWithSameName = implementedInterface.GetMembers(symbol.Name);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (6)
278public readonly ImmutableArray<SymbolSpecification> SymbolSpecifications; 281public readonly ImmutableArray<NamingStyle> NamingStyles; 284public readonly ImmutableArray<SerializableNamingRule> NamingRules; 289ImmutableArray<SymbolSpecification> symbolSpecifications, 290ImmutableArray<NamingStyle> namingStyles, 291ImmutableArray<SerializableNamingRule> namingRules)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferencesEditorConfigSerializer.cs (9)
30ImmutableArray<SymbolSpecification> symbolSpecifications, 31ImmutableArray<NamingStyle> namingStyles, 32ImmutableArray<SerializableNamingRule> serializableNamingRules, 47ImmutableArray<SymbolSpecification> symbolSpecifications, 48ImmutableArray<NamingStyle> namingStyles, 49ImmutableArray<SerializableNamingRule> rules, 120ImmutableArray<SymbolSpecification> symbolSpecifications, 121ImmutableArray<NamingStyle> namingStyles) 171private static ImmutableDictionary<SerializableNamingRule, string> AssignNamesToNamingStyleRules(ImmutableArray<SerializableNamingRule> namingRules, ImmutableDictionary<Guid, string> serializedNameMap)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (10)
31ImmutableArray<SymbolSpecification.SymbolKindOrTypeKind> symbolKindList, 32ImmutableArray<Accessibility> accessibilityList = default, 33ImmutableArray<SymbolSpecification.ModifierKind> modifiers = default) : IEquatable<SymbolSpecification> 44public ImmutableArray<SymbolKindOrTypeKind> ApplicableSymbolKindList { get; } = symbolKindList.IsDefault ? DefaultSymbolSpecificationTemplate.ApplicableSymbolKindList : symbolKindList; 47public ImmutableArray<Accessibility> ApplicableAccessibilityList { get; } = accessibilityList.IsDefault ? DefaultSymbolSpecificationTemplate.ApplicableAccessibilityList : accessibilityList; 50public ImmutableArray<ModifierKind> RequiredModifierList { get; } = modifiers.IsDefault ? DefaultSymbolSpecificationTemplate.RequiredModifierList : modifiers; 125private static DeclarationModifiers CollapseModifiers(ImmutableArray<ModifierKind> requiredModifierList) 290private static ImmutableArray<SymbolKindOrTypeKind> GetSymbolKindListFromXElement(XElement symbolKindListElement) 311private static ImmutableArray<Accessibility> GetAccessibilityListFromXElement(XElement accessibilityListElement) 317private static ImmutableArray<ModifierKind> GetModifierListFromXElement(XElement modifierListElement)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\Option2.cs (1)
87ImmutableArray<OptionStorageLocation> IOption.StorageLocations => [];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionDefinition.cs (4)
105type == typeof(ImmutableArray<bool>) || 106type == typeof(ImmutableArray<string>) || 107type == typeof(ImmutableArray<int>) || 108type == typeof(ImmutableArray<long>);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\PerLanguageOption2.cs (1)
75ImmutableArray<OptionStorageLocation> IOption.StorageLocations => [];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\FileBannerFacts\AbstractFileBannerFacts.cs (9)
66public ImmutableArray<SyntaxTrivia> GetLeadingBlankLines(SyntaxNode node) 69public ImmutableArray<SyntaxTrivia> GetLeadingBlankLines<TSyntaxNode>(TSyntaxNode node) 72GetNodeWithoutLeadingBlankLines(node, out var blankLines); 83TSyntaxNode node, out ImmutableArray<SyntaxTrivia> strippedTrivia) 96public ImmutableArray<SyntaxTrivia> GetLeadingBannerAndPreprocessorDirectives<TSyntaxNode>(TSyntaxNode node) 99GetNodeWithoutLeadingBannerAndPreprocessorDirectives(node, out var leadingTrivia); 111TSyntaxNode node, out ImmutableArray<SyntaxTrivia> strippedTrivia) 166public ImmutableArray<SyntaxTrivia> GetFileBanner(SyntaxNode root) 172public ImmutableArray<SyntaxTrivia> GetFileBanner(SyntaxToken firstToken)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\FileBannerFacts\IFileBannerFacts.cs (6)
14ImmutableArray<SyntaxTrivia> GetFileBanner(SyntaxNode root); 15ImmutableArray<SyntaxTrivia> GetFileBanner(SyntaxToken firstToken); 18ImmutableArray<SyntaxTrivia> GetLeadingBlankLines(SyntaxNode node); 22TSyntaxNode node, out ImmutableArray<SyntaxTrivia> strippedTrivia) where TSyntaxNode : SyntaxNode; 24ImmutableArray<SyntaxTrivia> GetLeadingBannerAndPreprocessorDirectives<TSyntaxNode>(TSyntaxNode node) where TSyntaxNode : SyntaxNode; 27TSyntaxNode GetNodeWithoutLeadingBannerAndPreprocessorDirectives<TSyntaxNode>(TSyntaxNode node, out ImmutableArray<SyntaxTrivia> strippedTrivia) where TSyntaxNode : SyntaxNode;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\FileBannerFacts\IFileBannerFactsExtensions.cs (2)
12public static ImmutableArray<SyntaxTrivia> GetTriviaAfterLeadingBlankLines( 15var leadingBlankLines = bannerService.GetLeadingBlankLines(node);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\HeaderFacts\AbstractHeaderFacts.cs (2)
34=> IsOnHeader(root, position, ownerOfHeader, lastTokenOrNodeOfHeader, ImmutableArray<SyntaxNode>.Empty); 41ImmutableArray<THoleSyntax> holes)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SelectedMembers\AbstractSelectedMembers.cs (5)
32protected abstract ImmutableArray<(SyntaxNode declarator, SyntaxToken identifier)> GetDeclaratorsAndIdentifiers(TMemberDeclarationSyntax member); 34public Task<ImmutableArray<SyntaxNode>> GetSelectedFieldsAndPropertiesAsync( 38public Task<ImmutableArray<SyntaxNode>> GetSelectedMembersAsync( 42private async Task<ImmutableArray<SyntaxNode>> GetSelectedMembersAsync( 77private ImmutableArray<SyntaxNode> GetMembersInSpan(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SemanticFacts\ISemanticFacts.cs (4)
86ImmutableArray<IMethodSymbol> GetDeconstructionAssignmentMethods(SemanticModel semanticModel, SyntaxNode node); 88ImmutableArray<IMethodSymbol> GetDeconstructionForEachMethods(SemanticModel semanticModel, SyntaxNode node); 100ImmutableArray<ISymbol> GetBestOrAllSymbols(SemanticModel semanticModel, SyntaxNode? node, SyntaxToken token, CancellationToken cancellationToken); 107ImmutableArray<IMethodSymbol> GetLocalFunctionSymbols(Compilation compilation, ISymbol symbol, CancellationToken cancellationToken);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SyntaxFacts\ISyntaxFacts.cs (1)
184ImmutableArray<SyntaxNode> GetMatchingConditionalDirectives(SyntaxNode directive, CancellationToken cancellationToken);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SyntaxFacts\ISyntaxFactsExtensions.cs (1)
160this ISyntaxFacts syntaxFacts, ImmutableArray<SyntaxNode> nodes, CancellationToken cancellationToken)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Simplification\SymbolAnnotation.cs (2)
23public static ImmutableArray<ISymbol> GetSymbols(SyntaxAnnotation annotation, Compilation compilation) 25? ImmutableArray<ISymbol>.Empty
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.AnonymousTypeSymbolKey.cs (7)
22var properties = symbol.GetMembers().OfType<IPropertySymbol>().ToImmutableArray(); 23var propertyTypes = properties.SelectAsArray(p => p.Type); 24var propertyNames = properties.SelectAsArray(p => p.Name); 25var propertyIsReadOnly = properties.SelectAsArray(p => p.SetMethod == null); 26var propertyLocations = properties.SelectAsArray(p => p.Locations.FirstOrDefault()); 49var propertyLocations = ReadPropertyLocations(reader, out var propertyLocationsFailureReason); 76private static ImmutableArray<Location> ReadPropertyLocations(SymbolKeyReader reader, out string? failureReason)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.BodyLevelSymbolKey.cs (2)
20public static ImmutableArray<Location> GetBodyLevelSourceLocations(ISymbol symbol, CancellationToken cancellationToken) 64var locations = GetBodyLevelSourceLocations(symbol, cancellationToken);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (4)
259ImmutableArray<ISymbol>.CastUp(symbols.Builder.ToImmutableAndClear()), 264private static T? SafeGet<T>(ImmutableArray<T> values, int index) where T : class 274ImmutableArray<IParameterSymbol> parameters, 301var members = metadataName == null
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.ErrorTypeSymbolKey.cs (2)
45visitor.WriteSymbolKeyArray(ImmutableArray<ITypeSymbol>.Empty); 53private static ImmutableArray<string> GetContainingNamespaceNamesInReverse(INamespaceSymbol namespaceSymbol)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.FunctionPointerTypeSymbolKey.cs (2)
39var callingConventionModifiers = ImmutableArray<INamedTypeSymbol>.Empty;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.ModuleSymbolKey.cs (1)
38if (assemblyModules is ImmutableArray<IModuleSymbol> modules)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.NamedTypeSymbolKey.cs (1)
35visitor.WriteSymbolKeyArray(ImmutableArray<ITypeSymbol>.Empty);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.ParameterSymbolKey.cs (1)
81string metadataName, int ordinal, ImmutableArray<IParameterSymbol> parameters)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.PooledArrayBuilder.cs (2)
34public ImmutableArray<T> ToImmutable() => Builder.ToImmutable(); 52public void AddValuesIfNotNull(ImmutableArray<T> values)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
384ImmutableArray<IParameterSymbol> parameters)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (7)
278internal void WriteSymbolKeyArray<TSymbol>(ImmutableArray<TSymbol> symbols) 284internal void WriteParameterTypesArray(ImmutableArray<IParameterSymbol> symbols) 287internal void WriteBooleanArray(ImmutableArray<bool> array) 295internal void WriteStringArray(ImmutableArray<string> strings) 298internal void WriteLocationArray(ImmutableArray<Location> array) 303internal void WriteRefKindArray(ImmutableArray<IParameterSymbol> values) 306private void WriteArray<T, U>(ImmutableArray<T> array, Action<U> writeValue)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TupleTypeSymbolKey.cs (4)
69var elementLocations = ReadElementLocations(reader, out var elementLocationsFailureReason); 82var elementNamesArray = elementNames.ToImmutable(); 97var elementLocations = ReadElementLocations(reader, out var elementLocationsFailureReason); 128private static ImmutableArray<Location> ReadElementLocations(SymbolKeyReader reader, out string? failureReason)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKeyResolution.cs (3)
20private readonly ImmutableArray<ISymbol> _candidateSymbols; 29internal SymbolKeyResolution(ImmutableArray<ISymbol> candidateSymbols, CandidateReason candidateReason) 40public ImmutableArray<ISymbol> CandidateSymbols => _candidateSymbols.NullToEmpty();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (10)
114SemanticModel model, TForEachStatementSyntax forEach, out IMethodSymbol getEnumeratorMethod, out ITypeSymbol elementType, out ImmutableArray<ILocalSymbol> localVariables); 122protected abstract ImmutableArray<TArgumentSyntax> GetArguments(TExpressionSyntax expression); 780GetForEachSymbols(this.OriginalSemanticModel, forEachStatement, out var originalGetEnumerator, out var originalElementType, out var originalLocalVariables); 781GetForEachSymbols(this.SpeculativeSemanticModel, newForEachStatement, out var newGetEnumerator, out var newElementType, out var newLocalVariables); 1068var specifiedArguments = GetArguments(originalInvocation); 1071var symbolParameters = originalSymbol.GetParameters(); 1072var newSymbolParameters = newSymbol.GetParameters(); 1081ImmutableArray<TArgumentSyntax> specifiedArguments, 1082ImmutableArray<IParameterSymbol> signature1Parameters, 1083ImmutableArray<IParameterSymbol> signature2Parameters)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.Builder.cs (2)
139private void BuildArrays(ImmutableArray<Node>.Builder nodes, ImmutableArray<Edge>.Builder edges)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.cs (4)
48private readonly ImmutableArray<Node> _nodes; 49private readonly ImmutableArray<Edge> _edges; 51private BKTree(char[] concatenatedLowerCaseWords, ImmutableArray<Node> nodes, ImmutableArray<Edge> edges)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ComparerWithState.cs (2)
12public static int CompareTo<T, S>(T first, T second, S state, ImmutableArray<Func<T, S, IComparable>> comparableMethods) 26public static int CompareTo<T>(T first, T second, ImmutableArray<Func<T, IComparable>> comparableMethods)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ConcatImmutableArray`1.cs (9)
14internal readonly struct ConcatImmutableArray<T>(ImmutableArray<T> first, ImmutableArray<T> second) : IEnumerable<T> 24public ImmutableArray<T> ToImmutableArray() 33public struct Enumerator(ImmutableArray<T> first, ImmutableArray<T> second) : IEnumerator<T> 35private ImmutableArray<T>.Enumerator _current = first.NullToEmpty().GetEnumerator(); 36private ImmutableArray<T> _next = second.NullToEmpty(); 64public static ConcatImmutableArray<T> ConcatFast<T>(this ImmutableArray<T> first, ImmutableArray<T> second)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EventMap.cs (10)
28var registries = GetRegistries_NoLock<TEventHandler>(eventName); 29var newRegistries = registries.Add(new Registry<TEventHandler>(eventHandler)); 39var registries = GetRegistries_NoLock<TEventHandler>(eventName); 42var newRegistries = registries.RemoveAll(r => r.HasHandler(eventHandler)); 67private ImmutableArray<Registry<TEventHandler>> GetRegistries<TEventHandler>(string eventName) 76private ImmutableArray<Registry<TEventHandler>> GetRegistries_NoLock<TEventHandler>(string eventName) 82return (ImmutableArray<Registry<TEventHandler>>)registries; 88private void SetRegistries_NoLock<TEventHandler>(string eventName, ImmutableArray<Registry<TEventHandler>> registries) 146private readonly ImmutableArray<Registry<TEventHandler>> _registries; 148internal EventHandlerSet(ImmutableArray<Registry<TEventHandler>> registries)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\FixedSizeArrayBuilder.cs (5)
13/// A bare-bones array builder, focused on the case of producing <see cref="ImmutableArray{T}"/>s where the final array 31/// The builder will be moved to an array (see <see cref="MoveToArray"/>) or <see cref="ImmutableArray{T}"/> (see <see 50public void AddRange(ImmutableArray<T> values) 96/// Moves the underlying buffer out of control of this type, into the returned <see cref="ImmutableArray{T}"/>. It 102public ImmutableArray<T> MoveToImmutable()
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IAsyncEnumerableExtensions.cs (2)
36public static async Task<ImmutableArray<T>> ToImmutableArrayAsync<T>(this IAsyncEnumerable<T> values, CancellationToken cancellationToken) 53public static IAsyncEnumerable<T> MergeAsync<T>(this ImmutableArray<IAsyncEnumerable<T>> streams, CancellationToken cancellationToken)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ICollectionExtensions.cs (1)
66public static void AddRange<T>(this ICollection<T> collection, ImmutableArray<T> values)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IDictionaryExtensions.cs (7)
119public static void MultiAdd<TKey, TValue>(this IDictionary<TKey, ImmutableArray<TValue>> dictionary, TKey key, TValue value) 123if (!dictionary.TryGetValue(key, out var existingArray)) 131public static void MultiAdd<TKey, TValue>(this IDictionary<TKey, ImmutableArray<TValue>> dictionary, TKey key, TValue value, ImmutableArray<TValue> defaultArray) 135if (!dictionary.TryGetValue(key, out var existingArray)) 212public static void MultiRemove<TKey, TValue>(this IDictionary<TKey, ImmutableArray<TValue>> dictionary, TKey key, TValue value) 215if (dictionary.TryGetValue(key, out var collection))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ImmutableArrayComparer.cs (4)
13internal sealed class ImmutableArrayComparer<T> : IEqualityComparer<ImmutableArray<T>> 19public bool Equals(ImmutableArray<T> x, ImmutableArray<T> y) 22public int GetHashCode(ImmutableArray<T> obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\InterceptsLocationUtilities.cs (4)
19internal record struct InterceptsLocationData(ImmutableArray<byte> ContentHash, int Position) 30public static ImmutableArray<InterceptsLocationData> GetInterceptsLocationData(ImmutableArray<AttributeData> attributes) 102var contentHash = bytes[HashIndex..HashSize].ToImmutableArray();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PathMetadataUtilities.cs (2)
28var parts = folders.SelectMany(folder => folder.Split(NamespaceSeparatorArray)).SelectAsArray(syntaxFacts.EscapeIdentifier); 60public static ImmutableArray<string> BuildFoldersFromNamespace(string? @namespace, string? rootNamespace = null)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PooledBuilderExtensions.cs (5)
29public static Dictionary<K, ImmutableArray<V>> ToMultiDictionaryAndFree<K, V>(this PooledDictionary<K, ArrayBuilder<V>> builders) 32var dictionary = new Dictionary<K, ImmutableArray<V>>(builders.Count); 43public static ImmutableDictionary<K, ImmutableArray<V>> ToImmutableMultiDictionaryAndFree<K, V>(this PooledDictionary<K, ArrayBuilder<V>> builders) 46var result = ImmutableDictionary.CreateBuilder<K, ImmutableArray<V>>(); 66public static ImmutableArray<T> ToFlattenedImmutableArrayAndFree<T>(this ArrayBuilder<ArrayBuilder<T>> builders)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ProducerConsumer.cs (6)
42Func<ImmutableArray<TItem>, TArgs, CancellationToken, Task> consumeItems, 66Func<ImmutableArray<TItem>, TArgs, CancellationToken, Task> consumeItems, 144Func<ImmutableArray<TItem>, TArgs, CancellationToken, Task> consumeItems, 158Func<ImmutableArray<TItem>, TArgs, CancellationToken, Task> consumeItems, 208public static Task<ImmutableArray<TItem>> RunParallelAsync<TSource, TArgs>( 221public static async Task<ImmutableArray<TItem>> RunParallelAsync<TSource, TArgs>(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\RestrictedInternalsVisibleToAttribute.cs (1)
13public ImmutableArray<string> AllowedNamespaces { get; } = [.. allowedNamespaces];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SerializableBytes.cs (1)
222public ImmutableArray<byte> ToImmutableArray()
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SpecializedTasks.cs (4)
47public static Task<ImmutableArray<T>> EmptyImmutableArray<T>() 88public static async ValueTask<ImmutableArray<TResult>> WhenAll<TResult>(this IReadOnlyCollection<Task<TResult>> tasks) 188public static readonly Task<ImmutableArray<T>> EmptyImmutableArray = Task.FromResult(ImmutableArray<T>.Empty);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.cs (2)
41private readonly ImmutableArray<EquivalenceVisitor> _equivalenceVisitors; 42private readonly ImmutableArray<GetHashCodeVisitor> _getHashCodeVisitors;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.EquivalenceVisitor.cs (8)
75internal bool AreEquivalent(ImmutableArray<CustomModifier> x, ImmutableArray<CustomModifier> y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 422var xElements = x.TupleElements; 423var yElements = y.TupleElements; 461ImmutableArray<IParameterSymbol> xParameters, 462ImmutableArray<IParameterSymbol> yParameters, 492private bool TypeArgumentsAreEquivalent(ImmutableArray<ITypeSymbol> xTypeArguments, ImmutableArray<ITypeSymbol> yTypeArguments, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (1)
106private static int CombineHashCodes<T>(ImmutableArray<T> array, int currentHash, Func<int, T, int> func)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\CodeFixContextExtensions.cs (1)
27internal static void RegisterFixes(this CodeFixContext context, IEnumerable<CodeAction> actions, ImmutableArray<Diagnostic> diagnostics)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\ForkingSyntaxEditorBasedCodeFixProvider.cs (1)
59ImmutableArray<Diagnostic> diagnostics,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\SyntaxEditorBasedCodeFixProvider.cs (4)
18private static readonly ImmutableArray<FixAllScope> s_defaultSupportedFixAllScopes = 56var diagnostics = ImmutableArray.Create(diagnostic ?? context.Diagnostics[0]); 61Document document, ImmutableArray<Diagnostic> diagnostics, CancellationToken cancellationToken) 89Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService_FindDeclaration.cs (2)
26var declarations = _symbolDeclarationService.GetDeclarations(destination); 147var declarations = _symbolDeclarationService.GetDeclarations(symbol);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationSymbolFactory.cs (72)
34ImmutableArray<AttributeData> attributes, Accessibility accessibility, 36ImmutableArray<IEventSymbol> explicitInterfaceImplementations, 49ImmutableArray<AttributeData> attributes, 54ImmutableArray<IPropertySymbol> explicitInterfaceImplementations, 56ImmutableArray<IParameterSymbol> parameters, 83ImmutableArray<AttributeData> attributes, Accessibility accessibility, DeclarationModifiers modifiers, 84ITypeSymbol type, RefKind refKind, ImmutableArray<IPropertySymbol> explicitInterfaceImplementations, string name, 85ImmutableArray<IParameterSymbol> parameters, IMethodSymbol? getMethod, IMethodSymbol? setMethod, 108ImmutableArray<AttributeData> attributes, 125ImmutableArray<AttributeData> attributes, 129ImmutableArray<IParameterSymbol> parameters, 130ImmutableArray<SyntaxNode> statements = default, 131ImmutableArray<SyntaxNode> baseConstructorArguments = default, 132ImmutableArray<SyntaxNode> thisConstructorArguments = default, 144ImmutableArray<AttributeData> attributes, string typeName, 145ImmutableArray<SyntaxNode> statements = default) 154ImmutableArray<AttributeData> attributes, 159ImmutableArray<IMethodSymbol> explicitInterfaceImplementations, 161ImmutableArray<ITypeParameterSymbol> typeParameters, 162ImmutableArray<IParameterSymbol> parameters, 163ImmutableArray<SyntaxNode> statements = default, 164ImmutableArray<SyntaxNode> handlesExpressions = default, 165ImmutableArray<AttributeData> returnTypeAttributes = default, 178ImmutableArray<AttributeData> attributes, Accessibility accessibility, DeclarationModifiers modifiers, 181ImmutableArray<IMethodSymbol> explicitInterfaceImplementations, 182string name, ImmutableArray<ITypeParameterSymbol> typeParameters, 183ImmutableArray<IParameterSymbol> parameters, 184ImmutableArray<SyntaxNode> statements = default, 185ImmutableArray<SyntaxNode> handlesExpressions = default, 186ImmutableArray<AttributeData> returnTypeAttributes = default, 197ImmutableArray<AttributeData> attributes, 202ImmutableArray<IParameterSymbol> parameters, 203ImmutableArray<SyntaxNode> statements = default, 204ImmutableArray<AttributeData> returnTypeAttributes = default, 229ImmutableArray<SyntaxNode> statements = default, 230ImmutableArray<AttributeData> toTypeAttributes = default, 250ImmutableArray<AttributeData> attributes, 257ImmutableArray<SyntaxNode> statements = default, 258ImmutableArray<AttributeData> toTypeAttributes = default, 282ImmutableArray<AttributeData> attributes, RefKind refKind, bool isParams, ITypeSymbol type, string name, bool isOptional = false, bool hasDefaultValue = false, object? defaultValue = null) 292ImmutableArray<AttributeData>? attributes = null, 334ImmutableArray<AttributeData> attributes, 336ImmutableArray<ITypeSymbol> constraintTypes, 363ImmutableArray<AttributeData> attributes = default, 365ImmutableArray<IMethodSymbol> explicitInterfaceImplementations = default, 366ImmutableArray<SyntaxNode> statements = default) 388ImmutableArray<AttributeData> attributes, 390ImmutableArray<SyntaxNode> statements) 410ImmutableArray<TypedConstant> constructorArguments = default, 411ImmutableArray<KeyValuePair<string, TypedConstant>> namedArguments = default) 420ImmutableArray<AttributeData> attributes, 424ImmutableArray<ITypeParameterSymbol> typeParameters = default, 426ImmutableArray<INamedTypeSymbol> interfaces = default, 428ImmutableArray<ISymbol> members = default, 439ImmutableArray<AttributeData> attributes, 443ImmutableArray<ITypeParameterSymbol> typeParameters = default, 445ImmutableArray<INamedTypeSymbol> interfaces = default, 447ImmutableArray<ISymbol> members = default, 465ImmutableArray<AttributeData> attributes, 471ImmutableArray<ITypeParameterSymbol> typeParameters = default, 472ImmutableArray<IParameterSymbol> parameters = default, 517ImmutableArray<AttributeData> attributes = default, 520ImmutableArray<IMethodSymbol> explicitInterfaceImplementations = default, 522ImmutableArray<IParameterSymbol>? parameters = null, 523ImmutableArray<SyntaxNode> statements = default, 526Optional<ImmutableArray<AttributeData>> returnTypeAttributes = default) 547ImmutableArray<AttributeData> attributes = default, 548ImmutableArray<IParameterSymbol>? parameters = null, 551ImmutableArray<IPropertySymbol> explicitInterfaceImplementations = default, 575ImmutableArray<AttributeData> attributes = default, 578ImmutableArray<IEventSymbol> explicitInterfaceImplementations = default, 596ImmutableArray<AttributeData> attributes = default,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAbstractMethodSymbol.cs (14)
22private readonly ImmutableArray<AttributeData> _returnTypeAttributes; 24public virtual ImmutableArray<AttributeData> GetReturnTypeAttributes() 29ImmutableArray<AttributeData> attributes, 33ImmutableArray<AttributeData> returnTypeAttributes, 47public abstract ImmutableArray<ITypeSymbol> TypeArguments { get; } 48public abstract ImmutableArray<ITypeParameterSymbol> TypeParameters { get; } 49public abstract ImmutableArray<IParameterSymbol> Parameters { get; } 57public abstract ImmutableArray<IMethodSymbol> ExplicitInterfaceImplementations { get; } 64public ImmutableArray<NullableAnnotation> TypeArgumentNullableAnnotations => TypeArguments.SelectAsArray(a => a.NullableAnnotation); 95public ImmutableArray<CustomModifier> RefCustomModifiers 98public virtual ImmutableArray<CustomModifier> ReturnTypeCustomModifiers 109public ImmutableArray<INamedTypeSymbol> UnmanagedCallingConventionTypes => []; 114public IMethodSymbol Construct(ImmutableArray<ITypeSymbol> typeArguments, ImmutableArray<CodeAnalysis.NullableAnnotation> typeArgumentNullableAnnotations)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAbstractNamedTypeSymbol.cs (13)
23public ImmutableArray<IFieldSymbol> TupleElements { get; protected set; } 25internal readonly ImmutableArray<CodeGenerationAbstractNamedTypeSymbol> TypeMembers; 30ImmutableArray<AttributeData> attributes, 36ImmutableArray<CodeGenerationAbstractNamedTypeSymbol> typeMembers) 69public INamedTypeSymbol Construct(ImmutableArray<ITypeSymbol> typeArguments, ImmutableArray<NullableAnnotation> typeArgumentNullableAnnotations) 86public abstract ImmutableArray<IMethodSymbol> InstanceConstructors { get; } 87public abstract ImmutableArray<IMethodSymbol> StaticConstructors { get; } 88public abstract ImmutableArray<IMethodSymbol> Constructors { get; } 89public abstract ImmutableArray<ITypeSymbol> TypeArguments { get; } 90public abstract ImmutableArray<NullableAnnotation> TypeArgumentNullableAnnotations { get; } 92public ImmutableArray<CustomModifier> GetTypeArgumentCustomModifiers(int ordinal) 102public abstract ImmutableArray<ITypeParameterSymbol> TypeParameters { get; }
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationArrayTypeSymbol.cs (3)
24public ImmutableArray<int> Sizes 32public ImmutableArray<int> LowerBounds 57public ImmutableArray<CustomModifier> CustomModifiers
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAttributeData.cs (6)
14ImmutableArray<TypedConstant> constructorArguments, 15ImmutableArray<KeyValuePair<string, TypedConstant>> namedArguments) : AttributeData 17private readonly ImmutableArray<TypedConstant> _constructorArguments = constructorArguments.NullToEmpty(); 18private readonly ImmutableArray<KeyValuePair<string, TypedConstant>> _namedArguments = namedArguments.NullToEmpty(); 22protected override ImmutableArray<TypedConstant> CommonConstructorArguments => _constructorArguments; 23protected override ImmutableArray<KeyValuePair<string, TypedConstant>> CommonNamedArguments => _namedArguments;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationConstructedMethodSymbol.cs (6)
14private readonly ImmutableArray<ITypeSymbol> _typeArguments; 18ImmutableArray<ITypeSymbol> typeArguments) 56public override ImmutableArray<ITypeSymbol> TypeArguments => _typeArguments; 58public override ImmutableArray<ITypeParameterSymbol> TypeParameters => _constructedFrom.TypeParameters; 60public override ImmutableArray<IParameterSymbol> Parameters 93public override ImmutableArray<IMethodSymbol> ExplicitInterfaceImplementations
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationConstructedNamedTypeSymbol.cs (10)
16private readonly ImmutableArray<ITypeSymbol> _typeArguments; 20ImmutableArray<ITypeSymbol> typeArguments, 21ImmutableArray<CodeGenerationAbstractNamedTypeSymbol> typeMembers) 31public override ImmutableArray<ITypeSymbol> TypeArguments => _typeArguments; 33public override ImmutableArray<NullableAnnotation> TypeArgumentNullableAnnotations => _typeArguments.SelectAsArray(t => t.NullableAnnotation); 60public override ImmutableArray<IMethodSymbol> InstanceConstructors 69public override ImmutableArray<IMethodSymbol> StaticConstructors 78public override ImmutableArray<IMethodSymbol> Constructors 87public override ImmutableArray<INamedTypeSymbol> GetTypeMembers() 103public override ImmutableArray<ITypeParameterSymbol> TypeParameters => _constructedFrom.TypeParameters;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationConstructorInfo.cs (15)
17private readonly ImmutableArray<SyntaxNode> _baseConstructorArguments; 18private readonly ImmutableArray<SyntaxNode> _thisConstructorArguments; 19private readonly ImmutableArray<SyntaxNode> _statements; 25ImmutableArray<SyntaxNode> statements, 26ImmutableArray<SyntaxNode> baseConstructorArguments, 27ImmutableArray<SyntaxNode> thisConstructorArguments) 42ImmutableArray<SyntaxNode> statements, 43ImmutableArray<SyntaxNode> baseConstructorArguments, 44ImmutableArray<SyntaxNode> thisConstructorArguments) 56public static ImmutableArray<SyntaxNode> GetThisConstructorArgumentsOpt(IMethodSymbol constructor) 59public static ImmutableArray<SyntaxNode> GetBaseConstructorArgumentsOpt(IMethodSymbol constructor) 62public static ImmutableArray<SyntaxNode> GetStatements(IMethodSymbol constructor) 74private static ImmutableArray<SyntaxNode> GetThisConstructorArgumentsOpt(CodeGenerationConstructorInfo? info) 77private static ImmutableArray<SyntaxNode> GetBaseConstructorArgumentsOpt(CodeGenerationConstructorInfo? info) 80private static ImmutableArray<SyntaxNode> GetStatements(CodeGenerationConstructorInfo? info)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationConstructorSymbol.cs (4)
19ImmutableArray<AttributeData> attributes, 22ImmutableArray<IParameterSymbol> parameters) : CodeGenerationMethodSymbol(containingType, 30typeParameters: ImmutableArray<ITypeParameterSymbol>.Empty, 32returnTypeAttributes: ImmutableArray<AttributeData>.Empty)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationConversionSymbol.cs (3)
19ImmutableArray<AttributeData> attributes, 25ImmutableArray<AttributeData> toTypeAttributes, 36typeParameters: ImmutableArray<ITypeParameterSymbol>.Empty,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationDestructorInfo.cs (5)
17private readonly ImmutableArray<SyntaxNode> _statements; 21ImmutableArray<SyntaxNode> statements) 30ImmutableArray<SyntaxNode> statements) 42public static ImmutableArray<SyntaxNode> GetStatements(IMethodSymbol destructor) 48private static ImmutableArray<SyntaxNode> GetStatements(CodeGenerationDestructorInfo info)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationDestructorSymbol.cs (4)
13ImmutableArray<AttributeData> attributes) : CodeGenerationMethodSymbol(containingType, 21typeParameters: ImmutableArray<ITypeParameterSymbol>.Empty, 22parameters: ImmutableArray<IParameterSymbol>.Empty, 23returnTypeAttributes: ImmutableArray<AttributeData>.Empty)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationEventSymbol.cs (4)
17ImmutableArray<AttributeData> attributes, 21ImmutableArray<IEventSymbol> explicitInterfaceImplementations, 30public ImmutableArray<IEventSymbol> ExplicitInterfaceImplementations { get; } = explicitInterfaceImplementations.NullToEmpty(); 62public static ImmutableArray<CustomModifier> TypeCustomModifiers => [];
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationFieldSymbol.cs (3)
19ImmutableArray<AttributeData> attributes, 86public ImmutableArray<CustomModifier> RefCustomModifiers => []; 88public ImmutableArray<CustomModifier> CustomModifiers
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationMethodInfo.cs (10)
20private readonly ImmutableArray<SyntaxNode> _statements; 21private readonly ImmutableArray<SyntaxNode> _handlesExpressions; 28ImmutableArray<SyntaxNode> statements, 29ImmutableArray<SyntaxNode> handlesExpressions) 45ImmutableArray<SyntaxNode> statements, 46ImmutableArray<SyntaxNode> handlesExpressions) 58public static ImmutableArray<SyntaxNode> GetStatements(IMethodSymbol method) 61public static ImmutableArray<SyntaxNode> GetHandlesExpressions(IMethodSymbol method) 76private static ImmutableArray<SyntaxNode> GetStatements(CodeGenerationMethodInfo info) 79private static ImmutableArray<SyntaxNode> GetHandlesExpressions(CodeGenerationMethodInfo info)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationMethodSymbol.cs (9)
22public override ImmutableArray<ITypeParameterSymbol> TypeParameters { get; } 23public override ImmutableArray<IParameterSymbol> Parameters { get; } 24public override ImmutableArray<IMethodSymbol> ExplicitInterfaceImplementations { get; } 29ImmutableArray<AttributeData> attributes, 34ImmutableArray<IMethodSymbol> explicitInterfaceImplementations, 36ImmutableArray<ITypeParameterSymbol> typeParameters, 37ImmutableArray<IParameterSymbol> parameters, 38ImmutableArray<AttributeData> returnTypeAttributes, 100public override ImmutableArray<ITypeSymbol> TypeArguments
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationNamedTypeSymbol.cs (18)
23private readonly ImmutableArray<ITypeParameterSymbol> _typeParameters; 24private readonly ImmutableArray<INamedTypeSymbol> _interfaces; 25private readonly ImmutableArray<ISymbol> _members; 30ImmutableArray<AttributeData> attributes, 36ImmutableArray<ITypeParameterSymbol> typeParameters, 38ImmutableArray<INamedTypeSymbol> interfaces, 41ImmutableArray<ISymbol> members, 42ImmutableArray<CodeGenerationAbstractNamedTypeSymbol> typeMembers, 119public static ImmutableArray<ISymbol> CandidateSymbols 127public override ImmutableArray<ITypeSymbol> TypeArguments 135public override ImmutableArray<NullableAnnotation> TypeArgumentNullableAnnotations 144public override ImmutableArray<ITypeParameterSymbol> TypeParameters 154public override ImmutableArray<INamedTypeSymbol> Interfaces 162public override ImmutableArray<ISymbol> GetMembers() 165public override ImmutableArray<INamedTypeSymbol> GetTypeMembers() 168public override ImmutableArray<IMethodSymbol> InstanceConstructors 178public override ImmutableArray<IMethodSymbol> StaticConstructors 188public override ImmutableArray<IMethodSymbol> Constructors
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationNamespaceOrTypeSymbol.cs (6)
22ImmutableArray<AttributeData> attributes, 30public virtual ImmutableArray<ISymbol> GetMembers() 33public ImmutableArray<ISymbol> GetMembers(string name) 36public virtual ImmutableArray<INamedTypeSymbol> GetTypeMembers() 39public ImmutableArray<INamedTypeSymbol> GetTypeMembers(string name) 42public ImmutableArray<INamedTypeSymbol> GetTypeMembers(string name, int arity)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationNamespaceSymbol.cs (1)
59public ImmutableArray<INamespaceSymbol> ConstituentNamespaces
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationOperatorSymbol.cs (4)
20ImmutableArray<AttributeData> attributes, 25ImmutableArray<IParameterSymbol> parameters, 26ImmutableArray<AttributeData> returnTypeAttributes, 35typeParameters: ImmutableArray<ITypeParameterSymbol>.Empty,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationParameterSymbol.cs (3)
19ImmutableArray<AttributeData> attributes, 63public ImmutableArray<CustomModifier> RefCustomModifiers => []; 65public ImmutableArray<CustomModifier> CustomModifiers => [];
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationPointerTypeSymbol.cs (1)
33public ImmutableArray<CustomModifier> CustomModifiers
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationPropertySymbol.cs (7)
19ImmutableArray<AttributeData> attributes, 24ImmutableArray<IPropertySymbol> explicitInterfaceImplementations, 27ImmutableArray<IParameterSymbol> parametersOpt, 35public ImmutableArray<IParameterSymbol> Parameters { get; } = parametersOpt.NullToEmpty(); 36public ImmutableArray<IPropertySymbol> ExplicitInterfaceImplementations { get; } = explicitInterfaceImplementations.NullToEmpty(); 85public ImmutableArray<CustomModifier> RefCustomModifiers => []; 87public ImmutableArray<CustomModifier> TypeCustomModifiers => [];
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationSymbol.cs (10)
26private readonly ImmutableArray<AttributeData> _attributes; 37ImmutableArray<AttributeData> attributes, 140public ImmutableArray<Location> Locations 148public static ImmutableArray<SyntaxNode> DeclaringSyntaxNodes 156public ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 164public ImmutableArray<AttributeData> GetAttributes() 167public ImmutableArray<AttributeData> GetAttributes(INamedTypeSymbol attributeType) 170public ImmutableArray<AttributeData> GetAttributes(IMethodSymbol attributeConstructor) 201public ImmutableArray<SymbolDisplayPart> ToDisplayParts(SymbolDisplayFormat format = null) 207public ImmutableArray<SymbolDisplayPart> ToMinimalDisplayParts(SemanticModel semanticModel, int position, SymbolDisplayFormat format = null)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationTypeParameterSymbol.cs (4)
13ImmutableArray<AttributeData> attributes, 17ImmutableArray<ITypeSymbol> constraintTypes, 27public ImmutableArray<ITypeSymbol> ConstraintTypes { get; internal set; } = constraintTypes; 90public ImmutableArray<NullableAnnotation> ConstraintNullableAnnotations => ConstraintTypes.SelectAsArray(t => t.NullableAnnotation);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationTypeSymbol.cs (7)
20ImmutableArray<AttributeData> attributes, 34public virtual ImmutableArray<INamedTypeSymbol> Interfaces 37public ImmutableArray<INamedTypeSymbol> AllInterfaces 50public static ImmutableArray<ITypeSymbol> TupleElementTypes => default; 52public static ImmutableArray<string> TupleElementNames => default; 61public ImmutableArray<SymbolDisplayPart> ToDisplayParts(NullableFlowState topLevelNullability, SymbolDisplayFormat format = null) 67public ImmutableArray<SymbolDisplayPart> ToMinimalDisplayParts(SemanticModel semanticModel, NullableFlowState topLevelNullability, int position, SymbolDisplayFormat format = null)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\AddParameterEditor.cs (5)
43var leadingIndentation = GetDesiredLeadingIndentation( 68var nextLeadingIndentation = GetDesiredLeadingIndentation( 86var firstLeadingIndentation = GetDesiredLeadingIndentation( 109var leadingIndentation = GetDesiredLeadingIndentation( 121private static ImmutableArray<SyntaxTrivia> GetDesiredLeadingIndentation(
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\ImportAdderService.cs (3)
72ImmutableArray<INamespaceSymbol> namespaceSymbols, 92ImmutableArray<INamespaceSymbol> namespaceSymbols, 242var importsToAdd = importToSyntax.Where(kvp => safeImportsToAdd.Contains(kvp.Key)).Select(kvp => kvp.Value).ToImmutableArray();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\ContextQuery\SyntaxContext.cs (1)
56public ImmutableArray<ITypeSymbol> InferredTypes { get; }
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\DocumentExtensions.cs (3)
171var errors = await GetErrorsAsync(document, cancellationToken, ignoreErrorCode).ConfigureAwait(false); 175public static async Task<ImmutableArray<Diagnostic>> GetErrorsAsync(this Document document, CancellationToken cancellationToken, IList<string>? ignoreErrorCode = null) 193var errors = await newDocument.GetErrorsAsync(cancellationToken, ignoreErrorCodes).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IMethodSymbolExtensions.cs (10)
25var parameterNames = NameGenerator.EnsureUniqueness( 37var newTypeParameterNames = NameGenerator.EnsureUniqueness( 45public static IMethodSymbol RenameTypeParameters(this IMethodSymbol method, ImmutableArray<string> newNames) 53var updatedTypeParameters = RenameTypeParameters( 78this IMethodSymbol method, ImmutableArray<string> parameterNames) 80var parameterList = method.Parameters; 86var parameters = parameterList.RenameParameters(parameterNames); 101private static ImmutableArray<ITypeParameterSymbol> RenameTypeParameters( 102ImmutableArray<ITypeParameterSymbol> typeParameters, 103ImmutableArray<string> newNames,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IParameterSymbolExtensions.cs (3)
13public static ImmutableArray<IParameterSymbol> RenameParameters(this IList<IParameterSymbol> parameters, ImmutableArray<string> parameterNames) 37public static IParameterSymbol WithAttributes(this IParameterSymbol parameter, ImmutableArray<AttributeData> attributes)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IPropertySymbolExtensions.cs (3)
15public static IPropertySymbol RenameParameters(this IPropertySymbol property, ImmutableArray<string> parameterNames) 17var parameterList = property.Parameters; 23var parameters = parameterList.RenameParameters(parameterNames);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\ITypeInferenceServiceExtensions.cs (9)
15public static ImmutableArray<ITypeSymbol> InferTypes(this ITypeInferenceService service, SemanticModel semanticModel, SyntaxNode expression, CancellationToken cancellationToken) 18public static ImmutableArray<ITypeSymbol> InferTypes(this ITypeInferenceService service, SemanticModel semanticModel, int position, CancellationToken cancellationToken) 21public static ImmutableArray<TypeInferenceInfo> GetTypeInferenceInfo(this ITypeInferenceService service, SemanticModel semanticModel, int position, CancellationToken cancellationToken) 24public static ImmutableArray<TypeInferenceInfo> GetTypeInferenceInfo(this ITypeInferenceService service, SemanticModel semanticModel, SyntaxNode expression, CancellationToken cancellationToken) 33var types = typeInferenceService.InferTypes(semanticModel, expression, cancellationToken); 43var types = typeInferenceService.InferTypes(semanticModel, position, cancellationToken); 47private static INamedTypeSymbol? GetFirstDelegateType(SemanticModel semanticModel, ImmutableArray<ITypeSymbol> types) 73var types = typeInferenceService.InferTypes(semanticModel, expression, name, cancellationToken); 103var types = typeInferenceService.InferTypes(semanticModel, position, name, cancellationToken);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\StringBuilderExtensions.cs (1)
14public static StringBuilder AppendJoinedValues<T>(this StringBuilder builder, string separator, ImmutableArray<T> values, Action<T, StringBuilder> append)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxEditorExtensions.cs (6)
28ImmutableArray<TType> originalNodes, 51ImmutableArray<TType> originalNodes, 74ImmutableArray<TNode> originalNodes, 95ImmutableArray<TType> originalNodes, 118ImmutableArray<TNode> originalNodes, 152ImmutableArray<TType> originalNodes,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions.cs (13)
55public static ImmutableArray<SyntaxNode> CreateThrowNotImplementedStatementBlock( 59public static ImmutableArray<SyntaxNode> CreateArguments( 61ImmutableArray<IParameterSymbol> parameters) 191public static ImmutableArray<SyntaxNode> GetGetAccessorStatements( 209var arguments = generator.CreateArguments(property.Parameters); 230public static ImmutableArray<SyntaxNode> GetSetAccessorStatements( 248var arguments = generator.CreateArguments(property.Parameters); 291public static ImmutableArray<ISymbol> CreateFieldsForParameters( 292ImmutableArray<IParameterSymbol> parameters, ImmutableDictionary<string, string>? parameterToNewFieldMap, bool isContainedInUnsafeType) 313public static ImmutableArray<ISymbol> CreatePropertiesForParameters( 314ImmutableArray<IParameterSymbol> parameters, ImmutableDictionary<string, string>? parameterToNewPropertyMap, bool isContainedInUnsafeType) 343public static ImmutableArray<SyntaxNode> CreateAssignmentStatements( 347ImmutableArray<IParameterSymbol> parameters,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateEqualsMethod.cs (16)
38ImmutableArray<ISymbol> symbols, 42var statements = CreateEqualsMethodStatements( 49public static IMethodSymbol CreateEqualsMethod(this Compilation compilation, ImmutableArray<SyntaxNode> statements) 69ImmutableArray<ISymbol> symbols, 73var statements = CreateIEquatableEqualsMethodStatements( 85var parameters = ImmutableArray.Create(CodeGenerationSymbolFactory.CreateParameterSymbol( 88attributes: ImmutableArray<AttributeData>.Empty)); 109private static ImmutableArray<SyntaxNode> CreateEqualsMethodStatements( 115ImmutableArray<ISymbol> members, 220ImmutableArray<ISymbol> members, SyntaxNode localNameExpression, 271private static ImmutableArray<SyntaxNode> CreateIEquatableEqualsMethodStatements( 277ImmutableArray<ISymbol> members) 456public static ImmutableArray<ISymbol> CreateMemberDelegatingConstructor( 462ImmutableArray<IParameterSymbol> parameters, 471var newMembers = generateProperties 474var statements = factory.CreateAssignmentStatements(
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateGetHashCodeMethod.cs (7)
17public static ImmutableArray<SyntaxNode> GetGetHashCodeComponents( 22ImmutableArray<ISymbol> members, 41public static ImmutableArray<SyntaxNode> CreateGetHashCodeStatementsUsingSystemHashCode( 43INamedTypeSymbol hashCodeType, ImmutableArray<SyntaxNode> memberReferences) 79public static ImmutableArray<SyntaxNode> CreateGetHashCodeMethodStatements( 84ImmutableArray<ISymbol> members, 87var components = GetGetHashCodeComponents(
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Formatting\ISyntaxFormattingService.cs (2)
16ImmutableArray<TextChange> GetFormattingChangesOnTypedCharacter(ParsedDocument document, int caretPosition, IndentationOptions indentationOptions, CancellationToken cancellationToken); 17ImmutableArray<TextChange> GetFormattingChangesOnPaste(ParsedDocument document, TextSpan textSpan, SyntaxFormattingOptions options, CancellationToken cancellationToken);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Helpers\MefHostServicesHelpers.cs (1)
17public static ImmutableArray<Assembly> LoadNearbyAssemblies(IEnumerable<string> assemblyNames)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Indentation\AbstractIndentationService.cs (1)
55var formattingRules = ImmutableArray.Create(
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\AddImports\AbstractAddImportsService.cs (9)
31protected abstract ImmutableArray<SyntaxNode> GetGlobalImports(Compilation compilation, SyntaxGenerator generator); 61var globalImports = GetGlobalImports(compilation, generator); 62var containers = GetAllContainers(root, contextLocation); 66private static ImmutableArray<SyntaxNode> GetAllContainers(SyntaxNode root, SyntaxNode? contextLocation) 75SyntaxNode import, ImmutableArray<SyntaxNode> containers, ImmutableArray<SyntaxNode> globalImports) 141var globalImports = GetGlobalImports(compilation, generator); 142var containers = GetAllContainers(root, contextLocation); 169var contextSpine = applicableContainer.GetAncestorsOrThis<SyntaxNode>().ToImmutableArray();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\InitializeParameter\InitializeParameterHelpersCore.cs (2)
16public static ImmutableArray<(IParameterSymbol parameter, bool before)> GetSiblingParameters(IParameterSymbol parameter) 63public static string GenerateUniqueName(IParameterSymbol parameter, ImmutableArray<string> parameterNameParts, NamingRule rule)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceService.cs (1)
176private static ImmutableArray<SyntaxTrivia> GetMergedTrivia(
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\SemanticsFactsService\AbstractSemanticFactsService.cs (4)
218public ImmutableArray<IMethodSymbol> GetDeconstructionAssignmentMethods(SemanticModel semanticModel, SyntaxNode node) 221public ImmutableArray<IMethodSymbol> GetDeconstructionForEachMethods(SemanticModel semanticModel, SyntaxNode node) 242public ImmutableArray<ISymbol> GetBestOrAllSymbols(SemanticModel semanticModel, SyntaxNode node, SyntaxToken token, CancellationToken cancellationToken) 248public ImmutableArray<IMethodSymbol> GetLocalFunctionSymbols(Compilation compilation, ISymbol symbol, CancellationToken cancellationToken)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\SymbolDeclarationService\ISymbolDeclarationService.cs (1)
17ImmutableArray<SyntaxReference> GetDeclarations(ISymbol symbol);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\SyntaxFactsService\ISyntaxFactsService.cs (1)
20Task<ImmutableArray<SyntaxNode>> GetSelectedFieldsAndPropertiesAsync(SyntaxTree syntaxTree, TextSpan textSpan, bool allowPartialSelection, CancellationToken cancellationToken);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\TypeInferenceService\AbstractTypeInferenceService.AbstractTypeInferrer.cs (4)
43public ImmutableArray<TypeInferenceInfo> InferTypes(int position) 49public ImmutableArray<TypeInferenceInfo> InferTypes(SyntaxNode expression, bool filterUnusable = true) 76private ImmutableArray<TypeInferenceInfo> Filter(IEnumerable<TypeInferenceInfo> types, bool filterUnusable = true) 111var parameters = type.TypeArguments;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\TypeInferenceService\AbstractTypeInferenceService.cs (15)
17private static ImmutableArray<ITypeSymbol> InferTypeBasedOnNameIfEmpty( 18SemanticModel semanticModel, ImmutableArray<ITypeSymbol> result, string nameOpt) 28private static ImmutableArray<TypeInferenceInfo> InferTypeBasedOnNameIfEmpty( 29SemanticModel semanticModel, ImmutableArray<TypeInferenceInfo> result, string nameOpt) 33var types = InferTypeBasedOnName(semanticModel, nameOpt); 40private static readonly ImmutableArray<string> s_booleanPrefixes = 43private static ImmutableArray<ITypeSymbol> InferTypeBasedOnName( 81public ImmutableArray<ITypeSymbol> InferTypes( 85var result = CreateTypeInferrer(semanticModel, cancellationToken) 93public ImmutableArray<ITypeSymbol> InferTypes( 97var result = CreateTypeInferrer(semanticModel, cancellationToken) 105public ImmutableArray<TypeInferenceInfo> GetTypeInferenceInfo( 109var result = CreateTypeInferrer(semanticModel, cancellationToken).InferTypes(position); 113public ImmutableArray<TypeInferenceInfo> GetTypeInferenceInfo( 117var result = CreateTypeInferrer(semanticModel, cancellationToken).InferTypes(expression);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\TypeInferenceService\ITypeInferenceService.cs (4)
29ImmutableArray<ITypeSymbol> InferTypes(SemanticModel semanticModel, SyntaxNode expression, string nameOpt, CancellationToken cancellationToken); 30ImmutableArray<ITypeSymbol> InferTypes(SemanticModel semanticModel, int position, string nameOpt, CancellationToken cancellationToken); 32ImmutableArray<TypeInferenceInfo> GetTypeInferenceInfo(SemanticModel semanticModel, int position, string nameOpt, CancellationToken cancellationToken); 33ImmutableArray<TypeInferenceInfo> GetTypeInferenceInfo(SemanticModel semanticModel, SyntaxNode expression, string nameOpt, CancellationToken cancellationToken);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Options\MemberDisplayOptions.cs (1)
39public static readonly ImmutableArray<IOption2> EditorConfigOptions = [HideAdvancedMembers];
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\AbstractSimplificationService.cs (11)
29TCrefSyntax>(ImmutableArray<AbstractReducer> reducers) : ISimplificationService 38private readonly ImmutableArray<AbstractReducer> _reducers = reducers; 40protected abstract ImmutableArray<NodeOrTokenToReduce> GetNodesAndTokensToReduce(SyntaxNode root, Func<SyntaxNodeOrToken, bool> isNodeOrTokenOutsideSimplifySpans); 56ImmutableArray<TextSpan> spans, 58ImmutableArray<AbstractReducer> reducers = default, 63var spanList = spans.NullToEmpty(); 88ImmutableArray<TextSpan> spans, 90ImmutableArray<AbstractReducer> reducers, 111var nodesAndTokensToReduce = this.GetNodesAndTokensToReduce(root, IsNodeOrTokenOutsideSimplifySpans); 153ImmutableArray<NodeOrTokenToReduce> nodesAndTokensToReduce, 154ImmutableArray<AbstractReducer> reducers,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\ISimplificationService.cs (2)
32ImmutableArray<TextSpan> spans, 34ImmutableArray<AbstractReducer> reducers = default,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\NameGenerator.cs (5)
41public static ImmutableArray<string> EnsureUniqueness( 42ImmutableArray<string> names, 60public static ImmutableArray<string> EnsureUniqueness( 61ImmutableArray<string> names, 62ImmutableArray<bool> isFixed,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\LayeredServiceUtilities.cs (1)
18private static readonly ImmutableArray<string> s_orderedProductLayers = [ServiceLayer.Host, ServiceLayer.Editor, ServiceLayer.Desktop, ServiceLayer.Default];
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefLanguageServices.cs (4)
16[assembly: DebuggerTypeProxy(typeof(MefLanguageServices.LazyServiceMetadataDebuggerProxy), Target = typeof(ImmutableArray<Lazy<ILanguageService, WorkspaceServiceMetadata>>))] 24private readonly ImmutableArray<(Lazy<ILanguageService, LanguageServiceMetadata> lazyService, bool usesFactory)> _services; 60ImmutableArray<IDisposable> disposableServices; 140internal sealed class LazyServiceMetadataDebuggerProxy(ImmutableArray<Lazy<ILanguageService, LanguageServiceMetadata>> services)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefWorkspaceServices.cs (9)
17[assembly: DebuggerTypeProxy(typeof(MefWorkspaceServices.LazyServiceMetadataDebuggerProxy), Target = typeof(ImmutableArray<Lazy<IWorkspaceService, WorkspaceServiceMetadata>>))] 25private readonly ImmutableArray<(Lazy<IWorkspaceService, WorkspaceServiceMetadata> lazyService, bool usesFactory)> _services; 38private ImmutableArray<string> _languages; 77ImmutableArray<IDisposable> disposableServices; 149private ImmutableArray<string> ComputeSupportedLanguages() 151var localLanguages = _languages; 154var list = HostExportProvider.GetExports<ILanguageService, LanguageServiceMetadata>().Select(lz => lz.Metadata.Language).Concat( 170internal override ImmutableArray<string> SupportedLanguagesArray => ComputeSupportedLanguages(); 214internal sealed class LazyServiceMetadataDebuggerProxy(ImmutableArray<Lazy<IWorkspaceService, WorkspaceServiceMetadata>> services)
Storage\SQLite\v2\SQLitePersistentStorage.Accessor.cs (2)
33private readonly ImmutableArray<(string name, string type)> _primaryKeyColumns; 34private readonly ImmutableArray<(string name, string type)> _allColumns;
SymbolSearch\IRemoteSymbolSearchUpdateEngine.cs (3)
14ValueTask<ImmutableArray<PackageResult>> FindPackagesAsync(string source, TypeQuery typeQuery, NamespaceQuery namespaceQuery, CancellationToken cancellationToken); 15ValueTask<ImmutableArray<PackageWithAssemblyResult>> FindPackagesWithAssemblyAsync(string source, string name, CancellationToken cancellationToken); 16ValueTask<ImmutableArray<ReferenceAssemblyResult>> FindReferenceAssembliesAsync(TypeQuery typeQuery, NamespaceQuery namespaceQuery, CancellationToken cancellationToken);
SymbolSearch\ISymbolSearchService.cs (18)
17/// <param name="Name">The roslyn simple name of the type to search for. For example <see cref="ImmutableArray{T}"/> 19/// <param name="Arity">The arity of the type. For example <see cref="ImmutableArray{T}"/> would have arity 35[property: DataMember(Order = 0)] ImmutableArray<string> Names) 39public static implicit operator NamespaceQuery(ImmutableArray<string> names) 54ValueTask<ImmutableArray<PackageResult>> FindPackagesAsync( 63ValueTask<ImmutableArray<PackageWithAssemblyResult>> FindPackagesWithAssemblyAsync( 75ValueTask<ImmutableArray<ReferenceAssemblyResult>> FindReferenceAssembliesAsync( 95ImmutableArray<string> containingNamespaceNames) : AbstractPackageResult(packageName, rank) 104public readonly ImmutableArray<string> ContainingNamespaceNames = containingNamespaceNames; 133private static readonly ImmutableArray<Func<PackageWithAssemblyResult, IComparable>> s_comparers = 141ImmutableArray<string> containingNamespaceNames) 150public readonly ImmutableArray<string> ContainingNamespaceNames = containingNamespaceNames; 158public ValueTask<ImmutableArray<PackageResult>> FindPackagesAsync(string source, TypeQuery typeQuery, NamespaceQuery namespaceQuery, CancellationToken cancellationToken) 159=> ValueTaskFactory.FromResult(ImmutableArray<PackageResult>.Empty); 161public ValueTask<ImmutableArray<PackageWithAssemblyResult>> FindPackagesWithAssemblyAsync(string source, string assemblyName, CancellationToken cancellationToken) 162=> ValueTaskFactory.FromResult(ImmutableArray<PackageWithAssemblyResult>.Empty); 164public ValueTask<ImmutableArray<ReferenceAssemblyResult>> FindReferenceAssembliesAsync(TypeQuery typeQuery, NamespaceQuery namespaceQuery, CancellationToken cancellationToken) 165=> ValueTaskFactory.FromResult(ImmutableArray<ReferenceAssemblyResult>.Empty);
SymbolSearch\ISymbolSearchUpdateEngine.cs (3)
20ValueTask<ImmutableArray<PackageResult>> FindPackagesAsync( 22ValueTask<ImmutableArray<PackageWithAssemblyResult>> FindPackagesWithAssemblyAsync( 24ValueTask<ImmutableArray<ReferenceAssemblyResult>> FindReferenceAssembliesAsync(
Tags\WellKnownTags.cs (74)
64internal static readonly ImmutableArray<string> Assembly = [WellKnownTags.Assembly]; 65internal static readonly ImmutableArray<string> ClassPublic = [WellKnownTags.Class, WellKnownTags.Public]; 66internal static readonly ImmutableArray<string> ClassProtected = [WellKnownTags.Class, WellKnownTags.Protected]; 67internal static readonly ImmutableArray<string> ClassPrivate = [WellKnownTags.Class, WellKnownTags.Private]; 68internal static readonly ImmutableArray<string> ClassInternal = [WellKnownTags.Class, WellKnownTags.Internal]; 69internal static readonly ImmutableArray<string> ConstantPublic = [WellKnownTags.Constant, WellKnownTags.Public]; 70internal static readonly ImmutableArray<string> ConstantProtected = [WellKnownTags.Constant, WellKnownTags.Protected]; 71internal static readonly ImmutableArray<string> ConstantPrivate = [WellKnownTags.Constant, WellKnownTags.Private]; 72internal static readonly ImmutableArray<string> ConstantInternal = [WellKnownTags.Constant, WellKnownTags.Internal]; 73internal static readonly ImmutableArray<string> DelegatePublic = [WellKnownTags.Delegate, WellKnownTags.Public]; 74internal static readonly ImmutableArray<string> DelegateProtected = [WellKnownTags.Delegate, WellKnownTags.Protected]; 75internal static readonly ImmutableArray<string> DelegatePrivate = [WellKnownTags.Delegate, WellKnownTags.Private]; 76internal static readonly ImmutableArray<string> DelegateInternal = [WellKnownTags.Delegate, WellKnownTags.Internal]; 77internal static readonly ImmutableArray<string> EnumPublic = [WellKnownTags.Enum, WellKnownTags.Public]; 78internal static readonly ImmutableArray<string> EnumProtected = [WellKnownTags.Enum, WellKnownTags.Protected]; 79internal static readonly ImmutableArray<string> EnumPrivate = [WellKnownTags.Enum, WellKnownTags.Private]; 80internal static readonly ImmutableArray<string> EnumInternal = [WellKnownTags.Enum, WellKnownTags.Internal]; 81internal static readonly ImmutableArray<string> EnumMemberPublic = [WellKnownTags.EnumMember, WellKnownTags.Public]; 82internal static readonly ImmutableArray<string> EnumMemberProtected = [WellKnownTags.EnumMember, WellKnownTags.Protected]; 83internal static readonly ImmutableArray<string> EnumMemberPrivate = [WellKnownTags.EnumMember, WellKnownTags.Private]; 84internal static readonly ImmutableArray<string> EnumMemberInternal = [WellKnownTags.EnumMember, WellKnownTags.Internal]; 85internal static readonly ImmutableArray<string> EventPublic = [WellKnownTags.Event, WellKnownTags.Public]; 86internal static readonly ImmutableArray<string> EventProtected = [WellKnownTags.Event, WellKnownTags.Protected]; 87internal static readonly ImmutableArray<string> EventPrivate = [WellKnownTags.Event, WellKnownTags.Private]; 88internal static readonly ImmutableArray<string> EventInternal = [WellKnownTags.Event, WellKnownTags.Internal]; 89internal static readonly ImmutableArray<string> ExtensionMethodPublic = [WellKnownTags.ExtensionMethod, WellKnownTags.Public]; 90internal static readonly ImmutableArray<string> ExtensionMethodProtected = [WellKnownTags.ExtensionMethod, WellKnownTags.Protected]; 91internal static readonly ImmutableArray<string> ExtensionMethodPrivate = [WellKnownTags.ExtensionMethod, WellKnownTags.Private]; 92internal static readonly ImmutableArray<string> ExtensionMethodInternal = [WellKnownTags.ExtensionMethod, WellKnownTags.Internal]; 93internal static readonly ImmutableArray<string> FieldPublic = [WellKnownTags.Field, WellKnownTags.Public]; 94internal static readonly ImmutableArray<string> FieldProtected = [WellKnownTags.Field, WellKnownTags.Protected]; 95internal static readonly ImmutableArray<string> FieldPrivate = [WellKnownTags.Field, WellKnownTags.Private]; 96internal static readonly ImmutableArray<string> FieldInternal = [WellKnownTags.Field, WellKnownTags.Internal]; 97internal static readonly ImmutableArray<string> InterfacePublic = [WellKnownTags.Interface, WellKnownTags.Public]; 98internal static readonly ImmutableArray<string> InterfaceProtected = [WellKnownTags.Interface, WellKnownTags.Protected]; 99internal static readonly ImmutableArray<string> InterfacePrivate = [WellKnownTags.Interface, WellKnownTags.Private]; 100internal static readonly ImmutableArray<string> InterfaceInternal = [WellKnownTags.Interface, WellKnownTags.Internal]; 101internal static readonly ImmutableArray<string> Intrinsic = [WellKnownTags.Intrinsic]; 102internal static readonly ImmutableArray<string> Keyword = [WellKnownTags.Keyword]; 103internal static readonly ImmutableArray<string> Label = [WellKnownTags.Label]; 104internal static readonly ImmutableArray<string> Local = [WellKnownTags.Local]; 105internal static readonly ImmutableArray<string> Namespace = [WellKnownTags.Namespace]; 106internal static readonly ImmutableArray<string> MethodPublic = [WellKnownTags.Method, WellKnownTags.Public]; 107internal static readonly ImmutableArray<string> MethodProtected = [WellKnownTags.Method, WellKnownTags.Protected]; 108internal static readonly ImmutableArray<string> MethodPrivate = [WellKnownTags.Method, WellKnownTags.Private]; 109internal static readonly ImmutableArray<string> MethodInternal = [WellKnownTags.Method, WellKnownTags.Internal]; 110internal static readonly ImmutableArray<string> ModulePublic = [WellKnownTags.Module, WellKnownTags.Public]; 111internal static readonly ImmutableArray<string> ModuleProtected = [WellKnownTags.Module, WellKnownTags.Protected]; 112internal static readonly ImmutableArray<string> ModulePrivate = [WellKnownTags.Module, WellKnownTags.Private]; 113internal static readonly ImmutableArray<string> ModuleInternal = [WellKnownTags.Module, WellKnownTags.Internal]; 114internal static readonly ImmutableArray<string> Folder = [WellKnownTags.Folder]; 115internal static readonly ImmutableArray<string> Operator = [WellKnownTags.Operator]; 116internal static readonly ImmutableArray<string> Parameter = [WellKnownTags.Parameter]; 117internal static readonly ImmutableArray<string> PropertyPublic = [WellKnownTags.Property, WellKnownTags.Public]; 118internal static readonly ImmutableArray<string> PropertyProtected = [WellKnownTags.Property, WellKnownTags.Protected]; 119internal static readonly ImmutableArray<string> PropertyPrivate = [WellKnownTags.Property, WellKnownTags.Private]; 120internal static readonly ImmutableArray<string> PropertyInternal = [WellKnownTags.Property, WellKnownTags.Internal]; 121internal static readonly ImmutableArray<string> RangeVariable = [WellKnownTags.RangeVariable]; 122internal static readonly ImmutableArray<string> Reference = [WellKnownTags.Reference]; 123internal static readonly ImmutableArray<string> StructurePublic = [WellKnownTags.Structure, WellKnownTags.Public]; 124internal static readonly ImmutableArray<string> StructureProtected = [WellKnownTags.Structure, WellKnownTags.Protected]; 125internal static readonly ImmutableArray<string> StructurePrivate = [WellKnownTags.Structure, WellKnownTags.Private]; 126internal static readonly ImmutableArray<string> StructureInternal = [WellKnownTags.Structure, WellKnownTags.Internal]; 127internal static readonly ImmutableArray<string> TypeParameter = [WellKnownTags.TypeParameter]; 128internal static readonly ImmutableArray<string> Snippet = [WellKnownTags.Snippet]; 130internal static readonly ImmutableArray<string> Error = [WellKnownTags.Error]; 131internal static readonly ImmutableArray<string> Warning = [WellKnownTags.Warning]; 132internal static readonly ImmutableArray<string> StatusInformation = [WellKnownTags.StatusInformation]; 134internal static readonly ImmutableArray<string> AddReference = [WellKnownTags.AddReference]; 135internal static readonly ImmutableArray<string> TargetTypeMatch = [WellKnownTags.TargetTypeMatch]; 137internal static readonly ImmutableArray<string> CSharpFile = [WellKnownTags.File, LanguageNames.CSharp]; 138internal static readonly ImmutableArray<string> VisualBasicFile = [WellKnownTags.File, LanguageNames.VisualBasic]; 140internal static readonly ImmutableArray<string> CSharpProject = [WellKnownTags.Project, LanguageNames.CSharp]; 141internal static readonly ImmutableArray<string> VisualBasicProject = [WellKnownTags.Project, LanguageNames.VisualBasic];
TaskList\IRemoteTaskListService.cs (2)
17ValueTask<ImmutableArray<TaskListItem>> GetTaskListItemsAsync(Checksum solutionChecksum, DocumentId documentId, ImmutableArray<TaskListItemDescriptor> descriptors, CancellationToken cancellationToken);
TaskList\ITaskListService.cs (2)
18Task<ImmutableArray<TaskListItem>> GetTaskListItemsAsync(Document document, ImmutableArray<TaskListItemDescriptor> descriptors, CancellationToken cancellationToken);
TaskList\TaskListItemDescriptor.cs (2)
30public static ImmutableArray<TaskListItemDescriptor> Parse(ImmutableArray<string> items)
TaskList\TaskListOptions.cs (2)
13private static readonly ImmutableArray<string> s_defaultDescriptors = ["HACK:2", "TODO:2", "UNDONE:2", "UnresolvedMergeConflict:3"]; 16public ImmutableArray<string> Descriptors { get; init; } = s_defaultDescriptors;
Telemetry\IRemoteProcessTelemetryService.cs (2)
18ValueTask EnableLoggingAsync(ImmutableArray<string> loggerTypeNames, ImmutableArray<FunctionId> functionIds, CancellationToken cancellationToken);
TemporaryStorage\TemporaryStorageService.cs (3)
185ImmutableArray<byte> contentHash) 249ImmutableArray<byte> contentHash) 255public ImmutableArray<byte> ContentHash => contentHash;
Workspace\CommandLineProject.cs (1)
145IList<DocumentInfo> CreateDocuments(ImmutableArray<CommandLineSourceFile> files)
Workspace\DocumentTracking\DefaultDocumentTrackingService.cs (1)
19public ImmutableArray<DocumentId> GetVisibleDocuments()
Workspace\DocumentTracking\IDocumentTrackingService.cs (1)
34ImmutableArray<DocumentId> GetVisibleDocuments();
Workspace\DocumentTracking\IDocumentTrackingServiceExtensions.cs (1)
27public static ImmutableArray<Document> GetVisibleDocuments(this IDocumentTrackingService service, Solution solution)
Workspace\Host\CompilationFactory\ICompilationFactoryService.cs (2)
18GeneratorDriver CreateGeneratorDriver(ParseOptions parseOptions, ImmutableArray<ISourceGenerator> generators, AnalyzerConfigOptionsProvider optionsProvider, ImmutableArray<AdditionalText> additionalTexts, string? generatedFilesBaseDirectory);
Workspace\Host\DocumentService\AbstractSpanMappingService.cs (5)
19public abstract Task<ImmutableArray<(string mappedFilePath, TextChange mappedTextChange)>> GetMappedTextChangesAsync( 24public abstract Task<ImmutableArray<MappedSpanResult>> MapSpansAsync( 29protected static ImmutableArray<(string mappedFilePath, TextChange mappedTextChange)> MatchMappedSpansToTextChanges( 30ImmutableArray<TextChange> textChanges, 31ImmutableArray<MappedSpanResult> mappedSpanResults)
Workspace\Host\DocumentService\IDocumentExcerptService.cs (2)
40internal readonly struct ExcerptResult(SourceText content, TextSpan mappedSpan, ImmutableArray<ClassifiedSpan> classifiedSpans, Document document, TextSpan span) 55public readonly ImmutableArray<ClassifiedSpan> ClassifiedSpans = classifiedSpans;
Workspace\Host\DocumentService\ISpanMappingService.cs (2)
31Task<ImmutableArray<(string mappedFilePath, TextChange mappedTextChange)>> GetMappedTextChangesAsync( 49Task<ImmutableArray<MappedSpanResult>> MapSpansAsync(Document document, IEnumerable<TextSpan> spans, CancellationToken cancellationToken);
Workspace\Host\EventListener\EventListenerTracker.cs (2)
26private readonly ImmutableArray<Lazy<IEventListener, EventListenerMetadata>> _eventListeners = eventListeners.Where(el => el.Metadata.Service == kind).ToImmutableArray(); 68internal ref readonly ImmutableArray<Lazy<IEventListener, EventListenerMetadata>> EventListeners
Workspace\Host\EventListener\IWorkspaceEventListenerProvider.cs (1)
40private readonly ImmutableArray<IEventListener<object>> _eventListeners = eventListeners.ToImmutableArray();
Workspace\Host\HostWorkspaceServices.cs (1)
130internal virtual ImmutableArray<string> SupportedLanguagesArray => [];
Workspace\Host\Mef\MefHostServices.cs (3)
91private static ImmutableArray<Assembly> s_defaultAssemblies; 92public static ImmutableArray<Assembly> DefaultAssemblies 123private static ImmutableArray<Assembly> LoadDefaultAssemblies()
Workspace\Host\Metadata\IAnalyzerAssemblyLoaderProvider.cs (1)
38private readonly ImmutableArray<IAnalyzerAssemblyResolver> _externalResolvers;
Workspace\Host\Metadata\WorkspaceMetadataFileReferenceResolver.cs (1)
28public override ImmutableArray<PortableExecutableReference> ResolveReference(string reference, string baseFilePath, MetadataReferenceProperties properties)
Workspace\Host\PersistentStorage\IPersistentStorageConfiguration.cs (1)
40private static readonly ImmutableArray<char> s_invalidPathChars = [.. Path.GetInvalidPathChars(), '/'];
Workspace\Host\SolutionServices.cs (1)
47internal ImmutableArray<string> SupportedLanguagesArray
Workspace\IsolatedAnalyzerReferenceSet.cs (8)
23public static partial ValueTask<ImmutableArray<AnalyzerReference>> CreateIsolatedAnalyzerReferencesAsync( 25ImmutableArray<AnalyzerReference> references, 35public static partial ValueTask<ImmutableArray<AnalyzerReference>> CreateIsolatedAnalyzerReferencesAsync( 39Func<Task<ImmutableArray<AnalyzerReference>>> getReferencesAsync, 42private static ValueTask<ImmutableArray<AnalyzerReference>> DefaultCreateIsolatedAnalyzerReferencesAsync( 43ImmutableArray<AnalyzerReference> references) 48private static async ValueTask<ImmutableArray<AnalyzerReference>> DefaultCreateIsolatedAnalyzerReferencesAsync( 49Func<Task<ImmutableArray<AnalyzerReference>>> getReferencesAsync)
Workspace\IsolatedAnalyzerReferenceSet.Desktop.cs (4)
24public static partial ValueTask<ImmutableArray<AnalyzerReference>> CreateIsolatedAnalyzerReferencesAsync( 26ImmutableArray<AnalyzerReference> references, 33public static partial ValueTask<ImmutableArray<AnalyzerReference>> CreateIsolatedAnalyzerReferencesAsync( 37Func<Task<ImmutableArray<AnalyzerReference>>> getReferencesAsync,
Workspace\ISolutionAnalyzerSetterWorkspaceService.cs (2)
18void SetAnalyzerReferences(ImmutableArray<AnalyzerReference> references); 32public void SetAnalyzerReferences(ImmutableArray<AnalyzerReference> references)
Workspace\ProjectSystem\FileWatchedPortableExecutableReferenceFactory.cs (1)
73static ImmutableArray<WatchedDirectory> GetAdditionalWatchedDirectories()
Workspace\ProjectSystem\IFileChangeWatcher.cs (4)
13IFileChangeContext CreateContext(ImmutableArray<WatchedDirectory> watchedDirectories); 30public WatchedDirectory(string path, ImmutableArray<string> extensionFilters) 53public ImmutableArray<string> ExtensionFilters { get; } 55public static bool FilePathCoveredByWatchedDirectories(ImmutableArray<WatchedDirectory> watchedDirectories, string filePath, StringComparison stringComparison)
Workspace\ProjectSystem\IHostDiagnosticAnalyzerProvider.cs (1)
16ImmutableArray<(AnalyzerFileReference reference, string extensionId)> GetAnalyzerReferencesInExtensions();
Workspace\ProjectSystem\ProjectSystemProject.BatchingDocumentCollection.cs (16)
54private readonly ImmutableArray<DocumentInfo>.Builder _documentsAddedInBatch = ImmutableArray.CreateBuilder<DocumentInfo>(); 87public DocumentId AddFile(string fullPath, SourceCodeKind sourceCodeKind, ImmutableArray<string> folders) 135ImmutableArray<string> folders, 193public void AddDynamicFile_NoLock(IDynamicFileInfoProvider fileInfoProvider, DynamicFileInfo fileInfo, ImmutableArray<string> folders) 494public void ReorderFiles(ImmutableArray<string> filePaths) 538internal ImmutableArray<(DocumentId documentId, SourceTextContainer textContainer)> UpdateSolutionForBatch( 540ImmutableArray<string>.Builder documentFileNamesAdded, 541Func<Solution, ImmutableArray<DocumentInfo>, Solution> addDocuments, 543Func<Solution, ImmutableArray<DocumentId>, Solution> removeDocuments, 553static ImmutableArray<(DocumentId documentId, SourceTextContainer textContainer)> UpdateSolutionForBatch( 555ImmutableArray<string>.Builder documentFileNamesAdded, 556Func<Solution, ImmutableArray<DocumentInfo>, Solution> addDocuments, 558Func<Solution, ImmutableArray<DocumentId>, Solution> removeDocuments, 561ImmutableArray<DocumentInfo> documentsAddedInBatch, 562ImmutableArray<DocumentId> documentsRemovedInBatch, 610private DocumentInfo CreateDocumentInfoFromFileInfo(DynamicFileInfo fileInfo, ImmutableArray<string> folders)
Workspace\ProjectSystem\ProjectSystemProject.cs (23)
33private static readonly ImmutableArray<MetadataReferenceProperties> s_defaultMetadataReferenceProperties = [default(MetadataReferenceProperties)]; 111private readonly Dictionary<string, ImmutableArray<MetadataReferenceProperties>> _allMetadataReferences = []; 134/// <see cref="AddDynamicSourceFile(string, ImmutableArray{string})"/>. The value of the map is a generated file that 210var watchedDirectories = GetWatchedDirectories(language, filePath); 214static ImmutableArray<WatchedDirectory> GetWatchedDirectories(string? language, string? filePath) 570ImmutableArray<string> documentFileNamesAdded = []; 571ImmutableArray<(DocumentId documentId, SourceTextContainer textContainer)> documentsToOpen = []; 572ImmutableArray<(DocumentId documentId, SourceTextContainer textContainer)> additionalDocumentsToOpen = []; 573ImmutableArray<(DocumentId documentId, SourceTextContainer textContainer)> analyzerConfigDocumentsToOpen = []; 814var isolatedReferences = IsolatedAnalyzerReferenceSet.CreateIsolatedAnalyzerReferencesAsync( 816ImmutableArray<AnalyzerReference>.CastUp(initialReferenceList.ToImmutableAndClear()), 830public void AddSourceFile(string fullPath, SourceCodeKind sourceCodeKind = SourceCodeKind.Regular, ImmutableArray<string> folders = default) 846ImmutableArray<string> folders = default, 867public void AddAdditionalFile(string fullPath, SourceCodeKind sourceCodeKind = SourceCodeKind.Regular, ImmutableArray<string> folders = default) 896public void AddDynamicSourceFile(string dynamicFilePath, ImmutableArray<string> folders) 1144private static readonly ImmutableArray<string> s_razorSourceGeneratorAssemblyNames = 1150private static readonly ImmutableArray<string> s_razorSourceGeneratorAssemblyRootedFileNames = s_razorSourceGeneratorAssemblyNames.SelectAsArray( 1157var vsixRazorAnalyzers = _hostInfo.HostDiagnosticAnalyzerProvider.GetAnalyzerReferencesInExtensions().SelectAsArray( 1227return _allMetadataReferences.TryGetValue(fullPath, out var propertiesList) && propertiesList.Contains(properties); 1234public ImmutableArray<MetadataReferenceProperties> GetPropertiesForMetadataReference(string fullPath) 1238return _allMetadataReferences.TryGetValue(fullPath, out var list) ? list : []; 1405public void ReorderSourceFiles(ImmutableArray<string> filePaths) 1422private static void ClearAndZeroCapacity<T>(ImmutableArray<T>.Builder list)
Workspace\ProjectSystem\ProjectSystemProjectFactory.cs (7)
51private readonly Func<bool, ImmutableArray<string>, Task> _onDocumentsAddedMaybeAsync; 81Func<bool, ImmutableArray<string>, Task> onDocumentsAddedMaybeAsync, 505var projectsForOutputPath = projectUpdateState.ProjectsByOutputPath[outputPath]; 700if (projectUpdateState.ProjectsByOutputPath.TryGetValue(path, out var ids) && ids.Distinct().Count() == 1) 789if (projectUpdateState.ProjectsByOutputPath.TryGetValue(outputPath, out var remainingProjectsForOutputPath)) 791var distinctRemainingProjects = remainingProjectsForOutputPath.Distinct(); 901internal Task RaiseOnDocumentsAddedMaybeAsync(bool useAsync, ImmutableArray<string> filePaths)
Workspace\ProjectSystem\ProjectSystemProjectFactory.ProjectUpdateState.cs (14)
53ImmutableDictionary<string, ImmutableArray<ProjectId>> ProjectsByOutputPath, 55ImmutableArray<PortableExecutableReference> RemovedMetadataReferences, 56ImmutableArray<PortableExecutableReference> AddedMetadataReferences, 57ImmutableArray<string> RemovedAnalyzerReferences, 58ImmutableArray<string> AddedAnalyzerReferences) 61ImmutableDictionary<string, ImmutableArray<ProjectId>>.Empty.WithComparers(StringComparer.OrdinalIgnoreCase), 79static ImmutableDictionary<string, ImmutableArray<ProjectId>> AddProject(string path, ProjectId projectId, ImmutableDictionary<string, ImmutableArray<ProjectId>> map) 81if (!map.TryGetValue(path, out var projects)) 99static ImmutableDictionary<string, ImmutableArray<ProjectId>> RemoveProject(string path, ProjectId projectId, ImmutableDictionary<string, ImmutableArray<ProjectId>> map) 101if (map.TryGetValue(path, out var projects)) 149public record struct ProjectReferenceInformation(ImmutableArray<string> OutputPaths, ImmutableArray<(string path, ProjectReference ProjectReference)> ConvertedProjectReferences)
Workspace\ProjectSystem\ProjectSystemProjectHostInfo.cs (1)
13ImmutableArray<Lazy<IDynamicFileInfoProvider, FileExtensionsMetadata>> DynamicFileInfoProviders,
Workspace\ProjectSystem\ProjectSystemProjectOptionsProcessor.cs (6)
65private bool ReparseCommandLineIfChanged_NoLock(ImmutableArray<string> arguments) 103public void SetCommandLine(ImmutableArray<string> arguments) 162private void ReparseCommandLine_NoLock(ImmutableArray<string> arguments) 168/// Returns the parsed command line arguments for the arguments set with <see cref="SetCommandLine(ImmutableArray{string})"/>. 248var commandLine = _commandLineStorageHandle == null 249? ImmutableArray<string>.Empty
Workspace\Solution\Checksum.cs (1)
49public static Checksum From(ImmutableArray<byte> checksum)
Workspace\Solution\Checksum_Factory.cs (2)
124public static Checksum Create(ImmutableArray<Checksum> checksums) 131public static Checksum Create(ImmutableArray<byte> bytes)
Workspace\Solution\ChecksumCollection.cs (3)
20internal readonly struct ChecksumCollection(ImmutableArray<Checksum> children) : IReadOnlyCollection<Checksum> 29public ImmutableArray<Checksum> Children => children; 37public ImmutableArray<Checksum>.Enumerator GetEnumerator()
Workspace\Solution\ChecksumsAndIds.cs (4)
19public readonly ImmutableArray<ProjectId> Ids; 21public ProjectChecksumsAndIds(ChecksumCollection checksums, ImmutableArray<ProjectId> ids) 71public readonly ImmutableArray<DocumentId> Ids; 73public DocumentChecksumsAndIds(ChecksumCollection attributeChecksums, ChecksumCollection textChecksums, ImmutableArray<DocumentId> ids)
Workspace\Solution\Document.cs (6)
431internal ImmutableArray<TextChange> GetTextChangesSynchronously( 439private async Task<ImmutableArray<TextChange>> GetTextChangesAsync( 464var textChanges = text.GetTextChanges(oldText).ToImmutableArray(); 503public ImmutableArray<DocumentId> GetLinkedDocumentIds() 505var filteredDocumentIds = this.Project.Solution.GetRelatedDocumentIds(this.Id); 600internal ValueTask<ImmutableArray<byte>> GetContentHashAsync(CancellationToken cancellationToken)
Workspace\Solution\DocumentInfo.cs (1)
249var folders = reader.ReadArray(static r => r.ReadRequiredString());
Workspace\Solution\DocumentState.cs (2)
37private ImmutableArray<byte> _contentHash; 104public async ValueTask<ImmutableArray<byte>> GetContentHashAsync(CancellationToken cancellationToken)
Workspace\Solution\IDocumentTextDifferencingService.cs (2)
24Task<ImmutableArray<TextChange>> GetTextChangesAsync(Document oldDocument, Document newDocument, CancellationToken cancellationToken); 34Task<ImmutableArray<TextChange>> GetTextChangesAsync(Document oldDocument, Document newDocument, TextDifferenceTypes preferredDifferenceType, CancellationToken cancellationToken);
Workspace\Solution\Project.cs (6)
362internal ValueTask<ImmutableArray<Diagnostic>> GetSourceGeneratorDiagnosticsAsync(CancellationToken cancellationToken) 766public Project RemoveDocuments(ImmutableArray<DocumentId> documentIds) 784public Project RemoveAdditionalDocuments(ImmutableArray<DocumentId> documentIds) 802public Project RemoveAnalyzerConfigDocuments(ImmutableArray<DocumentId> documentIds) 809private void CheckIdsContainedInProject(ImmutableArray<DocumentId> documentIds) 836internal async ValueTask<Document?> GetDocumentAsync(ImmutableArray<byte> contentHash, CancellationToken cancellationToken)
Workspace\Solution\ProjectDependencyGraph.cs (5)
48private ImmutableArray<ProjectId> _lazyTopologicallySortedProjects; 53private ImmutableArray<IEnumerable<ProjectId>> _lazyDependencySets; 97ImmutableArray<ProjectId> topologicallySortedProjects, 98ImmutableArray<IEnumerable<ProjectId>> dependencySets) 437private ImmutableArray<IEnumerable<ProjectId>> GetDependencySets_NoLock(CancellationToken cancellationToken)
Workspace\Solution\ProjectDependencyGraph_AddProject.cs (2)
19var newTopologicallySortedProjects = _lazyTopologicallySortedProjects; 26var newDependencySets = _lazyDependencySets;
Workspace\Solution\ProjectReference.cs (2)
19public ProjectReference(ProjectId projectId, ImmutableArray<string> aliases = default, bool embedInteropTypes = false) 33public ImmutableArray<string> Aliases { get; }
Workspace\Solution\ProjectState.cs (24)
54private AsyncLazy<Dictionary<ImmutableArray<byte>, DocumentId>>? _lazyContentHashToDocumentId; 61private ImmutableArray<AdditionalText> _lazyAdditionalFiles; 137private async Task<Dictionary<ImmutableArray<byte>, DocumentId>> ComputeContentHashToDocumentIdAsync(CancellationToken cancellationToken) 139var result = new Dictionary<ImmutableArray<byte>, DocumentId>(ImmutableArrayComparer<byte>.Instance); 143var contentHash = text.GetContentHash(); 170private AsyncLazy<Dictionary<ImmutableArray<byte>, DocumentId>> LazyContentHashToDocumentId 194public async ValueTask<DocumentId?> GetDocumentIdAsync(ImmutableArray<byte> contentHash, CancellationToken cancellationToken) 250ImmutableArray<TextDocumentState> newDocuments, 269VersionStamp oldVersion, ImmutableArray<TextDocumentState> newDocuments, CancellationToken cancellationToken) 324private ImmutableArray<AdditionalText> AdditionalFiles 884public ProjectState AddDocuments(ImmutableArray<DocumentState> documents) 896public ProjectState AddAdditionalDocuments(ImmutableArray<AdditionalDocumentState> documents) 908public ProjectState AddAnalyzerConfigDocuments(ImmutableArray<AnalyzerConfigDocumentState> documents) 939public ProjectState RemoveDocuments(ImmutableArray<DocumentId> documentIds) 952public ProjectState RemoveAdditionalDocuments(ImmutableArray<DocumentId> documentIds) 962public ProjectState RemoveAnalyzerConfigDocuments(ImmutableArray<DocumentId> documentIds) 988public ProjectState UpdateDocuments(ImmutableArray<DocumentState> oldDocuments, ImmutableArray<DocumentState> newDocuments) 1014public ProjectState UpdateAdditionalDocuments(ImmutableArray<AdditionalDocumentState> oldDocuments, ImmutableArray<AdditionalDocumentState> newDocuments) 1039public ProjectState UpdateAnalyzerConfigDocuments(ImmutableArray<AnalyzerConfigDocumentState> oldDocuments, ImmutableArray<AnalyzerConfigDocumentState> newDocuments) 1061ImmutableArray<TextDocumentState> oldDocuments, 1062ImmutableArray<TextDocumentState> newDocuments,
Workspace\Solution\Solution.cs (19)
794var collection = analyzerReferences.ToImmutableArray(); 1031public Solution AddDocuments(ImmutableArray<DocumentInfo> documentInfos) 1069public Solution AddAdditionalDocuments(ImmutableArray<DocumentInfo> documentInfos) 1121public Solution AddAnalyzerConfigDocuments(ImmutableArray<DocumentInfo> documentInfos) 1136public Solution RemoveDocuments(ImmutableArray<DocumentId> documentIds) 1142private Solution RemoveDocumentsImpl(ImmutableArray<DocumentId> documentIds) 1157public Solution RemoveAdditionalDocuments(ImmutableArray<DocumentId> documentIds) 1163private Solution RemoveAdditionalDocumentsImpl(ImmutableArray<DocumentId> documentIds) 1178public Solution RemoveAnalyzerConfigDocuments(ImmutableArray<DocumentId> documentIds) 1184private Solution RemoveAnalyzerConfigDocumentsImpl(ImmutableArray<DocumentId> documentIds) 1241internal Solution WithDocumentTexts(ImmutableArray<(DocumentId documentId, SourceText text)> texts, PreservationMode mode = PreservationMode.PreserveValue) 1370internal Solution WithDocumentSyntaxRoots(ImmutableArray<(DocumentId documentId, SyntaxNode root)> syntaxRoots, PreservationMode mode = PreservationMode.PreserveValue) 1389internal Solution WithDocumentContentsFrom(ImmutableArray<(DocumentId documentId, DocumentState documentState)> documentIdsAndStates, bool forceEvenIfTreesWouldDiffer) 1561internal ImmutableArray<DocumentId> GetRelatedDocumentIds(DocumentId documentId, bool includeDifferentLanguages = false) 1629internal Solution WithFrozenSourceGeneratedDocuments(ImmutableArray<(SourceGeneratedDocumentIdentity documentIdentity, DateTime generationDateTime, SourceText text)> documents) 1678public ImmutableArray<DocumentId> GetDocumentIdsWithFilePath(string? filePath) => this.SolutionState.GetDocumentIdsWithFilePath(filePath); 1749private void CheckContainsDocuments(ImmutableArray<DocumentId> documentIds) 1775private void CheckContainsAdditionalDocuments(ImmutableArray<DocumentId> documentIds) 1801private void CheckContainsAnalyzerConfigDocuments(ImmutableArray<DocumentId> documentIds)
Workspace\Solution\Solution_SemanticModelCaching.cs (2)
21private ImmutableArray<(DocumentId documentId, SemanticModel semanticModel)> _activeSemanticModels = []; 29var localArray = _activeSemanticModels;
Workspace\Solution\SolutionCompilationState.cs (37)
243ImmutableArray<ProjectId> changedProjectIds, 252static bool CanReuse(ProjectId id, (ImmutableArray<ProjectId> changedProjectIds, ProjectDependencyGraph dependencyGraph) arg) 781internal SolutionCompilationState WithDocumentTexts(ImmutableArray<(DocumentId documentId, SourceText text)> texts, PreservationMode mode) 796ImmutableArray<(DocumentId documentId, TDocumentData documentData)> documentsToUpdate, 831IEnumerable<(ProjectId projectId, ImmutableArray<TDocumentState> updatedDocumentState)> updatedDocumentStatesPerProject, 832Func<ProjectState, ImmutableArray<TDocumentState>, TranslationAction> getTranslationAction) 866private static TranslationAction GetUpdateDocumentsTranslationAction<TDocumentState>(ProjectState oldProjectState, ImmutableArray<TDocumentState> newDocumentStates) 871ImmutableArray<DocumentState> ordinaryNewDocumentStates => GetUpdateOrdinaryDocumentsTranslationAction(oldProjectState, ordinaryNewDocumentStates), 872ImmutableArray<AdditionalDocumentState> additionalNewDocumentStates => GetUpdateAdditionalDocumentsTranslationAction(oldProjectState, additionalNewDocumentStates), 873ImmutableArray<AnalyzerConfigDocumentState> analyzerConfigNewDocumentStates => GetUpdateAnalyzerConfigDocumentsTranslationAction(oldProjectState, analyzerConfigNewDocumentStates), 877TranslationAction GetUpdateOrdinaryDocumentsTranslationAction(ProjectState oldProjectState, ImmutableArray<DocumentState> newDocumentStates) 879var oldDocumentStates = newDocumentStates.SelectAsArray(static (s, oldProjectState) => oldProjectState.DocumentStates.GetRequiredState(s.Id), oldProjectState); 884TranslationAction GetUpdateAdditionalDocumentsTranslationAction(ProjectState oldProjectState, ImmutableArray<AdditionalDocumentState> newDocumentStates) 886var oldDocumentStates = newDocumentStates.SelectAsArray(static (s, oldProjectState) => oldProjectState.AdditionalDocumentStates.GetRequiredState(s.Id), oldProjectState); 891TranslationAction GetUpdateAnalyzerConfigDocumentsTranslationAction(ProjectState oldProjectState, ImmutableArray<AnalyzerConfigDocumentState> newDocumentStates) 893var oldDocumentStates = newDocumentStates.SelectAsArray(static (s, oldProjectState) => oldProjectState.AnalyzerConfigDocumentStates.GetRequiredState(s.Id), oldProjectState); 949/// <inheritdoc cref="Solution.WithDocumentSyntaxRoots(ImmutableArray{ValueTuple{DocumentId, SyntaxNode}}, PreservationMode)"/> 950public SolutionCompilationState WithDocumentSyntaxRoots(ImmutableArray<(DocumentId documentId, SyntaxNode root)> syntaxRoots, PreservationMode mode) 962ImmutableArray<(DocumentId documentId, DocumentState documentState)> documentIdsAndStates, bool forceEvenIfTreesWouldDiffer) 1178public ValueTask<ImmutableArray<Diagnostic>> GetSourceGeneratorDiagnosticsAsync( 1274var projectIdsToUnfreeze = FrozenSourceGeneratedDocumentStates.States.Values 1315ImmutableArray<(SourceGeneratedDocumentIdentity documentIdentity, DateTime generationDateTime, SourceText sourceText)> documents) 1520var updatedIdToTrackerMap = updatedIdToTrackerMapBuilder.ToImmutable(); 1593var allDocumentIds = @this.SolutionState.GetRelatedDocumentIds(documentId, includeDifferentLanguages); 1659ImmutableArray<DocumentInfo> documentInfos) 1681public SolutionCompilationState RemoveDocumentsFromMultipleProjects<T>(ImmutableArray<DocumentId> documentIds) 1703private SolutionCompilationState RemoveDocumentsFromSingleProject<T>(ProjectId projectId, ImmutableArray<DocumentId> documentIds) 1716var removedDocumentStatesForProject = removedDocumentStates.ToImmutable(); 1732private static TranslationAction GetRemoveDocumentsTranslationAction<TDocumentState>(ProjectState oldProject, ImmutableArray<DocumentId> documentIds, ImmutableArray<TDocumentState> states) 1735ImmutableArray<DocumentState> documentStates => new TranslationAction.RemoveDocumentsAction(oldProject, oldProject.RemoveDocuments(documentIds), documentStates), 1736ImmutableArray<AdditionalDocumentState> additionalDocumentStates => new TranslationAction.RemoveAdditionalDocumentsAction(oldProject, oldProject.RemoveAdditionalDocuments(documentIds), additionalDocumentStates), 1737ImmutableArray<AnalyzerConfigDocumentState> _ => new TranslationAction.TouchAnalyzerConfigDocumentsAction(oldProject, oldProject.RemoveAnalyzerConfigDocuments(documentIds)), 1741private static TranslationAction GetAddDocumentsTranslationAction<TDocumentState>(ProjectState oldProject, ImmutableArray<TDocumentState> states) 1744ImmutableArray<DocumentState> documentStates => new TranslationAction.AddDocumentsAction(oldProject, oldProject.AddDocuments(documentStates), documentStates), 1745ImmutableArray<AdditionalDocumentState> additionalDocumentStates => new TranslationAction.AddAdditionalDocumentsAction(oldProject, oldProject.AddAdditionalDocuments(additionalDocumentStates), additionalDocumentStates), 1746ImmutableArray<AnalyzerConfigDocumentState> analyzerConfigDocumentStates => new TranslationAction.TouchAnalyzerConfigDocumentsAction(oldProject, oldProject.AddAnalyzerConfigDocuments(analyzerConfigDocumentStates)),
Workspace\Solution\SolutionCompilationState.ICompilationTracker.cs (1)
69ValueTask<ImmutableArray<Diagnostic>> GetSourceGeneratorDiagnosticsAsync(SolutionCompilationState compilationState, CancellationToken cancellationToken);
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker.cs (3)
325var documentStates = ImmutableCollectionsMarshal.AsImmutableArray(chunk); 774var documentsWithTrees = documentsWithTreesBuilder.ToImmutableAndClear(); 858public async ValueTask<ImmutableArray<Diagnostic>> GetSourceGeneratorDiagnosticsAsync(
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker_Generators.cs (4)
41var generatedSyntaxTrees = await generatorInfo.Documents.States.Values.SelectAsArrayAsync( 394var additionalTexts = projectState.AdditionalDocumentStates.SelectAsArray(static documentState => documentState.AdditionalText); 416var additionalTexts = (ImmutableArray<AdditionalText>)additionalTextsMember.GetValue(state)!;
Workspace\Solution\SolutionCompilationState.RootedSymbolSet.cs (3)
61public readonly ImmutableArray<SecondaryReferencedSymbol> SecondaryReferencedSymbols; 65ImmutableArray<SecondaryReferencedSymbol> secondaryReferencedSymbols) 117var secondarySymbols = this.SecondaryReferencedSymbols;
Workspace\Solution\SolutionCompilationState.TranslationAction_Actions.cs (13)
24ImmutableArray<DocumentState> oldStates, 25ImmutableArray<DocumentState> newStates) : TranslationAction(oldProjectState, newProjectState) 27private readonly ImmutableArray<DocumentState> _oldStates = oldStates; 28private readonly ImmutableArray<DocumentState> _newStates = newStates; 72ImmutableArray<AdditionalDocumentState> oldStates, 73ImmutableArray<AdditionalDocumentState> newStates) 76private readonly ImmutableArray<AdditionalDocumentState> _oldStates = oldStates; 77private readonly ImmutableArray<AdditionalDocumentState> _newStates = newStates; 136ImmutableArray<DocumentState> documents) 161ImmutableArray<DocumentState> documents) 170public readonly ImmutableArray<DocumentState> Documents = documents; 310ImmutableArray<AdditionalDocumentState> additionalDocuments) 330ImmutableArray<AdditionalDocumentState> additionalDocuments)
Workspace\Solution\SolutionCompilationState.WithFrozenSourceGeneratedDocumentsCompilationTracker.cs (1)
226public ValueTask<ImmutableArray<Diagnostic>> GetSourceGeneratorDiagnosticsAsync(
Workspace\Solution\SolutionCompilationState_Checksum.cs (2)
130ImmutableArray<DateTime> frozenSourceGeneratedDocumentGenerationDateTimes = default; 135var identityChecksums = FrozenSourceGeneratedDocumentStates.SelectAsArray(
Workspace\Solution\SolutionCompilationState_SourceGenerators.cs (2)
29ImmutableArray<ISourceGenerator> SourceGenerators, 56private static ImmutableArray<ISourceGenerator> GetSourceGenerators(ProjectState projectState)
Workspace\Solution\SolutionState.cs (13)
61private ImmutableDictionary<string, ImmutableArray<DocumentId>> _lazyFilePathToRelatedDocumentIds = ImmutableDictionary<string, ImmutableArray<DocumentId>>.Empty.WithComparers(FilePathComparer); 735var newReferences = oldReferences.AddRange(projectReferences); 844var newReferences = oldReferences.AddRange(metadataReferences); 1167public ImmutableArray<DocumentId> GetDocumentIdsWithFilePath(string? filePath) 1178static ImmutableArray<DocumentId> ComputeDocumentIdsWithFilePath(SolutionState @this, string filePath) 1210var oldReferences = AnalyzerReferences.ToImmutableArray(); 1211var newReferences = oldReferences.AddRange(analyzerReferences); 1217var oldReferences = AnalyzerReferences.ToImmutableArray(); 1218var newReferences = oldReferences.Remove(analyzerReference); 1255if (fileMap != null && fileMap.TryGetValue(filePath, out var relatedDocumentIds)) 1290public ImmutableArray<DocumentId> GetRelatedDocumentIds(DocumentId documentId, bool includeDifferentLanguages) 1313var documentIds = GetDocumentIdsWithFilePath(filePath);
Workspace\Solution\SourceGeneratorIdentity.cs (1)
39public static ImmutableArray<SourceGeneratorIdentity> GetIdentities(
Workspace\Solution\StateChecksums.cs (4)
27ImmutableArray<DateTime> frozenSourceGeneratedDocumentGenerationDateTimes) 60public ImmutableArray<DateTime> FrozenSourceGeneratedDocumentGenerationDateTimes { get; } 97ImmutableArray<DateTime> frozenSourceGeneratedDocumentGenerationDateTimes = default; 573ImmutableArray<TReference> references, ISerializerService serializer, CancellationToken cancellationToken) where TReference : class
Workspace\Solution\TextDocumentStates.cs (7)
52private ImmutableArray<TState> _statesInCompilationOrder; 121public ImmutableArray<TState> GetStatesInCompilationOrder() 129public ImmutableArray<TValue> SelectAsArray<TValue>(Func<TState, TValue> selector) 134public ImmutableArray<TValue> SelectAsArray<TValue, TArg>(Func<TState, TArg, TValue> selector, TArg arg) 143public TextDocumentStates<TState> AddRange(ImmutableArray<TState> states) 157public TextDocumentStates<TState> RemoveRange(ImmutableArray<DocumentId> ids) 181internal TextDocumentStates<TState> SetStates(ImmutableArray<TState> states)
Workspace\TextExtensions.cs (5)
19public static ImmutableArray<Document> GetRelatedDocumentsWithChanges(this SourceText text) 37var relatedIds = solution.GetRelatedDocumentIds(documentId); 75var allIds = solution.GetRelatedDocumentIds(id); 106public static ImmutableArray<Document> GetRelatedDocuments(this SourceTextContainer container) 114var relatedIds = solution.GetRelatedDocumentIds(documentId);
Workspace\Workspace.cs (9)
379var relatedDocumentIds = solution.GetRelatedDocumentIds(changedDocumentId); 397var relatedDocumentIdsAndStatesArray = relatedDocumentIdsAndStates.SelectAsArray(static kvp => (kvp.Key, kvp.Value)); 1050protected internal void OnDocumentsAdded(ImmutableArray<DocumentInfo> documentInfos) 1302var linkedDocumentIds = oldSolution.GetRelatedDocumentIds(documentId, includeDifferentLanguages: true); 1572var projectChangesList = solutionChanges.GetProjectChanges().ToImmutableArray(); 1621private void ApplyDocumentsInfoChange(ImmutableArray<ProjectChanges> projectChanges) 1637var linkedDocuments = oldDoc.GetLinkedDocumentIds(); 1749var changedDocumentIds = projectChanges.GetChangedDocuments(onlyGetDocumentsWithTextChanges: true, IgnoreUnchangeableDocumentsWhenApplyingChanges).ToImmutableArray(); 2016var textChanges = newDoc.GetTextChangesSynchronously(oldDoc, CancellationToken.None);
Microsoft.CodeAnalysis.Workspaces.Desktop (1)
Workspace\Host\Mef\DesktopMefHostServices.cs (1)
13public static ImmutableArray<Assembly> DefaultAssemblies => MefHostServices.DefaultAssemblies;
Microsoft.CodeAnalysis.Workspaces.MSBuild (68)
Host\Mef\MSBuildMefHostServices.cs (1)
22public static ImmutableArray<Assembly> DefaultAssemblies
MSBuild\MSBuildProjectLoader.cs (2)
234var projects = await worker.LoadAsync(cancellationToken).ConfigureAwait(false); 255public async Task<ImmutableArray<ProjectInfo>> LoadProjectInfoAsync(
MSBuild\MSBuildProjectLoader.Worker.cs (19)
37private readonly ImmutableArray<string> _requestedProjectPaths; 71private readonly Dictionary<string, ImmutableArray<ProjectInfo>> _pathToDiscoveredProjectInfosMap; 79ImmutableArray<string> requestedProjectPaths, 102_pathToDiscoveredProjectInfosMap = new Dictionary<string, ImmutableArray<ProjectInfo>>(PathUtilities.Comparer); 129public async Task<ImmutableArray<ProjectInfo>> LoadAsync(CancellationToken cancellationToken) 153var projectFileInfos = await LoadProjectInfosFromPathAsync(absoluteProjectPath, _requestedProjectOptions, cancellationToken).ConfigureAwait(false); 171private async Task<ImmutableArray<ProjectFileInfo>> LoadProjectFileInfosAsync(string projectPath, DiagnosticReportingOptions reportingOptions, CancellationToken cancellationToken) 188var diagnosticItems = await projectFile.GetDiagnosticLogItemsAsync(cancellationToken).ConfigureAwait(false); 196var projectFileInfos = await DoOperationAndReportProgressAsync( 219private async Task<ImmutableArray<ProjectInfo>> LoadProjectInfosFromPathAsync( 222if (_projectMap.TryGetProjectInfosByProjectPath(projectPath, out var results) || 230var projectFileInfos = await LoadProjectFileInfosAsync(projectPath, reportingOptions, cancellationToken).ConfigureAwait(false); 359var documents = CreateDocumentInfos(projectFileInfo.Documents, projectId, commandLineArgs.Encoding); 360var additionalDocuments = CreateDocumentInfos(projectFileInfo.AdditionalDocuments, projectId, commandLineArgs.Encoding); 361var analyzerConfigDocuments = CreateDocumentInfos(projectFileInfo.AnalyzerConfigDocuments, projectId, commandLineArgs.Encoding); 436private ImmutableArray<DocumentInfo> CreateDocumentInfos(IReadOnlyList<DocumentFileInfo> documentFileInfos, ProjectId projectId, Encoding? encoding) 442GetDocumentNameAndFolders(info.LogicalPath, out var name, out var folders); 461private static void GetDocumentNameAndFolders(string logicalPath, out string name, out ImmutableArray<string> folders) 479private void CheckForDuplicateDocuments(ImmutableArray<DocumentInfo> documents, string? projectFilePath, ProjectId projectId)
MSBuild\MSBuildProjectLoader.Worker_ResolveReferences.cs (12)
24public ImmutableArray<MetadataReference> MetadataReferences { get; } 26public ResolvedReferences(ImmutableHashSet<ProjectReference> projectReferences, ImmutableArray<MetadataReference> metadataReferences) 42private readonly ImmutableArray<MetadataReference> _metadataReferences; 66private static ImmutableDictionary<string, HashSet<int>> CreatePathToIndexMap(ImmutableArray<MetadataReference> metadataReferences) 145public ImmutableArray<UnresolvedMetadataReference> GetUnresolvedMetadataReferences() 160private ImmutableArray<MetadataReference> GetMetadataReferences() 202var aliases = projectFileReference.Aliases; 267private async Task<bool> TryLoadAndAddReferenceAsync(ProjectId id, string projectReferencePath, ImmutableArray<string> aliases, ResolvedReferencesBuilder builder, CancellationToken cancellationToken) 269var projectReferenceInfos = await LoadProjectInfosFromPathAsync(projectReferencePath, _discoveredProjectOptions, cancellationToken).ConfigureAwait(false); 352var projectFileInfos = await LoadProjectFileInfosAsync(projectPath, DiagnosticReportingOptions.IgnoreAll, cancellationToken).ConfigureAwait(false); 369private ProjectReference CreateProjectReference(ProjectId from, ProjectId to, ImmutableArray<string> aliases) 386ImmutableArray<string> aliases,
MSBuild\MSBuildWorkspace.cs (1)
251var projects = await _loader.LoadProjectInfoAsync(projectFilePath, projectMap, progress, msbuildLogger, cancellationToken).ConfigureAwait(false);
MSBuild\ProjectMap.cs (4)
30private readonly Dictionary<string, ImmutableArray<ProjectInfo>> _projectPathToProjectInfosMap; 45_projectPathToProjectInfosMap = new Dictionary<string, ImmutableArray<ProjectInfo>>(PathUtilities.Comparer); 108if (!_projectPathToProjectInfosMap.TryGetValue(projectFilePath, out var projectInfos)) 206internal bool TryGetProjectInfosByProjectPath(string projectPath, out ImmutableArray<ProjectInfo> projectInfos)
Rpc\RemoteBuildHost.cs (2)
26public Task<ImmutableArray<(string ProjectPath, string ProjectGuid)>> GetProjectsInSolutionAsync(string solutionFilePath, CancellationToken cancellationToken) 27=> _client.InvokeAsync<ImmutableArray<(string ProjectPath, string ProjectGuid)>>(BuildHostTargetObject, nameof(IBuildHost.GetProjectsInSolution), parameters: [solutionFilePath], cancellationToken);
Rpc\RemoteProjectFile.cs (5)
22public Task<ImmutableArray<DiagnosticLogItem>> GetDiagnosticLogItemsAsync(CancellationToken cancellationToken) 23=> _client.InvokeAsync<ImmutableArray<DiagnosticLogItem>>(_remoteProjectFileTargetObject, nameof(IProjectFile.GetDiagnosticLogItems), parameters: [], cancellationToken); 25public Task<ImmutableArray<ProjectFileInfo>> GetProjectFileInfosAsync(CancellationToken cancellationToken) 26=> _client.InvokeAsync<ImmutableArray<ProjectFileInfo>>(_remoteProjectFileTargetObject, nameof(IProjectFile.GetProjectFileInfosAsync), parameters: [], cancellationToken); 34public Task AddMetadataReferenceAsync(string metadataReferenceIdentity, ImmutableArray<string> aliases, string? hintPath, CancellationToken cancellationToken)
src\Compilers\Shared\GlobalAssemblyCacheHelpers\GlobalAssemblyCacheLocation.cs (2)
30public static ImmutableArray<string> s_rootLocations; 32public static ImmutableArray<string> RootLocations
src\Workspaces\Core\MSBuild.BuildHost\Rpc\Contracts\DocumentFileInfo.cs (2)
14internal sealed class DocumentFileInfo(string filePath, string logicalPath, bool isLinked, bool isGenerated, ImmutableArray<string> folders) 47public ImmutableArray<string> Folders { get; } = folders;
src\Workspaces\Core\MSBuild.BuildHost\Rpc\Contracts\FileGlobs.cs (3)
12[property: DataMember(Order = 0)] ImmutableArray<string> Includes, 13[property: DataMember(Order = 1)] ImmutableArray<string> Excludes, 14[property: DataMember(Order = 2)] ImmutableArray<string> Removes
src\Workspaces\Core\MSBuild.BuildHost\Rpc\Contracts\IBuildHost.cs (1)
17ImmutableArray<(string ProjectPath, string ProjectGuid)> GetProjectsInSolution(string solutionFilePath);
src\Workspaces\Core\MSBuild.BuildHost\Rpc\Contracts\IProjectFile.cs (3)
16ImmutableArray<DiagnosticLogItem> GetDiagnosticLogItems(); 17Task<ImmutableArray<ProjectFileInfo>> GetProjectFileInfosAsync(CancellationToken cancellationToken); 20void AddMetadataReference(string metadataReferenceIdentity, ImmutableArray<string> aliases, string? hintPath);
src\Workspaces\Core\MSBuild.BuildHost\Rpc\Contracts\ProjectFileInfo.cs (9)
87public ImmutableArray<string> CommandLineArgs { get; init; } 93public ImmutableArray<DocumentFileInfo> Documents { get; init; } 99public ImmutableArray<DocumentFileInfo> AdditionalDocuments { get; init; } 105public ImmutableArray<DocumentFileInfo> AnalyzerConfigDocuments { get; init; } 111public ImmutableArray<ProjectFileReference> ProjectReferences { get; init; } 117public ImmutableArray<string> ProjectCapabilities { get; init; } 123public ImmutableArray<string> ContentFilePaths { get; init; } 135public ImmutableArray<PackageReference> PackageReferences { get; init; } 144public ImmutableArray<FileGlobs> FileGlobs { get; init; }
src\Workspaces\Core\MSBuild.BuildHost\Rpc\Contracts\ProjectFileReference.cs (2)
28public ImmutableArray<string> Aliases { get; } 36public ProjectFileReference(string path, ImmutableArray<string> aliases, bool referenceOutputAssembly)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (323)
Build\ProjectBuildManager.cs (2)
140_msbuildLogger != null ? [_msbuildLogger] : ImmutableArray<MSB.Framework.ILogger>.Empty, 188: ImmutableArray<MSB.Framework.ILogger>.Empty;
BuildHost.cs (2)
136public ImmutableArray<(string ProjectPath, string ProjectGuid)> GetProjectsInSolution(string solutionFilePath) 143private static ImmutableArray<(string ProjectPath, string ProjectGuid)> GetProjectsInSolutionCore(string solutionFilePath)
MSBuild\CSharp\CSharpCommandLineArgumentReader.cs (1)
17public static ImmutableArray<string> Read(MSB.Execution.ProjectInstance project)
MSBuild\CSharp\CSharpProjectFile.cs (1)
21protected override ImmutableArray<string> ReadCommandLineArgs(MSB.Execution.ProjectInstance project)
MSBuild\ProjectFile\CommandLineArgumentReader.cs (3)
17private readonly ImmutableArray<string>.Builder _builder; 250var aliases = reference.GetAliases(); 293protected ImmutableArray<string> Read()
MSBuild\ProjectFile\Extensions.cs (2)
36public static ImmutableArray<PackageReference> GetPackageReferences(this MSB.Execution.ProjectInstance executedProject) 58public static ImmutableArray<string> GetAliases(this MSB.Framework.ITaskItem item)
MSBuild\ProjectFile\ProjectFile.cs (18)
41public ImmutableArray<DiagnosticLogItem> GetDiagnosticLogItems() => [.. Log]; 44protected abstract ImmutableArray<string> ReadCommandLineArgs(MSB.Execution.ProjectInstance project); 51public async Task<ImmutableArray<ProjectFileInfo>> GetProjectFileInfosAsync(CancellationToken cancellationToken) 120var commandLineArgs = GetCommandLineArgs(project); 164var docs = project.GetDocuments() 169var additionalDocs = project.GetAdditionalFiles() 173var analyzerConfigDocs = project.GetEditorConfigFiles() 177var packageReferences = project.GetPackageReferences(); 179var projectCapabilities = project.GetItems(ItemNames.ProjectCapability).SelectAsArray(item => item.ToString()); 180var contentFileInfo = GetContentFiles(project); 214private static ImmutableArray<string> GetContentFiles(MSB.Execution.ProjectInstance project) 216var contentFiles = project 222private ImmutableArray<string> GetCommandLineArgs(MSB.Execution.ProjectInstance project) 224var commandLineArgs = GetCompilerCommandLineArgs(project) 250var folders = GetRelativeFolders(documentItem); 261var folders = GetRelativeFolders(documentItem); 265private ImmutableArray<string> GetRelativeFolders(MSB.Framework.ITaskItem documentItem) 400public void AddMetadataReference(string metadataReferenceIdentity, ImmutableArray<string> aliases, string? hintPath)
MSBuild\VisualBasic\VisualBasicCommandLineArgumentReader.cs (1)
19public static ImmutableArray<string> Read(MSB.Execution.ProjectInstance project)
MSBuild\VisualBasic\VisualBasicProjectFile.cs (1)
21protected override ImmutableArray<string> ReadCommandLineArgs(MSB.Execution.ProjectInstance project)
Rpc\Contracts\DocumentFileInfo.cs (2)
14internal sealed class DocumentFileInfo(string filePath, string logicalPath, bool isLinked, bool isGenerated, ImmutableArray<string> folders) 47public ImmutableArray<string> Folders { get; } = folders;
Rpc\Contracts\FileGlobs.cs (3)
12[property: DataMember(Order = 0)] ImmutableArray<string> Includes, 13[property: DataMember(Order = 1)] ImmutableArray<string> Excludes, 14[property: DataMember(Order = 2)] ImmutableArray<string> Removes
Rpc\Contracts\IBuildHost.cs (1)
17ImmutableArray<(string ProjectPath, string ProjectGuid)> GetProjectsInSolution(string solutionFilePath);
Rpc\Contracts\IProjectFile.cs (3)
16ImmutableArray<DiagnosticLogItem> GetDiagnosticLogItems(); 17Task<ImmutableArray<ProjectFileInfo>> GetProjectFileInfosAsync(CancellationToken cancellationToken); 20void AddMetadataReference(string metadataReferenceIdentity, ImmutableArray<string> aliases, string? hintPath);
Rpc\Contracts\ProjectFileInfo.cs (9)
87public ImmutableArray<string> CommandLineArgs { get; init; } 93public ImmutableArray<DocumentFileInfo> Documents { get; init; } 99public ImmutableArray<DocumentFileInfo> AdditionalDocuments { get; init; } 105public ImmutableArray<DocumentFileInfo> AnalyzerConfigDocuments { get; init; } 111public ImmutableArray<ProjectFileReference> ProjectReferences { get; init; } 117public ImmutableArray<string> ProjectCapabilities { get; init; } 123public ImmutableArray<string> ContentFilePaths { get; init; } 135public ImmutableArray<PackageReference> PackageReferences { get; init; } 144public ImmutableArray<FileGlobs> FileGlobs { get; init; }
Rpc\Contracts\ProjectFileReference.cs (2)
28public ImmutableArray<string> Aliases { get; } 36public ProjectFileReference(string path, ImmutableArray<string> aliases, bool referenceOutputAssembly)
src\Compilers\Core\Portable\Collections\ArrayBuilderExtensions.cs (8)
71public static ImmutableArray<TResult> SelectAsArray<TItem, TResult>(this ArrayBuilder<TItem> items, Func<TItem, TResult> map) 76return ImmutableArray<TResult>.Empty; 111public static ImmutableArray<TResult> SelectAsArray<TItem, TArg, TResult>(this ArrayBuilder<TItem> items, Func<TItem, TArg, TResult> map, TArg arg) 116return ImmutableArray<TResult>.Empty; 151public static ImmutableArray<TResult> SelectAsArrayWithIndex<TItem, TArg, TResult>(this ArrayBuilder<TItem> items, Func<TItem, int, TArg, TResult> map, TArg arg) 156return ImmutableArray<TResult>.Empty; 222public static ImmutableArray<T> ToImmutableOrEmptyAndFree<T>(this ArrayBuilder<T>? builder) 224return builder?.ToImmutableAndFree() ?? ImmutableArray<T>.Empty;
src\Compilers\Core\Portable\Collections\ImmutableArrayExtensions.cs (152)
27/// The collection of extension methods for the <see cref="ImmutableArray{T}"/> type 39public static ImmutableArray<T> AsImmutable<T>(this IEnumerable<T> items) 51public static ImmutableArray<T> AsImmutableOrEmpty<T>(this IEnumerable<T>? items) 55return ImmutableArray<T>.Empty; 68public static ImmutableArray<T> AsImmutableOrNull<T>(this IEnumerable<T>? items) 84public static ImmutableArray<T> AsImmutable<T>(this T[] items) 97public static ImmutableArray<T> AsImmutableOrNull<T>(this T[]? items) 113public static ImmutableArray<T> AsImmutableOrEmpty<T>(this T[]? items) 117return ImmutableArray<T>.Empty; 128public static ImmutableArray<byte> ToImmutable(this MemoryStream stream) 141public static ImmutableArray<TResult> SelectAsArray<TItem, TResult>(this ImmutableArray<TItem> items, Func<TItem, TResult> map) 156public static ImmutableArray<TResult> SelectAsArray<TItem, TArg, TResult>(this ImmutableArray<TItem> items, Func<TItem, TArg, TResult> map, TArg arg) 171public static ImmutableArray<TResult> SelectAsArray<TItem, TArg, TResult>(this ImmutableArray<TItem> items, Func<TItem, int, TArg, TResult> map, TArg arg) 176return ImmutableArray<TResult>.Empty; 210public static ImmutableArray<TResult> SelectAsArray<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, bool> predicate, Func<TItem, TResult> selector) 214return ImmutableArray<TResult>.Empty; 240public static ImmutableArray<TResult> SelectAsArray<TItem, TArg, TResult>(this ImmutableArray<TItem> array, Func<TItem, TArg, bool> predicate, Func<TItem, TArg, TResult> selector, TArg arg) 244return ImmutableArray<TResult>.Empty; 267public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, IEnumerable<TResult>> selector) 270return ImmutableArray<TResult>.Empty; 287public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, ImmutableArray<TResult>> selector) 290return ImmutableArray<TResult>.Empty; 307public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, OneOrMany<TResult>> selector) 310return ImmutableArray<TResult>.Empty; 330public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, bool> predicate, Func<TItem, IEnumerable<TResult>> selector) 333return ImmutableArray<TResult>.Empty; 354public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, bool> predicate, Func<TItem, ImmutableArray<TResult>> selector) 357return ImmutableArray<TResult>.Empty; 378public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, bool> predicate, Func<TItem, OneOrMany<TResult>> selector) 381return ImmutableArray<TResult>.Empty; 403public static ImmutableArray<TResult> SelectManyAsArray<TItem, TArg, TResult>(this ImmutableArray<TItem> array, Func<TItem, TArg, bool> predicate, Func<TItem, TArg, OneOrMany<TResult>> selector, TArg arg) 406return ImmutableArray<TResult>.Empty; 421public static async ValueTask<ImmutableArray<TResult>> SelectAsArrayAsync<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, CancellationToken, ValueTask<TResult>> selector, CancellationToken cancellationToken) 424return ImmutableArray<TResult>.Empty; 439public static async ValueTask<ImmutableArray<TResult>> SelectAsArrayAsync<TItem, TArg, TResult>(this ImmutableArray<TItem> array, Func<TItem, TArg, CancellationToken, ValueTask<TResult>> selector, TArg arg, CancellationToken cancellationToken) 442return ImmutableArray<TResult>.Empty; 454public static ValueTask<ImmutableArray<TResult>> SelectManyAsArrayAsync<TItem, TArg, TResult>(this ImmutableArray<TItem> source, Func<TItem, TArg, CancellationToken, ValueTask<ImmutableArray<TResult>>> selector, TArg arg, CancellationToken cancellationToken) 458return new ValueTask<ImmutableArray<TResult>>(ImmutableArray<TResult>.Empty); 468async ValueTask<ImmutableArray<TResult>> CreateTaskAsync() 485public static ImmutableArray<TResult> ZipAsArray<T1, T2, TResult>(this ImmutableArray<T1> self, ImmutableArray<T2> other, Func<T1, T2, TResult> map) 491return ImmutableArray<TResult>.Empty; 516public static ImmutableArray<TResult> ZipAsArray<T1, T2, TArg, TResult>(this ImmutableArray<T1> self, ImmutableArray<T2> other, TArg arg, Func<T1, T2, int, TArg, TResult> map) 521return ImmutableArray<TResult>.Empty; 537public static ImmutableArray<T> WhereAsArray<T>(this ImmutableArray<T> array, Func<T, bool> predicate) 545public static ImmutableArray<T> WhereAsArray<T, TArg>(this ImmutableArray<T> array, Func<T, TArg, bool> predicate, TArg arg) 548private static ImmutableArray<T> WhereAsArrayImpl<T, TArg>(ImmutableArray<T> array, Func<T, bool>? predicateWithoutArg, Func<T, TArg, bool>? predicateWithArg, TArg arg) 613return ImmutableArray<T>.Empty; 617public static bool Any<T, TArg>(this ImmutableArray<T> array, Func<T, TArg, bool> predicate, TArg arg) 633public static bool All<T, TArg>(this ImmutableArray<T> array, Func<T, TArg, bool> predicate, TArg arg) 649public static async Task<bool> AnyAsync<T>(this ImmutableArray<T> array, Func<T, Task<bool>> predicateAsync) 665public static async Task<bool> AnyAsync<T, TArg>(this ImmutableArray<T> array, Func<T, TArg, Task<bool>> predicateAsync, TArg arg) 681public static async ValueTask<T?> FirstOrDefaultAsync<T>(this ImmutableArray<T> array, Func<T, Task<bool>> predicateAsync) 697public static TValue? FirstOrDefault<TValue, TArg>(this ImmutableArray<TValue> array, Func<TValue, TArg, bool> predicate, TArg arg) 710public static TValue? Single<TValue, TArg>(this ImmutableArray<TValue> array, Func<TValue, TArg, bool> predicate, TArg arg) 740public static ImmutableArray<TBase> Cast<TDerived, TBase>(this ImmutableArray<TDerived> items) 743return ImmutableArray<TBase>.CastUp(items); 754public static bool SetEquals<T>(this ImmutableArray<T> array1, ImmutableArray<T> array2, IEqualityComparer<T> comparer) 795public static ImmutableArray<T> NullToEmpty<T>(this ImmutableArray<T> array) 797return array.IsDefault ? ImmutableArray<T>.Empty : array; 803public static ImmutableArray<T> NullToEmpty<T>(this ImmutableArray<T>? array) 806null or { IsDefault: true } => ImmutableArray<T>.Empty, 814public static ImmutableArray<T> Distinct<T>(this ImmutableArray<T> array, IEqualityComparer<T>? comparer = null) 833var result = (builder.Count == array.Length) ? array : builder.ToImmutable(); 840internal static ImmutableArray<T> ConditionallyDeOrder<T>(this ImmutableArray<T> array) 856internal static ImmutableArray<TValue> Flatten<TKey, TValue>( 857this Dictionary<TKey, ImmutableArray<TValue>> dictionary, 863return ImmutableArray<TValue>.Empty; 882internal static ImmutableArray<T> Concat<T>(this ImmutableArray<T> first, ImmutableArray<T> second) 887internal static ImmutableArray<T> Concat<T>(this ImmutableArray<T> first, ImmutableArray<T> second, ImmutableArray<T> third) 910internal static ImmutableArray<T> Concat<T>(this ImmutableArray<T> first, ImmutableArray<T> second, ImmutableArray<T> third, ImmutableArray<T> fourth) 938internal static ImmutableArray<T> Concat<T>(this ImmutableArray<T> first, ImmutableArray<T> second, ImmutableArray<T> third, ImmutableArray<T> fourth, ImmutableArray<T> fifth) 971internal static ImmutableArray<T> Concat<T>(this ImmutableArray<T> first, ImmutableArray<T> second, ImmutableArray<T> third, ImmutableArray<T> fourth, ImmutableArray<T> fifth, ImmutableArray<T> sixth) 1009internal static ImmutableArray<T> Concat<T>(this ImmutableArray<T> first, T second) 1014internal static ImmutableArray<T> AddRange<T>(this ImmutableArray<T> self, in TemporaryArray<T> items) 1047internal static bool HasDuplicates<T>(this ImmutableArray<T> array) 1083internal static bool HasDuplicates<T>(this ImmutableArray<T> array, IEqualityComparer<T> comparer) 1109public static int Count<T>(this ImmutableArray<T> items, Func<T, bool> predicate) 1128public static int Sum<T>(this ImmutableArray<T> items, Func<T, int> selector) 1137public static int Sum<T>(this ImmutableArray<T> items, Func<T, int, int> selector) 1174(Dictionary<TKey, object> dictionary, Dictionary<TKey, ImmutableArray<TNamespaceOrTypeSymbol>> result) 1185static ImmutableArray<TNamespaceOrTypeSymbol> createMembers(object value) 1196return ImmutableArray<TNamespaceOrTypeSymbol>.CastUp(builder.ToDowncastedImmutableAndFree<TNamedTypeSymbol>()); 1203: ImmutableArray<TNamespaceOrTypeSymbol>.CastUp(ImmutableArray.Create((TNamedTypeSymbol)symbol)); 1208internal static Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>> GetTypesFromMemberMap<TKey, TNamespaceOrTypeSymbol, TNamedTypeSymbol> 1209(Dictionary<TKey, ImmutableArray<TNamespaceOrTypeSymbol>> map, IEqualityComparer<TKey> comparer) 1220var dictionary = new Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>>(capacity, comparer); 1224var namedTypes = getOrCreateNamedTypes(entry.Value); 1231static ImmutableArray<TNamedTypeSymbol> getOrCreateNamedTypes(ImmutableArray<TNamespaceOrTypeSymbol> members) 1238var membersAsNamedTypes = members.As<TNamedTypeSymbol>(); 1251return ImmutableArray<TNamedTypeSymbol>.Empty; 1265internal static bool SequenceEqual<TElement, TArg>(this ImmutableArray<TElement> array1, ImmutableArray<TElement> array2, TArg arg, Func<TElement, TElement, TArg, bool> predicate) 1295internal static int IndexOf<T>(this ImmutableArray<T> array, T item, IEqualityComparer<T> comparer) 1298internal static bool IsSorted<T>(this ImmutableArray<T> array, IComparer<T>? comparer = null) 1314internal static int BinarySearch<TElement, TValue>(this ImmutableArray<TElement> array, TValue value, Func<TElement, TValue, int> comparer) 1373public static bool IsSubsetOf<TElement>(this ImmutableArray<TElement> array, ImmutableArray<TElement> other)
src\Compilers\Core\Portable\Collections\TemporaryArray`1.cs (6)
21/// <see cref="ImmutableArray{T}"/>. 176public void AddRange(ImmutableArray<T> items) 296/// Create an <see cref="ImmutableArray{T}"/> with the elements currently held in the temporary array, and clear 299public ImmutableArray<T> ToImmutableAndClear() 307var result = _count switch 3090 => ImmutableArray<T>.Empty,
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
702public static string NormalizePathPrefix(string filePath, ImmutableArray<KeyValuePair<string, string>> pathMap)
src\Compilers\Core\Portable\InternalUtilities\EnumerableExtensions.cs (28)
66public static ImmutableArray<T> ToImmutableArrayOrEmpty<T>(this IEnumerable<T>? items) 73if (items is ImmutableArray<T> array) 88if (items is ImmutableArray<T> array) 354public static ImmutableArray<TResult> SelectAsArray<TSource, TResult>(this IEnumerable<TSource>? source, Func<TSource, TResult> selector) 358return ImmutableArray<TResult>.Empty; 367public static ImmutableArray<TResult> SelectAsArray<TSource, TResult>(this IEnumerable<TSource>? source, Func<TSource, int, TResult> selector) 370return ImmutableArray<TResult>.Empty; 384public static ImmutableArray<TResult> SelectAsArray<TSource, TResult>(this IReadOnlyCollection<TSource>? source, Func<TSource, TResult> selector) 387return ImmutableArray<TResult>.Empty; 400public static ImmutableArray<TResult> SelectAsArray<TSource, TResult, TArg>(this IReadOnlyCollection<TSource>? source, Func<TSource, TArg, TResult> selector, TArg arg) 403return ImmutableArray<TResult>.Empty; 416public static ImmutableArray<TResult> SelectManyAsArray<TSource, TResult>(this IEnumerable<TSource>? source, Func<TSource, IEnumerable<TResult>> selector) 419return ImmutableArray<TResult>.Empty; 428public static ImmutableArray<TResult> SelectManyAsArray<TItem, TArg, TResult>(this IEnumerable<TItem>? source, Func<TItem, TArg, IEnumerable<TResult>> selector, TArg arg) 431return ImmutableArray<TResult>.Empty; 440public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, IEnumerable<TResult>> selector) 443return ImmutableArray<TResult>.Empty; 453public static ImmutableArray<TResult> SelectManyAsArray<TItem, TArg, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, TArg, IEnumerable<TResult>> selector, TArg arg) 456return ImmutableArray<TResult>.Empty; 466public static ImmutableArray<TResult> SelectManyAsArray<TSource, TResult>(this IEnumerable<TSource>? source, Func<TSource, OneOrMany<TResult>> selector) 469return ImmutableArray<TResult>.Empty; 481public static async ValueTask<ImmutableArray<TResult>> SelectAsArrayAsync<TItem, TResult>(this IEnumerable<TItem> source, Func<TItem, ValueTask<TResult>> selector) 496public static async ValueTask<ImmutableArray<TResult>> SelectAsArrayAsync<TItem, TResult>(this IEnumerable<TItem> source, Func<TItem, CancellationToken, ValueTask<TResult>> selector, CancellationToken cancellationToken) 511public static async ValueTask<ImmutableArray<TResult>> SelectAsArrayAsync<TItem, TArg, TResult>(this IEnumerable<TItem> source, Func<TItem, TArg, CancellationToken, ValueTask<TResult>> selector, TArg arg, CancellationToken cancellationToken) 523public static async ValueTask<ImmutableArray<TResult>> SelectManyAsArrayAsync<TItem, TArg, TResult>(this IEnumerable<TItem> source, Func<TItem, TArg, CancellationToken, ValueTask<IEnumerable<TResult>>> selector, TArg arg, CancellationToken cancellationToken) 787internal static Dictionary<K, ImmutableArray<T>> ToMultiDictionary<K, T>(this IEnumerable<T> data, Func<T, K> keySelector, IEqualityComparer<K>? comparer = null) 790var dictionary = new Dictionary<K, ImmutableArray<T>>(comparer); 794var items = grouping.AsImmutable();
src\Compilers\Core\Portable\InternalUtilities\FileLockCheck.cs (2)
125public static ImmutableArray<(int processId, string applicationName)> TryGetLockingProcessInfos(string path) 142private static ImmutableArray<(int processId, string applicationName)> GetLockingProcessInfosImpl(string[] paths)
src\Compilers\Core\Portable\InternalUtilities\Hash.cs (3)
114internal static int CombineValues<T>(ImmutableArray<T> values, int maxItemsToHash = int.MaxValue) 165internal static int CombineValues(ImmutableArray<string> values, StringComparer stringComparer, int maxItemsToHash = int.MaxValue) 246internal static int GetFNVHashCode(ImmutableArray<byte> data)
src\Compilers\Core\Portable\InternalUtilities\InterlockedOperations.cs (14)
154public static ImmutableArray<T> Initialize<T>(ref ImmutableArray<T> target, ImmutableArray<T> initializedValue) 157var oldValue = ImmutableInterlocked.InterlockedCompareExchange(ref target, initializedValue, default(ImmutableArray<T>)); 170public static ImmutableArray<T> Initialize<T>(ref ImmutableArray<T> target, Func<ImmutableArray<T>> createArray) 183public static ImmutableArray<T> Initialize<T, TArg>(ref ImmutableArray<T> target, Func<TArg, ImmutableArray<T>> createArray, TArg arg) 193private static ImmutableArray<T> Initialize_Slow<T, TArg>(ref ImmutableArray<T> target, Func<TArg, ImmutableArray<T>> createArray, TArg arg)
src\Compilers\Core\Portable\InternalUtilities\ISetExtensions.cs (2)
23public static bool AddAll<T>(this ISet<T> set, ImmutableArray<T> values) 45public static bool RemoveAll<T>(this ISet<T> set, ImmutableArray<T> values)
src\Compilers\Core\Portable\InternalUtilities\OneOrMany.cs (8)
27public static readonly OneOrMany<T> Empty = new OneOrMany<T>(ImmutableArray<T>.Empty); 30private readonly ImmutableArray<T> _many; 38public OneOrMany(ImmutableArray<T> many) 166: new OneOrMany<T>(ImmutableArray<T>.CastUp(from._many)); 184public ImmutableArray<T> ToImmutable() 205public bool SequenceEqual(ImmutableArray<T> other, IEqualityComparer<T>? comparer = null) 277public static OneOrMany<T> Create<T>(ImmutableArray<T> many) 280public static bool SequenceEqual<T>(this ImmutableArray<T> array, OneOrMany<T> other, IEqualityComparer<T>? comparer = null)
src\Compilers\Core\Portable\InternalUtilities\SetWithInsertionOrder.cs (1)
94public ImmutableArray<T> AsImmutable() => _elements.ToImmutableArrayOrEmpty();
src\Compilers\Core\Portable\InternalUtilities\SpecializedCollections.Empty.List.cs (1)
18public static readonly IReadOnlyList<T> Instance = ImmutableArray<T>.Empty;
src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (2)
15private static ImmutableArray<string> s_lazyNumerals; 19var numerals = s_lazyNumerals;
src\Dependencies\Collections\ImmutableSegmentedDictionary`2.cs (1)
21/// the scenarios where <see cref="ImmutableArray{T}"/> is applicable, and
src\Dependencies\Collections\Internal\HashHelpers.cs (1)
38private static readonly ImmutableArray<int> s_primes = ImmutableArray.Create(
src\Dependencies\Collections\RoslynImmutableInterlocked.cs (4)
616public static ImmutableArray<T> VolatileRead<T>(ref readonly ImmutableArray<T> location) 630public static void VolatileWrite<T>(ref ImmutableArray<T> location, ImmutableArray<T> value)
src\Dependencies\PooledObjects\ArrayBuilder.cs (23)
54private readonly ImmutableArray<T>.Builder _builder; 76public ImmutableArray<T> ToImmutable() 84public ImmutableArray<T> ToImmutableAndClear() 86ImmutableArray<T> result; 89result = ImmutableArray<T>.Empty; 353public ImmutableArray<T> ToImmutableOrNull() 366public ImmutableArray<U> ToDowncastedImmutable<U>() 371return ImmutableArray<U>.Empty; 383public ImmutableArray<U> ToDowncastedImmutableAndFree<U>() where U : T 385var result = ToDowncastedImmutable<U>(); 393public ImmutableArray<T> ToImmutableAndFree() 397ImmutableArray<T> result; 400result = ImmutableArray<T>.Empty; 516internal Dictionary<K, ImmutableArray<T>> ToDictionary<K>(Func<T, K> keySelector, IEqualityComparer<K>? comparer = null) 521var dictionary1 = new Dictionary<K, ImmutableArray<T>>(1, comparer); 529return new Dictionary<K, ImmutableArray<T>>(comparer); 548var dictionary = new Dictionary<K, ImmutableArray<T>>(accumulator.Count, comparer); 587public void AddRange(ImmutableArray<T> items) 592public void AddRange(ImmutableArray<T> items, int length) 597public void AddRange(ImmutableArray<T> items, int start, int length) 607public void AddRange<S>(ImmutableArray<S> items) where S : class, T 609AddRange(ImmutableArray<T>.CastUp(items)); 706public ImmutableArray<S> SelectDistinct<S>(Func<T, S> selector)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ImmutableArrayExtensions.cs (9)
12public static ImmutableArray<T> ToImmutableArray<T>(this HashSet<T> set) 21public static bool Contains<T>(this ImmutableArray<T> items, T item, IEqualityComparer<T>? equalityComparer) 24public static ImmutableArray<T> ToImmutableArrayOrEmpty<T>(this T[]? items) 34public static ImmutableArray<T> TakeAsArray<T>(this ImmutableArray<T> array, int count) 43public static ImmutableArray<T> ToImmutableAndClear<T>(this ImmutableArray<T>.Builder builder) 46return ImmutableArray<T>.Empty; 51var result = builder.ToImmutable();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\FixedSizeArrayBuilder.cs (5)
13/// A bare-bones array builder, focused on the case of producing <see cref="ImmutableArray{T}"/>s where the final array 31/// The builder will be moved to an array (see <see cref="MoveToArray"/>) or <see cref="ImmutableArray{T}"/> (see <see 50public void AddRange(ImmutableArray<T> values) 96/// Moves the underlying buffer out of control of this type, into the returned <see cref="ImmutableArray{T}"/>. It 102public ImmutableArray<T> MoveToImmutable()
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SerializableBytes.cs (1)
222public ImmutableArray<byte> ToImmutableArray()
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (12)
NetCoreTests.cs (6)
92var diagnostics = semanticModel.GetDiagnostics(); 117var diagnostics = semanticModel.GetDiagnostics(); 157var diagnostics = semanticModel.GetDiagnostics(); 217var diagnostics = semanticModel.GetDiagnostics(); 341var diagnostics = semanticModel.GetDiagnostics(); 508var diagnostics = semanticModel.GetDiagnostics();
VisualStudioMSBuildWorkspaceTests.cs (6)
1469var diagnostics = compilation.GetDiagnostics(); 1838var imports = options.GlobalImports; 1905var attrs = sym.GetAttributes(); 1928var attrs = sym.GetAttributes(); 1952var attrs = sym.GetAttributes(); 1975var attrs = sym.GetAttributes();
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (41)
Formatting\FormattingTestBase.cs (4)
83private static async Task AssertFormatAsync(SolutionServices services, string expected, SyntaxNode root, ImmutableArray<TextSpan> spans, SyntaxFormattingOptions options, SourceText sourceText) 91if (TryAdjustSpans(sourceText, result, resultText, spans, out var adjustedSpans)) 99private static bool TryAdjustSpans(SourceText inputText, IList<TextChange> changes, SourceText outputText, ImmutableArray<TextSpan> inputSpans, out ImmutableArray<TextSpan> outputSpans)
MEF\ExportProviderCache.cs (1)
50if (assemblies is ImmutableArray<Assembly> assembliesArray &&
MEF\TestComposition.cs (3)
30private readonly ImmutableArray<Assembly> _assemblies; 31private readonly ImmutableArray<Type> _parts; 32private readonly ImmutableArray<Type> _excludedPartTypes;
MEF\UseExportProviderAttribute.cs (1)
179if (assemblies is ImmutableArray<Assembly> array &&
Options\OptionsTestHelpers.cs (8)
26public static readonly ImmutableArray<(IOption, object)> PublicCustomOptionsWithNonDefaultValues = ImmutableArray.Create<(IOption, object)>( 29public static readonly ImmutableArray<(IOption, object)> PublicAutoFormattingOptionsWithNonDefaultValues = ImmutableArray.Create<(IOption, object)>( 32public static readonly ImmutableArray<(IOption, object)> PublicFormattingOptionsWithNonDefaultValues = ImmutableArray.Create<(IOption, object)>( 85public static readonly ImmutableArray<(IOption, object)> PublicCodeStyleOptionsWithNonDefaultValues = ImmutableArray.Create<(IOption, object)>( 135ImmutableArray<bool> array => array.IsEmpty ? ImmutableArray.Create(true) : [], 136ImmutableArray<string> array => array is ["X"] ? ImmutableArray.Create("X", "Y") : ImmutableArray.Create("X"), 137ImmutableArray<int> array => array.IsEmpty ? ImmutableArray.Create(1) : [], 138ImmutableArray<long> array => array.IsEmpty ? ImmutableArray.Create(1L) : [],
Options\TestOption.cs (1)
18public ImmutableArray<OptionStorageLocation> StorageLocations { get; set; }
TestAnalyzerReferenceByLanguage.cs (6)
15private readonly IReadOnlyDictionary<string, ImmutableArray<DiagnosticAnalyzer>> _analyzersMap; 17public TestAnalyzerReferenceByLanguage(IReadOnlyDictionary<string, ImmutableArray<DiagnosticAnalyzer>> analyzersMap, string? fullPath = null) 34public override ImmutableArray<DiagnosticAnalyzer> GetAnalyzersForAllLanguages() 37public override ImmutableArray<DiagnosticAnalyzer> GetAnalyzers(string language) 39if (_analyzersMap.TryGetValue(language, out var analyzers)) 44return ImmutableArray<DiagnosticAnalyzer>.Empty;
TestDocumentServiceProvider.cs (2)
65public Task<ImmutableArray<(string mappedFilePath, TextChange mappedTextChange)>> GetMappedTextChangesAsync( 73public Task<ImmutableArray<MappedSpanResult>> MapSpansAsync(Document document, IEnumerable<TextSpan> spans, CancellationToken cancellationToken)
TestGeneratorReference.cs (3)
47public override ImmutableArray<DiagnosticAnalyzer> GetAnalyzers(string language) => []; 48public override ImmutableArray<DiagnosticAnalyzer> GetAnalyzersForAllLanguages() => []; 49public override ImmutableArray<ISourceGenerator> GetGenerators(string language) => [_generator];
Workspaces\TestHostDocument.cs (4)
68public IDictionary<string, ImmutableArray<TextSpan>> AnnotatedSpans { get; } = new Dictionary<string, ImmutableArray<TextSpan>>(); 94IDictionary<string, ImmutableArray<TextSpan>> spans, 116if (spans.TryGetValue(string.Empty, out var textSpans))
Workspaces\TestWorkspace.cs (1)
53IDictionary<string, ImmutableArray<TextSpan>> spans,
Workspaces\TestWorkspace_XmlConsumption.cs (4)
191out var code, out var cursorPosition, out IDictionary<string, ImmutableArray<TextSpan>> spans); 632ImmutableDictionary<string, ImmutableArray<TextSpan>> spans; 658spans = ImmutableDictionary<string, ImmutableArray<TextSpan>>.Empty; 729var aliases = aliasElement != null ? aliasElement.Split(',').Select(s => s.Trim()).ToImmutableArray() : default;
Workspaces\TestWorkspace`1.cs (3)
194IDictionary<string, ImmutableArray<TextSpan>> spans, 691var aliases = projectReference.Attributes(AliasAttributeName).Select(a => a.Value).ToImmutableArray(); 746out var code, out var cursorPosition, out IDictionary<string, ImmutableArray<TextSpan>> spans);
Microsoft.CodeAnalysis.Workspaces.UnitTests (105)
BatchFixAllProviderTests.cs (10)
42var codeFixes = ImmutableArray.Create( 59public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(Descriptor); 81private readonly ImmutableArray<int> _replacements; 84public ReplaceZeroFix(ImmutableArray<int> replacements, bool nested) 91public override ImmutableArray<string> FixableDiagnosticIds => ImmutableArray.Create(LiteralZeroAnalyzer.Descriptor.Id); 134private readonly ImmutableArray<ImmutableArray<int>> _replacementGroups; 137public CSharpTest(ImmutableArray<ImmutableArray<int>> replacementGroups, bool nested = false) 161foreach (var replacementGroup in _replacementGroups)
ChecksumTests.cs (4)
73var checksumsImmutableArray = toValidate.ToImmutableArray(); 98var checksumsImmutableArray = toValidate.ToImmutableArray(); 175Assert.NotEqual(Checksum.Null, Checksum.Create(ImmutableArray<Checksum>.Empty)); 176Assert.NotEqual(Checksum.Null, Checksum.Create(ImmutableArray<byte>.Empty));
CodeCleanup\AddMissingTokensTests.cs (1)
2716MarkupTestFile.GetSpans(codeWithMarker, out var codeWithoutMarker, out var textSpans);
CodeCleanup\CodeCleanupTests.cs (7)
33var codeCleanups = CodeCleaner.GetDefaultProviders(document); 84var codeCleanups = CodeCleaner.GetDefaultProviders(document); 371out var codeWithoutMarker, out IDictionary<string, ImmutableArray<TextSpan>> namedSpans); 373var expectedResult = namedSpans.TryGetValue("r", out var spans) ? spans : SpecializedCollections.EmptyEnumerable<TextSpan>(); 383out var codeWithoutMarker, out IDictionary<string, ImmutableArray<TextSpan>> namedSpans); 388private static async Task VerifyRange(string code, ImmutableArray<ICodeCleanupProvider> codeCleanups, ImmutableArray<TextSpan> spans, MockCodeCleanupProvider transformer, string language)
CodeCleanup\FixIncorrectTokenTests.cs (1)
741MarkupTestFile.GetSpans(codeWithMarker, out var codeWithoutMarker, out var textSpans);
CodeCleanup\MockCodeCleanupProvider.cs (4)
23public Func<MockCodeCleanupProvider, Document, ImmutableArray<TextSpan>, SyntaxFormattingOptions, CancellationToken, Task<Document>>? CleanupDocumentAsyncImpl { get; set; } 24public Func<SyntaxNode, ImmutableArray<TextSpan>, SyntaxFormattingOptions, SolutionServices, SyntaxNode>? CleanupNodeImpl { get; set; } 28public Task<Document> CleanupAsync(Document document, ImmutableArray<TextSpan> spans, CodeCleanupOptions options, CancellationToken cancellationToken) 31public Task<SyntaxNode> CleanupAsync(SyntaxNode root, ImmutableArray<TextSpan> spans, SyntaxFormattingOptions options, SolutionServices services, CancellationToken cancellationToken)
CodeCleanup\NormalizeModifiersOrOperatorsTests.cs (1)
1017MarkupTestFile.GetSpans(codeWithMarker, out var codeWithoutMarker, out var textSpans);
CodeCleanup\ReduceTokenTests.cs (1)
2004MarkupTestFile.GetSpans(codeWithMarker, out var codeWithoutMarker, out var textSpans);
CodeCleanup\RemoveUnnecessaryLineContinuationTests.cs (1)
1439MarkupTestFile.GetSpans(codeWithMarker, out var codeWithoutMarker, out var textSpans);
FormattingTests.cs (2)
38var rules = service.GetDefaultFormattingRules(); 65var rules = service.GetDefaultFormattingRules();
Host\LanguageServices\TestCSharpCompilationFactoryServiceWithIncrementalGeneratorTracking.cs (2)
58GeneratorDriver ICompilationFactoryService.CreateGeneratorDriver(ParseOptions parseOptions, ImmutableArray<ISourceGenerator> generators, AnalyzerConfigOptionsProvider optionsProvider, ImmutableArray<AdditionalText> additionalTexts, string? generatedFilesBaseDirectory)
Remote\ServiceDescriptorTests.cs (1)
88if (type.Namespace == typeof(ImmutableArray<>).Namespace ||
SolutionTests\DocumentInfoTests.cs (4)
75Assert.Equal("folder", ((ImmutableArray<string>)info1.Folders).Single()); 78Assert.True(((ImmutableArray<string>)info2.Folders).IsEmpty); 81Assert.True(((ImmutableArray<string>)info3.Folders).IsEmpty); 84Assert.True(((ImmutableArray<string>)info4.Folders).IsEmpty);
SolutionTests\ProjectInfoTests.cs (20)
78Assert.Same(documentInfo, ((ImmutableArray<DocumentInfo>)info1.Documents).Single()); 81Assert.True(((ImmutableArray<DocumentInfo>)info2.Documents).IsEmpty); 84Assert.True(((ImmutableArray<DocumentInfo>)info3.Documents).IsEmpty); 87Assert.True(((ImmutableArray<DocumentInfo>)info4.Documents).IsEmpty); 97Assert.Same(documentInfo, ((ImmutableArray<DocumentInfo>)info1.AdditionalDocuments).Single()); 100Assert.True(((ImmutableArray<DocumentInfo>)info2.AdditionalDocuments).IsEmpty); 103Assert.True(((ImmutableArray<DocumentInfo>)info3.AdditionalDocuments).IsEmpty); 106Assert.True(((ImmutableArray<DocumentInfo>)info4.AdditionalDocuments).IsEmpty); 116Assert.Same(projectReference, ((ImmutableArray<ProjectReference>)info1.ProjectReferences).Single()); 119Assert.True(((ImmutableArray<ProjectReference>)info2.ProjectReferences).IsEmpty); 122Assert.True(((ImmutableArray<ProjectReference>)info3.ProjectReferences).IsEmpty); 125Assert.True(((ImmutableArray<ProjectReference>)info4.ProjectReferences).IsEmpty); 135Assert.Same(metadataReference, ((ImmutableArray<MetadataReference>)info1.MetadataReferences).Single()); 138Assert.True(((ImmutableArray<MetadataReference>)info2.MetadataReferences).IsEmpty); 141Assert.True(((ImmutableArray<MetadataReference>)info3.MetadataReferences).IsEmpty); 144Assert.True(((ImmutableArray<MetadataReference>)info4.MetadataReferences).IsEmpty); 154Assert.Same(analyzerReference, ((ImmutableArray<AnalyzerReference>)info1.AnalyzerReferences).Single()); 157Assert.True(((ImmutableArray<AnalyzerReference>)info2.AnalyzerReferences).IsEmpty); 160Assert.True(((ImmutableArray<AnalyzerReference>)info3.AnalyzerReferences).IsEmpty); 163Assert.True(((ImmutableArray<AnalyzerReference>)info4.AnalyzerReferences).IsEmpty);
SolutionTests\SolutionInfoTests.cs (4)
35Assert.Same(projectInfo, ((ImmutableArray<ProjectInfo>)info1.Projects).Single()); 38Assert.True(((ImmutableArray<ProjectInfo>)info2.Projects).IsEmpty); 41Assert.True(((ImmutableArray<ProjectInfo>)info3.Projects).IsEmpty); 44Assert.True(((ImmutableArray<ProjectInfo>)info4.Projects).IsEmpty);
SolutionTests\SolutionTests.cs (9)
2964public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 2994var actualAnalyzers = actualAnalyzerReferences[0].GetAnalyzersForAllLanguages(); 4419var relatedIds1 = currentSolution.GetRelatedDocumentIds(document1.Id); 4420var relatedIds2 = currentSolution.GetRelatedDocumentIds(document2.Id); 4567ImmutableArray<DocumentId> GetDocumentIds() => [.. solution.GetProject(pid).DocumentIds]; 4568ImmutableArray<SyntaxTree> GetSyntaxTrees() 4604var documentIds = GetDocumentIds(); 4612var syntaxTrees = GetSyntaxTrees(); 4846var diagnostics = originalCompilation.GetDiagnostics();
SolutionTests\TryApplyChangesTests.cs (1)
20private readonly ImmutableArray<ApplyChangesKind> _allowedKinds;
SymbolKeyTests.cs (2)
128var netstandardReferences = await ReferenceAssemblies.NetStandard.NetStandard20.ResolveAsync(LanguageNames.CSharp, cancellationToken: default); 129var netcoreReferences = await ReferenceAssemblies.Net.Net70.ResolveAsync(LanguageNames.CSharp, cancellationToken: default);
UtilityTest\BKTreeTests.cs (9)
15private static ImmutableArray<string> Find(BKTree tree, string value, int? threshold) 28var results1 = Find(tree, "wat", threshold: 1); 31var results2 = Find(tree, "wat", threshold: 2); 34var results3 = Find(tree, "caqe", threshold: 1); 59var items = Find(tree, value, threshold: 1); 72var items = Find(tree, Delete(value, i), threshold: null); 86var items = Find(tree, Insert(value, i, 'Z'), threshold: null); 100var items = Find(tree, Transpose(value, i), threshold: null); 121var results = Find(tree, "hill", threshold: null);
UtilityTest\IntervalTreeTests.cs (11)
31private protected abstract ImmutableArray<Tuple<int, int, string>> GetIntervalsThatIntersectWith(IIntervalTree<Tuple<int, int, string>> tree, int start, int length); 32private protected abstract ImmutableArray<Tuple<int, int, string>> GetIntervalsThatOverlapWith(IIntervalTree<Tuple<int, int, string>> tree, int start, int length); 40var spans = GetIntervalsThatOverlapWith(tree, 0, 1); 51var spans = GetIntervalsThatOverlapWith(tree, 0, 1); 62var spans = GetIntervalsThatOverlapWith(tree, 0, 5); 73var spans = GetIntervalsThatOverlapWith(tree, 15, 5); 84var spans = GetIntervalsThatOverlapWith(tree, 10, 5); 363private protected override ImmutableArray<Tuple<int, int, string>> GetIntervalsThatIntersectWith(IIntervalTree<Tuple<int, int, string>> tree, int start, int length) 368private protected override ImmutableArray<Tuple<int, int, string>> GetIntervalsThatOverlapWith(IIntervalTree<Tuple<int, int, string>> tree, int start, int length) 386private protected override ImmutableArray<Tuple<int, int, string>> GetIntervalsThatIntersectWith(IIntervalTree<Tuple<int, int, string>> tree, int start, int length) 391private protected override ImmutableArray<Tuple<int, int, string>> GetIntervalsThatOverlapWith(IIntervalTree<Tuple<int, int, string>> tree, int start, int length)
WorkspaceTests\WorkspaceReferenceTests.cs (10)
33var references1 = compilation1.ExternalReferences; 41var references2 = compilation2.ExternalReferences; 73var references1 = compilation1.ExternalReferences; 81var references2 = compilation2.ExternalReferences; 113var references1 = compilation1.ExternalReferences; 121var references2 = compilation2.ExternalReferences; 153var references1 = compilation1.ExternalReferences; 165var references2 = compilation2.ExternalReferences; 186var references1 = compilation1.ExternalReferences; 195var references2 = compilation2.ExternalReferences;
Microsoft.CommonLanguageServerProtocol.Framework.Package (8)
AbstractHandlerProvider.cs (1)
21public abstract ImmutableArray<RequestHandlerMetadata> GetRegisteredMethods();
HandlerProvider.cs (2)
39public override ImmutableArray<RequestHandlerMetadata> GetRegisteredMethods() 81var handlerDetails = MethodHandlerDetails.From(handlerType);
IMethodHandlerProvider.cs (2)
18ImmutableArray<(IMethodHandler? Instance, TypeRef HandlerTypeRef, ImmutableArray<MethodHandlerDetails> HandlerDetails)> GetMethodHandlers();
MethodHandlerDetails.cs (3)
31public static ImmutableArray<MethodHandlerDetails> From(Type handlerType) 33var allHandlerDetails = GetAllHandlerDetails(handlerType); 57private static ImmutableArray<(Type? RequestType, Type? ResponseType, Type RequestContextType)> GetAllHandlerDetails(Type handlerType)
Microsoft.CommonLanguageServerProtocol.Framework.UnitTests (3)
Mocks\TestHandlerProvider.cs (1)
22public override ImmutableArray<RequestHandlerMetadata> GetRegisteredMethods()
Mocks\TestLspServices.cs (2)
50public ImmutableArray<(IMethodHandler? Instance, TypeRef HandlerTypeRef, ImmutableArray<MethodHandlerDetails> HandlerDetails)> GetMethodHandlers()
Microsoft.DotNet.CodeAnalysis (4)
Analyzers\AppContextDefaultsAnalyzer.cs (1)
44public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics
Analyzers\MembersMustExistAnalyzer.cs (1)
28public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get { return ImmutableArray.Create(s_memberMustExistDiagnostic); } }
Analyzers\PinvokeAnalyzer.cs (1)
26public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get { return ImmutableArray.Create(InvalidPinvokeCall); } }
Analyzers\ResourceUsageAnalyzer.cs (1)
21public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get { return ImmutableArray.Create(InvalidSRFormatCall); } }
Microsoft.DotNet.NuGetRepack.Tests (6)
TestHelpers\AssertEx.cs (4)
168public static void Equal<T>(ImmutableArray<T> expected, IEnumerable<T> actual, Func<T, T, bool> comparer = null, string message = null) 180public static void Equal<T>(IEnumerable<T> expected, ImmutableArray<T> actual, Func<T, T, bool> comparer = null, string message = null, string itemSeparator = null) 192public static void Equal<T>(ImmutableArray<T> expected, ImmutableArray<T> actual, Func<T, T, bool> comparer = null, string message = null, string itemSeparator = null)
TestHelpers\FakeBuildEngine.cs (2)
26public readonly List<ImmutableArray<XElement>> FilesToSign = new List<ImmutableArray<XElement>>();
Microsoft.DotNet.SignTool (26)
src\BatchSignInput.cs (4)
19internal ImmutableArray<FileSignInfo> FilesToSign { get; } 31internal ImmutableArray<KeyValuePair<string, string>> FilesToCopy; 33internal BatchSignInput(ImmutableArray<FileSignInfo> filesToSign, ImmutableDictionary<SignedFileContentKey, ZipData> zipDataMap, ImmutableArray<KeyValuePair<string, string>> filesToCopy)
src\ByteSequenceComparer.cs (9)
10internal sealed class ByteSequenceComparer : IEqualityComparer<byte[]>, IEqualityComparer<ImmutableArray<byte>> 18internal static bool Equals(ImmutableArray<byte> x, ImmutableArray<byte> y) 72internal static int GetHashCode(ImmutableArray<byte> x) 88bool IEqualityComparer<ImmutableArray<byte>>.Equals(ImmutableArray<byte> x, ImmutableArray<byte> y) 93int IEqualityComparer<ImmutableArray<byte>>.GetHashCode(ImmutableArray<byte> x)
src\Configuration.cs (2)
148var contentHash = ContentUtil.GetContentHash(fullPath); 708ImmutableArray<byte> contentHash = ContentUtil.GetContentHash(entryMemoryStream);
src\ContentUtil.cs (5)
25public static ImmutableArray<byte> GetContentHash(string fullPath) 37public static readonly ImmutableArray<byte> EmptyFileContentHash = GetContentHash(new MemoryStream()).ToImmutableArray(); 39public static ImmutableArray<byte> GetContentHash(Stream stream) 47public static string HashToString(ImmutableArray<byte> hash) 50public static ImmutableArray<byte> StringToHash(string hash)
src\FileSignInfo.cs (1)
17internal ImmutableArray<byte> ContentHash => File.ContentHash;
src\Hash.cs (2)
93internal static int CombineValues<T>(ImmutableArray<T> values, int maxItemsToHash = int.MaxValue) 207internal static int GetFNVHashCode(ImmutableArray<byte> data)
src\PathWithHash.cs (2)
21public readonly ImmutableArray<byte> ContentHash; 31public PathWithHash(string fullPath, ImmutableArray<byte> contentHash)
src\SignedFileContentKey.cs (1)
32public SignedFileContentKey(ImmutableArray<byte> contentHash, string fileName)
Microsoft.DotNet.SignTool.Tests (3)
FakeBuildEngine.cs (3)
28public readonly List<ImmutableArray<XElement>> FilesToSign = new List<ImmutableArray<XElement>>(); 58var filesToSign = itemGroupNode.Descendants("FilesToSign").ToImmutableArray();
Microsoft.Extensions.AI.Abstractions.Tests (2)
test\Shared\JsonSchemaExporter\TestTypes.cs (2)
799yield return new TestData<ImmutableArray<int>>(ImmutableArray.Create(1, 2, 3), """{"type":"array","items":{"type":"integer"}}"""); 1281[JsonSerializable(typeof(ImmutableArray<int>))]
Microsoft.Extensions.Diagnostics.ExceptionSummarization (1)
HttpExceptionSummaryProvider.cs (1)
26private static readonly ImmutableArray<string> _descriptions;
Microsoft.Extensions.Logging.Generators (4)
LoggerMessageGenerator.Parser.cs (2)
120ImmutableArray<AttributeData> boundAttributes = logMethodSymbol.GetAttributes(); 147ImmutableArray<TypedConstant> items = attributeData.ConstructorArguments;
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (2)
160public static ImmutableArray<T> ToImmutableArray<T>(this ReadOnlySpan<T> span) 164case 0: return ImmutableArray<T>.Empty;
Microsoft.Extensions.Options.SourceGeneration (14)
Emitter.cs (1)
92ImmutableArray<ISymbol> members = validatorTypeSymbol.GetMembers("TryValidateValue");
Generator.cs (2)
27IncrementalValueProvider<(Compilation, ImmutableArray<(TypeDeclarationSyntax? TypeSyntax, SemanticModel SemanticModel)>)> compilationAndTypes = 33private static void HandleAnnotatedTypes(Compilation compilation, ImmutableArray<(TypeDeclarationSyntax? TypeSyntax, SemanticModel SemanticModel)> types, SourceProductionContext context)
Parser.cs (8)
501ImmutableArray<IParameterSymbol> parameters = attribute.AttributeConstructor?.Parameters ?? ImmutableArray<IParameterSymbol>.Empty; 504ImmutableArray<TypedConstant> arguments = attribute.ConstructorArguments; 621ImmutableArray<IParameterSymbol> constructorParameters = attribute.AttributeConstructor?.Parameters ?? ImmutableArray<IParameterSymbol>.Empty; 632ImmutableArray<IParameterSymbol> constructorParameters = attribute.AttributeConstructor?.Parameters ?? ImmutableArray<IParameterSymbol>.Empty; 778private string GetArrayArgumentExpression(ImmutableArray<Microsoft.CodeAnalysis.TypedConstant> value, bool isParams)
ParserUtilities.cs (1)
21var attrs = symbol.GetAttributes();
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (2)
160public static ImmutableArray<T> ToImmutableArray<T>(this ReadOnlySpan<T> span) 164case 0: return ImmutableArray<T>.Empty;
Microsoft.Gen.ComplianceReports (1)
src\Generators\Shared\GeneratorUtilities.cs (1)
75var nodes = source.Right;
Microsoft.Gen.ComplianceReports.Unit.Tests (11)
test\Generators\Shared\RoslynTestUtils.cs (11)
229public static (IReadOnlyList<Diagnostic> diagnostics, ImmutableArray<GeneratedSourceResult> generatedSources) RunGenerator( 244public static Task<(IReadOnlyList<Diagnostic> diagnostics, ImmutableArray<GeneratedSourceResult> generatedSources)> RunGenerator( 258public static async Task<(IReadOnlyList<Diagnostic> diagnostics, ImmutableArray<GeneratedSourceResult> generatedSources)> RunGenerator( 288public static Task<(IReadOnlyList<Diagnostic> diagnostics, ImmutableArray<GeneratedSourceResult> generatedSources)> RunGenerator( 301public static async Task<(IReadOnlyList<Diagnostic> diagnostics, ImmutableArray<GeneratedSourceResult> generatedSources)> RunGenerator( 407var analyzers = ImmutableArray.Create(analyzer); 410var diags = await comp!.WithAnalyzers(analyzers).GetAllDiagnosticsAsync().ConfigureAwait(false); 414private static IReadOnlyList<Diagnostic> Sort(ImmutableArray<Diagnostic> diags) 469var analyzers = ImmutableArray.Create(analyzer); 474var diags = await comp!.WithAnalyzers(analyzers).GetAllDiagnosticsAsync().ConfigureAwait(false); 496var operations = await actions[0].GetOperationsAsync(CancellationToken.None).ConfigureAwait(false);
Microsoft.Gen.ContextualOptions (7)
ContextualOptionsGenerator.cs (1)
24IncrementalValueProvider<(Compilation, ImmutableArray<SyntaxNode>)> compilationAndTypes =
Model\OptionsContextType.cs (4)
15public readonly ImmutableArray<TypeDeclarationSyntax> Definitions; 16public readonly ImmutableArray<string> OptionsContextProperties; 27ImmutableArray<TypeDeclarationSyntax> definitions, 28ImmutableArray<string> optionsContextProperties)
Parser.cs (1)
74private static ImmutableArray<string> GetContextProperties(INamedTypeSymbol symbol)
src\Generators\Shared\GeneratorUtilities.cs (1)
75var nodes = source.Right;
Microsoft.Gen.ContextualOptions.Unit.Tests (15)
EmitterTests.cs (4)
26var delarations = SyntaxFactory 45var delarations = SyntaxFactory 77var delarations = SyntaxFactory 105var delarations = SyntaxFactory
test\Generators\Shared\RoslynTestUtils.cs (11)
229public static (IReadOnlyList<Diagnostic> diagnostics, ImmutableArray<GeneratedSourceResult> generatedSources) RunGenerator( 244public static Task<(IReadOnlyList<Diagnostic> diagnostics, ImmutableArray<GeneratedSourceResult> generatedSources)> RunGenerator( 258public static async Task<(IReadOnlyList<Diagnostic> diagnostics, ImmutableArray<GeneratedSourceResult> generatedSources)> RunGenerator( 288public static Task<(IReadOnlyList<Diagnostic> diagnostics, ImmutableArray<GeneratedSourceResult> generatedSources)> RunGenerator( 301public static async Task<(IReadOnlyList<Diagnostic> diagnostics, ImmutableArray<GeneratedSourceResult> generatedSources)> RunGenerator( 407var analyzers = ImmutableArray.Create(analyzer); 410var diags = await comp!.WithAnalyzers(analyzers).GetAllDiagnosticsAsync().ConfigureAwait(false); 414private static IReadOnlyList<Diagnostic> Sort(ImmutableArray<Diagnostic> diags) 469var analyzers = ImmutableArray.Create(analyzer); 474var diags = await comp!.WithAnalyzers(analyzers).GetAllDiagnosticsAsync().ConfigureAwait(false); 496var operations = await actions[0].GetOperationsAsync(CancellationToken.None).ConfigureAwait(false);
Microsoft.Gen.Logging (8)
LoggingGenerator.cs (2)
25IncrementalValueProvider<(Compilation, ImmutableArray<TypeDeclarationSyntax>)> compilationAndTypes = 31private static void HandleAnnotatedTypes(Compilation compilation, ImmutableArray<TypeDeclarationSyntax> types, SourceProductionContext context)
Parsing\Parser.LogProperties.cs (1)
98var members = namedType.GetMembers();
Parsing\Parser.Records.cs (1)
47var members = namedType.GetMembers();
src\Generators\Shared\GeneratorUtilities.cs (1)
75var nodes = source.Right;
src\Generators\Shared\ParserUtilities.cs (1)
26var attrs = symbol.GetAttributes();
src\Generators\Shared\RoslynExtensions.cs (2)
106public static ImmutableArray<T> ToImmutableArray<T>(this ReadOnlySpan<T> span) 112return ImmutableArray<T>.Empty;
Microsoft.Gen.Logging.Unit.Tests (21)
LogParserUtilitiesTests.cs (7)
51.Returns(ImmutableArray<ISymbol>.Empty); 87: ImmutableArray<ISymbol>.Empty); 169: ImmutableArray<ISymbol>.Empty); 178.SetupGet<ImmutableArray<KeyValuePair<string, TypedConstant>>>("CommonNamedArguments") 179.Returns(ImmutableArray<KeyValuePair<string, TypedConstant>>.Empty); 183.SetupGet<ImmutableArray<TypedConstant>>("CommonConstructorArguments") 184.Returns(ImmutableArray<TypedConstant>.Empty);
ParserTests.cs (1)
676(IReadOnlyList<Diagnostic> diagnostics, ImmutableArray<GeneratedSourceResult> generatedSources) =
ParserUtilitiesTests.cs (2)
92.Returns(default(ImmutableArray<Location>)); 97.Returns(ImmutableArray<Location>.Empty);
test\Generators\Shared\RoslynTestUtils.cs (11)
229public static (IReadOnlyList<Diagnostic> diagnostics, ImmutableArray<GeneratedSourceResult> generatedSources) RunGenerator( 244public static Task<(IReadOnlyList<Diagnostic> diagnostics, ImmutableArray<GeneratedSourceResult> generatedSources)> RunGenerator( 258public static async Task<(IReadOnlyList<Diagnostic> diagnostics, ImmutableArray<GeneratedSourceResult> generatedSources)> RunGenerator( 288public static Task<(IReadOnlyList<Diagnostic> diagnostics, ImmutableArray<GeneratedSourceResult> generatedSources)> RunGenerator( 301public static async Task<(IReadOnlyList<Diagnostic> diagnostics, ImmutableArray<GeneratedSourceResult> generatedSources)> RunGenerator( 407var analyzers = ImmutableArray.Create(analyzer); 410var diags = await comp!.WithAnalyzers(analyzers).GetAllDiagnosticsAsync().ConfigureAwait(false); 414private static IReadOnlyList<Diagnostic> Sort(ImmutableArray<Diagnostic> diags) 469var analyzers = ImmutableArray.Create(analyzer); 474var diags = await comp!.WithAnalyzers(analyzers).GetAllDiagnosticsAsync().ConfigureAwait(false); 496var operations = await actions[0].GetOperationsAsync(CancellationToken.None).ConfigureAwait(false);
Microsoft.Gen.Metrics (4)
src\Generators\Shared\GeneratorUtilities.cs (1)
75var nodes = source.Right;
src\Generators\Shared\ParserUtilities.cs (1)
26var attrs = symbol.GetAttributes();
src\Generators\Shared\RoslynExtensions.cs (2)
106public static ImmutableArray<T> ToImmutableArray<T>(this ReadOnlySpan<T> span) 112return ImmutableArray<T>.Empty;
Microsoft.Gen.Metrics.Unit.Tests (11)
test\Generators\Shared\RoslynTestUtils.cs (11)
229public static (IReadOnlyList<Diagnostic> diagnostics, ImmutableArray<GeneratedSourceResult> generatedSources) RunGenerator( 244public static Task<(IReadOnlyList<Diagnostic> diagnostics, ImmutableArray<GeneratedSourceResult> generatedSources)> RunGenerator( 258public static async Task<(IReadOnlyList<Diagnostic> diagnostics, ImmutableArray<GeneratedSourceResult> generatedSources)> RunGenerator( 288public static Task<(IReadOnlyList<Diagnostic> diagnostics, ImmutableArray<GeneratedSourceResult> generatedSources)> RunGenerator( 301public static async Task<(IReadOnlyList<Diagnostic> diagnostics, ImmutableArray<GeneratedSourceResult> generatedSources)> RunGenerator( 407var analyzers = ImmutableArray.Create(analyzer); 410var diags = await comp!.WithAnalyzers(analyzers).GetAllDiagnosticsAsync().ConfigureAwait(false); 414private static IReadOnlyList<Diagnostic> Sort(ImmutableArray<Diagnostic> diags) 469var analyzers = ImmutableArray.Create(analyzer); 474var diags = await comp!.WithAnalyzers(analyzers).GetAllDiagnosticsAsync().ConfigureAwait(false); 496var operations = await actions[0].GetOperationsAsync(CancellationToken.None).ConfigureAwait(false);
Microsoft.Gen.MetricsReports (2)
src\Generators\Shared\GeneratorUtilities.cs (1)
75var nodes = source.Right;
src\Generators\Shared\ParserUtilities.cs (1)
26var attrs = symbol.GetAttributes();
Microsoft.Gen.MetricsReports.Unit.Tests (11)
test\Generators\Shared\RoslynTestUtils.cs (11)
229public static (IReadOnlyList<Diagnostic> diagnostics, ImmutableArray<GeneratedSourceResult> generatedSources) RunGenerator( 244public static Task<(IReadOnlyList<Diagnostic> diagnostics, ImmutableArray<GeneratedSourceResult> generatedSources)> RunGenerator( 258public static async Task<(IReadOnlyList<Diagnostic> diagnostics, ImmutableArray<GeneratedSourceResult> generatedSources)> RunGenerator( 288public static Task<(IReadOnlyList<Diagnostic> diagnostics, ImmutableArray<GeneratedSourceResult> generatedSources)> RunGenerator( 301public static async Task<(IReadOnlyList<Diagnostic> diagnostics, ImmutableArray<GeneratedSourceResult> generatedSources)> RunGenerator( 407var analyzers = ImmutableArray.Create(analyzer); 410var diags = await comp!.WithAnalyzers(analyzers).GetAllDiagnosticsAsync().ConfigureAwait(false); 414private static IReadOnlyList<Diagnostic> Sort(ImmutableArray<Diagnostic> diags) 469var analyzers = ImmutableArray.Create(analyzer); 474var diags = await comp!.WithAnalyzers(analyzers).GetAllDiagnosticsAsync().ConfigureAwait(false); 496var operations = await actions[0].GetOperationsAsync(CancellationToken.None).ConfigureAwait(false);
Microsoft.Interop.ComInterfaceGenerator (77)
Analyzers\AddGeneratedComClassAnalyzer.cs (1)
16public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(AddGeneratedComClassAttribute);
Analyzers\AddGeneratedComClassFixer.cs (1)
20public override ImmutableArray<string> FixableDiagnosticIds => ImmutableArray.Create(AnalyzerDiagnostics.Ids.AddGeneratedComClassAttribute);
Analyzers\AddMarshalAsToElementFixer.cs (1)
20public override ImmutableArray<string> FixableDiagnosticIds => ImmutableArray.Create(GeneratorDiagnostics.Ids.NotRecommendedGeneratedComInterfaceUsage);
Analyzers\ComHostingDoesNotSupportGeneratedComInterfaceAnalyzer.cs (1)
17public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(ComHostingDoesNotSupportGeneratedComInterface);
Analyzers\ConvertComImportToGeneratedComInterfaceAnalyzer.cs (3)
20public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(ConvertToGeneratedComInterface); 124}), StubCodeContext.DefaultManagedToNativeStub, forwarder, out var generatorDiagnostics); 150var useSiteAttributeParsers = ImmutableArray.Create<IUseSiteAttributeParser>(
Analyzers\ConvertComImportToGeneratedComInterfaceFixer.cs (1)
26public override ImmutableArray<string> FixableDiagnosticIds => ImmutableArray.Create(AnalyzerDiagnostics.Ids.ConvertToGeneratedComInterface);
Analyzers\GeneratedComInterfaceAttributeAnalyzer.cs (3)
20public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } 23public static readonly ImmutableArray<ComInterfaceType> SupportedComInterfaceTypes = ImmutableArray.Create(ComInterfaceType.InterfaceIsIUnknown); 35ImmutableArray<AttributeData> customAttributes = typeSymbol.GetAttributes();
Analyzers\RuntimeComApiUsageWithSourceGeneratedComAnalyzer.cs (4)
21public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(RuntimeComApisDoNotSupportSourceGeneratedCom, CastsBetweenRuntimeComAndSourceGeneratedComNotSupported); 53var methodsOfInterest = new Dictionary<ISymbol, ImmutableArray<Func<IInvocationOperation, (ITypeSymbol, Location)?>>>(SymbolEqualityComparer.Default); 57var firstArgumentTypeLookupOnly = ImmutableArray.Create(firstArgumentTypeLookup); 108if (methodsOfInterest.TryGetValue(operation.TargetMethod.OriginalDefinition, out ImmutableArray<Func<IInvocationOperation, (ITypeSymbol, Location)?>> discoverers))
ComClassGenerator.cs (1)
75private static ClassDeclarationSyntax GenerateClassInfoType(ImmutableArray<string> implementedInterfaces)
ComClassInfo.cs (1)
42ImmutableArray<string>.Builder names = ImmutableArray.CreateBuilder<string>();
ComInterfaceContext.cs (2)
30public static ImmutableArray<DiagnosticOr<ComInterfaceContext>> GetContexts(ImmutableArray<ComInterfaceInfo> data, CancellationToken _)
ComInterfaceGenerator.cs (6)
291ImmutableArray<TypePositionInfo> returnSwappedSignatureElements = signatureContext.ElementTypeInformation; 371ImmutableArray<FunctionPointerUnmanagedCallingConventionSyntax> callConv = VirtualMethodPointerStubGenerator.GenerateCallConvSyntaxFromAttributes( 412private static ImmutableArray<ComInterfaceAndMethodsContext> GroupComContextsForInterfaceGeneration(ImmutableArray<ComMethodContext> methods, ImmutableArray<ComInterfaceContext> interfaces, CancellationToken ct) 419return ImmutableArray<ComInterfaceAndMethodsContext>.Empty;
ComInterfaceInfo.cs (5)
112ImmutableArray<DiagnosticInfo>.Builder nonFatalDiagnostics = ImmutableArray.CreateBuilder<DiagnosticInfo>(); 141public static ImmutableArray<InterfaceInfo> CreateInterfaceInfoForBaseInterfacesInOtherCompilations( 145return ImmutableArray<InterfaceInfo>.Empty; 148return ImmutableArray<InterfaceInfo>.Empty; 150ImmutableArray<InterfaceInfo>.Builder builder = ImmutableArray.CreateBuilder<InterfaceInfo>();
ComMethodContext.cs (7)
164var allMethodsCache = new Dictionary<ComInterfaceContext, ImmutableArray<Builder>>(); 168var methods = AddMethods(kvp.Item1, kvp.Item2); 179ImmutableArray<Builder> AddMethods(ComInterfaceContext iface, IEnumerable<ComMethodInfo> declaredMethods) 181if (allMethodsCache.TryGetValue(iface, out var cachedValue)) 192ImmutableArray<Builder> baseMethods; 193if (!allMethodsCache.TryGetValue(baseComIface, out var pair)) 211var imm = methods.ToImmutableArray();
ComMethodInfo.cs (1)
144var attributes = method.GetAttributes();
Comparers.cs (7)
18public static readonly IEqualityComparer<(MemberDeclarationSyntax Syntax, ImmutableArray<DiagnosticInfo> Diagnostics)> GeneratedSyntax = new CustomValueTupleElementComparer<MemberDeclarationSyntax, ImmutableArray<DiagnosticInfo>>(SyntaxEquivalentComparer.Instance, new ImmutableArraySequenceEqualComparer<DiagnosticInfo>(EqualityComparer<DiagnosticInfo>.Default)); 22/// Generic comparer to compare two <see cref="ImmutableArray{T}"/> instances element by element. 25internal sealed class ImmutableArraySequenceEqualComparer<T> : IEqualityComparer<ImmutableArray<T>> 38public bool Equals(ImmutableArray<T> x, ImmutableArray<T> y) 43public int GetHashCode(ImmutableArray<T> obj)
SkippedStubContext.cs (1)
9internal sealed record SkippedStubContext(ManagedTypeInfo OriginalDefiningType) : GeneratedMethodContextBase(OriginalDefiningType, new(ImmutableArray<DiagnosticInfo>.Empty));
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (2)
160public static ImmutableArray<T> ToImmutableArray<T>(this ReadOnlySpan<T> span) 164case 0: return ImmutableArray<T>.Empty;
src\libraries\System.Runtime.InteropServices\gen\Common\ConvertToSourceGeneratedInteropFixer.cs (1)
177ImmutableArray<Diagnostic> diagnosticsInScope = await fixAllContext.GetDiagnosticsInScopeAsync().ConfigureAwait(false);
src\libraries\System.Runtime.InteropServices\gen\Common\FixAllContextExtensions.cs (6)
15public static async Task<ImmutableArray<Diagnostic>> GetDiagnosticsInScopeAsync(this FixAllContext context) 44return ImmutableArray<Diagnostic>.Empty; 48public static async Task<ImmutableArray<Project>> GetProjectsWithDiagnosticsAsync(this FixAllContext context) 58ImmutableArray<Project>.Builder projectsWithDiagnostics = ImmutableArray.CreateBuilder<Project>(); 61ImmutableArray<Diagnostic> diagnostics = await context.GetAllDiagnosticsAsync(project).ConfigureAwait(false); 69return ImmutableArray<Project>.Empty;
UnmanagedToManagedStubGenerator.cs (3)
23ImmutableArray<TypePositionInfo> argTypes, 27_marshallers = BoundGenerators.Create(argTypes, generatorResolver, StubCodeContext.DefaultNativeToManagedStub, new Forwarder(), out var bindingDiagnostics); 85ImmutableArray<StatementSyntax> finallyStatements = statements.CleanupCallerAllocated;
VirtualMethodPointerStubGenerator.cs (13)
23public static (MethodDeclarationSyntax, ImmutableArray<DiagnosticInfo>) GenerateManagedToNativeStub( 29ImmutableArray<TypePositionInfo> elements = methodStub.SignatureContext.ElementTypeInformation; 100ImmutableArray<FunctionPointerUnmanagedCallingConventionSyntax> callConv) 130public static (MethodDeclarationSyntax, ImmutableArray<DiagnosticInfo>) GenerateNativeToManagedStub( 136ImmutableArray<TypePositionInfo> elements = AddUnmanagedToManagedImplicitElementInfos(methodStub); 177private static ImmutableArray<TypePositionInfo> AddManagedToUnmanagedImplicitThis(IncrementalMethodStubGenerationContext methodStub) 179ImmutableArray<TypePositionInfo> originalElements = methodStub.SignatureContext.ElementTypeInformation; 199private static ImmutableArray<TypePositionInfo> AddUnmanagedToManagedImplicitElementInfos(IncrementalMethodStubGenerationContext methodStub) 201ImmutableArray<TypePositionInfo> originalElements = methodStub.SignatureContext.ElementTypeInformation; 278ImmutableArray<FunctionPointerUnmanagedCallingConventionSyntax> callConv = method.CallingConvention.Array; 285public static ImmutableArray<FunctionPointerUnmanagedCallingConventionSyntax> GenerateCallConvSyntaxFromAttributes(AttributeData? suppressGCTransitionAttribute, AttributeData? unmanagedCallConvAttribute, ImmutableArray<FunctionPointerUnmanagedCallingConventionSyntax> defaultCallingConventions) 288ImmutableArray<FunctionPointerUnmanagedCallingConventionSyntax>.Builder callingConventions = ImmutableArray.CreateBuilder<FunctionPointerUnmanagedCallingConventionSyntax>();
VtableIndexStubGenerator.cs (6)
79IncrementalValuesProvider<(MemberDeclarationSyntax, ImmutableArray<DiagnosticInfo>)> generateManagedToNativeStub = generateStubInformation 97IncrementalValuesProvider<(MemberDeclarationSyntax, ImmutableArray<DiagnosticInfo>)> generateNativeToManagedStub = nativeToManagedStubContexts 288ImmutableArray<FunctionPointerUnmanagedCallingConventionSyntax> callConv = VirtualMethodPointerStubGenerator.GenerateCallConvSyntaxFromAttributes(suppressGCTransitionAttribute, unmanagedCallConvAttribute, defaultCallingConventions: ImmutableArray<FunctionPointerUnmanagedCallingConventionSyntax>.Empty); 365private static (MemberDeclarationSyntax, ImmutableArray<DiagnosticInfo>) GenerateManagedToNativeStub( 378private static (MemberDeclarationSyntax, ImmutableArray<DiagnosticInfo>) GenerateNativeToManagedStub(
Microsoft.Interop.JavaScript.JSImportGenerator (23)
Comparers.cs (9)
18public static readonly IEqualityComparer<(MemberDeclarationSyntax Syntax, ImmutableArray<DiagnosticInfo> Diagnostics)> GeneratedSyntax = new CustomValueTupleElementComparer<MemberDeclarationSyntax, ImmutableArray<DiagnosticInfo>>(SyntaxEquivalentComparer.Instance, new ImmutableArraySequenceEqualComparer<DiagnosticInfo>(EqualityComparer<DiagnosticInfo>.Default)); 19public static readonly IEqualityComparer<(MemberDeclarationSyntax, StatementSyntax, AttributeListSyntax, ImmutableArray<DiagnosticInfo>)> GeneratedSyntax4 = 20new CustomValueTupleElementComparer<MemberDeclarationSyntax, StatementSyntax, AttributeListSyntax, ImmutableArray<DiagnosticInfo>>( 26/// Generic comparer to compare two <see cref="ImmutableArray{T}"/> instances element by element. 29internal sealed class ImmutableArraySequenceEqualComparer<T> : IEqualityComparer<ImmutableArray<T>> 42public bool Equals(ImmutableArray<T> x, ImmutableArray<T> y) 47public int GetHashCode(ImmutableArray<T> obj)
JSExportCodeGenerator.cs (2)
24ImmutableArray<TypePositionInfo> argTypes, 33_marshallers = BoundGenerators.Create(argTypes, generatorResolver, StubCodeContext.DefaultNativeToManagedStub, new EmptyJSGenerator(), out var bindingFailures);
JSExportGenerator.cs (6)
69return ImmutableArray<DiagnosticInfo>.Empty; 75IncrementalValuesProvider<(MemberDeclarationSyntax, StatementSyntax, AttributeListSyntax, ImmutableArray<DiagnosticInfo>)> generateSingleStub = methodsToGenerate 95IncrementalValueProvider<ImmutableArray<(StatementSyntax, AttributeListSyntax)>> regSyntax = generateSingleStub 105IncrementalValueProvider<ImmutableArray<(string, string)>> generated = generateSingleStub 218ImmutableArray<(StatementSyntax Registration, AttributeListSyntax Attribute)> methods, string assemblyName) 305private static (MemberDeclarationSyntax, StatementSyntax, AttributeListSyntax, ImmutableArray<DiagnosticInfo>) GenerateSource(
JSImportCodeGenerator.cs (2)
31ImmutableArray<TypePositionInfo> argTypes, 40_marshallers = BoundGenerators.Create(argTypes, generatorResolver, StubCodeContext.DefaultManagedToNativeStub, new EmptyJSGenerator(), out var bindingFailures);
JSImportGenerator.cs (3)
67return ImmutableArray<DiagnosticInfo>.Empty; 73IncrementalValuesProvider<(MemberDeclarationSyntax, ImmutableArray<DiagnosticInfo>)> generateSingleStub = methodsToGenerate 196private static (MemberDeclarationSyntax, ImmutableArray<DiagnosticInfo>) GenerateSource(
JSSignatureContext.cs (1)
38ImmutableArray<IUseSiteAttributeParser> useSiteAttributeParsers = ImmutableArray.Create<IUseSiteAttributeParser>(new JSMarshalAsAttributeParser(env.Compilation));
Microsoft.Interop.LibraryImportGenerator (31)
Analyzers\AddDisableRuntimeMarshallingAttributeFixer.cs (1)
25public override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(GeneratorDiagnostics.Ids.TypeNotSupported);
Analyzers\ConvertToLibraryImportAnalyzer.cs (2)
33public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(ConvertToLibraryImport); 170}), StubCodeContext.DefaultManagedToNativeStub, forwarder, out var bindingFailures);
Analyzers\ConvertToLibraryImportFixer.cs (1)
33public override ImmutableArray<string> FixableDiagnosticIds => ImmutableArray.Create(Ids.ConvertToLibraryImport);
Analyzers\CustomMarshallerAttributeAnalyzer.cs (2)
569public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => 1020var fromUnmanagedCandidates = StatefulMarshallerShapeHelper.GetFromUnmanagedMethodCandidates(marshallerType);
Analyzers\CustomMarshallerAttributeFixer.cs (3)
31ImmutableArray<Diagnostic> diagnostics = await GetAllDiagnosticsInScope(fixAllContext).ConfigureAwait(false); 87private static async Task<ImmutableArray<Diagnostic>> GetAllDiagnosticsInScope(FixAllContext context) 105public override ImmutableArray<string> FixableDiagnosticIds { get; } =
Analyzers\NativeMarshallingAttributeAnalyzer.cs (1)
54public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics =>
Analyzers\ShapeBreakingDiagnosticSuppressor.cs (1)
19public override ImmutableArray<SuppressionDescriptor> SupportedSuppressions =>
Comparers.cs (7)
18public static readonly IEqualityComparer<(MemberDeclarationSyntax Syntax, ImmutableArray<DiagnosticInfo> Diagnostics)> GeneratedSyntax = new CustomValueTupleElementComparer<MemberDeclarationSyntax, ImmutableArray<DiagnosticInfo>>(SyntaxEquivalentComparer.Instance, new ImmutableArraySequenceEqualComparer<DiagnosticInfo>(EqualityComparer<DiagnosticInfo>.Default)); 22/// Generic comparer to compare two <see cref="ImmutableArray{T}"/> instances element by element. 25internal sealed class ImmutableArraySequenceEqualComparer<T> : IEqualityComparer<ImmutableArray<T>> 38public bool Equals(ImmutableArray<T> x, ImmutableArray<T> y) 43public int GetHashCode(ImmutableArray<T> obj)
LibraryImportGenerator.cs (4)
80return ImmutableArray<DiagnosticInfo>.Empty; 86IncrementalValuesProvider<(MemberDeclarationSyntax, ImmutableArray<DiagnosticInfo>)> generateSingleStub = methodsToGenerate 326private static (MemberDeclarationSyntax, ImmutableArray<DiagnosticInfo>) GenerateSource( 358ImmutableArray<AttributeSyntax> forwardedAttributes = pinvokeStub.ForwardedAttributes.Array;
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (2)
160public static ImmutableArray<T> ToImmutableArray<T>(this ReadOnlySpan<T> span) 164case 0: return ImmutableArray<T>.Empty;
src\libraries\System.Runtime.InteropServices\gen\Common\ConvertToSourceGeneratedInteropFixer.cs (1)
177ImmutableArray<Diagnostic> diagnosticsInScope = await fixAllContext.GetDiagnosticsInScopeAsync().ConfigureAwait(false);
src\libraries\System.Runtime.InteropServices\gen\Common\FixAllContextExtensions.cs (6)
15public static async Task<ImmutableArray<Diagnostic>> GetDiagnosticsInScopeAsync(this FixAllContext context) 44return ImmutableArray<Diagnostic>.Empty; 48public static async Task<ImmutableArray<Project>> GetProjectsWithDiagnosticsAsync(this FixAllContext context) 58ImmutableArray<Project>.Builder projectsWithDiagnostics = ImmutableArray.CreateBuilder<Project>(); 61ImmutableArray<Diagnostic> diagnostics = await context.GetAllDiagnosticsAsync(project).ConfigureAwait(false); 69return ImmutableArray<Project>.Empty;
Microsoft.Interop.LibraryImportGenerator.Downlevel (13)
Comparers.cs (7)
18public static readonly IEqualityComparer<(MemberDeclarationSyntax Syntax, ImmutableArray<DiagnosticInfo> Diagnostics)> GeneratedSyntax = new CustomValueTupleElementComparer<MemberDeclarationSyntax, ImmutableArray<DiagnosticInfo>>(SyntaxEquivalentComparer.Instance, new ImmutableArraySequenceEqualComparer<DiagnosticInfo>(EqualityComparer<DiagnosticInfo>.Default)); 22/// Generic comparer to compare two <see cref="ImmutableArray{T}"/> instances element by element. 25internal sealed class ImmutableArraySequenceEqualComparer<T> : IEqualityComparer<ImmutableArray<T>> 38public bool Equals(ImmutableArray<T> x, ImmutableArray<T> y) 43public int GetHashCode(ImmutableArray<T> obj)
DownlevelLibraryImportGenerator.cs (3)
65IncrementalValuesProvider<(MemberDeclarationSyntax, ImmutableArray<DiagnosticInfo>)> generateSingleStub = methodsToGenerate 231private static (MemberDeclarationSyntax, ImmutableArray<DiagnosticInfo>) GenerateSource( 253ImmutableArray<AttributeSyntax> forwardedAttributes = pinvokeStub.ForwardedAttributes.Array;
DownlevelLibraryImportGeneratorHelpers.cs (1)
33var useSiteAttributeParsers = ImmutableArray.Create<IUseSiteAttributeParser>(
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (2)
160public static ImmutableArray<T> ToImmutableArray<T>(this ReadOnlySpan<T> span) 164case 0: return ImmutableArray<T>.Empty;
Microsoft.Interop.SourceGeneration (90)
BoundGenerators.cs (9)
21public static BoundGenerators Create(ImmutableArray<TypePositionInfo> elementTypeInfo, IMarshallingGeneratorResolver generatorResolver, StubCodeContext context, IUnboundMarshallingGenerator fallbackGenerator, out ImmutableArray<GeneratorDiagnostic> generatorBindingDiagnostics) 26ImmutableArray<IBoundMarshallingGenerator>.Builder signatureMarshallers = ImmutableArray.CreateBuilder<IBoundMarshallingGenerator>(); 27ImmutableArray<IBoundMarshallingGenerator>.Builder nativeParamMarshallers = ImmutableArray.CreateBuilder<IBoundMarshallingGenerator>(); 28ImmutableArray<IBoundMarshallingGenerator>.Builder managedParamMarshallers = ImmutableArray.CreateBuilder<IBoundMarshallingGenerator>(); 29ImmutableArray<GeneratorDiagnostic>.Builder generatorDiagnostics = ImmutableArray.CreateBuilder<GeneratorDiagnostic>(); 168public ImmutableArray<IBoundMarshallingGenerator> SignatureMarshallers { get; private init; } 170public ImmutableArray<IBoundMarshallingGenerator> ManagedParameterMarshallers { get; private init; } 172public ImmutableArray<IBoundMarshallingGenerator> NativeParameterMarshallers { get; private init; }
ContainingSyntaxContext.cs (3)
38public sealed record ContainingSyntaxContext(ImmutableArray<ContainingSyntax> ContainingSyntax, string? ContainingNamespace) 50private static ImmutableArray<ContainingSyntax> GetContainingTypes(MemberDeclarationSyntax memberDeclaration) 52ImmutableArray<ContainingSyntax>.Builder containingTypeInfoBuilder = ImmutableArray.CreateBuilder<ContainingSyntax>();
DefaultMarshallingInfoParser.cs (1)
53var useSiteAttributeParsers = ImmutableArray.Create<IUseSiteAttributeParser>(
DiagnosticExtensions.cs (4)
57this ImmutableArray<Location> locations, 65this ImmutableArray<Location> locations, 161this ImmutableArray<Location> locations, 169this ImmutableArray<Location> locations,
DiagnosticInfo.cs (1)
56AdditionalLocations = (additionalLocations ?? ImmutableArray<Location>.Empty).ToSequenceEqualImmutableArray(),
DiagnosticOr.cs (6)
31public abstract ImmutableArray<DiagnosticInfo> Diagnostics { get; } 36internal Diag(ImmutableArray<DiagnosticInfo> diagnostics) => _diagnostics = diagnostics.ToSequenceEqual(); 40public override ImmutableArray<DiagnosticInfo> Diagnostics => _diagnostics.Array; 50public override ImmutableArray<DiagnosticInfo> Diagnostics => throw new InvalidOperationException(); 57internal ValueAndDiagnostic(T value, ImmutableArray<DiagnosticInfo> diagnostics) => (_value, _diagnostics) = (value, diagnostics.ToSequenceEqual()); 61public override ImmutableArray<DiagnosticInfo> Diagnostics => _diagnostics.Array;
GeneratedStatements.cs (15)
16public ImmutableArray<StatementSyntax> Setup { get; init; } 17public ImmutableArray<StatementSyntax> Marshal { get; init; } 18public ImmutableArray<FixedStatementSyntax> Pin { get; init; } 19public ImmutableArray<StatementSyntax> PinnedMarshal { get; init; } 21public ImmutableArray<StatementSyntax> Unmarshal { get; init; } 22public ImmutableArray<StatementSyntax> NotifyForSuccessfulInvoke { get; init; } 23public ImmutableArray<StatementSyntax> GuaranteedUnmarshal { get; init; } 24public ImmutableArray<StatementSyntax> CleanupCallerAllocated { get; init; } 25public ImmutableArray<StatementSyntax> CleanupCalleeAllocated { get; init; } 27public ImmutableArray<CatchClauseSyntax> ManagedExceptionCatchClauses { get; init; } 72private static ImmutableArray<StatementSyntax> GenerateStatementsForStubContext(BoundGenerators marshallers, StubIdentifierContext context) 74ImmutableArray<StatementSyntax>.Builder statementsToUpdate = ImmutableArray.CreateBuilder<StatementSyntax>(); 152private static ImmutableArray<CatchClauseSyntax> GenerateCatchClauseForManagedException(BoundGenerators marshallers, StubIdentifierContext context) 156return ImmutableArray<CatchClauseSyntax>.Empty; 158ImmutableArray<StatementSyntax>.Builder catchClauseBuilder = ImmutableArray.CreateBuilder<StatementSyntax>();
GeneratorDiagnosticsBag.cs (1)
113public void ReportGeneratorDiagnostics(ImmutableArray<GeneratorDiagnostic> diagnostics)
IncrementalGeneratorInitializationContextExtensions.cs (1)
72IncrementalValueProvider<ImmutableArray<string>> generatedMethods = nodes
IncrementalValuesProviderExtensions.cs (1)
23ImmutableArray<(T, U)>.Builder builder = ImmutableArray.CreateBuilder<(T, U)>(data.Left.Length);
ManagedToNativeStubGenerator.cs (2)
51ImmutableArray<TypePositionInfo> argTypes, 59_marshallers = BoundGenerators.Create(argTypes, generatorResolver, StubCodeContext.DefaultManagedToNativeStub, new Forwarder(), out var bindingDiagnostics);
MarshallerShape.cs (2)
613public static ImmutableArray<IMethodSymbol> GetFromUnmanagedMethodCandidates(ITypeSymbol type) 623ImmutableArray<IMethodSymbol> candidates = GetFromUnmanagedMethodCandidates(type);
Marshalling\GeneratorDiagnostic.cs (1)
45public sealed record UnnecessaryData(TypePositionInfo TypePositionInfo, ImmutableArray<Location> UnnecessaryDataLocations) : GeneratorDiagnostic(TypePositionInfo, isFatal: false)
Marshalling\ResolvedGenerator.cs (4)
10public record struct ResolvedGenerator([property: MemberNotNullWhen(true, nameof(ResolvedGenerator.IsResolved), nameof(ResolvedGenerator.IsResolvedWithoutErrors))] IBoundMarshallingGenerator? Generator, ImmutableArray<GeneratorDiagnostic> Diagnostics) 22return new(generator, ImmutableArray<GeneratorDiagnostic>.Empty); 30public static ResolvedGenerator ResolvedWithDiagnostics(IBoundMarshallingGenerator generator, ImmutableArray<GeneratorDiagnostic> diagnostics) 35public static ResolvedGenerator UnresolvedGenerator { get; } = new(null, ImmutableArray<GeneratorDiagnostic>.Empty);
MarshallingInfoParser.cs (6)
179private readonly ImmutableArray<IUseSiteAttributeParser> _useSiteMarshallingAttributeParsers; 180private readonly ImmutableArray<IMarshallingInfoAttributeParser> _marshallingAttributeParsers; 181private readonly ImmutableArray<ITypeBasedMarshallingInfoProvider> _typeBasedMarshallingInfoProviders; 194ImmutableArray<IUseSiteAttributeParser> useSiteMarshallingAttributeParsers, 195ImmutableArray<IMarshallingInfoAttributeParser> marshallingAttributeParsers, 196ImmutableArray<ITypeBasedMarshallingInfoProvider> typeBasedMarshallingInfoProviders)
MethodSignatureDiagnosticLocations.cs (1)
45public sealed record MethodSignatureDiagnosticLocations(string MethodIdentifier, ImmutableArray<Location> ManagedParameterLocations, Location FallbackLocation) : ISignatureDiagnosticLocations
MethodSignatureElementInfoProvider.cs (2)
17private readonly ImmutableArray<IUseSiteAttributeParser> _useSiteAttributeParsers; 19public MethodSignatureElementInfoProvider(Compilation compilation, GeneratorDiagnosticsBag generatorDiagnostics, IMethodSymbol method, ImmutableArray<IUseSiteAttributeParser> useSiteAttributeParsers)
SequenceEqualImmutableArray.cs (6)
13/// This method provides a wrapper for an <see cref="ImmutableArray{T}" /> that overrides the equality operation to provide elementwise comparison. 14/// The default equality operation for an <see cref="ImmutableArray{T}" /> is reference equality of the underlying array, which is too strict 15/// for many scenarios. This wrapper type allows us to use <see cref="ImmutableArray{T}" />s in our other record types without having to write an Equals method 18public readonly record struct SequenceEqualImmutableArray<T>(ImmutableArray<T> Array, IEqualityComparer<T> Comparer) : IEnumerable<T> 20public SequenceEqualImmutableArray(ImmutableArray<T> array) 57public static SequenceEqualImmutableArray<T> ToSequenceEqual<T>(this ImmutableArray<T> source)
SignatureContext.cs (6)
30public ImmutableArray<TypePositionInfo> ElementTypeInformation { get; init; } 53public ImmutableArray<AttributeListSyntax> AdditionalAttributes { get; init; } 62ImmutableArray<TypePositionInfo> typeInfos = GenerateTypeInformation(method, marshallingInfoParser, env); 64ImmutableArray<AttributeListSyntax>.Builder additionalAttrs = ImmutableArray.CreateBuilder<AttributeListSyntax>(); 101private static ImmutableArray<TypePositionInfo> GenerateTypeInformation( 108ImmutableArray<TypePositionInfo>.Builder typeInfos = ImmutableArray.CreateBuilder<TypePositionInfo>();
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (2)
160public static ImmutableArray<T> ToImmutableArray<T>(this ReadOnlySpan<T> span) 164case 0: return ImmutableArray<T>.Empty;
SyntaxExtensions.cs (1)
49public static StatementSyntax NestFixedStatements(this ImmutableArray<FixedStatementSyntax> fixedStatements, StatementSyntax innerStatement)
TypeSymbolExtensions.cs (6)
305public static (ImmutableArray<ITypeSymbol> TypeArguments, ImmutableArray<NullableAnnotation> TypeArgumentNullableAnnotations) GetAllTypeArgumentsIncludingInContainingTypes(this INamedTypeSymbol genericType) 309Stack<(ImmutableArray<ITypeSymbol>, ImmutableArray<NullableAnnotation>)> genericTypesToSubstitute = new(); 316ImmutableArray<ITypeSymbol>.Builder typeArguments = ImmutableArray.CreateBuilder<ITypeSymbol>(); 317ImmutableArray<NullableAnnotation>.Builder nullableAnnotations = ImmutableArray.CreateBuilder<NullableAnnotation>();
UseSiteAttributeProvider.cs (1)
30ImmutableArray<IUseSiteAttributeParser> useSiteAttributeParsers,
VariableDeclarations.cs (8)
14public ImmutableArray<StatementSyntax> Initializations { get; init; } 15public ImmutableArray<LocalDeclarationStatementSyntax> Variables { get; init; } 18ImmutableArray<StatementSyntax>.Builder initializations = ImmutableArray.CreateBuilder<StatementSyntax>(); 19ImmutableArray<LocalDeclarationStatementSyntax>.Builder variables = ImmutableArray.CreateBuilder<LocalDeclarationStatementSyntax>(); 55static void AppendVariableDeclarations(ImmutableArray<LocalDeclarationStatementSyntax>.Builder statementsToUpdate, IBoundMarshallingGenerator marshaller, StubIdentifierContext context, bool initializeToDefault) 81ImmutableArray<StatementSyntax>.Builder initializations = ImmutableArray.CreateBuilder<StatementSyntax>(); 82ImmutableArray<LocalDeclarationStatementSyntax>.Builder variables = ImmutableArray.CreateBuilder<LocalDeclarationStatementSyntax>(); 112static void AppendVariableDeclarations(ImmutableArray<LocalDeclarationStatementSyntax>.Builder statementsToUpdate, IBoundMarshallingGenerator marshaller, StubIdentifierContext context, bool initializeToDefault)
Microsoft.Maui.Controls.BindingSourceGen (6)
BindingSourceGenerator.cs (1)
181 var parameters = lambdaSymbol.Parameters;
EquatableArray.cs (5)
15 private EquatableArray(ImmutableArray<T> array) 17 this.array = Unsafe.As<ImmutableArray<T>, T[]?>(ref array); 63 public ImmutableArray<T> AsImmutableArray() 65 return Unsafe.As<T[]?, ImmutableArray<T>>(ref Unsafe.AsRef(in this.array)); 78 public ImmutableArray<T>.Enumerator GetEnumerator()
Microsoft.ML.CodeAnalyzer.Tests (1)
Code\RelaxTestNamingTest.cs (1)
109public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(Rule);
Microsoft.ML.Data (17)
DataDebuggerPreview.cs (2)
28public ImmutableArray<ColumnInfo> ColumnView { get; } 29public ImmutableArray<RowInfo> RowView { get; }
Prediction\Calibrator.cs (6)
1957public readonly ImmutableArray<float> Mins; 1961public readonly ImmutableArray<float> Maxes; 1965public readonly ImmutableArray<float> Values; 1974internal IsotonicCalibrator(IHostEnvironment env, ImmutableArray<float> mins, ImmutableArray<float> maxes, ImmutableArray<float> values)
Transforms\NormalizeColumn.cs (2)
519=> new NormalizingTransformer.AffineNormalizerModelParameters<ImmutableArray<TFloat>>(ImmutableArray.Create(Scale), ImmutableArray.Create(Offset)); 638=> new NormalizingTransformer.CdfNormalizerModelParameters<ImmutableArray<TFloat>>(ImmutableArray.Create(Mean), ImmutableArray.Create(Stddev), UseLog);
Transforms\NormalizeColumnDbl.cs (1)
1377=> new NormalizingTransformer.BinNormalizerModelParameters<ImmutableArray<TFloat>>(_binUpperBounds.Select(b => ImmutableArray.Create(b)).ToImmutableArray(),
Transforms\NormalizeColumnSng.cs (1)
1539=> new NormalizingTransformer.BinNormalizerModelParameters<ImmutableArray<TFloat>>(
Transforms\Normalizer.cs (5)
488private readonly ImmutableArray<ColumnOptions> _infos; 490public ColumnFunctionAccessor(ImmutableArray<ColumnOptions> infos) 509internal readonly ImmutableArray<ColumnOptions> Columns; 945public ImmutableArray<TData> UpperBounds { get; } 961internal BinNormalizerModelParameters(ImmutableArray<TData> upperBounds, TData density, TData offset)
Microsoft.ML.DataView (3)
VectorType.cs (3)
35public ImmutableArray<int> Dimensions { get; } 77public VectorDataViewType(PrimitiveDataViewType itemType, ImmutableArray<int> dimensions) 94private static int ComputeSize(ImmutableArray<int> dims)
Microsoft.ML.FastTree (7)
RegressionTree.cs (7)
27private readonly ImmutableArray<int> _lteChild; 31private readonly ImmutableArray<int> _gtChild; 35private readonly ImmutableArray<int> _numericalSplitFeatureIndexes; 39private readonly ImmutableArray<float> _numericalSplitThresholds; 43private readonly ImmutableArray<bool> _categoricalSplitFlags; 47private readonly ImmutableArray<double> _leafValues; 51private readonly ImmutableArray<double> _splitGains;
Microsoft.ML.ImageAnalytics (1)
ImagePixelExtractor.cs (1)
309var dims = type.Dimensions;
Microsoft.ML.IntegrationTests (2)
Explainability.cs (1)
72var permutationMetrics = mlContext.Regression.PermutationFeatureImportance(linearPredictor, transformedData);
IntrospectiveTraining.cs (1)
275var config = normalizer.GetNormalizerModelParameters(0) as NormalizingTransformer.AffineNormalizerModelParameters<ImmutableArray<float>>;
Microsoft.ML.InternalCodeAnalyzer (16)
BaseTestClassAnalyzer.cs (1)
28public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(Rule);
BestFriendAnalyzer.cs (1)
36public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics =>
BestFriendOnPublicDeclarationsAnalyzer.cs (1)
31public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics =>
ContractsCheckAnalyzer.cs (3)
75public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => 104ImmutableArray<IParameterSymbol> parameters, 215var parameters = methodSymbol.Parameters;
ContractsCheckNameofFixProvider.cs (1)
29public override ImmutableArray<string> FixableDiagnosticIds => ImmutableArray.Create(Id);
InstanceInitializerAnalyzer.cs (2)
28public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => 68var syntaxRefs = symbol.DeclaringSyntaxReferences;
NameAnalyzer.cs (1)
71public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics =>
NameFixProvider.cs (2)
34private static ImmutableArray<string> _fixable = ImmutableArray.Create( 44public override ImmutableArray<string> FixableDiagnosticIds => _fixable;
ParameterVariableNameAnalyzer.cs (1)
29public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics =>
RelaxTestNamingSuppressor.cs (1)
22public override ImmutableArray<SuppressionDescriptor> SupportedSuppressions { get; } = ImmutableArray.Create(Rule);
SingleVariableDeclarationAnalyzer.cs (1)
29public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics =>
TypeParamNameAnalyzer.cs (1)
28public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics =>
Microsoft.ML.Samples (22)
Dynamic\Trainers\BinaryClassification\PermutationFeatureImportance.cs (1)
44var permutationMetrics = mlContext.BinaryClassification
Dynamic\Trainers\BinaryClassification\PermutationFeatureImportanceLoadFromDisk.cs (1)
44var permutationMetrics = mlContext.BinaryClassification
Dynamic\Trainers\MulticlassClassification\PermutationFeatureImportance.cs (1)
46var permutationMetrics = mlContext.MulticlassClassification
Dynamic\Trainers\MulticlassClassification\PermutationFeatureImportanceLoadFromDisk.cs (1)
54var permutationMetrics = mlContext.MulticlassClassification
Dynamic\Trainers\Ranking\PermutationFeatureImportance.cs (1)
46var permutationMetrics = mlContext.Ranking.PermutationFeatureImportance(
Dynamic\Trainers\Ranking\PermutationFeatureImportanceLoadFromDisk.cs (1)
53var permutationMetrics = mlContext.Ranking.PermutationFeatureImportance(
Dynamic\Trainers\Regression\PermutationFeatureImportance.cs (1)
45var permutationMetrics = mlContext.Regression
Dynamic\Trainers\Regression\PermutationFeatureImportanceLoadFromDisk.cs (1)
52var permutationMetrics = mlContext.Regression
Dynamic\Transforms\NormalizeBinning.cs (2)
76as BinNormalizerModelParameters<ImmutableArray<float>>; 97ImmutableArray<float>>);
Dynamic\Transforms\NormalizeLogMeanVariance.cs (2)
72as CdfNormalizerModelParameters<ImmutableArray<float>>; 860) as AffineNormalizerModelParameters<ImmutableArray<float>>;
Dynamic\Transforms\NormalizeLogMeanVarianceFixZero.cs (2)
60var transformParams = normalizeTransform.GetNormalizerModelParameters(0) as CdfNormalizerModelParameters<ImmutableArray<float>>; 68var noCdfParams = normalizeNoCdfTransform.GetNormalizerModelParameters(0) as AffineNormalizerModelParameters<ImmutableArray<float>>;
Dynamic\Transforms\NormalizeMeanVariance.cs (2)
73ImmutableArray<float>>; 87AffineNormalizerModelParameters<ImmutableArray<float>>;
Dynamic\Transforms\NormalizeMinMax.cs (1)
72as AffineNormalizerModelParameters<ImmutableArray<float>>;
Dynamic\Transforms\NormalizeMinMaxMulticolumn.cs (2)
104as AffineNormalizerModelParameters<ImmutableArray<float>>; 107as AffineNormalizerModelParameters<ImmutableArray<float>>;
Dynamic\Transforms\NormalizeSupervisedBinning.cs (2)
93as BinNormalizerModelParameters<ImmutableArray<float>>; 115ImmutableArray<float>>;
Dynamic\WithOnFitDelegate.cs (1)
64BinNormalizerModelParameters<ImmutableArray<float>>;
Microsoft.ML.StandardTrainers (1)
Standard\MulticlassClassification\OneVersusAllTrainer.cs (1)
273internal ImmutableArray<object> SubModelParameters => _impl.Predictors.Cast<object>().ToImmutableArray();
Microsoft.ML.Tests (46)
ImagesTests.cs (2)
1025var rowView = pipe.Preview(data).RowView; 1188var rowView = resizedDV.Preview().RowView;
PermutationFeatureImportanceTests.cs (13)
40ImmutableArray<RegressionMetricsStatistics> pfi; 108ImmutableArray<RegressionMetricsStatistics> pfi; 182ImmutableArray<RegressionMetricsStatistics> pfi; 270ImmutableArray<RegressionMetricsStatistics> results; 345ImmutableArray<BinaryClassificationMetricsStatistics> pfi; 419ImmutableArray<BinaryClassificationMetricsStatistics> pfi; 493var pfi = ML.BinaryClassification.PermutationFeatureImportance(model, data); 527ImmutableArray<MulticlassClassificationMetricsStatistics> pfi; 600ImmutableArray<MulticlassClassificationMetricsStatistics> pfi; 678ImmutableArray<RankingMetricsStatistics> pfi; 747ImmutableArray<RankingMetricsStatistics> pfi; 958ImmutableArray<T> metricsDelta, 966ImmutableArray<T> metricsDelta,
Scenarios\Api\CookbookSamples\CookbookSamplesDynamicApi.cs (2)
122BinNormalizerModelParameters<ImmutableArray<float>>; 359var featureImportance = context.Regression.PermutationFeatureImportance(model.LastTransformer, transformedData);
Transformers\NormalizerTests.cs (29)
145var floatAffineDataVec = transformer.Columns[1].ModelParameters as NormalizingTransformer.AffineNormalizerModelParameters<ImmutableArray<float>>; 153var doubleAffineDataVec = transformer.Columns[3].ModelParameters as NormalizingTransformer.AffineNormalizerModelParameters<ImmutableArray<double>>; 162var floatBinDataVec = transformer.Columns[5].ModelParameters as NormalizingTransformer.BinNormalizerModelParameters<ImmutableArray<float>>; 173var doubleBinDataVec = transformer.Columns[7].ModelParameters as NormalizingTransformer.BinNormalizerModelParameters<ImmutableArray<double>>; 182var floatCdfMeanDataVec = transformer.Columns[9].ModelParameters as NormalizingTransformer.AffineNormalizerModelParameters<ImmutableArray<float>>; 191var doubleCdfMeanDataVec = transformer.Columns[11].ModelParameters as NormalizingTransformer.AffineNormalizerModelParameters<ImmutableArray<double>>; 200var floatCdfLogMeanDataVec = transformer.Columns[13].ModelParameters as NormalizingTransformer.CdfNormalizerModelParameters<ImmutableArray<float>>; 210var doubleCdfLogMeanDataVec = transformer.Columns[15].ModelParameters as NormalizingTransformer.CdfNormalizerModelParameters<ImmutableArray<double>>; 257var transformers = transformer.ToImmutableArray(); 262var floatAffineModelVec = ((NormalizingTransformer)transformers[0]).Columns[1].ModelParameters as NormalizingTransformer.AffineNormalizerModelParameters<ImmutableArray<float>>; 270var doubleAffineModelVector = ((NormalizingTransformer)transformers[0]).Columns[3].ModelParameters as NormalizingTransformer.AffineNormalizerModelParameters<ImmutableArray<double>>; 283var floatBinModelVector = ((NormalizingTransformer)transformers[1]).Columns[1].ModelParameters as NormalizingTransformer.BinNormalizerModelParameters<ImmutableArray<float>>; 300var doubleBinModelVector = ((NormalizingTransformer)transformers[1]).Columns[3].ModelParameters as NormalizingTransformer.BinNormalizerModelParameters<ImmutableArray<double>>; 313var floatCdfMeanModelVector = ((NormalizingTransformer)transformers[2]).Columns[1].ModelParameters as NormalizingTransformer.AffineNormalizerModelParameters<ImmutableArray<float>>; 323var doubleCdfMeanModelVector = ((NormalizingTransformer)transformers[2]).Columns[3].ModelParameters as NormalizingTransformer.AffineNormalizerModelParameters<ImmutableArray<double>>; 334var floatCdfLogMeanModelVector = ((NormalizingTransformer)transformers[3]).Columns[1].ModelParameters as NormalizingTransformer.CdfNormalizerModelParameters<ImmutableArray<float>>; 348var doubleCdfLogMeanModelVector = ((NormalizingTransformer)transformers[3]).Columns[3].ModelParameters as NormalizingTransformer.CdfNormalizerModelParameters<ImmutableArray<double>>; 364floatBinModelVector = ((NormalizingTransformer)transformers[4]).Columns[1].ModelParameters as NormalizingTransformer.BinNormalizerModelParameters<ImmutableArray<float>>; 381doubleBinModelVector = ((NormalizingTransformer)transformers[4]).Columns[3].ModelParameters as NormalizingTransformer.BinNormalizerModelParameters<ImmutableArray<double>>; 401floatAffineModelVec = ((NormalizingTransformer)robustScalerTransformer).Columns[1].ModelParameters as NormalizingTransformer.AffineNormalizerModelParameters<ImmutableArray<float>>; 417doubleAffineModelVector = ((NormalizingTransformer)robustScalerTransformer).Columns[3].ModelParameters as NormalizingTransformer.AffineNormalizerModelParameters<ImmutableArray<double>>; 441floatAffineModelVec = ((NormalizingTransformer)robustScalerTransformer).Columns[1].ModelParameters as NormalizingTransformer.AffineNormalizerModelParameters<ImmutableArray<float>>; 454doubleAffineModelVector = ((NormalizingTransformer)robustScalerTransformer).Columns[3].ModelParameters as NormalizingTransformer.AffineNormalizerModelParameters<ImmutableArray<double>>; 930var transformedDataArray = ML.Data.CreateEnumerable<DataPointOne>(noCdfData, false).ToImmutableArray(); 960var transformParams = normalizeTransform.GetNormalizerModelParameters(0) as CdfNormalizerModelParameters<ImmutableArray<float>>; 961var noCdfParams = normalizeNoCdfTransform.GetNormalizerModelParameters(0) as AffineNormalizerModelParameters<ImmutableArray<float>>; 974var transformedDataArray = ML.Data.CreateEnumerable<DataPointVec>(noCdfData, false).ToImmutableArray(); 1063var dimensions1 = (transformedData.Schema["output"].Type as VectorDataViewType).Dimensions; 1064var dimensions2 = (transformedData2.Schema["output"].Type as VectorDataViewType).Dimensions;
Microsoft.ML.Transforms (12)
PermutationFeatureImportance.cs (1)
20public static ImmutableArray<TResult>
PermutationFeatureImportanceExtensions.cs (6)
64public static ImmutableArray<RegressionMetricsStatistics> 214public static ImmutableArray<BinaryClassificationMetricsStatistics> 368public static ImmutableArray<MulticlassClassificationMetricsStatistics> 528public static ImmutableArray<RankingMetricsStatistics> 702var permutationFeatureImportance = (ImmutableArray<TResult>)mi.Invoke(null, param);
Text\LdaTransform.cs (1)
1049private readonly ImmutableArray<ColumnOptions> _columns;
Text\NgramHashingTransformer.cs (1)
171private readonly ImmutableArray<NgramHashingEstimator.ColumnOptions> _columns;
Text\NgramTransform.cs (3)
186private readonly ImmutableArray<TransformInfo> _transformInfos; 221private static SequencePool[] Train(IHostEnvironment env, NgramExtractingEstimator.ColumnOptions[] columns, ImmutableArray<TransformInfo> transformInfos, IDataView trainingData, out double[][] invDocFreqs) 1005private readonly ImmutableArray<int> _maximumNgramsCounts;
Microsoft.VisualBasic.Tests (2)
Microsoft\VisualBasic\ApplicationServices\SingleInstanceTests.cs (2)
24internal ImmutableArray<string[]> Freeze() 160var receivedSorted = receivedArgs.Freeze().Sort((x, y) => x.Length - y.Length);
Microsoft.VisualStudio.LanguageServices (461)
CallHierarchy\CallHierarchyCommandHandler.cs (1)
100var node = await _provider.CreateItemAsync(mapping.Symbol, mapping.Project, ImmutableArray<Location>.Empty, cancellationToken).ConfigureAwait(false);
CallHierarchy\CallHierarchyItem.cs (1)
37ImmutableArray<Location> callsites,
CallHierarchy\CallHierarchyProvider.cs (1)
56ISymbol symbol, Project project, ImmutableArray<Location> callsites, CancellationToken cancellationToken)
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);
ChangeSignature\ChangeSignatureDialogViewModel.cs (2)
41private readonly ImmutableArray<SymbolDisplayPart> _declarationParts; 147private List<ParameterViewModel> CreateParameterViewModels(ImmutableArray<Parameter> parameters, ref int initialIndex)
CodeCleanup\AbstractCodeCleanUpFixer.cs (1)
195ImmutableArray<Project> projects,
CodeCleanup\AbstractCodeCleanupFixerProvider.cs (1)
19private readonly ImmutableArray<Lazy<AbstractCodeCleanUpFixer, ContentTypeMetadata>> _codeCleanUpFixers;
CodeDefinitionWindow\VisualStudioCodeDefinitionWindowService.cs (3)
44public async Task SetContextAsync(ImmutableArray<CodeDefinitionWindowLocation> locations, CancellationToken cancellationToken) 63private readonly ImmutableArray<CodeDefinitionWindowLocation> _locations; 65public Context(ImmutableArray<CodeDefinitionWindowLocation> locations)
CodeLens\CodeLensCallbackListener.cs (3)
59public async Task<ImmutableDictionary<Guid, string>> GetProjectVersionsAsync(ImmutableArray<Guid> projectGuids, CancellationToken cancellationToken) 104public async Task<(string projectVersion, ImmutableArray<ReferenceLocationDescriptor> references)?> FindReferenceLocationsAsync( 126public async Task<ImmutableArray<ReferenceMethodDescriptor>?> FindReferenceMethodsAsync(
CodeLens\RemoteCodeLensReferencesService.cs (8)
67public async Task<ImmutableArray<ReferenceLocationDescriptor>?> FindReferenceLocationsAsync(Solution solution, DocumentId documentId, SyntaxNode? syntaxNode, 88public async Task<ImmutableArray<ReferenceMethodDescriptor>?> FindReferenceMethodsAsync(Solution solution, DocumentId documentId, SyntaxNode? syntaxNode, 101var result = await client.TryInvokeAsync<IRemoteCodeLensReferencesService, ImmutableArray<ReferenceMethodDescriptor>?>( 138private async Task<ImmutableArray<ReferenceLocationDescriptor>> FixUpDescriptorsAsync( 139Solution solution, ImmutableArray<ReferenceLocationDescriptor> descriptors, CancellationToken cancellationToken) 253private static async Task<ImmutableArray<ReferenceLocationDescriptor>?> FindReferenceLocationsWorkerAsync(Solution solution, DocumentId documentId, SyntaxNode syntaxNode, 258return ImmutableArray<ReferenceLocationDescriptor>.Empty; 264var result = await client.TryInvokeAsync<IRemoteCodeLensReferencesService, ImmutableArray<ReferenceLocationDescriptor>?>(
ColorSchemes\ColorSchemeApplier.ColorScheme.cs (4)
22public ImmutableArray<ColorTheme> Themes { get; } 24public ColorScheme(ImmutableArray<ColorTheme> themes) 49public ImmutableArray<ColorItem> Colors { get; } 51public ColorCategory(string name, Guid guid, ImmutableArray<ColorItem> colors)
ColorSchemes\ColorSchemeApplier.cs (1)
38private ImmutableDictionary<ColorSchemeName, ImmutableArray<RegistryItem>>? _colorSchemeRegistryItems;
ColorSchemes\ColorSchemeApplier.RegistryItemConverter.cs (1)
21public static ImmutableArray<RegistryItem> Convert(ColorScheme scheme)
ColorSchemes\ColorSchemeApplier.Settings.cs (1)
63ColorSchemeName schemeName, ImmutableArray<RegistryItem> registryItems, CancellationToken cancellationToken)
CommonControls\MemberSelectionViewModel.cs (9)
24private readonly ImmutableDictionary<ISymbol, Task<ImmutableArray<ISymbol>>> _symbolToDependentsMap; 29ImmutableArray<MemberSymbolViewModel> members, 30ImmutableDictionary<ISymbol, Task<ImmutableArray<ISymbol>>> dependentsMap, 50public ImmutableArray<MemberSymbolViewModel> CheckedMembers => Members.WhereAsArray(m => m.IsChecked && m.IsCheckable); 52private ImmutableArray<MemberSymbolViewModel> _members; 53public ImmutableArray<MemberSymbolViewModel> Members 58var oldMembers = _members; 134public ImmutableArray<(ISymbol member, bool makeAbstract)> GetSelectedMembers() 161private static void SelectMembers(ImmutableArray<MemberSymbolViewModel> members, bool isChecked = true)
CommonControls\NewTypeDestinationSelectionViewModel.cs (3)
22ImmutableArray<string>.Empty, 29private readonly ImmutableArray<string> _conflictingNames; 39ImmutableArray<string> conflictingNames,
DesignerAttribute\VisualStudioDesignerAttributeService.cs (1)
307public ValueTask ReportDesignerAttributeDataAsync(ImmutableArray<DesignerAttributeData> data, CancellationToken cancellationToken)
Diagnostics\VisualStudioDiagnosticAnalyzerProvider.cs (5)
33private readonly Lazy<ImmutableArray<(AnalyzerFileReference reference, string extensionId)>> _lazyAnalyzerReferences; 43_lazyAnalyzerReferences = new Lazy<ImmutableArray<(AnalyzerFileReference, string)>>(GetAnalyzerReferencesImpl); 46public ImmutableArray<(AnalyzerFileReference reference, string extensionId)> GetAnalyzerReferencesInExtensions() 49private ImmutableArray<(AnalyzerFileReference reference, string extensionId)> GetAnalyzerReferencesImpl() 107return ImmutableArray<(AnalyzerFileReference, string)>.Empty;
Diagnostics\VisualStudioDiagnosticAnalyzerProvider.WorkspaceEventListener.cs (1)
59var references = provider.GetAnalyzerReferencesInExtensions();
Diagnostics\VisualStudioDiagnosticAnalyzerService.cs (3)
144ImmutableDictionary<string, ImmutableArray<DiagnosticDescriptor>> map) 313ImmutableArray<Project> otherProjectsForMultiTfmProject; 323otherProjectsForMultiTfmProject = ImmutableArray<Project>.Empty;
Diagnostics\VisualStudioVenusSpanMappingService.cs (1)
88var documentIds = solution.GetDocumentIdsWithFilePath(filePath);
DocumentOutline\DocumentOutlineView.xaml.cs (4)
240private static ImmutableArray<SortDescription> NameSortDescriptions { get; } = 244private static ImmutableArray<SortDescription> LocationSortDescriptions { get; } = 248private static ImmutableArray<SortDescription> TypeSortDescriptions { get; } = 261var newSortDescriptions = sortOption switch
DocumentOutline\DocumentOutlineViewModel.cs (15)
62private ImmutableArray<DocumentSymbolDataViewModel> _documentSymbolViewModelItems_doNotAccessDirectly = ImmutableArray<DocumentSymbolDataViewModel>.Empty; 122ImmutableArray<DocumentSymbolDataViewModel>.Empty, 227public ImmutableArray<DocumentSymbolDataViewModel> DocumentSymbolViewModelItems 252static void ExpandOrCollapse(ImmutableArray<DocumentSymbolDataViewModel> models, bool shouldExpand) 303var oldViewModelItems = lastPresentedViewState.ViewModelItems; 307var newViewModelItems = GetDocumentSymbolItemViewModels( 355static void AddAllModels(ImmutableArray<DocumentSymbolDataViewModel> viewModels, SegmentedList<DocumentSymbolDataViewModel> result) 367ImmutableArray<DocumentSymbolDataViewModel> oldItems, 368ImmutableArray<DocumentSymbolDataViewModel> newItems) 395ImmutableArray<DocumentSymbolDataViewModel> oldItems, 410ImmutableArray<DocumentSymbolDataViewModel> newItems) 425private async Task<(ImmutableArray<DocumentSymbolData> documentSymbolData, ITextSnapshot newTextSnapshot)> ComputeDocumentSymbolDataAsync(CancellationToken cancellationToken) 436var documentSymbolData = CreateDocumentSymbolData(response.Value.response, newTextSnapshot); 441return (ImmutableArray<DocumentSymbolData>.Empty, _textBuffer.CurrentSnapshot);
DocumentOutline\DocumentOutlineViewModel.DocumentOutlineViewState.cs (2)
37public readonly ImmutableArray<DocumentSymbolDataViewModel> ViewModelItems; 48ImmutableArray<DocumentSymbolDataViewModel> viewModelItems,
DocumentOutline\DocumentOutlineViewModel_Utilities.cs (9)
97public static ImmutableArray<DocumentSymbolData> CreateDocumentSymbolData(RoslynDocumentSymbol[] documentSymbols, ITextSnapshot textSnapshot) 117DocumentSymbolData NestDescendantSymbols(ImmutableArray<RoslynDocumentSymbol> allSymbols, int start, out int newStart) 174public static ImmutableArray<DocumentSymbolDataViewModel> GetDocumentSymbolItemViewModels( 176ImmutableArray<DocumentSymbolData> documentSymbolData) 181var children = GetDocumentSymbolItemViewModels(sortOption, documentSymbol.Children); 191ImmutableArray<DocumentSymbolDataViewModel> currentDocumentSymbolItems, 204public static ImmutableArray<DocumentSymbolData> SearchDocumentSymbolData( 205ImmutableArray<DocumentSymbolData> documentSymbolData, 219var filteredChildren = SearchDocumentSymbolData(documentSymbol.Children, pattern, cancellationToken);
DocumentOutline\DocumentSymbolData.cs (1)
23ImmutableArray<DocumentSymbolData> Children);
DocumentOutline\DocumentSymbolDataViewModel.cs (2)
24public ImmutableArray<DocumentSymbolDataViewModel> Children { get; } 48ImmutableArray<DocumentSymbolDataViewModel> children)
DocumentOutline\DocumentSymbolDataViewModelSorter.cs (1)
24if (values[0] is ImmutableArray<DocumentSymbolDataViewModel> children &&
EditorConfigSettings\Analyzers\ViewModel\AnalyzerSettingsViewModel.SettingsEntriesSnapshot.cs (1)
19public SettingsEntriesSnapshot(ImmutableArray<AnalyzerSetting> data, int currentVersionNumber) : base(data, currentVersionNumber) { }
EditorConfigSettings\Analyzers\ViewModel\AnalyzerSettingsViewModel.SettingsSnapshotFactory.cs (1)
21protected override SettingsEntriesSnapshot CreateSnapshot(ImmutableArray<AnalyzerSetting> data, int currentVersionNumber)
EditorConfigSettings\CodeStyle\ViewModel\CodeStyleSettingsViewModel.SettingsEntriesSnapshot.cs (1)
16public SettingsEntriesSnapshot(ImmutableArray<CodeStyleSetting> data, int currentVersionNumber) : base(data, currentVersionNumber) { }
EditorConfigSettings\CodeStyle\ViewModel\CodeStyleSettingsViewModel.SettingsSnapshotFactory.cs (1)
18protected override SettingsEntriesSnapshot CreateSnapshot(ImmutableArray<CodeStyleSetting> data, int currentVersionNumber)
EditorConfigSettings\Common\SettingsEntriesSnapshotBase.cs (2)
13private readonly ImmutableArray<T> _data; 16public SettingsEntriesSnapshotBase(ImmutableArray<T> data, int currentVersionNumber)
EditorConfigSettings\Common\SettingsSnapshotFactoryBase.cs (2)
49var data = _data.GetCurrentDataSnapshot(); 71protected abstract TEntriesSnapshot CreateSnapshot(ImmutableArray<T> data, int currentVersionNumber);
EditorConfigSettings\DataProvider\CodeStyle\CommonCodeStyleSettingsProvider.cs (1)
24protected override void UpdateOptions(TieredAnalyzerConfigOptions options, ImmutableArray<Project> projectsInScope)
EditorConfigSettings\DataProvider\Whitespace\CommonWhitespaceSettingsProvider.cs (1)
24protected override void UpdateOptions(TieredAnalyzerConfigOptions options, ImmutableArray<Project> projectsInScope)
EditorConfigSettings\NamingStyle\ViewModel\ColumnViewModels\NamingStylesSeverityViewModel.cs (1)
52public static ImmutableArray<string> Severities { get; } =
EditorConfigSettings\NamingStyle\ViewModel\NamingStyleSettingsViewModel.SettingsEntriesSnapshot.cs (1)
15public SettingsEntriesSnapshot(ImmutableArray<NamingStyleSetting> data, int currentVersionNumber) : base(data, currentVersionNumber) { }
EditorConfigSettings\NamingStyle\ViewModel\NamingStyleSettingsViewModel.SettingsSnapshotFactory.cs (1)
18protected override SettingsEntriesSnapshot CreateSnapshot(ImmutableArray<NamingStyleSetting> data, int currentVersionNumber)
EditorConfigSettings\Whitespace\ViewModel\WhitespaceViewModel.SettingsEntriesSnapshot.cs (1)
16public SettingsEntriesSnapshot(ImmutableArray<Setting> data, int currentVersionNumber) : base(data, currentVersionNumber) { }
EditorConfigSettings\Whitespace\ViewModel\WhitespaceViewModel.SettingsSnapshotFactory.cs (1)
18protected override SettingsEntriesSnapshot CreateSnapshot(ImmutableArray<Setting> data, int currentVersionNumber)
ExternalAccess\ProjectSystem\Api\IProjectSystemReferenceCleanupService.cs (1)
18Task<ImmutableArray<ProjectSystemReferenceInfo>> GetProjectReferencesAsync(
ExtractClass\ExtractClassViewModel.cs (3)
25ImmutableArray<MemberSymbolViewModel> memberViewModels, 26ImmutableDictionary<ISymbol, Task<ImmutableArray<ISymbol>>> memberToDependentsMap, 31ImmutableArray<string> conflictingNames,
ExtractClass\VisualStudioExtractClassOptionsService.cs (1)
44ImmutableArray<ISymbol> selectedMembers,
ExtractInterface\ExtractInterfaceDialogViewModel.cs (2)
31ImmutableArray<LanguageServices.Utilities.MemberSymbolViewModel> memberViewModels, 77public ImmutableArray<MemberSymbolViewModel> MemberContainers => MemberSelectionViewModel.Members;
FindReferences\Contexts\AbstractTableDataSourceFindUsagesContext.cs (5)
123ImmutableArray<ITableColumnDefinition> customColumns, 200private static ImmutableArray<string> SelectCustomColumnsToInclude(ImmutableArray<ITableColumnDefinition> customColumns, bool includeContainingTypeAndMemberColumns, bool includeKindColumn) 435ImmutableArray<(string key, string value)> additionalProperties, 610private static ImmutableArray<Entry> ToImmutableArray((List<Entry> primary, List<Entry> nonPrimary) entries)
FindReferences\Contexts\WithoutReferencesFindUsagesContext.cs (1)
29ImmutableArray<ITableColumnDefinition> customColumns,
FindReferences\Contexts\WithReferencesFindUsagesContext.cs (3)
34ImmutableArray<ITableColumnDefinition> customColumns, 204var definitions = GetDefinitionsToCreateMissingReferenceItemsFor(whenGroupingByDefinition); 237private ImmutableArray<DefinitionItem> GetDefinitionsToCreateMissingReferenceItemsFor(
FindReferences\Entries\DocumentSpanEntry.cs (4)
43private readonly ImmutableArray<(string key, string value)> _customColumnsData; 55ImmutableArray<(string key, string value)> customColumnsData, 83ImmutableArray<(string key, string value)> customColumnsData, 210private static void SetStaticClassifications(ITextBuffer textBuffer, ImmutableArray<ClassifiedSpan> classifiedSpans)
FindReferences\StreamingFindUsagesPresenter.cs (1)
56private readonly ImmutableArray<ITableColumnDefinition> _customColumns;
FindReferences\TableEntriesSnapshot.cs (2)
18private class TableEntriesSnapshot(ImmutableArray<Entry> entries, int versionNumber) : WpfTableEntriesSnapshotBase 21private readonly ImmutableArray<Entry> _entries = entries;
FindReferences\VisualStudioDefinitionsAndReferencesFactory.cs (4)
47private ImmutableArray<TaggedText> GetDisplayParts_MustCallOnUIThread( 73ImmutableArray<string> tags, 74ImmutableArray<TaggedText> displayParts, 82nameDisplayParts: ImmutableArray<TaggedText>.Empty,
Implementation\VisualStudioSupportsFeatureService.cs (1)
112private static bool SupportsRenameWorker(ImmutableArray<DocumentId> ids)
InheritanceMargin\InheritanceGlyphFactory.cs (1)
81var membersOnLine = inheritanceMarginTag.MembersOnLine;
InheritanceMargin\InheritanceGlyphManager.cs (1)
111var glyphDataToRemove = _glyphDataTree.GetIntervalsThatIntersectWith(snapshotSpan.Start, snapshotSpan.Length);
InheritanceMargin\InheritanceMarginHelpers.cs (9)
23private static readonly ImmutableArray<InheritanceRelationship> s_relationships_Shown_As_I_Up_Arrow 31private static readonly ImmutableArray<InheritanceRelationship> s_relationships_Shown_As_I_Down_Arrow 34private static readonly ImmutableArray<InheritanceRelationship> s_relationships_Shown_As_O_Up_Arrow 37private static readonly ImmutableArray<InheritanceRelationship> s_relationships_Shown_As_O_Down_Arrow 98public static ImmutableArray<MenuItemViewModel> CreateModelsForMarginItem(InheritanceMarginItem item) 106var targets = item.TargetItems; 134public static ImmutableArray<MenuItemViewModel> CreateMenuItemViewModelsForMultipleMembers(ImmutableArray<InheritanceMarginItem> members) 146public static ImmutableArray<MenuItemViewModel> CreateMenuItemsWithHeader(
InheritanceMargin\InheritanceMarginTag.cs (2)
30public readonly ImmutableArray<InheritanceMarginItem> MembersOnLine; 37public InheritanceMarginTag(int lineNumber, ImmutableArray<InheritanceMarginItem> membersOnLine)
InheritanceMargin\MarginGlyph\InheritanceMarginGlyphViewModel.cs (6)
41var members = _tag.MembersOnLine; 89public ImmutableArray<MenuItemViewModel> MenuItemViewModels { get; } 102ImmutableArray<MenuItemViewModel> menuItemViewModels) 118var members = tag.MembersOnLine; 136var menuItemViewModels = InheritanceMarginHelpers.CreateModelsForMarginItem(member); 143var menuItemViewModels = InheritanceMarginHelpers.CreateMenuItemViewModelsForMultipleMembers(tag.MembersOnLine);
InheritanceMargin\MarginGlyph\MemberMenuItemViewModel.cs (2)
28public ImmutableArray<MenuItemViewModel> Targets { get; } 33ImmutableArray<MenuItemViewModel> targets) : base(displayContent, imageMoniker)
Interactive\VsInteractiveWindowProvider.cs (2)
72protected ImmutableArray<IInteractiveWindowCommand> Commands { get; } 148private static ImmutableArray<IInteractiveWindowCommand> GetApplicableCommands(IInteractiveWindowCommand[] commands, string coreContentType, string specializedContentType)
Interactive\VsResetInteractive.cs (12)
61out ImmutableArray<string> references, 62out ImmutableArray<string> referenceSearchPaths, 63out ImmutableArray<string> sourceSearchPaths, 64out ImmutableArray<string> projectNamespaces, 70references = ImmutableArray<string>.Empty; 71referenceSearchPaths = ImmutableArray<string>.Empty; 72sourceSearchPaths = ImmutableArray<string>.Empty; 73projectNamespaces = ImmutableArray<string>.Empty; 99out ImmutableArray<string> references, 100out ImmutableArray<string> referenceSearchPaths, 101out ImmutableArray<string> sourceSearchPaths, 102out ImmutableArray<string> projectNamespaces,
KeybindingReset\KeybindingResetDetector.cs (2)
60private static readonly ImmutableArray<OptionKey2> s_statusOptions = [new OptionKey2(KeybindingResetOptionsStorage.ReSharperStatus), new OptionKey2(KeybindingResetOptionsStorage.NeedsReset)]; 179var options = _globalOptions.GetOptions(s_statusOptions);
Library\ObjectBrowser\AbstractListItemFactory.cs (35)
167private static ImmutableArray<ObjectListItem> CreateListItemsFromSymbols<TSymbol>( 168ImmutableArray<TSymbol> symbols, 186ImmutableArray<ObjectListItem>.Builder builder) 205private ImmutableArray<ObjectListItem> GetBaseTypeListItems(INamedTypeSymbol namedTypeSymbol, Compilation compilation, ProjectId projectId) 210return ImmutableArray<ObjectListItem>.Empty; 229public ImmutableArray<ObjectListItem> GetBaseTypeListItems(ObjectListItem parentListItem, Compilation compilation) 237return ImmutableArray<ObjectListItem>.Empty; 245public ImmutableArray<ObjectListItem> GetFolderListItems(ObjectListItem parentListItem, Compilation compilation) 290private ImmutableArray<ObjectListItem> GetMemberListItems( 298var immediateMembers = GetMemberSymbols(namedTypeSymbol, compilation); 308var inheritedMembers = GetInheritedMemberSymbols(namedTypeSymbol, compilation); 316private static ImmutableArray<ISymbol> GetMemberSymbols(INamedTypeSymbol namedTypeSymbol, Compilation compilation) 318var members = namedTypeSymbol.GetMembers(); 332private static ImmutableArray<ISymbol> GetInheritedMemberSymbols(INamedTypeSymbol namedTypeSymbol, Compilation compilation) 389public ImmutableArray<ObjectListItem> GetMemberListItems(ObjectListItem parentListItem, Compilation compilation) 397return ImmutableArray<ObjectListItem>.Empty; 405public void CollectNamespaceListItems(IAssemblySymbol assemblySymbol, ProjectId projectId, ImmutableArray<ObjectListItem>.Builder builder, string searchString) 438public ImmutableArray<ObjectListItem> GetNamespaceListItems(ObjectListItem parentListItem, Compilation compilation) 548private static ImmutableArray<INamedTypeSymbol> GetAccessibleTypeMembers(INamespaceOrTypeSymbol namespaceOrTypeSymbol, IAssemblySymbol assemblySymbol) 550var typeMembers = namespaceOrTypeSymbol.GetTypeMembers(); 584public ImmutableArray<ObjectListItem> GetProjectListItems(Solution solution, string languageName, uint listFlags) 589return ImmutableArray<ObjectListItem>.Empty; 638public ImmutableArray<ObjectListItem> GetReferenceListItems(ObjectListItem parentListItem, Compilation compilation) 646return ImmutableArray<ObjectListItem>.Empty; 663private static ImmutableArray<INamedTypeSymbol> GetAccessibleTypes(INamespaceSymbol namespaceSymbol, Compilation compilation) 665var typeMembers = GetAccessibleTypeMembers(namespaceSymbol, compilation.Assembly); 687private ImmutableArray<ObjectListItem> GetTypeListItems( 694var types = GetAccessibleTypes(namespaceSymbol, compilation); 696var listItems = fullyQualified 718public ImmutableArray<ObjectListItem> GetTypeListItems(ObjectListItem parentListItem, Compilation compilation) 743public void CollectTypeListItems(IAssemblySymbol assemblySymbol, Compilation compilation, ProjectId projectId, ImmutableArray<ObjectListItem>.Builder builder, string searchString) 753var typeListItems = GetTypeListItems(namespaceSymbol, compilation, projectId, searchString, fullyQualified: true); 775public void CollectMemberListItems(IAssemblySymbol assemblySymbol, Compilation compilation, ProjectId projectId, ImmutableArray<ObjectListItem>.Builder builder, string searchString) 785var types = GetAccessibleTypes(namespaceSymbol, compilation); 789var memberListItems = GetMemberListItems(type, compilation, projectId, fullyQualified: true);
Library\ObjectBrowser\AbstractObjectBrowserLibraryManager_ListItems.cs (10)
17internal void CollectMemberListItems(IAssemblySymbol assemblySymbol, Compilation compilation, ProjectId projectId, ImmutableArray<ObjectListItem>.Builder builder, string searchString) 20internal void CollectNamespaceListItems(IAssemblySymbol assemblySymbol, ProjectId projectId, ImmutableArray<ObjectListItem>.Builder builder, string searchString) 23internal void CollectTypeListItems(IAssemblySymbol assemblySymbol, Compilation compilation, ProjectId projectId, ImmutableArray<ObjectListItem>.Builder builder, string searchString) 32internal ImmutableArray<ObjectListItem> GetBaseTypeListItems(ObjectListItem parentListItem, Compilation compilation) 35internal ImmutableArray<ObjectListItem> GetFolderListItems(ObjectListItem parentListItem, Compilation compilation) 38internal ImmutableArray<ObjectListItem> GetMemberListItems(ObjectListItem parentListItem, Compilation compilation) 41internal ImmutableArray<ObjectListItem> GetNamespaceListItems(ObjectListItem parentListItem, Compilation compilation) 44internal ImmutableArray<ObjectListItem> GetProjectListItems(Solution solution, string languageName, uint listFlags) 47internal ImmutableArray<ObjectListItem> GetReferenceListItems(ObjectListItem parentListItem, Compilation compilation) 50internal ImmutableArray<ObjectListItem> GetTypeListItems(ObjectListItem parentListItem, Compilation compilation)
Library\ObjectBrowser\ObjectList.cs (3)
27private readonly ImmutableArray<ObjectListItem> _items; 33ImmutableArray<ObjectListItem> items) 44ImmutableArray<ObjectListItem> items)
Library\VsNavInfo\Extensions.cs (2)
14public static void Add(this ImmutableArray<NavInfoNode>.Builder builder, string name, _LIB_LISTTYPE type, bool expandDottedNames) 46public static void Add(this ImmutableArray<NavInfoNode>.Builder builder, string name, _LIB_LISTTYPE type)
Library\VsNavInfo\NavInfo.cs (8)
24private readonly ImmutableArray<NavInfoNode> _baseCanonicalNodes; 25private readonly ImmutableArray<NavInfoNode> _basePresentationNodes; 27private ImmutableArray<NavInfoNode> _canonicalEnumNodes; 28private ImmutableArray<NavInfoNode> _objectBrowserEnumNodes; 29private ImmutableArray<NavInfoNode> _classViewEnumNodes; 66private ImmutableArray<NavInfoNode> CreateNodes(bool expandDottedNames) 86private static NavInfoNodeEnum CreateEnum(ref ImmutableArray<NavInfoNode> nodes, ImmutableArray<NavInfoNode> baseNodes, bool isCanonical, bool isObjectBrowser)
Library\VsNavInfo\NavInfoNodeEnum.cs (2)
14private readonly ImmutableArray<NavInfoNode> _nodes; 17public NavInfoNodeEnum(ImmutableArray<NavInfoNode> nodes)
MoveStaticMembers\MoveStaticMembersDialogViewModel.cs (2)
27ImmutableArray<TypeNameItem> availableTypes, 130public ImmutableArray<TypeNameItem> AvailableTypes { get; }
MoveStaticMembers\StaticMemberSelectionViewModel.cs (7)
18private readonly ImmutableDictionary<ISymbol, Task<ImmutableArray<ISymbol>>> _symbolToDependentsMap; 23ImmutableArray<SymbolViewModel<ISymbol>> members, 24ImmutableDictionary<ISymbol, Task<ImmutableArray<ISymbol>>> dependentsMap) 32public ImmutableArray<SymbolViewModel<ISymbol>> CheckedMembers => Members.WhereAsArray(m => m.IsChecked); 34private ImmutableArray<SymbolViewModel<ISymbol>> _members; 35public ImmutableArray<SymbolViewModel<ISymbol>> Members 75private static void SelectMembers(ImmutableArray<SymbolViewModel<ISymbol>> members, bool isChecked = true)
MoveStaticMembers\VisualStudioMoveStaticMembersOptionsService.cs (3)
41public MoveStaticMembersOptions GetMoveMembersToTypeOptions(Document document, INamedTypeSymbol selectedType, ImmutableArray<ISymbol> selectedNodeSymbols) 90ImmutableArray<ISymbol> selectedNodeSymbols, 159private static ImmutableArray<TypeNameItem> MakeTypeNameItems(
MoveToNamespace\MoveToNamespaceDialogViewModel.cs (3)
23ImmutableArray<string> availableNamespaces, 25ImmutableArray<string> namespaceHistory) 99public ImmutableArray<NamespaceItem> AvailableNamespaces { get; }
MoveToNamespace\VisualStudioMoveToNamespaceOptionsService.cs (1)
39ImmutableArray<string> availableNamespaces,
NavigateTo\RoslynNavigateToSearchCallback.cs (1)
57public Task AddResultsAsync(ImmutableArray<INavigateToSearchResult> results, CancellationToken cancellationToken)
NavigationBar\NavigationBarClient.cs (2)
300ImmutableArray<NavigationBarProjectItem> projects, 302ImmutableArray<NavigationBarItem> types,
Options\VisualStudioSettingsOptionPersister.cs (8)
173if (storageType == typeof(ImmutableArray<bool>)) 176if (storageType == typeof(ImmutableArray<string>)) 179if (storageType == typeof(ImmutableArray<int>)) 182if (storageType == typeof(ImmutableArray<long>)) 208else if (value is ImmutableArray<string> stringArray) 212else if (value is ImmutableArray<bool> boolArray) 216else if (value is ImmutableArray<int> intArray) 220else if (value is ImmutableArray<long> longArray)
Packaging\PackageInstallerServiceFactory.cs (8)
92private Task<ImmutableArray<PackageSource>>? _packageSourcesTask; 140public ImmutableArray<PackageSource> TryGetPackageSources() 142Task<ImmutableArray<PackageSource>> localPackageSourcesTask; 158return ImmutableArray<PackageSource>.Empty; 162private async Task<ImmutableArray<PackageSource>> GetPackageSourcesAsync() 181return ImmutableArray<PackageSource>.Empty; 611public ImmutableArray<string> GetInstalledVersions(string packageName) 656public ImmutableArray<Project> GetProjectsWithInstalledPackage(Solution solution, string packageName, string version)
PickMembers\PickMembersDialogViewModel.cs (2)
33ImmutableArray<ISymbol> members, 34ImmutableArray<PickMembersOption> options,
PickMembers\VisualStudioPickMembersService.cs (2)
28ImmutableArray<ISymbol> members, 29ImmutableArray<PickMembersOption> options,
Progression\GraphBuilder.cs (2)
82var docIdsWithPath = _solution.GetDocumentIdsWithFilePath(filePath.OriginalString); 848public ImmutableArray<GraphNode> GetCreatedNodes(CancellationToken cancellationToken)
Progression\GraphProvider.cs (2)
72public static ImmutableArray<IGraphQuery> GetGraphQueries(IGraphContext context) 165var graphQueries = GetGraphQueries(context);
Progression\GraphQueries\CallsGraphQuery.cs (1)
41private static async Task<ImmutableArray<ISymbol>> GetCalledMethodSymbolsAsync(
Progression\GraphQueries\ImplementsGraphQuery.cs (3)
31var implementedSymbols = ImmutableArray<ISymbol>.CastUp(namedType.AllInterfaces); 49GraphBuilder graphBuilder, GraphNode node, ImmutableArray<ISymbol> implementedSymbols, CancellationToken cancellationToken)
Progression\GraphQueries\ProgressionNavigateToSearchCallback.cs (1)
42public async Task AddResultsAsync(ImmutableArray<INavigateToSearchResult> results, CancellationToken cancellationToken)
Progression\GraphQueryManager.cs (8)
29private ImmutableArray<(WeakReference<IGraphContext> context, ImmutableArray<IGraphQuery> queries)> _trackedQueries = ImmutableArray<(WeakReference<IGraphContext>, ImmutableArray<IGraphQuery>)>.Empty; 55public async Task AddQueriesAsync(IGraphContext context, ImmutableArray<IGraphQuery> graphQueries, CancellationToken disposalToken) 83ImmutableArray<(IGraphContext context, ImmutableArray<IGraphQuery> queries)> liveQueries; 113ImmutableArray<IGraphQuery> graphQueries,
Progression\SymbolContainment.cs (1)
30public static async Task<ImmutableArray<ISymbol>> GetContainedSymbolsAsync(Document document, CancellationToken cancellationToken)
ProjectSystem\BuildPropertyNames.cs (2)
35public static readonly ImmutableArray<string> InitialEvaluationPropertyNames = [MSBuildProjectFullPath, TargetPath, AssemblyName, CommandLineArgsForDesignTimeEvaluation]; 37public static readonly ImmutableArray<string> InitialEvaluationItemNames = [IntermediateAssembly];
ProjectSystem\CPS\IWorkspaceProjectContext.cs (1)
42void SetOptions(ImmutableArray<string> arguments);
ProjectSystem\CPS\IWorkspaceProjectContextFactory.cs (4)
61ImmutableArray<string> EvaluationPropertyNames { get; } 66ImmutableArray<string> EvaluationItemNames { get; } 91public virtual ImmutableArray<string> GetItemValues(string name) 92=> ImmutableArray<string>.Empty;
ProjectSystem\FileChangeWatcher.cs (12)
87public IFileChangeContext CreateContext(ImmutableArray<WatchedDirectory> watchedDirectories) 105private readonly ImmutableArray<string> _filters; 143private WatcherOperation(Kind kind, string directory, ImmutableArray<string> filters, IVsFreeThreadedFileChangeEvents2 sink, List<uint> cookies) 169_filters = ImmutableArray<string>.Empty; 181_filters = ImmutableArray<string>.Empty; 196_filters = ImmutableArray<string>.Empty; 211public static WatcherOperation WatchDirectory(string directory, ImmutableArray<string> filters, IVsFreeThreadedFileChangeEvents2 sink, List<uint> cookies) 217public static WatcherOperation WatchFiles(ImmutableArray<string> files, _VSFILECHANGEFLAGS fileChangeFlags, IVsFreeThreadedFileChangeEvents2 sink, ImmutableArray<Context.RegularWatchedFile> tokens) 223public static WatcherOperation UnwatchFiles(ImmutableArray<Context.RegularWatchedFile> tokens) 341private readonly ImmutableArray<WatchedDirectory> _watchedDirectories; 359public Context(FileChangeWatcher fileChangeWatcher, ImmutableArray<WatchedDirectory> watchedDirectories)
ProjectSystem\Legacy\AbstractLegacyProject.cs (9)
190var folders = GetFolderNamesForDocument(filename); 208var folders = ImmutableArray<string>.Empty; 308private readonly Dictionary<uint, ImmutableArray<string>> _folderNameMap = []; 311private ImmutableArray<string> GetFolderNamesForDocument(string filename) 322private ImmutableArray<string> GetFolderNamesForDocument(uint documentItemID) 335return ImmutableArray<string>.Empty; 338private ImmutableArray<string> GetFolderNamesForFolder(uint folderItemID) 346if (!_folderNameMap.TryGetValue(folderItemID, out var folderNames))
ProjectSystem\MetadataReferences\VisualStudioMetadataReferenceManager.cs (4)
57private readonly ImmutableArray<string> _runtimeDirectories; 136private static ImmutableArray<string> GetRuntimeDirectories() 333var moduleNames = manifestModule.GetModuleNames(); 359var storageHandles = handles.MoveToImmutable();
ProjectSystem\MiscellaneousFilesWorkspace.cs (1)
53private readonly ImmutableArray<MetadataReference> _metadataReferences;
ProjectSystem\OpenTextBufferProvider.cs (2)
43private ImmutableArray<IOpenTextBufferEventListener> _listeners = ImmutableArray<IOpenTextBufferEventListener>.Empty;
ProjectSystem\RuleSets\VisualStudioRuleSetManager.RuleSetFile.cs (1)
51ImmutableArray<string> includes;
ProjectSystem\VisualStudioProjectFactory.cs (1)
34private readonly ImmutableArray<Lazy<IDynamicFileInfoProvider, FileExtensionsMetadata>> _dynamicFileInfoProviders;
ProjectSystem\VisualStudioWorkspaceImpl.cs (1)
229public Task CheckForAddedFileBeingOpenMaybeAsync(bool useAsync, ImmutableArray<string> newFileNames)
ProjectSystem\VisualStudioWorkspaceImpl.OpenFileTracker.cs (3)
275var documentIds = _workspace.CurrentSolution.GetDocumentIdsWithFilePath(moniker); 317var documentIds = w.CurrentSolution.GetDocumentIdsWithFilePath(moniker); 347public Task CheckForAddedFileBeingOpenMaybeAsync(bool useAsync, ImmutableArray<string> newFileNames)
ProjectSystem\VisualStudioWorkspaceImpl.SolutionAnalyzerSetterService.cs (1)
28public void SetAnalyzerReferences(ImmutableArray<AnalyzerReference> references)
ProjectSystem\VisualStudioWorkspaceImpl_SourceGenerators.cs (1)
70var documentIds = _workspace.CurrentSolution.GetDocumentIdsWithFilePath(moniker);
PullMemberUp\MainDialog\BaseTypeTreeNodeViewModel.cs (1)
27public ImmutableArray<BaseTypeTreeNodeViewModel> BaseTypeNodes { get; private set; }
PullMemberUp\MainDialog\PullMemberUpDialogViewModel.cs (5)
30private readonly ImmutableDictionary<ISymbol, Task<ImmutableArray<ISymbol>>> _symbolToDependentsMap; 35ImmutableArray<MemberSymbolViewModel> members, 37ImmutableDictionary<ISymbol, Task<ImmutableArray<ISymbol>>> dependentsMap) 81var selectedOptionFromDialog = MemberSelectionViewModel.GetSelectedMembers(); 89var selectedMembers = MemberSelectionViewModel.CheckedMembers;
PullMemberUp\SymbolDependentsBuilder.cs (4)
20public static ImmutableDictionary<ISymbol, Task<ImmutableArray<ISymbol>>> FindMemberToDependentsMap( 21ImmutableArray<ISymbol> membersInType, 44ImmutableArray<ISymbol> membersInType, 56public async Task<ImmutableArray<ISymbol>> FindMemberDependentsAsync()
PullMemberUp\VisualStudioPullMemberUpService.cs (1)
40public PullMembersUpOptions GetPullMemberUpOptions(Document document, ImmutableArray<ISymbol> selectedMembers)
PullMemberUp\WarningDialog\PullMemberUpWarningViewModel.cs (2)
17public ImmutableArray<string> WarningMessageContainer { get; set; } 23private static ImmutableArray<string> GenerateMessage(PullMembersUpOptions options)
RoslynPackage.cs (1)
197var persisterProviders = componentModel.GetExtensions<IOptionPersisterProvider>().ToImmutableArray();
Shared\VisualStudioImageIdService.cs (4)
29public readonly ImmutableArray<ImageCompositionLayer> Layers; 32public CompositeImage(ImmutableArray<ImageCompositionLayer> layers, IImageHandle imageHandle) 53public bool TryGetImageId(ImmutableArray<string> tags, out ImageId imageId) 61private ImageId GetImageId(ImmutableArray<string> tags)
Snippets\AbstractSnippetInfoService.cs (4)
36protected ImmutableArray<SnippetInfo> snippets = []; 166var updatedSnippets = ExtractSnippetInfo(expansionEnumerator); 176private ImmutableArray<SnippetInfo> ExtractSnippetInfo(IVsExpansionEnumeration expansionEnumerator) 214protected static IImmutableSet<string> GetShortcutsHashFromSnippets(ImmutableArray<SnippetInfo> updatedSnippets)
Snippets\SnippetExpansionClient.cs (8)
72private readonly ImmutableArray<Lazy<ArgumentProvider, OrderableLanguageMetadata>> _allArgumentProviders; 73private ImmutableArray<ArgumentProvider> _argumentProviders; 99ImmutableArray<Lazy<ArgumentProvider, OrderableLanguageMetadata>> argumentProviders, 119public ImmutableArray<ArgumentProvider> GetArgumentProviders(Workspace workspace) 555var snippet = CreateMethodCallSnippet(methodName, includeMethod: true, ImmutableArray<IParameterSymbol>.Empty, ImmutableDictionary<string, string>.Empty); 633private static XDocument CreateMethodCallSnippet(string methodName, bool includeMethod, ImmutableArray<IParameterSymbol> parameters, ImmutableDictionary<string, string> parameterValues) 760private static async Task<ImmutableArray<ISymbol>> GetReferencedSymbolsToLeftOfCaretAsync( 771return ImmutableArray<ISymbol>.Empty;
Snippets\SnippetExpansionClientFactory.cs (1)
42private readonly ImmutableArray<Lazy<ArgumentProvider, OrderableLanguageMetadata>> _argumentProviders = argumentProviders.ToImmutableArray();
src\Compilers\Shared\GlobalAssemblyCacheHelpers\GlobalAssemblyCacheLocation.cs (2)
30public static ImmutableArray<string> s_rootLocations; 32public static ImmutableArray<string> RootLocations
StackTraceExplorer\FrameViewModel.cs (1)
30public ImmutableArray<Inline> Inlines => CreateInlines().ToImmutableArray();
StackTraceExplorer\StackFrameViewModel.cs (8)
148var classLeadingTrivia = GetLeadingTrivia(className); 191var leadingTrivia = GetLeadingTrivia(fileInformation); 201var trailingTrivia = GetTrailingTrivia(fileInformation); 233private static ImmutableArray<StackFrameTrivia> GetLeadingTrivia(StackFrameNode node) 237return ImmutableArray<StackFrameTrivia>.Empty; 249private static ImmutableArray<StackFrameTrivia> GetTrailingTrivia(StackFrameNode node) 253return ImmutableArray<StackFrameTrivia>.Empty; 283private static string CreateString(ImmutableArray<StackFrameTrivia> triviaList)
SymbolSearch\AbstractDelayStartedService.cs (2)
44private readonly ImmutableArray<PerLanguageOption2<bool>> _perLanguageOptions; 58ImmutableArray<PerLanguageOption2<bool>> perLanguageOptions)
SymbolSearch\VisualStudioSymbolSearchService.cs (5)
132public async ValueTask<ImmutableArray<PackageResult>> FindPackagesAsync( 142public async ValueTask<ImmutableArray<PackageWithAssemblyResult>> FindPackagesWithAssemblyAsync( 152private ImmutableArray<TPackageResult> FilterAndOrderPackages<TPackageResult>( 153ImmutableArray<TPackageResult> allPackages) where TPackageResult : AbstractPackageResult 203public async ValueTask<ImmutableArray<ReferenceAssemblyResult>> FindReferenceAssembliesAsync(
SyncNamespaces\SyncNamespacesCommandHandler.cs (4)
101var projects = GetProjectsForHierarchy(projectHierarchy); 108var projects = _workspace.CurrentSolution.Projects 116private ImmutableArray<Project> GetProjectsForHierarchy(Shell.Interop.IVsHierarchy projectHierarchy) 126private void SyncNamespaces(ImmutableArray<Project> projects)
TableDataSource\Suppression\VisualStudioDiagnosticListSuppressionStateService.cs (1)
189public async Task<ImmutableArray<DiagnosticData>> GetSelectedItemsAsync(bool isAddSuppression, CancellationToken cancellationToken)
TableDataSource\Suppression\VisualStudioSuppressionFixService.cs (18)
233? ImmutableDictionary<Project, ImmutableArray<Diagnostic>>.Empty 341var operations = ImmutableArray.Create<CodeActionOperation>(new ApplyChangesOperation(newSolution)); 408private static ImmutableDictionary<Document, ImmutableArray<Diagnostic>> GetDocumentDiagnosticsMappedToNewSolution(ImmutableDictionary<Document, ImmutableArray<Diagnostic>> documentDiagnosticsToFixMap, Solution newSolution, string language) 410ImmutableDictionary<Document, ImmutableArray<Diagnostic>>.Builder? builder = null; 419builder ??= ImmutableDictionary.CreateBuilder<Document, ImmutableArray<Diagnostic>>(); 424return builder != null ? builder.ToImmutable() : ImmutableDictionary<Document, ImmutableArray<Diagnostic>>.Empty; 427private static ImmutableDictionary<Project, ImmutableArray<Diagnostic>> GetProjectDiagnosticsMappedToNewSolution(ImmutableDictionary<Project, ImmutableArray<Diagnostic>> projectDiagnosticsToFixMap, Solution newSolution, string language) 429ImmutableDictionary<Project, ImmutableArray<Diagnostic>>.Builder? projectDiagsBuilder = null; 438projectDiagsBuilder ??= ImmutableDictionary.CreateBuilder<Project, ImmutableArray<Diagnostic>>(); 443return projectDiagsBuilder != null ? projectDiagsBuilder.ToImmutable() : ImmutableDictionary<Project, ImmutableArray<Diagnostic>>.Empty; 452private async Task<ImmutableDictionary<Document, ImmutableArray<Diagnostic>>> GetDocumentDiagnosticsToFixAsync(IEnumerable<DiagnosticData> diagnosticsToFix, Func<Project, bool> shouldFixInProject, bool filterStaleDiagnostics, CancellationToken cancellationToken) 470return ImmutableDictionary<Document, ImmutableArray<Diagnostic>>.Empty; 473var finalBuilder = ImmutableDictionary.CreateBuilder<Document, ImmutableArray<Diagnostic>>(); 544private async Task<ImmutableDictionary<Project, ImmutableArray<Diagnostic>>> GetProjectDiagnosticsToFixAsync(IEnumerable<DiagnosticData> diagnosticsToFix, Func<Project, bool> shouldFixInProject, bool filterStaleDiagnostics, CancellationToken cancellationToken) 562return ImmutableDictionary<Project, ImmutableArray<Diagnostic>>.Empty; 565var finalBuilder = ImmutableDictionary.CreateBuilder<Project, ImmutableArray<Diagnostic>>();
TaskList\ExternalErrorDiagnosticUpdateSource.cs (3)
142public void AddNewErrors(ProjectId projectId, Guid projectHierarchyGuid, ImmutableArray<DiagnosticData> diagnostics) 169private async ValueTask ProcessDiagnosticsReportAsync(ProjectId projectId, Guid projectHierarchyGuid, ImmutableArray<DiagnosticData> diagnostics, InProgressState state, CancellationToken cancellationToken) 201ImmutableArray<ProjectIdentifier> projects = project is not null ? [project.Value] : [];
TaskList\ProjectExternalErrorReporter.cs (3)
32internal static readonly ImmutableArray<string> CustomTags = [WellKnownDiagnosticTags.Telemetry]; 33internal static readonly ImmutableArray<string> CompilerDiagnosticCustomTags = [WellKnownDiagnosticTags.Compiler, WellKnownDiagnosticTags.Telemetry]; 276ImmutableArray<string> customTags;
UnusedReferences\Dialog\RemoveUnusedReferencesDialog.xaml.cs (1)
34public bool? ShowModal(JoinableTaskFactory joinableTaskFactory, Solution solution, string projectFilePath, ImmutableArray<ReferenceUpdate> referenceUpdates)
UnusedReferences\Dialog\UnusedReferencesTableProvider.ColumnDefinitions.cs (1)
54public static readonly ImmutableArray<string> ColumnNames = [SolutionName, ProjectName, ReferenceType, ReferenceName, UpdateAction];
UnusedReferences\Dialog\UnusedReferencesTableProvider.cs (2)
50static ImmutableArray<ColumnState> BuildColumnStates() 63public void AddTableData(Solution solution, string projectFilePath, ImmutableArray<ReferenceUpdate> referenceUpdates)
UnusedReferences\Dialog\UnusedReferencesTableProvider.DataSource.cs (5)
26private ImmutableArray<UnusedReferencesEntry> _currentEntries = ImmutableArray<UnusedReferencesEntry>.Empty; 33public void AddTableData(Solution solution, string projectFilePath, ImmutableArray<ReferenceUpdate> referenceUpdates) 37var entries = referenceUpdates 56_currentEntries = ImmutableArray<UnusedReferencesEntry>.Empty;
UnusedReferences\ProjectAssets\ProjectAssetsFileReader.cs (2)
18public static async Task<ImmutableArray<ReferenceInfo>> ReadReferencesAsync( 19ImmutableArray<ReferenceInfo> projectReferences,
UnusedReferences\RemoveUnusedReferencesCommandHandler.cs (7)
114ImmutableArray<ReferenceUpdate> referenceUpdates = default; 167private (Solution?, string?, ImmutableArray<ReferenceUpdate>) GetUnusedReferencesForProjectHierarchy( 173return (null, null, ImmutableArray<ReferenceUpdate>.Empty); 179return (null, null, ImmutableArray<ReferenceUpdate>.Empty); 184var unusedReferences = GetUnusedReferencesForProject(solution, projectFilePath!, projectAssetsFile, cancellationToken); 189private ImmutableArray<ReferenceUpdate> GetUnusedReferencesForProject(Solution solution, string projectFilePath, string projectAssetsFile, CancellationToken cancellationToken) 205private static void ApplyUnusedReferenceUpdates(JoinableTaskFactory joinableTaskFactory, Solution solution, string projectFilePath, ImmutableArray<ReferenceUpdate> referenceUpdates, CancellationToken cancellationToken)
UnusedReferences\UnusedReferenceAnalysisService.cs (5)
26public async Task<ImmutableArray<ReferenceInfo>> GetUnusedReferencesAsync(Solution solution, string projectFilePath, string projectAssetsFilePath, ImmutableArray<ReferenceInfo> projectReferences, CancellationToken cancellationToken) 32var result = await client.TryInvokeAsync<IRemoteUnusedReferenceAnalysisService, ImmutableArray<ReferenceInfo>>( 39return ImmutableArray<ReferenceInfo>.Empty; 46var references = await ProjectAssetsFileReader.ReadReferencesAsync(projectReferences, projectAssetsFilePath).ConfigureAwait(false);
UnusedReferences\UnusedReferenceExtensions.cs (2)
20ImmutableArray<string>.Empty, 21ImmutableArray<ReferenceInfo>.Empty);
UnusedReferences\VisualStudioReferenceCleanupService.cs (2)
32public async Task<ImmutableArray<ReferenceInfo>> GetProjectReferencesAsync(string projectPath, CancellationToken cancellationToken) 34var projectSystemReferences = await _projectSystemReferenceUpdateService.GetProjectReferencesAsync(projectPath, cancellationToken).ConfigureAwait(false);
ValueTracking\TreeItemViewModel.cs (6)
39public ImmutableArray<ClassifiedSpan> ClassifiedSpans { get; } 41public ImmutableArray<Inline> Inlines => CalculateInlines(); 50ImmutableArray<ClassifiedSpan> classifiedSpans, 55ImmutableArray<TreeItemViewModel> children) 102private ImmutableArray<Inline> CalculateInlines() 106return ImmutableArray<Inline>.Empty;
ValueTracking\ValueTrackedTreeItemViewModel.cs (5)
46ImmutableArray<ClassifiedSpan> classifiedSpans, 54ImmutableArray<TreeItemViewModel> children, 94ImmutableArray<TreeItemViewModel> children, 190private async Task<ImmutableArray<TreeItemViewModel>> CalculateChildrenAsync(CancellationToken cancellationToken) 197self._solution, item, children: ImmutableArray<TreeItemViewModel>.Empty,
ValueTracking\ValueTrackingCommandHandler.cs (3)
115private async Task ShowToolWindowAsync(ITextView textView, Document document, ImmutableArray<ValueTrackedItem> items, CancellationToken cancellationToken) 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);
Venus\ContainedDocument.DocumentServiceProvider.cs (6)
72public override async Task<ImmutableArray<(string mappedFilePath, TextChange mappedTextChange)>> GetMappedTextChangesAsync( 77var textChanges = (await newDocument.GetTextChangesAsync(oldDocument, cancellationToken).ConfigureAwait(false)).ToImmutableArray(); 78var mappedSpanResults = await MapSpansAsync(oldDocument, textChanges.Select(tc => tc.Span), CancellationToken.None).ConfigureAwait(false); 83public override async Task<ImmutableArray<MappedSpanResult>> MapSpansAsync( 167var classifiedSpansOnContent = await GetClassifiedSpansOnContentAsync(document, roslynSnapshot, contentSpanOnPrimarySnapshot.Value, classificationOptions, cancellationToken).ConfigureAwait(false); 173private static async Task<ImmutableArray<ClassifiedSpan>> GetClassifiedSpansOnContentAsync(
Venus\ContainedLanguageCodeSupport.cs (2)
299var allMembers = codeMemberType == CODEMEMBERTYPE.CODEMEMBERTYPE_EVENTS 425var membersOfName = type.GetMembers(memberName);
Watson\FaultReporter.cs (3)
29private static ImmutableArray<TelemetrySession> s_telemetrySessions = []; 30private static ImmutableArray<TraceSource> s_loggers = []; 95private static readonly ImmutableArray<string> UnblameableMethodPrefixes =
Workspace\VisualStudioActiveDocumentTracker.cs (1)
117public ImmutableArray<DocumentId> GetVisibleDocuments(Workspace workspace)
Workspace\VisualStudioDocumentNavigationService.cs (1)
225var documentIdsForFilePath = solution.GetDocumentIdsWithFilePath(mappedSpan.FilePath);
Workspace\VisualStudioDocumentTrackingServiceFactory.cs (1)
69public ImmutableArray<DocumentId> GetVisibleDocuments()
Workspace\VisualStudioSymbolNavigationService.cs (1)
250var sourceLocations = definitionItem.SourceSpans;
Microsoft.VisualStudio.LanguageServices.CodeLens (2)
ReferenceCodeLensProvider.cs (2)
99ImmutableArray<Guid> keys; 244var referenceLocationDescriptors = await _callbackService.InvokeAsync<(string projectVersion, ImmutableArray<ReferenceLocationDescriptor> references)?>(
Microsoft.VisualStudio.LanguageServices.CSharp (11)
CodeModel\CSharpCodeModelService.cs (1)
982var symbols = semanticModel.LookupNamespacesAndTypes(position, name: name);
CodeModel\CSharpCodeModelService_Prototype.cs (1)
507private void AppendParametersPrototype(StringBuilder builder, ImmutableArray<IParameterSymbol> parameters, PrototypeFlags flags)
EditorConfigSettings\DataProvider\CodeStyle\CSharpCodeStyleSettingsProvider.cs (1)
28protected override void UpdateOptions(TieredAnalyzerConfigOptions options, ImmutableArray<Project> projectsInScope)
EditorConfigSettings\DataProvider\Whitespace\CSharpWhitespaceSettingsProvider.cs (1)
28protected override void UpdateOptions(TieredAnalyzerConfigOptions options, ImmutableArray<Project> projectsInScope)
LanguageService\CSharpHelpContextService.cs (1)
176var overloads = bindableParent != null ? semanticModel.GetMemberGroup(bindableParent) : ImmutableArray<ISymbol>.Empty;
ObjectBrowser\DescriptionBuilder.cs (1)
405ImmutableArray<IParameterSymbol> parameters, CancellationToken cancellationToken)
Options\CSharpVisualStudioOptionStorageReadFallbacks.cs (3)
20private static readonly ImmutableArray<(string key, int flag)> s_storages = ImmutableArray.Create( 38private static readonly ImmutableArray<(string key, int flag)> s_storages = ImmutableArray.Create( 64private static bool TryReadFlags(ImmutableArray<(string key, int flag)> storages, int defaultValue, TryReadValueDelegate read, out int result)
ProjectSystemShim\TempPECompilerService.cs (1)
54new RelativePathResolver(ImmutableArray<string>.Empty, baseDirectory: null));
SemanticSearch\SemanticSearchToolWindowImpl.cs (1)
503public async ValueTask OnCompilationFailureAsync(ImmutableArray<QueryCompilationError> errors, CancellationToken cancellationToken)
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (57)
DocumentOutline\DocumentOutlineTests.cs (17)
57private async Task<(DocumentOutlineTestMocks mocks, (ImmutableArray<DocumentSymbolData> DocumentSymbolData, ITextSnapshot OriginalSnapshot), ImmutableArray<DocumentSymbolDataViewModel> uiItems)> 65var model = DocumentOutlineViewModel.CreateDocumentSymbolData(response.Value.response, response.Value.snapshot); 66var uiItems = DocumentOutlineViewModel.GetDocumentSymbolItemViewModels(SortOption.Location, model); 75var sortedSymbols = SortDocumentSymbols(items, sortOption); 78static ImmutableArray<DocumentSymbolDataViewModel> SortDocumentSymbols( 79ImmutableArray<DocumentSymbolDataViewModel> documentSymbolData, 86var sortedChildren = SortDocumentSymbols(documentSymbol.Children, sortOption); 93static ImmutableArray<DocumentSymbolDataViewModel> Sort(ImmutableArray<DocumentSymbolDataViewModel> items, SortOption sortOption) 94=> (ImmutableArray<DocumentSymbolDataViewModel>)DocumentSymbolDataViewModelSorter.Instance.Convert([items, sortOption], typeof(ImmutableArray<DocumentSymbolDataViewModel>), parameter: null, CultureInfo.CurrentCulture); 96static DocumentSymbolDataViewModel ReplaceChildren(DocumentSymbolDataViewModel symbolToUpdate, ImmutableArray<DocumentSymbolDataViewModel> newChildren) 99var symbolData = data with { Children = ImmutableArray<DocumentSymbolData>.Empty }; 103static void CheckSortedSymbols(ImmutableArray<DocumentSymbolDataViewModel> sortedSymbols, SortOption sortOption) 105var actual = sortedSymbols; 127var searchedSymbols = DocumentOutlineViewModel.SearchDocumentSymbolData(model.DocumentSymbolData, string.Empty, CancellationToken.None);
EditorConfigSettings\DataProvider\DataProviderTests.cs (14)
99var dataSnapShot = settingsProvider.GetCurrentDataSnapshot(); 116var dataSnapShot = settingsProvider.GetCurrentDataSnapshot(); 120var optionsWithUI = CodeStyleOptions2.EditorConfigOptions 139var dataSnapShot = settingsProvider.GetCurrentDataSnapshot(); 168var dataSnapShot = settingsProvider.GetCurrentDataSnapshot(); 171var optionsWithUI = CSharpCodeStyleOptions.EditorConfigOptions 184var dataSnapShot = settingsProvider.GetCurrentDataSnapshot(); 208var dataSnapshot = settingsProvider.GetCurrentDataSnapshot(); 222var dataSnapShot = settingsProvider.GetCurrentDataSnapshot(); 233var dataSnapShot = settingsProvider.GetCurrentDataSnapshot(); 244var dataSnapShot = settingsProvider.GetCurrentDataSnapshot(); 255var dataSnapShot = settingsProvider.GetCurrentDataSnapshot(); 266var dataSnapShot = settingsProvider.GetCurrentDataSnapshot(); 277var dataSnapShot = settingsProvider.GetCurrentDataSnapshot();
EditorConfigSettings\DataProvider\DataProviderTests.MockAnalyzerReference.cs (13)
19public readonly ImmutableArray<DiagnosticAnalyzer> Analyzers; 22private static readonly ImmutableArray<DiagnosticAnalyzer> s_defaultAnalyzers = ImmutableArray.Create<DiagnosticAnalyzer>(new MockDiagnosticAnalyzer()); 24public MockAnalyzerReference(CodeFixProvider? fixer, ImmutableArray<DiagnosticAnalyzer> analyzers) 46public override ImmutableArray<DiagnosticAnalyzer> GetAnalyzers(string language) 49public override ImmutableArray<DiagnosticAnalyzer> GetAnalyzersForAllLanguages() 52public ImmutableArray<CodeFixProvider> GetFixers() 53=> Fixer != null ? ImmutableArray.Create(Fixer) : ImmutableArray<CodeFixProvider>.Empty; 61public sealed override ImmutableArray<string> FixableDiagnosticIds => ImmutableArray.Create(Id); 73public MockDiagnosticAnalyzer(ImmutableArray<(string id, string category)> reportedDiagnosticIdsWithCategories) 81public MockDiagnosticAnalyzer(ImmutableArray<string> reportedDiagnosticIds) 91private static ImmutableArray<DiagnosticDescriptor> CreateSupportedDiagnostics(ImmutableArray<(string id, string category)> reportedDiagnosticIdsWithCategories) 103public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; }
Interactive\Commands\TestResetInteractive.cs (9)
30internal ImmutableArray<string> References { get; set; } 32internal ImmutableArray<string> ReferenceSearchPaths { get; set; } 34internal ImmutableArray<string> SourceSearchPaths { get; set; } 36internal ImmutableArray<string> ProjectNamespaces { get; set; } 38internal ImmutableArray<string> NamespacesToImport { get; set; } 68out ImmutableArray<string> references, 69out ImmutableArray<string> referenceSearchPaths, 70out ImmutableArray<string> sourceSearchPaths, 71out ImmutableArray<string> projectNamespaces,
Interactive\TestInteractiveEvaluator.cs (2)
54public Task SetPathsAsync(ImmutableArray<string> referenceSearchPaths, ImmutableArray<string> sourceSearchPaths, string workingDirectory)
ProjectSystemShim\TestEvaluationData.cs (1)
38public override ImmutableArray<string> GetItemValues(string name)
UnifiedSettings\CSharpUnifiedSettingsTests.cs (1)
24internal override ImmutableArray<IOption2> OnboardedOptions => ImmutableArray.Create<IOption2>(
Microsoft.VisualStudio.LanguageServices.DevKit (8)
EditAndContinue\ManagedHotReloadLanguageServiceBridge.cs (2)
47public async ValueTask<ManagedHotReloadUpdates> GetUpdatesAsync(ImmutableArray<string> runningProjects, CancellationToken cancellationToken) 53public ValueTask UpdateBaselinesAsync(ImmutableArray<string> projectPaths, CancellationToken cancellationToken)
src\EditorFeatures\Core\EditAndContinue\Contracts\ContractWrappers.cs (4)
46public static ImmutableArray<ManagedHotReloadUpdate> FromContract(this ImmutableArray<InternalContracts.ManagedHotReloadUpdate> diagnostics) 67public static ImmutableArray<ManagedHotReloadDiagnostic> FromContract(this ImmutableArray<InternalContracts.ManagedHotReloadDiagnostic> diagnostics)
src\EditorFeatures\Core\EditAndContinue\Contracts\ManagedHotReloadServiceBridge.cs (2)
16public async ValueTask<ImmutableArray<InternalContracts.ManagedActiveStatementDebugInfo>> GetActiveStatementsAsync(CancellationToken cancellation) 22public ValueTask<ImmutableArray<string>> GetCapabilitiesAsync(CancellationToken cancellation)
Microsoft.VisualStudio.LanguageServices.LiveShare (7)
Client\Projects\IRemoteProjectInfoProvider.cs (1)
16Task<ImmutableArray<ProjectInfo>> GetRemoteProjectInfosAsync(CancellationToken cancellationToken);
Client\Projects\RoslynRemoteProjectInfoProvider.cs (5)
39public async Task<ImmutableArray<ProjectInfo>> GetRemoteProjectInfosAsync(CancellationToken cancellationToken) 43return ImmutableArray<ProjectInfo>.Empty; 49return ImmutableArray<ProjectInfo>.Empty; 65return ImmutableArray<ProjectInfo>.Empty; 87private static ProjectInfo CreateProjectInfo(string projectName, string language, ImmutableArray<string> files, SolutionServices services)
Client\RemoteLanguageServiceWorkspace.cs (1)
169var localPathsOfRemoteRoots = roots.Select(root => session.ConvertSharedUriToLocalPath(root)).ToImmutableArray();
Microsoft.VisualStudio.LanguageServices.Test.Utilities2 (1)
UnifiedSettings\UnifiedSettingsTests.vb (1)
20Friend MustOverride ReadOnly Property OnboardedOptions As ImmutableArray(Of IOption2)
Microsoft.VisualStudio.LanguageServices.UnitTests (34)
ChangeSignature\ChangeSignatureViewModelTests.vb (1)
395Private Shared Sub AssertPermuted(permutation As Integer(), actualParameterList As List(Of ChangeSignatureDialogViewModel.ParameterViewModel), originalParameterList As ImmutableArray(Of IParameterSymbol))
ChangeSignature\ChangeSignatureViewModelTestState.vb (2)
11Public ReadOnly OriginalParameterList As ImmutableArray(Of IParameterSymbol) 14Public Sub New(viewModel As ChangeSignatureDialogViewModel, originalParameterList As ImmutableArray(Of IParameterSymbol))
CommonControls\MemberSelectionViewModelTests.vb (1)
158Private Shared Function FindMemberByName(name As String, memberArray As ImmutableArray(Of MemberSymbolViewModel)) As MemberSymbolViewModel
DebuggerIntelliSense\TestState.vb (1)
26Private Shared ReadOnly s_roles As ImmutableArray(Of String) = ImmutableArray.Create(PredefinedTextViewRoles.Editable, "DEBUGVIEW", PredefinedTextViewRoles.Interactive)
Diagnostics\ExternalDiagnosticUpdateSourceTests.vb (11)
49ImmutableDictionary(Of String, ImmutableArray(Of DiagnosticAnalyzer)).Empty.Add(LanguageNames.CSharp, ImmutableArray.Create(Of DiagnosticAnalyzer)(analyzer))) 95ImmutableDictionary(Of String, ImmutableArray(Of DiagnosticAnalyzer)).Empty.Add(LanguageNames.CSharp, ImmutableArray.Create(Of DiagnosticAnalyzer)(analyzer))) 178customTags:=ImmutableArray(Of String).Empty, 252customTags:=ImmutableArray(Of String).Empty, 268Public Overrides ReadOnly Property SupportedDiagnostics As ImmutableArray(Of DiagnosticDescriptor) 293customTags:=ImmutableArray(Of String).Empty, 305Public Sub New(globalOptions As IGlobalOptionService, Optional data As ImmutableArray(Of DiagnosticData) = Nothing) 319Public Function GetDiagnosticsForSpanAsync(document As TextDocument, range As TextSpan?, shouldIncludeDiagnostic As Func(Of String, Boolean), includeCompilerDiagnostics As Boolean, includeSuppressedDiagnostics As Boolean, priority As ICodeActionRequestPriorityProvider, diagnosticKinds As DiagnosticKind, isExplicit As Boolean, cancellationToken As CancellationToken) As Task(Of ImmutableArray(Of DiagnosticData)) Implements IDiagnosticAnalyzerService.GetDiagnosticsForSpanAsync 323Public Function GetCachedDiagnosticsAsync(workspace As Workspace, projectId As ProjectId, documentId As DocumentId, includeSuppressedDiagnostics As Boolean, includeLocalDocumentDiagnostics As Boolean, includeNonLocalDocumentDiagnostics As Boolean, cancellationToken As CancellationToken) As Task(Of ImmutableArray(Of DiagnosticData)) Implements IDiagnosticAnalyzerService.GetCachedDiagnosticsAsync 327Public Function GetDiagnosticsForIdsAsync(solution As Solution, projectId As ProjectId, documentId As DocumentId, diagnosticIds As ImmutableHashSet(Of String), shouldIncludeAnalyzer As Func(Of DiagnosticAnalyzer, Boolean), getDocuments As Func(Of Project, DocumentId, IReadOnlyList(Of DocumentId)), includeSuppressedDiagnostics As Boolean, includeLocalDocumentDiagnostics As Boolean, includeNonLocalDocumentDiagnostics As Boolean, cancellationToken As CancellationToken) As Task(Of ImmutableArray(Of DiagnosticData)) Implements IDiagnosticAnalyzerService.GetDiagnosticsForIdsAsync 331Public Function GetProjectDiagnosticsForIdsAsync(solution As Solution, projectId As ProjectId, diagnosticIds As ImmutableHashSet(Of String), shouldIncludeAnalyzer As Func(Of DiagnosticAnalyzer, Boolean), includeSuppressedDiagnostics As Boolean, includeNonLocalDocumentDiagnostics As Boolean, cancellationToken As CancellationToken) As Task(Of ImmutableArray(Of DiagnosticData)) Implements IDiagnosticAnalyzerService.GetProjectDiagnosticsForIdsAsync
MoveStaticMembers\MoveStaticMembersViewModelTest.vb (1)
54Private Shared Function FindMemberByName(name As String, memberArray As ImmutableArray(Of SymbolViewModel(Of ISymbol))) As SymbolViewModel(Of ISymbol)
MoveToNamespace\MoveToNamespaceDialogViewModelTests.vb (2)
74Private Shared Function CreateViewModel(Optional defaultNamespace As String = Nothing, Optional availableNamespaces As ImmutableArray(Of String) = Nothing) As MoveToNamespaceDialogViewModel 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)
PullMemberUp\PullMemberUpViewModelTest.vb (1)
230Private Shared Function FindMemberByName(name As String, memberArray As ImmutableArray(Of MemberSymbolViewModel)) As MemberSymbolViewModel
Snippets\SnippetTestState.vb (2)
171Private ReadOnly _argumentProviders As ImmutableArray(Of Lazy(Of ArgumentProvider, OrderableLanguageMetadata)) 272argumentProviders As ImmutableArray(Of Lazy(Of ArgumentProvider, OrderableLanguageMetadata)),
SolutionExplorer\CpsDiagnosticItemSourceTests.vb (1)
32Dim analyzers = New Dictionary(Of String, ImmutableArray(Of DiagnosticAnalyzer))
UnifiedSettings\VisualBasicUnifiedSettingsTests.vb (1)
19Friend Overrides ReadOnly Property OnboardedOptions As ImmutableArray(Of IOption2)
Venus\DocumentService_IntegrationTests.vb (2)
272Public Async Function MapSpansAsync(document As Document, spans As IEnumerable(Of TextSpan), cancellationToken As CancellationToken) As Task(Of ImmutableArray(Of MappedSpanResult)) Implements ISpanMappingService.MapSpansAsync 299As Task(Of ImmutableArray(Of (mappedFilePath As String, mappedTextChange As Microsoft.CodeAnalysis.Text.TextChange))) _
Microsoft.VisualStudio.LanguageServices.VisualBasic (14)
CodeModel\VisualBasicCodeModelService_Prototype.vb (3)
62Private Shared Function GetEventPrototype(symbol As IEventSymbol, parameters As ImmutableArray(Of IParameterSymbol), flags As PrototypeFlags) As String 80Private Shared Function GetFunctionPrototype(symbol As ISymbol, parameters As ImmutableArray(Of IParameterSymbol), flags As PrototypeFlags) As String 170Private Shared Sub AppendParameters(builder As StringBuilder, parameters As ImmutableArray(Of IParameterSymbol), flags As PrototypeFlags)
ObjectBrowser\DescriptionBuilder.vb (2)
397parameters As ImmutableArray(Of IParameterSymbol), 442typeParameters As ImmutableArray(Of ITypeParameterSymbol),
ProjectSystemShim\TempPECompiler.TempPEProject.vb (1)
27Private _runtimeLibraries As ImmutableArray(Of String)
ProjectSystemShim\VisualBasicProject.OptionsProcessor.vb (6)
33Private Shared ReadOnly s_conditionalCompilationSymbolsCache As Dictionary(Of KeyValuePair(Of String, OutputKind), ImmutableArray(Of KeyValuePair(Of String, Object))) = 34New Dictionary(Of KeyValuePair(Of String, OutputKind), ImmutableArray(Of KeyValuePair(Of String, Object))) 139Public Function GetRuntimeLibraries(compilerHost As IVbCompilerHost) As ImmutableArray(Of String) 143Public Shared Function GetRuntimeLibraries(compilerHost As IVbCompilerHost, ByRef compilerOptions As VBCompilerOptions) As ImmutableArray(Of String) 222Private Shared Function GetConditionalCompilationSymbols(kind As OutputKind, str As String) As ImmutableArray(Of KeyValuePair(Of String, Object)) 226Dim result As ImmutableArray(Of KeyValuePair(Of String, Object)) = Nothing
ProjectSystemShim\VisualBasicProject.vb (2)
30Private _runtimeLibraries As ImmutableArray(Of String) = ImmutableArray(Of String).Empty
Microsoft.VisualStudio.LanguageServices.Xaml (42)
CodeFixes\RemoveUnnecessaryUsings\XamlRemoveUnnecessaryUsingsCodeFixProvider.cs (1)
32public sealed override ImmutableArray<string> FixableDiagnosticIds
Diagnostics\Analyzers\IXamlDocumentAnalyzerService.cs (3)
15ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } 17Task<ImmutableArray<Diagnostic>> AnalyzeSyntaxAsync(Document document, CancellationToken cancellationToken); 19Task<ImmutableArray<Diagnostic>> AnalyzeSemanticsAsync(Document document, CancellationToken cancellationToken);
Diagnostics\Analyzers\XamlDocumentDiagnosticAnalyzer.cs (6)
19public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 23return XamlProjectService.AnalyzerService?.SupportedDiagnostics ?? ImmutableArray<DiagnosticDescriptor>.Empty; 27public override async Task<ImmutableArray<Diagnostic>> AnalyzeSyntaxAsync(Document document, CancellationToken cancellationToken) 31return ImmutableArray<Diagnostic>.Empty; 37public override async Task<ImmutableArray<Diagnostic>> AnalyzeSemanticsAsync(Document document, CancellationToken cancellationToken) 41return ImmutableArray<Diagnostic>.Empty;
Features\Completion\XamlCommitCharacters.cs (8)
14public ImmutableArray<char> Characters { get; } 19public ImmutableArray<char> NonInsertCharacters { get; } 21private XamlCommitCharacters(ImmutableArray<char> characters, ImmutableArray<char> nonInsertCharacters) 27public static XamlCommitCharacters Create(ImmutableArray<char> characters, ImmutableArray<char> nonInsertCharacters) 30public static XamlCommitCharacters Create(ImmutableArray<char> characters, params char[] nonInsertCharacters) 31=> new(characters, nonInsertCharacters?.ToImmutableArray() ?? ImmutableArray<char>.Empty);
Features\Completion\XamlCompletionResult.cs (1)
14public ImmutableArray<XamlCompletionItem> Completions { get; set; }
Features\Completion\XamlEventDescription.cs (1)
14public ImmutableArray<(string Name, string ParameterType, string Modifier)> Parameters { get; set; }
Features\Definitions\IXamlGoToDefinitionService.cs (1)
15Task<ImmutableArray<XamlDefinition>> GetDefinitionsAsync(TextDocument document, int position, CancellationToken cancellationToken);
Features\Diagnostics\XamlDiagnosticReport.cs (2)
12public ImmutableArray<XamlDiagnostic>? Diagnostics { get; set; } 14public XamlDiagnosticReport(string? resultId = null, ImmutableArray<XamlDiagnostic>? diagnostics = null)
Features\InlineRename\XamlEditorInlineRenameService.cs (4)
35public Task<ImmutableDictionary<string, ImmutableArray<(string filePath, string content)>>> GetRenameContextAsync(IInlineRenameInfo inlineRenameInfo, IInlineRenameLocationSet inlineRenameLocationSet, CancellationToken cancellationToken) 37return Task.FromResult(ImmutableDictionary<string, ImmutableArray<(string filePath, string content)>>.Empty); 75public ImmutableArray<CodeAnalysis.DocumentSpan> DefinitionLocations => default; 150public InlineRenameLocationSet(IXamlRenameInfo renameInfo, Solution solution, ImmutableArray<InlineRenameLocation> locations)
Features\Structure\IXamlStructureService.cs (1)
17Task<ImmutableArray<XamlStructureTag>> GetStructureTagsAsync(TextDocument document, CancellationToken cancellationToken);
Features\TypeRename\XamlTypeRenameResult.cs (1)
12public ImmutableArray<TextSpan> Ranges { get; set; }
Implementation\LanguageClient\XamlInProcLanguageClient.cs (1)
43protected override ImmutableArray<string> SupportedLanguages => ImmutableArray.Create(StringConstants.XamlLanguageName);
Implementation\LanguageClient\XamlInProcLanguageClientDisableUX.cs (1)
45protected override ImmutableArray<string> SupportedLanguages => ImmutableArray.Create(StringConstants.XamlLanguageName);
Implementation\LanguageServer\Handler\Completion\CompletionHandler.cs (4)
74var commitCharactersCache = new Dictionary<XamlCompletionKind, ImmutableArray<VSInternalCommitCharacter>>(); 82private static CompletionItem CreateCompletionItem(XamlCompletionItem xamlCompletion, DocumentId documentId, SourceText text, Position position, TextDocumentIdentifier textDocument, Dictionary<XamlCompletionKind, ImmutableArray<VSInternalCommitCharacter>> commitCharactersCach) 127private static SumType<string[], VSInternalCommitCharacter[]> GetCommitCharacters(XamlCompletionItem completionItem, Dictionary<XamlCompletionKind, ImmutableArray<VSInternalCommitCharacter>> commitCharactersCache) 134if (commitCharactersCache.TryGetValue(completionItem.Kind, out var cachedCharacters))
Implementation\LanguageServer\Handler\Definitions\GoToDefinitionHandler.cs (1)
161var items = NavigableItemFactory.GetItemsFromPreferredSourceLocations(solution, symbol, displayTaggedParts: null, cancellationToken);
Implementation\LanguageServer\Handler\Diagnostics\AbstractPullDiagnosticHandler.cs (2)
49protected abstract ImmutableArray<Document> GetDocuments(RequestContext context); 120private static VSDiagnostic[]? ConvertToVSDiagnostics(ImmutableArray<XamlDiagnostic>? xamlDiagnostics, Document document, SourceText text)
Implementation\LanguageServer\Handler\Diagnostics\DocumentPullDiagnosticHandler.cs (2)
35protected override ImmutableArray<Document> GetDocuments(RequestContext context) 42return context.Document == null ? ImmutableArray<Document>.Empty : [context.Document];
Implementation\LanguageServer\Handler\Diagnostics\WorkspacePullDiagnosticHandler.cs (1)
40protected override ImmutableArray<Document> GetDocuments(RequestContext context)
Implementation\LanguageServer\Handler\FoldingRanges\FoldingRangesHandler.cs (1)
48var structureTags = await xamlStructureService.GetStructureTagsAsync(document, cancellationToken).ConfigureAwait(false);
Mvc.Analyzers.Test (6)
AttributesShouldNotBeAppliedToPageModelAnalyzerTest.cs (1)
387public AttributesShouldNotBeAppliedToPageModelCSharpAnalyzerTest(ImmutableArray<MetadataReference> metadataReferences)
AvoidHtmlPartialAnalyzerTest.cs (1)
426public AvoidHtmlPartialCSharpAnalyzerTest(ImmutableArray<MetadataReference> metadataReferences)
src\Shared\AnalyzerTesting\TestReferences.cs (2)
16public static ImmutableArray<MetadataReference> MetadataReferences { get; } = GetMetadataReferences(); 18private static ImmutableArray<MetadataReference> GetMetadataReferences()
TagHelpersInCodeBlocksAnalyzerTest.cs (1)
912public TagHelpersInCodeBlocksCSharpAnalyzerTest(ImmutableArray<MetadataReference> metadataReferences)
TopLevelParameterNameAnalyzerTest.cs (1)
600public TopLevelParameterNameCSharpAnalyzerTest(ImmutableArray<MetadataReference> metadataReferences)
Mvc.Api.Analyzers.Test (2)
DeclaredApiResponseMetadataTest.cs (2)
161protected override ImmutableArray<TypedConstant> CommonConstructorArguments => throw new System.NotImplementedException(); 163protected override ImmutableArray<KeyValuePair<string, TypedConstant>> CommonNamedArguments => throw new System.NotImplementedException();
Roslyn.Test.PdbUtilities (29)
EditAndContinue\EditAndContinueTest.cs (3)
125var exceptions = new List<ImmutableArray<Exception>>(); 149private static string GetAggregateMessage(IReadOnlyList<ImmutableArray<Exception>> exceptions) 172private ImmutableArray<SemanticEdit> GetSemanticEdits(
EditAndContinue\EditAndContinueTest.GenerationVerifier.cs (2)
23internal sealed class GenerationVerifier(int ordinal, GenerationInfo generationInfo, ImmutableArray<MetadataReader> readers) 122private IReadOnlyDictionary<ISymbolInternal, ImmutableArray<ISymbolInternal>> GetSynthesizedMembers()
EditAndContinue\EditAndContinueTestUtilities.cs (3)
95public static void CheckNames(IReadOnlyList<MetadataReader> readers, ImmutableArray<TypeDefinitionHandle> typeHandles, params string[] expectedNames) 98public static void CheckNames(IReadOnlyList<MetadataReader> readers, ImmutableArray<MethodDefinitionHandle> methodHandles, params string[] expectedNames) 103ImmutableArray<THandle> entityHandles,
Reader\CustomDebugInfoUtilities.cs (2)
24public static ImmutableArray<byte> GetEditAndContinueLocalSlotMapRecord(byte[] customDebugInfoBlob) 29public static ImmutableArray<byte> GetEditAndContinueLambdaMapRecord(byte[] customDebugInfoBlob)
Reader\MethodDebugInfoBytes.cs (5)
20public readonly ImmutableArray<byte> Bytes; 23public MethodDebugInfoBytes(ImmutableArray<byte> bytes, ISymUnmanagedMethod method) 53? default(ImmutableArray<ISymUnmanagedNamespace>) 55var childScope = new MockSymUnmanagedScope(default(ImmutableArray<ISymUnmanagedScope>), namespaces, constants); 56var rootScope = new MockSymUnmanagedScope(ImmutableArray.Create<ISymUnmanagedScope>(childScope), default(ImmutableArray<ISymUnmanagedNamespace>));
Reader\MockSymUnmanagedReader.cs (6)
237private readonly ImmutableArray<ISymUnmanagedScope> _children; 238private readonly ImmutableArray<ISymUnmanagedNamespace> _namespaces; 243public MockSymUnmanagedScope(ImmutableArray<ISymUnmanagedScope> children, ImmutableArray<ISymUnmanagedNamespace> namespaces, ISymUnmanagedConstant[] constants = null, int startOffset = 0, int endOffset = 1) 317private readonly ImmutableArray<char> _nameChars; 387public static void TwoPhaseCopy<T>(this ImmutableArray<T> source, int numDesired, out int numRead, T[] destination)
Reader\PdbTestUtilities.cs (4)
45ImmutableArray<byte> GetCdiBytes(Guid kind) 46=> TryGetCustomDebugInformation(pdbReader, handle, kind, out var info) ? pdbReader.GetBlobContent(info.Value) : default(ImmutableArray<byte>); 58return EditAndContinueMethodDebugInformation.Create(default(ImmutableArray<byte>), default(ImmutableArray<byte>));
Reader\PdbValidation.cs (1)
568var entries = peReader.ReadDebugDirectory();
Reader\SymReaderFactory.cs (3)
73public static ISymUnmanagedReader5 CreateReader(ImmutableArray<byte> pdbImage, ImmutableArray<byte> peImageOpt = default(ImmutableArray<byte>))
Roslyn.VisualStudio.DiagnosticsWindow (4)
OptionPages\PerformanceLoggersPage.cs (2)
57var loggerTypeNames = GetLoggerTypes(globalOptions).ToImmutableArray(); 96private static void SetRoslynLogger<T>(ImmutableArray<string> loggerTypeNames, Func<T> creator) where T : ILogger
Panels\WorkspacePanel.xaml.cs (1)
96var fileChecksum = fileText.GetChecksum();
PerfMargin\DataModel.cs (1)
17private readonly ImmutableArray<ActivityLevel?> _activities;
Roslyn.VisualStudio.Next.UnitTests (44)
Options\VisualStudioSettingsOptionPersisterTests.cs (16)
97optionType == typeof(ImmutableArray<bool>) ? (ImmutableArray.Create(true, false), new[] { true, false }) : 98optionType == typeof(ImmutableArray<int>) ? (ImmutableArray.Create(0, 1), new[] { 0, 1 }) : 99optionType == typeof(ImmutableArray<long>) ? (ImmutableArray.Create(0L, 1L), new[] { 0L, 1L }) : 100optionType == typeof(ImmutableArray<string>) ? (ImmutableArray.Create("a", "b"), new[] { "a", "b" }) : 172typeof(ImmutableArray<bool>), 173typeof(ImmutableArray<int>), 174typeof(ImmutableArray<long>), 175typeof(ImmutableArray<string>))] 212typeof(ImmutableArray<bool>), 213typeof(ImmutableArray<int>), 214typeof(ImmutableArray<long>), 215typeof(ImmutableArray<string>))] 232[InlineData(typeof(ImmutableArray<bool>))] 233[InlineData(typeof(ImmutableArray<int>))] 234[InlineData(typeof(ImmutableArray<long>))] 235[InlineData(typeof(ImmutableArray<string>))]
Remote\SerializationValidator.cs (1)
40public ImmutableArray<T> Children { get; }
Services\ServiceHubServicesTests.cs (21)
153var infos = await callback.Infos; 205private readonly TaskCompletionSource<ImmutableArray<DesignerAttributeData>> _infosSource = new(); 207public Task<ImmutableArray<DesignerAttributeData>> Infos => _infosSource.Task; 209public ValueTask ReportDesignerAttributeDataAsync(ImmutableArray<DesignerAttributeData> infos, CancellationToken cancellationToken) 372private static ImmutableArray<ImmutableArray<T>> Permute<T>(T[] values) 374using var _ = ArrayBuilder<ImmutableArray<T>>.GetInstance(out var result); 399params ImmutableArray<(string hintName, SourceText text)>[] values) 402foreach (var permutation in Permute(values)) 407ImmutableArray<ImmutableArray<(string hintName, SourceText text)>> values) 410ImmutableArray<(string hintName, SourceText text)> sourceTexts = default; 473var localGeneratedDocs = (await localProject.GetSourceGeneratedDocumentsAsync()).ToImmutableArray(); 474var remoteGeneratedDocs = (await remoteProject.GetSourceGeneratedDocumentsAsync()).ToImmutableArray(); 602ImmutableArray<(string, SourceText)>.Empty); 609ImmutableArray<(string, SourceText)>.Empty, 656ImmutableArray<(string, SourceText)>.Empty); 1509var documentNames = changedDocuments.ToImmutableArray(); 1572private static void VerifyStates(Solution solution1, Solution solution2, string projectName, ImmutableArray<string> documentNames) 1642private static (Project project, ImmutableArray<Document> documents) GetProjectAndDocuments(Solution solution, string projectName, ImmutableArray<string> documentNames)
Services\VisualStudioDiagnosticAnalyzerExecutorTests.cs (6)
83ImmutableArray<DiagnosticData> diagnostics; 199var analyzers = analyzerReference.GetAnalyzers(project.Language).Where(a => a.GetType() == analyzerType).ToImmutableArray(); 265private readonly ImmutableArray<DiagnosticDescriptor> _supportedDiagnostics = 268public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => _supportedDiagnostics; 285private readonly ImmutableArray<DiagnosticDescriptor> _supportedDiagnostics = 288public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => _supportedDiagnostics;
RunTests (37)
AssemblyInfo.cs (1)
22public readonly record struct TypeInfo(string Name, string FullyQualifiedName, ImmutableArray<TestMethodInfo> Tests)
AssemblyScheduler.cs (18)
19internal record struct WorkItemInfo(ImmutableSortedDictionary<AssemblyInfo, ImmutableArray<TestMethodInfo>> Filters, int PartitionIndex) 61public async Task<ImmutableArray<WorkItemInfo>> ScheduleAsync(ImmutableArray<AssemblyInfo> assemblies, CancellationToken cancellationToken) 82var workItemsByMethodCount = BuildWorkItems<int>( 98var workItems = BuildWorkItems<TimeSpan>( 105static ImmutableArray<WorkItemInfo> CreateWorkItemsForFullAssemblies(ImmutableArray<AssemblyInfo> assemblies) 111var currentWorkItem = ImmutableSortedDictionary<AssemblyInfo, ImmutableArray<TestMethodInfo>>.Empty.Add(assembly, ImmutableArray<TestMethodInfo>.Empty); 119private static ImmutableSortedDictionary<AssemblyInfo, ImmutableArray<TypeInfo>> UpdateTestsWithExecutionTimes( 120ImmutableSortedDictionary<AssemblyInfo, ImmutableArray<TypeInfo>> assemblyTypes, 141var tests = typeInfo.Tests.Select(WithTestExecutionTime).ToImmutableArray(); 182private ImmutableArray<WorkItemInfo> BuildWorkItems<TWeight>( 183ImmutableSortedDictionary<AssemblyInfo, ImmutableArray<TypeInfo>> typeInfos, 271private static void LogWorkItems(ImmutableArray<WorkItemInfo> workItems) 298var testFilters = assembly.Value; 307private static ImmutableArray<TypeInfo> GetTypeInfoList(AssemblyInfo assemblyInfo) 322var tests = deserialized.GroupBy(GetTypeName)
ITestExecutor.cs (3)
76internal ImmutableArray<ProcessResult> ProcessResults { get; } 86internal TestResult(WorkItemInfo workItemInfo, TestResultInfo testResultInfo, string commandLine, ImmutableArray<ProcessResult> processResults = default, string? diagnostics = null) 91ProcessResults = processResults.IsDefault ? ImmutableArray<ProcessResult>.Empty : processResults;
ProcessTestExecutor.cs (1)
60var filters = workItem.Filters.Values.SelectMany(filter => filter).Where(filter => !string.IsNullOrEmpty(filter.FullyQualifiedName)).ToImmutableArray();
Program.cs (7)
133var workItems = await GetWorkItemsAsync(options, cancellationToken); 165private static void LogProcessResultDetails(ImmutableArray<ProcessResult> processResults) 283private static async Task<ImmutableArray<WorkItemInfo>> GetWorkItemsAsync(Options options, CancellationToken cancellationToken) 286var assemblyPaths = GetAssemblyFilePaths(options); 287var workItems = await scheduler.ScheduleAsync(assemblyPaths, cancellationToken); 291private static ImmutableArray<AssemblyInfo> GetAssemblyFilePaths(Options options) 392private static void DisplayResults(Display display, ImmutableArray<TestResult> testResults)
TestRunner.cs (7)
24internal ImmutableArray<TestResult> TestResults { get; } 25internal ImmutableArray<ProcessResult> ProcessResults { get; } 27internal RunAllResult(bool succeeded, ImmutableArray<TestResult> testResults, ImmutableArray<ProcessResult> processResults) 46internal async Task<RunAllResult> RunAllOnHelixAsync(ImmutableArray<WorkItemInfo> workItems, Options options, CancellationToken cancellationToken) 146return new RunAllResult(result.ExitCode == 0, ImmutableArray<TestResult>.Empty, ImmutableArray.Create(result)); 323internal async Task<RunAllResult> RunAllAsync(ImmutableArray<WorkItemInfo> workItems, CancellationToken cancellationToken)
SemanticSearch.BuildTask (12)
GenerateFilteredReferenceAssembliesTask.cs (9)
240private static bool IsIncluded(ISymbol symbol, ImmutableArray<ApiPattern> patterns) 272internal static unsafe void Rewrite(byte[] peImage, ImmutableArray<ApiPattern> patterns) 346private static unsafe TSymbol? GetSymbolWithToken<TSymbol>(ImmutableArray<TSymbol> symbols, ref int symbolIndex, EntityHandle handle) where TSymbol : class, ISymbol 351private static unsafe void UpdateTypeDefinitions(BinaryWriter writer, MetadataReader metadataReader, ImmutableArray<ApiPattern> patterns, ImmutableArray<INamedTypeSymbol> symbols, int metadataOffset) 391private static unsafe void UpdateMethodDefinitions(BinaryWriter writer, MetadataReader metadataReader, ImmutableArray<ApiPattern> patterns, ImmutableArray<IMethodSymbol> symbols, int metadataOffset) 425private static unsafe void UpdateFieldDefinitions(BinaryWriter writer, MetadataReader metadataReader, ImmutableArray<ApiPattern> patterns, ImmutableArray<IFieldSymbol> symbols, int metadataOffset)
src\Compilers\Core\Portable\InternalUtilities\Hash.cs (3)
114internal static int CombineValues<T>(ImmutableArray<T> values, int maxItemsToHash = int.MaxValue) 165internal static int CombineValues(ImmutableArray<string> values, StringComparer stringComparer, int maxItemsToHash = int.MaxValue) 246internal static int GetFNVHashCode(ImmutableArray<byte> data)
Shared.Tests (3)
JsonSchemaExporter\JsonSchemaExporterTests.cs (1)
69[InlineData(typeof(ImmutableArray<int>), "array")]
JsonSchemaExporter\TestTypes.cs (2)
799yield return new TestData<ImmutableArray<int>>(ImmutableArray.Create(1, 2, 3), """{"type":"array","items":{"type":"integer"}}"""); 1281[JsonSerializable(typeof(ImmutableArray<int>))]
StackDepthTest (1)
Program.cs (1)
82var diag = comp.GetDiagnostics();
System.Collections.Immutable (278)
System\Collections\Frozen\FrozenDictionary.cs (2)
276public ImmutableArray<TKey> Keys => ImmutableCollectionsMarshal.AsImmutableArray(KeysCore); 298public ImmutableArray<TValue> Values => ImmutableCollectionsMarshal.AsImmutableArray(ValuesCore);
System\Collections\Frozen\FrozenSet.cs (1)
258public ImmutableArray<T> Items => ImmutableCollectionsMarshal.AsImmutableArray(ItemsCore);
System\Collections\Immutable\IImmutableArray.cs (3)
7/// An internal non-generic interface implemented by <see cref="ImmutableArray{T}"/> 8/// that allows for recognition of an <see cref="ImmutableArray{T}"/> instance and access 13/// Casting to this interface requires a boxed instance of the <see cref="ImmutableArray{T}"/> struct,
System\Collections\Immutable\ImmutableArray.cs (44)
12/// A set of initialization methods for instances of <see cref="ImmutableArray{T}"/>. 22/// Creates an empty <see cref="ImmutableArray{T}"/>. 26public static ImmutableArray<T> Create<T>() 28return ImmutableArray<T>.Empty; 32/// Creates an <see cref="ImmutableArray{T}"/> with the specified element as its only member. 37public static ImmutableArray<T> Create<T>(T item) 44/// Creates an <see cref="ImmutableArray{T}"/> with the specified elements. 50public static ImmutableArray<T> Create<T>(T item1, T item2) 57/// Creates an <see cref="ImmutableArray{T}"/> with the specified elements. 64public static ImmutableArray<T> Create<T>(T item1, T item2, T item3) 71/// Creates an <see cref="ImmutableArray{T}"/> with the specified elements. 79public static ImmutableArray<T> Create<T>(T item1, T item2, T item3, T item4) 86/// Creates an <see cref="ImmutableArray{T}"/> with the specified elements. 91public static ImmutableArray<T> Create<T>(params ReadOnlySpan<T> items) 95return ImmutableArray<T>.Empty; 103/// Creates an <see cref="ImmutableArray{T}"/> with the specified elements. 109public static ImmutableArray<T> Create<T>(Span<T> items) 120public static ImmutableArray<T> ToImmutableArray<T>(this ReadOnlySpan<T> items) 132public static ImmutableArray<T> ToImmutableArray<T>(this Span<T> items) 138/// Creates an <see cref="ImmutableArray{T}"/> populated with the contents of the specified sequence. 143public static ImmutableArray<T> CreateRange<T>(IEnumerable<T> items) 184/// Creates an <see cref="ImmutableArray{T}"/> with the specified elements. 189public static ImmutableArray<T> Create<T>(params T[]? items) 193return ImmutableArray<T>.Empty; 206/// Initializes a new instance of the <see cref="ImmutableArray{T}"/> struct. 215public static ImmutableArray<T> Create<T>(T[] items, int start, int length) 237/// Initializes a new instance of the <see cref="ImmutableArray{T}"/> struct. 247public static ImmutableArray<T> Create<T>(ImmutableArray<T> items, int start, int length) 268/// Initializes a new instance of the <see cref="ImmutableArray{T}"/> struct. 273/// This overload allows efficient creation of an <see cref="ImmutableArray{T}"/> based on an existing 274/// <see cref="ImmutableArray{T}"/>, where a mapping function needs to be applied to each element from 277public static ImmutableArray<TResult> CreateRange<TSource, TResult>(ImmutableArray<TSource> items, Func<TSource, TResult> selector) 298/// Initializes a new instance of the <see cref="ImmutableArray{T}"/> struct. 305/// This overload allows efficient creation of an <see cref="ImmutableArray{T}"/> based on a slice of an existing 306/// <see cref="ImmutableArray{T}"/>, where a mapping function needs to be applied to each element from the source array 309public static ImmutableArray<TResult> CreateRange<TSource, TResult>(ImmutableArray<TSource> items, int start, int length, Func<TSource, TResult> selector) 332/// Initializes a new instance of the <see cref="ImmutableArray{T}"/> struct. 338/// This overload allows efficient creation of an <see cref="ImmutableArray{T}"/> based on an existing 339/// <see cref="ImmutableArray{T}"/>, where a mapping function needs to be applied to each element from 342public static ImmutableArray<TResult> CreateRange<TSource, TArg, TResult>(ImmutableArray<TSource> items, Func<TSource, TArg, TResult> selector, TArg arg)
System\Collections\Immutable\ImmutableArray_1.Builder.cs (17)
13/// A writable array accessor that can be converted into an <see cref="ImmutableArray{T}"/> 77_elements = ImmutableArray<T>.Empty.array!; 192public ImmutableArray<T> ToImmutable() 198/// Extracts the internal array as an <see cref="ImmutableArray{T}"/> and replaces it 201/// <exception cref="InvalidOperationException">When <see cref="ImmutableArray{T}.Builder.Count"/> doesn't 202/// equal <see cref="ImmutableArray{T}.Builder.Capacity"/>.</exception> 203public ImmutableArray<T> MoveToImmutable() 211_elements = ImmutableArray<T>.Empty.array!; 217/// Returns the current contents as an <see cref="ImmutableArray{T}"/> and sets the collection to a zero length array. 221/// as an <see cref="ImmutableArray{T}"/> without copying the contents. Otherwise, the contents 225public ImmutableArray<T> DrainToImmutable() 234_elements = ImmutableArray<T>.Empty.array!; 301public void InsertRange(int index, ImmutableArray<T> items) 409public void AddRange(ImmutableArray<T> items) 419public void AddRange(ImmutableArray<T> items, int length) 463public void AddRange<TDerived>(ImmutableArray<TDerived> items) where TDerived : T 486public void AddRange<TDerived>(ImmutableArray<TDerived>.Builder items) where TDerived : T
System\Collections\Immutable\ImmutableArray_1.Builder.DebuggerProxy.cs (2)
16private readonly ImmutableArray<T>.Builder _builder; 21public ImmutableArrayBuilderDebuggerProxy(ImmutableArray<T>.Builder builder)
System\Collections\Immutable\ImmutableArray_1.cs (112)
15public readonly partial struct ImmutableArray<T> : IReadOnlyList<T>, IList<T>, IEquatable<ImmutableArray<T>>, IList, IImmutableArray, IStructuralComparable, IStructuralEquatable, IImmutableList<T> 28ImmutableArray<T> self = this; 56ImmutableArray<T> self = this; 71ImmutableArray<T> self = this; 89ImmutableArray<T> self = this; 114ImmutableArray<T> self = this; 127ImmutableArray<T> self = this; 139ImmutableArray<T> self = this; 168ImmutableArray<T> self = this; 205ImmutableArray<T> self = this; 222ImmutableArray<T> self = this; 253ImmutableArray<T> self = this; 313public ImmutableArray<T> Insert(int index, T item) 315ImmutableArray<T> self = this; 345public ImmutableArray<T> InsertRange(int index, IEnumerable<T> items) 347ImmutableArray<T> self = this; 398public ImmutableArray<T> InsertRange(int index, ImmutableArray<T> items) 400ImmutableArray<T> self = this; 422public ImmutableArray<T> Add(T item) 424ImmutableArray<T> self = this; 438public ImmutableArray<T> AddRange(IEnumerable<T> items) 440ImmutableArray<T> self = this; 450public ImmutableArray<T> AddRange(T[] items, int length) 452ImmutableArray<T> self = this; 479public ImmutableArray<T> AddRange<TDerived>(TDerived[] items) where TDerived : T 481ImmutableArray<T> self = this; 503public ImmutableArray<T> AddRange(ImmutableArray<T> items, int length) 505ImmutableArray<T> self = this; 524public ImmutableArray<T> AddRange<TDerived>(ImmutableArray<TDerived> items) where TDerived : T 526ImmutableArray<T> self = this; 542public ImmutableArray<T> AddRange(ImmutableArray<T> items) 544ImmutableArray<T> self = this; 554public ImmutableArray<T> SetItem(int index, T item) 556ImmutableArray<T> self = this; 573public ImmutableArray<T> Replace(T oldValue, T newValue) 589public ImmutableArray<T> Replace(T oldValue, T newValue, IEqualityComparer<T>? equalityComparer) 591ImmutableArray<T> self = this; 607public ImmutableArray<T> Remove(T item) 622public ImmutableArray<T> Remove(T item, IEqualityComparer<T>? equalityComparer) 624ImmutableArray<T> self = this; 637public ImmutableArray<T> RemoveAt(int index) 648public ImmutableArray<T> RemoveRange(int index, int length) 650ImmutableArray<T> self = this; 673public ImmutableArray<T> RemoveRange(IEnumerable<T> items) 689public ImmutableArray<T> RemoveRange(IEnumerable<T> items, IEqualityComparer<T>? equalityComparer) 691ImmutableArray<T> self = this; 715public ImmutableArray<T> RemoveRange(ImmutableArray<T> items) 730public ImmutableArray<T> RemoveRange(ImmutableArray<T> items, IEqualityComparer<T>? equalityComparer) 748public ImmutableArray<T> RemoveAll(Predicate<T> match) 750ImmutableArray<T> self = this; 778public ImmutableArray<T> Clear() 786public ImmutableArray<T> Sort() 788ImmutableArray<T> self = this; 793/// Sorts the elements in the entire <see cref="ImmutableArray{T}"/> using 801public ImmutableArray<T> Sort(Comparison<T> comparison) 805ImmutableArray<T> self = this; 813public ImmutableArray<T> Sort(IComparer<T>? comparer) 815ImmutableArray<T> self = this; 825public ImmutableArray<T> Sort(int index, int count, IComparer<T>? comparer) 827ImmutableArray<T> self = this; 869ImmutableArray<T> self = this; 883public ImmutableArray<T> AddRange(params ReadOnlySpan<T> items) 885ImmutableArray<T> self = this; 894public ImmutableArray<T> AddRange(params T[] items) 896ImmutableArray<T> self = this; 901/// Creates a <see cref="ReadOnlySpan{T}"/> over the portion of current <see cref="ImmutableArray{T}"/> beginning at a specified position for a specified length. 905/// <returns>The <see cref="ReadOnlySpan{T}"/> representation of the <see cref="ImmutableArray{T}"/></returns> 909/// Copies the elements of current <see cref="ImmutableArray{T}"/> to an <see cref="Span{T}"/>. 911/// <param name="destination">The <see cref="Span{T}"/> that is the destination of the elements copied from current <see cref="ImmutableArray{T}"/>.</param> 914ImmutableArray<T> self = this; 927public ImmutableArray<T> InsertRange(int index, T[] items) 929ImmutableArray<T> self = this; 952public ImmutableArray<T> InsertRange(int index, params ReadOnlySpan<T> items) 954ImmutableArray<T> self = this; 980public ImmutableArray<T> RemoveRange(ReadOnlySpan<T> items, IEqualityComparer<T>? equalityComparer = null) 982ImmutableArray<T> self = this; 1018public ImmutableArray<T> RemoveRange(T[] items, IEqualityComparer<T>? equalityComparer = null) 1020ImmutableArray<T> self = this; 1029/// Forms a slice out of the current <see cref="ImmutableArray{T}"/> starting at a specified index for a specified length. 1033/// <returns>A <see cref="ImmutableArray{T}"/> that consists of length elements from the current <see cref="ImmutableArray{T}"/> starting at start.</returns> 1034public ImmutableArray<T> Slice(int start, int length) 1036ImmutableArray<T> self = this; 1073ImmutableArray<T> self = this; 1083ImmutableArray<T> self = this; 1093ImmutableArray<T> self = this; 1103ImmutableArray<T> self = this; 1113ImmutableArray<T> self = this; 1123ImmutableArray<T> self = this; 1133ImmutableArray<T> self = this; 1143ImmutableArray<T> self = this; 1153ImmutableArray<T> self = this; 1163ImmutableArray<T> self = this; 1173ImmutableArray<T> self = this; 1183ImmutableArray<T> self = this; 1228ImmutableArray<T> self = this; 1246ImmutableArray<T> self = this; 1297ImmutableArray<T> self = this; 1359ImmutableArray<T> self = this; 1373ImmutableArray<T> self = this; 1386ImmutableArray<T> self = this; 1416ImmutableArray<T> self = this; 1436ImmutableArray<T> self = this; 1477private ImmutableArray<T> RemoveAtRange(ICollection<int> indicesToRemove) 1479ImmutableArray<T> self = this; 1508private ImmutableArray<T> InsertSpanRangeInternal(int index, ReadOnlySpan<T> items)
System\Collections\Immutable\ImmutableArray_1.Enumerator.cs (1)
77new EnumeratorObject(ImmutableArray<T>.Empty.array!);
System\Collections\Immutable\ImmutableArray_1.Minimal.cs (33)
36public partial struct ImmutableArray<T> : IEnumerable<T>, IEquatable<ImmutableArray<T>>, IImmutableArray 39/// An empty (initialized) instance of <see cref="ImmutableArray{T}"/>. 44public static readonly ImmutableArray<T> Empty = new ImmutableArray<T>(new T[0]); 57/// Initializes a new instance of the <see cref="ImmutableArray{T}"/> struct 75public static bool operator ==(ImmutableArray<T> left, ImmutableArray<T> right) 87public static bool operator !=(ImmutableArray<T> left, ImmutableArray<T> right) 98public static bool operator ==(ImmutableArray<T>? left, ImmutableArray<T>? right) 109public static bool operator !=(ImmutableArray<T>? left, ImmutableArray<T>? right) 195ImmutableArray<T> self = this; 217ImmutableArray<T> self = this; 228ImmutableArray<T> self = this; 240ImmutableArray<T> self = this; 254ImmutableArray<T> self = this; 263public ImmutableArray<T>.Builder ToBuilder() 265ImmutableArray<T> self = this; 283ImmutableArray<T> self = this; 296ImmutableArray<T> self = this; 320public bool Equals(ImmutableArray<T> other) 326/// Initializes a new instance of the <see cref="ImmutableArray{T}"/> struct based on the contents 332/// <see cref="ImmutableArray{T}.As{TOther}"/> or <see cref="ImmutableArray{T}.CastArray{TOther}"/>method. 334public static ImmutableArray< 338> CastUp<TDerived>(ImmutableArray<TDerived> items) 345/// Initializes a new instance of the <see cref="ImmutableArray{T}"/> struct by casting the underlying 349public ImmutableArray< 373public ImmutableArray< 389ImmutableArray<T> self = this; 401ImmutableArray<T> self = this; 426/// on a default instance of <see cref="ImmutableArray{T}"/>.
System\Collections\Immutable\ImmutableArray_1.netcoreapp.cs (5)
8public readonly partial struct ImmutableArray<T> : IReadOnlyList<T>, IList<T>, IEquatable<ImmutableArray<T>>, IList, IImmutableArray, IStructuralComparable, IStructuralEquatable, IImmutableList<T> 11/// Creates a <see cref="ReadOnlySpan{T}"/> over the portion of current <see cref="ImmutableArray{T}"/> based on specified <paramref name="range"/> 13/// <param name="range">Range in current <see cref="ImmutableArray{T}"/>.</param> 14/// <returns>The <see cref="ReadOnlySpan{T}"/> representation of the <see cref="ImmutableArray{T}"/></returns> 17ImmutableArray<T> self = this;
System\Collections\Immutable\ImmutableExtensions.Minimal.cs (3)
95/// method is called. If the array it holds onto underlies an <see cref="ImmutableArray{T}"/>, it could violate 124if (sequence is ImmutableArray<T> immutable) 153return ImmutableArray<T>.Empty.array!;
System\Linq\ImmutableArrayExtensions.cs (41)
11/// LINQ extension method overrides that offer greater efficiency for <see cref="ImmutableArray{T}"/> than the standard LINQ methods 24public static IEnumerable<TResult> Select<T, TResult>(this ImmutableArray<T> immutableArray, Func<T, TResult> selector) 52this ImmutableArray<TSource> immutableArray, 82public static IEnumerable<T> Where<T>(this ImmutableArray<T> immutableArray, Func<T, bool> predicate) 97public static bool Any<T>(this ImmutableArray<T> immutableArray) 109public static bool Any<T>(this ImmutableArray<T> immutableArray, Func<T, bool> predicate) 135public static bool All<T>(this ImmutableArray<T> immutableArray, Func<T, bool> predicate) 156public static bool SequenceEqual<TDerived, TBase>(this ImmutableArray<TBase> immutableArray, ImmutableArray<TDerived> items, IEqualityComparer<TBase>? comparer = null) where TDerived : TBase 188public static bool SequenceEqual<TDerived, TBase>(this ImmutableArray<TBase> immutableArray, IEnumerable<TDerived> items, IEqualityComparer<TBase>? comparer = null) where TDerived : TBase 219public static bool SequenceEqual<TDerived, TBase>(this ImmutableArray<TBase> immutableArray, ImmutableArray<TDerived> items, Func<TBase, TBase, bool> predicate) where TDerived : TBase 250public static T? Aggregate<T>(this ImmutableArray<T> immutableArray, Func<T, T, T> func) 273public static TAccumulate Aggregate<TAccumulate, T>(this ImmutableArray<T> immutableArray, TAccumulate seed, Func<TAccumulate, T, TAccumulate> func) 296public static TResult Aggregate<TAccumulate, TResult, T>(this ImmutableArray<T> immutableArray, TAccumulate seed, Func<TAccumulate, T, TAccumulate> func, Func<TAccumulate, TResult> resultSelector) 307public static T ElementAt<T>(this ImmutableArray<T> immutableArray, int index) 316public static T? ElementAtOrDefault<T>(this ImmutableArray<T> immutableArray, int index) 330public static T First<T>(this ImmutableArray<T> immutableArray, Func<T, bool> predicate) 351public static T First<T>(this ImmutableArray<T> immutableArray) 366public static T? FirstOrDefault<T>(this ImmutableArray<T> immutableArray) 375public static T? FirstOrDefault<T>(this ImmutableArray<T> immutableArray, Func<T, bool> predicate) 395public static T Last<T>(this ImmutableArray<T> immutableArray) 408public static T Last<T>(this ImmutableArray<T> immutableArray, Func<T, bool> predicate) 429public static T? LastOrDefault<T>(this ImmutableArray<T> immutableArray) 439public static T? LastOrDefault<T>(this ImmutableArray<T> immutableArray, Func<T, bool> predicate) 459public static T Single<T>(this ImmutableArray<T> immutableArray) 471public static T Single<T>(this ImmutableArray<T> immutableArray, Func<T, bool> predicate) 504public static T? SingleOrDefault<T>(this ImmutableArray<T> immutableArray) 514public static T? SingleOrDefault<T>(this ImmutableArray<T> immutableArray, Func<T, bool> predicate) 545public static Dictionary<TKey, T> ToDictionary<TKey, T>(this ImmutableArray<T> immutableArray, Func<T, TKey> keySelector) where TKey : notnull 560public static Dictionary<TKey, TElement> ToDictionary<TKey, TElement, T>(this ImmutableArray<T> immutableArray, Func<T, TKey> keySelector, Func<T, TElement> elementSelector) where TKey : notnull 574public static Dictionary<TKey, T> ToDictionary<TKey, T>(this ImmutableArray<T> immutableArray, Func<T, TKey> keySelector, IEqualityComparer<TKey>? comparer) where TKey : notnull 598public static Dictionary<TKey, TElement> ToDictionary<TKey, TElement, T>(this ImmutableArray<T> immutableArray, Func<T, TKey> keySelector, Func<T, TElement> elementSelector, IEqualityComparer<TKey>? comparer) where TKey : notnull 618public static T[] ToArray<T>(this ImmutableArray<T> immutableArray) 623return ImmutableArray<T>.Empty.array!; 637public static T First<T>(this ImmutableArray<T>.Builder builder) 652public static T? FirstOrDefault<T>(this ImmutableArray<T>.Builder builder) 663public static T Last<T>(this ImmutableArray<T>.Builder builder) 678public static T? LastOrDefault<T>(this ImmutableArray<T>.Builder builder) 688public static bool Any<T>(this ImmutableArray<T>.Builder builder) 699this ImmutableArray<TSource> immutableArray,
System\Runtime.InteropServices\ImmutableCollectionsMarshal.cs (14)
14/// Gets an <see cref="ImmutableArray{T}"/> value wrapping the input <typeparamref name="T"/> array. 17/// <param name="array">The input array to wrap in the returned <see cref="ImmutableArray{T}"/> value.</param> 18/// <returns>An <see cref="ImmutableArray{T}"/> value wrapping <paramref name="array"/>.</returns> 22/// array, and that it won't be modified once the returned <see cref="ImmutableArray{T}"/> value starts being 24/// <see cref="ImmutableArray{T}"/> values to change after its creation. 27/// If <paramref name="array"/> is <see langword="null"/>, the returned <see cref="ImmutableArray{T}"/> value 28/// will be uninitialized (ie. its <see cref="ImmutableArray{T}.IsDefault"/> property will be <see langword="true"/>). 31public static ImmutableArray<T> AsImmutableArray<T>(T[]? array) 37/// Gets the underlying <typeparamref name="T"/> array for an input <see cref="ImmutableArray{T}"/> value. 39/// <typeparam name="T">The type of elements in the input <see cref="ImmutableArray{T}"/> value.</typeparam> 40/// <param name="array">The input <see cref="ImmutableArray{T}"/> value to get the underlying <typeparamref name="T"/> array from.</param> 46/// don't expect the contents of the <see cref="ImmutableArray{T}"/> value to change. 49/// If <paramref name="array"/> is uninitialized (ie. its <see cref="ImmutableArray{T}.IsDefault"/> property is 53public static T[]? AsArray<T>(ImmutableArray<T> array)
System.Formats.Nrbf (1)
System\Formats\Nrbf\SerializationRecord.cs (1)
128ImmutableArray<TypeName> genericNames = typeName.GetGenericArguments();
System.Private.CoreLib.Generators (2)
EventSourceGenerator.Parser.cs (1)
49ImmutableArray<KeyValuePair<string, TypedConstant>> args = attribute.NamedArguments;
IntrinsicsInSystemPrivateCoreLibAnalyzer.cs (1)
48public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get { return ImmutableArray.Create(Rule, RuleHelper, RuleCantParse, RuleAttributeNotSpecificEnough); } }
System.Private.Windows.Core.TestUtilities (6)
XUnit\TestData.cs (6)
16public static ImmutableArray<T> GetFloatingPointData<T>() 23public static ImmutableArray<T> GetIntegerData<T>() 30public static ImmutableArray<T> GetPositiveIntegerData<T>() 37public static ImmutableArray<T> Data { get; } = 55public static ImmutableArray<T> Data { get; } 78public static ImmutableArray<T> Data { get; } =
System.Reflection.Metadata (205)
System\Reflection\Internal\MemoryBlocks\AbstractMemoryBlock.cs (2)
35public virtual unsafe ImmutableArray<byte> GetContentUnchecked(int start, int length) 37var result = new ReadOnlySpan<byte>(Pointer + start, length).ToImmutableArray();
System\Reflection\Internal\MemoryBlocks\ByteArrayMemoryBlock.cs (1)
33public override ImmutableArray<byte> GetContentUnchecked(int start, int length)
System\Reflection\Internal\MemoryBlocks\ByteArrayMemoryProvider.cs (3)
14private readonly ImmutableArray<byte> _array; 17public ByteArrayMemoryProvider(ImmutableArray<byte> array) 30public ImmutableArray<byte> Array => _array;
System\Reflection\Internal\Utilities\ImmutableMemoryStream.cs (3)
12private readonly ImmutableArray<byte> _array; 15internal ImmutableMemoryStream(ImmutableArray<byte> array) 21public ImmutableArray<byte> GetBuffer()
System\Reflection\Metadata\AssemblyNameInfo.cs (3)
42public AssemblyNameInfo(string name, Version? version = null, string? cultureName = null, AssemblyNameFlags flags = AssemblyNameFlags.None, ImmutableArray<byte> publicKeyOrToken = default) 62? ImmutableArray<byte>.Empty 102public ImmutableArray<byte> PublicKeyOrToken { get; }
System\Reflection\Metadata\BlobBuilder.cs (4)
308public ImmutableArray<byte> ToImmutableArray() 315public ImmutableArray<byte> ToImmutableArray(int start, int byteCount) 740public void WriteBytes(ImmutableArray<byte> buffer) 753public void WriteBytes(ImmutableArray<byte> buffer, int start, int byteCount)
System\Reflection\Metadata\BlobContentId.cs (2)
27public BlobContentId(ImmutableArray<byte> id) 64public static BlobContentId FromHash(ImmutableArray<byte> hashCode)
System\Reflection\Metadata\BlobWriter.cs (4)
94public ImmutableArray<byte> ToImmutableArray() 100public ImmutableArray<byte> ToImmutableArray(int start, int byteCount) 188public void WriteBytes(ImmutableArray<byte> buffer) 200public void WriteBytes(ImmutableArray<byte> buffer, int start, int byteCount)
System\Reflection\Metadata\Decoding\IConstructedTypeProvider.cs (1)
13TType GetGenericInstantiation(TType genericType, ImmutableArray<TType> typeArguments);
System\Reflection\Metadata\Ecma335\BlobDictionary.cs (4)
17private readonly Dictionary<int, KeyValuePair<ImmutableArray<byte>, BlobHandle>> _dictionary; 25private unsafe ref KeyValuePair<ImmutableArray<byte>, BlobHandle> GetValueRefOrAddDefault(ReadOnlySpan<byte> key, out bool exists) 43public BlobHandle GetOrAdd(ReadOnlySpan<byte> key, ImmutableArray<byte> immutableKey, BlobHandle value, out bool exists) 106public Dictionary<int, KeyValuePair<ImmutableArray<byte>, BlobHandle>>.Enumerator GetEnumerator() =>
System\Reflection\Metadata\Ecma335\CustomAttributeDecoder.cs (8)
97ImmutableArray<CustomAttributeTypedArgument<TType>> fixedArguments = DecodeFixedArguments(ref signatureReader, ref valueReader, parameterCount, genericContextReader); 98ImmutableArray<CustomAttributeNamedArgument<TType>> namedArguments = DecodeNamedArguments(ref valueReader); 102private ImmutableArray<CustomAttributeTypedArgument<TType>> DecodeFixedArguments(ref BlobReader signatureReader, ref BlobReader valueReader, int count, BlobReader genericContextReader) 106return ImmutableArray<CustomAttributeTypedArgument<TType>>.Empty; 120private ImmutableArray<CustomAttributeNamedArgument<TType>> DecodeNamedArguments(ref BlobReader valueReader) 125return ImmutableArray<CustomAttributeNamedArgument<TType>>.Empty; 380private ImmutableArray<CustomAttributeTypedArgument<TType>>? DecodeArrayArgument(ref BlobReader blobReader, ArgumentTypeInfo info) 390return ImmutableArray<CustomAttributeTypedArgument<TType>>.Empty;
System\Reflection\Metadata\Ecma335\Encoding\BlobEncoders.cs (4)
357public PermissionSetEncoder AddPermission(string typeName, ImmutableArray<byte> encodedArguments) 1263/// Dimension lower bounds, or <c>default(<see cref="ImmutableArray{Int32}"/>)</c> to set all <paramref name="rank"/> lower bounds to 0. 1272public void Shape(int rank, ImmutableArray<int> sizes, ImmutableArray<int> lowerBounds)
System\Reflection\Metadata\Ecma335\MetadataAggregator.cs (13)
14private readonly ImmutableArray<ImmutableArray<int>> _heapSizes; 16private readonly ImmutableArray<ImmutableArray<RowCounts>> _rowCounts; 133private static ImmutableArray<ImmutableArray<int>> CalculateHeapSizes( 166private static ImmutableArray<ImmutableArray<RowCounts>> CalculateRowCounts( 181private static ImmutableArray<ImmutableArray<T>> ToImmutable<T>(T[][] array) 183var immutable = new ImmutableArray<T>[array.Length]; 263var sizes = _heapSizes[(int)heapIndex]; 299var sizes = _rowCounts[(int)handle.Type];
System\Reflection\Metadata\Ecma335\MetadataBuilder.cs (3)
12internal SerializedMetadata GetSerializedMetadata(ImmutableArray<int> externalRowCounts, int metadataVersionByteCount, bool isStandaloneDebugMetadata) 15var stringMap = SerializeStringHeap(stringHeapBuilder, _strings, _stringHeapStartOffset); 22var heapSizes = ImmutableArray.Create(
System\Reflection\Metadata\Ecma335\MetadataBuilder.Heaps.cs (6)
119_blobs.GetOrAdd(ReadOnlySpan<byte>.Empty, ImmutableArray<byte>.Empty, default, out _); 176internal static int SerializeHandle(ImmutableArray<int> map, StringHandle handle) => map[handle.GetWriterVirtualIndex()]; 218private BlobHandle GetOrAddBlob(ReadOnlySpan<byte> value, ImmutableArray<byte> immutableValue = default) 236public BlobHandle GetOrAddBlob(ImmutableArray<byte> value) 534private static ImmutableArray<int> SerializeStringHeap( 629var blob = entry.Value.Key;
System\Reflection\Metadata\Ecma335\MetadataBuilder.Tables.cs (21)
294public ImmutableArray<int> GetRowCounts() 1639ImmutableArray<int> stringMap, 1923internal void SerializeModuleTable(BlobBuilder writer, ImmutableArray<int> stringMap, MetadataSizes metadataSizes) 1952private void SerializeTypeRefTable(BlobBuilder writer, ImmutableArray<int> stringMap, MetadataSizes metadataSizes) 1962private void SerializeTypeDefTable(BlobBuilder writer, ImmutableArray<int> stringMap, MetadataSizes metadataSizes) 1975private void SerializeFieldTable(BlobBuilder writer, ImmutableArray<int> stringMap, MetadataSizes metadataSizes) 1985private void SerializeMethodDefTable(BlobBuilder writer, ImmutableArray<int> stringMap, MetadataSizes metadataSizes, int methodBodyStreamRva) 2006private void SerializeParamTable(BlobBuilder writer, ImmutableArray<int> stringMap, MetadataSizes metadataSizes) 2027private void SerializeMemberRefTable(BlobBuilder writer, ImmutableArray<int> stringMap, MetadataSizes metadataSizes) 2129private void SerializeEventTable(BlobBuilder writer, ImmutableArray<int> stringMap, MetadataSizes metadataSizes) 2148private void SerializePropertyTable(BlobBuilder writer, ImmutableArray<int> stringMap, MetadataSizes metadataSizes) 2182private void SerializeModuleRefTable(BlobBuilder writer, ImmutableArray<int> stringMap, MetadataSizes metadataSizes) 2198private void SerializeImplMapTable(BlobBuilder writer, ImmutableArray<int> stringMap, MetadataSizes metadataSizes) 2218private void SerializeAssemblyTable(BlobBuilder writer, ImmutableArray<int> stringMap, MetadataSizes metadataSizes) 2235private void SerializeAssemblyRefTable(BlobBuilder writer, ImmutableArray<int> stringMap, MetadataSizes metadataSizes) 2251private void SerializeFileTable(BlobBuilder writer, ImmutableArray<int> stringMap, MetadataSizes metadataSizes) 2261private void SerializeExportedTypeTable(BlobBuilder writer, ImmutableArray<int> stringMap, MetadataSizes metadataSizes) 2273private void SerializeManifestResourceTable(BlobBuilder writer, ImmutableArray<int> stringMap, MetadataSizes metadataSizes) 2293private void SerializeGenericParamTable(BlobBuilder writer, ImmutableArray<int> stringMap, MetadataSizes metadataSizes) 2355private void SerializeLocalVariableTable(BlobBuilder writer, ImmutableArray<int> stringMap, MetadataSizes metadataSizes) 2365private void SerializeLocalConstantTable(BlobBuilder writer, ImmutableArray<int> stringMap, MetadataSizes metadataSizes)
System\Reflection\Metadata\Ecma335\MetadataRootBuilder.cs (1)
20internal static readonly ImmutableArray<int> EmptyRowCounts = ImmutableArray.Create(new int[MetadataTokens.TableCount]);
System\Reflection\Metadata\Ecma335\MetadataSizes.cs (7)
81public ImmutableArray<int> HeapSizes { get; } 86public ImmutableArray<int> RowCounts { get; } 91public ImmutableArray<int> ExternalRowCounts { get; } 121ImmutableArray<int> rowCounts, 122ImmutableArray<int> externalRowCounts, 123ImmutableArray<int> heapSizes, 449private static ulong ComputeNonEmptyTableMask(ImmutableArray<int> rowCounts)
System\Reflection\Metadata\Ecma335\PortablePdbBuilder.cs (2)
49ImmutableArray<int> typeSystemRowCounts, 69private static void ValidateTypeSystemRowCounts(ImmutableArray<int> typeSystemRowCounts)
System\Reflection\Metadata\Ecma335\SerializedMetadataHeaps.cs (2)
10internal readonly ImmutableArray<int> StringMap; 17ImmutableArray<int> stringMap)
System\Reflection\Metadata\Ecma335\SignatureDecoder.cs (10)
137private ImmutableArray<TType> DecodeTypeSequence(ref BlobReader blobReader) 177ImmutableArray<TType> parameterTypes; 183parameterTypes = ImmutableArray<TType>.Empty; 216public ImmutableArray<TType> DecodeMethodSpecificationSignature(ref BlobReader blobReader) 229public ImmutableArray<TType> DecodeLocalSignature(ref BlobReader blobReader) 254var sizes = ImmutableArray<int>.Empty; 255var lowerBounds = ImmutableArray<int>.Empty; 286ImmutableArray<TType> types = DecodeTypeSequence(ref blobReader);
System\Reflection\Metadata\IL\MethodBodyBlock.cs (9)
19private readonly ImmutableArray<ExceptionRegion> _exceptionRegions; 26ImmutableArray<ExceptionRegion> exceptionRegions, 62public ImmutableArray<ExceptionRegion> ExceptionRegions 72public ImmutableArray<byte> GetILContent() 114ImmutableArray<ExceptionRegion>.Empty, 155ImmutableArray<ExceptionRegion> exceptionHandlers; 180exceptionHandlers = ImmutableArray<ExceptionRegion>.Empty; 192private static ImmutableArray<ExceptionRegion> ReadSmallExceptionHandlers(ref BlobReader memReader, int count) 209private static ImmutableArray<ExceptionRegion> ReadFatExceptionHandlers(ref BlobReader memReader, int count)
System\Reflection\Metadata\Internal\MetadataWriterUtilities.cs (1)
92internal static void SerializeRowCounts(BlobBuilder writer, ImmutableArray<int> rowCounts)
System\Reflection\Metadata\Internal\NamespaceCache.cs (6)
416public ImmutableArray<NamespaceDefinitionHandle>.Builder? Namespaces; 417public ImmutableArray<TypeDefinitionHandle>.Builder? TypeDefinitions; 418public ImmutableArray<ExportedTypeHandle>.Builder? ExportedTypes; 443var namespaces = Namespaces!.ToImmutable(); 446var typeDefinitions = TypeDefinitions!.ToImmutable(); 449var exportedTypes = ExportedTypes!.ToImmutable();
System\Reflection\Metadata\Internal\NamespaceData.cs (6)
13public readonly ImmutableArray<NamespaceDefinitionHandle> NamespaceDefinitions; 14public readonly ImmutableArray<TypeDefinitionHandle> TypeDefinitions; 15public readonly ImmutableArray<ExportedTypeHandle> ExportedTypes; 21ImmutableArray<NamespaceDefinitionHandle> namespaceDefinitions, 22ImmutableArray<TypeDefinitionHandle> typeDefinitions, 23ImmutableArray<ExportedTypeHandle> exportedTypes)
System\Reflection\Metadata\MetadataReader.cs (8)
29private Dictionary<TypeDefinitionHandle, ImmutableArray<TypeDefinitionHandle>>? _lazyNestedTypesMap; 1081public ImmutableArray<byte> GetBlobContent(BlobHandle handle) 1419var groupedNestedTypes = new Dictionary<TypeDefinitionHandle, ImmutableArray<TypeDefinitionHandle>.Builder>(); 1422ImmutableArray<TypeDefinitionHandle>.Builder? builder = null; 1449var nestedTypesMap = new Dictionary<TypeDefinitionHandle, ImmutableArray<TypeDefinitionHandle>>(); 1461internal ImmutableArray<TypeDefinitionHandle> GetNestedTypes(TypeDefinitionHandle typeDef) 1469ImmutableArray<TypeDefinitionHandle> nestedTypes; 1475return ImmutableArray<TypeDefinitionHandle>.Empty;
System\Reflection\Metadata\MetadataReaderProvider.cs (2)
94public static MetadataReaderProvider FromPortablePdbImage(ImmutableArray<byte> image) => FromMetadataImage(image); 104public static MetadataReaderProvider FromMetadataImage(ImmutableArray<byte> image)
System\Reflection\Metadata\PortablePdb\DebugMetadataHeader.cs (2)
10public ImmutableArray<byte> Id { get; } 18internal DebugMetadataHeader(ImmutableArray<byte> id, MethodDefinitionHandle entryPoint, int idStartOffset)
System\Reflection\Metadata\Signatures\ArrayShape.cs (4)
21public ImmutableArray<int> Sizes { get; } 26public ImmutableArray<int> LowerBounds { get; } 28public ArrayShape(int rank, ImmutableArray<int> sizes, ImmutableArray<int> lowerBounds)
System\Reflection\Metadata\Signatures\CustomAttributeValue.cs (4)
10public ImmutableArray<CustomAttributeTypedArgument<TType>> FixedArguments { get; } 11public ImmutableArray<CustomAttributeNamedArgument<TType>> NamedArguments { get; } 13public CustomAttributeValue(ImmutableArray<CustomAttributeTypedArgument<TType>> fixedArguments, ImmutableArray<CustomAttributeNamedArgument<TType>> namedArguments)
System\Reflection\Metadata\Signatures\MethodSignature.cs (2)
40public ImmutableArray<TType> ParameterTypes { get; } 42public MethodSignature(SignatureHeader header, TType returnType, int requiredParameterCount, int genericParameterCount, ImmutableArray<TType> parameterTypes)
System\Reflection\Metadata\TypeName.cs (8)
40private readonly ImmutableArray<TypeName> _genericArguments; 51ImmutableArray<TypeName>.Builder? genericTypeArguments = default, 67? ImmutableArray<TypeName>.Empty 77ImmutableArray<TypeName> genericTypeArguments, 431ImmutableArray<TypeName> GetGenericArguments() => _genericArguments; 467genericTypeArguments: ImmutableArray<TypeName>.Empty, 521public TypeName MakeGenericTypeName(ImmutableArray<TypeName> typeArguments) 537genericTypeArguments: ImmutableArray<TypeName>.Empty,
System\Reflection\Metadata\TypeNameParser.cs (1)
92ImmutableArray<TypeName>.Builder? genericArgs = null;
System\Reflection\Metadata\TypeSystem\EventDefinition.cs (3)
65ImmutableArray<MethodDefinitionHandle>.Builder? other = null; 94var otherAccessors = other?.ToImmutable() ?? ImmutableArray<MethodDefinitionHandle>.Empty;
System\Reflection\Metadata\TypeSystem\HandleCollections.TypeSystem.cs (6)
1614private readonly ImmutableArray<MethodDefinitionHandle> _others; 1618public ImmutableArray<MethodDefinitionHandle> Others { get { return _others; } } 1620internal PropertyAccessors(int getterRowId, int setterRowId, ImmutableArray<MethodDefinitionHandle> others) 1635private readonly ImmutableArray<MethodDefinitionHandle> _others; 1640public ImmutableArray<MethodDefinitionHandle> Others { get { return _others; } } 1642internal EventAccessors(int adderRowId, int removerRowId, int raiserRowId, ImmutableArray<MethodDefinitionHandle> others)
System\Reflection\Metadata\TypeSystem\MethodSpecification.cs (1)
53public ImmutableArray<TType> DecodeSignature<TType, TGenericContext>(ISignatureTypeProvider<TType, TGenericContext> provider, TGenericContext genericContext)
System\Reflection\Metadata\TypeSystem\NamespaceDefinition.cs (3)
44public ImmutableArray<NamespaceDefinitionHandle> NamespaceDefinitions 52public ImmutableArray<TypeDefinitionHandle> TypeDefinitions 60public ImmutableArray<ExportedTypeHandle> ExportedTypes
System\Reflection\Metadata\TypeSystem\PropertyDefinition.cs (3)
76ImmutableArray<MethodDefinitionHandle>.Builder? other = null; 101var otherAccessors = other?.ToImmutable() ?? ImmutableArray<MethodDefinitionHandle>.Empty;
System\Reflection\Metadata\TypeSystem\StandaloneSignature.cs (1)
46public ImmutableArray<TType> DecodeLocalSignature<TType, TGenericContext>(ISignatureTypeProvider<TType, TGenericContext> provider, TGenericContext genericContext)
System\Reflection\Metadata\TypeSystem\TypeDefinition.cs (1)
193public ImmutableArray<TypeDefinitionHandle> GetNestedTypes()
System\Reflection\PortableExecutable\DebugDirectory\DebugDirectoryBuilder.cs (2)
171public void AddPdbChecksumEntry(string algorithmName, ImmutableArray<byte> checksum) 202private static int WritePdbChecksumData(BlobBuilder builder, string algorithmName, ImmutableArray<byte> checksum)
System\Reflection\PortableExecutable\DebugDirectory\PdbChecksumDebugDirectoryData.cs (2)
19public ImmutableArray<byte> Checksum { get; } 21internal PdbChecksumDebugDirectoryData(string algorithmName, ImmutableArray<byte> checksum)
System\Reflection\PortableExecutable\ManagedPEBuilder.cs (1)
94protected override ImmutableArray<Section> CreateSections()
System\Reflection\PortableExecutable\PEBuilder.cs (13)
18private readonly Lazy<ImmutableArray<Section>> _lazySections; 71_lazySections = new Lazy<ImmutableArray<Section>>(CreateSections); 74protected ImmutableArray<Section> GetSections() 76var sections = _lazySections.Value; 85protected abstract ImmutableArray<Section> CreateSections(); 95var serializedSections = SerializeSections(); 123private ImmutableArray<SerializedSection> SerializeSections() 125var sections = GetSections(); 192private void WriteCoffHeader(BlobBuilder builder, ImmutableArray<SerializedSection> sections, out Blob stampFixup) 222private void WritePEHeader(BlobBuilder builder, PEDirectoriesBuilder directories, ImmutableArray<SerializedSection> sections) 345private static void WriteSectionHeaders(BlobBuilder builder, ImmutableArray<SerializedSection> serializedSections) 392private static int IndexOfSection(ImmutableArray<SerializedSection> sections, SectionCharacteristics characteristics) 405private static int SumRawDataSizes(ImmutableArray<SerializedSection> sections, SectionCharacteristics characteristics)
System\Reflection\PortableExecutable\PEHeaders.cs (3)
19private readonly ImmutableArray<SectionHeader> _sectionHeaders; 178public ImmutableArray<SectionHeader> SectionHeaders 293private ImmutableArray<SectionHeader> ReadSectionHeaders(ref PEBinaryReader reader)
System\Reflection\PortableExecutable\PEMemoryBlock.cs (4)
57public ImmutableArray<byte> GetContent() 59return _block?.GetContentUnchecked(_offset, Length) ?? ImmutableArray<byte>.Empty; 66public ImmutableArray<byte> GetContent(int start, int length) 69return _block?.GetContentUnchecked(_offset + start, length) ?? ImmutableArray<byte>.Empty;
System\Reflection\PortableExecutable\PEReader.cs (5)
230public PEReader(ImmutableArray<byte> peImage) 537public ImmutableArray<DebugDirectoryEntry> ReadDebugDirectory() 544return ImmutableArray<DebugDirectoryEntry>.Empty; 564internal static ImmutableArray<DebugDirectoryEntry> ReadDebugDirectoryEntries(BlobReader reader) 737var entries = ReadDebugDirectory();
System.Reflection.MetadataLoadContext (10)
System\Reflection\TypeLoading\Events\Ecma\EcmaEvent.cs (1)
66ImmutableArray<MethodDefinitionHandle> others = EventDefinition.GetAccessors().Others;
System\Reflection\TypeLoading\General\Ecma\EcmaSignatureTypeProviderForToString.cs (1)
36public string GetGenericInstantiation(string genericType, ImmutableArray<string> typeArguments)
System\Reflection\TypeLoading\General\Ecma\EcmaWrappedTypeProvider.cs (3)
41public RoType GetGenericInstantiation(RoType genericType, ImmutableArray<RoType> typeArguments) 44ImmutableArray<RoType> filteredTypeArguments = ImmutableArray<RoType>.Empty;
System\Reflection\TypeLoading\General\Ecma\MetadataExtensions.cs (1)
16public static ImmutableArray<byte> GetBlobContent(this BlobHandle handle, MetadataReader reader) => reader.GetBlobContent(handle);
System\Reflection\TypeLoading\MethodBase\Ecma\EcmaMethodBody.cs (2)
39ImmutableArray<RoType> sig = sigHandle.GetStandaloneSignature(reader).DecodeLocalSignature(typeProvider, TypeContext); 62ImmutableArray<ExceptionRegion> regions = Block.ExceptionRegions;
System\Reflection\TypeLoading\Modules\Ecma\EcmaModule.TypeProvider.cs (1)
27public RoType GetGenericInstantiation(RoType genericType, ImmutableArray<RoType> typeArguments)
System\Reflection\TypeLoading\Types\RoFunctionPointerType.cs (1)
37ImmutableArray<RoType> sigParameterTypes = signature.ParameterTypes;
System.Text.Json.SourceGeneration (13)
Helpers\KnownTypeSymbols.cs (1)
82public INamedTypeSymbol? ImmutableArrayType => GetOrResolveType(typeof(ImmutableArray<>), ref _ImmutableArrayType);
Helpers\RoslynExtensions.cs (2)
68ImmutableArray<ITypeSymbol> erasedElements = namedType.TupleElements 81ImmutableArray<ITypeSymbol> typeArguments = namedType.TypeArguments;
JsonSourceGenerator.Parser.cs (7)
810ImmutableArray<ITypeSymbol> genericArgs = ((INamedTypeSymbol)type).TypeArguments; 926ImmutableArray<ISymbol> members = currentType.GetMembers(); 1273ImmutableArray<KeyValuePair<string, TypedConstant>> namedArgs = attributeData.NamedArguments; 1293ImmutableArray<TypedConstant> ctorArgs = attributeData.ConstructorArguments; 1299ImmutableArray<TypedConstant> ctorArgs = attributeData.ConstructorArguments; 1305ImmutableArray<TypedConstant> ctorArgs = attributeData.ConstructorArguments; 1312ImmutableArray<TypedConstant> ctorArgs = attributeData.ConstructorArguments;
JsonSourceGenerator.Roslyn3.11.cs (1)
146public Action<ImmutableArray<ContextGenerationSpec>>? OnSourceEmitting { get; init; }
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (2)
160public static ImmutableArray<T> ToImmutableArray<T>(this ReadOnlySpan<T> span) 164case 0: return ImmutableArray<T>.Empty;
System.Text.RegularExpressions.Generator (17)
RegexGenerator.cs (5)
47IncrementalValueProvider<ImmutableArray<object>> results = 361private sealed class ObjectImmutableArraySequenceEqualityComparer : IEqualityComparer<ImmutableArray<object>> 363public bool Equals(ImmutableArray<object> left, ImmutableArray<object> right) 385public int GetHashCode([DisallowNull] ImmutableArray<object> obj)
RegexGenerator.Parser.cs (2)
62ImmutableArray<AttributeData> boundAttributes = context.Attributes; 74ImmutableArray<TypedConstant> items = generatedRegexAttr.ConstructorArguments;
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (2)
160public static ImmutableArray<T> ToImmutableArray<T>(this ReadOnlySpan<T> span) 164case 0: return ImmutableArray<T>.Empty;
UpgradeToGeneratedRegexAnalyzer.cs (3)
30public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(DiagnosticDescriptors.UseRegexSourceGeneration); 69ImmutableArray<ISymbol> allMembers = regexTypeSymbol.GetMembers(); 152private static bool ValidateParameters(ImmutableArray<IArgumentOperation> arguments)
UpgradeToGeneratedRegexCodeFixer.cs (5)
35public override ImmutableArray<string> FixableDiagnosticIds => ImmutableArray.Create(DiagnosticDescriptors.UseRegexSourceGeneration.Id); 161ImmutableArray<IArgumentOperation> operationArguments; 255static string? GetRegexPatternFromArgument(ImmutableArray<IArgumentOperation> arguments) 266static RegexOptions GetRegexOptionsFromArgument(ImmutableArray<IArgumentOperation> arguments) 276static SyntaxNode? GetNode(ImmutableArray<IArgumentOperation> arguments, SyntaxGenerator generator, string parameterName)
System.Windows.Forms (3)
System\Windows\Forms\Internal\TypeExtensions.cs (3)
114ImmutableArray<TypeName> genericNames = typeName.GetGenericArguments(); 196ImmutableArray<TypeName> genericNamesY = y.GetGenericArguments(); 197ImmutableArray<TypeName> genericNamesX = x.GetGenericArguments();
System.Windows.Forms.Analyzers (1)
System\Windows\Forms\Analyzers\AppManifestAnalyzer.cs (1)
16public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics
System.Windows.Forms.Analyzers.CodeFixes.CSharp (1)
System\Windows\Forms\CSharp\CodeFixes\AddDesignerSerializationVisibility\AddDesignerSerializationVisibilityCodeFixProvider.cs (1)
24public sealed override ImmutableArray<string> FixableDiagnosticIds
System.Windows.Forms.Analyzers.CodeFixes.VisualBasic (1)
AddDesignerSerializationVisibility\AddDesignerSerializationVisibilityCodeFixProvider.vb (1)
27Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String)
System.Windows.Forms.Analyzers.CSharp (3)
System\Windows\Forms\CSharp\Analyzers\AvoidPassingTaskWithoutCancellationToken\AvoidPassingTaskWithoutCancellationTokenAnalyzer.cs (1)
20public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics
System\Windows\Forms\CSharp\Analyzers\MissingPropertySerializationConfiguration\MissingPropertySerializationConfigurationAnalyzer.cs (1)
15public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics
System\Windows\Forms\CSharp\Generators\ApplicationConfiguration\ApplicationConfigurationGenerator.cs (1)
84IncrementalValueProvider<(OutputKind OutputKind, Collections.Immutable.ImmutableArray<string?> ProjectNamespaces, ApplicationConfig? ApplicationConfig, Diagnostic? ApplicationConfigDiagnostics)> inputs
System.Windows.Forms.Analyzers.VisualBasic (2)
Analyzers\AvoidPassingTaskWithoutCancellationToken\AvoidPassingTaskWithoutCancellationTokenAnalyzer.vb (1)
20Public Overrides ReadOnly Property SupportedDiagnostics As ImmutableArray(Of DiagnosticDescriptor)
Analyzers\MissingPropertySerializationConfiguration\MissingPropertySerializationConfigurationDiagnosticAnalyzer.vb (1)
15Public Overrides ReadOnly Property SupportedDiagnostics As ImmutableArray(Of DiagnosticDescriptor)
System.Windows.Forms.PrivateSourceGenerators (5)
System\Windows\Forms\SourceGenerators\EnumValidationGenerator.cs (1)
198private static IEnumerable<EnumValidationInfo> GetEnumValidationInfo(Compilation compilation, ImmutableArray<SyntaxNode> argumentsToValidate, CancellationToken cancellationToken)
System\Windows\Forms\SourceGenerators\EnumValidationInfo.cs (1)
12var values = GetElementValues(enumType).OrderBy(e => e).Distinct().ToImmutableArray();
System\Windows\Forms\SourceGenerators\EquatableArray`1.cs (3)
11public ImmutableArray<T> Values { get; } 13public EquatableArray(ImmutableArray<T> values) 28public ImmutableArray<T>.Enumerator GetEnumerator()
System.Windows.Forms.PrivateSourceGenerators.Tests (1)
EnumValidationTests.cs (1)
308driver.RunGeneratorsAndUpdateCompilation(compilation, out Compilation outputCompilation, out ImmutableArray<Diagnostic> diagnostics);
System.Windows.Forms.UI.IntegrationTests (3)
Infra\ScreenRecordService.cs (3)
160(ReadOnlyMemory<byte> signature, ReadOnlyMemory<byte> ihdr, ImmutableArray<ReadOnlyMemory<byte>> idat, ReadOnlyMemory<byte> iend) firstEncoded = EncodeFrame(firstFrame.image); 371(ReadOnlyMemory<byte> _, ReadOnlyMemory<byte> _, ImmutableArray<ReadOnlyMemory<byte>> idats, ReadOnlyMemory<byte> _) = EncodeFrame(frame); 407private static (ReadOnlyMemory<byte> signature, ReadOnlyMemory<byte> ihdr, ImmutableArray<ReadOnlyMemory<byte>> idat, ReadOnlyMemory<byte> iend) EncodeFrame(Bitmap frame)
VBCSCompiler (2)
src\Compilers\Server\VBCSCompiler\MetadataCache.cs (2)
37private ImmutableArray<ModuleMetadata> GetAllModules(ModuleMetadata manifestModule, string assemblyDir) 79var allModules = GetAllModules(primaryModule, Path.GetDirectoryName(fullPath)!);
VBCSCompiler.UnitTests (13)
AnalyzerConsistencyCheckerTests.cs (11)
44private TempFile CreateNetStandardDll(TempDirectory directory, string assemblyName, string version, ImmutableArray<byte> publicKey, string? extraSource = null) 89var analyzerReferences = ImmutableArray.Create(new CommandLineAnalyzerReference("Alpha.dll")); 99var analyzerReferences = ImmutableArray.Create( 115var key = NetStandard20.References.netstandard.GetAssemblyIdentity().PublicKey; 119var analyzerReferences = ImmutableArray.Create( 140var key = NetStandard20.References.netstandard.GetAssemblyIdentity().PublicKey; 184var analyzerReferences = ImmutableArray.Create( 207var analyzerReferences = ImmutableArray.Create( 225var analyzerReferences = ImmutableArray.Create( 237var key = NetStandard20.References.netstandard.GetAssemblyIdentity().PublicKey; 240var analyzerReferences = ImmutableArray.Create(new CommandLineAnalyzerReference(compFile.Path));
ServerUtil.cs (2)
29ImmutableArray<BuildRequest.Argument>.Empty); 34ImmutableArray<BuildRequest.Argument>.Empty);
VisualBasicSyntaxGenerator (4)
Grammar\GrammarGenerator.vb (4)
17Private _lexicalRules As ImmutableArray(Of String) 18Private _majorRules As ImmutableArray(Of String) 357Public ReadOnly ReferencedRules As ImmutableArray(Of String) 361Me.ReferencedRules = If(referencedRules Is Nothing, ImmutableArray(Of String).Empty, referencedRules.ToImmutableArray())