42 instantiations of ImmutableArray
dotnet (2)
_generated\29\RunFileApiJsonSerializerContext.ImmutableArraySimpleDiagnostic.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Immutable.ImmutableArray<global::Microsoft.DotNet.FileBasedPrograms.SimpleDiagnostic>(),
_generated\44\RunFileBuildCacheJsonSerializerContext.ImmutableArrayString.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Immutable.ImmutableArray<string>(),
dotnet-aot (1)
_generated\52\RunFileBuildCacheJsonSerializerContext.ImmutableArrayString.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Immutable.ImmutableArray<string>(),
Microsoft.Extensions.AI.Abstractions.Tests (1)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\TestTypesContext.ImmutableArrayInt32.g.cs (1)
33ObjectCreator = () => new global::System.Collections.Immutable.ImmutableArray<int>(),
Shared.Tests (1)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\TestTypesContext.ImmutableArrayInt32.g.cs (1)
33ObjectCreator = () => new global::System.Collections.Immutable.ImmutableArray<int>(),
System.Collections.Immutable (37)
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)
43public static readonly ImmutableArray<T> Empty = new ImmutableArray<T>(new T[0]); 340return new ImmutableArray<T>(items.array); 354return new ImmutableArray<TOther>((TOther[])(object)array!); 378return new ImmutableArray<TOther>((this.array as TOther[]));
System\Collections\Immutable\ImmutableArray.cs (15)
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); 229return new ImmutableArray<T>(array); 260return new ImmutableArray<T>(array); 290return new ImmutableArray<TResult>(array); 324return new ImmutableArray<TResult>(array); 358return new ImmutableArray<TResult>(array); 396return new ImmutableArray<TResult>(array);
System\Collections\Immutable\ImmutableInterlocked.cs (4)
131ImmutableArray<T> newImmutableArray = transformer(new ImmutableArray<T>(oldArray)); 178ImmutableArray<T> newImmutableArray = transformer(new ImmutableArray<T>(oldArray), transformerArgument); 205return new ImmutableArray<T>(Interlocked.Exchange(ref Unsafe.AsRef(in location.array), value.array)); 219return new ImmutableArray<T>(Interlocked.CompareExchange(ref Unsafe.AsRef(in location.array), value.array, comparand.array));
System\Runtime.InteropServices\ImmutableCollectionsMarshal.cs (1)
34return new(array);
37411 references to ImmutableArray
aspire-managed (1)
NuGet\Commands\RestoreCommand.cs (1)
343var dependencies = packages.Select(p => new LibraryDependency
Aspire.Dashboard (33)
Components\Pages\ConsoleLogs.razor.cs (1)
771var pauseIntervals = PauseManager.ConsoleLogPauseIntervals;
Model\PauseManager.cs (3)
15private ImmutableArray<PauseInterval> _consoleLogPauseIntervals = ImmutableArray<PauseInterval>.Empty; 19public ImmutableArray<PauseInterval> ConsoleLogPauseIntervals
Model\ResourceGraph\ResourceDto.cs (1)
18public required ImmutableArray<string> ReferencedNames { get; init; }
Model\ResourceOutgoingPeerResolver.cs (2)
105private static bool AreUrlsEquivalent(ImmutableArray<UrlViewModel> urls1, ImmutableArray<UrlViewModel> urls2)
Model\ResourceSourceViewModel.cs (3)
49if (resourceViewModel.TryGetAppArgs(out var launchArguments)) 57if (resourceViewModel.TryGetAppArgsSensitivity(out var areArgumentsSensitive)) 74if (resourceViewModel.TryGetExecutableArguments(out var executableArguments) && !resourceViewModel.IsProject())
Model\ResourceViewModel.cs (12)
21private readonly ImmutableArray<HealthReportViewModel> _healthReports = []; 23private Lazy<ImmutableArray<string>>? _cachedAddresses; 35public required ImmutableArray<EnvironmentVariableViewModel> Environment { get; init; } 36public required ImmutableArray<UrlViewModel> Urls { get; init; } 37public required ImmutableArray<VolumeViewModel> Volumes { get; init; } 38public required ImmutableArray<RelationshipViewModel> Relationships { get; init; } 40public required ImmutableArray<CommandViewModel> Commands { get; init; } 59public ImmutableArray<string> CachedAddresses => (_cachedAddresses ??= new Lazy<ImmutableArray<string>>(ExtractResourceAddresses)).Value; 61private ImmutableArray<string> ExtractResourceAddresses() 93public required ImmutableArray<HealthReportViewModel> HealthReports 141internal static HealthStatus? ComputeHealthStatus(ImmutableArray<HealthReportViewModel> healthReports, KnownResourceState? state)
Model\ResourceViewModelExtensions.cs (5)
87public static bool TryGetExecutableArguments(this ResourceViewModel resource, out ImmutableArray<string> arguments) 92public static bool TryGetAppArgs(this ResourceViewModel resource, out ImmutableArray<string> arguments) 97public static bool TryGetAppArgsSensitivity(this ResourceViewModel resource, out ImmutableArray<bool> argParams) 114private static bool TryGetCustomDataStringArray(this ResourceViewModel resource, string key, out ImmutableArray<string> strings) 139private static bool TryGetCustomDataBoolArray(this ResourceViewModel resource, string key, out ImmutableArray<bool> bools)
ServiceClient\IDashboardClient.cs (1)
77ImmutableArray<ResourceViewModel> InitialState,
ServiceClient\Partials.cs (5)
77ImmutableArray<EnvironmentVariableViewModel> GetEnvironment() 84ImmutableArray<RelationshipViewModel> GetRelationships() 91ImmutableArray<UrlViewModel> GetUrls() 110ImmutableArray<VolumeViewModel> GetVolumes() 117ImmutableArray<CommandViewModel> GetCommands()
Aspire.Dashboard.Components.Tests (7)
Pages\ResourcesTests.cs (1)
361ImmutableArray<HealthReportViewModel>? healthReports,
tests\Shared\DashboardModel\ModelTestHelpers.cs (6)
17ImmutableArray<UrlViewModel>? urls = null, 19ImmutableArray<EnvironmentVariableViewModel>? environment = null, 24ImmutableArray<CommandViewModel>? commands = null, 25ImmutableArray<RelationshipViewModel>? relationships = null, 29ImmutableArray<VolumeViewModel>? volumes = null, 30ImmutableArray<HealthReportViewModel>? healthReports = null)
Aspire.Dashboard.Tests (14)
Mcp\AspireResourceMcpToolsTests.cs (2)
190commands: ImmutableArray<CommandViewModel>.Empty, 206var resource = ModelTestHelpers.CreateResource(resourceName: "app1", commands: ImmutableArray<CommandViewModel>.Empty);
Model\ResourceGraphMapperTests.cs (5)
23var resource2 = ModelTestHelpers.CreateResource("app2-123456", displayName: "app2", relationships: ImmutableArray<RelationshipViewModel>.Empty); 43var resource21 = ModelTestHelpers.CreateResource("app2-123456", displayName: "app2", relationships: ImmutableArray<RelationshipViewModel>.Empty); 44var resource22 = ModelTestHelpers.CreateResource("app2-654321", displayName: "app2", relationships: ImmutableArray<RelationshipViewModel>.Empty); 65var resource = ModelTestHelpers.CreateResource("app1-abcxyc", displayName: "app1", relationships: ImmutableArray<RelationshipViewModel>.Empty); 83var hiddenResource = ModelTestHelpers.CreateResource("hidden-app", displayName: "hidden-app", relationships: ImmutableArray<RelationshipViewModel>.Empty, hidden: true);
Model\ResourceViewModelTests.cs (1)
29var reports = healthStatusStrings?.Select<string?, HealthReportViewModel>((h, i) => new HealthReportViewModel(i.ToString(), h is null ? null : System.Enum.Parse<DiagnosticsHealthStatus>(h), null, null)).ToImmutableArray() ?? [];
tests\Shared\DashboardModel\ModelTestHelpers.cs (6)
17ImmutableArray<UrlViewModel>? urls = null, 19ImmutableArray<EnvironmentVariableViewModel>? environment = null, 24ImmutableArray<CommandViewModel>? commands = null, 25ImmutableArray<RelationshipViewModel>? relationships = null, 29ImmutableArray<VolumeViewModel>? volumes = null, 30ImmutableArray<HealthReportViewModel>? healthReports = null)
Aspire.Hosting (60)
ApplicationModel\CustomResourceSnapshot.cs (10)
18private readonly ImmutableArray<HealthReportSnapshot> _healthReports = []; 34public required ImmutableArray<ResourcePropertySnapshot> Properties { get; init; } 91public ImmutableArray<HealthReportSnapshot> HealthReports 104public ImmutableArray<EnvironmentVariableSnapshot> EnvironmentVariables { get; init; } = []; 109public ImmutableArray<UrlSnapshot> Urls { get; init; } = []; 114public ImmutableArray<VolumeSnapshot> Volumes { get; init; } = []; 119public ImmutableArray<ResourceCommandSnapshot> Commands { get; init; } = []; 124public ImmutableArray<RelationshipSnapshot> Relationships { get; init; } = []; 147internal static HealthStatus? ComputeHealthStatus(ImmutableArray<HealthReportSnapshot> healthReports, string? state) 438public static ImmutableArray<RelationshipSnapshot> BuildRelationships(IResource resource)
ApplicationModel\DcpInstancesAnnotation.cs (2)
11internal class DcpInstancesAnnotation(ImmutableArray<DcpInstance> instances) : IResourceAnnotation 13public ImmutableArray<DcpInstance> Instances => instances;
ApplicationModel\ResourceExtensions.cs (2)
1095internal static bool TryGetInstances(this IResource resource, out ImmutableArray<DcpInstance> instances) 1114if (resource.TryGetInstances(out var instances))
ApplicationModel\ResourceNotificationService.cs (2)
740ImmutableArray<ResourceCommandSnapshot>.Builder? builder = null; 788static ResourceCommandSnapshot? FindByName(ImmutableArray<ResourceCommandSnapshot> commands, string name)
Dashboard\ResourcePublisher.cs (1)
112ImmutableArray<ResourceSnapshot> InitialState,
Dashboard\ResourceSnapshot.cs (6)
25public required ImmutableArray<EnvironmentVariableSnapshot> Environment { get; init; } 26public required ImmutableArray<VolumeSnapshot> Volumes { get; init; } 27public required ImmutableArray<UrlSnapshot> Urls { get; init; } 28public required ImmutableArray<RelationshipSnapshot> Relationships { get; init; } 29public required ImmutableArray<HealthReportSnapshot> HealthReports { get; init; } 30public required ImmutableArray<ResourceCommandSnapshot> Commands { get; init; }
Dcp\DcpExecutor.cs (4)
923var containerTunnelProxies = _appResources.Where(r => r.DcpResource is ContainerNetworkTunnelProxy { }).ToImmutableArray(); 967var toCreate = _appResources.Select(r => r.DcpResource).OfType<RT>().ToImmutableArray(); 2008var aanns = container.Annotations.OfType<ContainerNetworkAliasAnnotation>().ToImmutableArray(); 2037if (!resource.TryGetInstances(out var instances))
Dcp\DcpNameGenerator.cs (1)
58private static void AddInstancesAnnotation(IResource resource, ImmutableArray<DcpInstance> instances)
Dcp\ResourceSnapshotBuilder.cs (20)
23var urls = GetUrls(container, container.Status?.State); 24var volumes = GetVolumes(container); 26var environment = GetEnvironmentVariables(container.Status?.EffectiveEnv ?? container.Spec.Env, container.Spec.Env); 34var relationships = ImmutableArray<RelationshipSnapshot>.Empty; 36(ImmutableArray<string> Args, ImmutableArray<int>? ArgsAreSensitive, bool IsSensitive)? launchArguments = null; 70ImmutableArray<int> GetPorts() 100var environment = GetEnvironmentVariables(executable.Status?.EffectiveEnv, executable.Spec.Env); 103var relationships = ImmutableArray<RelationshipSnapshot>.Empty; 146var urls = GetUrls(executable, executable.Status?.State); 148var environment = GetEnvironmentVariables(executable.Status?.EffectiveEnv, executable.Spec.Env); 150var relationships = ImmutableArray<RelationshipSnapshot>.Empty; 206private static (ImmutableArray<string> Args, ImmutableArray<int>? ArgsAreSensitive, bool IsSensitive)? GetLaunchArgs(CustomResource resource) 231private ImmutableArray<UrlSnapshot> GetUrls(CustomResource resource, string? resourceState) 324private static ImmutableArray<VolumeSnapshot> GetVolumes(CustomResource resource) 334private static ImmutableArray<EnvironmentVariableSnapshot> GetEnvironmentVariables(List<EnvVar>? effectiveSource, List<EnvVar>? specSource)
ExternalServiceBuilderExtensions.cs (2)
158static ImmutableArray<UrlSnapshot> AddUrlIfNotPresent(ImmutableArray<UrlSnapshot> urlSnapshots, Uri uri)
Health\ResourceHealthCheckService.cs (4)
199var healthReports = MergeHealthReports(s.HealthReports, report, lastRunAt); 234private static bool ContainsAnyHealthReportChange(HealthReport report, ImmutableArray<HealthReportSnapshot> latestHealthReportSnapshots) 287private static ImmutableArray<HealthReportSnapshot> MergeHealthReports(ImmutableArray<HealthReportSnapshot> healthReports, HealthReport report, DateTime runAt)
Orchestrator\ApplicationOrchestrator.cs (2)
628var relationships = ApplicationModel.ResourceSnapshotBuilder.BuildRelationships(resource); 651private static ImmutableArray<HealthReportSnapshot> GetInitialHealthReports(IResource resource)
src\Shared\CustomResourceSnapshotExtensions.cs (4)
11internal static ImmutableArray<ResourcePropertySnapshot> SetResourceProperty(this ImmutableArray<ResourcePropertySnapshot> properties, string name, object value, bool IsSensitive = false) 34internal static ImmutableArray<ResourcePropertySnapshot> SetResourcePropertyRange(this ImmutableArray<ResourcePropertySnapshot> properties, IEnumerable<ResourcePropertySnapshot> newValues)
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)
107var types = _compilation.GetTypesByMetadataName(metadataName);
Aspire.Hosting.Azure (6)
Provisioning\Provisioners\BicepProvisioner.cs (2)
95ImmutableArray<ResourcePropertySnapshot> props = [ 286ImmutableArray<ResourcePropertySnapshot> properties = [
src\Shared\CustomResourceSnapshotExtensions.cs (4)
11internal static ImmutableArray<ResourcePropertySnapshot> SetResourceProperty(this ImmutableArray<ResourcePropertySnapshot> properties, string name, object value, bool IsSensitive = false) 34internal static ImmutableArray<ResourcePropertySnapshot> SetResourcePropertyRange(this ImmutableArray<ResourcePropertySnapshot> properties, IEnumerable<ResourcePropertySnapshot> newValues)
Aspire.Hosting.Integration.Analyzers (5)
AspireExportAnalyzer.cs (3)
26public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => Diagnostics.SupportedDiagnostics; 700ImmutableArray<AttributeData> attributes, 732var types = typesArg.Values;
AspireExportAnalyzer.Diagnostics.cs (1)
114public static readonly ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics = ImmutableArray.Create(
src\Aspire.Hosting.Analyzers\Infrastructure\WellKnownTypes.cs (1)
107var types = _compilation.GetTypesByMetadataName(metadataName);
Aspire.Hosting.Tests (3)
Health\HealthStatusTests.cs (1)
26var reports = healthStatusStrings?.Select<string?, HealthReportSnapshot>((h, i) => new HealthReportSnapshot(i.ToString(), h is null ? null : Enum.Parse<HealthStatus>(h), null, null)).ToImmutableArray() ?? [];
ResourceExtensionsTests.cs (2)
527var result = resource.Resource.TryGetInstances(out var instances); 543var result = resource.Resource.TryGetInstances(out var instances);
CodeStyleConfigFileGenerator (3)
Program.cs (3)
40var assemblyList = args[3].Split([';'], 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 = [
CSharpSyntaxGenerator (2)
Grammar\GrammarGenerator.cs (2)
380public readonly ImmutableArray<string> ReferencedRules = referencedRules?.ToImmutableArray() ?? ImmutableArray<string>.Empty;
dotnet (91)
_generated\24\RunFileApiJsonSerializerContext.Project.g.cs (6)
32ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.Project(){ Content = (string)args[0], ProjectPath = (string)args[1], Diagnostics = (global::System.Collections.Immutable.ImmutableArray<global::Microsoft.DotNet.FileBasedPrograms.SimpleDiagnostic>)args[2] }, 99var info2 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Immutable.ImmutableArray<global::Microsoft.DotNet.FileBasedPrograms.SimpleDiagnostic>> 114AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.Project).GetProperty("Diagnostics", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Immutable.ImmutableArray<global::Microsoft.DotNet.FileBasedPrograms.SimpleDiagnostic>), global::System.Array.Empty<global::System.Type>(), null), 117properties[2] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Immutable.ImmutableArray<global::Microsoft.DotNet.FileBasedPrograms.SimpleDiagnostic>>(options, info2); 188ParameterType = typeof(global::System.Collections.Immutable.ImmutableArray<global::Microsoft.DotNet.FileBasedPrograms.SimpleDiagnostic>), 200private static extern void __set_Project_Diagnostics(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.Project obj, global::System.Collections.Immutable.ImmutableArray<global::Microsoft.DotNet.FileBasedPrograms.SimpleDiagnostic> value);
_generated\29\RunFileApiJsonSerializerContext.ImmutableArraySimpleDiagnostic.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Immutable.ImmutableArray<global::Microsoft.DotNet.FileBasedPrograms.SimpleDiagnostic>>? _ImmutableArraySimpleDiagnostic; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Immutable.ImmutableArray<global::Microsoft.DotNet.FileBasedPrograms.SimpleDiagnostic>> ImmutableArraySimpleDiagnostic 22get => _ImmutableArraySimpleDiagnostic ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Immutable.ImmutableArray<global::Microsoft.DotNet.FileBasedPrograms.SimpleDiagnostic>>)Options.GetTypeInfo(typeof(global::System.Collections.Immutable.ImmutableArray<global::Microsoft.DotNet.FileBasedPrograms.SimpleDiagnostic>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Immutable.ImmutableArray<global::Microsoft.DotNet.FileBasedPrograms.SimpleDiagnostic>> Create_ImmutableArraySimpleDiagnostic(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Immutable.ImmutableArray<global::Microsoft.DotNet.FileBasedPrograms.SimpleDiagnostic>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Immutable.ImmutableArray<global::Microsoft.DotNet.FileBasedPrograms.SimpleDiagnostic>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Immutable.ImmutableArray<global::Microsoft.DotNet.FileBasedPrograms.SimpleDiagnostic>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateImmutableEnumerableInfo<global::System.Collections.Immutable.ImmutableArray<global::Microsoft.DotNet.FileBasedPrograms.SimpleDiagnostic>, global::Microsoft.DotNet.FileBasedPrograms.SimpleDiagnostic>(options, info, createRangeFunc: global::System.Collections.Immutable.ImmutableArray.CreateRange); 47private void ImmutableArraySimpleDiagnosticSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Immutable.ImmutableArray<global::Microsoft.DotNet.FileBasedPrograms.SimpleDiagnostic> value)
_generated\33\RunFileApiJsonSerializerContext.GetJsonTypeInfo.g.cs (1)
70if (type == typeof(global::System.Collections.Immutable.ImmutableArray<global::Microsoft.DotNet.FileBasedPrograms.SimpleDiagnostic>))
_generated\40\RunFileBuildCacheJsonSerializerContext.RunFileBuildCacheEntry.g.cs (6)
97var info2 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Immutable.ImmutableArray<string>> 112AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Run.RunFileBuildCacheEntry).GetProperty("Directives", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Immutable.ImmutableArray<string>), global::System.Array.Empty<global::System.Type>(), null), 115properties[2] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Immutable.ImmutableArray<string>>(options, info2); 219var info8 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Immutable.ImmutableArray<string>> 234AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Run.RunFileBuildCacheEntry).GetProperty("CscArguments", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Immutable.ImmutableArray<string>), global::System.Array.Empty<global::System.Type>(), null), 237properties[8] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Immutable.ImmutableArray<string>>(options, info8);
_generated\44\RunFileBuildCacheJsonSerializerContext.ImmutableArrayString.g.cs (9)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Immutable.ImmutableArray<string>>? _ImmutableArrayString; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Immutable.ImmutableArray<string>> ImmutableArrayString 22get => _ImmutableArrayString ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Immutable.ImmutableArray<string>>)Options.GetTypeInfo(typeof(global::System.Collections.Immutable.ImmutableArray<string>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Immutable.ImmutableArray<string>> Create_ImmutableArrayString(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Immutable.ImmutableArray<string>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Immutable.ImmutableArray<string>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Immutable.ImmutableArray<string>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateImmutableEnumerableInfo<global::System.Collections.Immutable.ImmutableArray<string>, string>(options, info, createRangeFunc: global::System.Collections.Immutable.ImmutableArray.CreateRange);
_generated\47\RunFileBuildCacheJsonSerializerContext.GetJsonTypeInfo.g.cs (1)
42if (type == typeof(global::System.Collections.Immutable.ImmutableArray<string>))
Commands\DotNetCommandFactory.cs (3)
60Func<MSBuildArgs, ImmutableArray<string>, MSBuildArgs>? transformer = null) 63LoggerUtility.SeparateLoggerArguments(args, out var loggerArgs, out var nonLoggerArgs);
Commands\Package\VirtualProjectPackageReflector.cs (1)
41var directives = editor.Directives;
Commands\Project\Convert\ProjectConvertCommand.cs (18)
63var evaluatedDirectives = result.EvaluatedDirectives; 118ImmutableArray<CSharpDirective> fileDirectives; 140var includeItems = (await FindIncludedItemsAsync(fileBuilder, fileProjectInstance, sourceFile).ToArrayAsync()).ToImmutableArray(); 166var projectDirectives = UpdateDirectives(fileDirectives, sourceDirectory, outputDirectory); 169var explicitProjectItems = FindExplicitProjectItems( 184ImmutableArray<CSharpDirective> projectDirectives, 185ImmutableArray<VirtualProjectBuilder.ExplicitProjectItem> explicitProjectItems = default) 240void CopyIncludedItems(ImmutableArray<IncludedItem> items, string outputDirectory) 275async ValueTask ConvertReferencedFilesAsync(ImmutableArray<CSharpDirective> directives, string sourceDirectory) 304async ValueTask ValidateRefTargetDirectoriesAsync(ImmutableArray<CSharpDirective> directives, string sourceDirectory, HashSet<string> visited, HashSet<string> usedFolderNames) 340var refDirectives = result.EvaluatedDirectives; 351var mapping = await fileBuilder.GetItemMappingAsync(fileProjectInstance, VirtualProjectBuildingCommand.ThrowingReporter); 409ImmutableArray<VirtualProjectBuilder.ExplicitProjectItem> FindExplicitProjectItems( 413ImmutableArray<IncludedItem> includeItems) 474ImmutableArray<CSharpDirective> UpdateDirectives(ImmutableArray<CSharpDirective> directives, string? sourceDirectory = null, string? outputDirectory = null) 571ImmutableArray<CSharpDirective> EvaluatedDirectives, 572ImmutableArray<IncludedItem> IncludeItems);
Commands\Run\Api\RunApiCommand.cs (1)
171public required ImmutableArray<SimpleDiagnostic> Diagnostics { get; init; }
Commands\Run\CSharpCompilerCommand.cs (3)
33private static readonly ImmutableArray<string> s_pathOptions = 69public required ImmutableArray<string> CscArguments { get; init; } 210internal static string WriteCscRspFile(string artifactsPath, ImmutableArray<string> cscArguments)
Commands\Run\FileBasedAppRunPlan.cs (2)
32private static readonly ImmutableArray<(string Name, bool IsMSBuildFile)> s_implicitBuildFiles = 55/// This is an <see cref="IEnumerable{T}"/> rather than <see cref="ImmutableArray{T}"/> to avoid boxing at the use site.
Commands\Run\FileBasedAppRunPlanInputs.cs (1)
25ImmutableArray<string> Directives,
Commands\Run\FileBasedAppSourceEditor.cs (1)
31public ImmutableArray<CSharpDirective> Directives
Commands\Run\RunCommand.cs (6)
789SeparateApplicationLoggerArguments(parseResult, applicationArguments, out var loggerArgs, out var nonLoggerArgs); 916out ImmutableArray<string> loggerArgs, 917out ImmutableArray<string> nonLoggerArgs) 932LoggerUtility.SeparateLoggerArguments(applicationArguments.Take(countBeforeDoubleDash), out loggerArgs, out var nonLoggerArgsBeforeDoubleDash); 1048var directives = projectBuilder.EvaluatedDirectives;
Commands\Run\RunFileBuildCacheEntry.cs (2)
35public ImmutableArray<string> Directives { get; set; } = []; 61public ImmutableArray<string> CscArguments { get; set; } = [];
Commands\Run\RunTelemetry.cs (4)
143public static int CountSdks(ImmutableArray<CSharpDirective> directives) 161public static int CountPackageReferences(ImmutableArray<CSharpDirective> directives) 177public static int CountProjectReferences(ImmutableArray<CSharpDirective> directives) 213public static int CountAdditionalProperties(ImmutableArray<CSharpDirective> directives)
Commands\Run\VirtualProjectBuildingCommand.cs (5)
66public ImmutableArray<CSharpDirective> Directives 86public ImmutableArray<CSharpDirective> EvaluatedDirectives { get; private set; } 491var mapping = Builder.GetItemMappingAsync(projectInstance.Wrap(), ErrorReporters.IgnoringReporter).AsTask().GetAwaiter().GetResult(); 657ImmutableArray<CSharpDirective> directives = Directives; 659ImmutableArray<string> cacheDirectives = canCache
Commands\Test\MTP\MicrosoftTestingPlatformTestCommand.cs (3)
266ImmutableArray<string>.Builder remainingArguments = ImmutableArray.CreateBuilder<string>(); 324ImmutableArray<string> testApplicationArguments, 456private static bool HasForwardedOption(ImmutableArray<string> arguments, string canonicalOption)
Commands\Test\MTP\MSBuildUtility.cs (3)
216LoggerUtility.SeparateLoggerArguments(parseResult.UnmatchedTokens, out var loggerArgs, out var otherArgs); 281private static (string? PositionalProjectOrSolution, string? PositionalTestModules) GetPositionalArguments(ref ImmutableArray<string> otherArgs)
Commands\Test\MTP\Options.cs (1)
61ImmutableArray<string> TestApplicationArguments,
Commands\Test\VSTest\VSTestArgumentConverter.cs (2)
315private static readonly ImmutableArray<string> s_blameArgList 324private static readonly ImmutableArray<string> s_blameSwitchList
LoggerUtility.cs (2)
66internal static void SeparateLoggerArguments(IEnumerable<string>? args, out ImmutableArray<string> loggerArgs, out ImmutableArray<string> nonLoggerArgs)
dotnet-aot (23)
_generated\48\RunFileBuildCacheJsonSerializerContext.RunFileBuildCacheEntry.g.cs (6)
97var info2 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Immutable.ImmutableArray<string>> 112AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Run.RunFileBuildCacheEntry).GetProperty("Directives", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Immutable.ImmutableArray<string>), global::System.Array.Empty<global::System.Type>(), null), 115properties[2] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Immutable.ImmutableArray<string>>(options, info2); 219var info8 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Immutable.ImmutableArray<string>> 234AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Run.RunFileBuildCacheEntry).GetProperty("CscArguments", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Immutable.ImmutableArray<string>), global::System.Array.Empty<global::System.Type>(), null), 237properties[8] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Immutable.ImmutableArray<string>>(options, info8);
_generated\52\RunFileBuildCacheJsonSerializerContext.ImmutableArrayString.g.cs (9)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Immutable.ImmutableArray<string>>? _ImmutableArrayString; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Immutable.ImmutableArray<string>> ImmutableArrayString 22get => _ImmutableArrayString ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Immutable.ImmutableArray<string>>)Options.GetTypeInfo(typeof(global::System.Collections.Immutable.ImmutableArray<string>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Immutable.ImmutableArray<string>> Create_ImmutableArrayString(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Immutable.ImmutableArray<string>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Immutable.ImmutableArray<string>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Immutable.ImmutableArray<string>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateImmutableEnumerableInfo<global::System.Collections.Immutable.ImmutableArray<string>, string>(options, info, createRangeFunc: global::System.Collections.Immutable.ImmutableArray.CreateRange);
_generated\55\RunFileBuildCacheJsonSerializerContext.GetJsonTypeInfo.g.cs (1)
42if (type == typeof(global::System.Collections.Immutable.ImmutableArray<string>))
src\sdk\src\Cli\dotnet\Commands\Run\FileBasedAppRunPlan.cs (2)
32private static readonly ImmutableArray<(string Name, bool IsMSBuildFile)> s_implicitBuildFiles = 55/// This is an <see cref="IEnumerable{T}"/> rather than <see cref="ImmutableArray{T}"/> to avoid boxing at the use site.
src\sdk\src\Cli\dotnet\Commands\Run\FileBasedAppRunPlanInputs.cs (1)
25ImmutableArray<string> Directives,
src\sdk\src\Cli\dotnet\Commands\Run\RunFileBuildCacheEntry.cs (2)
35public ImmutableArray<string> Directives { get; set; } = []; 61public ImmutableArray<string> CscArguments { get; set; } = [];
src\sdk\src\Cli\dotnet\LoggerUtility.cs (2)
66internal static void SeparateLoggerArguments(IEnumerable<string>? args, out ImmutableArray<string> loggerArgs, out ImmutableArray<string> nonLoggerArgs)
dotnet-format (58)
Analyzers\AnalyzerFinderHelpers.cs (1)
13public static ImmutableArray<CodeFixProvider> LoadFixers(IEnumerable<Assembly> assemblies, string language)
Analyzers\AnalyzerFormatter.cs (16)
58ImmutableArray<DocumentId> formattableDocuments, 70var allFixers = projectAnalyzersAndFixers.Values.SelectMany(analyzersAndFixers => analyzersAndFixers.Fixers).ToImmutableArray(); 119async static Task<ImmutableHashSet<string>> GetFormattablePathsAsync(Solution solution, ImmutableArray<DocumentId> formattableDocuments, CancellationToken cancellationToken) 145ImmutableDictionary<ProjectId, ImmutableArray<DiagnosticAnalyzer>> projectAnalyzers, 160var analyzers = projectAnalyzers[project.Id]; 199ImmutableDictionary<ProjectId, ImmutableArray<DiagnosticAnalyzer>> projectAnalyzers, 200ImmutableArray<CodeFixProvider> allFixers, 210var reportedDiagnostics = projectDiagnostics.SelectMany(kvp => kvp.Value).Distinct().ToImmutableArray(); 221var codefixes = fixersById[diagnosticId]; 240var analyzers = projectAnalyzers[project.Id] 265static ImmutableDictionary<string, ImmutableArray<CodeFixProvider>> CreateFixerMap( 266ImmutableArray<string> diagnosticIds, 267ImmutableArray<CodeFixProvider> fixers) 288internal static async Task<ImmutableDictionary<ProjectId, ImmutableArray<DiagnosticAnalyzer>>> FilterAnalyzersAsync( 299var projectAnalyzers = ImmutableDictionary.CreateBuilder<ProjectId, ImmutableArray<DiagnosticAnalyzer>>(); 311projectAnalyzers.Add(projectId, ImmutableArray<DiagnosticAnalyzer>.Empty);
Analyzers\AnalyzerReferenceInformationProvider.cs (2)
31var analyzerAssemblies = project.AnalyzerReferences 36var analyzers = project.AnalyzerReferences.SelectMany(reference => reference.GetAnalyzers(project.Language)).ToImmutableArray();
Analyzers\AnalyzerRunner.cs (4)
26ImmutableArray<DiagnosticAnalyzer> analyzers, 54var compilerDiagnostics = !fixableCompilerDiagnostics.IsEmpty 58: ImmutableArray<Diagnostic>.Empty; 60ImmutableArray<Diagnostic> diagnostics;
Analyzers\AnalyzersAndFixers.cs (6)
12public ImmutableArray<DiagnosticAnalyzer> Analyzers { get; } 13public ImmutableArray<CodeFixProvider> Fixers { get; } 15public AnalyzersAndFixers(ImmutableArray<DiagnosticAnalyzer> analyzers, ImmutableArray<CodeFixProvider> fixers) 22out ImmutableArray<DiagnosticAnalyzer> analyzers, 23out ImmutableArray<CodeFixProvider> fixers)
Analyzers\CodeStyleInformationProvider.cs (1)
51var codeFixes = AnalyzerFinderHelpers.LoadFixers(references.Select(reference => reference.GetAssembly()), project.Language);
Analyzers\Interfaces\IAnalyzerRunner.cs (1)
24ImmutableArray<DiagnosticAnalyzer> analyzers,
Analyzers\SolutionCodeFixApplier.cs (1)
77var operations = await fixAllAction.GetOperationsAsync(cancellationToken);
CodeFormatter.cs (4)
16private static readonly ImmutableArray<ICodeFormatter> s_codeFormatters = ImmutableArray.Create<ICodeFormatter>( 82var documentIdsWithErrors = formattedFiles.Select(file => file.DocumentId).Distinct().ToImmutableArray(); 145ImmutableArray<DocumentId> formattableDocuments, 167internal static async Task<(int, ImmutableArray<DocumentId>)> DetermineFormattableFilesAsync(
Formatters\DocumentFormatter.cs (7)
35ImmutableArray<DocumentId> formattableDocuments, 41var formattedDocuments = FormatFiles(solution, formattableDocuments, formatOptions, logger, cancellationToken); 60private ImmutableArray<(Document, Task<(SourceText originalText, SourceText? formattedText)>)> FormatFiles( 62ImmutableArray<DocumentId> formattableDocuments, 123ImmutableArray<(Document, Task<(SourceText originalText, SourceText? formattedText)>)> formattedDocuments, 150var fileChanges = GetFileChanges(formatOptions, document, originalText, formattedText, formatOptions.ChangesAreErrors, logger); 159private ImmutableArray<FileChange> GetFileChanges(FormatOptions formatOptions, Document document, SourceText originalText, SourceText formattedText, bool changesAreErrors, ILogger logger)
Formatters\ICodeFormatter.cs (1)
22ImmutableArray<DocumentId> formattableDocuments,
Utilities\EditorConfigFinder.cs (2)
10public static ImmutableArray<string> GetEditorConfigPathsForFiles(ImmutableArray<string> filePaths)
Utilities\SourceFileMatcher.cs (2)
19public ImmutableArray<string> Include { get; } 20public ImmutableArray<string> Exclude { get; }
Workspaces\FolderWorkspace_FolderSolutionLoader.cs (7)
13private static ImmutableArray<ProjectLoader> ProjectLoaders 20var filePaths = GetMatchingFilePaths(absoluteFolderPath, fileMatcher); 21var editorConfigPaths = EditorConfigFinder.GetEditorConfigPathsForFiles(filePaths); 45private static ImmutableArray<string> GetMatchingFilePaths(string folderPath, SourceFileMatcher fileMatcher) 56static bool AreAllFilePaths(ImmutableArray<string> globs) 73static ImmutableArray<string> ValidateFilePaths(string folderPath, ImmutableArray<string> paths)
Workspaces\FolderWorkspace_ProjectLoader.cs (3)
16public virtual ProjectInfo? LoadProjectInfo(string folderPath, ImmutableArray<string> filePaths, ImmutableArray<string> editorConfigPaths) 44static IEnumerable<DocumentInfo> LoadDocuments(ProjectId projectId, ImmutableArray<string> filePaths)
dotnet-sourcelink (3)
dotnet-watch (1)
CommandLine\CommandLineOptions.cs (1)
22private static readonly ImmutableArray<string> s_binaryLogOptionNames = ["-bl", "/bl", "-binaryLogger", "--binaryLogger", "/binaryLogger"];
EventSourceGenerator (1)
EventSourceGenerator.Parser.cs (1)
107ImmutableArray<KeyValuePair<string, TypedConstant>> args = attribute.NamedArguments;
GenerateDocumentationAndConfigFiles (1143)
CodeFixerExtensions.cs (4)
24public static ImmutableArray<CodeFixProvider> GetFixers(this AnalyzerFileReference analyzerFileReference) 28return ImmutableArray<CodeFixProvider>.Empty; 31ImmutableArray<CodeFixProvider>.Builder? builder = null; 67return builder != null ? builder.ToImmutable() : ImmutableArray<CodeFixProvider>.Empty;
Program.cs (7)
283var analyzers = analyzerFileReference.GetAnalyzersForAllLanguages(); 343var customTagsToGenerateRulesets = ImmutableArray.Create( 968var releaseTrackingData = releaseTrackingFilesDataBuilder.ToImmutableArray(); 991ImmutableArray<ReleaseTrackingData> releaseTrackingData) 1014ImmutableArray<ReleaseTrackingData> releaseTrackingData, 1386(ImmutableArray<ReleaseTrackingData> releaseTrackingData, Version version, bool isShippedVersion) releaseTrackingDataAndVersion) 1413(ImmutableArray<ReleaseTrackingData> releaseTrackingData, Version version, bool isShippedVersion)? releaseTrackingDataAndVersion)
src\0bf6ba47805c8821\AbstractMoveDeclarationNearReferenceService.cs (1)
177private static ImmutableArray<SyntaxTrivia> GetMergedTrivia(
src\5f6f2f95b47c3dc6\SemanticModelWorkspaceServiceFactory.SemanticModelWorkspaceService.cs (1)
140var linkedIds = document.GetLinkedDocumentIds();
src\a1065d420d446521\NamingStylePreferencesEditorConfigSerializer.cs (9)
30ImmutableArray<SymbolSpecification> symbolSpecifications, 31ImmutableArray<NamingStyle> namingStyles, 32ImmutableArray<NamingRule> namingRules, 47ImmutableArray<SymbolSpecification> symbolSpecifications, 48ImmutableArray<NamingStyle> namingStyles, 49ImmutableArray<NamingRule> rules, 120ImmutableArray<SymbolSpecification> symbolSpecifications, 121ImmutableArray<NamingStyle> namingStyles) 170private static ImmutableDictionary<NamingRule, string> AssignNamesToNamingStyleRules(ImmutableArray<NamingRule> namingRules, ImmutableDictionary<Guid, string> serializedNameMap)
src\a16f30e1d256badc\AbstractTypeInferenceService.AbstractTypeInferrer.cs (4)
40public ImmutableArray<TypeInferenceInfo> InferTypes(int position) 46public ImmutableArray<TypeInferenceInfo> InferTypes(SyntaxNode expression, bool filterUnusable = true) 73private ImmutableArray<TypeInferenceInfo> Filter(IEnumerable<TypeInferenceInfo> types, bool filterUnusable = true) 106var parameters = type.TypeArguments;
src\b310f676f7308b7f\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (6)
26private readonly ImmutableArray<IParameterSymbol> _parameters; 74ImmutableArray<IParameterSymbol> parameters, 123var parameters = GetParameters(owningSymbol); 139static ImmutableArray<IParameterSymbol> GetParameters(ISymbol owningSymbol) 141var parameters = owningSymbol.GetParameters(); 164var parameters = lambdaOrLocalFunction.GetParameters();
src\roslyn\src\Compilers\Core\Portable\Collections\DictionaryExtensions.cs (3)
93/// the values in the passed builder will be converted to an <see cref="ImmutableArray{T}"/> using <see 97public static ImmutableSegmentedDictionary<K, ImmutableArray<V>> ToImmutableSegmentedDictionaryAndFree<K, V>(this PooledDictionary<K, ArrayBuilder<V>> dictionary) 100var result = ImmutableSegmentedDictionary.CreateBuilder<K, ImmutableArray<V>>();
src\roslyn\src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (3)
143public ImmutableArray<V> this[K k] 153return ImmutableArray<V>.Empty; 270internal ImmutableArray<V> Items
src\roslyn\src\Compilers\Core\Portable\Diagnostic\DiagnosticArrayExtensions.cs (1)
11internal static bool HasAnyErrors<T>(this ImmutableArray<T> diagnostics) where T : Diagnostic
src\roslyn\src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
729public static string NormalizePathPrefix(string filePath, ImmutableArray<KeyValuePair<string, string>> pathMap)
src\roslyn\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\roslyn\src\Compilers\Core\Portable\InternalUtilities\Hash.cs (3)
120internal static int CombineValues<T>(ImmutableArray<T> values, int maxItemsToHash = int.MaxValue) 171internal static int CombineValues(ImmutableArray<string> values, StringComparer stringComparer, int maxItemsToHash = int.MaxValue) 252internal static int GetFNVHashCode(ImmutableArray<byte> data)
src\roslyn\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\roslyn\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\roslyn\src\Compilers\Core\Portable\InternalUtilities\SetWithInsertionOrder.cs (1)
94public ImmutableArray<T> AsImmutable() => _elements.ToImmutableArrayOrEmpty();
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (2)
20private static ImmutableArray<string> s_lazyNumerals; 25var numerals = s_lazyNumerals;
src\roslyn\src\Compilers\Core\Portable\MetadataReference\AssemblyIdentityUtils.cs (1)
36ImmutableArray<byte> publicKeyOrToken = !publicKeyHandle.IsNil
src\roslyn\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\roslyn\src\Dependencies\Collections\Extensions\FixedSizeArrayBuilder.cs (5)
19/// A bare-bones array builder, focused on the case of producing <see cref="ImmutableArray{T}"/>s where the final array 37/// The builder will be moved to an array (see <see cref="MoveToArray"/>) or <see cref="ImmutableArray{T}"/> (see <see 70public void AddRange(ImmutableArray<T> values) 116/// Moves the underlying buffer out of control of this type, into the returned <see cref="ImmutableArray{T}"/>. It 122public ImmutableArray<T> MoveToImmutable()
src\roslyn\src\Dependencies\Collections\Extensions\ICollectionExtensions.cs (1)
76public static void AddRange<T>(this ICollection<T> collection, ImmutableArray<T> values)
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (26)
60public static ImmutableArray<T> ToImmutableArrayOrEmpty<T>(this IEnumerable<T>? items) 67if (items is ImmutableArray<T> array) 82if (items is ImmutableArray<T> array) 271/// <seealso cref="Microsoft.CodeAnalysis.ImmutableArrayExtensions.HasDuplicates{TItem, TValue}(ImmutableArray{TItem}, Func{TItem, TValue}, IEqualityComparer{TValue})"/> 376public static ImmutableArray<T> WhereAsArray<T>(this IEnumerable<T> values, Func<T, bool> predicate) 390public static ImmutableArray<T> WhereAsArray<T, TArg>(this IEnumerable<T> values, Func<T, TArg, bool> predicate, TArg arg) 407public static ImmutableArray<TResult> SelectAsArray<TSource, TResult>(this IEnumerable<TSource>? source, Func<TSource, TResult> selector) 417public static ImmutableArray<TResult> SelectAsArray<TItem, TResult>(this IEnumerable<TItem>? source, Func<TItem, bool> predicate, Func<TItem, TResult> selector) 431public static ImmutableArray<TResult> SelectAsArray<TSource, TResult>(this IEnumerable<TSource>? source, Func<TSource, int, TResult> selector) 446public static ImmutableArray<TResult> SelectAsArray<TSource, TResult, TArg>(this IEnumerable<TSource>? source, Func<TSource, TArg, TResult> selector, TArg arg) 449return ImmutableArray<TResult>.Empty; 461public static ImmutableArray<TResult> SelectAsArray<TSource, TResult>(this IReadOnlyCollection<TSource>? source, Func<TSource, TResult> selector) 473public static ImmutableArray<TResult> SelectAsArray<TSource, TResult, TArg>(this IReadOnlyCollection<TSource>? source, Func<TSource, TArg, TResult> selector, TArg arg) 485public static ImmutableArray<TResult> SelectManyAsArray<TSource, TResult>(this IEnumerable<TSource>? source, Func<TSource, IEnumerable<TResult>> selector) 496public static ImmutableArray<TResult> SelectManyAsArray<TItem, TArg, TResult>(this IEnumerable<TItem>? source, Func<TItem, TArg, IEnumerable<TResult>> selector, TArg arg) 507public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, IEnumerable<TResult>> selector) 520public static ImmutableArray<TResult> SelectManyAsArray<TItem, TArg, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, TArg, IEnumerable<TResult>> selector, TArg arg) 533public static ImmutableArray<TResult> SelectManyAsArray<TSource, TResult>(this IEnumerable<TSource>? source, Func<TSource, OneOrMany<TResult>> selector) 547public static async ValueTask<ImmutableArray<TResult>> SelectAsArrayAsync<TItem, TResult>(this IEnumerable<TItem> source, Func<TItem, ValueTask<TResult>> selector) 561public static async ValueTask<ImmutableArray<TResult>> SelectAsArrayAsync<TItem, TResult>(this IEnumerable<TItem> source, Func<TItem, CancellationToken, ValueTask<TResult>> selector, CancellationToken cancellationToken) 575public static async ValueTask<ImmutableArray<TResult>> SelectAsArrayAsync<TItem, TArg, TResult>(this IEnumerable<TItem> source, Func<TItem, TArg, CancellationToken, ValueTask<TResult>> selector, TArg arg, CancellationToken cancellationToken) 586public 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) 764internal static Dictionary<K, ImmutableArray<T>> ToMultiDictionary<K, T>(this IEnumerable<T> data, Func<T, K> keySelector, IEqualityComparer<K>? comparer = null) 767var dictionary = new Dictionary<K, ImmutableArray<T>>(comparer); 834/// Methods that are available on both <see cref="IEnumerable{T}"/> and <see cref="ImmutableArray{T}"/> are defined in System.Linq namespace 835/// to avoid accidental boxing of <see cref="ImmutableArray{T}"/>. The boxing would occur if the file calling these methods didn't have <c>using System.Linq</c>.
src\roslyn\src\Dependencies\Collections\Extensions\IListExtensions.cs (1)
31/// <seealso cref="ImmutableArrayExtensions.HasDuplicates{TItem, TValue}(System.Collections.Immutable.ImmutableArray{TItem}, Func{TItem, TValue}, IEqualityComparer{TValue})"/>
src\roslyn\src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (156)
24/// The collection of extension methods for the <see cref="ImmutableArray{T}"/> type 36public static ImmutableArray<T> AsImmutable<T>(this IEnumerable<T> items) 48public static ImmutableArray<T> AsImmutableOrEmpty<T>(this IEnumerable<T>? items) 52return ImmutableArray<T>.Empty; 65public static ImmutableArray<T> AsImmutableOrNull<T>(this IEnumerable<T>? items) 81public static ImmutableArray<T> AsImmutable<T>(this T[] items) 94public static ImmutableArray<T> AsImmutableOrNull<T>(this T[]? items) 110public static ImmutableArray<T> AsImmutableOrEmpty<T>(this T[]? items) 114return ImmutableArray<T>.Empty; 125public static ImmutableArray<byte> ToImmutable(this MemoryStream stream) 138public static ImmutableArray<TResult> SelectAsArray<TItem, TResult>(this ImmutableArray<TItem> items, Func<TItem, TResult> map) 153public static ImmutableArray<TResult> SelectAsArray<TItem, TArg, TResult>(this ImmutableArray<TItem> items, Func<TItem, TArg, TResult> map, TArg arg) 168public static ImmutableArray<TResult> SelectAsArray<TItem, TArg, TResult>(this ImmutableArray<TItem> items, Func<TItem, int, TArg, TResult> map, TArg arg) 198public static ImmutableArray<TResult> SelectAsArray<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, bool> predicate, Func<TItem, TResult> selector) 224public static ImmutableArray<TResult> SelectAsArray<TItem, TArg, TResult>(this ImmutableArray<TItem> array, Func<TItem, TArg, bool> predicate, Func<TItem, TArg, TResult> selector, TArg arg) 247public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, IEnumerable<TResult>> selector) 267public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, ImmutableArray<TResult>> selector) 287public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, OneOrMany<TResult>> selector) 308public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, bool> predicate, Func<TItem, IEnumerable<TResult>> selector) 332public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, bool> predicate, Func<TItem, ImmutableArray<TResult>> selector) 356public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, bool> predicate, Func<TItem, OneOrMany<TResult>> selector) 381public static ImmutableArray<TResult> SelectManyAsArray<TItem, TArg, TResult>(this ImmutableArray<TItem> array, Func<TItem, TArg, bool> predicate, Func<TItem, TArg, OneOrMany<TResult>> selector, TArg arg) 399public static async ValueTask<ImmutableArray<TResult>> SelectAsArrayAsync<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, CancellationToken, ValueTask<TResult>> selector, CancellationToken cancellationToken) 414public static async ValueTask<ImmutableArray<TResult>> SelectAsArrayAsync<TItem, TArg, TResult>(this ImmutableArray<TItem> array, Func<TItem, TArg, CancellationToken, ValueTask<TResult>> selector, TArg arg, CancellationToken cancellationToken) 426public static ValueTask<ImmutableArray<TResult>> SelectManyAsArrayAsync<TItem, TArg, TResult>(this ImmutableArray<TItem> source, Func<TItem, TArg, CancellationToken, ValueTask<ImmutableArray<TResult>>> selector, TArg arg, CancellationToken cancellationToken) 429return new ValueTask<ImmutableArray<TResult>>([]); 436async ValueTask<ImmutableArray<TResult>> CreateTaskAsync() 453public static ImmutableArray<TResult> ZipAsArray<T1, T2, TResult>(this ImmutableArray<T1> self, ImmutableArray<T2> other, Func<T1, T2, TResult> map) 473public static ImmutableArray<TResult> ZipAsArray<T1, T2, TArg, TResult>(this ImmutableArray<T1> self, ImmutableArray<T2> other, TArg arg, Func<T1, T2, int, TArg, TResult> map) 493public static ImmutableArray<T> WhereAsArray<T>(this ImmutableArray<T> array, Func<T, bool> predicate) 501public static ImmutableArray<T> WhereAsArray<T, TArg>(this ImmutableArray<T> array, Func<T, TArg, bool> predicate, TArg arg) 504private static ImmutableArray<T> WhereAsArrayImpl<T, TArg>(ImmutableArray<T> array, Func<T, bool>? predicateWithoutArg, Func<T, TArg, bool>? predicateWithArg, TArg arg) 569return ImmutableArray<T>.Empty; 573public static async Task<bool> AnyAsync<T>(this ImmutableArray<T> array, Func<T, Task<bool>> predicateAsync) 584public static async Task<bool> AnyAsync<T, TArg>(this ImmutableArray<T> array, Func<T, TArg, Task<bool>> predicateAsync, TArg arg) 595public static async ValueTask<T?> FirstOrDefaultAsync<T>(this ImmutableArray<T> array, Func<T, Task<bool>> predicateAsync) 610public static ImmutableArray<TBase> Cast<TDerived, TBase>(this ImmutableArray<TDerived> items) 613return ImmutableArray<TBase>.CastUp(items); 624public static bool SetEquals<T>(this ImmutableArray<T> array1, ImmutableArray<T> array2, IEqualityComparer<T> comparer) 665public static ImmutableArray<T> NullToEmpty<T>(this ImmutableArray<T> array) 667return array.IsDefault ? ImmutableArray<T>.Empty : array; 673public static ImmutableArray<T> NullToEmpty<T>(this ImmutableArray<T>? array) 676null or { IsDefault: true } => ImmutableArray<T>.Empty, 682internal static ImmutableArray<T> ConditionallyDeOrder<T>(this ImmutableArray<T> array) 699internal static ImmutableArray<TValue> Flatten<TKey, TValue>( 700this Dictionary<TKey, ImmutableArray<TValue>> dictionary, 723internal static ImmutableArray<T> AddRange<T>(this ImmutableArray<T> self, in TemporaryArray<T> items) 751internal static bool HasDuplicates<T>(this ImmutableArray<T> array) 754internal static bool HasDuplicates<T>(this ImmutableArray<T> array, IEqualityComparer<T> comparer) 757public static bool HasDuplicates<TItem, TValue>(this ImmutableArray<TItem> array, Func<TItem, TValue> selector) 769internal static bool HasDuplicates<TItem, TValue>(this ImmutableArray<TItem> array, Func<TItem, TValue> selector, IEqualityComparer<TValue> comparer) 826(Dictionary<TKey, object> dictionary, Dictionary<TKey, ImmutableArray<TNamespaceOrTypeSymbol>> result) 837static ImmutableArray<TNamespaceOrTypeSymbol> createMembers(object value) 848return ImmutableArray<TNamespaceOrTypeSymbol>.CastUp(builder.ToDowncastedImmutableAndFree<TNamedTypeSymbol>()); 855: ImmutableArray<TNamespaceOrTypeSymbol>.CastUp(ImmutableArray.Create((TNamedTypeSymbol)symbol)); 860internal static Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>> GetTypesFromMemberMap<TKey, TNamespaceOrTypeSymbol, TNamedTypeSymbol> 861(Dictionary<TKey, ImmutableArray<TNamespaceOrTypeSymbol>> map, IEqualityComparer<TKey> comparer) 872var dictionary = new Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>>(capacity, comparer); 876var namedTypes = getOrCreateNamedTypes(entry.Value); 883static ImmutableArray<TNamedTypeSymbol> getOrCreateNamedTypes(ImmutableArray<TNamespaceOrTypeSymbol> members) 890var membersAsNamedTypes = members.As<TNamedTypeSymbol>(); 903return ImmutableArray<TNamedTypeSymbol>.Empty; 917internal static int IndexOf<T>(this ImmutableArray<T> array, T item, IEqualityComparer<T> comparer) 920internal static bool IsSorted<T>(this ImmutableArray<T> array, Comparison<T> comparison) 923internal static bool IsSorted<T>(this ImmutableArray<T> array, IComparer<T>? comparer = null) 938public static bool IsSubsetOf<TElement>(this ImmutableArray<TElement> array, ImmutableArray<TElement> other) 983/// Extension methods that are available on both <see cref="IEnumerable{T}"/> and <see cref="ImmutableArray{T}"/> in System.Linq namespace 984/// are defined in System.Linq namespace to avoid accidental boxing of <see cref="ImmutableArray{T}"/>. 990/// Variant of <see cref="System.Linq.ImmutableArrayExtensions.FirstOrDefault{T}(ImmutableArray{T}, Func{T, bool})"/> 992public static TValue? FirstOrDefault<TValue, TArg>(this ImmutableArray<TValue> array, Func<TValue, TArg, bool> predicate, TArg arg) 1004/// Variant of <see cref="System.Linq.ImmutableArrayExtensions.Single{T}(ImmutableArray{T}, Func{T, bool})"/> 1006public static TValue Single<TValue, TArg>(this ImmutableArray<TValue> array, Func<TValue, TArg, bool> predicate, TArg arg) 1033/// Variant of <see cref="System.Linq.ImmutableArrayExtensions.SequenceEqual{TDerived, TBase}(ImmutableArray{TBase}, ImmutableArray{TDerived}, Func{TBase, TBase, bool})"/>. 1035public static bool SequenceEqual<TElement, TArg>(this ImmutableArray<TElement> array1, ImmutableArray<TElement> array2, TArg arg, Func<TElement, TElement, TArg, bool> predicate) 1066/// Specialization of <see cref="System.Linq.Enumerable.Count{TSource}(IEnumerable{TSource}, Func{TSource, bool})"/> for <see cref="ImmutableArray{T}"/>. 1068public static int Count<T>(this ImmutableArray<T> items, Func<T, bool> predicate) 1084/// Specialization of <see cref="System.Linq.Enumerable.Sum(IEnumerable{int})"/> for <see cref="ImmutableArray{T}"/>. 1086public static int Sum<T>(this ImmutableArray<T> items, Func<T, int> selector) 1096/// Variation of <see cref="System.Linq.Enumerable.Sum(IEnumerable{int})"/> for <see cref="ImmutableArray{T}"/>. 1098public static int Sum<T>(this ImmutableArray<T> items, Func<T, int, int> selector) 1108/// Specialization of <see cref="System.Linq.Enumerable.Concat{TSource}(IEnumerable{TSource}, IEnumerable{TSource})"/> for <see cref="ImmutableArray{T}"/>. 1110public static ImmutableArray<T> Concat<T>(this ImmutableArray<T> first, ImmutableArray<T> second) 1116public static ImmutableArray<T> Concat<T>(this ImmutableArray<T> first, T second) 1122public static ImmutableArray<T> Concat<T>(this ImmutableArray<T> first, ImmutableArray<T> second, ImmutableArray<T> third) 1136public static ImmutableArray<T> Concat<T>(this ImmutableArray<T> first, ImmutableArray<T> second, ImmutableArray<T> third, ImmutableArray<T> fourth) 1152public static ImmutableArray<T> Concat<T>(this ImmutableArray<T> first, ImmutableArray<T> second, ImmutableArray<T> third, ImmutableArray<T> fourth, ImmutableArray<T> fifth) 1168public static ImmutableArray<T> Concat<T>(this ImmutableArray<T> first, ImmutableArray<T> second, ImmutableArray<T> third, ImmutableArray<T> fourth, ImmutableArray<T> fifth, ImmutableArray<T> sixth) 1188public static ImmutableArray<T> Distinct<T>(this ImmutableArray<T> array, IEqualityComparer<T>? comparer = null) 1207var result = (builder.Count == array.Length) ? array : builder.ToImmutable(); 1213/// Variant of <see cref="System.Linq.ImmutableArrayExtensions.Any{T}(ImmutableArray{T}, Func{T, bool})"/>. 1215public static bool Any<T, TArg>(this ImmutableArray<T> array, Func<T, TArg, bool> predicate, TArg arg) 1227/// Variant of <see cref="System.Linq.ImmutableArrayExtensions.All{T}(ImmutableArray{T}, Func{T, bool})"/>. 1229public static bool All<T, TArg>(this ImmutableArray<T> array, Func<T, TArg, bool> predicate, TArg arg) 1248/// Methods that are available on both <see cref="IEnumerable{T}"/> and <see cref="ImmutableArray{T}"/> in System.Collections.Immutable namespace 1249/// are defined in System.Collections.Immutable namespace to avoid accidental boxing of <see cref="ImmutableArray{T}"/>. 1255/// Variant of <see cref="System.Collections.Immutable.ImmutableArray{T}.Contains(T, IEqualityComparer{T})"/> 1257public static bool Contains<T>(this ImmutableArray<T> array, Func<T, bool> predicate) 1261/// Variant of <see cref="System.Collections.Immutable.ImmutableArray.BinarySearch{T}(ImmutableArray{T}, T, IComparer{T}?)"/> 1264public static int BinarySearch<TElement, TValue>(this ImmutableArray<TElement> array, TValue value, Func<TElement, TValue, int> comparer)
src\roslyn\src\Dependencies\Collections\Internal\HashHelpers.cs (1)
40private static readonly ImmutableArray<int> s_primes = ImmutableArray.Create(
src\roslyn\src\Dependencies\Collections\OneOrMany.cs (8)
28public static readonly OneOrMany<T> Empty = new OneOrMany<T>(ImmutableArray<T>.Empty); 31private readonly ImmutableArray<T> _many; 39public OneOrMany(ImmutableArray<T> many) 167: new OneOrMany<T>(ImmutableArray<T>.CastUp(from._many)); 185public ImmutableArray<T> ToImmutable() 206public bool SequenceEqual(ImmutableArray<T> other, IEqualityComparer<T>? comparer = null) 278public static OneOrMany<T> Create<T>(ImmutableArray<T> many) 281public static bool SequenceEqual<T>(this ImmutableArray<T> array, OneOrMany<T> other, IEqualityComparer<T>? comparer = null)
src\roslyn\src\Dependencies\Collections\RoslynImmutableInterlocked.cs (5)
618public static ImmutableArray<T> VolatileRead<T>(ref readonly ImmutableArray<T> location) 620var value = location; 635public static void VolatileWrite<T>(ref ImmutableArray<T> location, ImmutableArray<T> value)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
23/// the scenarios where <see cref="ImmutableArray{T}"/> is applicable, and
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.List.cs (1)
20public static readonly IReadOnlyList<T> Instance = ImmutableArray<T>.Empty;
src\roslyn\src\Dependencies\Collections\TemporaryArray`1.cs (6)
24/// <see cref="ImmutableArray{T}"/>. 179public void AddRange(ImmutableArray<T> items) 299/// Create an <see cref="ImmutableArray{T}"/> with the elements currently held in the temporary array, and clear 302public ImmutableArray<T> ToImmutableAndClear() 310var result = _count switch 3120 => ImmutableArray<T>.Empty,
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilder.cs (27)
61private readonly ImmutableArray<T>.Builder _builder; 83public ImmutableArray<T> ToImmutable() 91public ImmutableArray<T> ToImmutableAndClear() 93ImmutableArray<T> result; 96result = ImmutableArray<T>.Empty; 393public ImmutableArray<T> ToImmutableOrNull() 406public ImmutableArray<U> ToDowncastedImmutable<U>() 411return ImmutableArray<U>.Empty; 423public ImmutableArray<U> ToDowncastedImmutableAndFree<U>() where U : T 425var result = ToDowncastedImmutable<U>(); 433public ImmutableArray<T> ToImmutableAndFree() 437ImmutableArray<T> result; 440result = ImmutableArray<T>.Empty; 613internal Dictionary<K, ImmutableArray<T>> ToDictionary<K>(Func<T, K> keySelector, IEqualityComparer<K>? comparer = null) 618var dictionary1 = new Dictionary<K, ImmutableArray<T>>(1, comparer); 626return new Dictionary<K, ImmutableArray<T>>(comparer); 645var dictionary = new Dictionary<K, ImmutableArray<T>>(accumulator.Count, comparer); 684public void AddRange(ImmutableArray<T> items) 689public void AddRange<U>(ImmutableArray<U> items, Func<U, T> selector) 697public void AddRange(ImmutableArray<T> items, int length) 702public void AddRange(ImmutableArray<T> items, int start, int length) 712public void AddRange<S>(ImmutableArray<S> items) where S : class, T 714AddRange(ImmutableArray<T>.CastUp(items)); 806public ImmutableArray<S> SelectDistinct<S>(Func<T, S> selector) 878public ImmutableArray<TResult> SelectAsArray<TResult>(Func<T, TResult> map) 914public ImmutableArray<TResult> SelectAsArray<TArg, TResult>(Func<T, TArg, TResult> map, TArg arg) 950public ImmutableArray<TResult> SelectAsArrayWithIndex<TArg, TResult>(Func<T, int, TArg, TResult> map, TArg arg)
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilderExtensions.cs (1)
16public static ImmutableArray<T> ToImmutableOrEmptyAndFree<T>(this ArrayBuilder<T>? builder)
src\roslyn\src\Dependencies\Threading\IAsyncEnumerableExtensions.cs (1)
16public static async Task<ImmutableArray<T>> ToImmutableArrayAsync<T>(this IAsyncEnumerable<T> values, CancellationToken cancellationToken)
src\roslyn\src\Dependencies\Threading\ProducerConsumer.cs (7)
25Func<ImmutableArray<TItem>, TArgs, CancellationToken, Task> consumeItems, 49Func<ImmutableArray<TItem>, TArgs, CancellationToken, Task> consumeItems, 127Func<ImmutableArray<TItem>, TArgs, CancellationToken, Task> consumeItems, 141Func<ImmutableArray<TItem>, TArgs, CancellationToken, Task> consumeItems, 191public static Task<ImmutableArray<TItem>> RunParallelAsync<TSource, TArgs>( 204public static async Task<ImmutableArray<TItem>> RunParallelAsync<TSource, TArgs>( 284/// but returns value as an <see cref="IAsyncEnumerable{TItem}"/>. Versus an <see cref="ImmutableArray{TItem}"/>.
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\AdditionalFileProvider.cs (2)
22private readonly ImmutableArray<AdditionalText> _additionalFiles; 24internal AdditionalFileProvider(ImmutableArray<AdditionalText> additionalFiles)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\DiagnosticExtensions.cs (5)
29=> node.CreateDiagnostic(rule, additionalLocations: ImmutableArray<Location>.Empty, properties, args); 34ImmutableArray<Location> additionalLocations, 63ImmutableArray<Location> additionalLocations, 110=> location.CreateDiagnostic(rule, ImmutableArray<Location>.Empty, properties, args); 115ImmutableArray<Location> additionalLocations,
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\IMethodSymbolExtensions.cs (2)
547public static ImmutableArray<IMethodSymbol> GetOriginalDefinitions(this IMethodSymbol methodSymbol) 549ImmutableArray<IMethodSymbol>.Builder originalDefinitionsBuilder = ImmutableArray.CreateBuilder<IMethodSymbol>();
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\ImmutableArrayExtensions.cs (6)
13/// <param name="source">The <see cref="ImmutableArray{TSource}"/> to check for cardinality.</param> 16public static bool HasExactly<TSource>(this ImmutableArray<TSource> source, int count) => source.Length == count; 22/// <param name="source">The <see cref="ImmutableArray{TSource}"/> to check for cardinality.</param> 25public static bool HasMoreThan<TSource>(this ImmutableArray<TSource> source, int count) => source.Length > count; 31/// <param name="source">The <see cref="ImmutableArray{TSource}"/> to check for cardinality.</param> 34public static bool HasFewerThan<TSource>(this ImmutableArray<TSource> source, int count) => source.Length < count;
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\IOperationExtensions.cs (5)
83public static ImmutableArray<IOperation> GetTopmostExplicitDescendants(this IOperation operation) 166public static IOperation? GetAncestor(this IOperation root, ImmutableArray<OperationKind> ancestorKinds, Func<IOperation, bool>? predicate = null) 381private static readonly ImmutableArray<OperationKind> s_LambdaAndLocalFunctionKinds = 491this ImmutableArray<IArgumentOperation> arguments, 512this ImmutableArray<IArgumentOperation> arguments,
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\IPropertySymbolExtensions.cs (2)
22public static ImmutableArray<IPropertySymbol> GetOriginalDefinitions(this IPropertySymbol propertySymbol) 24ImmutableArray<IPropertySymbol>.Builder originalDefinitionsBuilder = ImmutableArray.CreateBuilder<IPropertySymbol>();
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\ITypeSymbolExtensions.cs (2)
155var current = type.GetAttributes(); 222var current = type.GetAttributes();
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\OperationKinds.cs (1)
12public static ImmutableArray<OperationKind> MemberReference { get; }
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\HashUtilities.cs (2)
25internal static int Combine<T>(ImmutableArray<T> array) 32internal static void Combine<T>(ImmutableArray<T> array, ref RoslynHashCode hashCode)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\AnalyzerOptionsExtensions.cs (4)
408var matchingSymbols = DocumentationCommentId.GetSymbolsForDeclarationId(genericInterfaceFullName, compilation); 489var names = optionValue.Split(['|'], StringSplitOptions.RemoveEmptyEntries).ToImmutableArray(); 542public static ImmutableArray<string> GetMSBuildItemMetadataValues( 553return ImmutableArray<string>.Empty;
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\MSBuildItemOptionNames.cs (2)
41public static ImmutableArray<string> ParseItemOptionValue(string? itemOptionValue) 45return ImmutableArray<string>.Empty;
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (1)
81public static SymbolNamesWithValueOption<TValue> Create(ImmutableArray<string> symbolNames, Compilation compilation, string? optionalPrefix,
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\WellKnownTypeProvider.cs (6)
33_referencedAssemblies = new Lazy<ImmutableArray<IAssemblySymbol>>( 62private readonly Lazy<ImmutableArray<IAssemblySymbol>> _referencedAssemblies; 81private static readonly ConcurrentDictionary<string, ImmutableArray<string>> _fullTypeNameToNamespaceNames = 120ImmutableArray<string> namespaceNames; 214private static ImmutableArray<string> GetNamespaceNamesFromFullTypeName(string fullTypeName) 297private static bool IsSubsetOfCollection<T>(ImmutableArray<T> set1, ICollection<T> set2)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\WordParser.cs (2)
202public static bool ContainsWord(string text, WordParserOptions options, ImmutableArray<string> words) 236internal static bool ContainsWord(string text, WordParserOptions options, char prefix, ImmutableArray<string> words)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleHelpers.cs (3)
119this ImmutableArray<IOption2>.Builder optionsBuilder, 132this ImmutableArray<IOption2>.Builder optionsBuilder, 144this ImmutableArray<IOption2>.Builder optionsBuilder,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleOptions2.cs (2)
21private static readonly ImmutableArray<IOption2>.Builder s_editorConfigOptionsBuilder = ImmutableArray.CreateBuilder<IOption2>(); 356internal static readonly ImmutableArray<IOption2> EditorConfigOptions = s_editorConfigOptionsBuilder.ToImmutable();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\VisualBasic\VisualBasicCodeStyleOptions.cs (2)
14private static readonly ImmutableArray<IOption2>.Builder s_allOptionsBuilder = ImmutableArray.CreateBuilder<IOption2>(); 55public static ImmutableArray<IOption2> EditorConfigOptions => s_allOptionsBuilder.ToImmutable();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\IntervalTreeAlgorithms`2.cs (4)
19public ImmutableArray<T> GetIntervalsThatMatch<TIntrospector, TIntervalTester>( 29public ImmutableArray<T> GetIntervalsThatOverlapWith<TIntrospector>( 36public ImmutableArray<T> GetIntervalsThatIntersectWith<TIntrospector>( 43public ImmutableArray<T> GetIntervalsThatContain<TIntrospector>(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\SimpleMutableIntervalTree`2.cs (3)
39public ImmutableArray<T> GetIntervalsThatOverlapWith(int start, int length) 42public ImmutableArray<T> GetIntervalsThatIntersectWith(int start, int length) 45public ImmutableArray<T> GetIntervalsThatContain(int start, int length)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Diagnostics\IPragmaSuppressionsAnalyzer.cs (1)
26Func<DiagnosticAnalyzer, ImmutableArray<DiagnosticDescriptor>> getSupportedDiagnostics,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Editing\GenerationOptions.cs (1)
30public static readonly ImmutableArray<IOption2> EditorConfigOptions = [PlaceSystemNamespaceFirst, SeparateImportDirectiveGroups];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\Common\EmbeddedSeparatedSyntaxNodeList.cs (2)
17public ImmutableArray<EmbeddedSyntaxNodeOrToken<TSyntaxKind, TSyntaxNode>> NodesAndTokens { get; } 25ImmutableArray<EmbeddedSyntaxNodeOrToken<TSyntaxKind, TSyntaxNode>> nodesAndTokens)
src\roslyn\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) 56public EmbeddedSyntaxToken<TSyntaxKind> WithDiagnostics(ImmutableArray<EmbeddedDiagnostic> diagnostics) 61Optional<ImmutableArray<EmbeddedSyntaxTrivia<TSyntaxKind>>> leadingTrivia = default, 63Optional<ImmutableArray<EmbeddedSyntaxTrivia<TSyntaxKind>>> trailingTrivia = default, 64Optional<ImmutableArray<EmbeddedDiagnostic>> diagnostics = default,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\Common\EmbeddedSyntaxTree.cs (2)
17public readonly ImmutableArray<EmbeddedDiagnostic> Diagnostics; 22ImmutableArray<EmbeddedDiagnostic> diagnostics)
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\VirtualCharGreenSequence.Chunks.cs (1)
15/// is used so we can expose <see cref="VirtualChar"/>s over an <see cref="ImmutableArray{VirtualChar}"/>
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\VirtualCharUtilities.cs (1)
26public static (ImmutableSegmentedList<VirtualChar> sourceCode, ImmutableArray<TextSpan> markdownSpans) StripMarkupCharacters(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\CollectionExpressionUtilities.cs (3)
97var constructors = namedType.Constructors; 122IMethodSymbol? GetAccessibleInstanceConstructor(ImmutableArray<IMethodSymbol> constructors, Func<IMethodSymbol, bool> predicate) 145public static ImmutableArray<IMethodSymbol>? TryGetCollectionBuilderFactoryMethods(
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DirectiveInfo.cs (2)
12Dictionary<TDirectiveTriviaSyntax, ImmutableArray<TDirectiveTriviaSyntax>> conditionalMap) 19public Dictionary<TDirectiveTriviaSyntax, ImmutableArray<TDirectiveTriviaSyntax>> ConditionalMap { get; } = conditionalMap;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ImmutableArrayExtensions.cs (6)
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> ToImmutableAndClear<T>(this ImmutableArray<T>.Builder builder) 42var result = builder.ToImmutable();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ObjectWriterExtensions.cs (3)
13public static void WriteArray<T>(this ObjectWriter writer, ImmutableArray<T> values, Action<ObjectWriter, T> write) 23public static ImmutableArray<T> ReadArray<T>(this ObjectReader reader, Func<ObjectReader, T> read) 26public static ImmutableArray<T> ReadArray<T, TArg>(this ObjectReader reader, Func<ObjectReader, TArg, T> read, TArg arg)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (3)
341public static bool HasAnyOperationDescendant(this ImmutableArray<IOperation> operationBlocks, Func<IOperation, bool> predicate) 374public static bool HasAnyOperationDescendant(this ImmutableArray<IOperation> operationBlocks, OperationKind kind) 437static IOperation? TryGetSingleExplicitStatement(ImmutableArray<IOperation> operations)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SemanticModelExtensions.cs (2)
140var typeArguments = type.GetAllTypeArguments(); 178ImmutableArray<ITypeSymbol> typeArguments,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\StackExtensions.cs (1)
39public static void Push<T>(this Stack<T> stack, ImmutableArray<T> values)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\StringExtensions.cs (1)
188public static ImmutableArray<SymbolDisplayPart> ToSymbolDisplayParts(this string text)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SymbolInfoExtensions.cs (3)
16public static ImmutableArray<ISymbol> GetAllSymbols(this SymbolInfo info) 19private static ImmutableArray<ISymbol> GetAllSymbolsWorker(this SymbolInfo info) 25public static ImmutableArray<ISymbol> GetBestOrAllSymbols(this SymbolInfo info)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (2)
862var conditionalMap = new Dictionary<TDirectiveTriviaSyntax, ImmutableArray<TDirectiveTriviaSyntax>>( 928var condDirectives = condDirectivesBuilder.ToImmutableAndClear();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\TextSpanExtensions.cs (2)
21public static ImmutableArray<TextSpan> ToNormalizedSpans(this ImmutableArray<TextSpan> spans)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\CustomDataFlowAnalysis.cs (2)
32var blocks = controlFlowGraph.Blocks; 67ImmutableArray<BasicBlock> blocks,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.AnalysisData.cs (2)
144ImmutableArray<IParameterSymbol> parameters) 152ImmutableArray<IParameterSymbol> parameters)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageResult.cs (1)
47public ImmutableArray<(ISymbol Symbol, IOperation WriteOperation)> GetUnreadSymbolWrites()
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.cs (2)
412var intervals = tree.GetIntervalsThatContain(textSpan.Start, textSpan.Length); 542var anchorData = _anchorTree.GetIntervalsThatOverlapWith(baseAnchorData.TextSpan.Start, baseAnchorData.TextSpan.Length);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.InitialContextFinder.cs (3)
43public (List<IndentBlockOperation> indentOperations, ImmutableArray<SuppressOperation> suppressOperations) Do(SyntaxToken startToken, SyntaxToken endToken) 53var initialSuppressOperations = GetInitialSuppressOperations(startToken, endToken); 124private ImmutableArray<SuppressOperation> GetInitialSuppressOperations(SyntaxToken startToken, SyntaxToken endToken)
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\ChainedFormattingRules.cs (9)
21private readonly ImmutableArray<AbstractFormattingRule> _formattingRules; 24private readonly ImmutableArray<AbstractFormattingRule> _addSuppressOperationsRules; 25private readonly ImmutableArray<AbstractFormattingRule> _addAnchorIndentationOperationsRules; 26private readonly ImmutableArray<AbstractFormattingRule> _addIndentBlockOperationsRules; 27private readonly ImmutableArray<AbstractFormattingRule> _addAlignTokensOperationsRules; 28private readonly ImmutableArray<AbstractFormattingRule> _getAdjustNewLinesOperationRules; 29private readonly ImmutableArray<AbstractFormattingRule> _getAdjustSpacesOperationRules; 82private static ImmutableArray<AbstractFormattingRule> FilterToRulesImplementingMethod(ImmutableArray<AbstractFormattingRule> rules, string name)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingOptions2.cs (2)
97internal static readonly ImmutableArray<IOption2> EditorConfigOptions = [UseTabs, TabSize, IndentationSize, NewLine, InsertFinalNewLine]; 102internal static readonly ImmutableArray<IOption2> UndocumentedOptions = [WrappingColumn, ConditionalExpressionWrappingLength];
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextAlignTokensOperationAction.cs (1)
12ImmutableArray<AbstractFormattingRule> formattingRules,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextAnchorIndentationOperationAction.cs (1)
12ImmutableArray<AbstractFormattingRule> formattingRules,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextGetAdjustNewLinesOperation.cs (1)
11ImmutableArray<AbstractFormattingRule> formattingRules,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextGetAdjustSpacesOperation.cs (1)
11ImmutableArray<AbstractFormattingRule> formattingRules,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextIndentBlockOperationAction.cs (1)
12ImmutableArray<AbstractFormattingRule> formattingRules,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextSuppressOperationAction.cs (1)
12ImmutableArray<AbstractFormattingRule> formattingRules,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\TriviaEngine\AbstractTriviaFormatter.cs (1)
265public ImmutableArray<TextChange> FormatToTextChanges(CancellationToken cancellationToken)
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Helpers\RemoveUnnecessaryImports\IUnnecessaryImportsProvider.cs (2)
15ImmutableArray<TSyntaxNode> GetUnnecessaryImports(SemanticModel model, TextSpan? span, CancellationToken cancellationToken); 17ImmutableArray<TSyntaxNode> GetUnnecessaryImports(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Indentation\AbstractIndentation.Indenter.cs (1)
44ImmutableArray<AbstractFormattingRule> rules,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser_SymbolSpec.cs (12)
49out Property<ImmutableArray<SymbolKindOrTypeKind>> kinds, 50out Property<ImmutableArray<Accessibility>> accessibilities, 51out Property<ImmutableArray<ModifierKind>> modifiers) 86private static readonly ImmutableArray<SymbolKindOrTypeKind> s_allApplicableKinds = 89private static ImmutableArray<SymbolKindOrTypeKind> ParseSymbolKindList(string symbolSpecApplicableKinds) 156private static readonly ImmutableArray<Accessibility> s_allAccessibility = 167private static ImmutableArray<Accessibility> ParseAccessibilityKindList(string symbolSpecApplicableAccessibilities) 220private static readonly ImmutableArray<ModifierKind> _allModifierKind = [s_abstractModifierKind, s_asyncModifierKind, s_constModifierKind, s_readonlyModifierKind, s_staticModifierKind]; 222private static ImmutableArray<ModifierKind> ParseModifiers(string symbolSpecRequiredModifiers) 264public static string ToEditorConfigString(this ImmutableArray<SymbolKindOrTypeKind> symbols) 362public static string ToEditorConfigString(this ImmutableArray<Accessibility> accessibilities, string languageName) 421public static string ToEditorConfigString(this ImmutableArray<ModifierKind> modifiers, string languageName)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Naming\IdentifierNameParts.cs (6)
15internal readonly struct IdentifierNameParts(string baseName, ImmutableArray<string> baseNameParts) 18public readonly ImmutableArray<string> BaseNameParts = baseNameParts; 20public static IdentifierNameParts CreateIdentifierNameParts(ISymbol symbol, ImmutableArray<NamingRule> rules) 31var words = CreateWords(parts, baseName); 36private static string RemovePrefixesAndSuffixes(ISymbol symbol, ImmutableArray<NamingRule> rules, string baseName) 73private static ImmutableArray<string> CreateWords(in TemporaryArray<TextSpan> parts, string name)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (1)
61public string CreateName(ImmutableArray<string> words)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyleOptions.cs (1)
32internal static readonly ImmutableArray<IOption2> EditorConfigOptions = [NamingPreferences];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyleRules.cs (5)
11internal sealed class NamingStyleRules(ImmutableArray<NamingRule> namingRules) 13public ImmutableArray<NamingRule> NamingRules { get; } = namingRules; 15private readonly ImmutableArray<SymbolKind> _symbolKindsThatCanBeOverridden = 88var implementedInterfaces = containingType.AllInterfaces; 92var implementedInterfaceMembersWithSameName = implementedInterface.GetMembers(symbol.Name);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (10)
27public readonly ImmutableArray<SymbolSpecification> SymbolSpecifications; 30public readonly ImmutableArray<NamingStyle> NamingStyles; 33public ImmutableArray<SerializableNamingRule> SerializableNamingRules 57ImmutableArray<SymbolSpecification> symbolSpecifications, 58ImmutableArray<NamingStyle> namingStyles, 59ImmutableArray<SerializableNamingRule> serializableRules) 76ImmutableArray<SymbolSpecification> symbolSpecifications, 77ImmutableArray<NamingStyle> namingStyles, 78ImmutableArray<NamingRule> namingRules) 336public static NamingStylePreferences Empty { get; } = new([], [], ImmutableArray<NamingRule>.Empty);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (10)
26ImmutableArray<SymbolSpecification.SymbolKindOrTypeKind> symbolKindList, 27ImmutableArray<Accessibility> accessibilityList = default, 28ImmutableArray<SymbolSpecification.ModifierKind> modifiers = default) : IEquatable<SymbolSpecification> 39public ImmutableArray<SymbolKindOrTypeKind> ApplicableSymbolKindList { get; } = symbolKindList.IsDefault ? DefaultSymbolSpecificationTemplate.ApplicableSymbolKindList : symbolKindList; 42public ImmutableArray<Accessibility> ApplicableAccessibilityList { get; } = accessibilityList.IsDefault ? DefaultSymbolSpecificationTemplate.ApplicableAccessibilityList : accessibilityList; 45public ImmutableArray<ModifierKind> RequiredModifierList { get; } = modifiers.IsDefault ? DefaultSymbolSpecificationTemplate.RequiredModifierList : modifiers; 120private static Modifiers CollapseModifiers(ImmutableArray<ModifierKind> requiredModifierList) 285private static ImmutableArray<SymbolKindOrTypeKind> GetSymbolKindListFromXElement(XElement symbolKindListElement) 306private static ImmutableArray<Accessibility> GetAccessibilityListFromXElement(XElement accessibilityListElement) 312private static ImmutableArray<ModifierKind> GetModifierListFromXElement(XElement modifierListElement)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionDefinition.cs (4)
104type == typeof(ImmutableArray<bool>) || 105type == typeof(ImmutableArray<string>) || 106type == typeof(ImmutableArray<int>) || 107type == typeof(ImmutableArray<long>);
src\roslyn\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\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\FileBannerFacts\IFileBannerFactsExtensions.cs (2)
12public static ImmutableArray<SyntaxTrivia> GetTriviaAfterLeadingBlankLines( 15var leadingBlankLines = bannerService.GetLeadingBlankLines(node);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\HeaderFacts\AbstractHeaderFacts.cs (2)
30=> IsOnHeader(root, position, ownerOfHeader, lastTokenOrNodeOfHeader, ImmutableArray<SyntaxNode>.Empty); 37ImmutableArray<THoleSyntax> holes)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SelectedMembers\AbstractSelectedMembers.cs (5)
31protected abstract ImmutableArray<(SyntaxNode declarator, SyntaxToken identifier)> GetDeclaratorsAndIdentifiers(TMemberDeclarationSyntax member); 33public Task<ImmutableArray<SyntaxNode>> GetSelectedFieldsAndPropertiesAsync( 37public Task<ImmutableArray<SyntaxNode>> GetSelectedMembersAsync( 41private async Task<ImmutableArray<SyntaxNode>> GetSelectedMembersAsync( 76private ImmutableArray<SyntaxNode> GetMembersInSpan(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SemanticFacts\ISemanticFacts.cs (4)
85ImmutableArray<IMethodSymbol> GetDeconstructionAssignmentMethods(SemanticModel semanticModel, SyntaxNode node); 87ImmutableArray<IMethodSymbol> GetDeconstructionForEachMethods(SemanticModel semanticModel, SyntaxNode node); 99ImmutableArray<ISymbol> GetBestOrAllSymbols(SemanticModel semanticModel, SyntaxNode? node, SyntaxToken token, CancellationToken cancellationToken); 106ImmutableArray<IMethodSymbol> GetLocalFunctionSymbols(Compilation compilation, ISymbol symbol, CancellationToken cancellationToken);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SyntaxFacts\ISyntaxFacts.cs (1)
187ImmutableArray<SyntaxNode> GetMatchingConditionalDirectives(SyntaxNode directive, CancellationToken cancellationToken);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SyntaxFacts\ISyntaxFactsExtensions.cs (1)
160this ISyntaxFacts syntaxFacts, ImmutableArray<SyntaxNode> nodes, CancellationToken cancellationToken)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Simplification\SymbolAnnotation.cs (1)
23public static ImmutableArray<ISymbol> GetSymbols(SyntaxAnnotation annotation, Compilation compilation)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.AnonymousTypeSymbolKey.cs (8)
21var properties = symbol.GetMembers().OfType<IPropertySymbol>().ToImmutableArray(); 22var propertyTypes = properties.SelectAsArray(p => p.Type); 23var propertyNames = properties.SelectAsArray(p => (string?)p.Name); 24var propertyIsReadOnly = properties.SelectAsArray(p => p.SetMethod == null); 25var propertyLocations = properties.SelectAsArray(p => p.Locations.FirstOrDefault()); 38var contextualProperties = contextualSymbol?.GetMembers().OfType<IPropertySymbol>().ToImmutableArray() ?? []; 48var propertyLocations = ReadPropertyLocations(reader, out var propertyLocationsFailureReason); 75private static ImmutableArray<Location> ReadPropertyLocations(SymbolKeyReader reader, out string? failureReason)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.BodyLevelSymbolKey.cs (2)
19public static ImmutableArray<Location?> GetBodyLevelSourceLocations(ISymbol symbol, CancellationToken cancellationToken) 63var locations = GetBodyLevelSourceLocations(symbol, cancellationToken);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (5)
152var locations = BodyLevelSymbolKey.GetBodyLevelSourceLocations(symbol, cancellationToken); 261ImmutableArray<ISymbol>.CastUp(symbols.Builder.ToImmutableAndClear()), 266private static T? SafeGet<T>(ImmutableArray<T> values, int index) where T : class 276ImmutableArray<IParameterSymbol> parameters, 303var members = metadataName == null
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.ErrorTypeSymbolKey.cs (2)
44visitor.WriteSymbolKeyArray(ImmutableArray<ITypeSymbol>.Empty); 52private static ImmutableArray<string?> GetContainingNamespaceNamesInReverse(INamespaceSymbol namespaceSymbol)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.FunctionPointerTypeSymbolKey.cs (2)
37var callingConventionModifiers = ImmutableArray<INamedTypeSymbol>.Empty;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.ModuleSymbolKey.cs (1)
38if (assemblyModules is ImmutableArray<IModuleSymbol> modules)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.ParameterSymbolKey.cs (1)
85string metadataName, int ordinal, ImmutableArray<IParameterSymbol> parameters)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.PooledArrayBuilder.cs (2)
34public ImmutableArray<T> ToImmutable() => Builder.ToImmutable(); 52public void AddValuesIfNotNull(ImmutableArray<T> values)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
384ImmutableArray<IParameterSymbol> parameters)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (7)
277internal void WriteSymbolKeyArray<TSymbol>(ImmutableArray<TSymbol> symbols) 283internal void WriteParameterTypesArray(ImmutableArray<IParameterSymbol> symbols) 286internal void WriteBooleanArray(ImmutableArray<bool> array) 292internal void WriteStringArray(ImmutableArray<string?> strings) 295internal void WriteLocationArray(ImmutableArray<Location?> array) 300internal void WriteRefKindArray(ImmutableArray<IParameterSymbol> values) 303private void WriteArray<T, U>(ImmutableArray<T> array, Action<U> writeValue)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TupleTypeSymbolKey.cs (4)
67var elementLocations = ReadElementLocations(reader, out var elementLocationsFailureReason); 80var elementNamesArray = elementNames.ToImmutable(); 95var elementLocations = ReadElementLocations(reader, out var elementLocationsFailureReason); 126private static ImmutableArray<Location> ReadElementLocations(SymbolKeyReader reader, out string? failureReason)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKeyResolution.cs (2)
27internal SymbolKeyResolution(ImmutableArray<ISymbol> candidateSymbols, CandidateReason candidateReason) 38public ImmutableArray<ISymbol> CandidateSymbols => field.NullToEmpty();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (10)
112SemanticModel model, TForEachStatementSyntax forEach, out IMethodSymbol getEnumeratorMethod, out ITypeSymbol elementType, out ImmutableArray<ILocalSymbol> localVariables); 120protected abstract ImmutableArray<TArgumentSyntax> GetArguments(TExpressionSyntax expression); 778GetForEachSymbols(this.OriginalSemanticModel, forEachStatement, out var originalGetEnumerator, out var originalElementType, out var originalLocalVariables); 779GetForEachSymbols(this.SpeculativeSemanticModel, newForEachStatement, out var newGetEnumerator, out var newElementType, out var newLocalVariables); 1055var specifiedArguments = GetArguments(originalInvocation); 1058var symbolParameters = originalSymbol.GetParameters(); 1059var newSymbolParameters = newSymbol.GetParameters(); 1068ImmutableArray<TArgumentSyntax> specifiedArguments, 1069ImmutableArray<IParameterSymbol> signature1Parameters, 1070ImmutableArray<IParameterSymbol> signature2Parameters)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.Builder.cs (2)
139private void BuildArrays(ImmutableArray<Node>.Builder nodes, ImmutableArray<Edge>.Builder edges)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.cs (4)
49private readonly ImmutableArray<Node> _nodes; 50private readonly ImmutableArray<Edge> _edges; 52private BKTree(char[] concatenatedLowerCaseWords, ImmutableArray<Node> nodes, ImmutableArray<Edge> edges)
src\roslyn\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\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IAsyncEnumerableExtensions.cs (1)
38public static IAsyncEnumerable<T> MergeAsync<T>(this ImmutableArray<IAsyncEnumerable<T>> streams, CancellationToken cancellationToken)
src\roslyn\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\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\InterceptsLocationUtilities.cs (4)
20internal record struct InterceptsLocationData(ImmutableArray<byte> ContentHash, int Position) 31public static ImmutableArray<InterceptsLocationData> GetInterceptsLocationData(ImmutableArray<AttributeData> attributes) 103var contentHash = bytes[HashIndex..HashSize].ToImmutableArray();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\LightweightOverloadResolution.cs (4)
31public IMethodSymbol? RefineOverload(SymbolInfo symbolInfo, ImmutableArray<IMethodSymbol> candidates) 34public (IMethodSymbol? method, int parameterIndex) RefineOverloadAndPickParameter(SymbolInfo symbolInfo, ImmutableArray<IMethodSymbol> candidates) 52private (IMethodSymbol? symbol, int parameterIndex) GuessCurrentSymbolAndParameter(ImmutableArray<IMethodSymbol> methodGroup) 85var parameters = method.Parameters;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PathMetadataUtilities.cs (2)
27var parts = folders.SelectMany(folder => folder.Split(NamespaceSeparatorArray)).SelectAsArray(syntaxFacts.EscapeIdentifier); 59public static ImmutableArray<string> BuildFoldersFromNamespace(string? @namespace, string? rootNamespace = null)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PooledBuilderExtensions.cs (6)
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) 47public static ImmutableDictionary<K, ImmutableArray<V>> ToImmutableMultiDictionaryAndFree<K, V, TArg>(this PooledDictionary<K, ArrayBuilder<V>> builders, Func<K, TArg, bool>? where, TArg whereArg) 50var result = ImmutableDictionary.CreateBuilder<K, ImmutableArray<V>>(); 77public static ImmutableArray<T> ToFlattenedImmutableArrayAndFree<T>(this ArrayBuilder<ArrayBuilder<T>> builders)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\RestrictedInternalsVisibleToAttribute.cs (1)
13public ImmutableArray<string> AllowedNamespaces { get; } = [.. allowedNamespaces];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SerializableBytes.cs (1)
222public ImmutableArray<byte> ToImmutableArray()
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SpecializedTasks.cs (4)
46public static Task<ImmutableArray<T>> EmptyImmutableArray<T>() 87public static async ValueTask<ImmutableArray<TResult>> WhenAll<TResult>(this IReadOnlyCollection<Task<TResult>> tasks) 102public static readonly Task<ImmutableArray<T>> EmptyImmutableArray = Task.FromResult(ImmutableArray<T>.Empty);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (4)
29public static ImmutableArray<Compilation> GetReferencedCompilations(this Compilation compilation) 48public static ImmutableArray<IAssemblySymbol> GetReferencedAssemblySymbols(this Compilation compilation, bool excludePreviousSubmissions = false) 52var referencedAssemblySymbols = compilation.Assembly.Modules.First().ReferencedAssemblySymbols; 193=> compilation.GetTypeByMetadataName(typeof(ImmutableArray<>).FullName!);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IMethodSymbolExtensions.cs (1)
49public static ImmutableArray<IMethodSymbol> GetAllMethodSymbolsOfPartialParts(this IMethodSymbol method)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (25)
44public static ImmutableArray<ITypeParameterSymbol> GetAllTypeParameters(this INamedTypeSymbol? symbol) 50public static ImmutableArray<ITypeSymbol> GetAllTypeArguments(this INamedTypeSymbol? symbol) 190public static ImmutableArray<(INamedTypeSymbol type, ImmutableArray<ISymbol> members)> GetAllUnimplementedMembers( 208static ImmutableArray<ISymbol> GetImplicitlyImplementableMembers(INamedTypeSymbol type, ISymbol within) 260public static ImmutableArray<(INamedTypeSymbol type, ImmutableArray<ISymbol> members)> GetAllUnimplementedMembersInThis( 278public static ImmutableArray<(INamedTypeSymbol type, ImmutableArray<ISymbol> members)> GetAllUnimplementedMembersInThis( 281Func<INamedTypeSymbol, ISymbol, ImmutableArray<ISymbol>> interfaceMemberGetter, 297public static ImmutableArray<(INamedTypeSymbol type, ImmutableArray<ISymbol> members)> GetAllUnimplementedExplicitMembers( 311private static ImmutableArray<ISymbol> GetExplicitlyImplementableMembers(INamedTypeSymbol type, ISymbol within) 338private static ImmutableArray<(INamedTypeSymbol type, ImmutableArray<ISymbol> members)> GetAllUnimplementedMembers( 343Func<INamedTypeSymbol, ISymbol, ImmutableArray<ISymbol>> interfaceMemberGetter, 367var typesToImplement = GetTypesToImplement(classOrStructType, interfacesOrAbstractClasses, allowReimplementation, cancellationToken); 372private static ImmutableArray<INamedTypeSymbol> GetTypesToImplement( 383private static ImmutableArray<INamedTypeSymbol> GetAbstractClassesToImplement( 389private static ImmutableArray<INamedTypeSymbol> GetInterfacesToImplement( 404var alreadyImplementedInterfaces = baseType == null || allowReimplementation 413private static ImmutableArray<ISymbol> GetUnimplementedMembers( 418Func<INamedTypeSymbol, ISymbol, ImmutableArray<ISymbol>> interfaceMemberGetter, 528private static ImmutableArray<ISymbol> GetMembers(INamedTypeSymbol type, ISymbol within) 541public static ImmutableArray<ISymbol> GetOverridableMembers(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (12)
141public static ImmutableArray<ISymbol> ExplicitInterfaceImplementations(this ISymbol symbol) 144IEventSymbol @event => ImmutableArray<ISymbol>.CastUp(@event.ExplicitInterfaceImplementations), 145IMethodSymbol method => ImmutableArray<ISymbol>.CastUp(method.ExplicitInterfaceImplementations), 146IPropertySymbol property => ImmutableArray<ISymbol>.CastUp(property.ExplicitInterfaceImplementations), 150public static ImmutableArray<ISymbol> ExplicitOrImplicitInterfaceImplementations(this ISymbol symbol) 175public static ImmutableArray<ISymbol> ImplicitInterfaceImplementations(this ISymbol symbol) 423public static ImmutableArray<IParameterSymbol> GetParameters(this ISymbol? symbol) 431public static ImmutableArray<ITypeParameterSymbol> GetTypeParameters(this ISymbol? symbol) 439public static ImmutableArray<ITypeParameterSymbol> GetAllTypeParameters(this ISymbol? symbol) 452public static ImmutableArray<ITypeSymbol> GetTypeArguments(this ISymbol? symbol) 460public static ImmutableArray<ITypeSymbol> GetAllTypeArguments(this ISymbol symbol) 705var potentialGetAwaiters = semanticModel.LookupSymbols(position,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (6)
43public static ImmutableArray<INamedTypeSymbol> GetAllInterfacesIncludingThis(this ITypeSymbol type) 45var allInterfaces = type.AllInterfaces; 446public static ImmutableArray<T> GetAccessibleMembersInThisAndBaseTypes<T>(this ITypeSymbol? containingType, ISymbol within) where T : class, ISymbol 456public static ImmutableArray<T> GetAccessibleMembersInThisAndBaseTypes<T>(this ITypeSymbol? containingType, string memberName, ISymbol within) where T : class, ISymbol 593var allTypeArgs1 = n1.GetAllTypeArguments(); 594var allTypeArgs2 = n2.GetAllTypeArguments();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.SubstituteTypesVisitor.cs (1)
72var allTypeArguments = symbol.GetAllTypeArguments();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SignatureComparer.cs (4)
108ImmutableArray<IParameterSymbol> parameters1, 109ImmutableArray<IParameterSymbol> parameters2) 118ImmutableArray<IParameterSymbol> parameters1, 119ImmutableArray<IParameterSymbol> parameters2,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.cs (2)
43private readonly ImmutableArray<EquivalenceVisitor> _equivalenceVisitors; 44private readonly ImmutableArray<GetHashCodeVisitor> _getHashCodeVisitors;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (8)
76internal 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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (1)
109private static int CombineHashCodes<T>(ImmutableArray<T> array, int currentHash, Func<int, T, int> func)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\CodeFixContextExtensions.cs (1)
27internal static void RegisterFixes(this CodeFixContext context, IEnumerable<CodeAction> actions, ImmutableArray<Diagnostic> diagnostics)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\FixAllContextHelper.cs (12)
22public static async Task<ImmutableDictionary<Document, ImmutableArray<Diagnostic>>> GetDocumentDiagnosticsToFixAsync( 27var allDiagnostics = ImmutableArray<Diagnostic>.Empty; 40var documentDiagnostics = await fixAllContext.GetDocumentDiagnosticsAsync(document).ConfigureAwait(false); 41return ImmutableDictionary<Document, ImmutableArray<Diagnostic>>.Empty.SetItem(document, documentDiagnostics); 72var projectsToFix = project.Solution.Projects 80allDiagnostics = await ProducerConsumer<ImmutableArray<Diagnostic>>.RunParallelAsync( 92await foreach (var diagnostics in results.ConfigureAwait(false)) 106return ImmutableDictionary<Document, ImmutableArray<Diagnostic>>.Empty; 132private static async Task<ImmutableDictionary<Document, ImmutableArray<Diagnostic>>> GetDocumentDiagnosticsToFixAsync( 134ImmutableArray<Diagnostic> diagnostics, 137var builder = ImmutableDictionary.CreateBuilder<Document, ImmutableArray<Diagnostic>>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\ForkingSyntaxEditorBasedCodeFixProvider.cs (1)
56ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\MultiProjectSafeFixAllProvider.cs (6)
40using var _ = PooledDictionary<DocumentId, ImmutableArray<DocumentId>>.GetInstance(out var documentToLinkedDocuments); 61var linkedDocuments = document.GetLinkedDocumentIds(); 81var diagnostics = documentToDiagnostics[document]; 92var linkedDiagnostics = documentToDiagnostics.TryGetValue(linkedDocument, out var result) ? result : []; 110static IEnumerable<TextSpan> GetDiagnosticSpans(ImmutableArray<Diagnostic> diagnostics)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\SyntaxEditorBasedCodeFixProvider.cs (5)
19private static readonly ImmutableArray<FixAllScope> s_defaultSupportedFixAllScopes = 41var filteredDiagnostics = diagnostics.Distinct() 65var diagnostics = ImmutableArray.Create(diagnostic ?? context.Diagnostics[0]); 70Document document, ImmutableArray<Diagnostic> diagnostics, CancellationToken cancellationToken) 98Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixesAndRefactorings\AbstractFixAllSpanMappingService.cs (3)
20protected abstract Task<ImmutableDictionary<Document, ImmutableArray<TextSpan>>> GetFixAllSpansIfWithinGlobalStatementAsync( 23public Task<ImmutableDictionary<Document, ImmutableArray<TextSpan>>> GetFixAllSpansAsync( 32private async Task<ImmutableDictionary<Document, ImmutableArray<TextSpan>>> GetFixAllSpansAsync(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixesAndRefactorings\IFixAllSpanMappingService.cs (1)
30Task<ImmutableDictionary<Document, ImmutableArray<TextSpan>>> GetFixAllSpansAsync(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService_FindDeclaration.cs (3)
30var declarations = _symbolDeclarationService.GetDeclarations(destination); 163var declarationReferences = _symbolDeclarationService.GetDeclarations(symbol); 164var declarations = declarationReferences.SelectAsArray(r => r.GetSyntax(cancellationToken));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationSymbolFactory.cs (72)
29ImmutableArray<AttributeData> attributes, Accessibility accessibility, 31ImmutableArray<IEventSymbol> explicitInterfaceImplementations, 44ImmutableArray<AttributeData> attributes, 49ImmutableArray<IPropertySymbol> explicitInterfaceImplementations, 51ImmutableArray<IParameterSymbol> parameters, 78ImmutableArray<AttributeData> attributes, Accessibility accessibility, DeclarationModifiers modifiers, 79ITypeSymbol type, RefKind refKind, ImmutableArray<IPropertySymbol> explicitInterfaceImplementations, string name, 80ImmutableArray<IParameterSymbol> parameters, IMethodSymbol? getMethod, IMethodSymbol? setMethod, 103ImmutableArray<AttributeData> attributes, 120ImmutableArray<AttributeData> attributes, 124ImmutableArray<IParameterSymbol> parameters, 125ImmutableArray<SyntaxNode> statements = default, 126ImmutableArray<SyntaxNode> baseConstructorArguments = default, 127ImmutableArray<SyntaxNode> thisConstructorArguments = default, 139ImmutableArray<AttributeData> attributes, string typeName, 140ImmutableArray<SyntaxNode> statements = default) 149ImmutableArray<AttributeData> attributes, 154ImmutableArray<IMethodSymbol> explicitInterfaceImplementations, 156ImmutableArray<ITypeParameterSymbol> typeParameters, 157ImmutableArray<IParameterSymbol> parameters, 158ImmutableArray<SyntaxNode> statements = default, 159ImmutableArray<SyntaxNode> handlesExpressions = default, 160ImmutableArray<AttributeData> returnTypeAttributes = default, 173ImmutableArray<AttributeData> attributes, Accessibility accessibility, DeclarationModifiers modifiers, 176ImmutableArray<IMethodSymbol> explicitInterfaceImplementations, 177string? name, ImmutableArray<ITypeParameterSymbol> typeParameters, 178ImmutableArray<IParameterSymbol> parameters, 179ImmutableArray<SyntaxNode> statements = default, 180ImmutableArray<SyntaxNode> handlesExpressions = default, 181ImmutableArray<AttributeData> returnTypeAttributes = default, 192ImmutableArray<AttributeData> attributes, 197ImmutableArray<IParameterSymbol> parameters, 198ImmutableArray<SyntaxNode> statements = default, 199ImmutableArray<AttributeData> returnTypeAttributes = default, 224ImmutableArray<SyntaxNode> statements = default, 225ImmutableArray<AttributeData> toTypeAttributes = default, 245ImmutableArray<AttributeData> attributes, 252ImmutableArray<SyntaxNode> statements = default, 253ImmutableArray<AttributeData> toTypeAttributes = default, 277ImmutableArray<AttributeData> attributes, RefKind refKind, bool isParams, ITypeSymbol type, string name, bool isOptional = false, bool hasDefaultValue = false, object? defaultValue = null) 287ImmutableArray<AttributeData>? attributes = null, 329ImmutableArray<AttributeData> attributes, 331ImmutableArray<ITypeSymbol> constraintTypes, 358ImmutableArray<AttributeData> attributes = default, 360ImmutableArray<IMethodSymbol> explicitInterfaceImplementations = default, 361ImmutableArray<SyntaxNode> statements = default) 383ImmutableArray<AttributeData> attributes, 385ImmutableArray<SyntaxNode> statements) 405ImmutableArray<TypedConstant> constructorArguments = default, 406ImmutableArray<KeyValuePair<string, TypedConstant>> namedArguments = default) 415ImmutableArray<AttributeData> attributes, 419ImmutableArray<ITypeParameterSymbol> typeParameters = default, 421ImmutableArray<INamedTypeSymbol> interfaces = default, 423ImmutableArray<ISymbol> members = default, 434ImmutableArray<AttributeData> attributes, 438ImmutableArray<ITypeParameterSymbol> typeParameters = default, 440ImmutableArray<INamedTypeSymbol> interfaces = default, 442ImmutableArray<ISymbol> members = default, 460ImmutableArray<AttributeData> attributes, 466ImmutableArray<ITypeParameterSymbol> typeParameters = default, 467ImmutableArray<IParameterSymbol> parameters = default, 512ImmutableArray<AttributeData> attributes = default, 515ImmutableArray<IMethodSymbol> explicitInterfaceImplementations = default, 517ImmutableArray<IParameterSymbol>? parameters = null, 518ImmutableArray<SyntaxNode> statements = default, 521Optional<ImmutableArray<AttributeData>> returnTypeAttributes = default) 542ImmutableArray<AttributeData> attributes = default, 543ImmutableArray<IParameterSymbol>? parameters = null, 546ImmutableArray<IPropertySymbol> explicitInterfaceImplementations = default, 570ImmutableArray<AttributeData> attributes = default, 573ImmutableArray<IEventSymbol> explicitInterfaceImplementations = default, 591ImmutableArray<AttributeData> attributes = default,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAbstractMethodSymbol.cs (14)
17private readonly ImmutableArray<AttributeData> _returnTypeAttributes; 19public virtual ImmutableArray<AttributeData> GetReturnTypeAttributes() 24ImmutableArray<AttributeData> attributes, 28ImmutableArray<AttributeData> returnTypeAttributes, 42public abstract ImmutableArray<ITypeSymbol> TypeArguments { get; } 43public abstract ImmutableArray<ITypeParameterSymbol> TypeParameters { get; } 44public abstract ImmutableArray<IParameterSymbol> Parameters { get; } 52public abstract ImmutableArray<IMethodSymbol> ExplicitInterfaceImplementations { get; } 59public ImmutableArray<NullableAnnotation> TypeArgumentNullableAnnotations => TypeArguments.SelectAsArray(a => a.NullableAnnotation); 90public ImmutableArray<CustomModifier> RefCustomModifiers 93public virtual ImmutableArray<CustomModifier> ReturnTypeCustomModifiers 110public ImmutableArray<INamedTypeSymbol> UnmanagedCallingConventionTypes => []; 115public IMethodSymbol Construct(ImmutableArray<ITypeSymbol> typeArguments, ImmutableArray<CodeAnalysis.NullableAnnotation> typeArgumentNullableAnnotations)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAbstractNamedTypeSymbol.cs (13)
18public ImmutableArray<IFieldSymbol> TupleElements { get; protected set; } 20internal readonly ImmutableArray<CodeGenerationAbstractNamedTypeSymbol> TypeMembers; 25ImmutableArray<AttributeData> attributes, 31ImmutableArray<CodeGenerationAbstractNamedTypeSymbol> typeMembers) 64public INamedTypeSymbol Construct(ImmutableArray<ITypeSymbol> typeArguments, ImmutableArray<NullableAnnotation> typeArgumentNullableAnnotations) 81public abstract ImmutableArray<IMethodSymbol> InstanceConstructors { get; } 82public abstract ImmutableArray<IMethodSymbol> StaticConstructors { get; } 83public abstract ImmutableArray<IMethodSymbol> Constructors { get; } 84public abstract ImmutableArray<ITypeSymbol> TypeArguments { get; } 85public abstract ImmutableArray<NullableAnnotation> TypeArgumentNullableAnnotations { get; } 87public ImmutableArray<CustomModifier> GetTypeArgumentCustomModifiers(int ordinal) 97public abstract ImmutableArray<ITypeParameterSymbol> TypeParameters { get; }
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationArrayTypeSymbol.cs (3)
24public ImmutableArray<int> Sizes 32public ImmutableArray<int> LowerBounds 57public ImmutableArray<CustomModifier> CustomModifiers
src\roslyn\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\roslyn\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\roslyn\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\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationConstructorSymbol.cs (2)
12ImmutableArray<AttributeData> attributes, 15ImmutableArray<IParameterSymbol> parameters) : CodeGenerationMethodSymbol(containingType,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationConversionSymbol.cs (2)
12ImmutableArray<AttributeData> attributes, 18ImmutableArray<AttributeData> toTypeAttributes,
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationDestructorSymbol.cs (1)
11ImmutableArray<AttributeData> attributes) : CodeGenerationMethodSymbol(containingType,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationEventSymbol.cs (4)
13ImmutableArray<AttributeData> attributes, 17ImmutableArray<IEventSymbol> explicitInterfaceImplementations, 26public ImmutableArray<IEventSymbol> ExplicitInterfaceImplementations { get; } = explicitInterfaceImplementations.NullToEmpty(); 66public static ImmutableArray<CustomModifier> TypeCustomModifiers => [];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationFieldSymbol.cs (3)
14ImmutableArray<AttributeData> attributes, 81public ImmutableArray<CustomModifier> RefCustomModifiers => []; 83public ImmutableArray<CustomModifier> CustomModifiers
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationMethodSymbol.cs (9)
17public override ImmutableArray<ITypeParameterSymbol> TypeParameters { get; } 18public override ImmutableArray<IParameterSymbol> Parameters { get; } 19public override ImmutableArray<IMethodSymbol> ExplicitInterfaceImplementations { get; } 24ImmutableArray<AttributeData> attributes, 29ImmutableArray<IMethodSymbol> explicitInterfaceImplementations, 31ImmutableArray<ITypeParameterSymbol> typeParameters, 32ImmutableArray<IParameterSymbol> parameters, 33ImmutableArray<AttributeData> returnTypeAttributes, 95public override ImmutableArray<ITypeSymbol> TypeArguments
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationNamedTypeSymbol.cs (18)
18private readonly ImmutableArray<ITypeParameterSymbol> _typeParameters; 19private readonly ImmutableArray<INamedTypeSymbol> _interfaces; 20private readonly ImmutableArray<ISymbol> _members; 25ImmutableArray<AttributeData> attributes, 31ImmutableArray<ITypeParameterSymbol> typeParameters, 33ImmutableArray<INamedTypeSymbol> interfaces, 36ImmutableArray<ISymbol> members, 37ImmutableArray<CodeGenerationAbstractNamedTypeSymbol> typeMembers, 114public static ImmutableArray<ISymbol> CandidateSymbols 122public override ImmutableArray<ITypeSymbol> TypeArguments 130public override ImmutableArray<NullableAnnotation> TypeArgumentNullableAnnotations 139public override ImmutableArray<ITypeParameterSymbol> TypeParameters 149public override ImmutableArray<INamedTypeSymbol> Interfaces 157public override ImmutableArray<ISymbol> GetMembers() 160public override ImmutableArray<INamedTypeSymbol> GetTypeMembers() 163public override ImmutableArray<IMethodSymbol> InstanceConstructors 172public override ImmutableArray<IMethodSymbol> StaticConstructors 181public override ImmutableArray<IMethodSymbol> Constructors
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationNamespaceOrTypeSymbol.cs (6)
15ImmutableArray<AttributeData> attributes, 23public virtual ImmutableArray<ISymbol> GetMembers() 26public ImmutableArray<ISymbol> GetMembers(string name) 29public virtual ImmutableArray<INamedTypeSymbol> GetTypeMembers() 32public ImmutableArray<INamedTypeSymbol> GetTypeMembers(string name) 35public ImmutableArray<INamedTypeSymbol> GetTypeMembers(string name, int arity)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationNamespaceSymbol.cs (1)
59public ImmutableArray<INamespaceSymbol> ConstituentNamespaces
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationOperatorSymbol.cs (3)
12ImmutableArray<AttributeData> attributes, 17ImmutableArray<IParameterSymbol> parameters, 18ImmutableArray<AttributeData> returnTypeAttributes,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationParameterSymbol.cs (3)
14ImmutableArray<AttributeData> attributes, 58public ImmutableArray<CustomModifier> RefCustomModifiers => []; 60public ImmutableArray<CustomModifier> CustomModifiers => [];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationPointerTypeSymbol.cs (1)
33public ImmutableArray<CustomModifier> CustomModifiers
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationPropertySymbol.cs (7)
14ImmutableArray<AttributeData> attributes, 19ImmutableArray<IPropertySymbol> explicitInterfaceImplementations, 22ImmutableArray<IParameterSymbol> parametersOpt, 30public ImmutableArray<IParameterSymbol> Parameters { get; } = parametersOpt.NullToEmpty(); 31public ImmutableArray<IPropertySymbol> ExplicitInterfaceImplementations { get; } = explicitInterfaceImplementations.NullToEmpty(); 80public ImmutableArray<CustomModifier> RefCustomModifiers => []; 82public ImmutableArray<CustomModifier> TypeCustomModifiers => [];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationSymbol.cs (10)
21private readonly ImmutableArray<AttributeData> _attributes; 32ImmutableArray<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\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationTypeSymbol.cs (8)
17ImmutableArray<AttributeData> attributes, 31public virtual ImmutableArray<INamedTypeSymbol> Interfaces 34public ImmutableArray<INamedTypeSymbol> AllInterfaces 53public static ImmutableArray<ITypeSymbol> TupleElementTypes => default; 55public static ImmutableArray<string> TupleElementNames => default; 64public ImmutableArray<SymbolDisplayPart> ToDisplayParts(NullableFlowState topLevelNullability, SymbolDisplayFormat format = null) 70public ImmutableArray<SymbolDisplayPart> ToMinimalDisplayParts(SemanticModel semanticModel, NullableFlowState topLevelNullability, int position, SymbolDisplayFormat format = null) 87public virtual ImmutableArray<ITypeSymbol> UnionCaseTypes => [];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeRefactorings\CodeRefactoringContextExtensions.cs (7)
21this CodeRefactoringContext context, ImmutableArray<TCodeAction> actions, TextSpan? applicableToSpan = null) 50public static Task<ImmutableArray<TSyntaxNode>> GetRelevantNodesAsync<TSyntaxNode>(this CodeRefactoringContext context) where TSyntaxNode : SyntaxNode 53public static async Task<ImmutableArray<TSyntaxNode>> GetRelevantNodesAsync<TSyntaxNode>(this CodeRefactoringContext context, bool allowEmptyNodes) where TSyntaxNode : SyntaxNode 75public static Task<ImmutableArray<TSyntaxNode>> GetRelevantNodesAsync<TSyntaxNode>( 81public static async Task<ImmutableArray<TSyntaxNode>> GetRelevantNodesAsync<TSyntaxNode>( 88public static ImmutableArray<TSyntaxNode> GetRelevantNodes<TSyntaxNode>( 92public static ImmutableArray<TSyntaxNode> GetRelevantNodes<TSyntaxNode>(
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\ImportAdderService.cs (3)
76ImmutableArray<INamespaceSymbol> namespaceSymbols, 96ImmutableArray<INamespaceSymbol> namespaceSymbols, 245var importsToAdd = importToSyntax.SelectAsArray(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\ContextQuery\SyntaxContext.cs (1)
98public ImmutableArray<ITypeSymbol> InferredTypes { get; } = document.GetRequiredLanguageService<ITypeInferenceService>().InferTypes(semanticModel, position, cancellationToken);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\DocumentExtensions.cs (3)
180var errors = await GetErrorsAsync(document, cancellationToken, ignoreErrorCode).ConfigureAwait(false); 184public static async Task<ImmutableArray<Diagnostic>> GetErrorsAsync(this Document document, CancellationToken cancellationToken, IList<string>? ignoreErrorCode = null) 202var errors = await newDocument.GetErrorsAsync(cancellationToken, ignoreErrorCodes).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IMethodSymbolExtensions.cs (10)
23var parameterNames = NameGenerator.EnsureUniqueness( 35var newTypeParameterNames = NameGenerator.EnsureUniqueness( 43public static IMethodSymbol RenameTypeParameters(this IMethodSymbol method, ImmutableArray<string> newNames) 51var updatedTypeParameters = RenameTypeParameters( 76this IMethodSymbol method, ImmutableArray<string> parameterNames) 78var parameterList = method.Parameters; 84var parameters = parameterList.RenameParameters(parameterNames); 99private static ImmutableArray<ITypeParameterSymbol> RenameTypeParameters( 100ImmutableArray<ITypeParameterSymbol> typeParameters, 101ImmutableArray<string> newNames,
src\roslyn\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\roslyn\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\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\StringBuilderExtensions.cs (1)
37public static StringBuilder AppendJoinedValues<T>(this StringBuilder builder, string separator, ImmutableArray<T> values, Action<T, StringBuilder> append)
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateEqualsMethod.cs (17)
30ImmutableArray<ISymbol> symbols, 37var statements = CreateEqualsMethodStatements( 48public static IMethodSymbol CreateEqualsMethod(this Compilation compilation, ImmutableArray<SyntaxNode> statements) 56ImmutableArray<SyntaxNode> statements) 80ImmutableArray<ISymbol> symbols, 84var statements = CreateIEquatableEqualsMethodStatements( 96var parameters = ImmutableArray.Create(CodeGenerationSymbolFactory.CreateParameterSymbol( 99attributes: ImmutableArray<AttributeData>.Empty)); 120private static ImmutableArray<SyntaxNode> CreateEqualsMethodStatements( 126ImmutableArray<ISymbol> members, 240ImmutableArray<ISymbol> members, SyntaxNode localNameExpression, 291private static ImmutableArray<SyntaxNode> CreateIEquatableEqualsMethodStatements( 297ImmutableArray<ISymbol> members) 476public static ImmutableArray<ISymbol> CreateMemberDelegatingConstructor( 482ImmutableArray<IParameterSymbol> parameters, 491var newMembers = generateProperties 494var statements = factory.CreateAssignmentStatements(
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions.cs (13)
48public static ImmutableArray<SyntaxNode> CreateThrowNotImplementedStatementBlock( 52public static ImmutableArray<SyntaxNode> CreateArguments( 54ImmutableArray<IParameterSymbol> parameters) 183public static ImmutableArray<SyntaxNode> GetGetAccessorStatements( 201var arguments = generator.CreateArguments(property.Parameters); 222public static ImmutableArray<SyntaxNode> GetSetAccessorStatements( 240var arguments = generator.CreateArguments(property.Parameters); 283public static ImmutableArray<ISymbol> CreateFieldsForParameters( 284ImmutableArray<IParameterSymbol> parameters, ImmutableDictionary<string, string>? parameterToNewFieldMap, bool isContainedInUnsafeType) 305public static ImmutableArray<ISymbol> CreatePropertiesForParameters( 306ImmutableArray<IParameterSymbol> parameters, ImmutableDictionary<string, string>? parameterToNewPropertyMap, bool isContainedInUnsafeType) 335public static ImmutableArray<SyntaxNode> CreateAssignmentStatements( 339ImmutableArray<IParameterSymbol> parameters,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Formatting\FormatterShared.cs (4)
24public async Task<Document> FormatAsync(Document document, SyntaxAnnotation annotation, SyntaxFormattingOptions options, ImmutableArray<AbstractFormattingRule> rules, CancellationToken cancellationToken) 30public SyntaxNode Format(SyntaxNode node, SyntaxAnnotation annotation, SyntaxFormattingOptions options, ImmutableArray<AbstractFormattingRule> rules, CancellationToken cancellationToken) 33public SyntaxNode Format(SyntaxNode node, IEnumerable<TextSpan>? spans, SyntaxFormattingOptions options, ImmutableArray<AbstractFormattingRule> rules, CancellationToken cancellationToken) 36public IFormattingResult GetFormattingResult(SyntaxNode node, IEnumerable<TextSpan>? spans, SyntaxFormattingOptions options, ImmutableArray<AbstractFormattingRule> rules, CancellationToken cancellationToken)
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Helpers\MefHostServicesHelpers.cs (2)
16public static ImmutableArray<Assembly> LoadNearbyAssemblies(ImmutableArray<string> assemblyNames)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Indentation\AbstractIndentationService.cs (1)
52var formattingRules = ImmutableArray.Create(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\AddImports\AbstractAddImportsService.cs (9)
26protected abstract ImmutableArray<SyntaxNode> GetGlobalImports(SemanticModel semanticModel, SyntaxNode? contextLocation, SyntaxGenerator generator, CancellationToken cancellationToken); 57var globalImports = GetGlobalImports(semanticModel, contextLocation, generator, cancellationToken); 58var containers = GetAllContainers(root, contextLocation); 62private static ImmutableArray<SyntaxNode> GetAllContainers(SyntaxNode root, SyntaxNode? contextLocation) 71SyntaxNode import, ImmutableArray<SyntaxNode> containers, ImmutableArray<SyntaxNode> globalImports) 137var globalImports = GetGlobalImports(semanticModel, contextLocation, generator, cancellationToken); 138var containers = GetAllContainers(root, contextLocation); 165var contextSpine = applicableContainer.GetAncestorsOrThis<SyntaxNode>().ToImmutableArray();
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\SemanticsFactsService\AbstractSemanticFactsService.cs (4)
219public ImmutableArray<IMethodSymbol> GetDeconstructionAssignmentMethods(SemanticModel semanticModel, SyntaxNode node) 222public ImmutableArray<IMethodSymbol> GetDeconstructionForEachMethods(SemanticModel semanticModel, SyntaxNode node) 243public ImmutableArray<ISymbol> GetBestOrAllSymbols(SemanticModel semanticModel, SyntaxNode? node, SyntaxToken token, CancellationToken cancellationToken) 249public ImmutableArray<IMethodSymbol> GetLocalFunctionSymbols(Compilation compilation, ISymbol symbol, CancellationToken cancellationToken)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\SymbolDeclarationService\ISymbolDeclarationService.cs (1)
17ImmutableArray<SyntaxReference> GetDeclarations(ISymbol symbol);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\SyntaxFactsService\ISyntaxFactsService.cs (1)
18Task<ImmutableArray<SyntaxNode>> GetSelectedFieldsAndPropertiesAsync(SyntaxTree syntaxTree, TextSpan textSpan, bool allowPartialSelection, CancellationToken cancellationToken);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\TypeInferenceService\AbstractTypeInferenceService.cs (15)
15private static ImmutableArray<ITypeSymbol> InferTypeBasedOnNameIfEmpty( 16SemanticModel semanticModel, ImmutableArray<ITypeSymbol> result, string? nameOpt) 26private static ImmutableArray<TypeInferenceInfo> InferTypeBasedOnNameIfEmpty( 27SemanticModel semanticModel, ImmutableArray<TypeInferenceInfo> result, string? nameOpt) 31var types = InferTypeBasedOnName(semanticModel, nameOpt); 38private static readonly ImmutableArray<string> s_booleanPrefixes = 41private static ImmutableArray<ITypeSymbol> InferTypeBasedOnName( 79public ImmutableArray<ITypeSymbol> InferTypes( 83var result = CreateTypeInferrer(semanticModel, cancellationToken) 90public ImmutableArray<ITypeSymbol> InferTypes( 94var result = CreateTypeInferrer(semanticModel, cancellationToken) 101public ImmutableArray<TypeInferenceInfo> GetTypeInferenceInfo( 105var result = CreateTypeInferrer(semanticModel, cancellationToken).InferTypes(position); 109public ImmutableArray<TypeInferenceInfo> GetTypeInferenceInfo( 113var result = CreateTypeInferrer(semanticModel, cancellationToken).InferTypes(expression);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\TypeInferenceService\ITypeInferenceService.cs (4)
27ImmutableArray<ITypeSymbol> InferTypes(SemanticModel semanticModel, SyntaxNode expression, string? nameOpt, CancellationToken cancellationToken); 28ImmutableArray<ITypeSymbol> InferTypes(SemanticModel semanticModel, int position, string? nameOpt, CancellationToken cancellationToken); 30ImmutableArray<TypeInferenceInfo> GetTypeInferenceInfo(SemanticModel semanticModel, int position, string? nameOpt, CancellationToken cancellationToken); 31ImmutableArray<TypeInferenceInfo> GetTypeInferenceInfo(SemanticModel semanticModel, SyntaxNode expression, string? nameOpt, CancellationToken cancellationToken);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Options\MemberDisplayOptions.cs (1)
39public static readonly ImmutableArray<IOption2> EditorConfigOptions = [HideAdvancedMembers];
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\ISimplificationService.cs (2)
32ImmutableArray<TextSpan> spans, 34ImmutableArray<AbstractReducer> reducers = default,
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\LayeredServiceUtilities.cs (1)
19private static readonly ImmutableArray<string> s_orderedProductLayers = [ServiceLayer.Host, ServiceLayer.Editor, ServiceLayer.Desktop, ServiceLayer.Default];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefLanguageServices.cs (4)
15[assembly: DebuggerTypeProxy(typeof(MefLanguageServices.LazyServiceMetadataDebuggerProxy), Target = typeof(ImmutableArray<Lazy<ILanguageService, WorkspaceServiceMetadata>>))] 23private readonly ImmutableArray<(Lazy<ILanguageService, LanguageServiceMetadata> lazyService, bool usesFactory)> _services; 54ImmutableArray<IDisposable> disposableServices; 134internal sealed class LazyServiceMetadataDebuggerProxy(ImmutableArray<Lazy<ILanguageService, LanguageServiceMetadata>> services)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefWorkspaceServices.cs (9)
16[assembly: DebuggerTypeProxy(typeof(MefWorkspaceServices.LazyServiceMetadataDebuggerProxy), Target = typeof(ImmutableArray<Lazy<IWorkspaceService, WorkspaceServiceMetadata>>))] 24private readonly ImmutableArray<(Lazy<IWorkspaceService, WorkspaceServiceMetadata> lazyService, bool usesFactory)> _services; 37private ImmutableArray<string> _languages; 76ImmutableArray<IDisposable> disposableServices; 148private ImmutableArray<string> ComputeSupportedLanguages() 150var localLanguages = _languages; 153var list = HostExportProvider.GetExports<ILanguageService, LanguageServiceMetadata>().Select(lz => lz.Metadata.Language).Concat( 167internal ImmutableArray<string> SupportedLanguagesArray => ComputeSupportedLanguages(); 203internal sealed class LazyServiceMetadataDebuggerProxy(ImmutableArray<Lazy<IWorkspaceService, WorkspaceServiceMetadata>> services)
ILAssembler (51)
BlobBuilderExtensions.cs (2)
15public static BlobBuilder SerializeSequence<T>(this ImmutableArray<T> sequence) 22public static void WriteSerializedSequence<T>(this BlobBuilder writer, ImmutableArray<T> sequence)
DocumentCompiler.cs (2)
16public (ImmutableArray<Diagnostic>, PEBuilder?) Compile(SourceText document, Func<string, SourceText> includedDocumentLoader, Func<string, byte[]> resourceLocator, Options options) 39ImmutableArray<Diagnostic>.Builder diagnostics = ImmutableArray.CreateBuilder<Diagnostic>();
EntityRegistry.cs (1)
860public BlobOrHandle GetGenericInstantiation(BlobOrHandle genericType, ImmutableArray<BlobOrHandle> typeArguments)
GrammarVisitor.cs (29)
33public sealed record Sequence<T>(ImmutableArray<T> Value) : GrammarResult; 78private readonly ImmutableArray<Diagnostic>.Builder _diagnostics = ImmutableArray.CreateBuilder<Diagnostic>(); 134public (ImmutableArray<Diagnostic> Diagnostics, PEBuilder? Image) BuildImage() 214var vtableFixupInfos = BuildVTableFixupInfos(); 276private ImmutableArray<VTableExportPEBuilder.VTableFixupInfo> BuildVTableFixupInfos() 279return ImmutableArray<VTableExportPEBuilder.VTableFixupInfo>.Empty; 343var typeSystemRowCounts = _metadataBuilder.GetRowCounts(); 1061var accessors = VisitPropDecls(context.propDecls()).Value; 1075var accessors = VisitEventDecls(context.eventDecls()).Value; 1928var signatureArgs = VisitSigArgs(context.sigArgs()).Value; 2151public GrammarResult.Literal<(EntityRegistry.EntityBase? implementation, int typedefId, ImmutableArray<EntityRegistry.CustomAttributeEntity> attrs)> VisitExptypeDecls(CILParser.ExptypeDeclsContext context) 2496var bytes = blob.ToImmutableArray(); 2695ImmutableArray<byte>? hash = context.HASH() is not null ? VisitBytes(context.bytes()).Value : null; 2906public GrammarResult.Sequence<EntityRegistry.InterfaceImplementationEntity> VisitImplClause(CILParser.ImplClauseContext context) => context.implList() is {} implList ? VisitImplList(implList) : new(ImmutableArray<EntityRegistry.InterfaceImplementationEntity>.Empty); 3084var args = VisitSigArgs(context.sigArgs()).Value; 3454public GrammarResult.Literal<(EntityRegistry.EntityBase? implementation, uint offset, ImmutableArray<EntityRegistry.CustomAttributeEntity> attributes)> VisitManifestResDecls(CILParser.ManifestResDeclsContext context) 3533var bytes = VisitHexbytes(hexBytes).Value; 3639var newLocals = VisitSigArgs(context.sigArgs()).Value; 3705var args = VisitSigArgs(context.sigArgs()).Value; 3897var typeParameters = VisitTyparsClause(context.typarsClause()).Value; 3954var args = VisitSigArgs(context.sigArgs()).Value; 4062var args = VisitSigArgs(context.sigArgs()).Value; 4560var args = VisitSigArgs(context.sigArgs()).Value; 5006return new(ImmutableArray<EntityRegistry.GenericParameterConstraintEntity>.Empty); 5057ImmutableArray<EntityRegistry.GenericParameterEntity>.Builder builder = ImmutableArray.CreateBuilder<EntityRegistry.GenericParameterEntity>(typeParameters.Length); 5067public GrammarResult.Sequence<EntityRegistry.GenericParameterEntity> VisitTyparsClause(CILParser.TyparsClauseContext context) => context.typars() is null ? new(ImmutableArray<EntityRegistry.GenericParameterEntity>.Empty) : VisitTypars(context.typars()); 5123var bounds = VisitBounds(arr.bounds()).Value; 5297ImmutableArray<EntityRegistry.TypeEntity>.Builder builder = ImmutableArray.CreateBuilder<EntityRegistry.TypeEntity>(bounds.Length); 5491var rowCounts = sizes.RowCounts;
VTableExportPEBuilder.cs (9)
42private readonly ImmutableArray<VTableFixupInfo> _vtableFixups; 43private readonly ImmutableArray<ExportInfo> _exports; 73ImmutableArray<int> MethodTokens); 97ImmutableArray<VTableFixupInfo> vtableFixups = default, 98ImmutableArray<ExportInfo> exports = default, 110_vtableFixups = vtableFixups.IsDefault ? ImmutableArray<VTableFixupInfo>.Empty : vtableFixups; 111_exports = exports.IsDefault ? ImmutableArray<ExportInfo>.Empty : exports; 125protected override ImmutableArray<Section> CreateSections() 127var baseSections = base.CreateSections();
VTableFixupSupport.cs (8)
60ImmutableArray<VTableFixupEntry> vtableFixups, 61ImmutableArray<MethodExport> exports) 70ImmutableArray<VTableFixupEntry> vtableFixups, 71ImmutableArray<MethodExport> exports, 105public static int CalculateVTableFixupsDirectorySize(ImmutableArray<VTableFixupEntry> vtableFixups) 116public static int CalculateVTableSlotDataSize(ImmutableArray<VTableFixupEntry> vtableFixups) 154ImmutableArray<VTableFixupEntry> vtableFixups, 177ImmutableArray<VTableFixupEntry> vtableFixups,
ILCompiler.Compiler (47)
Compiler\Compilation.cs (1)
630protected ImmutableArray<DependencyNodeCore<NodeFactory>> MarkedNodes
Compiler\Dataflow\AttributeDataFlow.cs (1)
97private void ProcessAttributeDataflow(MethodDesc method, ImmutableArray<object?> arguments, ref DependencyList? result)
Compiler\Dataflow\ReflectionMethodBodyScanner.cs (2)
296ImmutableArray<MultiValue> arguments; 336ImmutableArray<MultiValue> argumentValues,
Compiler\Dataflow\TrimAnalysisMethodCallPattern.cs (3)
24public readonly ImmutableArray<MultiValue> Arguments; 33ImmutableArray<MultiValue> arguments, 44Arguments = ImmutableArray<MultiValue>.Empty;
Compiler\DependencyAnalysis\CustomAttributeBasedDependencyAlgorithm.cs (1)
278foreach (CustomAttributeTypedArgument<TypeDesc> arrayElement in (ImmutableArray<CustomAttributeTypedArgument<TypeDesc>>)value)
Compiler\DependencyAnalysis\DynamicDependencyAttributesOnEntityNode.cs (1)
103var fixedArgs = attribute.FixedArguments;
Compiler\ILScanner.cs (12)
298public ScannedVTableProvider(ImmutableArray<DependencyNodeCore<NodeFactory>> markedNodes) 342public ScannedDictionaryLayoutProvider(NodeFactory factory, ImmutableArray<DependencyNodeCore<NodeFactory>> markedNodes) 468public ScannedDevirtualizationManager(NodeFactory factory, ImmutableArray<DependencyNodeCore<NodeFactory>> markedNodes) 817public ScannedInliningPolicy(CompilationModuleGroup baseGroup, ImmutableArray<DependencyNodeCore<NodeFactory>> markedNodes) 859public ScannedMethodImportationErrorProvider(ImmutableArray<DependencyNodeCore<NodeFactory>> markedNodes) 886public ScannedInlinedThreadStatics(NodeFactory factory, ImmutableArray<DependencyNodeCore<NodeFactory>> markedNodes) 943public ScannedPreinitializationPolicy(PreinitializationManager preinitManager, ImmutableArray<DependencyNodeCore<NodeFactory>> markedNodes) 994public ScannedReadOnlyPolicy(ImmutableArray<DependencyNodeCore<NodeFactory>> markedNodes) 1022private ImmutableArray<IExternalTypeMapNode> _externalTypeMapNodes; 1023private ImmutableArray<IProxyTypeMapNode> _proxyTypeMapNodes; 1027ImmutableArray<IExternalTypeMapNode>.Builder externalTypeMapNodes = ImmutableArray.CreateBuilder<IExternalTypeMapNode>(); 1028ImmutableArray<IProxyTypeMapNode>.Builder proxyTypeMapNodes = ImmutableArray.CreateBuilder<IProxyTypeMapNode>();
Compiler\MstatObjectDumper.cs (2)
242protected override ImmutableArray<Section> CreateSections() 244ImmutableArray<Section> result = base.CreateSections();
src\runtime\src\coreclr\tools\Common\Compiler\Dataflow\MethodProxy.cs (3)
53internal partial ImmutableArray<GenericParameterProxy> GetGenericParameters() 58return ImmutableArray<GenericParameterProxy>.Empty; 60ImmutableArray<GenericParameterProxy>.Builder builder = ImmutableArray.CreateBuilder<GenericParameterProxy>(methodDef.Instantiation.Length);
src\runtime\src\coreclr\tools\Common\Compiler\Dataflow\TypeProxy.cs (2)
19internal partial ImmutableArray<GenericParameterProxy> GetGenericParameters() 24return ImmutableArray<GenericParameterProxy>.Empty;
src\runtime\src\coreclr\tools\Common\Compiler\Win32Resources\ResourceData.cs (1)
48System.Collections.Immutable.ImmutableArray<byte> ecmaData = ecmaModule.PEReader.GetEntireImage().GetContent();
src\runtime\src\coreclr\tools\Common\TypeSystem\Interop\UnmanagedCallingConventions.cs (2)
159ImmutableArray<CustomAttributeTypedArgument<TypeDesc>> callConvArray = default; 164callConvArray = (ImmutableArray<CustomAttributeTypedArgument<TypeDesc>>)arg.Value;
src\runtime\src\coreclr\tools\Common\TypeSystem\MetadataEmitter\TypeSystemMetadataEmitter.cs (6)
575shapeEncoder.Shape(rank, ImmutableArray<int>.Empty, GetZeroedImmutableArrayOfSize(rank)); 579private static ImmutableArray<int>[] ImmutableArraysFilledWithZeroes = CreateStaticArrayOfImmutableArraysFilledWithZeroes(33); // The max rank of an array is 32 581private static ImmutableArray<int> GetZeroedImmutableArrayOfSize(int rank) 588private static ImmutableArray<int>[] CreateStaticArrayOfImmutableArraysFilledWithZeroes(int count) 590ImmutableArray<int>[] result = new ImmutableArray<int>[count];
src\runtime\src\tools\illink\src\ILLink.Shared\DataFlow\IControlFlowGraph.cs (2)
68public readonly ImmutableArray<TRegion> FinallyRegions; 70public ControlFlowBranch(TBlock source, TBlock? destination, ImmutableArray<TRegion> finallyRegions, ConditionKind conditionKind)
src\runtime\src\tools\illink\src\ILLink.Shared\TrimAnalysis\HandleCallAction.cs (6)
1186var genericParameterValues = GetGenericParameterValues(typeValue.RepresentedType.GetGenericParameters()); 1661private bool AnalyzeGenericInstantiationTypeArray(in MultiValue arrayParam, ImmutableArray<GenericParameterValue> genericParameters) 1741var genericParameterValues = GetGenericParameterValues(genericMethod.GetGenericParameters()); 1748private ImmutableArray<GenericParameterValue> GetGenericParameterValues(ImmutableArray<GenericParameterProxy> genericParameters) 1751return ImmutableArray<GenericParameterValue>.Empty;
src\runtime\src\tools\illink\src\ILLink.Shared\TypeSystemProxy\MethodProxy.cs (1)
57internal partial ImmutableArray<GenericParameterProxy> GetGenericParameters();
src\runtime\src\tools\illink\src\ILLink.Shared\TypeSystemProxy\TypeProxy.cs (1)
13internal partial ImmutableArray<GenericParameterProxy> GetGenericParameters();
ILCompiler.DependencyAnalysisFramework (3)
DependencyAnalyzer.cs (2)
35private ImmutableArray<DependencyNodeCore<DependencyContextType>> _markedNodesFinal; 129public sealed override ImmutableArray<DependencyNodeCore<DependencyContextType>> MarkedNodeList
DependencyAnalyzerBase.cs (1)
43public abstract ImmutableArray<DependencyNodeCore<DependencyContextType>> MarkedNodeList
ILCompiler.Diagnostics (1)
PdbWriter.cs (1)
225var sections = peReader.PEHeaders.SectionHeaders;
ILCompiler.MetadataTransform (1)
ILCompiler\Metadata\Transform.Scope.cs (1)
119ImmutableArray<byte> publicKeyOrToken = assemblyName.PublicKeyOrToken;
ILCompiler.ReadyToRun (48)
Compiler\CompositeImageSettings.cs (1)
11public ImmutableArray<byte> PublicKey;
Compiler\CryptographicHashProvider.cs (20)
45private ImmutableArray<byte> _lazySHA1Hash; 46private ImmutableArray<byte> _lazySHA256Hash; 47private ImmutableArray<byte> _lazySHA384Hash; 48private ImmutableArray<byte> _lazySHA512Hash; 49private ImmutableArray<byte> _lazyMD5Hash; 51internal abstract ImmutableArray<byte> ComputeHash(HashAlgorithm algorithm); 53internal ImmutableArray<byte> GetHash(AssemblyHashAlgorithm algorithmId) 174private ImmutableArray<byte> GetHash(ref ImmutableArray<byte> lazyHash, HashAlgorithm algorithm) 178ImmutableInterlocked.InterlockedCompareExchange(ref lazyHash, ComputeHash(algorithm), default(ImmutableArray<byte>)); 186internal static ImmutableArray<byte> ComputeSha1(Stream stream) 197return ImmutableArray<byte>.Empty; 200internal static ImmutableArray<byte> ComputeSha1(ImmutableArray<byte> bytes) 205internal static ImmutableArray<byte> ComputeSha1(byte[] bytes) 213internal static ImmutableArray<byte> ComputeHash(HashAlgorithmName algorithmName, IEnumerable<Blob> bytes) 225internal static ImmutableArray<byte> ComputeHash(HashAlgorithmName algorithmName, IEnumerable<ArraySegment<byte>> bytes) 237internal static ImmutableArray<byte> ComputeSourceHash(ImmutableArray<byte> bytes, SourceHashAlgorithm hashAlgorithm = SourceHashAlgorithmUtils.DefaultContentHashAlgorithm) 247internal static ImmutableArray<byte> ComputeSourceHash(IEnumerable<Blob> bytes, SourceHashAlgorithm hashAlgorithm = SourceHashAlgorithmUtils.DefaultContentHashAlgorithm)
Compiler\DependencyAnalysis\ReadyToRun\AttributePresenceFilterNode.cs (1)
157public DummyType GetGenericInstantiation(DummyType genericType, ImmutableArray<DummyType> typeArguments)
Compiler\DependencyAnalysis\ReadyToRun\DebugDirectoryEntryNode.cs (1)
310ImmutableArray<DebugDirectoryEntry> entries = _module.PEReader.SafeReadDebugDirectory();
Compiler\DependencyAnalysis\ReadyToRun\DebugDirectoryNode.cs (3)
98ImmutableArray<DebugDirectoryEntry> entries = _module.PEReader.SafeReadDebugDirectory(); 108ImmutableArray<DebugDirectoryEntry> entries = ImmutableArray<DebugDirectoryEntry>.Empty;
Compiler\DependencyAnalysis\ReadyToRun\ModuleTokenResolver.cs (1)
419public DummyTypeInfo GetGenericInstantiation(DummyTypeInfo genericType, ImmutableArray<DummyTypeInfo> typeArguments)
Compiler\FileLayoutOptimizer.cs (2)
73public ImmutableArray<DependencyNodeCore<NodeFactory>> ApplyProfilerGuidedMethodSort(ImmutableArray<DependencyNodeCore<NodeFactory>> nodes)
Compiler\ReadyToRunCodegenCompilation.cs (1)
409var nodes = _dependencyGraph.MarkedNodeList;
Compiler\ReadyToRunStandaloneMethodMetadata.cs (1)
34var exceptionRegions = _methodBody.ExceptionRegions;
JitInterface\CorInfoImpl.ReadyToRun.cs (1)
623var fixedArguments = customAttribute.DecodeValue(typeProvider).FixedArguments;
src\runtime\src\coreclr\tools\Common\Compiler\Dataflow\MethodProxy.cs (3)
53internal partial ImmutableArray<GenericParameterProxy> GetGenericParameters() 58return ImmutableArray<GenericParameterProxy>.Empty; 60ImmutableArray<GenericParameterProxy>.Builder builder = ImmutableArray.CreateBuilder<GenericParameterProxy>(methodDef.Instantiation.Length);
src\runtime\src\coreclr\tools\Common\Compiler\Dataflow\TypeProxy.cs (2)
19internal partial ImmutableArray<GenericParameterProxy> GetGenericParameters() 24return ImmutableArray<GenericParameterProxy>.Empty;
src\runtime\src\coreclr\tools\Common\Compiler\Win32Resources\ResourceData.cs (1)
48System.Collections.Immutable.ImmutableArray<byte> ecmaData = ecmaModule.PEReader.GetEntireImage().GetContent();
src\runtime\src\coreclr\tools\Common\TypeSystem\Interop\UnmanagedCallingConventions.cs (2)
159ImmutableArray<CustomAttributeTypedArgument<TypeDesc>> callConvArray = default; 164callConvArray = (ImmutableArray<CustomAttributeTypedArgument<TypeDesc>>)arg.Value;
src\runtime\src\coreclr\tools\Common\TypeSystem\MetadataEmitter\TypeSystemMetadataEmitter.cs (6)
575shapeEncoder.Shape(rank, ImmutableArray<int>.Empty, GetZeroedImmutableArrayOfSize(rank)); 579private static ImmutableArray<int>[] ImmutableArraysFilledWithZeroes = CreateStaticArrayOfImmutableArraysFilledWithZeroes(33); // The max rank of an array is 32 581private static ImmutableArray<int> GetZeroedImmutableArrayOfSize(int rank) 588private static ImmutableArray<int>[] CreateStaticArrayOfImmutableArraysFilledWithZeroes(int count) 590ImmutableArray<int>[] result = new ImmutableArray<int>[count];
src\runtime\src\tools\illink\src\ILLink.Shared\TypeSystemProxy\MethodProxy.cs (1)
57internal partial ImmutableArray<GenericParameterProxy> GetGenericParameters();
src\runtime\src\tools\illink\src\ILLink.Shared\TypeSystemProxy\TypeProxy.cs (1)
13internal partial ImmutableArray<GenericParameterProxy> GetGenericParameters();
ILCompiler.RyuJit (3)
Compiler\RyuJitCompilation.cs (1)
103var nodes = _dependencyGraph.MarkedNodeList;
src\runtime\src\coreclr\tools\aot\ILCompiler.ReadyToRun\Compiler\FileLayoutOptimizer.cs (2)
73public ImmutableArray<DependencyNodeCore<NodeFactory>> ApplyProfilerGuidedMethodSort(ImmutableArray<DependencyNodeCore<NodeFactory>> nodes)
ILCompiler.TypeSystem (7)
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\PortableExecutableMethodExtensions.cs (2)
11public static ImmutableArray<DebugDirectoryEntry> SafeReadDebugDirectory(this PEReader peReader) 19return ImmutableArray<DebugDirectoryEntry>.Empty;
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\Utilities\CustomAttributeTypeNameParser.cs (1)
212ImmutableArray<TypeName> typeArguments = typeName.GetGenericArguments();
src\runtime\src\coreclr\tools\Common\TypeSystem\Ecma\EcmaField.cs (1)
333var memBlock = field.Module.PEReader.GetSectionData(addr).GetContent();
src\runtime\src\coreclr\tools\Common\TypeSystem\Ecma\EcmaSignatureEncoder.cs (2)
126ImmutableArray<int> bounds = ImmutableArray.Create<int>(); 127ImmutableArray<int> lowerBounds = ImmutableArray.Create<int>();
src\runtime\src\coreclr\tools\Common\TypeSystem\IL\EcmaMethodIL.cs (1)
105ImmutableArray<ExceptionRegion> exceptionRegions = _methodBody.ExceptionRegions;
illink (19)
ILLink.CodeFixProvider (27)
AddUnsafeToExternCodeFixProvider.cs (1)
30public override ImmutableArray<string> FixableDiagnosticIds =>
AddUnsafeToFieldCodeFixProvider.cs (1)
30public override ImmutableArray<string> FixableDiagnosticIds =>
AddUnsafeToLibraryImportCodeFixProvider.cs (1)
36public override ImmutableArray<string> FixableDiagnosticIds =>
AddUnsafeToPointerSignatureCodeFixProvider.cs (1)
29public override ImmutableArray<string> FixableDiagnosticIds =>
DynamicallyAccessedMembersCodeFixProvider.cs (3)
25private static ImmutableArray<DiagnosticDescriptor> GetSupportedDiagnostics() 62public static ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => GetSupportedDiagnostics(); 64public sealed override ImmutableArray<string> FixableDiagnosticIds => SupportedDiagnostics.Select(dd => dd.Id).ToImmutableArray();
MatchPartialSafetyModifierCodeFixProvider.cs (1)
40public override ImmutableArray<string> FixableDiagnosticIds =>
RemoveInvalidUnsafeCodeFixProvider.cs (3)
36public override ImmutableArray<string> FixableDiagnosticIds => 96private static async Task<ImmutableArray<DocumentId>> GetPartsWithUnsafeModifierAsync( 127ImmutableArray<DocumentId> parts,
RemoveUndocumentedUnsafeCodeFixProvider.cs (1)
31public override ImmutableArray<string> FixableDiagnosticIds =>
RequiresAssemblyFilesCodeFixProvider.cs (2)
20public static ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create( 25public sealed override ImmutableArray<string> FixableDiagnosticIds => SupportedDiagnostics.Select(dd => dd.Id).ToImmutableArray();
RequiresDynamicCodeCodeFixProvider.cs (2)
20public static ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(DiagnosticDescriptors.GetDiagnosticDescriptor(DiagnosticId.RequiresDynamicCode)); 22public sealed override ImmutableArray<string> FixableDiagnosticIds => SupportedDiagnostics.Select(dd => dd.Id).ToImmutableArray();
RequiresUnreferencedCodeCodeFixProvider.cs (2)
20public static ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(DiagnosticDescriptors.GetDiagnosticDescriptor(DiagnosticId.RequiresUnreferencedCode)); 22public sealed override ImmutableArray<string> FixableDiagnosticIds => SupportedDiagnostics.Select(dd => dd.Id).ToImmutableArray();
RequiresUnsafeCodeFixProvider.cs (1)
28public sealed override ImmutableArray<string> FixableDiagnosticIds => [UnsafeMemberOperationDiagnosticId];
SynchronizeUnsafeContractCodeFixProvider.cs (7)
64public override ImmutableArray<string> FixableDiagnosticIds => 274private static ImmutableArray<ISymbol> GetBaseContracts(ISymbol symbol) 337private static ImmutableArray<ISymbol> GetExplicitInterfaceImplementations(ISymbol symbol) => 340IMethodSymbol method => ImmutableArray<ISymbol>.CastUp(method.ExplicitInterfaceImplementations), 341IPropertySymbol property => ImmutableArray<ISymbol>.CastUp(property.ExplicitInterfaceImplementations), 342IEventSymbol @event => ImmutableArray<ISymbol>.CastUp(@event.ExplicitInterfaceImplementations), 343_ => ImmutableArray<ISymbol>.Empty,
UnconditionalSuppressMessageCodeFixProvider.cs (1)
24public sealed override ImmutableArray<string> FixableDiagnosticIds
ILLink.RoslynAnalyzer (88)
COMAnalyzer.cs (1)
25public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(s_correctnessOfCOMCannotBeGuaranteed);
CompilationExtensions.cs (2)
148public static ImmutableArray<T> ToImmutableArray<T>(this ReadOnlySpan<T> span) 152case 0: return ImmutableArray<T>.Empty;
DataFlow\LocalDataFlowVisitor.cs (9)
190ImmutableArray<TValue> arguments, 209return ProcessMethodCall(operation, method, null, ImmutableArray<IArgumentOperation>.Empty, state); 367ImmutableArray<TValue>.Builder arguments = ImmutableArray.CreateBuilder<TValue>(); 676public ImmutableArray<DeconstructionValue> Nested { get; } 690public DeconstructionValue(ImmutableArray<DeconstructionValue> nested) 1264ImmutableArray<TValue>.Builder arguments = ImmutableArray.CreateBuilder<TValue>(); 1387ImmutableArray<TValue> arguments, 1476ImmutableArray<IArgumentOperation> arguments, 1493var parameters = method.Parameters;
DataFlowAnalyzerContext.cs (7)
13private readonly Dictionary<RequiresAnalyzerBase, ImmutableArray<ISymbol>> _enabledAnalyzers; 17public ImmutableArray<ISymbol> GetSpecialIncompatibleMembers(RequiresAnalyzerBase analyzer) 19if (!_enabledAnalyzers.TryGetValue(analyzer, out var members)) 31Dictionary<RequiresAnalyzerBase, ImmutableArray<ISymbol>> enabledAnalyzers, 40public static DataFlowAnalyzerContext Create(AnalyzerOptions options, Compilation compilation, ImmutableArray<RequiresAnalyzerBase> requiresAnalyzers) 42var enabledAnalyzers = new Dictionary<RequiresAnalyzerBase, ImmutableArray<ISymbol>>(); 49var incompatibleMembers = analyzer.GetSpecialIncompatibleMembers(compilation);
DynamicallyAccessedMembersAnalyzer.cs (6)
27public static Lazy<ImmutableArray<RequiresAnalyzerBase>> RequiresAnalyzers { get; } = new Lazy<ImmutableArray<RequiresAnalyzerBase>>(GetRequiresAnalyzers); 28private static ImmutableArray<RequiresAnalyzerBase> GetRequiresAnalyzers() 37public static ImmutableArray<DiagnosticDescriptor> GetSupportedDiagnostics() 91public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => GetSupportedDiagnostics(); 93internal static Location GetPrimaryLocation(ImmutableArray<Location>? locations)
ImmutableArrayOperations.cs (3)
12internal static bool Contains<T, TComp>(ImmutableArray<T> list, T elem, TComp comparer) 25internal static TSymbol? TryGetSingleSymbol<TSymbol>(ImmutableArray<ISymbol> members) where TSymbol : class, ISymbol 45internal static void AddIfNotNull<TSymbol>(ImmutableArray<TSymbol>.Builder properties, TSymbol? p) where TSymbol : class, ISymbol
INamedTypeSymbolExtensions.cs (2)
37var interfaces = namedType.Interfaces; 49var members = interfaceSymbol.GetMembers();
LibraryImportRequiresExplicitSafetyAnalyzer.cs (1)
40public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => [s_rule];
PointerSignatureRequiresUnsafeAnalyzer.cs (1)
28public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => [s_rule];
RequiresAnalyzerBase.cs (14)
60ImmutableArray<ISymbol>.Empty, 66private protected virtual ImmutableArray<(Action<SyntaxNodeAnalysisContext> Action, SyntaxKind[] SyntaxKind)> ExtraSyntaxNodeActions { get; } = ImmutableArray<(Action<SyntaxNodeAnalysisContext> Action, SyntaxKind[] SyntaxKind)>.Empty; 67private protected virtual ImmutableArray<(Action<SymbolAnalysisContext> Action, SymbolKind[] SymbolKind)> ExtraSymbolActions { get; } = ImmutableArray<(Action<SymbolAnalysisContext> Action, SymbolKind[] SymbolKind)>.Empty; 68private protected virtual ImmutableArray<Action<CompilationAnalysisContext>> ExtraCompilationActions { get; } = ImmutableArray<Action<CompilationAnalysisContext>>.Empty; 83var incompatibleMembers = GetSpecialIncompatibleMembers(compilation); 158ImmutableArray<ISymbol> incompatibleMembers, 210ImmutableArray<ISymbol>.Empty, 337ImmutableArray<ISymbol> specialIncompatibleMembers, 349internal virtual ImmutableArray<ISymbol> GetSpecialIncompatibleMembers(Compilation compilation) => default; 397var incompatibleMembers = context.GetSpecialIncompatibleMembers(this); 408ImmutableArray<MultiValue> arguments
RequiresAssemblyFilesAnalyzer.cs (3)
37public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(s_locationRule, s_getFilesRule, s_requiresAssemblyFilesRule, s_requiresAssemblyFilesAttributeMismatch, s_requiresAssemblyFilesOnStaticCtor, s_requiresAssemblyFilesOnEntryPoint); 83internal override ImmutableArray<ISymbol> GetSpecialIncompatibleMembers(Compilation compilation) 109ImmutableArray<ISymbol> dangerousPatterns,
RequiresDynamicCodeAnalyzer.cs (4)
28public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => 50internal override bool IsIntrinsicallyHandled(IMethodSymbol calledMethod, MultiValue instance, ImmutableArray<MultiValue> arguments) 157static bool IsConstrainedToBeReferenceTypes(ImmutableArray<GenericParameterProxy> parameters) 179private protected override ImmutableArray<Action<CompilationAnalysisContext>> ExtraCompilationActions =>
RequiresUnreferencedCodeAnalyzer.cs (3)
36public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => 74ImmutableArray<ISymbol> specialIncompatibleMembers, 87private protected override ImmutableArray<Action<CompilationAnalysisContext>> ExtraCompilationActions =>
src\runtime\src\libraries\System.Reflection.Metadata\src\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; }
src\runtime\src\libraries\System.Reflection.Metadata\src\System\Reflection\Metadata\TypeName.cs (4)
40private readonly ImmutableArray<TypeName> _genericArguments; 51ImmutableArray<TypeName>.Builder? genericTypeArguments = default, 67? ImmutableArray<TypeName>.Empty 576ImmutableArray<TypeName> GetGenericArguments() => _genericArguments;
src\runtime\src\libraries\System.Reflection.Metadata\src\System\Reflection\Metadata\TypeNameParser.cs (1)
92ImmutableArray<TypeName>.Builder? genericArgs = null;
src\runtime\src\tools\illink\src\ILLink.Shared\DataFlow\IControlFlowGraph.cs (2)
68public readonly ImmutableArray<TRegion> FinallyRegions; 70public ControlFlowBranch(TBlock source, TBlock? destination, ImmutableArray<TRegion> finallyRegions, ConditionKind conditionKind)
src\runtime\src\tools\illink\src\ILLink.Shared\TrimAnalysis\HandleCallAction.cs (6)
1186var genericParameterValues = GetGenericParameterValues(typeValue.RepresentedType.GetGenericParameters()); 1661private bool AnalyzeGenericInstantiationTypeArray(in MultiValue arrayParam, ImmutableArray<GenericParameterValue> genericParameters) 1741var genericParameterValues = GetGenericParameterValues(genericMethod.GetGenericParameters()); 1748private ImmutableArray<GenericParameterValue> GetGenericParameterValues(ImmutableArray<GenericParameterProxy> genericParameters) 1751return ImmutableArray<GenericParameterValue>.Empty;
src\runtime\src\tools\illink\src\ILLink.Shared\TypeSystemProxy\MethodProxy.cs (1)
57internal partial ImmutableArray<GenericParameterProxy> GetGenericParameters();
src\runtime\src\tools\illink\src\ILLink.Shared\TypeSystemProxy\TypeProxy.cs (1)
13internal partial ImmutableArray<GenericParameterProxy> GetGenericParameters();
TrimAnalysis\GenericArgumentDataFlow.cs (3)
68ImmutableArray<ITypeSymbol> typeArguments, 69ImmutableArray<ITypeParameterSymbol> typeParameters) 139private static bool RequiresGenericArgumentDataFlow(ImmutableArray<ITypeParameterSymbol> typeParameters)
TrimAnalysis\MethodProxy.cs (2)
36internal partial ImmutableArray<GenericParameterProxy> GetGenericParameters() 39return ImmutableArray<GenericParameterProxy>.Empty;
TrimAnalysis\TrimAnalysisMethodCallPattern.cs (3)
20public ImmutableArray<MultiValue> Arguments { get; init; } 28ImmutableArray<MultiValue> arguments, 37Arguments = ImmutableArray<MultiValue>.Empty;
TrimAnalysis\TrimAnalysisVisitor.cs (2)
354ImmutableArray<MultiValue> arguments, 403ImmutableArray<MultiValue> arguments,
TrimAnalysis\TypeNameResolver.cs (1)
127ImmutableArray<TypeName> typeArguments = typeName.GetGenericArguments();
TrimAnalysis\TypeProxy.cs (2)
14internal partial ImmutableArray<GenericParameterProxy> GetGenericParameters() 18return ImmutableArray<GenericParameterProxy>.Empty;
UnsafeMemberMissingSafetyDocumentationAnalyzer.cs (1)
31public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => [s_rule];
Microsoft.Analyzers.Extra (14)
AsyncCallInsideUsingBlockAnalyzer.cs (1)
16public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(
AsyncMethodWithoutCancellation.cs (1)
16public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(
CallAnalyzer.cs (1)
16public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(
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)
LegacyLoggingFixer.cs (3)
50public override ImmutableArray<string> FixableDiagnosticIds => ImmutableArray.Create(DiagDescriptors.LegacyLogging.Id); 239ImmutableArray<IParameterSymbol> attributeCtorParams, 240ImmutableArray<TypedConstant> constructorArguments,
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)
AnalyzerOptionsFactory.cs (1)
17var immutableFiles = ImmutableArray.Create(files, 0, files.Length);
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)
ApiLifecycleAnalyzer.cs (1)
19public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics
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;
ModelLoader.cs (1)
22var files = context.Options.AdditionalFiles;
Microsoft.Analyzers.Local.Tests (12)
AnalyzerOptionsFactory.cs (1)
17var immutableFiles = ImmutableArray.Create(files, 0, files.Length);
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.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.App.Analyzers (105)
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\aspnetcore\src\Shared\RoslynUtils\ParsabilityHelper.cs (1)
182var baseTypeBindAsyncMethods = candidate.GetMembers("BindAsync");
src\aspnetcore\src\Shared\RoslynUtils\SymbolExtensions.cs (8)
65public static bool HasAttribute(this ImmutableArray<AttributeData> attributes, INamedTypeSymbol attributeType) 89public static bool TryGetAttribute(this ImmutableArray<AttributeData> attributes, INamedTypeSymbol attributeType, [NotNullWhen(true)] out AttributeData? matchedAttribute) 124public static bool HasAttributeImplementingInterface(this ImmutableArray<AttributeData> attributes, INamedTypeSymbol interfaceType) 129public static bool TryGetAttributeImplementingInterface(this ImmutableArray<AttributeData> attributes, INamedTypeSymbol interfaceType, [NotNullWhen(true)] out AttributeData? matchedAttribute) 154public static bool HasAttributeInheritingFrom(this ImmutableArray<AttributeData> attributes, INamedTypeSymbol baseType) 159public static bool TryGetAttributeInheritingFrom(this ImmutableArray<AttributeData> attributes, INamedTypeSymbol baseType, [NotNullWhen(true)] out AttributeData? matchedAttribute) 214public static ImmutableArray<IParameterSymbol> GetParameters(this ISymbol? symbol) 219_ => ImmutableArray<IParameterSymbol>.Empty,
src\aspnetcore\src\Shared\RoslynUtils\WellKnownTypes.cs (1)
121var 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.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 (19)
AuthenticationStateProviderAnalyzer.cs (1)
23public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; }
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; }
ForLoopIteratorInClosureAnalyzer.cs (1)
19public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics =>
InvokeAsyncOfObjectAnalyzer.cs (1)
24public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics =>
JSInteropAnalyzer.cs (1)
25public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics =>
JSInteropCodeFixProvider.cs (1)
24public override ImmutableArray<string> FixableDiagnosticIds => ImmutableArray.Create(DiagnosticDescriptors.UnguardedJSInteropCall.Id);
JSInvokableAnalyzer.cs (2)
18public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => 37var attributes = method.GetAttributes();
JSInvokableCodeFixProvider.cs (1)
22public override ImmutableArray<string> FixableDiagnosticIds
PersistentStateAnalyzer.cs (1)
24public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; }
StateHasChangedAnalyzer.cs (3)
22public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => 53var redundantCallLocationsByMethod = new ConcurrentDictionary<IMethodSymbol, ImmutableArray<Location>>(SymbolEqualityComparer.Default); 153var locations = methodAndLocations.Value;
StateHasChangedCodeFixProvider.cs (1)
22public override ImmutableArray<string> FixableDiagnosticIds => ImmutableArray.Create(DiagnosticDescriptors.UnnecessaryStateHasChangedCall.Id);
SupplyParameterFromFormAnalyzer.cs (1)
24public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; }
VirtualizeItemComparerAnalyzer.cs (1)
23public override ImmutableArray<DiagnosticDescriptor> 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.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.Testing.Generators (2)
ServiceOverrideAnalyzer.cs (1)
16public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics =>
StartupHookGenerator.cs (1)
163ImmutableArray<ServiceOverrideCallsite?> callsites)
Microsoft.AspNetCore.Http.Extensions (11)
src\aspnetcore\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\aspnetcore\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.RequestDelegateGenerator (25)
RequestDelegateGenerator.Emitter.cs (5)
18internal static string EmitInterceptorDefinition((Endpoint Source, int Index, ImmutableArray<InterceptableLocation> Elements) endpointWithLocations) 122internal static ImmutableHashSet<string> EmitHttpVerbs(ImmutableArray<Endpoint> endpoints) 131internal static string EmitEndpointHelpers(ImmutableArray<Endpoint> endpoints) 195internal static string EmitHelperTypes(ImmutableArray<Endpoint> endpoints) 236ImmutableArray<string> endpointsCode,
RequestDelegateGeneratorSuppressor.cs (1)
86public override ImmutableArray<SuppressionDescriptor> SupportedSuppressions => ImmutableArray.Create(SuppressRUCDiagnostic, SuppressRDCDiagnostic);
src\aspnetcore\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\aspnetcore\src\Shared\RoslynUtils\ParsabilityHelper.cs (1)
182var baseTypeBindAsyncMethods = candidate.GetMembers("BindAsync");
src\aspnetcore\src\Shared\RoslynUtils\SymbolExtensions.cs (8)
65public static bool HasAttribute(this ImmutableArray<AttributeData> attributes, INamedTypeSymbol attributeType) 89public static bool TryGetAttribute(this ImmutableArray<AttributeData> attributes, INamedTypeSymbol attributeType, [NotNullWhen(true)] out AttributeData? matchedAttribute) 124public static bool HasAttributeImplementingInterface(this ImmutableArray<AttributeData> attributes, INamedTypeSymbol interfaceType) 129public static bool TryGetAttributeImplementingInterface(this ImmutableArray<AttributeData> attributes, INamedTypeSymbol interfaceType, [NotNullWhen(true)] out AttributeData? matchedAttribute) 154public static bool HasAttributeInheritingFrom(this ImmutableArray<AttributeData> attributes, INamedTypeSymbol baseType) 159public static bool TryGetAttributeInheritingFrom(this ImmutableArray<AttributeData> attributes, INamedTypeSymbol baseType, [NotNullWhen(true)] out AttributeData? matchedAttribute) 214public static ImmutableArray<IParameterSymbol> GetParameters(this ISymbol? symbol) 219_ => ImmutableArray<IParameterSymbol>.Empty,
src\aspnetcore\src\Shared\RoslynUtils\WellKnownTypes.cs (1)
121var types = _compilation.GetTypesByMetadataName(metadataName);
StaticRouteHandlerModel\EndpointParameter.cs (3)
68private void ProcessEndpointParameterSource(Endpoint endpoint, ISymbol symbol, ImmutableArray<AttributeData> attributes, WellKnownTypes wellKnownTypes) 424ImmutableArray<AttributeData> attributes, 492var 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.OpenApi.SourceGenerators (32)
Helpers\AssemblyTypeSymbolsVisitor.cs (4)
22public ImmutableArray<INamedTypeSymbol> GetPublicTypes() => [.. _exportedTypes]; 23public ImmutableArray<IPropertySymbol> GetPublicProperties() => [.. _exportedProperties]; 24public ImmutableArray<IMethodSymbol> GetPublicMethods() => [.. _exportedMethods]; 57var nestedTypes = type.GetTypeMembers();
Helpers\ISymbolExtensions.cs (10)
14public static ImmutableArray<ISymbol> ExplicitOrImplicitInterfaceImplementations(this ISymbol symbol) 42public static ImmutableArray<ISymbol> ExplicitInterfaceImplementations(this ISymbol symbol) 45IEventSymbol @event => ImmutableArray<ISymbol>.CastUp(@event.ExplicitInterfaceImplementations), 46IMethodSymbol method => ImmutableArray<ISymbol>.CastUp(method.ExplicitInterfaceImplementations), 47IPropertySymbol property => ImmutableArray<ISymbol>.CastUp(property.ExplicitInterfaceImplementations), 51public static ImmutableArray<ITypeParameterSymbol> GetAllTypeParameters(this ISymbol? symbol) 64public static ImmutableArray<ITypeParameterSymbol> GetTypeParameters(this ISymbol? symbol) 72public static ImmutableArray<ITypeSymbol> GetAllTypeArguments(this ISymbol symbol) 87public static ImmutableArray<ITypeSymbol> GetTypeArguments(this ISymbol? symbol) 175public static ImmutableArray<IParameterSymbol> GetParameters(this ISymbol? symbol)
src\aspnetcore\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>)>();
XmlCommentGenerator.cs (1)
49var groupedAddOpenApiInvocations = output.Right;
XmlCommentGenerator.Emitter.cs (6)
19internal static string GenerateXmlCommentSupportSource(string commentsFromXmlFile, string? commentsFromCompilation, ImmutableArray<(AddOpenApiInvocation Source, int Index, ImmutableArray<InterceptableLocation?> Elements)> groupedAddOpenApiInvocations) => $$""" 740internal static string GenerateAddOpenApiInterceptions(ImmutableArray<(AddOpenApiInvocation Source, int Index, ImmutableArray<InterceptableLocation?> Elements)> groupedAddOpenApiInvocations) 870ImmutableArray<(AddOpenApiInvocation Source, int Index, ImmutableArray<InterceptableLocation?> Elements)> groupedAddOpenApiInvocations)
XmlCommentGenerator.Parser.cs (3)
77var types = visitor.GetPublicTypes(); 87var properties = visitor.GetPublicProperties(); 96var methods = visitor.GetPublicMethods();
XmlComments\XmlComment.InheritDoc.cs (2)
231var typeParameterRefs = document.Descendants(DocumentationCommentXmlNames.TypeParameterReferenceElementName).ToImmutableArray(); 241var typeArgs = symbol.GetAllTypeArguments();
Microsoft.AspNetCore.Razor.Utilities.Shared (691)
ImmutableArrayExtensions.cs (6)
11public static ImmutableArray<T> NullToEmpty<T>(this ImmutableArray<T> array) 12=> array.IsDefault ? ImmutableArray<T>.Empty : array; 17public static ImmutableArray<T> NullToEmpty<T>(this ImmutableArray<T>? array) 20null or { IsDefault: true } => ImmutableArray<T>.Empty,
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilder.cs (27)
61private readonly ImmutableArray<T>.Builder _builder; 83public ImmutableArray<T> ToImmutable() 91public ImmutableArray<T> ToImmutableAndClear() 93ImmutableArray<T> result; 96result = ImmutableArray<T>.Empty; 393public ImmutableArray<T> ToImmutableOrNull() 406public ImmutableArray<U> ToDowncastedImmutable<U>() 411return ImmutableArray<U>.Empty; 423public ImmutableArray<U> ToDowncastedImmutableAndFree<U>() where U : T 425var result = ToDowncastedImmutable<U>(); 433public ImmutableArray<T> ToImmutableAndFree() 437ImmutableArray<T> result; 440result = ImmutableArray<T>.Empty; 613internal Dictionary<K, ImmutableArray<T>> ToDictionary<K>(Func<T, K> keySelector, IEqualityComparer<K>? comparer = null) 618var dictionary1 = new Dictionary<K, ImmutableArray<T>>(1, comparer); 626return new Dictionary<K, ImmutableArray<T>>(comparer); 645var dictionary = new Dictionary<K, ImmutableArray<T>>(accumulator.Count, comparer); 684public void AddRange(ImmutableArray<T> items) 689public void AddRange<U>(ImmutableArray<U> items, Func<U, T> selector) 697public void AddRange(ImmutableArray<T> items, int length) 702public void AddRange(ImmutableArray<T> items, int start, int length) 712public void AddRange<S>(ImmutableArray<S> items) where S : class, T 714AddRange(ImmutableArray<T>.CastUp(items)); 806public ImmutableArray<S> SelectDistinct<S>(Func<T, S> selector) 878public ImmutableArray<TResult> SelectAsArray<TResult>(Func<T, TResult> map) 914public ImmutableArray<TResult> SelectAsArray<TArg, TResult>(Func<T, TArg, TResult> map, TArg arg) 950public ImmutableArray<TResult> SelectAsArrayWithIndex<TArg, TResult>(Func<T, int, TArg, TResult> map, TArg arg)
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilderExtensions.cs (1)
16public static ImmutableArray<T> ToImmutableOrEmptyAndFree<T>(this ArrayBuilder<T>? builder)
src\roslyn\src\Razor\src\Shared\Microsoft.AspNetCore.Razor.SharedUtilities\EnumerableExtensions.cs (81)
23/// Returns a new <see cref="ImmutableArray{T}"/> whose elements are the result of invoking the transform function 26public static ImmutableArray<TResult> SelectAsArray<T, TResult>(this IEnumerable<T> source, Func<T, TResult> selector) 31if (source is ImmutableArray<T> array) 92/// Returns a new <see cref="ImmutableArray{T}"/> whose elements are the result of invoking the transform function 95public static ImmutableArray<TResult> SelectAsArray<T, TResult>(this IEnumerable<T> source, Func<T, int, TResult> selector) 100if (source is ImmutableArray<T> array) 204case ImmutableArray<T> array: 256/// Returns a new <see cref="ImmutableArray{T}"/> whose elements are sorted in ascending order. 258public static ImmutableArray<T> OrderAsArray<T>(this IEnumerable<T> sequence) 260if (sequence is ImmutableArray<T> array) 281/// Returns a new <see cref="ImmutableArray{T}"/> whose elements are sorted in ascending order. 283public static ImmutableArray<T> OrderAsArray<T>(this IEnumerable<T> sequence, IComparer<T> comparer) 285if (sequence is ImmutableArray<T> array) 306/// Returns a new <see cref="ImmutableArray{T}"/> whose elements are sorted in ascending order. 308public static ImmutableArray<T> OrderAsArray<T>(this IEnumerable<T> sequence, Comparison<T> comparison) 310if (sequence is ImmutableArray<T> array) 330/// Returns a new <see cref="ImmutableArray{T}"/> whose elements are sorted in descending order. 332public static ImmutableArray<T> OrderDescendingAsArray<T>(this IEnumerable<T> sequence) 334if (sequence is ImmutableArray<T> array) 355/// Returns a new <see cref="ImmutableArray{T}"/> whose elements are sorted in descending order. 357public static ImmutableArray<T> OrderDescendingAsArray<T>(this IEnumerable<T> sequence, IComparer<T> comparer) 359if (sequence is ImmutableArray<T> array) 380/// Returns a new <see cref="ImmutableArray{T}"/> whose elements are sorted in descending order. 382public static ImmutableArray<T> OrderDescendingAsArray<T>(this IEnumerable<T> sequence, Comparison<T> comparison) 384if (sequence is ImmutableArray<T> array) 406/// Returns a new <see cref="ImmutableArray{T}"/> whose elements are sorted in ascending order according to a key. 408public static ImmutableArray<TElement> OrderByAsArray<TElement, TKey>( 411if (sequence is ImmutableArray<TElement> array) 434/// Returns a new <see cref="ImmutableArray{T}"/> whose elements are sorted in ascending order according to a key. 436public static ImmutableArray<TElement> OrderByAsArray<TElement, TKey>( 439if (sequence is ImmutableArray<TElement> array) 462/// Returns a new <see cref="ImmutableArray{T}"/> whose elements are sorted in ascending order according to a key. 464public static ImmutableArray<TElement> OrderByAsArray<TElement, TKey>( 467if (sequence is ImmutableArray<TElement> array) 489/// Returns a new <see cref="ImmutableArray{T}"/> whose elements are sorted in descending order according to a key. 491public static ImmutableArray<TElement> OrderByDescendingAsArray<TElement, TKey>( 494if (sequence is ImmutableArray<TElement> array) 517/// Returns a new <see cref="ImmutableArray{T}"/> whose elements are sorted in descending order according to a key. 519public static ImmutableArray<TElement> OrderByDescendingAsArray<TElement, TKey>( 522if (sequence is ImmutableArray<TElement> array) 545/// Returns a new <see cref="ImmutableArray{T}"/> whose elements are sorted in descending order according to a key. 547public static ImmutableArray<TElement> OrderByDescendingAsArray<TElement, TKey>( 550if (sequence is ImmutableArray<TElement> array) 564private static ImmutableArray<T> OrderAsArrayCore<T>(this IEnumerable<T> sequence, ref readonly SortHelper<T> sortHelper) 567private static ImmutableArray<TElement> OrderByAsArrayCore<TElement, TKey>( 627/// Returns a new <see cref="ImmutableArray{T}"/> whose elements are the result of invoking the transform function 630public static ImmutableArray<TResult> SelectAndOrderAsArray<T, TResult>(this IEnumerable<T> sequence, Func<T, TResult> selector) 632var result = sequence.SelectAsArray(selector); 647/// Returns a new <see cref="ImmutableArray{T}"/> whose elements are the result of invoking the transform function 650public static ImmutableArray<TResult> SelectAndOrderAsArray<T, TResult>( 653var result = sequence.SelectAsArray(selector); 668/// Returns a new <see cref="ImmutableArray{T}"/> whose elements are the result of invoking the transform function 671public static ImmutableArray<TResult> SelectAndOrderAsArray<T, TResult>( 674var result = sequence.SelectAsArray(selector); 688/// Returns a new <see cref="ImmutableArray{T}"/> whose elements are the result of invoking the transform function 691public static ImmutableArray<TResult> SelectAndOrderDescendingAsArray<T, TResult>(this IEnumerable<T> sequence, Func<T, TResult> selector) 693var result = sequence.SelectAsArray(selector); 708/// Returns a new <see cref="ImmutableArray{T}"/> whose elements are the result of invoking the transform function 711public static ImmutableArray<TResult> SelectAndOrderDescendingAsArray<T, TResult>( 714var result = sequence.SelectAsArray(selector); 729/// Returns a new <see cref="ImmutableArray{T}"/> whose elements are the result of invoking the transform function 732public static ImmutableArray<TResult> SelectAndOrderDescendingAsArray<T, TResult>( 735var result = sequence.SelectAsArray(selector); 751/// Returns a new <see cref="ImmutableArray{T}"/> whose elements are the result of invoking the transform function 754public static ImmutableArray<TResult> SelectAndOrderByAsArray<TElement, TKey, TResult>( 757var result = sequence.SelectAsArray(selector); 774/// Returns a new <see cref="ImmutableArray{T}"/> whose elements are the result of invoking the transform function 777public static ImmutableArray<TResult> SelectAndOrderByAsArray<TElement, TKey, TResult>( 780var result = sequence.SelectAsArray(selector); 797/// Returns a new <see cref="ImmutableArray{T}"/> whose elements are the result of invoking the transform function 800public static ImmutableArray<TResult> SelectAndOrderByAsArray<TElement, TKey, TResult>( 803var result = sequence.SelectAsArray(selector); 819/// Returns a new <see cref="ImmutableArray{T}"/> whose elements are the result of invoking the transform function 822public static ImmutableArray<TResult> SelectAndOrderByDescendingAsArray<TElement, TKey, TResult>( 825var result = sequence.SelectAsArray(selector); 842/// Returns a new <see cref="ImmutableArray{T}"/> whose elements are the result of invoking the transform function 845public static ImmutableArray<TResult> SelectAndOrderByDescendingAsArray<TElement, TKey, TResult>( 848var result = sequence.SelectAsArray(selector); 865/// Returns a new <see cref="ImmutableArray{T}"/> whose elements are the result of invoking the transform function 868public static ImmutableArray<TResult> SelectAndOrderByDescendingAsArray<TElement, TKey, TResult>( 871var result = sequence.SelectAsArray(selector);
src\roslyn\src\Razor\src\Shared\Microsoft.AspNetCore.Razor.SharedUtilities\HashSetExtensions.cs (1)
20public static void AddRange<T>(this HashSet<T> set, ImmutableArray<T> array)
src\roslyn\src\Razor\src\Shared\Microsoft.AspNetCore.Razor.SharedUtilities\ImmutableArrayExtensions_Unsafe.cs (22)
13/// Provides a set of unsafe operations that can be performed on an <see cref="ImmutableArray{T}"/>. 19/// <see cref="ImmutableArray{T}"/>. These operations mutate the internal array 20/// of the <see cref="ImmutableArray{T}"/> and should be only be used in 23public static UnsafeOperations<T> Unsafe<T>(this ImmutableArray<T> array) 26public readonly ref struct UnsafeOperations<T>(ImmutableArray<T> array) 29/// Sorts the elements of this <see cref="ImmutableArray{T}"/> in ascending order. 38/// Sorts the elements of this <see cref="ImmutableArray{T}"/> in ascending order. 48/// Sorts the elements of this <see cref="ImmutableArray{T}"/> in ascending order. 58/// Sorts the elements of this <see cref="ImmutableArray{T}"/> in descending order. 67/// Sorts the elements of this <see cref="ImmutableArray{T}"/> in descending order. 77/// Sorts the elements of this <see cref="ImmutableArray{T}"/> in descending order. 87/// Sorts the elements of this <see cref="ImmutableArray{T}"/> in ascending order according to a key. 98/// Sorts the elements of this <see cref="ImmutableArray{T}"/> in ascending order according to a key. 110/// Sorts the elements of this <see cref="ImmutableArray{T}"/> in ascending order according to a key. 122/// Sorts the elements of this <see cref="ImmutableArray{T}"/> in descending order according to a key. 133/// Sorts the elements of this <see cref="ImmutableArray{T}"/> in descending order according to a key. 145/// Sorts the elements of this <see cref="ImmutableArray{T}"/> in descending order according to a key. 157/// Reverses the elements of this <see cref="ImmutableArray{T}"/>. 166private static ImmutableArray<T> UnsafeOrderCore<T>(this ImmutableArray<T> array, ref readonly SortHelper<T> sortHelper) 169private static ImmutableArray<TElement> UnsafeOrderByCore<TElement, TKey>( 170this ImmutableArray<TElement> array, Func<TElement, TKey> keySelector, ref readonly SortHelper<TKey> sortHelper)
src\roslyn\src\Razor\src\Shared\Microsoft.AspNetCore.Razor.SharedUtilities\ImmutableArrayExtensions.cs (378)
15/// <see cref="ImmutableArray{T}"/> extension methods 19public static void SetCapacityIfLarger<T>(this ImmutableArray<T>.Builder builder, int newCapacity) 27public static void InsertRange<T>(this ImmutableArray<T>.Builder builder, int index, ReadOnlySpan<T> items) 57var array = ImmutableArray.Create(items); 63/// Projects each element of an <see cref="ImmutableArray{T}"/> into a new form. 70/// Returns a new <see cref="ImmutableArray{T}"/> whose elements are the result of invoking the transform function 73public static ImmutableArray<TResult> SelectAsArray<T, TResult>(this ImmutableArray<T> array, Func<T, TResult> selector) 77/// Projects each element of an <see cref="ImmutableArray{T}"/> into a new form by incorporating the element's index. 86/// Returns a new <see cref="ImmutableArray{T}"/> whose elements are the result of invoking the transform function 89public static ImmutableArray<TResult> SelectAsArray<T, TResult>(this ImmutableArray<T> array, Func<T, int, TResult> selector) 93/// Projects each element of an <see cref="ImmutableArray{T}"/> into a new form. 102/// Returns a new <see cref="ImmutableArray{T}"/> whose elements are the result of invoking the transform function 105public static ImmutableArray<TResult> SelectAsArray<T, TArg, TResult>(this ImmutableArray<T> array, TArg arg, Func<T, TArg, TResult> selector) 109/// Projects each element of an <see cref="ImmutableArray{T}"/> into a new form by incorporating the element's index. 120/// Returns a new <see cref="ImmutableArray{T}"/> whose elements are the result of invoking the transform function 123public static ImmutableArray<TResult> SelectAsArray<T, TArg, TResult>(this ImmutableArray<T> array, TArg arg, Func<T, TArg, int, TResult> selector) 127/// Projects each element of an <see cref="ImmutableArray{T}"/> into a new form. 137public static TResult[] SelectAsPlainArray<T, TResult>(this ImmutableArray<T> array, Func<T, TResult> selector) 157/// Projects each element of an <see cref="ImmutableArray{T}"/> into a new form by incorporating the element's index. 169public static TResult[] SelectAsPlainArray<T, TResult>(this ImmutableArray<T> array, Func<T, int, TResult> selector) 189/// Projects each element of an <see cref="ImmutableArray{T}"/> into a new form. 201public static TResult[] SelectAsPlainArray<T, TArg, TResult>(this ImmutableArray<T> array, TArg arg, Func<T, TArg, TResult> selector) 221/// Projects each element of an <see cref="ImmutableArray{T}"/> into a new form by incorporating the element's index. 235public static TResult[] SelectAsPlainArray<T, TArg, TResult>(this ImmutableArray<T> array, TArg arg, Func<T, TArg, int, TResult> selector) 254public static ImmutableArray<TResult> SelectManyAsArray<TSource, TResult>(this IReadOnlyCollection<TSource>? source, Func<TSource, ImmutableArray<TResult>> selector) 271/// Filters an <see cref="ImmutableArray{T}"/> based on a predicate. 274/// <param name="array">An <see cref="ImmutableArray{T}"/> to filter.</param> 277/// Returns a new <see cref="ImmutableArray{T}"/> that contains elements from the input array 284public static ImmutableArray<T> WhereAsArray<T>(this ImmutableArray<T> array, Func<T, bool> predicate) 351/// Filters an <see cref="ImmutableArray{T}"/> based on a predicate. Each element's index is used in 355/// <param name="array">An <see cref="ImmutableArray{T}"/> to filter.</param> 361/// Returns a new <see cref="ImmutableArray{T}"/> that contains elements from the input array 368public static ImmutableArray<T> WhereAsArray<T>(this ImmutableArray<T> array, Func<T, int, bool> predicate) 435/// Filters an <see cref="ImmutableArray{T}"/> based on a predicate. 439/// <param name="array">An <see cref="ImmutableArray{T}"/> to filter.</param> 443/// Returns a new <see cref="ImmutableArray{T}"/> that contains elements from the input array 450public static ImmutableArray<T> WhereAsArray<T, TArg>(this ImmutableArray<T> array, TArg arg, Func<T, TArg, bool> predicate) 517/// Filters an <see cref="ImmutableArray{T}"/> based on a predicate. Each element's index is used in 522/// <param name="array">An <see cref="ImmutableArray{T}"/> to filter.</param> 529/// Returns a new <see cref="ImmutableArray{T}"/> that contains elements from the input array 536public static ImmutableArray<T> WhereAsArray<T, TArg>(this ImmutableArray<T> array, TArg arg, Func<T, TArg, int, bool> predicate) 606/// An <see cref="ImmutableArray{T}"/> whose elements to apply the predicate to. 618public static bool Any<T, TArg>(this ImmutableArray<T> array, TArg arg, Func<T, TArg, bool> predicate) 635/// An <see cref="ImmutableArray{T}"/> whose elements to apply the predicate to. 647public static bool All<T, TArg>(this ImmutableArray<T> array, TArg arg, Func<T, TArg, bool> predicate) 664/// An <see cref="ImmutableArray{T}"/> to return an element from. 678public static T First<T, TArg>(this ImmutableArray<T> array, TArg arg, Func<T, TArg, bool> predicate) 695/// An <see cref="ImmutableArray{T}"/> to return an element from. 708public static T? FirstOrDefault<T, TArg>(this ImmutableArray<T> array, TArg arg, Func<T, TArg, bool> predicate) 725/// An <see cref="ImmutableArray{T}"/> to return an element from. 739public static T Last<T, TArg>(this ImmutableArray<T> array, TArg arg, Func<T, TArg, bool> predicate) 756/// An <see cref="ImmutableArray{T}"/> to return an element from. 769public static T? LastOrDefault<T, TArg>(this ImmutableArray<T> array, TArg arg, Func<T, TArg, bool> predicate) 786/// An <see cref="ImmutableArray{T}"/> to return an element from. 802public static T LastOrDefault<T, TArg>(this ImmutableArray<T> array, TArg arg, Func<T, TArg, bool> predicate, T defaultValue) 820/// An <see cref="ImmutableArray{T}"/> to return a single element from. 835public static T? SingleOrDefault<T, TArg>(this ImmutableArray<T> array, TArg arg, Func<T, TArg, bool> predicate) 862/// An <see cref="ImmutableArray{T}"/> to return a single element from. 880public static T SingleOrDefault<T, TArg>(this ImmutableArray<T> array, TArg arg, Func<T, TArg, bool> predicate, T defaultValue) 903/// Returns an <see cref="ImmutableArray{T}"/> that contains no duplicates from the <paramref name="source"/> array 907public static ImmutableArray<T> GetMostRecentUniqueItems<T>(this ImmutableArray<T> source) 920/// Returns an <see cref="ImmutableArray{T}"/> that contains no duplicates from the <paramref name="source"/> array 927public static ImmutableArray<T> GetMostRecentUniqueItems<T>(this ImmutableArray<T> source, IEqualityComparer<T> comparer) 944/// Returns an <see cref="ImmutableArray{T}"/> that contains no duplicates from the <paramref name="source"/> array 952public static ImmutableArray<T> GetMostRecentUniqueItems<T>(this ImmutableArray<T> source, HashSet<T> uniqueItems) 962private static ImmutableArray<T> GetMostRecentUniqueItemsCore<T>(ImmutableArray<T> source, HashSet<T> uniqueItems) 1007public static int BinarySearchBy<T, TArg>(this ImmutableArray<T> array, TArg arg, Func<T, TArg, int> comparer) 1035/// Sorts the elements of an <see cref="ImmutableArray{T}"/> in ascending order. 1040/// Returns a new <see cref="ImmutableArray{T}"/> whose elements are sorted in ascending order. 1042public static ImmutableArray<T> OrderAsArray<T>(this ImmutableArray<T> array) 1049/// Sorts the elements of an <see cref="ImmutableArray{T}"/> in ascending order. 1055/// Returns a new <see cref="ImmutableArray{T}"/> whose elements are sorted in ascending order. 1057public static ImmutableArray<T> OrderAsArray<T>(this ImmutableArray<T> array, IComparer<T> comparer) 1064/// Sorts the elements of an <see cref="ImmutableArray{T}"/> in ascending order. 1070/// Returns a new <see cref="ImmutableArray{T}"/> whose elements are sorted in ascending order. 1072public static ImmutableArray<T> OrderAsArray<T>(this ImmutableArray<T> array, Comparison<T> comparison) 1079/// Sorts the elements of an <see cref="ImmutableArray{T}"/> in descending order. 1084/// Returns a new <see cref="ImmutableArray{T}"/> whose elements are sorted in descending order. 1086public static ImmutableArray<T> OrderDescendingAsArray<T>(this ImmutableArray<T> array) 1093/// Sorts the elements of an <see cref="ImmutableArray{T}"/> in descending order. 1099/// Returns a new <see cref="ImmutableArray{T}"/> whose elements are sorted in descending order. 1101public static ImmutableArray<T> OrderDescendingAsArray<T>(this ImmutableArray<T> array, IComparer<T> comparer) 1108/// Sorts the elements of an <see cref="ImmutableArray{T}"/> in descending order. 1114/// Returns a new <see cref="ImmutableArray{T}"/> whose elements are sorted in descending order. 1116public static ImmutableArray<T> OrderDescendingAsArray<T>(this ImmutableArray<T> array, Comparison<T> comparison) 1123/// Sorts the elements of an <see cref="ImmutableArray{T}"/> in ascending order according to a key. 1130/// Returns a new <see cref="ImmutableArray{T}"/> whose elements are sorted in ascending order according to a key. 1132public static ImmutableArray<TElement> OrderByAsArray<TElement, TKey>( 1133this ImmutableArray<TElement> array, Func<TElement, TKey> keySelector) 1140/// Sorts the elements of an <see cref="ImmutableArray{T}"/> in ascending order according to a key. 1148/// Returns a new <see cref="ImmutableArray{T}"/> whose elements are sorted in ascending order according to a key. 1150public static ImmutableArray<TElement> OrderByAsArray<TElement, TKey>( 1151this ImmutableArray<TElement> array, Func<TElement, TKey> keySelector, IComparer<TKey> comparer) 1158/// Sorts the elements of an <see cref="ImmutableArray{T}"/> in ascending order according to a key. 1166/// Returns a new <see cref="ImmutableArray{T}"/> whose elements are sorted in ascending order according to a key. 1168public static ImmutableArray<TElement> OrderByAsArray<TElement, TKey>( 1169this ImmutableArray<TElement> array, Func<TElement, TKey> keySelector, Comparison<TKey> comparison) 1176/// Sorts the elements of an <see cref="ImmutableArray{T}"/> in descending order according to a key. 1183/// Returns a new <see cref="ImmutableArray{T}"/> whose elements are sorted in descending order according to a key. 1185public static ImmutableArray<TElement> OrderByDescendingAsArray<TElement, TKey>( 1186this ImmutableArray<TElement> array, Func<TElement, TKey> keySelector) 1193/// Sorts the elements of an <see cref="ImmutableArray{T}"/> in descending order according to a key. 1201/// Returns a new <see cref="ImmutableArray{T}"/> whose elements are sorted in descending order according to a key. 1203public static ImmutableArray<TElement> OrderByDescendingAsArray<TElement, TKey>( 1204this ImmutableArray<TElement> array, Func<TElement, TKey> keySelector, IComparer<TKey> comparer) 1211/// Sorts the elements of an <see cref="ImmutableArray{T}"/> in descending order according to a key. 1219/// Returns a new <see cref="ImmutableArray{T}"/> whose elements are sorted in descending order according to a key. 1221public static ImmutableArray<TElement> OrderByDescendingAsArray<TElement, TKey>( 1222this ImmutableArray<TElement> array, Func<TElement, TKey> keySelector, Comparison<TKey> comparison) 1228private static ImmutableArray<T> OrderAsArrayCore<T>(this ImmutableArray<T> array, ref readonly SortHelper<T> sortHelper) 1231private static ImmutableArray<TElement> OrderByAsArrayCore<TElement, TKey>( 1232this ImmutableArray<TElement> array, Func<TElement, TKey> keySelector, ref readonly SortHelper<TKey> sortHelper) 1260/// <see cref="ImmutableArray{T}.Builder"/> and clears the collection. 1263/// <param name="builder">The <see cref="ImmutableArray{T}.Builder"/> whose contents will be cleared.</param> 1266/// <see cref="ImmutableArray{T}.Builder"/>. 1272public static ImmutableArray<T> ToImmutableAndClear<T>(this ImmutableArray<T>.Builder builder) 1274ImmutableArray<T> result; 1290/// <see cref="ImmutableArray{T}.Builder"/> sorted in ascending order. 1293/// <param name="builder">The <see cref="ImmutableArray{T}.Builder"/> whose contents will be sorted.</param> 1296/// <see cref="ImmutableArray{T}.Builder"/> sorted in ascending order. 1298public static ImmutableArray<T> ToImmutableOrdered<T>(this ImmutableArray<T>.Builder builder) 1300var array = builder.ToImmutable(); 1307/// <see cref="ImmutableArray{T}.Builder"/> sorted in ascending order. 1310/// <param name="builder">The <see cref="ImmutableArray{T}.Builder"/> whose contents will be sorted.</param> 1314/// <see cref="ImmutableArray{T}.Builder"/> sorted in ascending order. 1316public static ImmutableArray<T> ToImmutableOrdered<T>(this ImmutableArray<T>.Builder builder, IComparer<T> comparer) 1318var array = builder.ToImmutable(); 1325/// <see cref="ImmutableArray{T}.Builder"/> sorted in ascending order. 1328/// <param name="builder">The <see cref="ImmutableArray{T}.Builder"/> whose contents will be sorted.</param> 1332/// <see cref="ImmutableArray{T}.Builder"/> sorted in ascending order. 1334public static ImmutableArray<T> ToImmutableOrdered<T>(this ImmutableArray<T>.Builder builder, Comparison<T> comparison) 1336var array = builder.ToImmutable(); 1343/// <see cref="ImmutableArray{T}.Builder"/> sorted in descending order. 1346/// <param name="builder">The <see cref="ImmutableArray{T}.Builder"/> whose contents will be sorted.</param> 1349/// <see cref="ImmutableArray{T}.Builder"/> sorted in descending order. 1351public static ImmutableArray<T> ToImmutableOrderedDescending<T>(this ImmutableArray<T>.Builder builder) 1353var array = builder.ToImmutable(); 1360/// <see cref="ImmutableArray{T}.Builder"/> sorted in descending order. 1363/// <param name="builder">The <see cref="ImmutableArray{T}.Builder"/> whose contents will be sorted.</param> 1367/// <see cref="ImmutableArray{T}.Builder"/> sorted in descending order. 1369public static ImmutableArray<T> ToImmutableOrderedDescending<T>(this ImmutableArray<T>.Builder builder, IComparer<T> comparer) 1371var array = builder.ToImmutable(); 1378/// <see cref="ImmutableArray{T}.Builder"/> sorted in descending order. 1381/// <param name="builder">The <see cref="ImmutableArray{T}.Builder"/> whose contents will be sorted.</param> 1385/// <see cref="ImmutableArray{T}.Builder"/> sorted in descending order. 1387public static ImmutableArray<T> ToImmutableOrderedDescending<T>(this ImmutableArray<T>.Builder builder, Comparison<T> comparison) 1389var array = builder.ToImmutable(); 1396/// <see cref="ImmutableArray{T}.Builder"/> sorted in ascending order according to a key. 1400/// <param name="builder">The <see cref="ImmutableArray{T}.Builder"/> whose contents will be sorted.</param> 1403/// Returns a new <see cref="ImmutableArray{T}"/> whose elements are sorted in ascending order according to a key. 1405public static ImmutableArray<TElement> ToImmutableOrderedBy<TElement, TKey>( 1406this ImmutableArray<TElement>.Builder builder, Func<TElement, TKey> keySelector) 1408var array = builder.ToImmutable(); 1415/// <see cref="ImmutableArray{T}.Builder"/> sorted in ascending order according to a key. 1419/// <param name="builder">The <see cref="ImmutableArray{T}.Builder"/> whose contents will be sorted.</param> 1423/// Returns a new <see cref="ImmutableArray{T}"/> whose elements are sorted in ascending order according to a key. 1425public static ImmutableArray<TElement> ToImmutableOrderedBy<TElement, TKey>( 1426this ImmutableArray<TElement>.Builder builder, Func<TElement, TKey> keySelector, IComparer<TKey> comparer) 1428var array = builder.ToImmutable(); 1435/// <see cref="ImmutableArray{T}.Builder"/> sorted in ascending order according to a key. 1439/// <param name="builder">The <see cref="ImmutableArray{T}.Builder"/> whose contents will be sorted.</param> 1443/// Returns a new <see cref="ImmutableArray{T}"/> whose elements are sorted in ascending order according to a key. 1445public static ImmutableArray<TElement> ToImmutableOrderedBy<TElement, TKey>( 1446this ImmutableArray<TElement>.Builder builder, Func<TElement, TKey> keySelector, Comparison<TKey> comparison) 1448var array = builder.ToImmutable(); 1455/// <see cref="ImmutableArray{T}.Builder"/> sorted in descending order according to a key. 1459/// <param name="builder">The <see cref="ImmutableArray{T}.Builder"/> whose contents will be sorted.</param> 1462/// Returns a new <see cref="ImmutableArray{T}"/> whose elements are sorted in descending order according to a key. 1464public static ImmutableArray<TElement> ToImmutableOrderedByDescending<TElement, TKey>( 1465this ImmutableArray<TElement>.Builder builder, Func<TElement, TKey> keySelector) 1467var array = builder.ToImmutable(); 1474/// <see cref="ImmutableArray{T}.Builder"/> sorted in descending order according to a key. 1478/// <param name="builder">The <see cref="ImmutableArray{T}.Builder"/> whose contents will be sorted.</param> 1482/// Returns a new <see cref="ImmutableArray{T}"/> whose elements are sorted in descending order according to a key. 1484public static ImmutableArray<TElement> ToImmutableOrderedByDescending<TElement, TKey>( 1485this ImmutableArray<TElement>.Builder builder, Func<TElement, TKey> keySelector, IComparer<TKey> comparer) 1487var array = builder.ToImmutable(); 1494/// <see cref="ImmutableArray{T}.Builder"/> sorted in descending order according to a key. 1498/// <param name="builder">The <see cref="ImmutableArray{T}.Builder"/> whose contents will be sorted.</param> 1502/// Returns a new <see cref="ImmutableArray{T}"/> whose elements are sorted in descending order according to a key. 1504public static ImmutableArray<TElement> ToImmutableOrderedByDescending<TElement, TKey>( 1505this ImmutableArray<TElement>.Builder builder, Func<TElement, TKey> keySelector, Comparison<TKey> comparison) 1507var array = builder.ToImmutable(); 1513/// Returns the current contents of this <see cref="ImmutableArray{T}.Builder"/> 1517/// <param name="builder">The <see cref="ImmutableArray{T}.Builder"/> whose contents will be sorted.</param> 1519/// An immutable array that contains the current contents of this <see cref="ImmutableArray{T}.Builder"/> 1523/// If <see cref="ImmutableArray{T}.Builder.Capacity">Capacity</see> equals 1524/// <see cref="ImmutableArray{T}.Builder.Count">Count</see>, the internal array will be extracted as an 1525/// <see cref="ImmutableArray{T}"/> without copying the contents. Otherwise, the contents will be copied 1528public static ImmutableArray<T> ToImmutableOrderedAndClear<T>(this ImmutableArray<T>.Builder builder) 1530var array = builder.ToImmutableAndClear(); 1536/// Returns the current contents of this <see cref="ImmutableArray{T}.Builder"/> 1540/// <param name="builder">The <see cref="ImmutableArray{T}.Builder"/> whose contents will be sorted.</param> 1543/// An immutable array that contains the current contents of this <see cref="ImmutableArray{T}.Builder"/> 1547/// If <see cref="ImmutableArray{T}.Builder.Capacity">Capacity</see> equals 1548/// <see cref="ImmutableArray{T}.Builder.Count">Count</see>, the internal array will be extracted as an 1549/// <see cref="ImmutableArray{T}"/> without copying the contents. Otherwise, the contents will be copied 1552public static ImmutableArray<T> ToImmutableOrderedAndClear<T>(this ImmutableArray<T>.Builder builder, IComparer<T> comparer) 1554var array = builder.ToImmutableAndClear(); 1560/// Returns the current contents of this <see cref="ImmutableArray{T}.Builder"/> 1564/// <param name="builder">The <see cref="ImmutableArray{T}.Builder"/> whose contents will be sorted.</param> 1567/// An immutable array that contains the current contents of this <see cref="ImmutableArray{T}.Builder"/> 1571/// If <see cref="ImmutableArray{T}.Builder.Capacity">Capacity</see> equals 1572/// <see cref="ImmutableArray{T}.Builder.Count">Count</see>, the internal array will be extracted as an 1573/// <see cref="ImmutableArray{T}"/> without copying the contents. Otherwise, the contents will be copied 1576public static ImmutableArray<T> ToImmutableOrderedAndClear<T>(this ImmutableArray<T>.Builder builder, Comparison<T> comparison) 1578var array = builder.ToImmutableAndClear(); 1584/// Returns the current contents of this <see cref="ImmutableArray{T}.Builder"/> 1588/// <param name="builder">The <see cref="ImmutableArray{T}.Builder"/> whose contents will be sorted.</param> 1590/// An immutable array that contains the current contents of this <see cref="ImmutableArray{T}.Builder"/> 1594/// If <see cref="ImmutableArray{T}.Builder.Capacity">Capacity</see> equals 1595/// <see cref="ImmutableArray{T}.Builder.Count">Count</see>, the internal array will be extracted as an 1596/// <see cref="ImmutableArray{T}"/> without copying the contents. Otherwise, the contents will be copied 1599public static ImmutableArray<T> ToImmutableOrderedDescendingAndClear<T>(this ImmutableArray<T>.Builder builder) 1601var array = builder.ToImmutableAndClear(); 1607/// Returns the current contents of this <see cref="ImmutableArray{T}.Builder"/> 1611/// <param name="builder">The <see cref="ImmutableArray{T}.Builder"/> whose contents will be sorted.</param> 1614/// An immutable array that contains the current contents of this <see cref="ImmutableArray{T}.Builder"/> 1618/// If <see cref="ImmutableArray{T}.Builder.Capacity">Capacity</see> equals 1619/// <see cref="ImmutableArray{T}.Builder.Count">Count</see>, the internal array will be extracted as an 1620/// <see cref="ImmutableArray{T}"/> without copying the contents. Otherwise, the contents will be copied 1623public static ImmutableArray<T> ToImmutableOrderedDescendingAndClear<T>(this ImmutableArray<T>.Builder builder, IComparer<T> comparer) 1625var array = builder.ToImmutableAndClear(); 1631/// Returns the current contents of this <see cref="ImmutableArray{T}.Builder"/> 1635/// <param name="builder">The <see cref="ImmutableArray{T}.Builder"/> whose contents will be sorted.</param> 1638/// An immutable array that contains the current contents of this <see cref="ImmutableArray{T}.Builder"/> 1642/// If <see cref="ImmutableArray{T}.Builder.Capacity">Capacity</see> equals 1643/// <see cref="ImmutableArray{T}.Builder.Count">Count</see>, the internal array will be extracted as an 1644/// <see cref="ImmutableArray{T}"/> without copying the contents. Otherwise, the contents will be copied 1647public static ImmutableArray<T> ToImmutableOrderedDescendingAndClear<T>(this ImmutableArray<T>.Builder builder, Comparison<T> comparison) 1649var array = builder.ToImmutableAndClear(); 1655/// Returns the current contents of this <see cref="ImmutableArray{T}.Builder"/> 1661/// <param name="builder">The <see cref="ImmutableArray{T}.Builder"/> whose contents will be sorted.</param> 1664/// An immutable array that contains the current contents of this <see cref="ImmutableArray{T}.Builder"/> 1668/// If <see cref="ImmutableArray{T}.Builder.Capacity">Capacity</see> equals 1669/// <see cref="ImmutableArray{T}.Builder.Count">Count</see>, the internal array will be extracted as an 1670/// <see cref="ImmutableArray{T}"/> without copying the contents. Otherwise, the contents will be copied 1673public static ImmutableArray<TElement> ToImmutableOrderedByAndClear<TElement, TKey>( 1674this ImmutableArray<TElement>.Builder builder, Func<TElement, TKey> keySelector) 1676var array = builder.ToImmutableAndClear(); 1682/// Returns the current contents of this <see cref="ImmutableArray{T}.Builder"/> 1688/// <param name="builder">The <see cref="ImmutableArray{T}.Builder"/> whose contents will be sorted.</param> 1692/// An immutable array that contains the current contents of this <see cref="ImmutableArray{T}.Builder"/> 1696/// If <see cref="ImmutableArray{T}.Builder.Capacity">Capacity</see> equals 1697/// <see cref="ImmutableArray{T}.Builder.Count">Count</see>, the internal array will be extracted as an 1698/// <see cref="ImmutableArray{T}"/> without copying the contents. Otherwise, the contents will be copied 1701public static ImmutableArray<TElement> ToImmutableOrderedByAndClear<TElement, TKey>( 1702this ImmutableArray<TElement>.Builder builder, Func<TElement, TKey> keySelector, IComparer<TKey> comparer) 1704var array = builder.ToImmutableAndClear(); 1710/// Returns the current contents of this <see cref="ImmutableArray{T}.Builder"/> 1716/// <param name="builder">The <see cref="ImmutableArray{T}.Builder"/> whose contents will be sorted.</param> 1720/// An immutable array that contains the current contents of this <see cref="ImmutableArray{T}.Builder"/> 1724/// If <see cref="ImmutableArray{T}.Builder.Capacity">Capacity</see> equals 1725/// <see cref="ImmutableArray{T}.Builder.Count">Count</see>, the internal array will be extracted as an 1726/// <see cref="ImmutableArray{T}"/> without copying the contents. Otherwise, the contents will be copied 1729public static ImmutableArray<TElement> ToImmutableOrderedByAndClear<TElement, TKey>( 1730this ImmutableArray<TElement>.Builder builder, Func<TElement, TKey> keySelector, Comparison<TKey> comparison) 1732var array = builder.ToImmutableAndClear(); 1738/// Returns the current contents of this <see cref="ImmutableArray{T}.Builder"/> 1744/// <param name="builder">The <see cref="ImmutableArray{T}.Builder"/> whose contents will be sorted.</param> 1747/// An immutable array that contains the current contents of this <see cref="ImmutableArray{T}.Builder"/> 1751/// If <see cref="ImmutableArray{T}.Builder.Capacity">Capacity</see> equals 1752/// <see cref="ImmutableArray{T}.Builder.Count">Count</see>, the internal array will be extracted as an 1753/// <see cref="ImmutableArray{T}"/> without copying the contents. Otherwise, the contents will be copied 1756public static ImmutableArray<TElement> ToImmutableOrderedByDescendingAndClear<TElement, TKey>( 1757this ImmutableArray<TElement>.Builder builder, Func<TElement, TKey> keySelector) 1759var array = builder.ToImmutableAndClear(); 1765/// Returns the current contents of this <see cref="ImmutableArray{T}.Builder"/> 1771/// <param name="builder">The <see cref="ImmutableArray{T}.Builder"/> whose contents will be sorted.</param> 1775/// An immutable array that contains the current contents of this <see cref="ImmutableArray{T}.Builder"/> 1779/// If <see cref="ImmutableArray{T}.Builder.Capacity">Capacity</see> equals 1780/// <see cref="ImmutableArray{T}.Builder.Count">Count</see>, the internal array will be extracted as an 1781/// <see cref="ImmutableArray{T}"/> without copying the contents. Otherwise, the contents will be copied 1784public static ImmutableArray<TElement> ToImmutableOrderedByDescendingAndClear<TElement, TKey>( 1785this ImmutableArray<TElement>.Builder builder, Func<TElement, TKey> keySelector, IComparer<TKey> comparer) 1787var array = builder.ToImmutableAndClear(); 1793/// Returns the current contents of this <see cref="ImmutableArray{T}.Builder"/> 1799/// <param name="builder">The <see cref="ImmutableArray{T}.Builder"/> whose contents will be sorted.</param> 1803/// An immutable array that contains the current contents of this <see cref="ImmutableArray{T}.Builder"/> 1807/// If <see cref="ImmutableArray{T}.Builder.Capacity">Capacity</see> equals 1808/// <see cref="ImmutableArray{T}.Builder.Count">Count</see>, the internal array will be extracted as an 1809/// <see cref="ImmutableArray{T}"/> without copying the contents. Otherwise, the contents will be copied 1812public static ImmutableArray<TElement> ToImmutableOrderedByDescendingAndClear<TElement, TKey>( 1813this ImmutableArray<TElement>.Builder builder, Func<TElement, TKey> keySelector, Comparison<TKey> comparison) 1815var array = builder.ToImmutableAndClear(); 1821/// Projects each element of an <see cref="ImmutableArray{T}"/> into a new form and sorts them in ascending order. 1828/// Returns a new <see cref="ImmutableArray{T}"/> whose elements are the result of invoking the transform function 1831public static ImmutableArray<TResult> SelectAndOrderAsArray<T, TResult>(this ImmutableArray<T> array, Func<T, TResult> selector) 1833var result = array.SelectAsArray(selector); 1840/// Projects each element of an <see cref="ImmutableArray{T}"/> into a new form and sorts them in ascending order. 1848/// Returns a new <see cref="ImmutableArray{T}"/> whose elements are the result of invoking the transform function 1851public static ImmutableArray<TResult> SelectAndOrderAsArray<T, TResult>( 1852this ImmutableArray<T> array, Func<T, TResult> selector, IComparer<TResult> comparer) 1854var result = array.SelectAsArray(selector); 1861/// Projects each element of an <see cref="ImmutableArray{T}"/> into a new form and sorts them in ascending order. 1869/// Returns a new <see cref="ImmutableArray{T}"/> whose elements are the result of invoking the transform function 1872public static ImmutableArray<TResult> SelectAndOrderAsArray<T, TResult>( 1873this ImmutableArray<T> array, Func<T, TResult> selector, Comparison<TResult> comparison) 1875var result = array.SelectAsArray(selector); 1882/// Projects each element of an <see cref="ImmutableArray{T}"/> into a new form and sorts them in descending order. 1889/// Returns a new <see cref="ImmutableArray{T}"/> whose elements are the result of invoking the transform function 1892public static ImmutableArray<TResult> SelectAndOrderDescendingAsArray<T, TResult>(this ImmutableArray<T> array, Func<T, TResult> selector) 1894var result = array.SelectAsArray(selector); 1901/// Projects each element of an <see cref="ImmutableArray{T}"/> into a new form and sorts them in descending order. 1909/// Returns a new <see cref="ImmutableArray{T}"/> whose elements are the result of invoking the transform function 1912public static ImmutableArray<TResult> SelectAndOrderDescendingAsArray<T, TResult>( 1913this ImmutableArray<T> array, Func<T, TResult> selector, IComparer<TResult> comparer) 1915var result = array.SelectAsArray(selector); 1922/// Projects each element of an <see cref="ImmutableArray{T}"/> into a new form and sorts them in descending order. 1930/// Returns a new <see cref="ImmutableArray{T}"/> whose elements are the result of invoking the transform function 1933public static ImmutableArray<TResult> SelectAndOrderDescendingAsArray<T, TResult>( 1934this ImmutableArray<T> array, Func<T, TResult> selector, Comparison<TResult> comparison) 1936var result = array.SelectAsArray(selector); 1943/// Projects each element of an <see cref="ImmutableArray{T}"/> into a new form and sorts them in ascending order according to a key. 1952/// Returns a new <see cref="ImmutableArray{T}"/> whose elements are the result of invoking the transform function 1955public static ImmutableArray<TResult> SelectAndOrderByAsArray<TElement, TKey, TResult>( 1956this ImmutableArray<TElement> array, Func<TElement, TResult> selector, Func<TResult, TKey> keySelector) 1958var result = array.SelectAsArray(selector); 1965/// Projects each element of an <see cref="ImmutableArray{T}"/> into a new form and sorts them in ascending order according to a key. 1975/// Returns a new <see cref="ImmutableArray{T}"/> whose elements are the result of invoking the transform function 1978public static ImmutableArray<TResult> SelectAndOrderByAsArray<TElement, TKey, TResult>( 1979this ImmutableArray<TElement> array, Func<TElement, TResult> selector, Func<TResult, TKey> keySelector, IComparer<TKey> comparer) 1981var result = array.SelectAsArray(selector); 1988/// Projects each element of an <see cref="ImmutableArray{T}"/> into a new form and sorts them in ascending order according to a key. 1998/// Returns a new <see cref="ImmutableArray{T}"/> whose elements are the result of invoking the transform function 2001public static ImmutableArray<TResult> SelectAndOrderByAsArray<TElement, TKey, TResult>( 2002this ImmutableArray<TElement> array, Func<TElement, TResult> selector, Func<TResult, TKey> keySelector, Comparison<TKey> comparison) 2004var result = array.SelectAsArray(selector); 2011/// Projects each element of an <see cref="ImmutableArray{T}"/> into a new form and sorts them in descending order according to a key. 2020/// Returns a new <see cref="ImmutableArray{T}"/> whose elements are the result of invoking the transform function 2023public static ImmutableArray<TResult> SelectAndOrderByDescendingAsArray<TElement, TKey, TResult>( 2024this ImmutableArray<TElement> array, Func<TElement, TResult> selector, Func<TResult, TKey> keySelector) 2026var result = array.SelectAsArray(selector); 2033/// Projects each element of an <see cref="ImmutableArray{T}"/> into a new form and sorts them in descending order according to a key. 2043/// Returns a new <see cref="ImmutableArray{T}"/> whose elements are the result of invoking the transform function 2046public static ImmutableArray<TResult> SelectAndOrderByDescendingAsArray<TElement, TKey, TResult>( 2047this ImmutableArray<TElement> array, Func<TElement, TResult> selector, Func<TResult, TKey> keySelector, IComparer<TKey> comparer) 2049var result = array.SelectAsArray(selector); 2056/// Projects each element of an <see cref="ImmutableArray{T}"/> into a new form and sorts them in descending order according to a key. 2066/// Returns a new <see cref="ImmutableArray{T}"/> whose elements are the result of invoking the transform function 2069public static ImmutableArray<TResult> SelectAndOrderByDescendingAsArray<TElement, TKey, TResult>( 2070this ImmutableArray<TElement> array, Func<TElement, TResult> selector, Func<TResult, TKey> keySelector, Comparison<TKey> comparison) 2072var result = array.SelectAsArray(selector);
src\roslyn\src\Razor\src\Shared\Microsoft.AspNetCore.Razor.SharedUtilities\PooledObjects\ArrayBuilderPool`1.cs (5)
9/// A pool of <see cref="ImmutableArray{T}.Builder"/> instances. 16internal sealed partial class ArrayBuilderPool<T> : CustomObjectPool<ImmutableArray<T>.Builder> 34public static PooledObject<ImmutableArray<T>.Builder> GetPooledObject() 37public static PooledObject<ImmutableArray<T>.Builder> GetPooledObject(out ImmutableArray<T>.Builder builder)
src\roslyn\src\Razor\src\Shared\Microsoft.AspNetCore.Razor.SharedUtilities\PooledObjects\ArrayBuilderPool`1.Policy.cs (2)
44public override ImmutableArray<T>.Builder Create() 47public override bool Return(ImmutableArray<T>.Builder builder)
src\roslyn\src\Razor\src\Shared\Microsoft.AspNetCore.Razor.SharedUtilities\PooledObjects\Extensions.cs (5)
26public static PooledObject<ImmutableArray<T>.Builder> GetPooledObject<T>(this ObjectPool<ImmutableArray<T>.Builder> pool) 29public static PooledObject<ImmutableArray<T>.Builder> GetPooledObject<T>( 30this ObjectPool<ImmutableArray<T>.Builder> pool, 31out ImmutableArray<T>.Builder builder)
src\roslyn\src\Razor\src\Shared\Microsoft.AspNetCore.Razor.SharedUtilities\PooledObjects\PooledArrayBuilder`1.cs (70)
17/// Wraps a pooled <see cref="ImmutableArray{T}.Builder"/> but doesn't allocate it until 21/// There is significant effort to avoid retrieving the <see cref="ImmutableArray{T}.Builder"/>. 45private ImmutableArray<T>.Builder? _builder; 96private ImmutableArray<T>.Builder GetBuilder() 116private readonly bool TryGetBuilder([NotNullWhen(true)] out ImmutableArray<T>.Builder? builder) 131private readonly bool TryGetBuilderAndEnsureCapacity([NotNullWhen(true)] out ImmutableArray<T>.Builder? builder) 256public void AddRange(ImmutableArray<T> items) 383public void InsertRange(int index, ImmutableArray<T> items) 475var spacer = ImmutableCollectionsMarshal.AsImmutableArray(new T[count]); 504var spacer = ImmutableCollectionsMarshal.AsImmutableArray(new T[count]); 622/// Returns the current contents as an <see cref="ImmutableArray{T}"/> and sets 626/// If <see cref="ImmutableArray{T}.Builder.Capacity"/> equals <see cref="Count"/>, the 627/// internal array will be extracted as an <see cref="ImmutableArray{T}"/> without copying 632public ImmutableArray<T> ToImmutableAndClear() 639var inlineArray = InlineItemsToImmutableArray(); 648public readonly ImmutableArray<T> ToImmutable() 658private readonly ImmutableArray<T> InlineItemsToImmutableArray() 1667public readonly ImmutableArray<T> ToImmutableOrdered() 1669var result = ToImmutable(); 1675public readonly ImmutableArray<T> ToImmutableOrdered(IComparer<T> comparer) 1677var result = ToImmutable(); 1683public readonly ImmutableArray<T> ToImmutableOrdered(Comparison<T> comparison) 1685var result = ToImmutable(); 1691public readonly ImmutableArray<T> ToImmutableOrderedDescending() 1693var result = ToImmutable(); 1699public readonly ImmutableArray<T> ToImmutableOrderedDescending(IComparer<T> comparer) 1701var result = ToImmutable(); 1707public readonly ImmutableArray<T> ToImmutableOrderedDescending(Comparison<T> comparison) 1709var result = ToImmutable(); 1715public readonly ImmutableArray<T> ToImmutableOrderedBy<TKey>(Func<T, TKey> keySelector) 1717var result = ToImmutable(); 1723public readonly ImmutableArray<T> ToImmutableOrderedBy<TKey>(Func<T, TKey> keySelector, IComparer<TKey> comparer) 1725var result = ToImmutable(); 1731public readonly ImmutableArray<T> ToImmutableOrderedBy<TKey>(Func<T, TKey> keySelector, Comparison<TKey> comparison) 1733var result = ToImmutable(); 1739public readonly ImmutableArray<T> ToImmutableOrderedByDescending<TKey>(Func<T, TKey> keySelector) 1741var result = ToImmutable(); 1747public readonly ImmutableArray<T> ToImmutableOrderedByDescending<TKey>(Func<T, TKey> keySelector, IComparer<TKey> comparer) 1749var result = ToImmutable(); 1755public readonly ImmutableArray<T> ToImmutableOrderedByDescending<TKey>(Func<T, TKey> keySelector, Comparison<TKey> comparison) 1757var result = ToImmutable(); 1763public readonly ImmutableArray<T> ToImmutableReversed() 1765var result = ToImmutable(); 1771public ImmutableArray<T> ToImmutableOrderedAndClear() 1773var result = ToImmutableAndClear(); 1779public ImmutableArray<T> ToImmutableOrderedAndClear(IComparer<T> comparer) 1781var result = ToImmutableAndClear(); 1787public ImmutableArray<T> ToImmutableOrderedAndClear(Comparison<T> comparison) 1789var result = ToImmutableAndClear(); 1795public ImmutableArray<T> ToImmutableOrderedDescendingAndClear() 1797var result = ToImmutableAndClear(); 1803public ImmutableArray<T> ToImmutableOrderedDescendingAndClear(IComparer<T> comparer) 1805var result = ToImmutableAndClear(); 1811public ImmutableArray<T> ToImmutableOrderedDescendingAndClear(Comparison<T> comparison) 1813var result = ToImmutableAndClear(); 1819public ImmutableArray<T> ToImmutableOrderedByAndClear<TKey>(Func<T, TKey> keySelector) 1821var result = ToImmutableAndClear(); 1827public ImmutableArray<T> ToImmutableOrderedByAndClear<TKey>(Func<T, TKey> keySelector, IComparer<TKey> comparer) 1829var result = ToImmutableAndClear(); 1835public ImmutableArray<T> ToImmutableOrderedByAndClear<TKey>(Func<T, TKey> keySelector, Comparison<TKey> comparison) 1837var result = ToImmutableAndClear(); 1843public ImmutableArray<T> ToImmutableOrderedByDescendingAndClear<TKey>(Func<T, TKey> keySelector) 1845var result = ToImmutableAndClear(); 1851public ImmutableArray<T> ToImmutableOrderedByDescendingAndClear<TKey>(Func<T, TKey> keySelector, IComparer<TKey> comparer) 1853var result = ToImmutableAndClear(); 1859public ImmutableArray<T> ToImmutableOrderedByDescendingAndClear<TKey>(Func<T, TKey> keySelector, Comparison<TKey> comparison) 1861var result = ToImmutableAndClear(); 1867public ImmutableArray<T> ToImmutableReversedAndClear() 1869var result = ToImmutableAndClear(); 1879public ImmutableArray<T>.Builder? InnerArrayBuilder { get; } = builder._builder;
src\roslyn\src\Razor\src\Shared\Microsoft.AspNetCore.Razor.SharedUtilities\PooledObjects\PooledHashSet`1.cs (3)
174public readonly ImmutableArray<T> ToImmutableArray() 179public readonly ImmutableArray<T> OrderByAsArray<TKey>(Func<T, TKey> keySelector) 194public void UnionWith(ImmutableArray<T> other)
src\roslyn\src\Razor\src\Shared\Microsoft.AspNetCore.Razor.SharedUtilities\ReadOnlyListExtensions.cs (85)
22/// Returns a new <see cref="ImmutableArray{T}"/> whose elements are the result of invoking the transform function 25public static ImmutableArray<TResult> SelectAsArray<T, TResult>(this IReadOnlyList<T> list, Func<T, TResult> selector) 35if (list is ImmutableArray<T> array) 60/// Returns a new <see cref="ImmutableArray{T}"/> whose elements are the result of invoking the transform function 63public static ImmutableArray<TResult> SelectAsArray<T, TResult>(this IReadOnlyList<T> list, Func<T, int, TResult> selector) 73if (list is ImmutableArray<T> array) 92if (list is ImmutableArray<T> array) 102public static ImmutableArray<T> ToImmutableArray<T>(this IReadOnlyList<T> list) 106if (list is ImmutableArray<T> array) 1167case ImmutableArray<T> array: 1171case ImmutableArray<T>.Builder builder: 1201/// Returns a new <see cref="ImmutableArray{T}"/> whose elements are sorted in ascending order. 1203public static ImmutableArray<T> OrderAsArray<T>(this IReadOnlyList<T> list) 1205if (list is ImmutableArray<T> array) 1221/// Returns a new <see cref="ImmutableArray{T}"/> whose elements are sorted in ascending order. 1223public static ImmutableArray<T> OrderAsArray<T>(this IReadOnlyList<T> list, IComparer<T> comparer) 1225if (list is ImmutableArray<T> array) 1241/// Returns a new <see cref="ImmutableArray{T}"/> whose elements are sorted in ascending order. 1243public static ImmutableArray<T> OrderAsArray<T>(this IReadOnlyList<T> list, Comparison<T> comparison) 1245if (list is ImmutableArray<T> array) 1260/// Returns a new <see cref="ImmutableArray{T}"/> whose elements are sorted in descending order. 1262public static ImmutableArray<T> OrderDescendingAsArray<T>(this IReadOnlyList<T> list) 1264if (list is ImmutableArray<T> array) 1280/// Returns a new <see cref="ImmutableArray{T}"/> whose elements are sorted in descending order. 1282public static ImmutableArray<T> OrderDescendingAsArray<T>(this IReadOnlyList<T> list, IComparer<T> comparer) 1284if (list is ImmutableArray<T> array) 1300/// Returns a new <see cref="ImmutableArray{T}"/> whose elements are sorted in descending order. 1302public static ImmutableArray<T> OrderDescendingAsArray<T>(this IReadOnlyList<T> list, Comparison<T> comparison) 1304if (list is ImmutableArray<T> array) 1321/// Returns a new <see cref="ImmutableArray{T}"/> whose elements are sorted in ascending order according to a key. 1323public static ImmutableArray<TElement> OrderByAsArray<TElement, TKey>( 1326if (list is ImmutableArray<TElement> array) 1344/// Returns a new <see cref="ImmutableArray{T}"/> whose elements are sorted in ascending order according to a key. 1346public static ImmutableArray<TElement> OrderByAsArray<TElement, TKey>( 1349if (list is ImmutableArray<TElement> array) 1367/// Returns a new <see cref="ImmutableArray{T}"/> whose elements are sorted in ascending order according to a key. 1369public static ImmutableArray<TElement> OrderByAsArray<TElement, TKey>( 1372if (list is ImmutableArray<TElement> array) 1389/// Returns a new <see cref="ImmutableArray{T}"/> whose elements are sorted in descending order according to a key. 1391public static ImmutableArray<TElement> OrderByDescendingAsArray<TElement, TKey>( 1394if (list is ImmutableArray<TElement> array) 1412/// Returns a new <see cref="ImmutableArray{T}"/> whose elements are sorted in descending order according to a key. 1414public static ImmutableArray<TElement> OrderByDescendingAsArray<TElement, TKey>( 1417if (list is ImmutableArray<TElement> array) 1435/// Returns a new <see cref="ImmutableArray{T}"/> whose elements are sorted in descending order according to a key. 1437public static ImmutableArray<TElement> OrderByDescendingAsArray<TElement, TKey>( 1440if (list is ImmutableArray<TElement> array) 1449private static ImmutableArray<T> OrderAsArrayCore<T>( 1453private static ImmutableArray<TElement> OrderByAsArrayCore<TElement, TKey>( 1489/// Returns a new <see cref="ImmutableArray{T}"/> whose elements are the result of invoking the transform function 1492public static ImmutableArray<TResult> SelectAndOrderAsArray<T, TResult>(this IReadOnlyList<T> list, Func<T, TResult> selector) 1494var result = list.SelectAsArray(selector); 1509/// Returns a new <see cref="ImmutableArray{T}"/> whose elements are the result of invoking the transform function 1512public static ImmutableArray<TResult> SelectAndOrderAsArray<T, TResult>( 1515var result = list.SelectAsArray(selector); 1530/// Returns a new <see cref="ImmutableArray{T}"/> whose elements are the result of invoking the transform function 1533public static ImmutableArray<TResult> SelectAndOrderAsArray<T, TResult>( 1536var result = list.SelectAsArray(selector); 1550/// Returns a new <see cref="ImmutableArray{T}"/> whose elements are the result of invoking the transform function 1553public static ImmutableArray<TResult> SelectAndOrderDescendingAsArray<T, TResult>(this IReadOnlyList<T> list, Func<T, TResult> selector) 1555var result = list.SelectAsArray(selector); 1570/// Returns a new <see cref="ImmutableArray{T}"/> whose elements are the result of invoking the transform function 1573public static ImmutableArray<TResult> SelectAndOrderDescendingAsArray<T, TResult>( 1576var result = list.SelectAsArray(selector); 1591/// Returns a new <see cref="ImmutableArray{T}"/> whose elements are the result of invoking the transform function 1594public static ImmutableArray<TResult> SelectAndOrderDescendingAsArray<T, TResult>( 1597var result = list.SelectAsArray(selector); 1613/// Returns a new <see cref="ImmutableArray{T}"/> whose elements are the result of invoking the transform function 1616public static ImmutableArray<TResult> SelectAndOrderByAsArray<TElement, TKey, TResult>( 1619var result = list.SelectAsArray(selector); 1636/// Returns a new <see cref="ImmutableArray{T}"/> whose elements are the result of invoking the transform function 1639public static ImmutableArray<TResult> SelectAndOrderByAsArray<TElement, TKey, TResult>( 1642var result = list.SelectAsArray(selector); 1659/// Returns a new <see cref="ImmutableArray{T}"/> whose elements are the result of invoking the transform function 1662public static ImmutableArray<TResult> SelectAndOrderByAsArray<TElement, TKey, TResult>( 1665var result = list.SelectAsArray(selector); 1681/// Returns a new <see cref="ImmutableArray{T}"/> whose elements are the result of invoking the transform function 1684public static ImmutableArray<TResult> SelectAndOrderByDescendingAsArray<TElement, TKey, TResult>( 1687var result = list.SelectAsArray(selector); 1704/// Returns a new <see cref="ImmutableArray{T}"/> whose elements are the result of invoking the transform function 1707public static ImmutableArray<TResult> SelectAndOrderByDescendingAsArray<TElement, TKey, TResult>( 1710var result = list.SelectAsArray(selector); 1727/// Returns a new <see cref="ImmutableArray{T}"/> whose elements are the result of invoking the transform function 1730public static ImmutableArray<TResult> SelectAndOrderByDescendingAsArray<TElement, TKey, TResult>( 1733var result = list.SelectAsArray(selector);
src\roslyn\src\Razor\src\Shared\Microsoft.AspNetCore.Razor.SharedUtilities\Threading\SpecializedTasks.cs (3)
38public static Task<ImmutableArray<T>> EmptyImmutableArray<T>() 54public static readonly Task<ImmutableArray<T>> EmptyImmutableArray = Task.FromResult(ImmutableArray<T>.Empty);
Utilities\Checksum.cs (1)
41public static Checksum From(ImmutableArray<byte> bytes)
Utilities\RestrictedInternalsVisibleToAttribute.cs (1)
12public ImmutableArray<string> AllowedNamespaces { get; } = allowedNamespaces.ToImmutableArray();
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 (258)
BackEnd\BuildManager\CoordinatorClient.Connection.cs (1)
35public ImmutableArray<string> ServerCapabilities { get; private set; }
BackEnd\BuildManager\CoordinatorClient.cs (1)
43public ImmutableArray<string> ServerCapabilities { get; }
BuildCheck\Infrastructure\EditorConfig\EditorConfigFile.cs (2)
40internal ImmutableArray<Section> NamedSections { get; } 49ImmutableArray<Section> namedSections)
BuildCheck\Infrastructure\EditorConfig\EditorConfigGlobsMatcher.cs (2)
25private readonly ImmutableArray<(int minValue, int maxValue)> _numberRangePairs; 31ImmutableArray<(int minValue, int maxValue)> numberRangePairs)
Definition\BuiltInMetadata.cs (1)
27internal static ImmutableArray<string> MetadataNames => ItemSpecModifiers.All;
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; 151return itemsToAdd?.ToImmutable() ?? ImmutableArray<I>.Empty; 194protected override void MutateItems(ImmutableArray<I> items) 199protected override void SaveItems(ImmutableArray<I> items, OrderedItemDataCollection.Builder listBuilder)
Evaluation\LazyItemEvaluator.LazyItemOperation.cs (6)
68var items = SelectItems(listBuilder, globsToIgnore); 76protected virtual ImmutableArray<I> SelectItems(OrderedItemDataCollection.Builder listBuilder, ImmutableHashSet<string> globsToIgnore) 83protected virtual void MutateItems(ImmutableArray<I> items) { } 85protected virtual void SaveItems(ImmutableArray<I> items, OrderedItemDataCollection.Builder listBuilder) { } 164protected void DecorateItemsWithMetadata(IEnumerable<ItemBatchingContext> itemBatchingContexts, ImmutableArray<ProjectMetadataElement> metadata, bool? needToExpandMetadata = null) 272protected 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)
17private readonly ImmutableArray<IMSBuildGlob> _globs; 53private CompositeGlob(ImmutableArray<IMSBuildGlob> globs) 87if (globs is ImmutableArray<IMSBuildGlob> immutableGlobs)
Graph\ProjectInterpretation.cs (1)
489return ImmutableArray<string>.Empty;
src\5057ed6cf5d6323b\ImmutableSegmentedDictionary`2.cs (1)
23/// the scenarios where <see cref="ImmutableArray{T}"/> is applicable, and
src\8b3a4ac2431f87ea\SpecializedCollections.Empty.List.cs (1)
20public static readonly IReadOnlyList<T> Instance = ImmutableArray<T>.Empty;
src\9f0d3f3da306d8cf\ICollectionExtensions.cs (1)
77public static void AddRange<T>(this ICollection<T> collection, ImmutableArray<T> values)
src\9f0d3f3da306d8cf\IEnumerableExtensions.cs (28)
68public static ImmutableArray<T> ToImmutableArrayOrEmpty<T>(this IEnumerable<T>? items) 75if (items is ImmutableArray<T> array) 90if (items is ImmutableArray<T> array) 353public static ImmutableArray<T> WhereAsArray<T, TArg>(this IEnumerable<T> values, Func<T, TArg, bool> predicate, TArg arg) 369public static ImmutableArray<TResult> SelectAsArray<TSource, TResult>(this IEnumerable<TSource>? source, Func<TSource, TResult> selector) 373return ImmutableArray<TResult>.Empty; 382public static ImmutableArray<TResult> SelectAsArray<TSource, TResult>(this IEnumerable<TSource>? source, Func<TSource, int, TResult> selector) 385return ImmutableArray<TResult>.Empty; 399public static ImmutableArray<TResult> SelectAsArray<TSource, TResult>(this IReadOnlyCollection<TSource>? source, Func<TSource, TResult> selector) 402return ImmutableArray<TResult>.Empty; 415public static ImmutableArray<TResult> SelectAsArray<TSource, TResult, TArg>(this IReadOnlyCollection<TSource>? source, Func<TSource, TArg, TResult> selector, TArg arg) 418return ImmutableArray<TResult>.Empty; 431public static ImmutableArray<TResult> SelectManyAsArray<TSource, TResult>(this IEnumerable<TSource>? source, Func<TSource, IEnumerable<TResult>> selector) 434return ImmutableArray<TResult>.Empty; 443public static ImmutableArray<TResult> SelectManyAsArray<TItem, TArg, TResult>(this IEnumerable<TItem>? source, Func<TItem, TArg, IEnumerable<TResult>> selector, TArg arg) 446return ImmutableArray<TResult>.Empty; 455public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, IEnumerable<TResult>> selector) 458return ImmutableArray<TResult>.Empty; 468public static ImmutableArray<TResult> SelectManyAsArray<TItem, TArg, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, TArg, IEnumerable<TResult>> selector, TArg arg) 471return ImmutableArray<TResult>.Empty; 481public static ImmutableArray<TResult> SelectManyAsArray<TSource, TResult>(this IEnumerable<TSource>? source, Func<TSource, OneOrMany<TResult>> selector) 484return ImmutableArray<TResult>.Empty; 496public static async ValueTask<ImmutableArray<TResult>> SelectAsArrayAsync<TItem, TResult>(this IEnumerable<TItem> source, Func<TItem, ValueTask<TResult>> selector) 511public static async ValueTask<ImmutableArray<TResult>> SelectAsArrayAsync<TItem, TResult>(this IEnumerable<TItem> source, Func<TItem, CancellationToken, ValueTask<TResult>> selector, CancellationToken cancellationToken) 526public static async ValueTask<ImmutableArray<TResult>> SelectAsArrayAsync<TItem, TArg, TResult>(this IEnumerable<TItem> source, Func<TItem, TArg, CancellationToken, ValueTask<TResult>> selector, TArg arg, CancellationToken cancellationToken) 538public 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) 802internal static Dictionary<K, ImmutableArray<T>> ToMultiDictionary<K, T>(this IEnumerable<T> data, Func<T, K> keySelector, IEqualityComparer<K>? comparer = null) 805var dictionary = new Dictionary<K, ImmutableArray<T>>(comparer);
src\9f0d3f3da306d8cf\ImmutableArrayExtensions.cs (153)
28/// The collection of extension methods for the <see cref="ImmutableArray{T}"/> type 40public static ImmutableArray<T> AsImmutable<T>(this IEnumerable<T> items) 52public static ImmutableArray<T> AsImmutableOrEmpty<T>(this IEnumerable<T>? items) 56return ImmutableArray<T>.Empty; 69public static ImmutableArray<T> AsImmutableOrNull<T>(this IEnumerable<T>? items) 85public static ImmutableArray<T> AsImmutable<T>(this T[] items) 98public static ImmutableArray<T> AsImmutableOrNull<T>(this T[]? items) 114public static ImmutableArray<T> AsImmutableOrEmpty<T>(this T[]? items) 118return ImmutableArray<T>.Empty; 129public static ImmutableArray<byte> ToImmutable(this MemoryStream stream) 142public static ImmutableArray<TResult> SelectAsArray<TItem, TResult>(this ImmutableArray<TItem> items, Func<TItem, TResult> map) 157public static ImmutableArray<TResult> SelectAsArray<TItem, TArg, TResult>(this ImmutableArray<TItem> items, Func<TItem, TArg, TResult> map, TArg arg) 172public static ImmutableArray<TResult> SelectAsArray<TItem, TArg, TResult>(this ImmutableArray<TItem> items, Func<TItem, int, TArg, TResult> map, TArg arg) 177return ImmutableArray<TResult>.Empty; 211public static ImmutableArray<TResult> SelectAsArray<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, bool> predicate, Func<TItem, TResult> selector) 215return ImmutableArray<TResult>.Empty; 241public static ImmutableArray<TResult> SelectAsArray<TItem, TArg, TResult>(this ImmutableArray<TItem> array, Func<TItem, TArg, bool> predicate, Func<TItem, TArg, TResult> selector, TArg arg) 245return ImmutableArray<TResult>.Empty; 268public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, IEnumerable<TResult>> selector) 271return ImmutableArray<TResult>.Empty; 288public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, ImmutableArray<TResult>> selector) 291return ImmutableArray<TResult>.Empty; 308public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, OneOrMany<TResult>> selector) 311return ImmutableArray<TResult>.Empty; 331public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, bool> predicate, Func<TItem, IEnumerable<TResult>> selector) 334return ImmutableArray<TResult>.Empty; 355public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, bool> predicate, Func<TItem, ImmutableArray<TResult>> selector) 358return ImmutableArray<TResult>.Empty; 379public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, bool> predicate, Func<TItem, OneOrMany<TResult>> selector) 382return ImmutableArray<TResult>.Empty; 404public static ImmutableArray<TResult> SelectManyAsArray<TItem, TArg, TResult>(this ImmutableArray<TItem> array, Func<TItem, TArg, bool> predicate, Func<TItem, TArg, OneOrMany<TResult>> selector, TArg arg) 407return ImmutableArray<TResult>.Empty; 422public static async ValueTask<ImmutableArray<TResult>> SelectAsArrayAsync<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, CancellationToken, ValueTask<TResult>> selector, CancellationToken cancellationToken) 425return ImmutableArray<TResult>.Empty; 440public static async ValueTask<ImmutableArray<TResult>> SelectAsArrayAsync<TItem, TArg, TResult>(this ImmutableArray<TItem> array, Func<TItem, TArg, CancellationToken, ValueTask<TResult>> selector, TArg arg, CancellationToken cancellationToken) 443return ImmutableArray<TResult>.Empty; 455public static ValueTask<ImmutableArray<TResult>> SelectManyAsArrayAsync<TItem, TArg, TResult>(this ImmutableArray<TItem> source, Func<TItem, TArg, CancellationToken, ValueTask<ImmutableArray<TResult>>> selector, TArg arg, CancellationToken cancellationToken) 459return new ValueTask<ImmutableArray<TResult>>(ImmutableArray<TResult>.Empty); 469async ValueTask<ImmutableArray<TResult>> CreateTaskAsync() 486public static ImmutableArray<TResult> ZipAsArray<T1, T2, TResult>(this ImmutableArray<T1> self, ImmutableArray<T2> other, Func<T1, T2, TResult> map) 492return ImmutableArray<TResult>.Empty; 517public static ImmutableArray<TResult> ZipAsArray<T1, T2, TArg, TResult>(this ImmutableArray<T1> self, ImmutableArray<T2> other, TArg arg, Func<T1, T2, int, TArg, TResult> map) 522return ImmutableArray<TResult>.Empty; 538public static ImmutableArray<T> WhereAsArray<T>(this ImmutableArray<T> array, Func<T, bool> predicate) 546public static ImmutableArray<T> WhereAsArray<T, TArg>(this ImmutableArray<T> array, Func<T, TArg, bool> predicate, TArg arg) 549private static ImmutableArray<T> WhereAsArrayImpl<T, TArg>(ImmutableArray<T> array, Func<T, bool>? predicateWithoutArg, Func<T, TArg, bool>? predicateWithArg, TArg arg) 614return ImmutableArray<T>.Empty; 618public static bool Any<T, TArg>(this ImmutableArray<T> array, Func<T, TArg, bool> predicate, TArg arg) 634public static bool All<T, TArg>(this ImmutableArray<T> array, Func<T, TArg, bool> predicate, TArg arg) 650public static async Task<bool> AnyAsync<T>(this ImmutableArray<T> array, Func<T, Task<bool>> predicateAsync) 666public static async Task<bool> AnyAsync<T, TArg>(this ImmutableArray<T> array, Func<T, TArg, Task<bool>> predicateAsync, TArg arg) 682public static async ValueTask<T?> FirstOrDefaultAsync<T>(this ImmutableArray<T> array, Func<T, Task<bool>> predicateAsync) 698public static TValue? FirstOrDefault<TValue, TArg>(this ImmutableArray<TValue> array, Func<TValue, TArg, bool> predicate, TArg arg) 711public static TValue Single<TValue, TArg>(this ImmutableArray<TValue> array, Func<TValue, TArg, bool> predicate, TArg arg) 741public static ImmutableArray<TBase> Cast<TDerived, TBase>(this ImmutableArray<TDerived> items) 744return ImmutableArray<TBase>.CastUp(items); 755public static bool SetEquals<T>(this ImmutableArray<T> array1, ImmutableArray<T> array2, IEqualityComparer<T> comparer) 796public static ImmutableArray<T> NullToEmpty<T>(this ImmutableArray<T> array) 798return array.IsDefault ? ImmutableArray<T>.Empty : array; 804public static ImmutableArray<T> NullToEmpty<T>(this ImmutableArray<T>? array) 807null or { IsDefault: true } => ImmutableArray<T>.Empty, 815public static ImmutableArray<T> Distinct<T>(this ImmutableArray<T> array, IEqualityComparer<T>? comparer = null) 834var result = (builder.Count == array.Length) ? array : builder.ToImmutable(); 841internal static ImmutableArray<T> ConditionallyDeOrder<T>(this ImmutableArray<T> array) 858internal static ImmutableArray<TValue> Flatten<TKey, TValue>( 859this Dictionary<TKey, ImmutableArray<TValue>> dictionary, 865return ImmutableArray<TValue>.Empty; 884internal static ImmutableArray<T> Concat<T>(this ImmutableArray<T> first, ImmutableArray<T> second) 889internal static ImmutableArray<T> Concat<T>(this ImmutableArray<T> first, ImmutableArray<T> second, ImmutableArray<T> third) 912internal static ImmutableArray<T> Concat<T>(this ImmutableArray<T> first, ImmutableArray<T> second, ImmutableArray<T> third, ImmutableArray<T> fourth) 940internal static ImmutableArray<T> Concat<T>(this ImmutableArray<T> first, ImmutableArray<T> second, ImmutableArray<T> third, ImmutableArray<T> fourth, ImmutableArray<T> fifth) 973internal static ImmutableArray<T> Concat<T>(this ImmutableArray<T> first, ImmutableArray<T> second, ImmutableArray<T> third, ImmutableArray<T> fourth, ImmutableArray<T> fifth, ImmutableArray<T> sixth) 1011internal static ImmutableArray<T> Concat<T>(this ImmutableArray<T> first, T second) 1016internal static ImmutableArray<T> AddRange<T>(this ImmutableArray<T> self, in TemporaryArray<T> items) 1049internal static bool HasDuplicates<T>(this ImmutableArray<T> array) 1085internal static bool HasDuplicates<T>(this ImmutableArray<T> array, IEqualityComparer<T> comparer) 1111public static int Count<T>(this ImmutableArray<T> items, Func<T, bool> predicate) 1130public static int Sum<T>(this ImmutableArray<T> items, Func<T, int> selector) 1139public static int Sum<T>(this ImmutableArray<T> items, Func<T, int, int> selector) 1176(Dictionary<TKey, object> dictionary, Dictionary<TKey, ImmutableArray<TNamespaceOrTypeSymbol>> result) 1187static ImmutableArray<TNamespaceOrTypeSymbol> createMembers(object value) 1198return ImmutableArray<TNamespaceOrTypeSymbol>.CastUp(builder.ToDowncastedImmutableAndFree<TNamedTypeSymbol>()); 1205: ImmutableArray<TNamespaceOrTypeSymbol>.CastUp(ImmutableArray.Create((TNamedTypeSymbol)symbol)); 1210internal static Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>> GetTypesFromMemberMap<TKey, TNamespaceOrTypeSymbol, TNamedTypeSymbol> 1211(Dictionary<TKey, ImmutableArray<TNamespaceOrTypeSymbol>> map, IEqualityComparer<TKey> comparer) 1222var dictionary = new Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>>(capacity, comparer); 1226var namedTypes = getOrCreateNamedTypes(entry.Value); 1233static ImmutableArray<TNamedTypeSymbol> getOrCreateNamedTypes(ImmutableArray<TNamespaceOrTypeSymbol> members) 1240var membersAsNamedTypes = members.As<TNamedTypeSymbol>(); 1253return ImmutableArray<TNamedTypeSymbol>.Empty; 1267internal static bool SequenceEqual<TElement, TArg>(this ImmutableArray<TElement> array1, ImmutableArray<TElement> array2, TArg arg, Func<TElement, TElement, TArg, bool> predicate) 1297internal static int IndexOf<T>(this ImmutableArray<T> array, T item, IEqualityComparer<T> comparer) 1300internal static bool IsSorted<T>(this ImmutableArray<T> array, Comparison<T> comparison) 1303internal static bool IsSorted<T>(this ImmutableArray<T> array, IComparer<T>? comparer = null) 1319internal static int BinarySearch<TElement, TValue>(this ImmutableArray<TElement> array, TValue value, Func<TElement, TValue, int> comparer) 1378public static bool IsSubsetOf<TElement>(this ImmutableArray<TElement> array, ImmutableArray<TElement> other)
src\ffb8e10988257116\ArrayBuilderExtensions.cs (1)
16public static ImmutableArray<T> ToImmutableOrEmptyAndFree<T>(this ArrayBuilder<T>? builder)
src\msbuild\artifacts\.packages\microsoft.codeanalysis.collections\5.0.0-1.25277.114\contentFiles\cs\net9.0\Internal\HashHelpers.cs (1)
40private static readonly ImmutableArray<int> s_primes = ImmutableArray.Create(
src\msbuild\artifacts\.packages\microsoft.codeanalysis.collections\5.0.0-1.25277.114\contentFiles\cs\net9.0\OneOrMany.cs (8)
28public static readonly OneOrMany<T> Empty = new OneOrMany<T>(ImmutableArray<T>.Empty); 31private readonly ImmutableArray<T> _many; 39public OneOrMany(ImmutableArray<T> many) 167: new OneOrMany<T>(ImmutableArray<T>.CastUp(from._many)); 185public ImmutableArray<T> ToImmutable() 206public bool SequenceEqual(ImmutableArray<T> other, IEqualityComparer<T>? comparer = null) 278public static OneOrMany<T> Create<T>(ImmutableArray<T> many) 281public static bool SequenceEqual<T>(this ImmutableArray<T> array, OneOrMany<T> other, IEqualityComparer<T>? comparer = null)
src\msbuild\artifacts\.packages\microsoft.codeanalysis.collections\5.0.0-1.25277.114\contentFiles\cs\net9.0\RoslynImmutableInterlocked.cs (5)
618public static ImmutableArray<T> VolatileRead<T>(ref readonly ImmutableArray<T> location) 620var value = location; 632public static void VolatileWrite<T>(ref ImmutableArray<T> location, ImmutableArray<T> value)
src\msbuild\artifacts\.packages\microsoft.codeanalysis.collections\5.0.0-1.25277.114\contentFiles\cs\net9.0\TemporaryArray`1.cs (6)
23/// <see cref="ImmutableArray{T}"/>. 178public void AddRange(ImmutableArray<T> items) 298/// Create an <see cref="ImmutableArray{T}"/> with the elements currently held in the temporary array, and clear 301public ImmutableArray<T> ToImmutableAndClear() 309var result = _count switch 3110 => ImmutableArray<T>.Empty,
src\msbuild\artifacts\.packages\microsoft.codeanalysis.pooledobjects\5.0.0-1.25277.114\contentFiles\cs\netstandard2.0\ArrayBuilder.cs (26)
56private readonly ImmutableArray<T>.Builder _builder; 78public ImmutableArray<T> ToImmutable() 86public ImmutableArray<T> ToImmutableAndClear() 88ImmutableArray<T> result; 91result = ImmutableArray<T>.Empty; 374public ImmutableArray<T> ToImmutableOrNull() 387public ImmutableArray<U> ToDowncastedImmutable<U>() 392return ImmutableArray<U>.Empty; 404public ImmutableArray<U> ToDowncastedImmutableAndFree<U>() where U : T 406var result = ToDowncastedImmutable<U>(); 414public ImmutableArray<T> ToImmutableAndFree() 418ImmutableArray<T> result; 421result = ImmutableArray<T>.Empty; 546internal Dictionary<K, ImmutableArray<T>> ToDictionary<K>(Func<T, K> keySelector, IEqualityComparer<K>? comparer = null) 551var dictionary1 = new Dictionary<K, ImmutableArray<T>>(1, comparer); 559return new Dictionary<K, ImmutableArray<T>>(comparer); 578var dictionary = new Dictionary<K, ImmutableArray<T>>(accumulator.Count, comparer); 617public void AddRange(ImmutableArray<T> items) 622public void AddRange(ImmutableArray<T> items, int length) 627public void AddRange(ImmutableArray<T> items, int start, int length) 637public void AddRange<S>(ImmutableArray<S> items) where S : class, T 639AddRange(ImmutableArray<T>.CastUp(items)); 731public ImmutableArray<S> SelectDistinct<S>(Func<T, S> selector) 803public ImmutableArray<TResult> SelectAsArray<TResult>(Func<T, TResult> map) 841public ImmutableArray<TResult> SelectAsArray<TArg, TResult>(Func<T, TArg, TResult> map, TArg arg) 879public ImmutableArray<TResult> SelectAsArrayWithIndex<TArg, TResult>(Func<T, int, TArg, TResult> map, TArg arg)
Utilities\ImmutableCollectionsExtensions.cs (1)
29public static bool Any<TElement, TArg>(this ImmutableArray<TElement> immutableArray, Func<TElement, TArg, bool> predicate, TArg arg)
Microsoft.Build.Framework (8)
Collections\RefArrayBuilder.cs (2)
359/// Creates an <see cref="ImmutableArray{T}"/> containing a copy of the elements in the builder. 362public readonly ImmutableArray<T> ToImmutable()
Coordinator\Messages\ClientHandshakeMessage.cs (2)
31public ImmutableArray<string> Capabilities { get; } 33public ClientHandshakeMessage(Guid connectionId, int processId, ImmutableArray<string> capabilities)
Coordinator\Messages\Message.FactoryBase.Group.cs (1)
18public Group(params ImmutableArray<TFactory> factories)
Coordinator\Messages\ServerHandshakeMessage.cs (2)
19public ImmutableArray<string> Capabilities { get; } 21public ServerHandshakeMessage(ImmutableArray<string> capabilities)
ItemSpecModifiers.cs (1)
36public static readonly ImmutableArray<string> All =
Microsoft.Build.Tasks.Git (27)
GitDataReader\GitConfig.cs (10)
15public static readonly GitConfig Empty = new(ImmutableDictionary<GitVariableName, ImmutableArray<string>>.Empty); 27private static readonly ImmutableArray<string> s_knownExtensions = 30public readonly ImmutableDictionary<GitVariableName, ImmutableArray<string>> Variables; 39public GitConfig(ImmutableDictionary<GitVariableName, ImmutableArray<string>> variables) 103internal IEnumerable<KeyValuePair<string, ImmutableArray<string>>> EnumerateVariables() 104=> Variables.Select(kvp => new KeyValuePair<string, ImmutableArray<string>>(kvp.Key.ToString(), kvp.Value)); 106public ImmutableArray<string> GetVariableValues(string section, string name) 109public ImmutableArray<string> GetVariableValues(string section, string subsection, string name) 110=> Variables.TryGetValue(new GitVariableName(section, subsection, name), out var multiValue) ? multiValue : default; 117var values = GetVariableValues(section, subsection, name);
GitDataReader\GitIgnore.cs (2)
25public readonly ImmutableArray<Pattern> Patterns; 29public PatternGroup(PatternGroup? parent, string containingDirectory, ImmutableArray<Pattern> patterns)
GitDataReader\GitRepository.cs (12)
46private readonly Lazy<(ImmutableArray<GitSubmodule> Submodules, ImmutableArray<string> Diagnostics)> _lazySubmodules; 78ImmutableArray<GitSubmodule> submodules, 79ImmutableArray<string> submoduleDiagnostics, 203public ImmutableArray<GitSubmodule> GetSubmodules() 209public ImmutableArray<string> GetSubmoduleDiagnostics() 215private (ImmutableArray<GitSubmodule> Submodules, ImmutableArray<string> Diagnostics) ReadSubmodules() 221return (ImmutableArray<GitSubmodule>.Empty, ImmutableArray<string>.Empty); 224ImmutableArray<string>.Builder? lazyDiagnostics = null; 274return (builder.ToImmutable(), (lazyDiagnostics != null) ? lazyDiagnostics.ToImmutable() : ImmutableArray<string>.Empty);
src\sourcelink\src\Common\Utilities\Hash.cs (3)
113internal static int CombineValues<T>(ImmutableArray<T> values, int maxItemsToHash = int.MaxValue) 164internal static int CombineValues(ImmutableArray<string> values, StringComparer stringComparer, int maxItemsToHash = int.MaxValue) 245internal static int GetFNVHashCode(ImmutableArray<byte> data)
Microsoft.CodeAnalysis (3344)
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)
198protected override ImmutableArray<ArrayMethodParameterInfo> MakeParameters() 251public ImmutableArray<Cci.ICustomModifier> RefCustomModifiers 252=> ImmutableArray<Cci.ICustomModifier>.Empty; 254public ImmutableArray<Cci.ICustomModifier> CustomModifiers 255=> ImmutableArray<Cci.ICustomModifier>.Empty; 290private readonly ImmutableArray<ArrayMethodParameterInfo> _parameters; 306protected virtual ImmutableArray<ArrayMethodParameterInfo> MakeParameters() 319public ImmutableArray<Cci.IParameterTypeInformation> GetParameters(EmitContext context) 328public ImmutableArray<Cci.IParameterTypeInformation> ExtraParameters 329=> ImmutableArray<Cci.IParameterTypeInformation>.Empty; 339public ImmutableArray<Cci.ICustomModifier> RefCustomModifiers 340=> ImmutableArray<Cci.ICustomModifier>.Empty; 342public ImmutableArray<Cci.ICustomModifier> ReturnValueCustomModifiers 343=> ImmutableArray<Cci.ICustomModifier>.Empty;
CodeGen\ILBuilder.cs (4)
44internal ImmutableArray<byte> RealizedIL; 45internal ImmutableArray<Cci.ExceptionHandlerRegion> RealizedExceptionHandlers; 218internal ImmutableArray<Cci.LocalScope> GetAllScopes() => _scopeManager.GetAllScopesWithLocals(); 223internal ImmutableArray<StateMachineHoistedLocalScope> GetHoistedLocalScopes()
CodeGen\ILBuilderEmit.cs (1)
75internal void EmitArrayBlockInitializer(ImmutableArray<byte> data, SyntaxNode syntaxNode)
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)
134ImmutableArray<bool> dynamicTransformFlags, 135ImmutableArray<string> tupleElementNames, 175ImmutableArray<bool> dynamicTransformFlags = default, 176ImmutableArray<string> tupleElementNames = default) 203ImmutableArray<bool> dynamicTransformFlags, 204ImmutableArray<string> tupleElementNames) 307public ImmutableArray<Cci.ILocalDefinition> LocalsInOrder() 311return 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; 120ImmutableArray<SourceSpan> Cci.IMethodBody.CodeCoverageSpans => _codeCoverageSpans; 122ImmutableArray<Cci.ExceptionHandlerRegion> Cci.IMethodBody.ExceptionRegions => _exceptionHandlers; 126ImmutableArray<Cci.ILocalDefinition> Cci.IMethodBody.LocalVariables => _locals; 134public ImmutableArray<byte> IL => _ilBits; 136public ImmutableArray<Cci.SequencePoint> SequencePoints => _sequencePoints; 138ImmutableArray<Cci.LocalScope> Cci.IMethodBody.LocalScopes => _localScopes; 147ImmutableArray<StateMachineHoistedLocalScope> Cci.IMethodBody.StateMachineHoistedLocalScopes 150ImmutableArray<EncHoistedLocalInfo> Cci.IMethodBody.StateMachineHoistedLocalSlots 153ImmutableArray<Cci.ITypeReference?> Cci.IMethodBody.StateMachineAwaiterSlots 160public ImmutableArray<EncLambdaInfo> LambdaDebugInfo => _lambdaDebugInfo; 165public ImmutableArray<LambdaRuntimeRudeEditInfo> OrderedLambdaRuntimeRudeEdits => _orderedLambdaRuntimeRudeEdits; 167public 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 (46)
68private ImmutableArray<SynthesizedStaticField> _orderedSynthesizedFields; 71private readonly ConcurrentDictionary<(ImmutableArray<byte> Data, ushort Alignment), MappedField> _mappedFields = 72new ConcurrentDictionary<(ImmutableArray<byte> Data, ushort Alignment), MappedField>(DataAndUShortEqualityComparer.Instance); 75private readonly ConcurrentDictionary<(ImmutableArray<byte> Data, ushort ElementType), CachedArrayField> _cachedArrayFields = 76new ConcurrentDictionary<(ImmutableArray<byte> Data, ushort ElementType), CachedArrayField>(DataAndUShortEqualityComparer.Instance); 79private readonly ConcurrentDictionary<(ImmutableArray<ConstantValue> Constants, ushort ElementType), CachedArrayField> _cachedArrayFieldsForConstants = 80new ConcurrentDictionary<(ImmutableArray<ConstantValue> Constants, ushort ElementType), CachedArrayField>(ConstantValueAndUShortEqualityComparer.Instance); 89private ImmutableArray<Cci.IMethodDefinition> _orderedSynthesizedMethods; 102private ImmutableArray<Cci.INestedTypeDefinition> _orderedNestedTypes; 196internal Cci.IFieldReference CreateArrayCachingField(ImmutableArray<byte> data, Cci.IArrayTypeReference arrayType, EmitContext emitContext) 220internal Cci.IFieldReference CreateArrayCachingField(ImmutableArray<ConstantValue> constants, Cci.IArrayTypeReference arrayType, EmitContext emitContext) 288internal MappedField GetOrAddDataField(ImmutableArray<byte> data, ushort alignment) 514private static string DataToHex(ImmutableArray<byte> data) 516ImmutableArray<byte> hash = CryptographicHashProvider.ComputeSourceHash(data); 520private string DataToHexViaXxHash128(ImmutableArray<byte> data) 533private static string ConstantsToHex(ImmutableArray<ConstantValue> constants) 535ImmutableArray<byte> hash = CryptographicHashProvider.ComputeSourceHash(constants); 580private sealed class DataAndUShortEqualityComparer : EqualityComparer<(ImmutableArray<byte> Data, ushort Value)> 586public override bool Equals((ImmutableArray<byte> Data, ushort Value) x, (ImmutableArray<byte> Data, ushort Value) y) => 590public override int GetHashCode((ImmutableArray<byte> Data, ushort Value) obj) => 594private sealed class ConstantValueAndUShortEqualityComparer : EqualityComparer<(ImmutableArray<ConstantValue> Constants, ushort Value)> 600public override bool Equals((ImmutableArray<ConstantValue> Constants, ushort Value) x, (ImmutableArray<ConstantValue> Constants, ushort Value) y) 623public override int GetHashCode((ImmutableArray<ConstantValue> Constants, ushort Value) obj) 685private readonly ImmutableArray<Cci.IFieldDefinition> _fields; 686private readonly ImmutableArray<Cci.IMethodDefinition> _methods; 756public override ImmutableArray<byte> MappedData => default; 806public abstract ImmutableArray<byte> MappedData { get; } 826public ImmutableArray<byte> MarshallingDescriptor => default(ImmutableArray<byte>); 860public ImmutableArray<Cci.ICustomModifier> RefCustomModifiers => ImmutableArray<Cci.ICustomModifier>.Empty; 893public override ImmutableArray<byte> MappedData => default(ImmutableArray<byte>); 903public override ImmutableArray<byte> MappedData => default; 914public override ImmutableArray<byte> MappedData => default(ImmutableArray<byte>); 923private readonly ImmutableArray<byte> _block; 925internal MappedField(string name, Cci.INamedTypeDefinition containingType, Cci.ITypeReference type, ImmutableArray<byte> block) 932public override ImmutableArray<byte> MappedData => _block; 946public override ImmutableArray<byte> MappedData => default(ImmutableArray<byte>); 1117private readonly ImmutableArray<Cci.IParameterDefinition> _parameters; 1123ImmutableArray<byte> il) 1175public override ImmutableArray<Cci.IParameterDefinition> Parameters => _parameters;
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)
45private readonly ImmutableArray<KeyValuePair<ConstantValue, object>> _sortedCaseLabels; 108var sortedCaseLabels = _sortedCaseLabels; 133ImmutableArray<SwitchBucket> switchBuckets = this.GenerateSwitchBuckets(startLabelIndex, endLabelIndex); 185private ImmutableArray<SwitchBucket> GenerateSwitchBuckets(int startLabelIndex, int endLabelIndex) 268private void EmitSwitchBucketsLinearLeaf(ImmutableArray<SwitchBucket> switchBuckets, int low, int high) 282private 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\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 (3)
93/// the values in the passed builder will be converted to an <see cref="ImmutableArray{T}"/> using <see 97public static ImmutableSegmentedDictionary<K, ImmutableArray<V>> ToImmutableSegmentedDictionaryAndFree<K, V>(this PooledDictionary<K, ArrayBuilder<V>> dictionary) 100var result = ImmutableSegmentedDictionary.CreateBuilder<K, ImmutableArray<V>>();
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)
13internal static ImmutableArray<T> From<TDerived>(ImmutableArray<TDerived> from) where TDerived : class, T 15return ImmutableArray<T>.CastUp(from);
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)
28private readonly ImmutableArray<ICollection<T>> _collections; 49public static ICollection<T> Create<TOrig>(ImmutableArray<TOrig> collections, Func<TOrig, ICollection<T>> selector) 66private 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); 648internal ImmutableArray<AnalyzerConfig.Section> NamedSections { get; } 650public GlobalAnalyzerConfig(AnalyzerConfig.Section globalSection, ImmutableArray<AnalyzerConfig.Section> namedSections)
CommandLine\CommandLineArguments.cs (23)
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<CommandLineResource> ManifestResourceArguments { get; internal set; } 259public ImmutableArray<string> ScriptArguments { get; internal set; } 268public ImmutableArray<CommandLineSourceFile> SourceFiles { get; internal set; } 312private readonly Lazy<ImmutableArray<ResourceDescription>> _lazyManifestResources; 319_lazyManifestResources = new Lazy<ImmutableArray<ResourceDescription>>( 326public ImmutableArray<ResourceDescription> ManifestResources 417var references = ResolveMetadataReference(cmdReference, metadataResolver, diagnosticsOpt, messageProviderOpt); 436internal static ImmutableArray<PortableExecutableReference> ResolveMetadataReference(CommandLineReference cmdReference, MetadataReferenceResolver metadataResolver, List<DiagnosticInfo>? diagnosticsOpt, CommonMessageProvider? messageProviderOpt) 441ImmutableArray<PortableExecutableReference> references; 450return ImmutableArray<PortableExecutableReference>.Empty; 457return ImmutableArray<PortableExecutableReference>.Empty; 488out ImmutableArray<DiagnosticAnalyzer> analyzers, 489out ImmutableArray<ISourceGenerator> generators)
CommandLine\CommandLineParser.cs (4)
349protected ImmutableArray<KeyValuePair<string, string>> ParsePathMap(string pathMap, IList<Diagnostic> errors) 353return ImmutableArray<KeyValuePair<string, string>>.Empty; 1407internal 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 (48)
100ImmutableArray<AnalyzerConfigOptionsResult> analyzerConfigOptions, 123out ImmutableArray<DiagnosticAnalyzer> analyzers, 124out ImmutableArray<ISourceGenerator> generators); 293ImmutableArray<string> analyzerConfigPaths, 341analyzerConfigSet = AnalyzerConfigSet.Create(configs, out var setDiagnostics); 421private ImmutableArray<EmbeddedText?> AcquireEmbeddedTexts(Compilation compilation, DiagnosticBag diagnostics) 426return ImmutableArray<EmbeddedText?>.Empty; 604private void ReportIVTInfos(TextWriter consoleOutput, ErrorLogger? errorLogger, Compilation compilation, ImmutableArray<Diagnostic> diagnostics) 661private protected abstract void DiagnoseBadAccesses(TextWriter consoleOutput, ErrorLogger? errorLogger, Compilation compilation, ImmutableArray<Diagnostic> diagnostics); 814ImmutableArray<ISourceGenerator> generators, 816ImmutableArray<AdditionalText> additionalTexts, 836driver = driver.RunGeneratorsAndUpdateCompilation(input, out var compilationOut, out var diagnostics); 874private protected abstract GeneratorDriver CreateGeneratorDriver(string baseDirectory, ParseOptions parseOptions, ImmutableArray<ISourceGenerator> generators, AnalyzerConfigOptionsProvider analyzerConfigOptionsProvider, ImmutableArray<AdditionalText> additionalTexts, SourceHashAlgorithm checksumAlgorithm); 920ImmutableArray<AnalyzerConfigOptionsResult> sourceFileAnalyzerConfigOptions = default; 948ResolveAnalyzersFromArguments(diagnosticInfos, MessageProvider, compilation.Options, Arguments.SkipAnalyzers, out var analyzers, out var generators); 949var additionalTextFiles = ResolveAdditionalFilesFromArguments(diagnosticInfos, MessageProvider, touchedFilesLogger); 955ImmutableArray<EmbeddedText?> embeddedTexts = AcquireEmbeddedTexts(compilation, diagnostics); 961var additionalTexts = ImmutableArray<AdditionalText>.CastUp(additionalTextFiles); 1031ImmutableArray<AnalyzerConfigOptionsResult> sourceFileAnalyzerConfigOptions, 1032ImmutableArray<AdditionalText> additionalFiles = default, 1033ImmutableArray<AnalyzerConfigOptionsResult> additionalFileOptions = default) 1071ImmutableArray<AdditionalText> additionalTextFiles, 1074ImmutableArray<AnalyzerConfigOptionsResult> sourceFileAnalyzerConfigOptions) 1084ImmutableArray<AnalyzerConfigOptionsResult> additionalFileAnalyzerOptions = 1110ImmutableArray<DiagnosticAnalyzer> analyzers, 1111ImmutableArray<ISourceGenerator> generators, 1112ImmutableArray<AdditionalText> additionalTextFiles, 1114ImmutableArray<AnalyzerConfigOptionsResult> sourceFileAnalyzerConfigOptions, 1115ImmutableArray<EmbeddedText?> embeddedTexts, 1428var hostDiagnostics = analyzerDriver.GetDiagnosticsAsync(compilation, cancellationToken).Result; 1439var descriptorsWithInfo = analyzerDriver.GetAllDiagnosticDescriptorsWithInfo(cancellationToken, out var totalAnalyzerExecutionTime); 1566ImmutableArray<AdditionalText> additionalTextFiles, 1569protected virtual void AddAnalyzerDescriptorsAndExecutionTime(ErrorLogger errorLogger, ImmutableArray<(DiagnosticDescriptor Descriptor, DiagnosticDescriptorErrorLoggerInfo Info)> descriptorsWithInfo, double totalAnalyzerExecutionTime) 1620protected virtual ImmutableArray<AdditionalTextFile> ResolveAdditionalFilesFromArguments(List<DiagnosticInfo> diagnostics, CommonMessageProvider messageProvider, TouchedFileLogger? touchedFilesLogger) 1773ImmutableArray<DiagnosticAnalyzer> analyzers, 1774ImmutableArray<ISourceGenerator> generators, 1775ImmutableArray<AdditionalText> additionalTexts, 1790ImmutableArray<DiagnosticAnalyzer> analyzers, 1791ImmutableArray<ISourceGenerator> generators, 1792ImmutableArray<AdditionalText> additionalTexts, 1801ImmutableArray<AdditionalText> additionalTexts, 1802ImmutableArray<DiagnosticAnalyzer> analyzers, 1803ImmutableArray<ISourceGenerator> generators, 1804ImmutableArray<KeyValuePair<string, string>> pathMap, 1807ImmutableArray<ResourceDescription> resources)
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\ReportAnalyzerUtil.cs (1)
117var nonConcurrentAnalyzers = nonConcurrentAnalyzersAndSuppressors.WhereAsArray(a => a is not DiagnosticSuppressor);
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\ClosedDerivedTypeInfo.cs (2)
18public ImmutableArray<INamedTypeSymbol> ClosedDerivedTypes { get; } 26internal ClosedDerivedTypeInfo(ImmutableArray<INamedTypeSymbol> closedDerivedTypes, bool isComplete)
Compilation\CommonSyntaxAndDeclarationManager.cs (2)
11internal readonly ImmutableArray<SyntaxTree> ExternalSyntaxTrees; 18ImmutableArray<SyntaxTree> externalSyntaxTrees,
Compilation\Compilation.cs (82)
79ImmutableArray<MetadataReference> references, 127internal abstract AnalyzerDriver CreateAnalyzerDriver(ImmutableArray<DiagnosticAnalyzer> analyzers, AnalyzerManager analyzerManager, SeverityFilter severityFilter); 198ImmutableArray<SyntaxTree> syntaxTrees, 199ImmutableArray<MetadataReference> references, 200ImmutableArray<byte> publicKey, 201ImmutableArray<AdditionalText> additionalTexts = default, 202ImmutableArray<DiagnosticAnalyzer> analyzers = default, 203ImmutableArray<ISourceGenerator> generators = default, 204ImmutableArray<KeyValuePair<string, string>> pathMap = default, 207ImmutableArray<ResourceDescription> resources = default, 226ImmutableArray<AdditionalText> additionalTexts = default, 227ImmutableArray<DiagnosticAnalyzer> analyzers = default, 228ImmutableArray<ISourceGenerator> generators = default, 229ImmutableArray<KeyValuePair<string, string>> pathMap = default, 232ImmutableArray<ResourceDescription> resources = default, 578protected internal abstract ImmutableArray<SyntaxTree> CommonSyntaxTrees { get; } 689internal static ImmutableArray<MetadataReference> ValidateReferences<T>(IEnumerable<MetadataReference>? references) 692var result = references.AsImmutableOrEmpty(); 723public ImmutableArray<MetadataReference> ExternalReferences { get; } 728public abstract ImmutableArray<MetadataReference> DirectiveReferences { get; } 770public abstract CompilationReference ToMetadataReference(ImmutableArray<string> aliases = default(ImmutableArray<string>), bool embedInteropTypes = false); 1150ImmutableArray<ITypeSymbol> parameterTypes, 1151ImmutableArray<RefKind> parameterRefKinds, 1153ImmutableArray<INamedTypeSymbol> callingConventionTypes = default) 1161ImmutableArray<ITypeSymbol> parameterTypes, 1162ImmutableArray<RefKind> parameterRefKinds, 1164ImmutableArray<INamedTypeSymbol> callingConventionTypes); 1185private ConcurrentCache<string, ImmutableArray<INamedTypeSymbol>>? _getTypesCache; 1258public ImmutableArray<INamedTypeSymbol> GetTypesByMetadataName(string fullyQualifiedMetadataName) 1261ref _getTypesCache, static () => new ConcurrentCache<string, ImmutableArray<INamedTypeSymbol>>(50, ReferenceEqualityComparer.Instance)); 1263if (!getTypesCache.TryGetValue(fullyQualifiedMetadataName, out ImmutableArray<INamedTypeSymbol> val)) 1268|| !getTypesCache.TryGetValue(fullyQualifiedMetadataName, out var addedArray) // Could fail if the type was already evicted from the cache 1274ImmutableArray<INamedTypeSymbol> getTypesByMetadataNameImpl() 1299return typesByMetadataName?.ToImmutableAndFree() ?? ImmutableArray<INamedTypeSymbol>.Empty; 1317ImmutableArray<ITypeSymbol> elementTypes, 1318ImmutableArray<string?> elementNames = default, 1319ImmutableArray<Location?> elementLocations = default, 1320ImmutableArray<NullableAnnotation> elementNullableAnnotations = default) 1358ImmutableArray<ITypeSymbol> elementTypes, 1359ImmutableArray<string?> elementNames, 1360ImmutableArray<Location?> elementLocations) 1367ImmutableArray<NullableAnnotation> elementNullableAnnotations) 1382protected static ImmutableArray<string?> CheckTupleElementNames(int cardinality, ImmutableArray<string?> elementNames) 1410ImmutableArray<Location?> elementLocations) 1422ImmutableArray<ITypeSymbol> elementTypes, 1423ImmutableArray<string?> elementNames, 1424ImmutableArray<Location?> elementLocations, 1425ImmutableArray<NullableAnnotation> elementNullableAnnotations); 1435ImmutableArray<string?> elementNames = default, 1436ImmutableArray<Location?> elementLocations = default, 1437ImmutableArray<NullableAnnotation> elementNullableAnnotations = default) 1455ImmutableArray<string?> elementNames, 1456ImmutableArray<Location?> elementLocations) 1463ImmutableArray<string?> elementNames, 1464ImmutableArray<Location?> elementLocations, 1465ImmutableArray<NullableAnnotation> elementNullableAnnotations); 1474ImmutableArray<ITypeSymbol> memberTypes, 1475ImmutableArray<string> memberNames, 1476ImmutableArray<bool> memberIsReadOnly = default, 1477ImmutableArray<Location> memberLocations = default, 1478ImmutableArray<NullableAnnotation> memberNullableAnnotations = default) 1543ImmutableArray<ITypeSymbol> memberTypes, 1544ImmutableArray<string> memberNames, 1545ImmutableArray<bool> memberIsReadOnly, 1546ImmutableArray<Location> memberLocations) 1552ImmutableArray<ITypeSymbol> memberTypes, 1553ImmutableArray<string> memberNames, 1554ImmutableArray<Location> memberLocations, 1555ImmutableArray<bool> memberIsReadOnly, 1556ImmutableArray<NullableAnnotation> memberNullableAnnotations); 1791public abstract ImmutableArray<Diagnostic> GetParseDiagnostics(CancellationToken cancellationToken = default(CancellationToken)); 1796public abstract ImmutableArray<Diagnostic> GetDeclarationDiagnostics(CancellationToken cancellationToken = default(CancellationToken)); 1801public abstract ImmutableArray<Diagnostic> GetMethodBodyDiagnostics(CancellationToken cancellationToken = default(CancellationToken)); 1808public abstract ImmutableArray<Diagnostic> GetDiagnostics(CancellationToken cancellationToken = default(CancellationToken)); 1833public abstract ImmutableArray<MetadataReference> GetUsedAssemblyReferences(CancellationToken cancellationToken = default(CancellationToken)); 3527IReadOnlyDictionary<ISymbolInternal, ImmutableArray<ISymbolInternal>> otherSynthesizedMembers, 3528IReadOnlyDictionary<ISymbolInternal, ImmutableArray<ISymbolInternal>> otherDeletedMembers); 3763internal TLocation? FirstSourceLocation<TLocation>(ImmutableArray<TLocation> locations) 3909public ImmutableArray<AssemblyIdentity> GetUnreferencedAssemblyIdentities(Diagnostic diagnostic) 3918return 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 (8)
53ImmutableArray<SyntaxTree> syntaxTrees, 54ImmutableArray<MetadataReference> references, 55ImmutableArray<byte> publicKey = default, 56ImmutableArray<AdditionalText> additionalTexts = default, 57ImmutableArray<DiagnosticAnalyzer> analyzers = default, 58ImmutableArray<ISourceGenerator> generators = default, 59ImmutableArray<KeyValuePair<string, string>> pathMap = default, 62ImmutableArray<ResourceDescription> resources = default,
Compilation\DeterministicKeyBuilder.cs (18)
47ImmutableArray<KeyValuePair<string, string>> pathMap, 123ImmutableArray<SyntaxTreeKey> syntaxTrees, 124ImmutableArray<MetadataReference> references, 125ImmutableArray<byte> publicKey, 126ImmutableArray<AdditionalText> additionalTexts, 127ImmutableArray<DiagnosticAnalyzer> analyzers, 128ImmutableArray<ISourceGenerator> generators, 129ImmutableArray<KeyValuePair<string, string>> pathMap, 132ImmutableArray<ResourceDescription> resources, 240ImmutableArray<SyntaxTreeKey> syntaxTrees, 241ImmutableArray<MetadataReference> references, 242ImmutableArray<byte> publicKey, 243ImmutableArray<KeyValuePair<string, string>> pathMap, 318ImmutableArray<KeyValuePair<string, string>> pathMap, 355var checksum = SourceText.CalculateChecksum(stream, checksumAlgorithm); 364ImmutableArray<KeyValuePair<string, string>> pathMap, 375var modules = assemblyMetadata.GetModules(); 461ImmutableArray<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) 174private ImmutableArray<byte> GetHash(ref ImmutableArray<byte> lazyHash, HashAlgorithm algorithm) 178ImmutableInterlocked.InterlockedCompareExchange(ref lazyHash, ComputeHash(algorithm), default(ImmutableArray<byte>)); 186internal static ImmutableArray<byte> ComputeSha1(Stream stream) 199return ImmutableArray<byte>.Empty; 202internal static ImmutableArray<byte> ComputeSha1(ImmutableArray<byte> bytes) 207internal static ImmutableArray<byte> ComputeSha1(byte[] bytes) 216internal static ImmutableArray<byte> ComputeHash(HashAlgorithmName algorithmName, IEnumerable<Blob> bytes) 225internal static ImmutableArray<byte> ComputeHash(HashAlgorithmName algorithmName, IEnumerable<ArraySegment<byte>> bytes) 234internal static ImmutableArray<byte> ComputeSourceHash(ImmutableArray<byte> bytes, SourceHashAlgorithm hashAlgorithm = SourceHashAlgorithms.Default) 246internal static ImmutableArray<byte> ComputeSourceHash(ImmutableArray<ConstantValue> constants, SourceHashAlgorithm hashAlgorithm = SourceHashAlgorithms.Default) 300internal 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)
364var programmaticSuppressions = this.ProgrammaticSuppressionInfo?.Suppressions ?? ImmutableArray<Suppression>.Empty; 404internal 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)
124public void AddRange<T>(ImmutableArray<T> diagnostics) where T : Diagnostic 171public ImmutableArray<TDiagnostic> ToReadOnlyAndFree<TDiagnostic>(bool forceResolution = true) where TDiagnostic : Diagnostic 179public ImmutableArray<Diagnostic> ToReadOnlyAndFree(bool forceResolution = true) 184public ImmutableArray<TDiagnostic> ToReadOnly<TDiagnostic>(bool forceResolution = true) where TDiagnostic : Diagnostic 190public ImmutableArray<Diagnostic> ToReadOnly(bool forceResolution = true) 195private static ImmutableArray<TDiagnostic> ToReadOnlyCore<TDiagnostic>(ConcurrentQueue<Diagnostic>? oldBag, bool forceResolution) where TDiagnostic : Diagnostic 199return 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)
37private static readonly ImmutableArray<string> s_compilerErrorCustomTags = ImmutableArray.Create(WellKnownDiagnosticTags.Compiler, WellKnownDiagnosticTags.Telemetry, WellKnownDiagnosticTags.NotConfigurable); 38private static readonly ImmutableArray<string> s_compilerNonErrorCustomTags = ImmutableArray.Create(WellKnownDiagnosticTags.Compiler, WellKnownDiagnosticTags.Telemetry); 92var customTags = GetCustomTags(defaultSeverity); 265internal ImmutableArray<string> CustomTags 273private 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)
23ImmutableArray<DiagnosticAnalyzer> analyzers, 24ImmutableDictionary<SyntaxTree, ImmutableDictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>>> localSyntaxDiagnostics, 25ImmutableDictionary<SyntaxTree, ImmutableDictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>>> localSemanticDiagnostics, 26ImmutableDictionary<AdditionalText, ImmutableDictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>>> localAdditionalFileDiagnostics, 27ImmutableDictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>> nonLocalDiagnostics, 41public ImmutableArray<DiagnosticAnalyzer> Analyzers { get; } 46public ImmutableDictionary<SyntaxTree, ImmutableDictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>>> SyntaxDiagnostics { get; } 51public ImmutableDictionary<SyntaxTree, ImmutableDictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>>> SemanticDiagnostics { get; } 56public ImmutableDictionary<AdditionalText, ImmutableDictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>>> AdditionalFileDiagnostics { get; } 61public ImmutableDictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>> CompilationDiagnostics { get; } 71public ImmutableArray<Diagnostic> GetAllDiagnostics(DiagnosticAnalyzer analyzer) 84public ImmutableArray<Diagnostic> GetAllDiagnostics() 89private ImmutableArray<Diagnostic> GetDiagnostics(IEnumerable<DiagnosticAnalyzer> analyzers) 96private ImmutableArray<Diagnostic> GetDiagnostics(ImmutableHashSet<DiagnosticAnalyzer> excludedAnalyzers) 109return ImmutableArray<Diagnostic>.Empty; 113ImmutableDictionary<T, ImmutableDictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>>> localDiagnostics, 115ImmutableArray<Diagnostic>.Builder builder) 133ImmutableDictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>> nonLocalDiagnostics, 135ImmutableArray<Diagnostic>.Builder builder)
DiagnosticAnalyzer\AnalysisResultBuilder.cs (56)
37private Dictionary<SyntaxTree, Dictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>.Builder>>? _localSemanticDiagnosticsOpt = null; 38private Dictionary<SyntaxTree, Dictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>.Builder>>? _localSyntaxDiagnosticsOpt = null; 39private Dictionary<AdditionalText, Dictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>.Builder>>? _localAdditionalFileDiagnosticsOpt = null; 40private Dictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>.Builder>? _nonLocalDiagnosticsOpt = null; 42internal AnalysisResultBuilder(bool logAnalyzerExecutionTime, ImmutableArray<DiagnosticAnalyzer> analyzers, ImmutableArray<AdditionalText> additionalFiles) 53private static Dictionary<DiagnosticAnalyzer, TimeSpan> CreateAnalyzerExecutionTimeMap(ImmutableArray<DiagnosticAnalyzer> analyzers) 64private static ImmutableDictionary<string, OneOrMany<AdditionalText>> CreatePathToAdditionalTextMap(ImmutableArray<AdditionalText> additionalFiles) 160public ImmutableArray<DiagnosticAnalyzer> GetPendingAnalyzers(ImmutableArray<DiagnosticAnalyzer> analyzers, (SourceOrAdditionalFile file, bool syntax)? filterScope) 193var syntaxDiagnostics = driver.DequeueLocalDiagnosticsAndApplySuppressions(analyzer, syntax: true, compilation: compilation, cancellationToken); 194var semanticDiagnostics = driver.DequeueLocalDiagnosticsAndApplySuppressions(analyzer, syntax: false, compilation: compilation, cancellationToken); 195var compilationDiagnostics = driver.DequeueNonLocalDiagnosticsAndApplySuppressions(analyzer, compilation, cancellationToken); 329ImmutableArray<Diagnostic> diagnostics, 332ref Dictionary<TKey, Dictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>.Builder>>? lazyLocalDiagnostics) 340lazyLocalDiagnostics = lazyLocalDiagnostics ?? new Dictionary<TKey, Dictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>.Builder>>(); 350Dictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>.Builder>? allDiagnostics; 353allDiagnostics = new Dictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>.Builder>(); 357ImmutableArray<Diagnostic>.Builder? analyzerDiagnostics; 368private void UpdateNonLocalDiagnostics_NoLock(DiagnosticAnalyzer analyzer, ImmutableArray<Diagnostic> diagnostics, bool overwrite) 375_nonLocalDiagnosticsOpt = _nonLocalDiagnosticsOpt ?? new Dictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>.Builder>(); 377ImmutableArray<Diagnostic>.Builder? currentDiagnostics; 387private static void UpdateDiagnosticsCore_NoLock(ImmutableArray<Diagnostic>.Builder currentDiagnostics, IEnumerable<Diagnostic> diagnostics, bool overwrite) 402internal ImmutableArray<Diagnostic> GetDiagnostics(AnalysisScope analysisScope, bool getLocalDiagnostics, bool getNonLocalDiagnostics) 410private ImmutableArray<Diagnostic> GetDiagnostics_NoLock(AnalysisScope analysisScope, bool getLocalDiagnostics, bool getNonLocalDiagnostics) 443Dictionary<TKey, Dictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>.Builder>>? lazyLocalDiagnostics, 445ImmutableArray<Diagnostic>.Builder builder) 458Dictionary<SyntaxTree, Dictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>.Builder>>? localDiagnostics, 460ImmutableArray<Diagnostic>.Builder builder) 464Dictionary<AdditionalText, Dictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>.Builder>>? localDiagnostics, 466ImmutableArray<Diagnostic>.Builder builder) 470Dictionary<TKey, Dictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>.Builder>>? localDiagnostics, 472ImmutableArray<DiagnosticAnalyzer> analyzers, 473ImmutableArray<Diagnostic>.Builder builder) 476Dictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>.Builder>? diagnosticsForTree; 484Dictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>.Builder> diagnostics, 485ImmutableArray<DiagnosticAnalyzer> analyzers, 486ImmutableArray<Diagnostic>.Builder builder) 492ImmutableArray<Diagnostic>.Builder? diagnosticsByAnalyzer; 500internal AnalysisResult ToAnalysisResult(ImmutableArray<DiagnosticAnalyzer> analyzers, AnalysisScope analysisScope, CancellationToken cancellationToken) 504ImmutableDictionary<SyntaxTree, ImmutableDictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>>> localSyntaxDiagnostics; 505ImmutableDictionary<SyntaxTree, ImmutableDictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>>> localSemanticDiagnostics; 506ImmutableDictionary<AdditionalText, ImmutableDictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>>> localAdditionalFileDiagnostics; 507ImmutableDictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>> nonLocalDiagnostics; 533private static ImmutableDictionary<TKey, ImmutableDictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>>> GetImmutable<TKey>( 536Dictionary<TKey, Dictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>.Builder>>? localDiagnosticsOpt) 541return ImmutableDictionary<TKey, ImmutableDictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>>>.Empty; 544var builder = ImmutableDictionary.CreateBuilder<TKey, ImmutableDictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>>>(); 545var perTreeBuilder = ImmutableDictionary.CreateBuilder<DiagnosticAnalyzer, ImmutableArray<Diagnostic>>(); 554var diagnostics = diagnosticsByAnalyzer.Value.Where(shouldInclude).ToImmutableArray(); 575private static ImmutableDictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>> GetImmutable( 578Dictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>.Builder>? nonLocalDiagnosticsOpt) 582return ImmutableDictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>>.Empty; 585var builder = ImmutableDictionary.CreateBuilder<DiagnosticAnalyzer, ImmutableArray<Diagnostic>>(); 590var diagnostics = diagnosticsByAnalyzer.Value.Where(shouldInclude).ToImmutableArray(); 602ImmutableArray<DiagnosticAnalyzer> analyzers)
DiagnosticAnalyzer\AnalysisScope.cs (20)
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) 98var additionalFiles = compilationWithAnalyzers.AnalysisOptions.Options.GetAdditionalFiles(); 104public static AnalysisScope CreateForBatchCompile(Compilation compilation, ImmutableArray<AdditionalText> additionalFiles, ImmutableArray<DiagnosticAnalyzer> analyzers) 109private static AnalysisScope Create(Compilation compilation, ImmutableArray<AdditionalText> additionalFiles, ImmutableArray<DiagnosticAnalyzer> analyzers, bool hasAllAnalyzers, bool concurrentAnalysis) 117public static AnalysisScope Create(ImmutableArray<DiagnosticAnalyzer> analyzers, SourceOrAdditionalFile filterFile, TextSpan? filterSpan, bool isSyntacticSingleFileAnalysis, CompilationWithAnalyzers compilationWithAnalyzers) 120public static AnalysisScope Create(ImmutableArray<DiagnosticAnalyzer> analyzers, SourceOrAdditionalFile filterFile, TextSpan? filterSpan, SourceOrAdditionalFile originalFilterFile, TextSpan? originalFilterSpan, bool isSyntacticSingleFileAnalysis, CompilationWithAnalyzers compilationWithAnalyzers) 122var trees = filterFile.SourceTree != null ? ImmutableArray.Create(filterFile.SourceTree) : ImmutableArray<SyntaxTree>.Empty; 123var additionalFiles = filterFile.AdditionalFile != null ? ImmutableArray.Create(filterFile.AdditionalFile) : ImmutableArray<AdditionalText>.Empty; 130ImmutableArray<SyntaxTree> trees, 131ImmutableArray<AdditionalText> additionalFiles, 132ImmutableArray<DiagnosticAnalyzer> analyzers, 191public AnalysisScope WithAnalyzers(ImmutableArray<DiagnosticAnalyzer> analyzers, CompilationWithAnalyzers compilationWithAnalyzers) 197private static bool ComputeHasAllAnalyzers(ImmutableArray<DiagnosticAnalyzer> analyzers, CompilationWithAnalyzers compilationWithAnalyzers)
DiagnosticAnalyzer\AnalyzerAssemblyLoader.Core.cs (4)
33public ImmutableArray<IAnalyzerAssemblyResolver> AnalyzerAssemblyResolvers { get; } 40internal AnalyzerAssemblyLoader(ImmutableArray<IAnalyzerPathResolver> pathResolvers) 54ImmutableArray<IAnalyzerPathResolver> pathResolvers, 55ImmutableArray<IAnalyzerAssemblyResolver> assemblyResolvers,
DiagnosticAnalyzer\AnalyzerAssemblyLoader.cs (4)
104public ImmutableArray<IAnalyzerPathResolver> AnalyzerPathResolvers { get; } 389internal ImmutableArray<(string OriginalAssemblyPath, string ResolvedAssemblyPath)> GetPathMapSnapshot() 408ImmutableArray<IAnalyzerPathResolver> pathResolvers = default, 409ImmutableArray<IAnalyzerAssemblyResolver> assemblyResolvers = default,
DiagnosticAnalyzer\AnalyzerDriver.cs (91)
67protected ImmutableArray<DiagnosticAnalyzer> Analyzers { get; } 128private ImmutableArray<(DiagnosticAnalyzer, ImmutableArray<ImmutableArray<SymbolAnalyzerAction>>)> _lazySymbolActionsByKind; 129private ImmutableArray<(DiagnosticAnalyzer, ImmutableArray<SemanticModelAnalyzerAction>)> _lazySemanticModelActions; 130private ImmutableArray<(DiagnosticAnalyzer, ImmutableArray<SyntaxTreeAnalyzerAction>)> _lazySyntaxTreeActions; 131private ImmutableArray<(DiagnosticAnalyzer, ImmutableArray<AdditionalFileAnalyzerAction>)> _lazyAdditionalFileActions; 134private ImmutableArray<(DiagnosticAnalyzer, ImmutableArray<CompilationAnalyzerAction>)> _lazyCompilationActions; 135private ImmutableArray<(DiagnosticAnalyzer, ImmutableArray<CompilationAnalyzerAction>)> _lazyCompilationEndActions; 374protected AnalyzerDriver(ImmutableArray<DiagnosticAnalyzer> analyzers, AnalyzerManager analyzerManager, SeverityFilter severityFilter, Func<SyntaxTrivia, bool> isComment) 546var descriptors = AnalyzerManager.GetSupportedDiagnosticDescriptors(analyzer, AnalyzerExecutor, cancellationToken); 726private static void OnDriverException(Task faultedTask, AnalyzerExecutor analyzerExecutor, ImmutableArray<DiagnosticAnalyzer> analyzers, CancellationToken cancellationToken) 824ImmutableArray<DiagnosticAnalyzer> analyzers, 844ImmutableArray<DiagnosticAnalyzer> analyzers, 874public async Task<ImmutableArray<Diagnostic>> GetDiagnosticsAsync(Compilation compilation, CancellationToken cancellationToken) 905public ImmutableArray<(DiagnosticDescriptor Descriptor, DiagnosticDescriptorErrorLoggerInfo Info)> GetAllDiagnosticDescriptorsWithInfo(CancellationToken cancellationToken, out double totalAnalyzerExecutionTime) 914var descriptors = AnalyzerManager.GetSupportedDiagnosticDescriptors(analyzer, AnalyzerExecutor, cancellationToken); 1030var newDiagnostics = ApplyProgrammaticSuppressionsCore(reportedDiagnostics.ToReadOnly(), compilation, cancellationToken); 1035public ImmutableArray<Diagnostic> ApplyProgrammaticSuppressions(ImmutableArray<Diagnostic> reportedDiagnostics, Compilation compilation, CancellationToken cancellationToken) 1046private ImmutableArray<Diagnostic> ApplyProgrammaticSuppressionsCore(ImmutableArray<Diagnostic> reportedDiagnostics, Compilation compilation, CancellationToken cancellationToken) 1114var suppressableDiagnostics = getSuppressableDiagnostics(suppressor); 1141ImmutableArray<Diagnostic> getSuppressableDiagnostics(DiagnosticSuppressor suppressor) 1143var supportedSuppressions = AnalyzerManager.GetSupportedSuppressionDescriptors(suppressor, AnalyzerExecutor, cancellationToken); 1146return ImmutableArray<Diagnostic>.Empty; 1189public ImmutableArray<Diagnostic> DequeueLocalDiagnosticsAndApplySuppressions(DiagnosticAnalyzer analyzer, bool syntax, Compilation compilation, CancellationToken cancellationToken) 1191var diagnostics = syntax ? DiagnosticQueue.DequeueLocalSyntaxDiagnostics(analyzer) : DiagnosticQueue.DequeueLocalSemanticDiagnostics(analyzer); 1195public ImmutableArray<Diagnostic> DequeueNonLocalDiagnosticsAndApplySuppressions(DiagnosticAnalyzer analyzer, Compilation compilation, CancellationToken cancellationToken) 1197var diagnostics = DiagnosticQueue.DequeueNonLocalDiagnostics(analyzer); 1201private ImmutableArray<Diagnostic> FilterDiagnosticsSuppressedInSourceOrByAnalyzers(ImmutableArray<Diagnostic> diagnostics, Compilation compilation, CancellationToken cancellationToken) 1207private static ImmutableArray<Diagnostic> FilterDiagnosticsSuppressedInSource( 1208ImmutableArray<Diagnostic> diagnostics, 1239internal ImmutableArray<Diagnostic> ApplyProgrammaticSuppressionsAndFilterDiagnostics(ImmutableArray<Diagnostic> reportedDiagnostics, Compilation compilation, CancellationToken cancellationToken) 1246var diagnostics = ApplyProgrammaticSuppressions(reportedDiagnostics, compilation, cancellationToken); 1281var declaredSymbols = model.GetDeclaredSymbolsForNode(node, cancellationToken); 1399var descriptors = AnalyzerManager.GetSupportedDiagnosticDescriptors(analyzer, AnalyzerExecutor, cancellationToken); 1468private static ImmutableArray<(DiagnosticAnalyzer, ImmutableArray<ImmutableArray<SymbolAnalyzerAction>>)> MakeSymbolActionsByKind(in AnalyzerActions analyzerActions) 1470var builder = ArrayBuilder<(DiagnosticAnalyzer, ImmutableArray<ImmutableArray<SymbolAnalyzerAction>>)>.GetInstance(); 1478var kinds = symbolAction.Kinds; 1491var actionsByKind = actionsByKindBuilder.Select(a => a.ToImmutableAndFree()).ToImmutableArray(); 1499private static ImmutableArray<(DiagnosticAnalyzer, ImmutableArray<TAnalyzerAction>)> MakeActionsByAnalyzer<TAnalyzerAction>(in ImmutableArray<TAnalyzerAction> analyzerActions) 1502var builder = ArrayBuilder<(DiagnosticAnalyzer, ImmutableArray<TAnalyzerAction>)>.GetInstance(); 1512private static ImmutableHashSet<DiagnosticAnalyzer> MakeCompilationEndAnalyzers(ImmutableArray<(DiagnosticAnalyzer, ImmutableArray<CompilationAnalyzerAction>)> compilationEndActionsByAnalyzer) 1653ImmutableArray<DiagnosticAnalyzer> processedAnalyzers; 1671private async Task OnEventProcessedCoreAsync(CompilationEvent compilationEvent, ImmutableArray<DiagnosticAnalyzer> processedAnalyzers, AnalysisScope analysisScope, CancellationToken cancellationToken) 1792!TryExecuteSymbolEndActions(perSymbolActions.AnalyzerActions, symbolEvent, analysisScope, isGeneratedCodeSymbol, cancellationToken, out var subsetProcessedAnalyzers)) 1830out ImmutableArray<DiagnosticAnalyzer> subsetProcessedAnalyzers) 1835var symbolEndActions = perSymbolActions.SymbolEndActions; 1838subsetProcessedAnalyzers = ImmutableArray<DiagnosticAnalyzer>.Empty; 1857var symbolEndActionsForAnalyzer = groupedActions.ToImmutableArrayOrEmpty(); 1889subsetProcessedAnalyzers = ImmutableArray<DiagnosticAnalyzer>.Empty; 1959ImmutableArray<(DiagnosticAnalyzer, ImmutableArray<CompilationAnalyzerAction>)> compilationActionsMap, 2044ImmutableArray<DiagnosticAnalyzer> analyzers, 2443internal AnalyzerDriver(ImmutableArray<DiagnosticAnalyzer> analyzers, Func<SyntaxNode, TLanguageKindEnum> getKind, AnalyzerManager analyzerManager, SeverityFilter severityFilter, Func<SyntaxTrivia, bool> isComment) 2466var analyzers = Analyzers.WhereAsArray(UnsuppressedAnalyzers.Contains); 2539var declaringReferences = symbolEvent.DeclaringSyntaxReferences; 2573ImmutableArray<DeclarationInfo> declarationInfos; 2670if (groupedActions.AnalyzersByKind.TryGetValue(_getKind(node), out var analyzersForKind)) 2741var executableCodeBlocks = ImmutableArray<SyntaxNode>.Empty; 2761var operationBlocksToAnalyze = GetOperationBlocksToAnalyze(executableCodeBlocks, semanticModel, cancellationToken); 2762var operationsToAnalyze = getOperationsToAnalyzeWithStackGuard(operationBlocksToAnalyze); 2791ImmutableArray<IOperation> getOperationsToAnalyzeWithStackGuard(ImmutableArray<IOperation> operationBlocksToAnalyze) 2803return ImmutableArray<IOperation>.Empty; 2807void executeOperationsActions(ImmutableArray<IOperation> operationsToAnalyze) 2816void executeOperationsActionsByKind(ImmutableArray<IOperation> operationsToAnalyze, GroupedAnalyzerActions groupedActions, bool arePerSymbolActions) 2831var filteredOperationsToAnalyze = declarationAnalysisData.IsPartialAnalysis && !groupedActionsForAnalyzer.HasOperationBlockStartActions 2842void executeOperationsBlockActions(ImmutableArray<IOperation> operationBlocksToAnalyze, ImmutableArray<IOperation> operationsToAnalyze, ArrayBuilder<ExecutableCodeBlockAnalyzerActions> codeBlockActions) 2870void executeCodeBlockActions(ImmutableArray<SyntaxNode> executableCodeBlocks, ArrayBuilder<ExecutableCodeBlockAnalyzerActions> codeBlockActions) 2917ImmutableArray<DeclarationInfo> declarationsInNode, 2990private static ImmutableArray<IOperation> GetOperationBlocksToAnalyze( 2991ImmutableArray<SyntaxNode> executableBlocks, 3008private static ImmutableArray<IOperation> GetOperationsToAnalyze( 3009ImmutableArray<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 (13)
23ImmutableArray<(DiagnosticAnalyzer, GroupedAnalyzerActionsForAnalyzer)>.Empty, 24ImmutableSegmentedDictionary<TLanguageKindEnum, ImmutableArray<DiagnosticAnalyzer>>.Empty, 28ImmutableArray<(DiagnosticAnalyzer, GroupedAnalyzerActionsForAnalyzer)> groupedActionsAndAnalyzers, 29ImmutableSegmentedDictionary<TLanguageKindEnum, ImmutableArray<DiagnosticAnalyzer>> analyzersByKind, 37public ImmutableArray<(DiagnosticAnalyzer analyzer, GroupedAnalyzerActionsForAnalyzer groupedActions)> GroupedActionsByAnalyzer { get; } 39public ImmutableSegmentedDictionary<TLanguageKindEnum, ImmutableArray<DiagnosticAnalyzer>> AnalyzersByKind { get; } 61var groupedActionsAndAnalyzers = ImmutableArray<(DiagnosticAnalyzer, GroupedAnalyzerActionsForAnalyzer)>.Empty.Add((analyzer, groupedActions)); 66public static GroupedAnalyzerActions Create(ImmutableArray<DiagnosticAnalyzer> analyzers, in AnalyzerActions analyzerActions) 70var groups = analyzers.SelectAsArray( 88var newGroupedActions = GroupedActionsByAnalyzer.AddRange(groupedAnalyzerActions.GroupedActionsByAnalyzer); 94private static ImmutableSegmentedDictionary<TLanguageKindEnum, ImmutableArray<DiagnosticAnalyzer>> CreateAnalyzersByKind(ImmutableArray<(DiagnosticAnalyzer, GroupedAnalyzerActionsForAnalyzer)> groupedActionsAndAnalyzers)
DiagnosticAnalyzer\AnalyzerDriver.GroupedAnalyzerActionsForAnalyzer.cs (21)
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; 50ImmutableArray<TAnalyzerAction> actions, 58in ImmutableArray<TAnalyzerAction> actions, 78public ImmutableSegmentedDictionary<TLanguageKindEnum, ImmutableArray<SyntaxNodeAnalyzerAction<TLanguageKindEnum>>> NodeActionsByAnalyzerAndKind 99public ImmutableSegmentedDictionary<OperationKind, ImmutableArray<OperationAnalyzerAction>> OperationActionsByAnalyzerAndKind 116private ImmutableArray<CodeBlockStartAnalyzerAction<TLanguageKindEnum>> CodeBlockStartActions 132private ImmutableArray<CodeBlockAnalyzerAction> CodeBlockEndActions 135private ImmutableArray<CodeBlockAnalyzerAction> CodeBlockActions 138private ImmutableArray<OperationBlockStartAnalyzerAction> OperationBlockStartActions 141private ImmutableArray<OperationBlockAnalyzerAction> OperationBlockEndActions 144private ImmutableArray<OperationBlockAnalyzerAction> OperationBlockActions 150private static ImmutableArray<ActionType> GetExecutableCodeActions<ActionType>( 151ref ImmutableArray<ActionType> lazyCodeBlockActions, 152ImmutableArray<ActionType> codeBlockActions,
DiagnosticAnalyzer\AnalyzerExecutor.cs (40)
120ImmutableArray<DiagnosticAnalyzer> diagnosticAnalyzers, 154ImmutableArray<DiagnosticAnalyzer> diagnosticAnalyzers, 246/// Use <see cref="ExecuteCompilationStartActions(ImmutableArray{CompilationStartAnalyzerAction}, HostCompilationStartAnalysisScope, CancellationToken)"/> API 267public void ExecuteCompilationStartActions(ImmutableArray<CompilationStartAnalyzerAction> actions, HostCompilationStartAnalysisScope compilationScope, CancellationToken cancellationToken) 318ImmutableArray<SymbolStartAnalyzerAction> actions, 360public void ExecuteSuppressionAction(DiagnosticSuppressor suppressor, ImmutableArray<Diagnostic> reportedDiagnostics, CancellationToken cancellationToken) 371var supportedSuppressions = _analyzerManager.GetSupportedSuppressionDescriptors(suppressor, this, cancellationToken); 398ImmutableArray<CompilationAnalyzerAction> compilationActions, 441ImmutableArray<SymbolAnalyzerAction> symbolActions, 526ImmutableArray<SymbolEndAnalyzerAction> endActions = containerEndActionsAndEvent.symbolEndActions; 547ImmutableArray<SymbolEndAnalyzerAction> symbolEndActions, 564ImmutableArray<SymbolEndAnalyzerAction> symbolEndActions, 625ImmutableArray<SemanticModelAnalyzerAction> semanticModelActions, 680ImmutableArray<SyntaxTreeAnalyzerAction> syntaxTreeActions, 737ImmutableArray<AdditionalFileAnalyzerAction> additionalFileActions, 847ImmutableArray<CodeBlockStartAnalyzerAction<TLanguageKindEnum>> startActions, 848ImmutableArray<CodeBlockAnalyzerAction> actions, 849ImmutableArray<CodeBlockAnalyzerAction> endActions, 853ImmutableArray<SyntaxNode> executableCodeBlocks, 962ImmutableArray<OperationBlockStartAnalyzerAction> startActions, 963ImmutableArray<OperationBlockAnalyzerAction> actions, 964ImmutableArray<OperationBlockAnalyzerAction> endActions, 968ImmutableArray<IOperation> operationBlocks, 969ImmutableArray<IOperation> operations, 1042ImmutableArray<TBlockStartAction> startActions, 1043ImmutableArray<TBlockAction> actions, 1044ImmutableArray<TBlockAction> endActions, 1107internal static ImmutableSegmentedDictionary<TLanguageKindEnum, ImmutableArray<SyntaxNodeAnalyzerAction<TLanguageKindEnum>>> GetNodeActionsByKind<TLanguageKindEnum>( 1112return ImmutableSegmentedDictionary<TLanguageKindEnum, ImmutableArray<SyntaxNodeAnalyzerAction<TLanguageKindEnum>>>.Empty; 1131ImmutableSegmentedDictionary<TLanguageKindEnum, ImmutableArray<SyntaxNodeAnalyzerAction<TLanguageKindEnum>>> nodeActionsByKind, 1172ImmutableSegmentedDictionary<TLanguageKindEnum, ImmutableArray<SyntaxNodeAnalyzerAction<TLanguageKindEnum>>> nodeActionsByKind, 1190if (nodeActionsByKind.TryGetValue(getKind(node), out var actionsForKind)) 1211internal static ImmutableSegmentedDictionary<OperationKind, ImmutableArray<OperationAnalyzerAction>> GetOperationActionsByKind( 1215return ImmutableSegmentedDictionary<OperationKind, ImmutableArray<OperationAnalyzerAction>>.Empty; 1237ImmutableArray<IOperation> operationsToAnalyze, 1238ImmutableSegmentedDictionary<OperationKind, ImmutableArray<OperationAnalyzerAction>> operationActionsByKind, 1276ImmutableArray<IOperation> operationsToAnalyze, 1277ImmutableSegmentedDictionary<OperationKind, ImmutableArray<OperationAnalyzerAction>> operationActionsByKind, 1294if (operationActionsByKind.TryGetValue(operation.Kind, out var actionsForKind)) 1725public void OnOperationBlockActionsExecuted(ImmutableArray<IOperation> operationBlocks)
DiagnosticAnalyzer\AnalyzerFileReference.cs (34)
34private delegate ImmutableArray<string> AttributeLanguagesFunc(PEModule module, CustomAttributeHandle attribute); 112public override ImmutableArray<DiagnosticAnalyzer> GetAnalyzersForAllLanguages() 119public override ImmutableArray<DiagnosticAnalyzer> GetAnalyzers(string language) 124public override ImmutableArray<ISourceGenerator> GetGeneratorsForAllLanguages() 130public override ImmutableArray<ISourceGenerator> GetGenerators() 135public override ImmutableArray<ISourceGenerator> GetGenerators(string language) 188/// Adds the <see cref="ImmutableArray{T}"/> of <see cref="DiagnosticAnalyzer"/> defined in this assembly reference of given <paramref name="language"/>. 190internal void AddAnalyzers(ImmutableArray<DiagnosticAnalyzer>.Builder builder, string language, Func<DiagnosticAnalyzer, bool>? shouldInclude = null) 196/// Adds the <see cref="ImmutableArray{T}"/> of <see cref="ISourceGenerator"/> defined in this assembly reference of given <paramref name="language"/>. 198internal void AddGenerators(ImmutableArray<ISourceGenerator>.Builder builder, string language) 237var supportedLanguages = GetSupportedLanguages(typeDef, module.Module, attributeType, languagesFunc); 260private static ImmutableArray<string> GetSupportedLanguages(TypeDefinition typeDef, PEModule peModule, Type attributeType, AttributeLanguagesFunc languagesFunc) 262ImmutableArray<string> result = []; 286private static ImmutableArray<string> GetDiagnosticsAnalyzerSupportedLanguages(PEModule peModule, CustomAttributeHandle customAttrHandle) 295private static ImmutableArray<string> GetGeneratorSupportedLanguages(PEModule peModule, CustomAttributeHandle customAttrHandle) 314private static ImmutableArray<string> ReadLanguagesFromAttribute(ref BlobReader argsReader) 327ImmutableArray<string> additionalLanguageNames; 377private ImmutableArray<TExtension> _lazyAllExtensions; 378private ImmutableDictionary<string, ImmutableArray<TExtension>> _lazyExtensionsPerLanguage; 389_lazyExtensionsPerLanguage = ImmutableDictionary<string, ImmutableArray<TExtension>>.Empty; 392internal ImmutableArray<TExtension> GetExtensionsForAllLanguages(bool includeDuplicates) 402private static ImmutableArray<TExtension> CreateExtensionsForAllLanguages(Extensions<TExtension> extensions, bool includeDuplicates) 405var map = ImmutableSortedDictionary.CreateBuilder<string, ImmutableArray<TExtension>>(StringComparer.OrdinalIgnoreCase); 409foreach (var analyzers in map.Values) 436internal ImmutableArray<TExtension> GetExtensions(string language) 446private static ImmutableArray<TExtension> CreateLanguageSpecificExtensions(string language, Extensions<TExtension> extensions) 465internal void AddExtensions(ImmutableSortedDictionary<string, ImmutableArray<TExtension>>.Builder builder) 501var analyzers = GetLanguageSpecificAnalyzers(analyzerAssembly, analyzerTypeNameMap, language, ref reportedError); 513internal void AddExtensions(ImmutableArray<TExtension>.Builder builder, string language, Func<TExtension, bool>? shouldInclude = null) 544var analyzers = GetLanguageSpecificAnalyzers(analyzerAssembly, analyzerTypeNameMap, language, ref reportedError); 579private ImmutableArray<TExtension> GetLanguageSpecificAnalyzers(Assembly analyzerAssembly, ImmutableSortedDictionary<string, ImmutableHashSet<string>> analyzerTypeNameMap, string language, ref bool reportedError) 584return ImmutableArray<TExtension>.Empty; 589private ImmutableArray<TExtension> GetAnalyzersForTypeNames(Assembly analyzerAssembly, ImmutableHashSet<string> analyzerTypeNames, ref bool reportedError) 646var 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)
33public AnalyzerManager(ImmutableArray<DiagnosticAnalyzer> analyzers) 98ImmutableArray<SymbolStartAnalyzerAction> symbolStartActions, 111ImmutableArray<SymbolStartAnalyzerAction> symbolStartActions, 198var filteredSymbolStartActions = getFilteredActionsByKind(analyzerActions.SymbolStartActions); 208ImmutableArray<SymbolStartAnalyzerAction> getFilteredActionsByKind(ImmutableArray<SymbolStartAnalyzerAction> symbolStartActions) 253public ImmutableArray<DiagnosticDescriptor> GetSupportedDiagnosticDescriptors( 265public ImmutableArray<SuppressionDescriptor> GetSupportedSuppressionDescriptors( 284var supportedDescriptors = GetSupportedDiagnosticDescriptors(analyzer, analyzerExecutor, cancellationToken); 308Func<DiagnosticAnalyzer, ImmutableArray<DiagnosticDescriptor>> getSupportedDiagnosticDescriptors = 310Func<DiagnosticSuppressor, ImmutableArray<SuppressionDescriptor>> getSupportedSuppressionDescriptors = 347Func<DiagnosticAnalyzer, ImmutableArray<DiagnosticDescriptor>> getSupportedDiagnosticDescriptors, 348Func<DiagnosticSuppressor, ImmutableArray<SuppressionDescriptor>> getSupportedSuppressionDescriptors, 357var supportedDiagnostics = getSupportedDiagnosticDescriptors(analyzer); 433internal static bool HasCompilerOrNotConfigurableTagOrCustomConfigurableTag(ImmutableArray<string> customTags) 446internal static bool HasNotConfigurableTag(ImmutableArray<string> customTags) 449internal static bool HasCustomSeverityConfigurableTag(ImmutableArray<string> customTags) 452private static bool HasCustomTag(ImmutableArray<string> customTags, string tagToFind) 469out (ImmutableArray<SymbolEndAnalyzerAction> symbolEndActions, SymbolDeclaredCompilationEvent symbolDeclaredEvent) containerEndActionsAndEvent) 474public bool TryStartExecuteSymbolEndActions(ImmutableArray<SymbolEndAnalyzerAction> symbolEndActions, DiagnosticAnalyzer analyzer, SymbolDeclaredCompilationEvent symbolDeclaredEvent) 482ImmutableArray<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\AnalyzerOptionsExtensions.cs (1)
23public static ImmutableArray<AdditionalText> GetAdditionalFiles(this AnalyzerOptions? analyzerOptions)
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 (81)
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) 113private static void VerifyArguments(Compilation compilation, ImmutableArray<DiagnosticAnalyzer> analyzers, CompilationWithAnalyzersOptions analysisOptions) 128private static void VerifyAnalyzersArgumentForStaticApis(ImmutableArray<DiagnosticAnalyzer> analyzers) 165private void VerifyExistingAnalyzersArgument(ImmutableArray<DiagnosticAnalyzer> analyzers) 222private ImmutableArray<AdditionalText> AdditionalFiles => _analysisOptions.Options.GetAdditionalFiles(); 228public Task<ImmutableArray<Diagnostic>> GetAnalyzerDiagnosticsAsync() 237public async Task<ImmutableArray<Diagnostic>> GetAnalyzerDiagnosticsAsync(CancellationToken cancellationToken = default) 248public async Task<ImmutableArray<Diagnostic>> GetAnalyzerDiagnosticsAsync(ImmutableArray<DiagnosticAnalyzer> analyzers, CancellationToken cancellationToken) 268public async Task<AnalysisResult> GetAnalysisResultAsync(ImmutableArray<DiagnosticAnalyzer> analyzers, CancellationToken cancellationToken) 279public Task<ImmutableArray<Diagnostic>> GetAllDiagnosticsAsync() 287public async Task<ImmutableArray<Diagnostic>> GetAllDiagnosticsAsync(CancellationToken cancellationToken = default) 289var diagnostics = await getAllDiagnosticsWithoutStateTrackingAsync(Analyzers, cancellationToken: cancellationToken).ConfigureAwait(false); 297async Task<ImmutableArray<Diagnostic>> getAllDiagnosticsWithoutStateTrackingAsync(ImmutableArray<DiagnosticAnalyzer> analyzers, CancellationToken cancellationToken) 308var compDiags = compilation.GetDiagnostics(cancellationToken); 309var analyzerDiags = await driver.GetDiagnosticsAsync(compilation, cancellationToken).ConfigureAwait(false); 310var reportedDiagnostics = compDiags.AddRange(analyzerDiags); 319public async Task<ImmutableArray<Diagnostic>> GetAnalyzerCompilationDiagnosticsAsync(CancellationToken cancellationToken) 330public async Task<ImmutableArray<Diagnostic>> GetAnalyzerCompilationDiagnosticsAsync(ImmutableArray<DiagnosticAnalyzer> analyzers, CancellationToken cancellationToken) 337private async Task<ImmutableArray<Diagnostic>> GetAnalyzerCompilationDiagnosticsCoreAsync(ImmutableArray<DiagnosticAnalyzer> analyzers, CancellationToken cancellationToken) 344private async Task<AnalysisResult> GetAnalysisResultCoreAsync(ImmutableArray<DiagnosticAnalyzer> analyzers, CancellationToken cancellationToken) 351private async Task<ImmutableArray<Diagnostic>> GetAnalyzerDiagnosticsCoreAsync(ImmutableArray<DiagnosticAnalyzer> analyzers, CancellationToken cancellationToken) 362ImmutableArray<DiagnosticSuppressor> suppressors, 366var analyzers = analysisScope.Analyzers; 390public async Task<ImmutableArray<Diagnostic>> GetAnalyzerSyntaxDiagnosticsAsync(SyntaxTree tree, CancellationToken cancellationToken) 406public async Task<ImmutableArray<Diagnostic>> GetAnalyzerSyntaxDiagnosticsAsync(SyntaxTree tree, TextSpan? filterSpan, CancellationToken cancellationToken) 422public async Task<ImmutableArray<Diagnostic>> GetAnalyzerSyntaxDiagnosticsAsync(SyntaxTree tree, ImmutableArray<DiagnosticAnalyzer> analyzers, CancellationToken cancellationToken) 440public async Task<ImmutableArray<Diagnostic>> GetAnalyzerSyntaxDiagnosticsAsync(SyntaxTree tree, TextSpan? filterSpan, ImmutableArray<DiagnosticAnalyzer> analyzers, CancellationToken cancellationToken) 483public Task<AnalysisResult> GetAnalysisResultAsync(SyntaxTree tree, ImmutableArray<DiagnosticAnalyzer> analyzers, CancellationToken cancellationToken) 500public Task<AnalysisResult> GetAnalysisResultAsync(SyntaxTree tree, TextSpan? filterSpan, ImmutableArray<DiagnosticAnalyzer> analyzers, CancellationToken cancellationToken) 530public async Task<AnalysisResult> GetAnalysisResultAsync(AdditionalText file, ImmutableArray<DiagnosticAnalyzer> analyzers, CancellationToken cancellationToken) 564public async Task<AnalysisResult> GetAnalysisResultAsync(AdditionalText file, TextSpan? filterSpan, ImmutableArray<DiagnosticAnalyzer> analyzers, CancellationToken cancellationToken) 572private async Task<AnalysisResult> GetAnalysisResultCoreAsync(SourceOrAdditionalFile file, ImmutableArray<DiagnosticAnalyzer> analyzers, TextSpan? filterSpan, CancellationToken cancellationToken) 579private async Task<ImmutableArray<Diagnostic>> GetAnalyzerSyntaxDiagnosticsCoreAsync(SyntaxTree tree, ImmutableArray<DiagnosticAnalyzer> analyzers, TextSpan? filterSpan, CancellationToken cancellationToken) 593public async Task<ImmutableArray<Diagnostic>> GetAnalyzerSemanticDiagnosticsAsync(SemanticModel model, TextSpan? filterSpan, CancellationToken cancellationToken) 608public async Task<ImmutableArray<Diagnostic>> GetAnalyzerSemanticDiagnosticsAsync(SemanticModel model, TextSpan? filterSpan, ImmutableArray<DiagnosticAnalyzer> analyzers, CancellationToken cancellationToken) 638public Task<AnalysisResult> GetAnalysisResultAsync(SemanticModel model, TextSpan? filterSpan, ImmutableArray<DiagnosticAnalyzer> analyzers, CancellationToken cancellationToken) 646private async Task<AnalysisResult> GetAnalysisResultCoreAsync(SemanticModel model, TextSpan? filterSpan, ImmutableArray<DiagnosticAnalyzer> analyzers, CancellationToken cancellationToken) 653private async Task<ImmutableArray<Diagnostic>> GetAnalyzerSemanticDiagnosticsCoreAsync(SemanticModel model, TextSpan? filterSpan, ImmutableArray<DiagnosticAnalyzer> analyzers, CancellationToken cancellationToken) 762var compilationEvents = GetCompilationEventsForSingleFileAnalysis(compilation, analysisScope, AdditionalFiles, hasAnyActionsRequiringCompilationEvents, cancellationToken); 764var builder = ArrayBuilder<(AnalysisScope, ImmutableArray<CompilationEvent>)>.GetInstance(); 817ArrayBuilder<(AnalysisScope, ImmutableArray<CompilationEvent>)> builder, 855static (ImmutableArray<DiagnosticAnalyzer> symbolStartAnalyzers, ImmutableArray<DiagnosticAnalyzer> otherAnalyzers) getSymbolStartAnalyzers( 856ImmutableArray<DiagnosticAnalyzer> analyzers, 880ImmutableArray<CompilationEvent> compilationEventsForTree, 881ImmutableArray<DiagnosticAnalyzer> symbolStartAnalyzers, 884ArrayBuilder<(AnalysisScope, ImmutableArray<CompilationEvent>)> builder, 885ImmutableArray<AdditionalText> additionalFiles, 937bool tryProcessTree(SyntaxTree partialTree, [NotNullWhen(true)] out (AnalysisScope scope, ImmutableArray<CompilationEvent> events)? scopeAndEvents) 949var compilationEvents = GetCompilationEventsForSingleFileAnalysis(compilation, analysisScope, additionalFiles, hasAnyActionsRequiringCompilationEvents: true, cancellationToken); 977var pendingAnalyzers = _analysisResultBuilder.GetPendingAnalyzers(analysisScope.Analyzers, filterScope); 989private static ImmutableArray<CompilationEvent> GetCompilationEventsForSingleFileAnalysis( 992ImmutableArray<AdditionalText> additionalFiles, 1000return ImmutableArray<CompilationEvent>.Empty; 1041static ImmutableArray<CompilationEvent> dequeueAndFilterCompilationEvents( 1044ImmutableArray<AdditionalText> additionalFiles, 1053return ImmutableArray<CompilationEvent>.Empty; 1136private static AsyncQueue<CompilationEvent> CreateEventsQueue(ImmutableArray<CompilationEvent> compilationEvents) 1169public static IEnumerable<Diagnostic> GetEffectiveDiagnostics(ImmutableArray<Diagnostic> diagnostics, Compilation compilation) 1184private static IEnumerable<Diagnostic> GetEffectiveDiagnosticsImpl(ImmutableArray<Diagnostic> diagnostics, Compilation compilation) 1237Func<DiagnosticAnalyzer, ImmutableArray<DiagnosticDescriptor>> getSupportedDiagnosticDescriptors = analyzer => 1245return ImmutableArray<DiagnosticDescriptor>.Empty; 1249Func<DiagnosticSuppressor, ImmutableArray<SuppressionDescriptor>> getSupportedSuppressionDescriptors = suppressor => 1257return ImmutableArray<SuppressionDescriptor>.Empty; 1271public 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\DiagnosticAnalysisContext.cs (20)
89public abstract void RegisterSymbolAction(Action<SymbolAnalysisContext> action, params ImmutableArray<SymbolKind> symbolKinds); 156public abstract void RegisterSyntaxNodeAction<TLanguageKindEnum>(Action<SyntaxNodeAnalysisContext> action, params ImmutableArray<TLanguageKindEnum> syntaxKinds) where TLanguageKindEnum : struct; 199public virtual void RegisterOperationAction(Action<OperationAnalysisContext> action, params ImmutableArray<OperationKind> operationKinds) 387public abstract void RegisterSymbolAction(Action<SymbolAnalysisContext> action, params ImmutableArray<SymbolKind> symbolKinds); 475public abstract void RegisterSyntaxNodeAction<TLanguageKindEnum>(Action<SyntaxNodeAnalysisContext> action, params ImmutableArray<TLanguageKindEnum> syntaxKinds) where TLanguageKindEnum : struct; 497public virtual void RegisterOperationAction(Action<OperationAnalysisContext> action, params ImmutableArray<OperationKind> operationKinds) 974public abstract void RegisterSyntaxNodeAction<TLanguageKindEnum>(Action<SyntaxNodeAnalysisContext> action, params ImmutableArray<TLanguageKindEnum> syntaxKinds) where TLanguageKindEnum : struct; 1011public abstract void RegisterOperationAction(Action<OperationAnalysisContext> action, params ImmutableArray<OperationKind> operationKinds); 1129public abstract void RegisterSyntaxNodeAction(Action<SyntaxNodeAnalysisContext> action, params ImmutableArray<TLanguageKindEnum> syntaxKinds); 1246private readonly ImmutableArray<IOperation> _operationBlocks; 1259public ImmutableArray<IOperation> OperationBlocks => _operationBlocks; 1300ImmutableArray<IOperation> operationBlocks, 1311ImmutableArray<IOperation> operationBlocks, 1359public abstract void RegisterOperationAction(Action<OperationAnalysisContext> action, params ImmutableArray<OperationKind> operationKinds); 1387private readonly ImmutableArray<IOperation> _operationBlocks; 1402public ImmutableArray<IOperation> OperationBlocks => _operationBlocks; 1443ImmutableArray<IOperation> operationBlocks, 1456ImmutableArray<IOperation> operationBlocks, 1908public ImmutableArray<Diagnostic> ReportedDiagnostics { get; } 1928ImmutableArray<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 (118)
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) 264public override void RegisterSyntaxNodeAction<TLanguageKindEnum>(Action<SyntaxNodeAnalysisContext> action, ImmutableArray<TLanguageKindEnum> syntaxKinds) 282public override void RegisterOperationAction(Action<OperationAnalysisContext> action, ImmutableArray<OperationKind> operationKinds) 321public override void RegisterSyntaxNodeAction(Action<SyntaxNodeAnalysisContext> action, ImmutableArray<TLanguageKindEnum> syntaxKinds) 337ImmutableArray<IOperation> operationBlocks, 357public override void RegisterOperationAction(Action<OperationAnalysisContext> action, ImmutableArray<OperationKind> operationKinds) 446private ImmutableArray<CodeBlockAnalyzerAction> _codeBlockEndActions = ImmutableArray<CodeBlockAnalyzerAction>.Empty; 447private ImmutableArray<SyntaxNodeAnalyzerAction<TLanguageKindEnum>> _syntaxNodeActions = ImmutableArray<SyntaxNodeAnalyzerAction<TLanguageKindEnum>>.Empty; 451public ImmutableArray<CodeBlockAnalyzerAction> CodeBlockEndActions 456public ImmutableArray<SyntaxNodeAnalyzerAction<TLanguageKindEnum>> SyntaxNodeActions 466public void RegisterSyntaxNodeAction(Action<SyntaxNodeAnalysisContext> action, ImmutableArray<TLanguageKindEnum> syntaxKinds) 474private ImmutableArray<OperationBlockAnalyzerAction> _operationBlockEndActions = ImmutableArray<OperationBlockAnalyzerAction>.Empty; 475private ImmutableArray<OperationAnalyzerAction> _operationActions = ImmutableArray<OperationAnalyzerAction>.Empty; 479public ImmutableArray<OperationBlockAnalyzerAction> OperationBlockEndActions => _operationBlockEndActions; 481public ImmutableArray<OperationAnalyzerAction> OperationActions => _operationActions; 488public void RegisterOperationAction(Action<OperationAnalysisContext> action, ImmutableArray<OperationKind> operationKinds) 535public void RegisterSymbolAction(Action<SymbolAnalysisContext> action, ImmutableArray<SymbolKind> symbolKinds) 550ImmutableArray<IParameterSymbol> parameters; 627public void RegisterSyntaxNodeAction<TLanguageKindEnum>(Action<SyntaxNodeAnalysisContext> action, ImmutableArray<TLanguageKindEnum> syntaxKinds) where TLanguageKindEnum : struct 651public void RegisterOperationAction(Action<OperationAnalysisContext> action, ImmutableArray<OperationKind> operationKinds) 674private ImmutableArray<CompilationStartAnalyzerAction> _compilationStartActions; 675private ImmutableArray<CompilationAnalyzerAction> _compilationEndActions; 676private ImmutableArray<CompilationAnalyzerAction> _compilationActions; 677private ImmutableArray<SyntaxTreeAnalyzerAction> _syntaxTreeActions; 678private ImmutableArray<AdditionalFileAnalyzerAction> _additionalFileActions; 679private ImmutableArray<SemanticModelAnalyzerAction> _semanticModelActions; 680private ImmutableArray<SymbolAnalyzerAction> _symbolActions; 681private ImmutableArray<SymbolStartAnalyzerAction> _symbolStartActions; 682private ImmutableArray<SymbolEndAnalyzerAction> _symbolEndActions; 683private ImmutableArray<AnalyzerAction> _codeBlockStartActions; 684private ImmutableArray<CodeBlockAnalyzerAction> _codeBlockEndActions; 685private ImmutableArray<CodeBlockAnalyzerAction> _codeBlockActions; 686private ImmutableArray<OperationBlockStartAnalyzerAction> _operationBlockStartActions; 687private ImmutableArray<OperationBlockAnalyzerAction> _operationBlockEndActions; 688private ImmutableArray<OperationBlockAnalyzerAction> _operationBlockActions; 689private ImmutableArray<AnalyzerAction> _syntaxNodeActions; 690private ImmutableArray<OperationAnalyzerAction> _operationActions; 695_compilationStartActions = ImmutableArray<CompilationStartAnalyzerAction>.Empty; 696_compilationEndActions = ImmutableArray<CompilationAnalyzerAction>.Empty; 697_compilationActions = ImmutableArray<CompilationAnalyzerAction>.Empty; 698_syntaxTreeActions = ImmutableArray<SyntaxTreeAnalyzerAction>.Empty; 699_additionalFileActions = ImmutableArray<AdditionalFileAnalyzerAction>.Empty; 700_semanticModelActions = ImmutableArray<SemanticModelAnalyzerAction>.Empty; 701_symbolActions = ImmutableArray<SymbolAnalyzerAction>.Empty; 702_symbolStartActions = ImmutableArray<SymbolStartAnalyzerAction>.Empty; 703_symbolEndActions = ImmutableArray<SymbolEndAnalyzerAction>.Empty; 704_codeBlockStartActions = ImmutableArray<AnalyzerAction>.Empty; 705_codeBlockEndActions = ImmutableArray<CodeBlockAnalyzerAction>.Empty; 706_codeBlockActions = ImmutableArray<CodeBlockAnalyzerAction>.Empty; 707_operationBlockStartActions = ImmutableArray<OperationBlockStartAnalyzerAction>.Empty; 708_operationBlockEndActions = ImmutableArray<OperationBlockAnalyzerAction>.Empty; 709_operationBlockActions = ImmutableArray<OperationBlockAnalyzerAction>.Empty; 710_syntaxNodeActions = ImmutableArray<AnalyzerAction>.Empty; 711_operationActions = ImmutableArray<OperationAnalyzerAction>.Empty; 718ImmutableArray<CompilationStartAnalyzerAction> compilationStartActions, 719ImmutableArray<CompilationAnalyzerAction> compilationEndActions, 720ImmutableArray<CompilationAnalyzerAction> compilationActions, 721ImmutableArray<SyntaxTreeAnalyzerAction> syntaxTreeActions, 722ImmutableArray<AdditionalFileAnalyzerAction> additionalFileActions, 723ImmutableArray<SemanticModelAnalyzerAction> semanticModelActions, 724ImmutableArray<SymbolAnalyzerAction> symbolActions, 725ImmutableArray<SymbolStartAnalyzerAction> symbolStartActions, 726ImmutableArray<SymbolEndAnalyzerAction> symbolEndActions, 727ImmutableArray<AnalyzerAction> codeBlockStartActions, 728ImmutableArray<CodeBlockAnalyzerAction> codeBlockEndActions, 729ImmutableArray<CodeBlockAnalyzerAction> codeBlockActions, 730ImmutableArray<OperationBlockStartAnalyzerAction> operationBlockStartActions, 731ImmutableArray<OperationBlockAnalyzerAction> operationBlockEndActions, 732ImmutableArray<OperationBlockAnalyzerAction> operationBlockActions, 733ImmutableArray<AnalyzerAction> syntaxNodeActions, 734ImmutableArray<OperationAnalyzerAction> operationActions, 796internal readonly ImmutableArray<CompilationStartAnalyzerAction> CompilationStartActions 801internal readonly ImmutableArray<CompilationAnalyzerAction> CompilationEndActions 806internal readonly ImmutableArray<CompilationAnalyzerAction> CompilationActions 811internal readonly ImmutableArray<SyntaxTreeAnalyzerAction> SyntaxTreeActions 816internal readonly ImmutableArray<AdditionalFileAnalyzerAction> AdditionalFileActions 821internal readonly ImmutableArray<SemanticModelAnalyzerAction> SemanticModelActions 826internal readonly ImmutableArray<SymbolAnalyzerAction> SymbolActions 831internal readonly ImmutableArray<SymbolStartAnalyzerAction> SymbolStartActions 836internal readonly ImmutableArray<SymbolEndAnalyzerAction> SymbolEndActions 841internal readonly ImmutableArray<CodeBlockAnalyzerAction> CodeBlockEndActions 846internal readonly ImmutableArray<CodeBlockAnalyzerAction> CodeBlockActions 851internal readonly ImmutableArray<CodeBlockStartAnalyzerAction<TLanguageKindEnum>> GetCodeBlockStartActions<TLanguageKindEnum>() where TLanguageKindEnum : struct 880internal readonly ImmutableArray<OperationBlockAnalyzerAction> OperationBlockActions 885internal readonly ImmutableArray<OperationBlockAnalyzerAction> OperationBlockEndActions 890internal readonly ImmutableArray<OperationBlockStartAnalyzerAction> OperationBlockStartActions 895internal readonly ImmutableArray<OperationAnalyzerAction> OperationActions 1050private ImmutableArray<CompilationStartAnalyzerAction> _compilationStartActionsImmutable = []; 1051private ImmutableArray<CompilationAnalyzerAction> _compilationEndActionsImmutable = []; 1052private ImmutableArray<CompilationAnalyzerAction> _compilationActionsImmutable = []; 1053private ImmutableArray<SyntaxTreeAnalyzerAction> _syntaxTreeActionsImmutable = []; 1054private ImmutableArray<AdditionalFileAnalyzerAction> _additionalFileActionsImmutable = []; 1055private ImmutableArray<SemanticModelAnalyzerAction> _semanticModelActionsImmutable = []; 1056private ImmutableArray<SymbolAnalyzerAction> _symbolActionsImmutable = []; 1057private ImmutableArray<SymbolStartAnalyzerAction> _symbolStartActionsImmutable = []; 1058private ImmutableArray<SymbolEndAnalyzerAction> _symbolEndActionsImmutable = []; 1059private ImmutableArray<AnalyzerAction> _codeBlockStartActionsImmutable = []; 1060private ImmutableArray<CodeBlockAnalyzerAction> _codeBlockEndActionsImmutable = []; 1061private ImmutableArray<CodeBlockAnalyzerAction> _codeBlockActionsImmutable = []; 1062private ImmutableArray<OperationBlockStartAnalyzerAction> _operationBlockStartActionsImmutable = []; 1063private ImmutableArray<OperationBlockAnalyzerAction> _operationBlockEndActionsImmutable = []; 1064private ImmutableArray<OperationBlockAnalyzerAction> _operationBlockActionsImmutable = []; 1065private ImmutableArray<AnalyzerAction> _syntaxNodeActionsImmutable = []; 1066private ImmutableArray<OperationAnalyzerAction> _operationActionsImmutable = []; 1131ref ImmutableArray<T> immutable, 1133ImmutableArray<T> actions) 1205private static ImmutableArray<T> ToImmutableAndFree<T>( 1206ref ImmutableArray<T> immutable, 1209var result = builder is not null
DiagnosticAnalyzer\DiagnosticSuppressor.cs (3)
15public sealed override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray<DiagnosticDescriptor>.Empty; 27public abstract ImmutableArray<SuppressionDescriptor> SupportedSuppressions { get; }
DiagnosticAnalyzer\SuppressMessageAttributeState.cs (3)
193var declaredSymbols = model.GetDeclaredSymbolsForNode(node); 381internal static ImmutableArray<ISymbol> ResolveTargetSymbols(Compilation compilation, string target, TargetScope scope) 394return 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 (13)
104public static ImmutableArray<ISymbol> GetSymbolsForDeclarationId(string id, Compilation compilation) 182public static ImmutableArray<ISymbol> GetSymbolsForReferenceId(string id, Compilation compilation) 492private void AppendParameters(ImmutableArray<IParameterSymbol> parameters) 1207var members = container.GetMembers(memberName); 1234var members = container.GetMembers(memberName); 1254ImmutableArray<INamedTypeSymbol> unnamedNamedTypes = container.GetTypeMembers(""); 1276var members = container.GetMembers(memberName); 1297var members = containers[i].GetMembers(memberName); 1365var members = containers[i].GetMembers(memberName); 1416var members = containers[i].GetMembers(memberName); 1432var members = containers[i].GetMembers(memberName); 1444private static bool AllParametersMatch(ImmutableArray<IParameterSymbol> symbolParameters, List<ParameterInfo> expectedParameters) 1484var 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 (26)
44private ImmutableArray<Cci.AssemblyReferenceAlias> _lazyAssemblyReferenceAliases; 45private ImmutableArray<Cci.ManagedResource> _lazyManagedResources; 176internal abstract ImmutableDictionary<ISymbolInternal, ImmutableArray<ISymbolInternal>> GetAllSynthesizedMembers(); 193public abstract Cci.IFieldReference GetFieldForData(ImmutableArray<byte> data, ushort alignment, SyntaxNode syntaxNode, DiagnosticBag diagnostics); 194public abstract Cci.IFieldReference GetArrayCachingFieldForData(ImmutableArray<byte> data, Cci.IArrayTypeReference arrayType, SyntaxNode syntaxNode, DiagnosticBag diagnostics); 195public abstract Cci.IFieldReference GetArrayCachingFieldForConstants(ImmutableArray<ConstantValue> constants, Cci.IArrayTypeReference arrayType, SyntaxNode syntaxNode, DiagnosticBag diagnostics); 201public abstract ImmutableArray<Cci.ExportedType> GetExportedTypes(EmitContext context); 225public abstract ImmutableArray<Cci.UsedNamespaceOrType> GetImports(); 375public abstract IEnumerable<(Cci.ITypeDefinition, ImmutableArray<Cci.DebugSourceDocument>)> GetTypeToDebugDocumentMap(EmitContext context); 530public ImmutableArray<Cci.AssemblyReferenceAlias> GetAssemblyReferenceAliases(EmitContext context) 534ImmutableInterlocked.InterlockedCompareExchange(ref _lazyAssemblyReferenceAliases, CalculateAssemblyReferenceAliases(context), default(ImmutableArray<Cci.AssemblyReferenceAlias>)); 540private ImmutableArray<Cci.AssemblyReferenceAlias> CalculateAssemblyReferenceAliases(EmitContext context) 547var aliases = assemblyAndAliases.Item2; 585public ImmutableArray<Cci.ManagedResource> GetResources(EmitContext context) 591return ImmutableArray<Cci.ManagedResource>.Empty; 796public virtual ImmutableArray<TNamedTypeSymbol> GetAdditionalTopLevelTypes() 797=> ImmutableArray<TNamedTypeSymbol>.Empty; 799public virtual ImmutableArray<TNamedTypeSymbol> GetEmbeddedTypes(DiagnosticBag diagnostics) 800=> ImmutableArray<TNamedTypeSymbol>.Empty; 909public ImmutableArray<ISymbolInternal> GetAllMembers() 1064internal override ImmutableDictionary<ISymbolInternal, ImmutableArray<ISymbolInternal>> GetAllSynthesizedMembers() 1066var builder = ImmutableDictionary.CreateBuilder<ISymbolInternal, ImmutableArray<ISymbolInternal>>(); 1086if (!builder.TryGetValue(hotReloadException.ContainingNamespace, out var existingTypes)) 1104public sealed override Cci.IFieldReference GetFieldForData(ImmutableArray<byte> data, ushort alignment, SyntaxNode syntaxNode, DiagnosticBag diagnostics) 1114public sealed override Cci.IFieldReference GetArrayCachingFieldForData(ImmutableArray<byte> data, Cci.IArrayTypeReference arrayType, SyntaxNode syntaxNode, DiagnosticBag diagnostics) 1124public sealed override 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 (32)
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) 246protected static IReadOnlyDictionary<SyntaxNode, int> CreateDeclaratorToSyntaxOrdinalMap(ImmutableArray<SyntaxNode> declarators) 259ImmutableArray<LocalSlotDebugInfo> localSlotDebugInfo, 264protected abstract ImmutableArray<EncLocalInfo> GetLocalSlotMapFromMetadata(StandaloneSignatureHandle handle, EditAndContinueMethodDebugInformation debugInfo); 285ImmutableArray<EncLocalInfo> previousLocals; 328previousLocals = ImmutableArray<EncLocalInfo>.Empty; 393var localSlotDebugInfo = debugInfo.LocalSlots.NullToEmpty(); 399previousLocals = ImmutableArray<EncLocalInfo>.Empty; 434previousLocals = localSignature.IsNil ? ImmutableArray<EncLocalInfo>.Empty : 487private static IReadOnlyDictionary<int, EncLambdaMapValue> MakeLambdaMap(ImmutableArray<EncLambdaInfo> lambdaDebugInfo) 492private static IReadOnlyDictionary<int, EncClosureMapValue> MakeClosureMap(ImmutableArray<EncClosureInfo> closureDebugInfo) 518ImmutableArray<DebugId> getLambdaStructClosureIdsFromMetadata(IMethodSymbolInternal? lambda, DebugId methodId) 522return ImmutableArray<DebugId>.Empty; 544private static IReadOnlyDictionary<(int syntaxOffset, AwaitDebugId debugId), StateMachineState>? MakeStateMachineStateMap(ImmutableArray<StateMachineStateDebugInfo> debugInfos) 552ImmutableArray<EncHoistedLocalInfo> hoistedLocalSlots, 553ImmutableArray<Cci.ITypeReference?> hoistedAwaiters, 604ImmutableArray<ISymbolInternal> members, 605IReadOnlyDictionary<ISymbolInternal, ImmutableArray<ISymbolInternal>>? synthesizedMemberMap, 609var closureTreeBuilder = ImmutableSegmentedDictionary.CreateBuilder<DebugId, (DebugId? parentId, ImmutableArray<string> structCaptures)>(); 617void recurse(ImmutableArray<ISymbolInternal> members, DebugId? containingDisplayClassId) 656var displayClassMembers = synthesizedMemberMap != null 657? (synthesizedMemberMap.TryGetValue(displayClass, out var m) ? m : []) 706static ImmutableArray<string> getHoistedVariableNames(ImmutableArray<ISymbolInternal> members) 726public IEnumerable<(DebugId id, IMethodSymbolInternal symbol)> GetDeletedSynthesizedMethods(IMethodSymbolInternal oldMethod, ImmutableArray<EncLambdaInfo> currentLambdas) 736Baseline.SynthesizedMembers.TryGetValue(oldMethod.ContainingType, out var synthesizedSiblingSymbols)) 769ImmutableArray<EncLambdaInfo> lambdasToInclude = default, 770ImmutableArray<LambdaDebugInfo> metadataLambdasToInclude = default)
Emit\EditAndContinue\DeletedMethodBody.cs (22)
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 => default; 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)
22public DeletedPEMethodDefinition(IMethodSymbolInternal oldMethod, ImmutableArray<byte> bodyIL) 111public ImmutableArray<Cci.IParameterDefinition> Parameters 123public ImmutableArray<byte> ReturnValueMarshallingDescriptor 138public ImmutableArray<Cci.IParameterTypeInformation> ExtraParameters 153public ImmutableArray<Cci.ICustomModifier> ReturnValueCustomModifiers 156public ImmutableArray<Cci.ICustomModifier> RefCustomModifiers 168public ImmutableArray<Cci.IParameterTypeInformation> GetParameters(EmitContext context)
Emit\EditAndContinue\DeletedSourceDefinition.cs (2)
51protected ImmutableArray<DeletedSourceParameterDefinition> WrapParameters(ImmutableArray<IParameterDefinition> parameters)
Emit\EditAndContinue\DeletedSourceMethodDefinition.cs (8)
17private readonly ImmutableArray<DeletedSourceParameterDefinition> _parameters; 20public DeletedSourceMethodDefinition(IMethodDefinition oldMethod, MethodDefinitionHandle handle, ImmutableArray<byte> bodyIL, Dictionary<ITypeDefinition, DeletedSourceTypeDefinition> typesUsedByDeletedMembers, ICustomAttribute? deletedAttribute) 60public ImmutableArray<IParameterDefinition> Parameters => StaticCast<IParameterDefinition>.From(_parameters); 70public ImmutableArray<byte> ReturnValueMarshallingDescriptor => OldDefinition.ReturnValueMarshallingDescriptor; 84public ImmutableArray<IParameterTypeInformation> ExtraParameters => OldDefinition.ExtraParameters; 94public ImmutableArray<ICustomModifier> ReturnValueCustomModifiers => OldDefinition.ReturnValueCustomModifiers; 96public ImmutableArray<ICustomModifier> RefCustomModifiers => OldDefinition.RefCustomModifiers; 121public 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\DeletedSourcePropertyDefinition.cs (5)
17private readonly ImmutableArray<DeletedSourceParameterDefinition> _parameters; 33public ImmutableArray<IParameterDefinition> Parameters => StaticCast<IParameterDefinition>.From(_parameters); 41public ImmutableArray<ICustomModifier> ReturnValueCustomModifiers => OldDefinition.ReturnValueCustomModifiers; 43public ImmutableArray<ICustomModifier> RefCustomModifiers => OldDefinition.RefCustomModifiers; 75public ImmutableArray<IParameterTypeInformation> GetParameters(EmitContext context)
Emit\EditAndContinue\DeltaMetadataWriter.cs (38)
35private readonly Dictionary<ITypeDefinition, ImmutableArray<ITypeDefinitionMember>> _deletedTypeMembers; 52private readonly Dictionary<EntityHandle, ImmutableArray<int>> _customAttributesAdded; 97var sizes = previousGeneration.TableSizes; 100_deletedTypeMembers = new Dictionary<ITypeDefinition, ImmutableArray<ITypeDefinitionMember>>(ReferenceEqualityComparer.Instance); 114_customAttributesAdded = new Dictionary<EntityHandle, ImmutableArray<int>>(); 163private ImmutableArray<int> GetDeltaTableSizes(ImmutableArray<int> rowCounts) 198var previousTableSizes = _previousGeneration.TableEntriesAdded; 199var deltaTableSizes = GetDeltaTableSizes(metadataSizes.RowCounts); 551(changes.DeletedMembers.TryGetValue(typeSymbol, out var deletedMembers) | 552changes.UpdatedMethods.TryGetValue(typeSymbol, out var updatedMethods))) 562ImmutableArray<byte>? lazyDeletedMethodIL = null; 563ImmutableArray<byte>? lazyDeletedLambdaIL = null; 607void addDeletedClosureMethods(IMethodSymbolInternal oldMethod, ImmutableArray<EncLambdaInfo> currentLambdas, ImmutableArray<LambdaRuntimeRudeEditInfo> orderedLambdaRuntimeRudeEdits) 613var il = (rudeEditIndex >= 0) 841var paramDefinitions = this.GetParametersToEmit(methodDef); 919var localVariables = body.LocalVariables; 1044xOrdinal = _previousGeneration.CustomAttributesAdded.TryGetValue(x.parentHandle, out var rowIds) ? rowIds[0] : int.MaxValue; 1078var previouslyAddedRowIds = _previousGeneration.CustomAttributesAdded.TryGetValue(parentHandle, out var rowIds) ? rowIds : ImmutableArray<int>.Empty; 1102var previouslyAddedRowIds = _previousGeneration.CustomAttributesAdded.TryGetValue(parentHandle, out var rowIds) ? rowIds : ImmutableArray<int>.Empty; 1133public override void PopulateEncTables(ImmutableArray<int> typeSystemRowCounts) 1147private void PopulateEncLogTableRows(ImmutableArray<int> rowCounts, ArrayBuilder<int> paramEncMapRows) 1152var previousSizes = _previousGeneration.TableSizes; 1153var deltaSizes = this.GetDeltaTableSizes(rowCounts); 1287private void PopulateEncLogTableRows(TableIndex tableIndex, ImmutableArray<int> previousSizes, ImmutableArray<int> deltaSizes) 1302private void PopulateEncMapTableRows(ImmutableArray<int> rowCounts, ArrayBuilder<int> paramEncMapRows) 1309var previousSizes = _previousGeneration.TableSizes; 1310var deltaSizes = GetDeltaTableSizes(rowCounts); 1454ImmutableArray<int> previousSizes, 1455ImmutableArray<int> deltaSizes) 1885private readonly IReadOnlyDictionary<ITypeDefinition, ImmutableArray<ITypeDefinitionMember>> _deletedTypeMembers; 1968if (_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)
42public readonly IReadOnlyDictionary<ISymbolInternal, ImmutableArray<ISymbolInternal>> DeletedMembers; 47public readonly IReadOnlyDictionary<INamedTypeSymbolInternal, ImmutableArray<(IMethodSymbolInternal oldMethod, IMethodSymbolInternal newMethod)>> UpdatedMethods; 354out IReadOnlyDictionary<ISymbolInternal, ImmutableArray<ISymbolInternal>> deletedMembers, 355out IReadOnlyDictionary<INamedTypeSymbolInternal, ImmutableArray<(IMethodSymbolInternal oldMethod, IMethodSymbolInternal newMethod)>> updatedMethods) 471elementSelector: static e => e.Value.ToImmutableAndFree()) ?? ImmutableSegmentedDictionary<ISymbolInternal, ImmutableArray<ISymbolInternal>>.Empty;
Emit\EditAndContinue\SymbolMatcher.cs (13)
20protected abstract bool TryGetMatchingDelegateWithIndexedName(INamedTypeSymbolInternal delegateTemplate, ImmutableArray<AnonymousTypeValue> values, out AnonymousTypeValue match); 35IReadOnlyDictionary<ISymbolInternal, ImmutableArray<ISymbolInternal>> mappedSynthesizedMembers, 36IReadOnlyDictionary<ISymbolInternal, ImmutableArray<ISymbolInternal>> mappedDeletedMembers) 141private ImmutableSegmentedDictionary<AnonymousDelegateWithIndexedNamePartialKey, ImmutableArray<AnonymousTypeValue>> MapAnonymousDelegatesWithIndexedNames( 142ImmutableSegmentedDictionary<AnonymousDelegateWithIndexedNamePartialKey, ImmutableArray<AnonymousTypeValue>> previousDelegates, 143ImmutableSegmentedDictionary<AnonymousDelegateWithIndexedNamePartialKey, ImmutableArray<AnonymousTypeValue>> newDelegates) 150var builder = ImmutableSegmentedDictionary.CreateBuilder<AnonymousDelegateWithIndexedNamePartialKey, ImmutableArray<AnonymousTypeValue>>(); 155if (!newDelegates.TryGetValue(key, out var newValues)) 209internal IReadOnlyDictionary<ISymbolInternal, ImmutableArray<ISymbolInternal>> MapSynthesizedOrDeletedMembers( 210IReadOnlyDictionary<ISymbolInternal, ImmutableArray<ISymbolInternal>> previousMembers, 211IReadOnlyDictionary<ISymbolInternal, ImmutableArray<ISymbolInternal>> newMembers, 221var synthesizedMembersBuilder = ImmutableSegmentedDictionary.CreateBuilder<ISymbolInternal, ImmutableArray<ISymbolInternal>>(); 235if (!newMembers.TryGetValue(mappedContainer, out var newSynthesizedMembers))
Emit\EditAndContinue\SynthesizedTypeMaps.cs (3)
13ImmutableSegmentedDictionary<AnonymousDelegateWithIndexedNamePartialKey, ImmutableArray<AnonymousTypeValue>>? anonymousDelegatesWithIndexedNames) 38public ImmutableSegmentedDictionary<AnonymousDelegateWithIndexedNamePartialKey, ImmutableArray<AnonymousTypeValue>> AnonymousDelegatesWithIndexedNames { get; } 39= 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 (7)
43public ImmutableArray<InstrumentationKind> InstrumentationKinds { get; private set; } 123internal Func<ImmutableArray<byte>, string>? TestOnly_DataToHexViaXxHash128 { get; init; } 150instrumentationKinds: ImmutableArray<InstrumentationKind>.Empty) 167ImmutableArray<InstrumentationKind> instrumentationKinds) 198ImmutableArray<InstrumentationKind> instrumentationKinds, 231ImmutableArray<InstrumentationKind> instrumentationKinds = default, 526public EmitOptions WithInstrumentationKinds(ImmutableArray<InstrumentationKind> instrumentationKinds)
Emit\ErrorType.cs (1)
220publicKeyOrToken: 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)
43private readonly ImmutableArray<TEmbeddedTypeParameter> _typeParameters; 44private readonly ImmutableArray<TEmbeddedParameter> _parameters; 54protected abstract ImmutableArray<TEmbeddedTypeParameter> GetTypeParameters(); 55protected abstract ImmutableArray<TEmbeddedParameter> GetParameters(); 71protected abstract ImmutableArray<byte> ReturnValueMarshallingDescriptor { get; } 88if (signatureIndex == 0 && TypeManager.TryGetAttributeArguments(attrData, out var constructorArguments, out var namedArguments, syntaxNodeOpt, diagnostics)) 122ImmutableArray<Cci.ExceptionHandlerRegion> Cci.IMethodBody.ExceptionRegions => 123ImmutableArray<Cci.ExceptionHandlerRegion>.Empty; 129ImmutableArray<Cci.ILocalDefinition> Cci.IMethodBody.LocalVariables => 130ImmutableArray<Cci.ILocalDefinition>.Empty; 136ImmutableArray<byte> Cci.IMethodBody.IL => ImmutableArray<byte>.Empty; 138ImmutableArray<Cci.SequencePoint> Cci.IMethodBody.SequencePoints => ImmutableArray<Cci.SequencePoint>.Empty; 144ImmutableArray<SourceSpan> Cci.IMethodBody.CodeCoverageSpans => ImmutableArray<SourceSpan>.Empty; 146ImmutableArray<Cci.LocalScope> Cci.IMethodBody.LocalScopes => 147ImmutableArray<Cci.LocalScope>.Empty; 151ImmutableArray<StateMachineHoistedLocalScope> Cci.IMethodBody.StateMachineHoistedLocalScopes => 152default(ImmutableArray<StateMachineHoistedLocalScope>); 156ImmutableArray<EncHoistedLocalInfo> Cci.IMethodBody.StateMachineHoistedLocalSlots => 157default(ImmutableArray<EncHoistedLocalInfo>); 159ImmutableArray<Cci.ITypeReference> Cci.IMethodBody.StateMachineAwaiterSlots => 160default(ImmutableArray<Cci.ITypeReference>); 162ImmutableArray<EncClosureInfo> Cci.IMethodBody.ClosureDebugInfo => 163default(ImmutableArray<EncClosureInfo>); 165ImmutableArray<EncLambdaInfo> Cci.IMethodBody.LambdaDebugInfo => 166default(ImmutableArray<EncLambdaInfo>); 168ImmutableArray<LambdaRuntimeRudeEditInfo> Cci.IMethodBody.OrderedLambdaRuntimeRudeEdits => 169ImmutableArray<LambdaRuntimeRudeEditInfo>.Empty; 214ImmutableArray<Cci.IParameterDefinition> Cci.IMethodDefinition.Parameters 234ImmutableArray<byte> Cci.IMethodDefinition.ReturnValueMarshallingDescriptor => ReturnValueMarshallingDescriptor; 271ImmutableArray<Cci.IParameterTypeInformation> Cci.IMethodReference.ExtraParameters 276return ImmutableArray<Cci.IParameterTypeInformation>.Empty; 288ImmutableArray<Cci.IParameterTypeInformation> Cci.ISignature.GetParameters(EmitContext context) 293ImmutableArray<Cci.ICustomModifier> Cci.ISignature.RefCustomModifiers => 296ImmutableArray<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)
46private ImmutableArray<Cci.IFieldDefinition> _lazyFields; 47private ImmutableArray<Cci.IMethodDefinition> _lazyMethods; 48private ImmutableArray<Cci.IPropertyDefinition> _lazyProperties; 49private ImmutableArray<Cci.IEventDefinition> _lazyEvents; 50private ImmutableArray<TAttributeData> _lazyAttributes; 92private ImmutableArray<TAttributeData> GetAttributes(TPEModuleBuilder moduleBuilder, TSyntaxNode syntaxNodeOpt, DiagnosticBag diagnostics) 112ImmutableArray<TypedConstant> constructorArguments; 113ImmutableArray<KeyValuePair<string, TypedConstant>> namedArguments; 545var attributes = GetAttributes((TPEModuleBuilder)context.Module, (TSyntaxNode)context.SyntaxNode, diagnostics);
Emit\NoPia\EmbeddedTypesManager.cs (10)
21public abstract ImmutableArray<Cci.INamespaceTypeDefinition> GetTypes(DiagnosticBag diagnostics, HashSet<string> namesOfTopLevelTypes); 75private ImmutableArray<TEmbeddedType> _frozen; 90public override ImmutableArray<Cci.INamespaceTypeDefinition> GetTypes(DiagnosticBag diagnostics, HashSet<string> namesOfTopLevelTypes) 158internal abstract TAttributeData CreateSynthesizedAttribute(WellKnownMember constructor, ImmutableArray<TypedConstant> constructorArguments, ImmutableArray<KeyValuePair<string, TypedConstant>> namedArguments, TSyntaxNode syntaxNodeOpt, DiagnosticBag diagnostics); 159internal abstract TAttributeData CreateSynthesizedAttribute(SpecialMember 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)
109ImmutableArray<Cci.IParameterDefinition> Cci.IMethodDefinition.Parameters 111get { return ImmutableArray<Cci.IParameterDefinition>.Empty; } 139ImmutableArray<byte> Cci.IMethodDefinition.ReturnValueMarshallingDescriptor 141get { return default(ImmutableArray<byte>); } 210ImmutableArray<Cci.IParameterTypeInformation> Cci.IMethodReference.ExtraParameters 212get { return ImmutableArray<Cci.IParameterTypeInformation>.Empty; } 235ImmutableArray<Cci.IParameterTypeInformation> Cci.ISignature.GetParameters(EmitContext context) 237return ImmutableArray<Cci.IParameterTypeInformation>.Empty; 240ImmutableArray<Cci.ICustomModifier> Cci.ISignature.ReturnValueCustomModifiers 242get { return ImmutableArray<Cci.ICustomModifier>.Empty; } 245ImmutableArray<Cci.ICustomModifier> Cci.ISignature.RefCustomModifiers 247get { return ImmutableArray<Cci.ICustomModifier>.Empty; }
Emit\SemanticEdit.cs (1)
206internal SemanticEdit(IMethodSymbol oldSymbol, IMethodSymbol newSymbol, ImmutableArray<InstrumentationKind> instrumentationKinds)
FileSystem\PathUtilities.cs (1)
729public 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 (157)
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; } 3971ImmutableArray<IOperation> ConstructArguments { get; } 3980ImmutableArray<IOperation> Elements { get; } 4039internal BlockOperation(ImmutableArray<IOperation> operations, ImmutableArray<ILocalSymbol> locals, SemanticModel? semanticModel, SyntaxNode syntax, bool isImplicit) 4045public ImmutableArray<IOperation> Operations { get; } 4046public ImmutableArray<ILocalSymbol> Locals { get; } 4096internal VariableDeclarationGroupOperation(ImmutableArray<IVariableDeclarationOperation> declarations, SemanticModel? semanticModel, SyntaxNode syntax, bool isImplicit) 4101public ImmutableArray<IVariableDeclarationOperation> Declarations { get; } 4151internal SwitchOperation(ImmutableArray<ILocalSymbol> locals, IOperation value, ImmutableArray<ISwitchCaseOperation> cases, ILabelSymbol exitLabel, SemanticModel? semanticModel, SyntaxNode syntax, bool isImplicit) 4159public ImmutableArray<ILocalSymbol> Locals { get; } 4161public ImmutableArray<ISwitchCaseOperation> Cases { get; } 4221protected BaseLoopOperation(IOperation body, ImmutableArray<ILocalSymbol> locals, ILabelSymbol continueLabel, ILabelSymbol exitLabel, SemanticModel? semanticModel, SyntaxNode syntax, bool isImplicit) 4231public ImmutableArray<ILocalSymbol> Locals { get; } 4237internal 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) 4248public ImmutableArray<IOperation> NextVariables { get; } 4327internal 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) 4335public ImmutableArray<IOperation> Before { get; } 4336public ImmutableArray<ILocalSymbol> ConditionLocals { get; } 4338public ImmutableArray<IOperation> AtLoopBottom { get; } 4419internal 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) 4435public ImmutableArray<IOperation> NextVariables { get; } 4531internal WhileLoopOperation(IOperation? condition, bool conditionIsTop, bool conditionIsUntil, IOperation? ignoredCondition, IOperation body, ImmutableArray<ILocalSymbol> locals, ILabelSymbol continueLabel, ILabelSymbol exitLabel, SemanticModel? semanticModel, SyntaxNode syntax, bool isImplicit) 4758internal TryOperation(IBlockOperation body, ImmutableArray<ICatchClauseOperation> catches, IBlockOperation? @finally, ILabelSymbol? exitLabel, SemanticModel? semanticModel, SyntaxNode syntax, bool isImplicit) 4767public ImmutableArray<ICatchClauseOperation> Catches { get; } 4837internal UsingOperation(IOperation resources, IOperation body, ImmutableArray<ILocalSymbol> locals, bool isAsynchronous, DisposeOperationInfo disposeInfo, SemanticModel? semanticModel, SyntaxNode syntax, bool isImplicit) 4848public ImmutableArray<ILocalSymbol> Locals { get; } 5048internal RaiseEventOperation(IEventReferenceOperation eventReference, ImmutableArray<IArgumentOperation> arguments, SemanticModel? semanticModel, SyntaxNode syntax, bool isImplicit) 5055public ImmutableArray<IArgumentOperation> Arguments { get; } 5192internal InvocationOperation(IMethodSymbol targetMethod, ITypeSymbol? constrainedToType, IOperation? instance, bool isVirtual, ImmutableArray<IArgumentOperation> arguments, SemanticModel? semanticModel, SyntaxNode syntax, ITypeSymbol? type, bool isImplicit) 5206public ImmutableArray<IArgumentOperation> Arguments { get; } 5265internal ArrayElementReferenceOperation(IOperation arrayReference, ImmutableArray<IOperation> indices, SemanticModel? semanticModel, SyntaxNode syntax, ITypeSymbol? type, bool isImplicit) 5273public ImmutableArray<IOperation> Indices { get; } 5494internal PropertyReferenceOperation(IPropertySymbol property, ITypeSymbol? constrainedToType, ImmutableArray<IArgumentOperation> arguments, IOperation? instance, SemanticModel? semanticModel, SyntaxNode syntax, ITypeSymbol? type, bool isImplicit) 5504public ImmutableArray<IArgumentOperation> Arguments { get; } 5955internal ObjectCreationOperation(IMethodSymbol? constructor, IObjectOrCollectionInitializerOperation? initializer, ImmutableArray<IArgumentOperation> arguments, SemanticModel? semanticModel, SyntaxNode syntax, ITypeSymbol? type, ConstantValue? constantValue, bool isImplicit) 5966public ImmutableArray<IArgumentOperation> Arguments { get; } 6077internal ArrayCreationOperation(ImmutableArray<IOperation> dimensionSizes, IArrayInitializerOperation? initializer, SemanticModel? semanticModel, SyntaxNode syntax, ITypeSymbol? type, bool isImplicit) 6084public ImmutableArray<IOperation> DimensionSizes { get; } 6617internal InterpolatedStringOperation(ImmutableArray<IInterpolatedStringContentOperation> parts, SemanticModel? semanticModel, SyntaxNode syntax, ITypeSymbol? type, ConstantValue? constantValue, bool isImplicit) 6624public ImmutableArray<IInterpolatedStringContentOperation> Parts { get; } 6674internal AnonymousObjectCreationOperation(ImmutableArray<IOperation> initializers, SemanticModel? semanticModel, SyntaxNode syntax, ITypeSymbol? type, bool isImplicit) 6680public ImmutableArray<IOperation> Initializers { get; } 6730internal ObjectOrCollectionInitializerOperation(ImmutableArray<IOperation> initializers, SemanticModel? semanticModel, SyntaxNode syntax, ITypeSymbol? type, bool isImplicit) 6736public ImmutableArray<IOperation> Initializers { get; } 6902internal TupleOperation(ImmutableArray<IOperation> elements, ITypeSymbol? naturalType, SemanticModel? semanticModel, SyntaxNode syntax, ITypeSymbol? type, bool isImplicit) 6909public ImmutableArray<IOperation> Elements { get; } 6960internal DynamicMemberReferenceOperation(IOperation? instance, string memberName, ImmutableArray<ITypeSymbol> typeArguments, ITypeSymbol? containingType, SemanticModel? semanticModel, SyntaxNode syntax, ITypeSymbol? type, bool isImplicit) 6971public ImmutableArray<ITypeSymbol> TypeArguments { get; } 7537protected BaseSymbolInitializerOperation(ImmutableArray<ILocalSymbol> locals, IOperation value, SemanticModel? semanticModel, SyntaxNode syntax, bool isImplicit) 7543public ImmutableArray<ILocalSymbol> Locals { get; } 7548internal FieldInitializerOperation(ImmutableArray<IFieldSymbol> initializedFields, ImmutableArray<ILocalSymbol> locals, IOperation value, SemanticModel? semanticModel, SyntaxNode syntax, bool isImplicit) 7553public ImmutableArray<IFieldSymbol> InitializedFields { get; } 7599internal VariableInitializerOperation(ImmutableArray<ILocalSymbol> locals, IOperation value, SemanticModel? semanticModel, SyntaxNode syntax, bool isImplicit) 7646internal PropertyInitializerOperation(ImmutableArray<IPropertySymbol> initializedProperties, ImmutableArray<ILocalSymbol> locals, IOperation value, SemanticModel? semanticModel, SyntaxNode syntax, bool isImplicit) 7651public ImmutableArray<IPropertySymbol> InitializedProperties { get; } 7697internal ParameterInitializerOperation(IParameterSymbol parameter, ImmutableArray<ILocalSymbol> locals, IOperation value, SemanticModel? semanticModel, SyntaxNode syntax, bool isImplicit) 7748internal ArrayInitializerOperation(ImmutableArray<IOperation> elementValues, SemanticModel? semanticModel, SyntaxNode syntax, bool isImplicit) 7753public ImmutableArray<IOperation> ElementValues { get; } 7803internal VariableDeclaratorOperation(ILocalSymbol symbol, IVariableInitializerOperation? initializer, ImmutableArray<IOperation> ignoredArguments, SemanticModel? semanticModel, SyntaxNode syntax, bool isImplicit) 7812public ImmutableArray<IOperation> IgnoredArguments { get; } 7871internal VariableDeclarationOperation(ImmutableArray<IVariableDeclaratorOperation> declarators, IVariableInitializerOperation? initializer, ImmutableArray<IOperation> ignoredDimensions, SemanticModel? semanticModel, SyntaxNode syntax, bool isImplicit) 7878public ImmutableArray<IVariableDeclaratorOperation> Declarators { get; } 7880public ImmutableArray<IOperation> IgnoredDimensions { get; } 8013internal CatchClauseOperation(IOperation? exceptionDeclarationOrExpression, ITypeSymbol exceptionType, ImmutableArray<ILocalSymbol> locals, IOperation? filter, IBlockOperation handler, SemanticModel? semanticModel, SyntaxNode syntax, bool isImplicit) 8024public ImmutableArray<ILocalSymbol> Locals { get; } 8090internal SwitchCaseOperation(ImmutableArray<ICaseClauseOperation> clauses, ImmutableArray<IOperation> body, ImmutableArray<ILocalSymbol> locals, IOperation? condition, SemanticModel? semanticModel, SyntaxNode syntax, bool isImplicit) 8098public ImmutableArray<ICaseClauseOperation> Clauses { get; } 8099public ImmutableArray<IOperation> Body { get; } 8100public ImmutableArray<ILocalSymbol> Locals { get; } 8762internal ConstructorBodyOperation(ImmutableArray<ILocalSymbol> locals, IOperation? initializer, IBlockOperation? blockBody, IBlockOperation? expressionBody, SemanticModel? semanticModel, SyntaxNode syntax, bool isImplicit) 8768public ImmutableArray<ILocalSymbol> Locals { get; } 9142internal ReDimOperation(ImmutableArray<IReDimClauseOperation> clauses, bool preserve, SemanticModel? semanticModel, SyntaxNode syntax, bool isImplicit) 9148public ImmutableArray<IReDimClauseOperation> Clauses { get; } 9199internal ReDimClauseOperation(IOperation operand, ImmutableArray<IOperation> dimensionSizes, SemanticModel? semanticModel, SyntaxNode syntax, bool isImplicit) 9206public ImmutableArray<IOperation> DimensionSizes { get; } 9265internal RecursivePatternOperation(ITypeSymbol matchedType, ISymbol? deconstructSymbol, ImmutableArray<IPatternOperation> deconstructionSubpatterns, ImmutableArray<IPropertySubpatternOperation> propertySubpatterns, ISymbol? declaredSymbol, ITypeSymbol inputType, ITypeSymbol narrowedType, SemanticModel? semanticModel, SyntaxNode syntax, bool isImplicit) 9276public ImmutableArray<IPatternOperation> DeconstructionSubpatterns { get; } 9277public ImmutableArray<IPropertySubpatternOperation> PropertySubpatterns { get; } 9355internal SwitchExpressionOperation(IOperation value, ImmutableArray<ISwitchExpressionArmOperation> arms, bool isExhaustive, SemanticModel? semanticModel, SyntaxNode syntax, ITypeSymbol? type, bool isImplicit) 9364public ImmutableArray<ISwitchExpressionArmOperation> Arms { get; } 9424internal SwitchExpressionArmOperation(IPatternOperation pattern, IOperation? guard, IOperation value, ImmutableArray<ILocalSymbol> locals, SemanticModel? semanticModel, SyntaxNode syntax, bool isImplicit) 9435public ImmutableArray<ILocalSymbol> Locals { get; } 9624internal FixedOperation(ImmutableArray<ILocalSymbol> locals, IVariableDeclarationGroupOperation variables, IOperation body, SemanticModel? semanticModel, SyntaxNode syntax, bool isImplicit) 9631public ImmutableArray<ILocalSymbol> Locals { get; } 10328internal FunctionPointerInvocationOperation(IOperation target, ImmutableArray<IArgumentOperation> arguments, SemanticModel? semanticModel, SyntaxNode syntax, ITypeSymbol? type, bool isImplicit) 10336public ImmutableArray<IArgumentOperation> Arguments { get; } 10395internal ListPatternOperation(ISymbol? lengthSymbol, ISymbol? indexerSymbol, ImmutableArray<IPatternOperation> patterns, ISymbol? declaredSymbol, ITypeSymbol inputType, ITypeSymbol narrowedType, SemanticModel? semanticModel, SyntaxNode syntax, bool isImplicit) 10405public ImmutableArray<IPatternOperation> Patterns { get; } 10709internal CollectionExpressionOperation(IMethodSymbol? constructMethod, ImmutableArray<IOperation> constructArguments, ImmutableArray<IOperation> elements, SemanticModel? semanticModel, SyntaxNode syntax, ITypeSymbol? type, bool isImplicit) 10718public ImmutableArray<IOperation> ConstructArguments { get; } 10719public ImmutableArray<IOperation> Elements { get; } 10864private ImmutableArray<T> VisitArray<T>(ImmutableArray<T> nodes) where T : IOperation => nodes.SelectAsArray((n, @this) => @this.Visit(n), this)!; 10865private 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\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)
120internal static int CombineValues<T>(ImmutableArray<T> values, int maxItemsToHash = int.MaxValue) 171internal static int CombineValues(ImmutableArray<string> values, StringComparer stringComparer, int maxItemsToHash = int.MaxValue) 252internal 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\SetWithInsertionOrder.cs (1)
94public ImmutableArray<T> AsImmutable() => _elements.ToImmutableArrayOrEmpty();
InternalUtilities\StringExtensions.cs (2)
20private static ImmutableArray<string> s_lazyNumerals; 25var 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)
609private static readonly ImmutableArray<string> s_splitQualifiedNameSystem = ImmutableArray.Create(SystemString); 610private static readonly ImmutableArray<ReadOnlyMemory<char>> s_splitQualifiedNameSystemMemory = ImmutableArray.Create(SystemString.AsMemory()); 612internal static ImmutableArray<string> SplitQualifiedName(string name) 615internal static ImmutableArray<ReadOnlyMemory<char>> SplitQualifiedName(ReadOnlyMemory<char> name) 618internal static ImmutableArray<T> SplitQualifiedNameWorker<T>( 619ReadOnlyMemory<char> nameMemory, ImmutableArray<T> splitSystemString, Func<ReadOnlyMemory<char>, T> convert) 625return ImmutableArray<T>.Empty; 1074internal 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)
28internal readonly ImmutableArray<AssemblyIdentity> AssemblyReferences; 33internal readonly ImmutableArray<int> ModuleReferenceCounts; 35private readonly ImmutableArray<PEModule> _modules; 57private Dictionary<string, List<ImmutableArray<byte>>> _lazyInternalsVisibleToMap; 60internal PEAssembly(AssemblyMetadata owner, ImmutableArray<PEModule> modules) 75ImmutableArray<AssemblyIdentity> refsForModule = modules[i].ReferencedAssemblies; 99internal ImmutableArray<PEModule> Modules 134private Dictionary<string, List<ImmutableArray<byte>>> BuildInternalsVisibleToMap() 136var ivtMap = new Dictionary<string, List<ImmutableArray<byte>>>(StringComparer.OrdinalIgnoreCase); 142List<ImmutableArray<byte>> keys; 147keys = new List<ImmutableArray<byte>>(); 164internal IEnumerable<ImmutableArray<byte>> GetInternalsVisibleToPublicKeys(string simpleName) 168List<ImmutableArray<byte>> result; 172return result ?? SpecializedCollections.EmptyEnumerable<ImmutableArray<byte>>();
MetadataReader\PEModule.cs (46)
48private ImmutableArray<AssemblyIdentity> _lazyAssemblyReferences; 111private static readonly AttributeValueExtractor<ImmutableArray<bool>> s_attributeBoolArrayValueExtractor = CrackBoolArrayInAttributeValue; 112private static readonly AttributeValueExtractor<ImmutableArray<byte>> s_attributeByteArrayValueExtractor = CrackByteArrayInAttributeValue; 113private static readonly AttributeValueExtractor<ImmutableArray<string?>> s_attributeStringArrayValueExtractor = CrackStringArrayInAttributeValue; 120public BoolAndStringArrayData(bool sense, ImmutableArray<string?> strings) 127public readonly ImmutableArray<string?> Strings; 164_lazyAssemblyReferences = ImmutableArray<AssemblyIdentity>.Empty; 178internal override unsafe ImmutableArray<byte> ComputeHash(HashAlgorithm algorithm) 343internal ImmutableArray<byte> GetHash(AssemblyHashAlgorithm algorithmId) 380internal ImmutableArray<string> GetMetadataModuleNamesOrThrow() 433internal ImmutableArray<EmbeddedResource> GetEmbeddedResourcesOrThrow() 437return ImmutableArray<EmbeddedResource>.Empty; 465public ImmutableArray<AssemblyIdentity> ReferencedAssemblies 894internal ImmutableArray<TypeDefinitionHandle> GetNestedTypeDefsOrThrow(TypeDefinitionHandle container) 1119private static readonly ImmutableArray<bool> s_simpleTransformFlags = ImmutableArray.Create(true); 1121internal bool HasDynamicAttribute(EntityHandle token, out ImmutableArray<bool> transformFlags) 1141internal bool HasNativeIntegerAttribute(EntityHandle token, out ImmutableArray<bool> transformFlags) 1221internal bool HasTupleElementNamesAttribute(EntityHandle token, out ImmutableArray<string> tupleElementNames) 1228tupleElementNames = default(ImmutableArray<string>); 1489internal (ImmutableArray<string?> Names, bool FoundAttribute) GetInterpolatedStringHandlerArgumentAttributeValues(EntityHandle token) 1506else if (TryExtractStringArrayValueFromAttribute(targetAttribute.Handle, out var paramNames)) 1678internal ImmutableArray<string> GetInternalsVisibleToAttributeValues(EntityHandle token) 1682return result?.ToImmutableAndFree() ?? ImmutableArray<string>.Empty; 1685internal ImmutableArray<string> GetConditionalAttributeValues(EntityHandle token) 1689return result?.ToImmutableAndFree() ?? ImmutableArray<string>.Empty; 1695internal ImmutableArray<string> GetMemberNotNullAttributeValues(EntityHandle token) 1700return ImmutableArray<string>.Empty; 1717else if (TryExtractStringArrayValueFromAttribute(ai.Handle, out ImmutableArray<string> extracted2)) 1735internal (ImmutableArray<string> whenTrue, ImmutableArray<string> whenFalse) GetMemberNotNullWhenAttributeValues(EntityHandle token) 1740return (ImmutableArray<string>.Empty, ImmutableArray<string>.Empty); 2030private bool TryExtractBoolArrayValueFromAttribute(CustomAttributeHandle handle, out ImmutableArray<bool> value) 2035private bool TryExtractByteArrayValueFromAttribute(CustomAttributeHandle handle, out ImmutableArray<byte> value) 2040private bool TryExtractStringArrayValueFromAttribute(CustomAttributeHandle handle, out ImmutableArray<string?> value) 2298internal static bool CrackStringArrayInAttributeValue(out ImmutableArray<string?> value, ref BlobReader sig) 2345CrackStringArrayInAttributeValue(out ImmutableArray<string?> strings, ref sig)) 2451private static bool CrackBoolArrayInAttributeValue(out ImmutableArray<bool> value, ref BlobReader sig) 2476value = default(ImmutableArray<bool>); 2480private static bool CrackByteArrayInAttributeValue(out ImmutableArray<byte> value, ref BlobReader sig) 2505value = default(ImmutableArray<byte>); 3253internal bool HasNullableAttribute(EntityHandle token, out byte defaultTransform, out ImmutableArray<byte> nullableTransforms) 3259nullableTransforms = default(ImmutableArray<byte>); 3695internal ImmutableArray<byte> GetMarshallingDescriptor(EntityHandle fieldOrParameterToken) 3703return ImmutableArray<byte>.Empty; 3710return 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)
64internal static string PublicKeyToString(ImmutableArray<byte> key) 143private static void AppendKey(StringBuilder sb, ImmutableArray<byte> key) 241var publicKey = default(ImmutableArray<byte>); 242var publicKeyToken = default(ImmutableArray<byte>); 330ImmutableArray<byte> value; 357ImmutableArray<byte> value; 666private static bool TryParsePublicKey(string value, out ImmutableArray<byte> key) 680private static bool TryParsePublicKeyToken(string value, out ImmutableArray<byte> token) 685token = ImmutableArray<byte>.Empty; 689ImmutableArray<byte> result; 700private static bool TryParseHexBytes(string value, out ImmutableArray<byte> result)
MetadataReference\AssemblyIdentityUtils.cs (1)
36ImmutableArray<byte> publicKeyOrToken = !publicKeyHandle.IsNil
MetadataReference\AssemblyMetadata.cs (14)
28public readonly ImmutableArray<ModuleMetadata> Modules; 35public Data(ImmutableArray<ModuleMetadata> modules, PEAssembly assembly) 59private readonly ImmutableArray<ModuleMetadata> _initialModules; 66private ImmutableArray<ModuleMetadata> _lazyPublishedModules; 91internal AssemblyMetadata(ImmutableArray<ModuleMetadata> modules) 115public static AssemblyMetadata CreateFromImage(ImmutableArray<byte> peImage) 199public static AssemblyMetadata Create(params ImmutableArray<ModuleMetadata> modules) 281public ImmutableArray<ModuleMetadata> GetModules() 286var newModules = data.Modules; 319ImmutableArray<ModuleMetadata> modules = _initialModules; 320ImmutableArray<ModuleMetadata>.Builder? moduleBuilder = null; 329var additionalModuleNames = _initialModules[0].GetModuleNames(); 412var modules = GetModules(); 451ImmutableArray<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) 355public ImmutableArray<string> GetModuleNames()
MetadataReference\PortableExecutableReference.cs (1)
89public new PortableExecutableReference WithAliases(ImmutableArray<string> aliases)
NativePdbWriter\PdbWriter.cs (4)
105var localScopes = methodBody.LocalScopes; 420var allAliases = _metadataWriter.Context.Module.GetAssemblyReferenceAliases(_metadataWriter.Context); 460private void DefineLocalScopes(ImmutableArray<LocalScope> scopes, StandaloneSignatureHandle localSignatureHandleOpt) 664private 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 (90)
172private static ImmutableArray<BasicBlock> ToImmutableBlocksAndFree(ArrayBuilder<BasicBlockBuilder> blockBuilders) 1421return result ?? MakeInvalidOperation(originalOperation.Syntax, originalOperation.Type, ImmutableArray<IOperation>.Empty); 1424private void VisitStatements(ImmutableArray<IOperation> statements) 1447private bool VisitStatementsOneOrAll(IOperation? operation, ImmutableArray<IOperation> statements, int startIndex) 1998private void VisitAndPushArray<T>(ImmutableArray<T> array, Func<T, IOperation>? unwrapper = null) where T : IOperation 2007private ImmutableArray<T> PopArray<T>(ImmutableArray<T> originalArray, Func<IOperation, int, ImmutableArray<T>, T>? wrapper = null) where T : IOperation 2013return ImmutableArray<T>.Empty; 2029private ImmutableArray<T> VisitArray<T>(ImmutableArray<T> originalArray, Func<T, IOperation>? unwrapper = null, Func<IOperation, int, ImmutableArray<T>, T>? wrapper = null) where T : IOperation 2036ImmutableArray<T> visitedArray = PopArray(originalArray, wrapper); 2045private ImmutableArray<IArgumentOperation> VisitArguments(ImmutableArray<IArgumentOperation> arguments, bool instancePushed) 2049var visitedArguments = PopArray(arguments, RewriteArgumentFromArray); 2053private void VisitAndPushArguments(ImmutableArray<IArgumentOperation> arguments, bool instancePushed) 2100private IArgumentOperation RewriteArgumentFromArray(IOperation visitedArgument, int index, ImmutableArray<IArgumentOperation> args) 2133ImmutableArray<IOperation> visitedIndices = VisitArray(operation.Indices); 3310private static IOperation MakeInvalidOperation(SyntaxNode syntax, ITypeSymbol? type, ImmutableArray<IOperation> children) 3354ImmutableArray<IArgumentOperation>.Empty, semanticModel: null, value.Syntax, 3942return new NoneOperation(children: ImmutableArray<IOperation>.Empty, semanticModel: null, operation.Syntax, constantValue: null, isImplicit: true, type: null); 3965private void HandleUsingOperationParts(IOperation resources, IOperation body, IMethodSymbol? disposeMethod, ImmutableArray<IArgumentOperation> disposeArguments, ImmutableArray<ILocalSymbol> locals, bool isAsynchronous, 4123private void AddDisposingFinally(IOperation resource, bool requiresRuntimeConversion, ITypeSymbol iDisposable, IMethodSymbol? disposeMethod, ImmutableArray<IArgumentOperation> disposeArguments, bool isAsynchronous) 4188ImmutableArray<IArgumentOperation> args; 4197args = ImmutableArray<IArgumentOperation>.Empty; 4242disposeArguments: ImmutableArray<IArgumentOperation>.Empty, 4243locals: ImmutableArray<ILocalSymbol>.Empty, 4256arguments: ImmutableArray<IArgumentOperation>.Empty, 4322ImmutableArray<ILocalSymbol>.Empty); 4618result = new InvalidOperation(ImmutableArray<IOperation>.Empty, semanticModel: null, operation.Collection.Syntax, 4649var visitedArguments = makeArguments(info.CurrentArguments, ref instance); 4706InvocationOperation makeInvocationDroppingInstanceForStaticMethods(IMethodSymbol method, IOperation instance, ImmutableArray<IArgumentOperation> arguments) 4711InvocationOperation makeInvocation(SyntaxNode syntax, IMethodSymbol method, IOperation? instanceOpt, ImmutableArray<IArgumentOperation> arguments) 4714var visitedArguments = makeArguments(arguments, ref instanceOpt); 4721ImmutableArray<IArgumentOperation> makeArguments(ImmutableArray<IArgumentOperation> arguments, ref IOperation? instance) 4736return ImmutableArray<IArgumentOperation>.Empty; 4746ImmutableArray<ILocalSymbol> locals = operation.Locals; 5480ImmutableArray<ILocalSymbol> locals = getLocals(); 5504ImmutableArray<ILocalSymbol> getLocals() 5506ImmutableArray<ILocalSymbol> l = operation.Locals; 5748ImmutableArray<IOperation> initialization = operation.Before; 5942(IOperation? visitedInstance, ImmutableArray<IArgumentOperation> visitedArguments) = VisitInstanceWithArguments(instance, operation.Arguments); 5957(IOperation visitedInstance, ImmutableArray<IArgumentOperation> visitedArguments) handlePointerAndArguments( 5958IOperation targetPointer, ImmutableArray<IArgumentOperation> arguments) 5962ImmutableArray<IArgumentOperation> visitedArguments = VisitArguments(arguments, instancePushed: false); 5969private (IOperation? visitedInstance, ImmutableArray<IArgumentOperation> visitedArguments) VisitInstanceWithArguments(IOperation? instance, ImmutableArray<IArgumentOperation> arguments) 5977ImmutableArray<IArgumentOperation> visitedArguments = VisitArguments(arguments, instancePushed: hasInstance); 5995ImmutableArray<IArgumentOperation> visitedArgs = VisitArguments(operation.Arguments, instancePushed: false); 6015ImmutableArray<IOperation> visitedArguments = VisitArray(operation.Arguments); 6074var validKinds = ImmutableArray.Create(OperationKind.Invocation, OperationKind.DynamicInvocation, OperationKind.Increment, OperationKind.Literal, 6254ImmutableArray<IArgumentOperation> propertyArguments = PopArray(propertyReference.Arguments, RewriteArgumentFromArray); 6260ImmutableArray<IOperation> indices = PopArray(arrayElementReference.Indices); 6273ImmutableArray<IOperation> arguments = PopArray(dynamicAccess.Arguments); 6371return MakeInvalidOperation(operation.Syntax, operation.Type, ImmutableArray<IOperation>.Empty); 6377return MakeInvalidOperation(operation.Syntax, operation.Type, ImmutableArray<IOperation>.Empty); 6384return new AnonymousObjectCreationOperation(initializers: ImmutableArray<IOperation>.Empty, semanticModel: null, 6411IOperation visitedTarget = new PropertyReferenceOperation(propertyReference.Property, propertyReference.ConstrainedToType, ImmutableArray<IArgumentOperation>.Empty, visitedPropertyInstance, 6500ImmutableArray<IOperation> visitedDimensions = PopArray(operation.DimensionSizes); 6563var arguments = operation.ConstructArguments.As<IArgumentOperation>(); 6573var elements = VisitArray( 6581wrapper: (IOperation operation, int index, ImmutableArray<IOperation> elements) => 6594var creationArguments = arguments.IsDefault 6596: ImmutableArray<IOperation>.CastUp(PopArray(arguments, RewriteArgumentFromArray)); 6629return MakeInvalidOperation(operation.Syntax, operation.Type, ImmutableArray<IOperation>.Empty); 6658ImmutableArray<IOperation> rewrittenArguments = VisitArray(operation.Arguments); 6682ImmutableArray<IOperation> rewrittenArguments = VisitArray(operation.Arguments); 6794return new NoneOperation(ImmutableArray<IOperation>.Empty, semanticModel: null, operation.Syntax, operation.Type, operation.GetConstantValue(), IsImplicit(operation)); 6846var arguments = ((IObjectCreationOperation)operation.HandlerCreation).Arguments; 7018return new InvalidOperation(ImmutableArray<IOperation>.Empty, semanticModel: null, operation.Syntax, operation.Type, operation.GetConstantValue(), isImplicit: true); 7032return new InvalidOperation(ImmutableArray<IOperation>.Empty, semanticModel: null, operation.Syntax, operation.Type, operation.GetConstantValue(), isImplicit: true); 7191return MakeInvalidOperation(operation.Syntax, operation.Type, ImmutableArray<IOperation>.Empty); 7197(IOperation? visitedInstance, ImmutableArray<IArgumentOperation> visitedArguments) = VisitInstanceWithArguments(instance, operation.Arguments); 7279ImmutableArray<IArgumentOperation> arguments; 7286var value = new InvalidOperation(ImmutableArray<IOperation>.Empty, semanticModel: null, 7299arguments = ImmutableArray<IArgumentOperation>.Empty; 7387(IOperation? visitedInstance, ImmutableArray<IArgumentOperation> visitedArguments) = 7538return new InvalidOperation(ImmutableArray<IOperation>.Empty, semanticModel: null, invalidOperation.Syntax, invalidOperation.Type, invalidOperation.GetConstantValue(), IsImplicit(invalidOperation)); 7574var visitedDimensionSizes = VisitArray(clause.DimensionSizes); 7837? MakeInvalidOperation(operation.Syntax, type: _compilation.GetSpecialType(SpecialType.System_Object), ImmutableArray<IOperation>.Empty) 7839matchFailureCtor, initializer: null, ImmutableArray<IArgumentOperation>.Empty, semanticModel: null, operation.Syntax, 7884locals: ImmutableArray<ILocalSymbol>.Empty, 7977isVirtual: true, arguments: ImmutableArray<IArgumentOperation>.Empty, 7996var initializers = operation.Initializer.Initializers; 8079var visitedValue = new PropertyReferenceOperation(property, constrainedToType: null, ImmutableArray<IArgumentOperation>.Empty, oldInstance, 8105var target = new PropertyReferenceOperation(property, constrainedToType: null, ImmutableArray<IArgumentOperation>.Empty, implicitReceiver, 8113static 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)
37public ImmutableArray<IOperation> ToImmutableArray() 42return ImmutableArray<IOperation>.Empty;
Operations\IOperation.OperationList.Reversed.cs (4)
39public ImmutableArray<IOperation> ToImmutableArray() 45return ImmutableArray<IOperation>.Empty; 59static 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)
133public static ImmutableArray<ILocalSymbol> GetDeclaredVariables(this IVariableDeclarationGroupOperation declarationGroup) 153public static ImmutableArray<ILocalSymbol> GetDeclaredVariables(this IVariableDeclarationOperation declaration) 250var argumentNames = dynamicOperation.ArgumentNames; 317var 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)
83private readonly Dictionary<(ImmutableArray<byte>, bool), int> _smallMethodBodies; 87private static readonly ImmutableArray<byte> ThrowNullEncodedBody = 113_signatureIndex = new SegmentedDictionary<ISignature, KeyValuePair<BlobHandle, ImmutableArray<byte>>>(module.HintNumberOfMethodDefinitions, ReferenceEqualityComparer.Instance); //ignores field signatures 122_smallMethodBodies = new Dictionary<(ImmutableArray<byte>, bool), int>(ByteSequenceBoolTupleComparer.Instance); 420private ImmutableArray<string>.Enumerator _nonSourceDocumentNameEnumerator; 445private readonly SegmentedDictionary<ISignature, KeyValuePair<BlobHandle, ImmutableArray<byte>>> _signatureIndex; 587protected ImmutableArray<IParameterDefinition> GetParametersToEmit(IMethodDefinition methodDef) 591return ImmutableArray<IParameterDefinition>.Empty; 597private ImmutableArray<IParameterDefinition> GetParametersToEmitCore(IMethodDefinition methodDef) 600var parameters = methodDef.Parameters; 1082private BlobHandle GetMarshallingDescriptorHandle(ImmutableArray<byte> descriptor) 1109ImmutableArray<byte> signatureBlob; 1114private BlobHandle GetMethodSignatureHandleAndBlob(IMethodReference methodReference, out ImmutableArray<byte> signatureBlob) 1123KeyValuePair<BlobHandle, ImmutableArray<byte>> existing; 1193SerializeReturnValueAndParameters(signatureEncoder, signature, varargParameters: ImmutableArray<IParameterTypeInformation>.Empty); 1231private BlobHandle GetPermissionSetBlobHandle(ImmutableArray<ICustomAttribute> permissionSet) 1273KeyValuePair<BlobHandle, ImmutableArray<byte>> existing; 1284SerializeReturnValueAndParameters(encoder, propertyDef, ImmutableArray<IParameterTypeInformation>.Empty); 1286var blob = builder.ToImmutableArray(); 1724var typeSystemRowCounts = metadata.GetRowCounts(); 1869public virtual void PopulateEncTables(ImmutableArray<int> typeSystemRowCounts) 1881public PortablePdbBuilder GetPortablePdbBuilder(ImmutableArray<int> typeSystemRowCounts, MethodDefinitionHandle debugEntryPoint, Func<IEnumerable<Blob>, BlobContentId> deterministicIdProviderOpt) 1911private ImmutableArray<IGenericParameter> GetSortedGenericParameters() 1929var sortedGenericParameters = GetSortedGenericParameters(); 2013private void PopulateCustomAttributeTableRows(ImmutableArray<IGenericParameter> sortedGenericParameters) 2235var exportedTypes = module.GetExportedTypes(Context); 2464ImmutableArray<IGenericParameter> sortedGenericParameters) 3051var exceptionRegions = methodBody.ExceptionRegions; 3097var localVariables = body.LocalVariables; 3148private static byte ReadByte(ImmutableArray<byte> buffer, int pos) 3153private static int ReadInt32(ImmutableArray<byte> buffer, int pos) 3286private void WriteInstructions(Blob finalIL, ImmutableArray<byte> generatedIL, ref UserStringHandle mvidStringHandle, ref Blob mvidStringFixup) 3426private void SerializeMethodBodyExceptionHandlerTable(ExceptionRegionEncoder encoder, ImmutableArray<ExceptionHandlerRegion> regions) 3443private static bool MayUseSmallExceptionHeaders(ImmutableArray<ExceptionHandlerRegion> exceptionRegions) 3512var parameters = customAttribute.Constructor(Context, reportDiagnostics: false).GetParameters(Context); 3513var arguments = customAttribute.GetArguments(Context); 3789private void SerializePermissionSet(ImmutableArray<ICustomAttribute> permissionSet, BlobBuilder writer) 3818private void SerializeReturnValueAndParameters(MethodSignatureEncoder encoder, ISignature signature, ImmutableArray<IParameterTypeInformation> varargParameters) 3820var declaredParameters = signature.GetParameters(Context); 3903SerializeReturnValueAndParameters(signatureEncoder, signature, varargParameters: ImmutableArray<IParameterTypeInformation>.Empty); 4160private void SerializeCustomModifiers(CustomModifiersEncoder encoder, ImmutableArray<ICustomModifier> modifiers) 4204ImmutableArray<LocalSlotDebugInfo> encLocalSlots; 4208var encSlotInfo = methodBody.StateMachineHoistedLocalSlots; 4226internal static ImmutableArray<LocalSlotDebugInfo> GetLocalSlotDebugInfos(ImmutableArray<ILocalDefinition> locals) 4230return ImmutableArray<LocalSlotDebugInfo>.Empty; 4236internal static ImmutableArray<LocalSlotDebugInfo> GetLocalSlotDebugInfos(ImmutableArray<EncHoistedLocalInfo> locals) 4240return ImmutableArray<LocalSlotDebugInfo>.Empty; 4380private class ByteSequenceBoolTupleComparer : IEqualityComparer<(ImmutableArray<byte>, bool)> 4388bool IEqualityComparer<(ImmutableArray<byte>, bool)>.Equals((ImmutableArray<byte>, bool) x, (ImmutableArray<byte>, bool) y) 4393int 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\MethodDefinitionBase.cs (31)
19public MethodDefinitionBase(ITypeDefinition containingTypeDefinition, ushort maxStack, ImmutableArray<byte> il) 66public virtual ImmutableArray<IParameterDefinition> Parameters => ImmutableArray<IParameterDefinition>.Empty; 77public ImmutableArray<byte> ReturnValueMarshallingDescriptor => default; 89public ImmutableArray<IParameterTypeInformation> ExtraParameters => ImmutableArray<IParameterTypeInformation>.Empty; 99public ImmutableArray<ICustomModifier> ReturnValueCustomModifiers => ImmutableArray<ICustomModifier>.Empty; 101public ImmutableArray<ICustomModifier> RefCustomModifiers => ImmutableArray<ICustomModifier>.Empty; 117public ImmutableArray<IParameterTypeInformation> GetParameters(EmitContext context) => Parameters.CastArray<IParameterTypeInformation>(); 129public ImmutableArray<byte> IL { get; } 133public ImmutableArray<ExceptionHandlerRegion> ExceptionRegions => ImmutableArray<ExceptionHandlerRegion>.Empty; 139public ImmutableArray<ILocalDefinition> LocalVariables => ImmutableArray<ILocalDefinition>.Empty; 143public ImmutableArray<SequencePoint> SequencePoints => ImmutableArray<SequencePoint>.Empty; 147public ImmutableArray<LocalScope> LocalScopes => ImmutableArray<LocalScope>.Empty; 153public ImmutableArray<StateMachineHoistedLocalScope> StateMachineHoistedLocalScopes => default; 157public ImmutableArray<EncHoistedLocalInfo> StateMachineHoistedLocalSlots => default; 159public ImmutableArray<ITypeReference> StateMachineAwaiterSlots => default; 161public ImmutableArray<EncClosureInfo> ClosureDebugInfo => ImmutableArray<EncClosureInfo>.Empty; 163public ImmutableArray<EncLambdaInfo> LambdaDebugInfo => ImmutableArray<EncLambdaInfo>.Empty; 165public ImmutableArray<LambdaRuntimeRudeEditInfo> OrderedLambdaRuntimeRudeEdits => ImmutableArray<LambdaRuntimeRudeEditInfo>.Empty; 169public ImmutableArray<SourceSpan> CodeCoverageSpans => ImmutableArray<SourceSpan>.Empty;
PEWriter\ModifiedTypeReference.cs (3)
19private readonly ImmutableArray<ICustomModifier> _customModifiers; 21public ModifiedTypeReference(ITypeReference modifiedType, ImmutableArray<ICustomModifier> customModifiers) 30ImmutableArray<ICustomModifier> IModifiedTypeReference.CustomModifiers
PEWriter\ParameterDefinitionBase.cs (3)
22public virtual ImmutableArray<byte> MarshallingDescriptor => default; 25public virtual ImmutableArray<Cci.ICustomModifier> CustomModifiers => []; 26public virtual ImmutableArray<Cci.ICustomModifier> RefCustomModifiers => [];
PEWriter\PeWriter.cs (2)
197var portablePdbContentHash = default(ImmutableArray<byte>);
PEWriter\ReferenceIndexer.cs (1)
127private void VisitImports(ImmutableArray<UsedNamespaceOrType> imports)
PEWriter\ReturnValueParameter.cs (3)
25public override ImmutableArray<Cci.ICustomModifier> RefCustomModifiers 30public override ImmutableArray<Cci.ICustomModifier> CustomModifiers 55public override ImmutableArray<byte> MarshallingDescriptor
PEWriter\RootModuleType.cs (1)
30public void SetStaticConstructorBody(ImmutableArray<byte> il)
PEWriter\StaticConstructor.cs (1)
11ITypeDefinition containingTypeDefinition, ushort maxStack, ImmutableArray<byte> il)
PEWriter\Types.cs (9)
50ImmutableArray<int> LowerBounds 70ImmutableArray<int> Sizes 102ImmutableArray<ICustomModifier> CustomModifiers 110ImmutableArray<ICustomModifier> RefCustomModifiers 214ImmutableArray<ITypeReference> GetGenericArguments(EmitContext context); 387ImmutableArray<ICustomModifier> CustomModifiers { get; } 440public ImmutableArray<ICustomAttribute> Attributes { get; } 444ImmutableArray<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)
22private readonly ImmutableArray<AssemblyData> _referencedAssemblyData; 25private readonly ImmutableArray<AssemblyIdentity> _referencedAssemblies; 29ImmutableArray<AssemblyData> referencedAssemblyData, 30ImmutableArray<PEModule> modules) 65public override ImmutableArray<AssemblyIdentity> AssemblyReferences 73public 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)
62private readonly ImmutableArray<string> _aliasesOpt; 63private readonly ImmutableArray<string> _recursiveAliasesOpt; 64private readonly ImmutableArray<MetadataReference> _mergedReferencesOpt; 72_aliasesOpt = default(ImmutableArray<string>); 73_recursiveAliasesOpt = default(ImmutableArray<string>); 74_mergedReferencesOpt = default(ImmutableArray<MetadataReference>); 78public ResolvedReference(int index, MetadataImageKind kind, ImmutableArray<string> aliasesOpt, ImmutableArray<string> recursiveAliasesOpt, ImmutableArray<MetadataReference> mergedReferences) 97public ImmutableArray<string> AliasesOpt 111public ImmutableArray<string> RecursiveAliasesOpt 120public ImmutableArray<MetadataReference> MergedReferences 166private static string DisplayAliases(ImmutableArray<string> aliasesOpt, string name) 211protected ImmutableArray<ResolvedReference> ResolveMetadataReferences( 214out ImmutableArray<MetadataReference> references, 216out ImmutableArray<MetadataReference> boundReferenceDirectives, 217out ImmutableArray<AssemblyData> assemblies, 218out ImmutableArray<PEModule> modules, 222ImmutableArray<Location> referenceDirectiveLocations; 403boundReferenceDirectives = ImmutableArray<MetadataReference>.Empty; 429modules = ImmutableArray<PEModule>.Empty; 442ImmutableArray<string> aliasesOpt, recursiveAliasesOpt; 443var mergedReferences = ImmutableArray<MetadataReference>.Empty; 447aliasesOpt = mergedProperties.AliasesOpt?.ToImmutableAndFree() ?? default(ImmutableArray<string>); 448recursiveAliasesOpt = mergedProperties.RecursiveAliasesOpt?.ToImmutableAndFree() ?? default(ImmutableArray<string>); 457aliasesOpt = default(ImmutableArray<string>); 463recursiveAliasesOpt = default(ImmutableArray<string>); 792out ImmutableArray<MetadataReference> references, 794out ImmutableArray<Location> referenceDirectiveLocations) 856referenceDirectiveLocations = referenceDirectiveLocationsBuilder?.ToImmutableAndFree() ?? ImmutableArray<Location>.Empty; 877var references = compilation.Options.MetadataReferenceResolver.ResolveReference(reference, basePath, MetadataReferenceProperties.Assembly.WithRecursiveAliases(true)); 893ImmutableArray<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)
148internal ImmutableArray<GeneratedSourceText> ToImmutableAndFree() => _sourcesAdded.ToImmutableAndFree(); 150internal ImmutableArray<GeneratedSourceText> ToImmutable() => _sourcesAdded.ToImmutable();
SourceGeneration\CompilationCache.cs (11)
40private readonly ImmutableArray<SyntaxTree> _postInitTrees; 41private readonly ImmutableArray<PreCompCacheKey> _preCompKeys; 48ImmutableArray<SyntaxTree> postInitTrees, 49ImmutableArray<PreCompCacheKey> preCompKeys) 120var preCompKeys = _preCompKeys.ToImmutableAndFree(); 121var postInitTrees = _postInitTrees.ToImmutableAndFree(); 122var preCompTreesToAdd = _preCompTreesToAdd.ToImmutableAndFree(); 131return new CompilationCache(_compilationWithPostInit, _inputCompilation, ImmutableArray<SyntaxTree>.Empty, ImmutableArray<PreCompCacheKey>.Empty); 155private static bool ReferenceSequenceEqual<T>(ImmutableArray<T> a, ImmutableArray<T> b) where T : class
SourceGeneration\GeneratorAdaptor.cs (1)
88public ImmutableArray<AdditionalText> AdditionalTexts;
SourceGeneration\GeneratorContexts.cs (4)
26internal GeneratorExecutionContext(Compilation compilation, ParseOptions parseOptions, ImmutableArray<AdditionalText> additionalTexts, AnalyzerConfigOptionsProvider optionsProvider, ISyntaxContextReceiver? syntaxReceiver, string sourceExtension, SourceHashAlgorithm checksumAlgorithm, CancellationToken cancellationToken = default) 58public ImmutableArray<AdditionalText> AdditionalFiles { get; } 114internal (ImmutableArray<GeneratedSourceText> sources, ImmutableArray<Diagnostic> diagnostics) ToImmutableAndFree()
SourceGeneration\GeneratorDriver.cs (39)
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) 96public GeneratorDriver AddGenerators(ImmutableArray<ISourceGenerator> generators) 98var incrementalGenerators = GetIncrementalGenerators(generators, SourceExtension); 105public GeneratorDriver ReplaceGenerators(ImmutableArray<ISourceGenerator> generators) 107var incrementalGenerators = GetIncrementalGenerators(generators, SourceExtension); 127public GeneratorDriver RemoveGenerators(ImmutableArray<ISourceGenerator> generators) 129var newGenerators = _state.Generators; 130var newStates = _state.GeneratorStates; 131var newIncrementalGenerators = _state.IncrementalGenerators; 146public GeneratorDriver AddAdditionalTexts(ImmutableArray<AdditionalText> additionalTexts) 152public GeneratorDriver RemoveAdditionalTexts(ImmutableArray<AdditionalText> additionalTexts) 173public GeneratorDriver ReplaceAdditionalTexts(ImmutableArray<AdditionalText> newTexts) => FromState(_state.With(additionalTexts: newTexts)); 185var results = _state.Generators.ZipAsArray( 198static ImmutableArray<GeneratedSourceResult> getGeneratorSources(GeneratorState generatorState) 227var generatorTimings = _state.Generators.ZipAsArray(_state.GeneratorStates, (generator, generatorState) => new GeneratorTimingInfo(generator, generatorState.ElapsedTime)); 269var postInitSources = ImmutableArray<GeneratedSyntaxTree>.Empty; 283var outputNodes = outputBuilder.ToImmutableAndFree(); 284var inputNodes = inputBuilder.ToImmutableAndFree(); 307var reparsedInitSources = generatorState.PostInitTrees.Length > 0 311var reparsedPreCompilationSources = generatorState.PreCompilationTrees.Length > 0 369var parsedSources = ReuseOrParsePreCompilationSources(state.Generators[i], sources, generatorState.PreCompilationTrees, cancellationToken); 426(var sources, var generatorDiagnostics, var generatorRunStateTable, var hostOutputs) = context.ToImmutableAndFree(); 462static ImmutableHashSet<string> collectHintNames(ImmutableArray<GeneratedSyntaxTree> trees, ImmutableArray<GeneratedSyntaxTree> additionalTrees = default) 485private IncrementalExecutionContext UpdateOutputs(ImmutableArray<IIncrementalGeneratorOutputNode> outputNodes, IncrementalGeneratorOutputKind outputKind, GeneratorRunStateTable.Builder generatorRunStateBuilder, ImmutableHashSet<string> reservedHintNames, CancellationToken cancellationToken, DriverStateTable.Builder? driverStateBuilder = null) 510private ImmutableArray<GeneratedSyntaxTree> ParseAdditionalSources(ISourceGenerator generator, ImmutableArray<GeneratedSourceText> generatedSources, CancellationToken cancellationToken) 546private ImmutableArray<GeneratedSyntaxTree> ReuseOrParsePreCompilationSources(ISourceGenerator generator, ImmutableArray<GeneratedSourceText> sources, ImmutableArray<GeneratedSyntaxTree> previousTrees, CancellationToken cancellationToken) 623private static ImmutableArray<Diagnostic> FilterDiagnostics(Compilation compilation, ImmutableArray<Diagnostic> generatorDiagnostics, DiagnosticBag? driverDiagnostics, CancellationToken cancellationToken) 668private static ImmutableArray<IIncrementalGenerator> GetIncrementalGenerators(ImmutableArray<ISourceGenerator> generators, string sourceExtension)
SourceGeneration\GeneratorDriverState.cs (12)
17ImmutableArray<ISourceGenerator> sourceGenerators, 18ImmutableArray<IIncrementalGenerator> incrementalGenerators, 19ImmutableArray<AdditionalText> additionalTexts, 20ImmutableArray<GeneratorState> generatorStates, 51internal readonly ImmutableArray<ISourceGenerator> Generators; 60internal readonly ImmutableArray<IIncrementalGenerator> IncrementalGenerators; 69internal readonly ImmutableArray<GeneratorState> GeneratorStates; 74internal readonly ImmutableArray<AdditionalText> AdditionalTexts; 116ImmutableArray<ISourceGenerator>? sourceGenerators = null, 117ImmutableArray<IIncrementalGenerator>? incrementalGenerators = null, 118ImmutableArray<GeneratorState>? generatorStates = null, 119ImmutableArray<AdditionalText>? additionalTexts = null,
SourceGeneration\GeneratorState.cs (45)
21public static readonly GeneratorState Empty = new GeneratorState(postInitTrees: ImmutableArray<GeneratedSyntaxTree>.Empty, 22ImmutableArray<SyntaxInputNode>.Empty, 23ImmutableArray<IIncrementalGeneratorOutputNode>.Empty, 24preCompilationTrees: ImmutableArray<GeneratedSyntaxTree>.Empty, 25generatedTrees: ImmutableArray<GeneratedSyntaxTree>.Empty, 26ImmutableArray<Diagnostic>.Empty, 27ImmutableDictionary<string, ImmutableArray<IncrementalGeneratorRunStep>>.Empty, 28ImmutableDictionary<string, ImmutableArray<IncrementalGeneratorRunStep>>.Empty, 37public GeneratorState(ImmutableArray<GeneratedSyntaxTree> postInitTrees, ImmutableArray<SyntaxInputNode> inputNodes, ImmutableArray<IIncrementalGeneratorOutputNode> outputNodes) 38: this(postInitTrees, inputNodes, outputNodes, ImmutableArray<GeneratedSyntaxTree>.Empty) 45public GeneratorState(ImmutableArray<GeneratedSyntaxTree> postInitTrees, ImmutableArray<SyntaxInputNode> inputNodes, ImmutableArray<IIncrementalGeneratorOutputNode> outputNodes, ImmutableArray<GeneratedSyntaxTree> preCompilationTrees) 50generatedTrees: ImmutableArray<GeneratedSyntaxTree>.Empty, 51ImmutableArray<Diagnostic>.Empty, 52ImmutableDictionary<string, ImmutableArray<IncrementalGeneratorRunStep>>.Empty, 53ImmutableDictionary<string, ImmutableArray<IncrementalGeneratorRunStep>>.Empty, 62ImmutableArray<GeneratedSyntaxTree> postInitTrees, 63ImmutableArray<SyntaxInputNode> inputNodes, 64ImmutableArray<IIncrementalGeneratorOutputNode> outputNodes, 65ImmutableArray<GeneratedSyntaxTree> preCompilationTrees, 66ImmutableArray<GeneratedSyntaxTree> generatedTrees, 67ImmutableArray<Diagnostic> diagnostics, 68ImmutableDictionary<string, ImmutableArray<IncrementalGeneratorRunStep>> executedSteps, 69ImmutableDictionary<string, ImmutableArray<IncrementalGeneratorRunStep>> outputSteps, 90public GeneratorState WithPreCompilationTrees(ImmutableArray<GeneratedSyntaxTree> preCompilationTrees) 106public GeneratorState WithResults(ImmutableArray<GeneratedSyntaxTree> generatedTrees, 107ImmutableArray<Diagnostic> diagnostics, 108ImmutableDictionary<string, ImmutableArray<IncrementalGeneratorRunStep>> executedSteps, 109ImmutableDictionary<string, ImmutableArray<IncrementalGeneratorRunStep>> outputSteps, 135preCompilationTrees: phase == GeneratorRunPhase.Standard ? this.PreCompilationTrees : ImmutableArray<GeneratedSyntaxTree>.Empty, 136generatedTrees: ImmutableArray<GeneratedSyntaxTree>.Empty, 138ImmutableDictionary<string, ImmutableArray<IncrementalGeneratorRunStep>>.Empty, 139ImmutableDictionary<string, ImmutableArray<IncrementalGeneratorRunStep>>.Empty, 147internal ImmutableArray<GeneratedSyntaxTree> PostInitTrees { get; } 149internal ImmutableArray<SyntaxInputNode> InputNodes { get; } 151internal ImmutableArray<IIncrementalGeneratorOutputNode> OutputNodes { get; } 153internal ImmutableArray<GeneratedSyntaxTree> GeneratedTrees { get; } 155internal ImmutableArray<GeneratedSyntaxTree> PreCompilationTrees { get; } 161internal ImmutableArray<Diagnostic> Diagnostics { get; } 163internal ImmutableDictionary<string, ImmutableArray<IncrementalGeneratorRunStep>> ExecutedSteps { get; } 165internal ImmutableDictionary<string, ImmutableArray<IncrementalGeneratorRunStep>> OutputSteps { get; }
SourceGeneration\GlobalAliases.cs (5)
19public static readonly GlobalAliases Empty = new(ImmutableArray<(string aliasName, string symbolName)>.Empty); 21public readonly ImmutableArray<(string aliasName, string symbolName)> AliasAndSymbolNames; 25private GlobalAliases(ImmutableArray<(string aliasName, string symbolName)> aliasAndSymbolNames) 30public static GlobalAliases Create(ImmutableArray<(string aliasName, string symbolName)> aliasAndSymbolNames) 35public static GlobalAliases Create(ImmutableArray<GlobalAliases> aliasesArray)
SourceGeneration\IncrementalContexts.cs (2)
442internal (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\AbstractSourceOutputNode.cs (1)
54var inputs = tableBuilder.TrackIncrementalSteps ? ImmutableArray.Create((entry.Step!, entry.OutputIndex)) : default;
SourceGeneration\Nodes\BatchNode.cs (18)
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) 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\DriverStateTable.cs (3)
31private readonly ImmutableArray<SyntaxInputNode> _syntaxInputNodes; 62internal ImmutableArray<MetadataReference> InitialMetadataReferences => _initialCompilation.ExternalReferences; 73public Builder(GeneratorDriverState driverState, Compilation initialCompilation, ImmutableArray<SyntaxInputNode> syntaxInputNodes, CancellationToken cancellationToken = default)
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 (10)
24private readonly Func<DriverStateTable.Builder, ImmutableArray<T>> _getInput; 30public InputNode(Func<DriverStateTable.Builder, ImmutableArray<T>> getInput, IEqualityComparer<T>? inputComparer = null) 36Func<DriverStateTable.Builder, ImmutableArray<T>> getInput, 57var inputItems = _getInput(graphState); 75var noInputStepsStepInfo = tableBuilder.TrackIncrementalSteps ? ImmutableArray<(IncrementalGeneratorRunStep, int)>.Empty : default; 84ImmutableArray<T> replacements = default; 149ImmutableArray<T> getNewInputItems(ImmutableArray<T> inputs, NodeStateTable<T> previous) 179private void LogTables(NodeStateTable<T>? previousTable, NodeStateTable<T> newTable, ImmutableArray<T> inputs)
SourceGeneration\Nodes\NodeStateTable.cs (32)
53ImmutableArray<IncrementalGeneratorRunStep> Steps { get; } 64internal static NodeStateTable<T> Empty { get; } = new NodeStateTable<T>(ImmutableArray<TableEntry>.Empty, ImmutableArray<IncrementalGeneratorRunStep>.Empty, hasTrackedSteps: true, isCached: false); 66private readonly ImmutableArray<TableEntry> _states; 68private NodeStateTable(ImmutableArray<TableEntry> states, ImmutableArray<IncrementalGeneratorRunStep> steps, bool hasTrackedSteps, bool isCached) 89public ImmutableArray<IncrementalGeneratorRunStep> Steps { get; } 173return new NodeStateTable<T>(compacted.ToImmutableAndFree(), ImmutableArray<IncrementalGeneratorRunStep>.Empty, hasTrackedSteps: false, isCached: true); 193var inputs = ImmutableArray.Create((entry.Step!, entry.OutputIndex)); 269public bool TryRemoveEntries(TimeSpan elapsedTime, ImmutableArray<(IncrementalGeneratorRunStep InputStep, int OutputIndex)> stepInputs) 285public bool TryRemoveEntries(TimeSpan elapsedTime, ImmutableArray<(IncrementalGeneratorRunStep InputStep, int OutputIndex)> stepInputs, out OneOrMany<T> entries) 297public bool TryUseCachedEntries(TimeSpan elapsedTime, ImmutableArray<(IncrementalGeneratorRunStep InputStep, int OutputIndex)> stepInputs) 312internal bool TryUseCachedEntries(TimeSpan elapsedTime, ImmutableArray<(IncrementalGeneratorRunStep InputStep, int OutputIndex)> stepInputs, out TableEntry entry) 324public bool TryModifyEntry(T value, TimeSpan elapsedTime, ImmutableArray<(IncrementalGeneratorRunStep InputStep, int OutputIndex)> stepInputs, EntryState overallInputState) 345public bool TryModifyEntries(ImmutableArray<T> outputs, TimeSpan elapsedTime, ImmutableArray<(IncrementalGeneratorRunStep InputStep, int OutputIndex)> stepInputs, EntryState overallInputState) 437public bool TryModifyEntries(ImmutableArray<T> outputs, TimeSpan elapsedTime, ImmutableArray<(IncrementalGeneratorRunStep InputStep, int OutputIndex)> stepInputs, EntryState overallInputState, out TableEntry entry) 449public void AddEntry(T value, EntryState state, TimeSpan elapsedTime, ImmutableArray<(IncrementalGeneratorRunStep InputStep, int OutputIndex)> stepInputs, EntryState overallInputState) 456public TableEntry AddEntries(ImmutableArray<T> values, EntryState state, TimeSpan elapsedTime, ImmutableArray<(IncrementalGeneratorRunStep InputStep, int OutputIndex)> stepInputs, EntryState overallInputState) 476private void RecordStepInfoForLastEntry(TimeSpan elapsedTime, ImmutableArray<(IncrementalGeneratorRunStep InputStep, int OutputIndex)> stepInputs, EntryState overallInputState) 502public IReadOnlyList<IncrementalGeneratorRunStep> Steps => (IReadOnlyList<IncrementalGeneratorRunStep>?)_steps ?? ImmutableArray<IncrementalGeneratorRunStep>.Empty; 538ImmutableArray<TableEntry> finalStates; 576private static readonly ImmutableArray<EntryState> s_allAddedEntries = ImmutableArray.Create(EntryState.Added); 577private static readonly ImmutableArray<EntryState> s_allCachedEntries = ImmutableArray.Create(EntryState.Cached); 578private static readonly ImmutableArray<EntryState> s_allModifiedEntries = ImmutableArray.Create(EntryState.Modified); 583private static readonly ImmutableArray<EntryState> s_allRemovedEntries = ImmutableArray.Create(EntryState.Removed); 588private static readonly ImmutableArray<EntryState> s_allRemovedDueToInputRemoval = ImmutableArray.Create(EntryState.Removed); 597private readonly ImmutableArray<EntryState> _states; 602private TableEntry(OneOrMany<T> items, ImmutableArray<EntryState> states, bool anyRemoved) 663private static ImmutableArray<EntryState> GetSingleArray(EntryState state) => state switch
SourceGeneration\Nodes\PredicateSyntaxStrategy.cs (4)
74var noInputStepsStepInfo = _filterTable.TrackIncrementalSteps ? ImmutableArray<(IncrementalGeneratorRunStep, int)>.Empty : default; 92var nodes = getFilteredNodes(root.Value, _owner._filterFunc, cancellationToken); 123static ImmutableArray<SyntaxNode> getFilteredNodes(SyntaxNode root, Func<SyntaxNode, CancellationToken, bool> func, CancellationToken token)
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) 122var attributes = getMatchingAttributes( 143static ImmutableArray<AttributeData> getMatchingAttributes( 169void 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) 73var inputs = tableBuilder.TrackIncrementalSteps ? ImmutableArray.Create((entry.Step!, entry.OutputIndex)) : default; 82ImmutableArray<TOutput> newOutputs;
SourceGeneration\Nodes\ValueSourceExtensions.cs (10)
44/// <param name="selector">A function that transforms a <typeparamref name="TSource"/> into an <see cref="ImmutableArray{TResult}"/></param> 46public 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); 66/// <param name="selector">A function that transforms each <typeparamref name="TSource"/> into an <see cref="ImmutableArray{TResult}"/></param> 68public 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); 82/// Collects all values from an <see cref="IncrementalValuesProvider{TSource}"/> into a single <see cref="IncrementalValueProvider{T}"/> containing an <see cref="ImmutableArray{TSource}"/>. 87/// <returns>A new <see cref="IncrementalValueProvider{T}"/> that provides an <see cref="ImmutableArray{TSource}"/> containing all values</returns> 88public static IncrementalValueProvider<ImmutableArray<TSource>> Collect<TSource>(this IncrementalValuesProvider<TSource> source) => new IncrementalValueProvider<ImmutableArray<TSource>>(new BatchNode<TSource>(source.Node), source.CatchAnalyzerExceptions); 119public static IncrementalValuesProvider<TSource> Where<TSource>(this IncrementalValuesProvider<TSource> source, Func<TSource, bool> predicate) => source.SelectMany((item, _) => predicate(item) ? ImmutableArray.Create(item) : ImmutableArray<TSource>.Empty); 121internal 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; } 154public ImmutableDictionary<string, ImmutableArray<IncrementalGeneratorRunStep>> TrackedSteps { get; } 162public ImmutableDictionary<string, ImmutableArray<IncrementalGeneratorRunStep>> TrackedOutputSteps { get; } 201internal GeneratorDriverTimingInfo(TimeSpan elapsedTime, ImmutableArray<GeneratorTimingInfo> generatorTimes) 218public 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) 173public TimeSpan GetRuntimeAdjustment(ImmutableArray<SyntaxInputNode> inputNodes)
SourceGeneration\UserFunction.cs (1)
78internal 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\roslyn\src\Compilers\Core\AnalyzerDriver\DeclarationComputer.cs (2)
25var codeBlocks = ImmutableArray<SyntaxNode>.Empty;
src\roslyn\src\Compilers\Core\AnalyzerDriver\DeclarationInfo.cs (2)
15internal DeclarationInfo(SyntaxNode declaredNode, ImmutableArray<SyntaxNode> executableCodeBlocks, ISymbol? declaredSymbol) 37public ImmutableArray<SyntaxNode> ExecutableCodeBlocks { get; }
src\roslyn\src\Dependencies\CodeAnalysis.Debugging\CustomDebugInfoEncoder.cs (2)
108public void AddStateMachineHoistedLocalScopes(ImmutableArray<StateMachineHoistedLocalScope> scopes) 165public void AddTupleElementNames(IReadOnlyCollection<(string LocalName, int SlotIndex, int ScopeStart, int ScopeEnd, ImmutableArray<string> Names)> tupleLocals)
src\roslyn\src\Dependencies\CodeAnalysis.Debugging\CustomDebugInfoReader.cs (29)
56public static ImmutableArray<byte> TryGetCustomDebugInfoRecord(byte[] customDebugInfo, CustomDebugInfoKind recordKind) 127public static ImmutableArray<short> DecodeUsingRecord(ImmutableArray<byte> bytes) 149public static int DecodeForwardRecord(ImmutableArray<byte> bytes) 163public static int DecodeForwardToModuleRecord(ImmutableArray<byte> bytes) 175public static ImmutableArray<StateMachineHoistedLocalScope> DecodeStateMachineHoistedLocalScopesRecord(ImmutableArray<byte> bytes) 214public static string DecodeForwardIteratorRecord(ImmutableArray<byte> bytes) 243public static ImmutableArray<DynamicLocalInfo> DecodeDynamicLocalsRecord(ImmutableArray<byte> bytes) 302public static ImmutableArray<TupleElementNamesInfo> DecodeTupleElementNamesRecord(ImmutableArray<byte> bytes) 315private static TupleElementNamesInfo DecodeTupleElementNamesInfo(ImmutableArray<byte> bytes, ref int offset) 339public static ImmutableArray<ImmutableArray<string>> GetCSharpGroupedImportStrings<TArg>( 343Func<int, TArg, ImmutableArray<string>> getMethodImportStrings, 344out ImmutableArray<string> externAliasStrings) 348ImmutableArray<short> groupSizes = default; 397var allModuleInfoImportStrings = getMethodImportStrings(moduleInfoMethodToken, arg); 421var importStrings = getMethodImportStrings(methodToken, arg); 424var resultBuilder = ArrayBuilder<ImmutableArray<string>>.GetInstance(groupSizes.Length); 487public static ImmutableArray<string> GetVisualBasicImportStrings<TArg>( 490Func<int, TArg, ImmutableArray<string>> getMethodImportStrings) 492var importStrings = getMethodImportStrings(methodToken, arg); 497return ImmutableArray<string>.Empty; 520private static int ReadInt32(ImmutableArray<byte> bytes, ref int offset) 532private static short ReadInt16(ImmutableArray<byte> bytes, ref int offset) 544private static byte ReadByte(ImmutableArray<byte> bytes, ref int offset) 853private static string ReadUtf8String(ImmutableArray<byte> bytes, ref int offset)
src\roslyn\src\Dependencies\CodeAnalysis.Debugging\CustomDebugInfoRecord.cs (2)
15public readonly ImmutableArray<byte> Data; 17public CustomDebugInfoRecord(CustomDebugInfoKind kind, byte version, ImmutableArray<byte> data)
src\roslyn\src\Dependencies\CodeAnalysis.Debugging\DynamicLocalInfo.cs (2)
13public readonly ImmutableArray<bool> Flags; 17public DynamicLocalInfo(ImmutableArray<bool> flags, int slotId, string localName)
src\roslyn\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\roslyn\src\Dependencies\Collections\Extensions\FixedSizeArrayBuilder.cs (5)
19/// A bare-bones array builder, focused on the case of producing <see cref="ImmutableArray{T}"/>s where the final array 37/// The builder will be moved to an array (see <see cref="MoveToArray"/>) or <see cref="ImmutableArray{T}"/> (see <see 70public void AddRange(ImmutableArray<T> values) 116/// Moves the underlying buffer out of control of this type, into the returned <see cref="ImmutableArray{T}"/>. It 122public ImmutableArray<T> MoveToImmutable()
src\roslyn\src\Dependencies\Collections\Extensions\ICollectionExtensions.cs (1)
76public static void AddRange<T>(this ICollection<T> collection, ImmutableArray<T> values)
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (26)
60public static ImmutableArray<T> ToImmutableArrayOrEmpty<T>(this IEnumerable<T>? items) 67if (items is ImmutableArray<T> array) 82if (items is ImmutableArray<T> array) 271/// <seealso cref="Microsoft.CodeAnalysis.ImmutableArrayExtensions.HasDuplicates{TItem, TValue}(ImmutableArray{TItem}, Func{TItem, TValue}, IEqualityComparer{TValue})"/> 376public static ImmutableArray<T> WhereAsArray<T>(this IEnumerable<T> values, Func<T, bool> predicate) 390public static ImmutableArray<T> WhereAsArray<T, TArg>(this IEnumerable<T> values, Func<T, TArg, bool> predicate, TArg arg) 407public static ImmutableArray<TResult> SelectAsArray<TSource, TResult>(this IEnumerable<TSource>? source, Func<TSource, TResult> selector) 417public static ImmutableArray<TResult> SelectAsArray<TItem, TResult>(this IEnumerable<TItem>? source, Func<TItem, bool> predicate, Func<TItem, TResult> selector) 431public static ImmutableArray<TResult> SelectAsArray<TSource, TResult>(this IEnumerable<TSource>? source, Func<TSource, int, TResult> selector) 446public static ImmutableArray<TResult> SelectAsArray<TSource, TResult, TArg>(this IEnumerable<TSource>? source, Func<TSource, TArg, TResult> selector, TArg arg) 449return ImmutableArray<TResult>.Empty; 461public static ImmutableArray<TResult> SelectAsArray<TSource, TResult>(this IReadOnlyCollection<TSource>? source, Func<TSource, TResult> selector) 473public static ImmutableArray<TResult> SelectAsArray<TSource, TResult, TArg>(this IReadOnlyCollection<TSource>? source, Func<TSource, TArg, TResult> selector, TArg arg) 485public static ImmutableArray<TResult> SelectManyAsArray<TSource, TResult>(this IEnumerable<TSource>? source, Func<TSource, IEnumerable<TResult>> selector) 496public static ImmutableArray<TResult> SelectManyAsArray<TItem, TArg, TResult>(this IEnumerable<TItem>? source, Func<TItem, TArg, IEnumerable<TResult>> selector, TArg arg) 507public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, IEnumerable<TResult>> selector) 520public static ImmutableArray<TResult> SelectManyAsArray<TItem, TArg, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, TArg, IEnumerable<TResult>> selector, TArg arg) 533public static ImmutableArray<TResult> SelectManyAsArray<TSource, TResult>(this IEnumerable<TSource>? source, Func<TSource, OneOrMany<TResult>> selector) 547public static async ValueTask<ImmutableArray<TResult>> SelectAsArrayAsync<TItem, TResult>(this IEnumerable<TItem> source, Func<TItem, ValueTask<TResult>> selector) 561public static async ValueTask<ImmutableArray<TResult>> SelectAsArrayAsync<TItem, TResult>(this IEnumerable<TItem> source, Func<TItem, CancellationToken, ValueTask<TResult>> selector, CancellationToken cancellationToken) 575public static async ValueTask<ImmutableArray<TResult>> SelectAsArrayAsync<TItem, TArg, TResult>(this IEnumerable<TItem> source, Func<TItem, TArg, CancellationToken, ValueTask<TResult>> selector, TArg arg, CancellationToken cancellationToken) 586public 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) 764internal static Dictionary<K, ImmutableArray<T>> ToMultiDictionary<K, T>(this IEnumerable<T> data, Func<T, K> keySelector, IEqualityComparer<K>? comparer = null) 767var dictionary = new Dictionary<K, ImmutableArray<T>>(comparer); 834/// Methods that are available on both <see cref="IEnumerable{T}"/> and <see cref="ImmutableArray{T}"/> are defined in System.Linq namespace 835/// to avoid accidental boxing of <see cref="ImmutableArray{T}"/>. The boxing would occur if the file calling these methods didn't have <c>using System.Linq</c>.
src\roslyn\src\Dependencies\Collections\Extensions\IListExtensions.cs (1)
31/// <seealso cref="ImmutableArrayExtensions.HasDuplicates{TItem, TValue}(System.Collections.Immutable.ImmutableArray{TItem}, Func{TItem, TValue}, IEqualityComparer{TValue})"/>
src\roslyn\src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (156)
24/// The collection of extension methods for the <see cref="ImmutableArray{T}"/> type 36public static ImmutableArray<T> AsImmutable<T>(this IEnumerable<T> items) 48public static ImmutableArray<T> AsImmutableOrEmpty<T>(this IEnumerable<T>? items) 52return ImmutableArray<T>.Empty; 65public static ImmutableArray<T> AsImmutableOrNull<T>(this IEnumerable<T>? items) 81public static ImmutableArray<T> AsImmutable<T>(this T[] items) 94public static ImmutableArray<T> AsImmutableOrNull<T>(this T[]? items) 110public static ImmutableArray<T> AsImmutableOrEmpty<T>(this T[]? items) 114return ImmutableArray<T>.Empty; 125public static ImmutableArray<byte> ToImmutable(this MemoryStream stream) 138public static ImmutableArray<TResult> SelectAsArray<TItem, TResult>(this ImmutableArray<TItem> items, Func<TItem, TResult> map) 153public static ImmutableArray<TResult> SelectAsArray<TItem, TArg, TResult>(this ImmutableArray<TItem> items, Func<TItem, TArg, TResult> map, TArg arg) 168public static ImmutableArray<TResult> SelectAsArray<TItem, TArg, TResult>(this ImmutableArray<TItem> items, Func<TItem, int, TArg, TResult> map, TArg arg) 198public static ImmutableArray<TResult> SelectAsArray<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, bool> predicate, Func<TItem, TResult> selector) 224public static ImmutableArray<TResult> SelectAsArray<TItem, TArg, TResult>(this ImmutableArray<TItem> array, Func<TItem, TArg, bool> predicate, Func<TItem, TArg, TResult> selector, TArg arg) 247public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, IEnumerable<TResult>> selector) 267public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, ImmutableArray<TResult>> selector) 287public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, OneOrMany<TResult>> selector) 308public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, bool> predicate, Func<TItem, IEnumerable<TResult>> selector) 332public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, bool> predicate, Func<TItem, ImmutableArray<TResult>> selector) 356public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, bool> predicate, Func<TItem, OneOrMany<TResult>> selector) 381public static ImmutableArray<TResult> SelectManyAsArray<TItem, TArg, TResult>(this ImmutableArray<TItem> array, Func<TItem, TArg, bool> predicate, Func<TItem, TArg, OneOrMany<TResult>> selector, TArg arg) 399public static async ValueTask<ImmutableArray<TResult>> SelectAsArrayAsync<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, CancellationToken, ValueTask<TResult>> selector, CancellationToken cancellationToken) 414public static async ValueTask<ImmutableArray<TResult>> SelectAsArrayAsync<TItem, TArg, TResult>(this ImmutableArray<TItem> array, Func<TItem, TArg, CancellationToken, ValueTask<TResult>> selector, TArg arg, CancellationToken cancellationToken) 426public static ValueTask<ImmutableArray<TResult>> SelectManyAsArrayAsync<TItem, TArg, TResult>(this ImmutableArray<TItem> source, Func<TItem, TArg, CancellationToken, ValueTask<ImmutableArray<TResult>>> selector, TArg arg, CancellationToken cancellationToken) 429return new ValueTask<ImmutableArray<TResult>>([]); 436async ValueTask<ImmutableArray<TResult>> CreateTaskAsync() 453public static ImmutableArray<TResult> ZipAsArray<T1, T2, TResult>(this ImmutableArray<T1> self, ImmutableArray<T2> other, Func<T1, T2, TResult> map) 473public static ImmutableArray<TResult> ZipAsArray<T1, T2, TArg, TResult>(this ImmutableArray<T1> self, ImmutableArray<T2> other, TArg arg, Func<T1, T2, int, TArg, TResult> map) 493public static ImmutableArray<T> WhereAsArray<T>(this ImmutableArray<T> array, Func<T, bool> predicate) 501public static ImmutableArray<T> WhereAsArray<T, TArg>(this ImmutableArray<T> array, Func<T, TArg, bool> predicate, TArg arg) 504private static ImmutableArray<T> WhereAsArrayImpl<T, TArg>(ImmutableArray<T> array, Func<T, bool>? predicateWithoutArg, Func<T, TArg, bool>? predicateWithArg, TArg arg) 569return ImmutableArray<T>.Empty; 573public static async Task<bool> AnyAsync<T>(this ImmutableArray<T> array, Func<T, Task<bool>> predicateAsync) 584public static async Task<bool> AnyAsync<T, TArg>(this ImmutableArray<T> array, Func<T, TArg, Task<bool>> predicateAsync, TArg arg) 595public static async ValueTask<T?> FirstOrDefaultAsync<T>(this ImmutableArray<T> array, Func<T, Task<bool>> predicateAsync) 610public static ImmutableArray<TBase> Cast<TDerived, TBase>(this ImmutableArray<TDerived> items) 613return ImmutableArray<TBase>.CastUp(items); 624public static bool SetEquals<T>(this ImmutableArray<T> array1, ImmutableArray<T> array2, IEqualityComparer<T> comparer) 665public static ImmutableArray<T> NullToEmpty<T>(this ImmutableArray<T> array) 667return array.IsDefault ? ImmutableArray<T>.Empty : array; 673public static ImmutableArray<T> NullToEmpty<T>(this ImmutableArray<T>? array) 676null or { IsDefault: true } => ImmutableArray<T>.Empty, 682internal static ImmutableArray<T> ConditionallyDeOrder<T>(this ImmutableArray<T> array) 699internal static ImmutableArray<TValue> Flatten<TKey, TValue>( 700this Dictionary<TKey, ImmutableArray<TValue>> dictionary, 723internal static ImmutableArray<T> AddRange<T>(this ImmutableArray<T> self, in TemporaryArray<T> items) 751internal static bool HasDuplicates<T>(this ImmutableArray<T> array) 754internal static bool HasDuplicates<T>(this ImmutableArray<T> array, IEqualityComparer<T> comparer) 757public static bool HasDuplicates<TItem, TValue>(this ImmutableArray<TItem> array, Func<TItem, TValue> selector) 769internal static bool HasDuplicates<TItem, TValue>(this ImmutableArray<TItem> array, Func<TItem, TValue> selector, IEqualityComparer<TValue> comparer) 826(Dictionary<TKey, object> dictionary, Dictionary<TKey, ImmutableArray<TNamespaceOrTypeSymbol>> result) 837static ImmutableArray<TNamespaceOrTypeSymbol> createMembers(object value) 848return ImmutableArray<TNamespaceOrTypeSymbol>.CastUp(builder.ToDowncastedImmutableAndFree<TNamedTypeSymbol>()); 855: ImmutableArray<TNamespaceOrTypeSymbol>.CastUp(ImmutableArray.Create((TNamedTypeSymbol)symbol)); 860internal static Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>> GetTypesFromMemberMap<TKey, TNamespaceOrTypeSymbol, TNamedTypeSymbol> 861(Dictionary<TKey, ImmutableArray<TNamespaceOrTypeSymbol>> map, IEqualityComparer<TKey> comparer) 872var dictionary = new Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>>(capacity, comparer); 876var namedTypes = getOrCreateNamedTypes(entry.Value); 883static ImmutableArray<TNamedTypeSymbol> getOrCreateNamedTypes(ImmutableArray<TNamespaceOrTypeSymbol> members) 890var membersAsNamedTypes = members.As<TNamedTypeSymbol>(); 903return ImmutableArray<TNamedTypeSymbol>.Empty; 917internal static int IndexOf<T>(this ImmutableArray<T> array, T item, IEqualityComparer<T> comparer) 920internal static bool IsSorted<T>(this ImmutableArray<T> array, Comparison<T> comparison) 923internal static bool IsSorted<T>(this ImmutableArray<T> array, IComparer<T>? comparer = null) 938public static bool IsSubsetOf<TElement>(this ImmutableArray<TElement> array, ImmutableArray<TElement> other) 983/// Extension methods that are available on both <see cref="IEnumerable{T}"/> and <see cref="ImmutableArray{T}"/> in System.Linq namespace 984/// are defined in System.Linq namespace to avoid accidental boxing of <see cref="ImmutableArray{T}"/>. 990/// Variant of <see cref="System.Linq.ImmutableArrayExtensions.FirstOrDefault{T}(ImmutableArray{T}, Func{T, bool})"/> 992public static TValue? FirstOrDefault<TValue, TArg>(this ImmutableArray<TValue> array, Func<TValue, TArg, bool> predicate, TArg arg) 1004/// Variant of <see cref="System.Linq.ImmutableArrayExtensions.Single{T}(ImmutableArray{T}, Func{T, bool})"/> 1006public static TValue Single<TValue, TArg>(this ImmutableArray<TValue> array, Func<TValue, TArg, bool> predicate, TArg arg) 1033/// Variant of <see cref="System.Linq.ImmutableArrayExtensions.SequenceEqual{TDerived, TBase}(ImmutableArray{TBase}, ImmutableArray{TDerived}, Func{TBase, TBase, bool})"/>. 1035public static bool SequenceEqual<TElement, TArg>(this ImmutableArray<TElement> array1, ImmutableArray<TElement> array2, TArg arg, Func<TElement, TElement, TArg, bool> predicate) 1066/// Specialization of <see cref="System.Linq.Enumerable.Count{TSource}(IEnumerable{TSource}, Func{TSource, bool})"/> for <see cref="ImmutableArray{T}"/>. 1068public static int Count<T>(this ImmutableArray<T> items, Func<T, bool> predicate) 1084/// Specialization of <see cref="System.Linq.Enumerable.Sum(IEnumerable{int})"/> for <see cref="ImmutableArray{T}"/>. 1086public static int Sum<T>(this ImmutableArray<T> items, Func<T, int> selector) 1096/// Variation of <see cref="System.Linq.Enumerable.Sum(IEnumerable{int})"/> for <see cref="ImmutableArray{T}"/>. 1098public static int Sum<T>(this ImmutableArray<T> items, Func<T, int, int> selector) 1108/// Specialization of <see cref="System.Linq.Enumerable.Concat{TSource}(IEnumerable{TSource}, IEnumerable{TSource})"/> for <see cref="ImmutableArray{T}"/>. 1110public static ImmutableArray<T> Concat<T>(this ImmutableArray<T> first, ImmutableArray<T> second) 1116public static ImmutableArray<T> Concat<T>(this ImmutableArray<T> first, T second) 1122public static ImmutableArray<T> Concat<T>(this ImmutableArray<T> first, ImmutableArray<T> second, ImmutableArray<T> third) 1136public static ImmutableArray<T> Concat<T>(this ImmutableArray<T> first, ImmutableArray<T> second, ImmutableArray<T> third, ImmutableArray<T> fourth) 1152public static ImmutableArray<T> Concat<T>(this ImmutableArray<T> first, ImmutableArray<T> second, ImmutableArray<T> third, ImmutableArray<T> fourth, ImmutableArray<T> fifth) 1168public static ImmutableArray<T> Concat<T>(this ImmutableArray<T> first, ImmutableArray<T> second, ImmutableArray<T> third, ImmutableArray<T> fourth, ImmutableArray<T> fifth, ImmutableArray<T> sixth) 1188public static ImmutableArray<T> Distinct<T>(this ImmutableArray<T> array, IEqualityComparer<T>? comparer = null) 1207var result = (builder.Count == array.Length) ? array : builder.ToImmutable(); 1213/// Variant of <see cref="System.Linq.ImmutableArrayExtensions.Any{T}(ImmutableArray{T}, Func{T, bool})"/>. 1215public static bool Any<T, TArg>(this ImmutableArray<T> array, Func<T, TArg, bool> predicate, TArg arg) 1227/// Variant of <see cref="System.Linq.ImmutableArrayExtensions.All{T}(ImmutableArray{T}, Func{T, bool})"/>. 1229public static bool All<T, TArg>(this ImmutableArray<T> array, Func<T, TArg, bool> predicate, TArg arg) 1248/// Methods that are available on both <see cref="IEnumerable{T}"/> and <see cref="ImmutableArray{T}"/> in System.Collections.Immutable namespace 1249/// are defined in System.Collections.Immutable namespace to avoid accidental boxing of <see cref="ImmutableArray{T}"/>. 1255/// Variant of <see cref="System.Collections.Immutable.ImmutableArray{T}.Contains(T, IEqualityComparer{T})"/> 1257public static bool Contains<T>(this ImmutableArray<T> array, Func<T, bool> predicate) 1261/// Variant of <see cref="System.Collections.Immutable.ImmutableArray.BinarySearch{T}(ImmutableArray{T}, T, IComparer{T}?)"/> 1264public static int BinarySearch<TElement, TValue>(this ImmutableArray<TElement> array, TValue value, Func<TElement, TValue, int> comparer)
src\roslyn\src\Dependencies\Collections\Internal\HashHelpers.cs (1)
40private static readonly ImmutableArray<int> s_primes = ImmutableArray.Create(
src\roslyn\src\Dependencies\Collections\OneOrMany.cs (8)
28public static readonly OneOrMany<T> Empty = new OneOrMany<T>(ImmutableArray<T>.Empty); 31private readonly ImmutableArray<T> _many; 39public OneOrMany(ImmutableArray<T> many) 167: new OneOrMany<T>(ImmutableArray<T>.CastUp(from._many)); 185public ImmutableArray<T> ToImmutable() 206public bool SequenceEqual(ImmutableArray<T> other, IEqualityComparer<T>? comparer = null) 278public static OneOrMany<T> Create<T>(ImmutableArray<T> many) 281public static bool SequenceEqual<T>(this ImmutableArray<T> array, OneOrMany<T> other, IEqualityComparer<T>? comparer = null)
src\roslyn\src\Dependencies\Collections\RoslynImmutableInterlocked.cs (5)
618public static ImmutableArray<T> VolatileRead<T>(ref readonly ImmutableArray<T> location) 620var value = location; 635public static void VolatileWrite<T>(ref ImmutableArray<T> location, ImmutableArray<T> value)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
23/// the scenarios where <see cref="ImmutableArray{T}"/> is applicable, and
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.List.cs (1)
20public static readonly IReadOnlyList<T> Instance = ImmutableArray<T>.Empty;
src\roslyn\src\Dependencies\Collections\TemporaryArray`1.cs (6)
24/// <see cref="ImmutableArray{T}"/>. 179public void AddRange(ImmutableArray<T> items) 299/// Create an <see cref="ImmutableArray{T}"/> with the elements currently held in the temporary array, and clear 302public ImmutableArray<T> ToImmutableAndClear() 310var result = _count switch 3120 => ImmutableArray<T>.Empty,
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilder.cs (27)
61private readonly ImmutableArray<T>.Builder _builder; 83public ImmutableArray<T> ToImmutable() 91public ImmutableArray<T> ToImmutableAndClear() 93ImmutableArray<T> result; 96result = ImmutableArray<T>.Empty; 393public ImmutableArray<T> ToImmutableOrNull() 406public ImmutableArray<U> ToDowncastedImmutable<U>() 411return ImmutableArray<U>.Empty; 423public ImmutableArray<U> ToDowncastedImmutableAndFree<U>() where U : T 425var result = ToDowncastedImmutable<U>(); 433public ImmutableArray<T> ToImmutableAndFree() 437ImmutableArray<T> result; 440result = ImmutableArray<T>.Empty; 613internal Dictionary<K, ImmutableArray<T>> ToDictionary<K>(Func<T, K> keySelector, IEqualityComparer<K>? comparer = null) 618var dictionary1 = new Dictionary<K, ImmutableArray<T>>(1, comparer); 626return new Dictionary<K, ImmutableArray<T>>(comparer); 645var dictionary = new Dictionary<K, ImmutableArray<T>>(accumulator.Count, comparer); 684public void AddRange(ImmutableArray<T> items) 689public void AddRange<U>(ImmutableArray<U> items, Func<U, T> selector) 697public void AddRange(ImmutableArray<T> items, int length) 702public void AddRange(ImmutableArray<T> items, int start, int length) 712public void AddRange<S>(ImmutableArray<S> items) where S : class, T 714AddRange(ImmutableArray<T>.CastUp(items)); 806public ImmutableArray<S> SelectDistinct<S>(Func<T, S> selector) 878public ImmutableArray<TResult> SelectAsArray<TResult>(Func<T, TResult> map) 914public ImmutableArray<TResult> SelectAsArray<TArg, TResult>(Func<T, TArg, TResult> map, TArg arg) 950public ImmutableArray<TResult> SelectAsArrayWithIndex<TArg, TResult>(Func<T, int, TArg, TResult> map, TArg arg)
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilderExtensions.cs (1)
16public static ImmutableArray<T> ToImmutableOrEmptyAndFree<T>(this ArrayBuilder<T>? builder)
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)
105internal 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; } 148var constructorArgs = this.CommonConstructorArguments; 169private static T? DecodeNamedArgument<T>(ImmutableArray<KeyValuePair<string, TypedConstant>> namedArguments, string name, SpecialType specialType, T? defaultValue = default) 175private static int IndexOfNamedArgument(ImmutableArray<KeyValuePair<string, TypedConstant>> namedArguments, string name) 203var parameters = AttributeConstructor.Parameters; 204ImmutableArray<TypedConstant> args = this.CommonConstructorArguments; 311ImmutableArray<TypedConstant> args = this.CommonConstructorArguments; 368var args = this.CommonConstructorArguments; 574internal static AttributeUsageInfo DecodeAttributeUsageAttribute(TypedConstant positionalArg, ImmutableArray<KeyValuePair<string, TypedConstant>> namedArgs)
Symbols\Attributes\CommonAttributeDataComparer.cs (2)
64private static int GetHashCodeForConstructorArguments(ImmutableArray<TypedConstant> constructorArguments) 76private 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; } 104ImmutableArray<CustomModifier> CustomModifiers { get; }
Symbols\IMethodSymbol.cs (11)
112ImmutableArray<ITypeSymbol> TypeArguments { get; } 119ImmutableArray<NullableAnnotation> TypeArgumentNullableAnnotations { get; } 125ImmutableArray<ITypeParameterSymbol> TypeParameters { get; } 131ImmutableArray<IParameterSymbol> Parameters { get; } 212ImmutableArray<IMethodSymbol> ExplicitInterfaceImplementations { get; } 217ImmutableArray<CustomModifier> ReturnTypeCustomModifiers { get; } 222ImmutableArray<CustomModifier> RefCustomModifiers { get; } 227ImmutableArray<AttributeData> GetReturnTypeAttributes(); 239ImmutableArray<INamedTypeSymbol> UnmanagedCallingConventionTypes { get; } 264IMethodSymbol 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)
74ImmutableArray<ITypeParameterSymbol> TypeParameters { get; } 81ImmutableArray<ITypeSymbol> TypeArguments { get; } 88ImmutableArray<NullableAnnotation> TypeArgumentNullableAnnotations { get; } 95ImmutableArray<CustomModifier> GetTypeArgumentCustomModifiers(int ordinal); 136INamedTypeSymbol Construct(ImmutableArray<ITypeSymbol> typeArguments, ImmutableArray<NullableAnnotation> typeArgumentNullableAnnotations); 146ImmutableArray<IMethodSymbol> InstanceConstructors { get; } 151ImmutableArray<IMethodSymbol> StaticConstructors { get; } 156ImmutableArray<IMethodSymbol> Constructors { get; } 187ImmutableArray<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)
182ImmutableArray<Location> Locations { get; } 208ImmutableArray<SyntaxReference> DeclaringSyntaxReferences { get; } 211/// Gets the attributes for the symbol. Returns an empty <see cref="ImmutableArray{AttributeData}"/> 214ImmutableArray<AttributeData> GetAttributes(); 262ImmutableArray<SymbolDisplayPart> ToDisplayParts(SymbolDisplayFormat? format = null); 289ImmutableArray<SymbolDisplayPart> ToMinimalDisplayParts(
Symbols\ISymbolExtensions_PerformIVTCheck.cs (2)
21ImmutableArray<byte> assemblyWantingAccessKey, 22ImmutableArray<byte> grantedToPublicKey)
Symbols\ISymbolExtensions.cs (1)
174var members = type.GetMembers(name);
Symbols\ISymbolInternal.cs (1)
113ImmutableArray<Location> Locations { get; }
Symbols\ITypeParameterSymbol.cs (2)
85ImmutableArray<ITypeSymbol> ConstraintTypes { get; } 91ImmutableArray<NullableAnnotation> ConstraintNullableAnnotations { get; }
Symbols\ITypeSymbol.cs (5)
40ImmutableArray<INamedTypeSymbol> Interfaces { get; } 53ImmutableArray<INamedTypeSymbol> AllInterfaces { get; } 158ImmutableArray<ITypeSymbol> UnionCaseTypes 189ImmutableArray<SymbolDisplayPart> ToDisplayParts(NullableFlowState topLevelNullability, SymbolDisplayFormat? format = null); 217ImmutableArray<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)
45private ImmutableArray<byte> _lazyChecksum; 46private readonly ImmutableArray<byte> _precomputedEmbeddedTextBlob; 48private ImmutableArray<byte> _lazyContentHash; 52protected SourceText(ImmutableArray<byte> checksum = default, SourceHashAlgorithm checksumAlgorithm = SourceHashAlgorithm.Sha1, SourceTextContainer? container = null) 66internal SourceText(ImmutableArray<byte> checksum, SourceHashAlgorithm checksumAlgorithm, ImmutableArray<byte> embeddedTextBlob) 76_precomputedEmbeddedTextBlob = ImmutableArray<byte>.Empty; 220var checksum = CalculateChecksum(stream, checksumAlgorithm); 221var embeddedTextBlob = canBeEmbedded ? EmbeddedText.CreateBlob(stream) : default(ImmutableArray<byte>); 279var checksum = CalculateChecksum(buffer, 0, length, checksumAlgorithm); 280var embeddedTextBlob = canBeEmbedded ? EmbeddedText.CreateBlob(new ArraySegment<byte>(buffer, 0, length)) : default(ImmutableArray<byte>); 412internal virtual ImmutableArray<SourceText> Segments 414get { return ImmutableArray<SourceText>.Empty; } 456internal ImmutableArray<byte> PrecomputedEmbeddedTextBlob => _precomputedEmbeddedTextBlob; 597public ImmutableArray<byte> GetChecksum() 622public ImmutableArray<byte> GetContentHash() 631ImmutableArray<byte> computeContentHash() 687internal static ImmutableArray<byte> CalculateChecksum(byte[] buffer, int offset, int count, SourceHashAlgorithm algorithmId) 696internal static ImmutableArray<byte> CalculateChecksum(Stream stream, SourceHashAlgorithm algorithmId) 1216var leftContentHash = _lazyContentHash; 1217var rightContentHash = other._lazyContentHash;
Text\SourceTextComparer.cs (1)
37var contentHash = obj.GetContentHash();
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)
197if (ti.IsGenericType && ti.GetGenericTypeDefinition() == typeof(ImmutableArray<>))
WellKnownMembers.cs (1)
14private static readonly ImmutableArray<MemberDescriptor> s_descriptors;
Microsoft.CodeAnalysis.Analyzers (1281)
FixAnalyzers\FixerWithFixAllAnalyzer.cs (1)
68public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } =
FixAnalyzers\FixerWithFixAllAnalyzer.Fixer.cs (1)
29public sealed override ImmutableArray<string> FixableDiagnosticIds { get; } = [DiagnosticIds.OverrideGetFixAllProviderRuleId];
ImmutableObjectMethodAnalyzer.cs (5)
34public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(DoNotIgnoreReturnValueDiagnosticRule); 42private static readonly ImmutableArray<string> s_immutableMethodNames = ImmutableArray.Create( 63var immutableTypeSymbols = builder.ToImmutable(); 70static void AddIfNotNull(ImmutableArray<INamedTypeSymbol>.Builder builder, INamedTypeSymbol? symbol) 79public static void AnalyzeInvocationForIgnoredReturnValue(OperationAnalysisContext context, ImmutableArray<INamedTypeSymbol> immutableTypeSymbols)
ImplementationIsObsoleteAnalyzer.cs (1)
31public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
InternalImplementationOnlyAnalyzer.cs (1)
34public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
MetaAnalyzers\ClassIsNotDiagnosticAnalyzer.cs (1)
29public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
MetaAnalyzers\CompareSymbolsCorrectlyAnalyzer.cs (2)
79public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(s_equalityRule); 192var parameters = invocationOperation.Arguments;
MetaAnalyzers\CompilerExtensionStrictApiAnalyzer.cs (1)
60public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(
MetaAnalyzers\CompilerExtensionTargetFrameworkAnalyzer.cs (1)
36public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(
MetaAnalyzers\ConfigureGeneratedCodeAnalysisAnalyzer.cs (1)
31public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
MetaAnalyzers\DiagnosticAnalyzerAPIUsageAnalyzer.cs (2)
33private static readonly ImmutableArray<string> s_WorkspaceAssemblyNames = ImmutableArray.Create( 61public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(DoNotUseTypesFromAssemblyDirectRule, DoNotUseTypesFromAssemblyIndirectRule);
MetaAnalyzers\DiagnosticAnalyzerAttributeAnalyzer.cs (1)
43public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(MissingDiagnosticAnalyzerAttributeRule, AddLanguageSupportToAnalyzerRule);
MetaAnalyzers\DiagnosticAnalyzerFieldsAnalyzer.cs (1)
49public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(DoNotStorePerCompilationDataOntoFieldsRule);
MetaAnalyzers\DiagnosticDescriptorCreationAnalyzer_IdRangeAndCategoryValidation.cs (9)
70ImmutableArray<(string? prefix, int start, int end)> allowedIdsInfoList, 138ImmutableArray<IArgumentOperation> creationArguments, 141ImmutableDictionary<string, ImmutableArray<(string? prefix, int start, int end)>>? categoryAndAllowedIdsInfoMap, 143out ImmutableArray<(string? prefix, int start, int end)> allowedIdsInfoList) 195ImmutableArray<AdditionalText> additionalFiles, 198[NotNullWhen(returnValue: true)] out ImmutableDictionary<string, ImmutableArray<(string? prefix, int start, int end)>>? categoryAndAllowedIdsMap, 211private static AdditionalText? TryGetCategoryAndAllowedIdsInfoFile(ImmutableArray<AdditionalText> additionalFiles, CancellationToken cancellationToken) 231[NotNullWhen(returnValue: true)] out ImmutableDictionary<string, ImmutableArray<(string? prefix, int start, int end)>>? categoryAndAllowedIdsInfoMap, 241var builder = ImmutableDictionary.CreateBuilder<string, ImmutableArray<(string? prefix, int start, int end)>>();
MetaAnalyzers\DiagnosticDescriptorCreationAnalyzer_ReleaseTracking.cs (2)
166ImmutableArray<AdditionalText> additionalTexts, 244ImmutableArray<AdditionalText> additionalTexts,
MetaAnalyzers\DiagnosticDescriptorCreationAnalyzer.cs (20)
29using PooledFieldToCustomTagsConcurrentDictionary = PooledConcurrentDictionary<IFieldSymbol, ImmutableArray<string>>; 177public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create( 225out ImmutableDictionary<string, ImmutableArray<(string? prefix, int start, int end)>>? categoryAndAllowedIdsMap, 256if (!TryGetDescriptorCreateMethodAndArguments(fieldInitializer, diagnosticDescriptorType, out var creationMethod, out var creationArguments)) 273diagnosticCategoryAndIdRangeText, categoryAndAllowedIdsMap, out var category, out var allowedIdsInfoList)) 437if (customTagsMap.TryGetValue(field, out var customTags) && 528[NotNullWhen(returnValue: true)] out ImmutableArray<IArgumentOperation> creationArguments) 617ImmutableArray<IArgumentOperation> creationArguments, 674var additionalLocations = ImmutableArray<Location>.Empty; 720ImmutableArray<IArgumentOperation> creationArguments, 767ImmutableArray<IArgumentOperation> creationArguments, 1029ImmutableArray<IArgumentOperation> creationArguments, 1056ImmutableArray<IArgumentOperation> creationArguments, 1061ImmutableArray<string> customTags = default; 1082customTags = ImmutableArray<string>.Empty; 1096ImmutableArray<string> customTags, 1107private static (bool? isEnabledByDefault, DiagnosticSeverity? defaultSeverity) GetDefaultSeverityAndEnabledByDefault(Compilation compilation, ImmutableArray<IArgumentOperation> creationArguments) 1184ImmutableArray<IArgumentOperation> creationArguments, 1195ImmutableArray<(string? prefix, int start, int end)> allowedIdsInfoListOpt,
MetaAnalyzers\DoNotUseCompilationGetSemanticModelAnalyzer.cs (1)
32public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
MetaAnalyzers\DoNotUseFileTypesForAnalyzersOrGenerators.cs (1)
26public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
MetaAnalyzers\EnableConcurrentExecutionAnalyzer.cs (1)
31public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
MetaAnalyzers\Fixers\AnalyzerReleaseTrackingFix.cs (1)
42public override ImmutableArray<string> FixableDiagnosticIds { get; } =
MetaAnalyzers\Fixers\AnalyzerReleaseTrackingFix.FixAllProvider.cs (16)
28var diagnosticsToFix = new List<KeyValuePair<Project, ImmutableArray<Diagnostic>>>(); 33ImmutableArray<Diagnostic> diagnostics = await fixAllContext.GetDocumentDiagnosticsAsync(fixAllContext.Document!).ConfigureAwait(false); 34diagnosticsToFix.Add(new KeyValuePair<Project, ImmutableArray<Diagnostic>>(fixAllContext.Project, diagnostics)); 41ImmutableArray<Diagnostic> diagnostics = await fixAllContext.GetAllDiagnosticsAsync(project).ConfigureAwait(false); 42diagnosticsToFix.Add(new KeyValuePair<Project, ImmutableArray<Diagnostic>>(fixAllContext.Project, diagnostics)); 50ImmutableArray<Diagnostic> diagnostics = await fixAllContext.GetAllDiagnosticsAsync(project).ConfigureAwait(false); 51diagnosticsToFix.Add(new KeyValuePair<Project, ImmutableArray<Diagnostic>>(project, diagnostics)); 67var projectIds = diagnosticsToFix.SelectAsArray(d => d.Key.Id); 76private readonly List<KeyValuePair<Project, ImmutableArray<Diagnostic>>> _diagnosticsToFix; 79public FixAllAdditionalDocumentChangeAction(FixAllScope fixAllScope, Solution solution, List<KeyValuePair<Project, ImmutableArray<Diagnostic>>> diagnosticsToFix, string? equivalenceKey) 94foreach (KeyValuePair<Project, ImmutableArray<Diagnostic>> pair in _diagnosticsToFix) 97ImmutableArray<Diagnostic> diagnostics = pair.Value; 130private static async Task<SourceText> AddEntriesToUnshippedFileForDiagnosticsAsync(TextDocument unshippedDataDocument, ImmutableArray<Diagnostic> diagnostics, CancellationToken cancellationToken) 144private static async Task<SourceText> UpdateEntriesInUnshippedFileForDiagnosticsAsync(TextDocument unshippedDataDocument, ImmutableArray<Diagnostic> diagnostics, CancellationToken cancellationToken) 162private readonly ImmutableArray<ProjectId> _projectIds; 165public FixAllAddAdditionalDocumentsAction(ImmutableArray<ProjectId> projectIds, Solution solution)
MetaAnalyzers\Fixers\ApplyDiagnosticAnalyzerAttributeFix.cs (1)
18public sealed override ImmutableArray<string> FixableDiagnosticIds { get; } = [DiagnosticIds.MissingDiagnosticAnalyzerAttributeRuleId];
MetaAnalyzers\Fixers\CompareSymbolsCorrectlyFix.cs (2)
24public sealed override ImmutableArray<string> FixableDiagnosticIds { get; } = 117ImmutableArray<IArgumentOperation> arguments, bool isUsedAsExtensionMethod, Func<SyntaxGenerator, IEnumerable<SyntaxNode>, SyntaxNode> getReplacementNode,
MetaAnalyzers\Fixers\ConfigureGeneratedCodeAnalysisFix.cs (1)
23public override ImmutableArray<string> FixableDiagnosticIds { get; } = [ConfigureGeneratedCodeAnalysisAnalyzer.Rule.Id];
MetaAnalyzers\Fixers\DefineDiagnosticDescriptorArgumentsCorrectlyFix.cs (4)
30public override ImmutableArray<string> FixableDiagnosticIds { get; } = 48var additionalDocuments = context.Document.Project.AdditionalDocuments.ToImmutableArray(); 108ImmutableArray<TextDocument> additionalDocuments, 145ImmutableArray<TextDocument> additionalDocuments,
MetaAnalyzers\Fixers\DefineDiagnosticDescriptorArgumentsCorrectlyFix.CustomFixAllProvider.cs (11)
41var diagnosticsToFix = new List<KeyValuePair<Project, ImmutableArray<Diagnostic>>>(); 46ImmutableArray<Diagnostic> diagnostics = await fixAllContext.GetDocumentDiagnosticsAsync(fixAllContext.Document!).ConfigureAwait(false); 47diagnosticsToFix.Add(new KeyValuePair<Project, ImmutableArray<Diagnostic>>(fixAllContext.Project, diagnostics)); 54ImmutableArray<Diagnostic> diagnostics = await fixAllContext.GetAllDiagnosticsAsync(project).ConfigureAwait(false); 55diagnosticsToFix.Add(new KeyValuePair<Project, ImmutableArray<Diagnostic>>(fixAllContext.Project, diagnostics)); 63ImmutableArray<Diagnostic> diagnostics = await fixAllContext.GetAllDiagnosticsAsync(project).ConfigureAwait(false); 64diagnosticsToFix.Add(new KeyValuePair<Project, ImmutableArray<Diagnostic>>(project, diagnostics)); 83private readonly List<KeyValuePair<Project, ImmutableArray<Diagnostic>>> _diagnosticsToFix; 86public FixAllAdditionalDocumentChangeAction(FixAllScope fixAllScope, Solution solution, List<KeyValuePair<Project, ImmutableArray<Diagnostic>>> diagnosticsToFix, string equivalenceKey) 104var diagnostics = kvp.Value; 106var additionalDocuments = project.AdditionalDocuments.ToImmutableArray();
MetaAnalyzers\Fixers\EnableConcurrentExecutionFix.cs (1)
22public override ImmutableArray<string> FixableDiagnosticIds { get; } = [EnableConcurrentExecutionAnalyzer.Rule.Id];
MetaAnalyzers\Fixers\PreferIsKindFix.cs (2)
17public override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(PreferIsKindAnalyzer.Rule.Id); 63protected override async Task<Document?> FixAllAsync(FixAllContext fixAllContext, Document document, ImmutableArray<Diagnostic> diagnostics)
MetaAnalyzers\PreferIsKindAnalyzer.cs (1)
33public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
MetaAnalyzers\RegisterActionAnalyzer.cs (1)
107public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(
MetaAnalyzers\ReportDiagnosticAnalyzer.cs (9)
38public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(InvalidReportDiagnosticRule); 119private ImmutableDictionary<INamedTypeSymbol, ImmutableArray<IFieldSymbol>> _supportedDescriptorFieldsMap; 127_supportedDescriptorFieldsMap = ImmutableDictionary<INamedTypeSymbol, ImmutableArray<IFieldSymbol>>.Empty; 138ImmutableArray<IFieldSymbol> descriptorFields = GetSupportedDescriptors(symbolContext.Compilation, (INamedTypeSymbol)symbolContext.Symbol, symbolContext.CancellationToken); 145private ImmutableArray<IFieldSymbol> GetSupportedDescriptors(Compilation compilation, INamedTypeSymbol analyzer, CancellationToken cancellationToken) 147if (_supportedDescriptorFieldsMap.TryGetValue(analyzer, out ImmutableArray<IFieldSymbol> descriptorFields)) 179private ImmutableArray<IFieldSymbol> GetReferencedDescriptorFields(SyntaxNode syntax, SemanticModel semanticModel, CancellationToken cancellationToken) 181ImmutableArray<IFieldSymbol>.Builder builder = ImmutableArray.CreateBuilder<IFieldSymbol>(); 241ImmutableArray<IFieldSymbol> descriptorFields = GetReferencedDescriptorFields(diagnosticInitializer, semanticModel, symbolContext.CancellationToken);
MetaAnalyzers\SymbolIsBannedInAnalyzersAnalyzer.cs (2)
46public sealed override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(SymbolIsBannedInAnalyzersAnalyzer.SymbolIsBannedRule, SymbolIsBannedInAnalyzersAnalyzer.NoSettingSpecifiedSymbolIsBannedRule); 84protected sealed override Dictionary<(string ContainerName, string SymbolName), ImmutableArray<BanFileEntry>>? ReadBannedApis(CompilationStartAnalysisContext compilationContext)
src\0bf6ba47805c8821\AbstractMoveDeclarationNearReferenceService.cs (1)
177private static ImmutableArray<SyntaxTrivia> GetMergedTrivia(
src\5f6f2f95b47c3dc6\SemanticModelWorkspaceServiceFactory.SemanticModelWorkspaceService.cs (1)
140var linkedIds = document.GetLinkedDocumentIds();
src\a1065d420d446521\NamingStylePreferencesEditorConfigSerializer.cs (9)
30ImmutableArray<SymbolSpecification> symbolSpecifications, 31ImmutableArray<NamingStyle> namingStyles, 32ImmutableArray<NamingRule> namingRules, 47ImmutableArray<SymbolSpecification> symbolSpecifications, 48ImmutableArray<NamingStyle> namingStyles, 49ImmutableArray<NamingRule> rules, 120ImmutableArray<SymbolSpecification> symbolSpecifications, 121ImmutableArray<NamingStyle> namingStyles) 170private static ImmutableDictionary<NamingRule, string> AssignNamesToNamingStyleRules(ImmutableArray<NamingRule> namingRules, ImmutableDictionary<Guid, string> serializedNameMap)
src\a16f30e1d256badc\AbstractTypeInferenceService.AbstractTypeInferrer.cs (4)
40public ImmutableArray<TypeInferenceInfo> InferTypes(int position) 46public ImmutableArray<TypeInferenceInfo> InferTypes(SyntaxNode expression, bool filterUnusable = true) 73private ImmutableArray<TypeInferenceInfo> Filter(IEnumerable<TypeInferenceInfo> types, bool filterUnusable = true) 106var parameters = type.TypeArguments;
src\b310f676f7308b7f\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (6)
26private readonly ImmutableArray<IParameterSymbol> _parameters; 74ImmutableArray<IParameterSymbol> parameters, 123var parameters = GetParameters(owningSymbol); 139static ImmutableArray<IParameterSymbol> GetParameters(ISymbol owningSymbol) 141var parameters = owningSymbol.GetParameters(); 164var parameters = lambdaOrLocalFunction.GetParameters();
src\roslyn\src\Compilers\Core\Portable\Collections\DictionaryExtensions.cs (3)
93/// the values in the passed builder will be converted to an <see cref="ImmutableArray{T}"/> using <see 97public static ImmutableSegmentedDictionary<K, ImmutableArray<V>> ToImmutableSegmentedDictionaryAndFree<K, V>(this PooledDictionary<K, ArrayBuilder<V>> dictionary) 100var result = ImmutableSegmentedDictionary.CreateBuilder<K, ImmutableArray<V>>();
src\roslyn\src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (3)
143public ImmutableArray<V> this[K k] 153return ImmutableArray<V>.Empty; 270internal ImmutableArray<V> Items
src\roslyn\src\Compilers\Core\Portable\Diagnostic\DiagnosticArrayExtensions.cs (1)
11internal static bool HasAnyErrors<T>(this ImmutableArray<T> diagnostics) where T : Diagnostic
src\roslyn\src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
729public static string NormalizePathPrefix(string filePath, ImmutableArray<KeyValuePair<string, string>> pathMap)
src\roslyn\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\roslyn\src\Compilers\Core\Portable\InternalUtilities\Hash.cs (3)
120internal static int CombineValues<T>(ImmutableArray<T> values, int maxItemsToHash = int.MaxValue) 171internal static int CombineValues(ImmutableArray<string> values, StringComparer stringComparer, int maxItemsToHash = int.MaxValue) 252internal static int GetFNVHashCode(ImmutableArray<byte> data)
src\roslyn\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\roslyn\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\roslyn\src\Compilers\Core\Portable\InternalUtilities\SetWithInsertionOrder.cs (1)
94public ImmutableArray<T> AsImmutable() => _elements.ToImmutableArrayOrEmpty();
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (2)
20private static ImmutableArray<string> s_lazyNumerals; 25var numerals = s_lazyNumerals;
src\roslyn\src\Compilers\Core\Portable\MetadataReference\AssemblyIdentityUtils.cs (1)
36ImmutableArray<byte> publicKeyOrToken = !publicKeyHandle.IsNil
src\roslyn\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\roslyn\src\Dependencies\Collections\Extensions\FixedSizeArrayBuilder.cs (5)
19/// A bare-bones array builder, focused on the case of producing <see cref="ImmutableArray{T}"/>s where the final array 37/// The builder will be moved to an array (see <see cref="MoveToArray"/>) or <see cref="ImmutableArray{T}"/> (see <see 70public void AddRange(ImmutableArray<T> values) 116/// Moves the underlying buffer out of control of this type, into the returned <see cref="ImmutableArray{T}"/>. It 122public ImmutableArray<T> MoveToImmutable()
src\roslyn\src\Dependencies\Collections\Extensions\ICollectionExtensions.cs (1)
76public static void AddRange<T>(this ICollection<T> collection, ImmutableArray<T> values)
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (26)
60public static ImmutableArray<T> ToImmutableArrayOrEmpty<T>(this IEnumerable<T>? items) 67if (items is ImmutableArray<T> array) 82if (items is ImmutableArray<T> array) 271/// <seealso cref="Microsoft.CodeAnalysis.ImmutableArrayExtensions.HasDuplicates{TItem, TValue}(ImmutableArray{TItem}, Func{TItem, TValue}, IEqualityComparer{TValue})"/> 376public static ImmutableArray<T> WhereAsArray<T>(this IEnumerable<T> values, Func<T, bool> predicate) 390public static ImmutableArray<T> WhereAsArray<T, TArg>(this IEnumerable<T> values, Func<T, TArg, bool> predicate, TArg arg) 407public static ImmutableArray<TResult> SelectAsArray<TSource, TResult>(this IEnumerable<TSource>? source, Func<TSource, TResult> selector) 417public static ImmutableArray<TResult> SelectAsArray<TItem, TResult>(this IEnumerable<TItem>? source, Func<TItem, bool> predicate, Func<TItem, TResult> selector) 431public static ImmutableArray<TResult> SelectAsArray<TSource, TResult>(this IEnumerable<TSource>? source, Func<TSource, int, TResult> selector) 446public static ImmutableArray<TResult> SelectAsArray<TSource, TResult, TArg>(this IEnumerable<TSource>? source, Func<TSource, TArg, TResult> selector, TArg arg) 449return ImmutableArray<TResult>.Empty; 461public static ImmutableArray<TResult> SelectAsArray<TSource, TResult>(this IReadOnlyCollection<TSource>? source, Func<TSource, TResult> selector) 473public static ImmutableArray<TResult> SelectAsArray<TSource, TResult, TArg>(this IReadOnlyCollection<TSource>? source, Func<TSource, TArg, TResult> selector, TArg arg) 485public static ImmutableArray<TResult> SelectManyAsArray<TSource, TResult>(this IEnumerable<TSource>? source, Func<TSource, IEnumerable<TResult>> selector) 496public static ImmutableArray<TResult> SelectManyAsArray<TItem, TArg, TResult>(this IEnumerable<TItem>? source, Func<TItem, TArg, IEnumerable<TResult>> selector, TArg arg) 507public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, IEnumerable<TResult>> selector) 520public static ImmutableArray<TResult> SelectManyAsArray<TItem, TArg, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, TArg, IEnumerable<TResult>> selector, TArg arg) 533public static ImmutableArray<TResult> SelectManyAsArray<TSource, TResult>(this IEnumerable<TSource>? source, Func<TSource, OneOrMany<TResult>> selector) 547public static async ValueTask<ImmutableArray<TResult>> SelectAsArrayAsync<TItem, TResult>(this IEnumerable<TItem> source, Func<TItem, ValueTask<TResult>> selector) 561public static async ValueTask<ImmutableArray<TResult>> SelectAsArrayAsync<TItem, TResult>(this IEnumerable<TItem> source, Func<TItem, CancellationToken, ValueTask<TResult>> selector, CancellationToken cancellationToken) 575public static async ValueTask<ImmutableArray<TResult>> SelectAsArrayAsync<TItem, TArg, TResult>(this IEnumerable<TItem> source, Func<TItem, TArg, CancellationToken, ValueTask<TResult>> selector, TArg arg, CancellationToken cancellationToken) 586public 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) 764internal static Dictionary<K, ImmutableArray<T>> ToMultiDictionary<K, T>(this IEnumerable<T> data, Func<T, K> keySelector, IEqualityComparer<K>? comparer = null) 767var dictionary = new Dictionary<K, ImmutableArray<T>>(comparer); 834/// Methods that are available on both <see cref="IEnumerable{T}"/> and <see cref="ImmutableArray{T}"/> are defined in System.Linq namespace 835/// to avoid accidental boxing of <see cref="ImmutableArray{T}"/>. The boxing would occur if the file calling these methods didn't have <c>using System.Linq</c>.
src\roslyn\src\Dependencies\Collections\Extensions\IListExtensions.cs (1)
31/// <seealso cref="ImmutableArrayExtensions.HasDuplicates{TItem, TValue}(System.Collections.Immutable.ImmutableArray{TItem}, Func{TItem, TValue}, IEqualityComparer{TValue})"/>
src\roslyn\src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (156)
24/// The collection of extension methods for the <see cref="ImmutableArray{T}"/> type 36public static ImmutableArray<T> AsImmutable<T>(this IEnumerable<T> items) 48public static ImmutableArray<T> AsImmutableOrEmpty<T>(this IEnumerable<T>? items) 52return ImmutableArray<T>.Empty; 65public static ImmutableArray<T> AsImmutableOrNull<T>(this IEnumerable<T>? items) 81public static ImmutableArray<T> AsImmutable<T>(this T[] items) 94public static ImmutableArray<T> AsImmutableOrNull<T>(this T[]? items) 110public static ImmutableArray<T> AsImmutableOrEmpty<T>(this T[]? items) 114return ImmutableArray<T>.Empty; 125public static ImmutableArray<byte> ToImmutable(this MemoryStream stream) 138public static ImmutableArray<TResult> SelectAsArray<TItem, TResult>(this ImmutableArray<TItem> items, Func<TItem, TResult> map) 153public static ImmutableArray<TResult> SelectAsArray<TItem, TArg, TResult>(this ImmutableArray<TItem> items, Func<TItem, TArg, TResult> map, TArg arg) 168public static ImmutableArray<TResult> SelectAsArray<TItem, TArg, TResult>(this ImmutableArray<TItem> items, Func<TItem, int, TArg, TResult> map, TArg arg) 198public static ImmutableArray<TResult> SelectAsArray<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, bool> predicate, Func<TItem, TResult> selector) 224public static ImmutableArray<TResult> SelectAsArray<TItem, TArg, TResult>(this ImmutableArray<TItem> array, Func<TItem, TArg, bool> predicate, Func<TItem, TArg, TResult> selector, TArg arg) 247public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, IEnumerable<TResult>> selector) 267public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, ImmutableArray<TResult>> selector) 287public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, OneOrMany<TResult>> selector) 308public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, bool> predicate, Func<TItem, IEnumerable<TResult>> selector) 332public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, bool> predicate, Func<TItem, ImmutableArray<TResult>> selector) 356public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, bool> predicate, Func<TItem, OneOrMany<TResult>> selector) 381public static ImmutableArray<TResult> SelectManyAsArray<TItem, TArg, TResult>(this ImmutableArray<TItem> array, Func<TItem, TArg, bool> predicate, Func<TItem, TArg, OneOrMany<TResult>> selector, TArg arg) 399public static async ValueTask<ImmutableArray<TResult>> SelectAsArrayAsync<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, CancellationToken, ValueTask<TResult>> selector, CancellationToken cancellationToken) 414public static async ValueTask<ImmutableArray<TResult>> SelectAsArrayAsync<TItem, TArg, TResult>(this ImmutableArray<TItem> array, Func<TItem, TArg, CancellationToken, ValueTask<TResult>> selector, TArg arg, CancellationToken cancellationToken) 426public static ValueTask<ImmutableArray<TResult>> SelectManyAsArrayAsync<TItem, TArg, TResult>(this ImmutableArray<TItem> source, Func<TItem, TArg, CancellationToken, ValueTask<ImmutableArray<TResult>>> selector, TArg arg, CancellationToken cancellationToken) 429return new ValueTask<ImmutableArray<TResult>>([]); 436async ValueTask<ImmutableArray<TResult>> CreateTaskAsync() 453public static ImmutableArray<TResult> ZipAsArray<T1, T2, TResult>(this ImmutableArray<T1> self, ImmutableArray<T2> other, Func<T1, T2, TResult> map) 473public static ImmutableArray<TResult> ZipAsArray<T1, T2, TArg, TResult>(this ImmutableArray<T1> self, ImmutableArray<T2> other, TArg arg, Func<T1, T2, int, TArg, TResult> map) 493public static ImmutableArray<T> WhereAsArray<T>(this ImmutableArray<T> array, Func<T, bool> predicate) 501public static ImmutableArray<T> WhereAsArray<T, TArg>(this ImmutableArray<T> array, Func<T, TArg, bool> predicate, TArg arg) 504private static ImmutableArray<T> WhereAsArrayImpl<T, TArg>(ImmutableArray<T> array, Func<T, bool>? predicateWithoutArg, Func<T, TArg, bool>? predicateWithArg, TArg arg) 569return ImmutableArray<T>.Empty; 573public static async Task<bool> AnyAsync<T>(this ImmutableArray<T> array, Func<T, Task<bool>> predicateAsync) 584public static async Task<bool> AnyAsync<T, TArg>(this ImmutableArray<T> array, Func<T, TArg, Task<bool>> predicateAsync, TArg arg) 595public static async ValueTask<T?> FirstOrDefaultAsync<T>(this ImmutableArray<T> array, Func<T, Task<bool>> predicateAsync) 610public static ImmutableArray<TBase> Cast<TDerived, TBase>(this ImmutableArray<TDerived> items) 613return ImmutableArray<TBase>.CastUp(items); 624public static bool SetEquals<T>(this ImmutableArray<T> array1, ImmutableArray<T> array2, IEqualityComparer<T> comparer) 665public static ImmutableArray<T> NullToEmpty<T>(this ImmutableArray<T> array) 667return array.IsDefault ? ImmutableArray<T>.Empty : array; 673public static ImmutableArray<T> NullToEmpty<T>(this ImmutableArray<T>? array) 676null or { IsDefault: true } => ImmutableArray<T>.Empty, 682internal static ImmutableArray<T> ConditionallyDeOrder<T>(this ImmutableArray<T> array) 699internal static ImmutableArray<TValue> Flatten<TKey, TValue>( 700this Dictionary<TKey, ImmutableArray<TValue>> dictionary, 723internal static ImmutableArray<T> AddRange<T>(this ImmutableArray<T> self, in TemporaryArray<T> items) 751internal static bool HasDuplicates<T>(this ImmutableArray<T> array) 754internal static bool HasDuplicates<T>(this ImmutableArray<T> array, IEqualityComparer<T> comparer) 757public static bool HasDuplicates<TItem, TValue>(this ImmutableArray<TItem> array, Func<TItem, TValue> selector) 769internal static bool HasDuplicates<TItem, TValue>(this ImmutableArray<TItem> array, Func<TItem, TValue> selector, IEqualityComparer<TValue> comparer) 826(Dictionary<TKey, object> dictionary, Dictionary<TKey, ImmutableArray<TNamespaceOrTypeSymbol>> result) 837static ImmutableArray<TNamespaceOrTypeSymbol> createMembers(object value) 848return ImmutableArray<TNamespaceOrTypeSymbol>.CastUp(builder.ToDowncastedImmutableAndFree<TNamedTypeSymbol>()); 855: ImmutableArray<TNamespaceOrTypeSymbol>.CastUp(ImmutableArray.Create((TNamedTypeSymbol)symbol)); 860internal static Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>> GetTypesFromMemberMap<TKey, TNamespaceOrTypeSymbol, TNamedTypeSymbol> 861(Dictionary<TKey, ImmutableArray<TNamespaceOrTypeSymbol>> map, IEqualityComparer<TKey> comparer) 872var dictionary = new Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>>(capacity, comparer); 876var namedTypes = getOrCreateNamedTypes(entry.Value); 883static ImmutableArray<TNamedTypeSymbol> getOrCreateNamedTypes(ImmutableArray<TNamespaceOrTypeSymbol> members) 890var membersAsNamedTypes = members.As<TNamedTypeSymbol>(); 903return ImmutableArray<TNamedTypeSymbol>.Empty; 917internal static int IndexOf<T>(this ImmutableArray<T> array, T item, IEqualityComparer<T> comparer) 920internal static bool IsSorted<T>(this ImmutableArray<T> array, Comparison<T> comparison) 923internal static bool IsSorted<T>(this ImmutableArray<T> array, IComparer<T>? comparer = null) 938public static bool IsSubsetOf<TElement>(this ImmutableArray<TElement> array, ImmutableArray<TElement> other) 983/// Extension methods that are available on both <see cref="IEnumerable{T}"/> and <see cref="ImmutableArray{T}"/> in System.Linq namespace 984/// are defined in System.Linq namespace to avoid accidental boxing of <see cref="ImmutableArray{T}"/>. 990/// Variant of <see cref="System.Linq.ImmutableArrayExtensions.FirstOrDefault{T}(ImmutableArray{T}, Func{T, bool})"/> 992public static TValue? FirstOrDefault<TValue, TArg>(this ImmutableArray<TValue> array, Func<TValue, TArg, bool> predicate, TArg arg) 1004/// Variant of <see cref="System.Linq.ImmutableArrayExtensions.Single{T}(ImmutableArray{T}, Func{T, bool})"/> 1006public static TValue Single<TValue, TArg>(this ImmutableArray<TValue> array, Func<TValue, TArg, bool> predicate, TArg arg) 1033/// Variant of <see cref="System.Linq.ImmutableArrayExtensions.SequenceEqual{TDerived, TBase}(ImmutableArray{TBase}, ImmutableArray{TDerived}, Func{TBase, TBase, bool})"/>. 1035public static bool SequenceEqual<TElement, TArg>(this ImmutableArray<TElement> array1, ImmutableArray<TElement> array2, TArg arg, Func<TElement, TElement, TArg, bool> predicate) 1066/// Specialization of <see cref="System.Linq.Enumerable.Count{TSource}(IEnumerable{TSource}, Func{TSource, bool})"/> for <see cref="ImmutableArray{T}"/>. 1068public static int Count<T>(this ImmutableArray<T> items, Func<T, bool> predicate) 1084/// Specialization of <see cref="System.Linq.Enumerable.Sum(IEnumerable{int})"/> for <see cref="ImmutableArray{T}"/>. 1086public static int Sum<T>(this ImmutableArray<T> items, Func<T, int> selector) 1096/// Variation of <see cref="System.Linq.Enumerable.Sum(IEnumerable{int})"/> for <see cref="ImmutableArray{T}"/>. 1098public static int Sum<T>(this ImmutableArray<T> items, Func<T, int, int> selector) 1108/// Specialization of <see cref="System.Linq.Enumerable.Concat{TSource}(IEnumerable{TSource}, IEnumerable{TSource})"/> for <see cref="ImmutableArray{T}"/>. 1110public static ImmutableArray<T> Concat<T>(this ImmutableArray<T> first, ImmutableArray<T> second) 1116public static ImmutableArray<T> Concat<T>(this ImmutableArray<T> first, T second) 1122public static ImmutableArray<T> Concat<T>(this ImmutableArray<T> first, ImmutableArray<T> second, ImmutableArray<T> third) 1136public static ImmutableArray<T> Concat<T>(this ImmutableArray<T> first, ImmutableArray<T> second, ImmutableArray<T> third, ImmutableArray<T> fourth) 1152public static ImmutableArray<T> Concat<T>(this ImmutableArray<T> first, ImmutableArray<T> second, ImmutableArray<T> third, ImmutableArray<T> fourth, ImmutableArray<T> fifth) 1168public static ImmutableArray<T> Concat<T>(this ImmutableArray<T> first, ImmutableArray<T> second, ImmutableArray<T> third, ImmutableArray<T> fourth, ImmutableArray<T> fifth, ImmutableArray<T> sixth) 1188public static ImmutableArray<T> Distinct<T>(this ImmutableArray<T> array, IEqualityComparer<T>? comparer = null) 1207var result = (builder.Count == array.Length) ? array : builder.ToImmutable(); 1213/// Variant of <see cref="System.Linq.ImmutableArrayExtensions.Any{T}(ImmutableArray{T}, Func{T, bool})"/>. 1215public static bool Any<T, TArg>(this ImmutableArray<T> array, Func<T, TArg, bool> predicate, TArg arg) 1227/// Variant of <see cref="System.Linq.ImmutableArrayExtensions.All{T}(ImmutableArray{T}, Func{T, bool})"/>. 1229public static bool All<T, TArg>(this ImmutableArray<T> array, Func<T, TArg, bool> predicate, TArg arg) 1248/// Methods that are available on both <see cref="IEnumerable{T}"/> and <see cref="ImmutableArray{T}"/> in System.Collections.Immutable namespace 1249/// are defined in System.Collections.Immutable namespace to avoid accidental boxing of <see cref="ImmutableArray{T}"/>. 1255/// Variant of <see cref="System.Collections.Immutable.ImmutableArray{T}.Contains(T, IEqualityComparer{T})"/> 1257public static bool Contains<T>(this ImmutableArray<T> array, Func<T, bool> predicate) 1261/// Variant of <see cref="System.Collections.Immutable.ImmutableArray.BinarySearch{T}(ImmutableArray{T}, T, IComparer{T}?)"/> 1264public static int BinarySearch<TElement, TValue>(this ImmutableArray<TElement> array, TValue value, Func<TElement, TValue, int> comparer)
src\roslyn\src\Dependencies\Collections\Internal\HashHelpers.cs (1)
40private static readonly ImmutableArray<int> s_primes = ImmutableArray.Create(
src\roslyn\src\Dependencies\Collections\OneOrMany.cs (8)
28public static readonly OneOrMany<T> Empty = new OneOrMany<T>(ImmutableArray<T>.Empty); 31private readonly ImmutableArray<T> _many; 39public OneOrMany(ImmutableArray<T> many) 167: new OneOrMany<T>(ImmutableArray<T>.CastUp(from._many)); 185public ImmutableArray<T> ToImmutable() 206public bool SequenceEqual(ImmutableArray<T> other, IEqualityComparer<T>? comparer = null) 278public static OneOrMany<T> Create<T>(ImmutableArray<T> many) 281public static bool SequenceEqual<T>(this ImmutableArray<T> array, OneOrMany<T> other, IEqualityComparer<T>? comparer = null)
src\roslyn\src\Dependencies\Collections\RoslynImmutableInterlocked.cs (5)
618public static ImmutableArray<T> VolatileRead<T>(ref readonly ImmutableArray<T> location) 620var value = location; 635public static void VolatileWrite<T>(ref ImmutableArray<T> location, ImmutableArray<T> value)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
23/// the scenarios where <see cref="ImmutableArray{T}"/> is applicable, and
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.List.cs (1)
20public static readonly IReadOnlyList<T> Instance = ImmutableArray<T>.Empty;
src\roslyn\src\Dependencies\Collections\TemporaryArray`1.cs (6)
24/// <see cref="ImmutableArray{T}"/>. 179public void AddRange(ImmutableArray<T> items) 299/// Create an <see cref="ImmutableArray{T}"/> with the elements currently held in the temporary array, and clear 302public ImmutableArray<T> ToImmutableAndClear() 310var result = _count switch 3120 => ImmutableArray<T>.Empty,
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilder.cs (27)
61private readonly ImmutableArray<T>.Builder _builder; 83public ImmutableArray<T> ToImmutable() 91public ImmutableArray<T> ToImmutableAndClear() 93ImmutableArray<T> result; 96result = ImmutableArray<T>.Empty; 393public ImmutableArray<T> ToImmutableOrNull() 406public ImmutableArray<U> ToDowncastedImmutable<U>() 411return ImmutableArray<U>.Empty; 423public ImmutableArray<U> ToDowncastedImmutableAndFree<U>() where U : T 425var result = ToDowncastedImmutable<U>(); 433public ImmutableArray<T> ToImmutableAndFree() 437ImmutableArray<T> result; 440result = ImmutableArray<T>.Empty; 613internal Dictionary<K, ImmutableArray<T>> ToDictionary<K>(Func<T, K> keySelector, IEqualityComparer<K>? comparer = null) 618var dictionary1 = new Dictionary<K, ImmutableArray<T>>(1, comparer); 626return new Dictionary<K, ImmutableArray<T>>(comparer); 645var dictionary = new Dictionary<K, ImmutableArray<T>>(accumulator.Count, comparer); 684public void AddRange(ImmutableArray<T> items) 689public void AddRange<U>(ImmutableArray<U> items, Func<U, T> selector) 697public void AddRange(ImmutableArray<T> items, int length) 702public void AddRange(ImmutableArray<T> items, int start, int length) 712public void AddRange<S>(ImmutableArray<S> items) where S : class, T 714AddRange(ImmutableArray<T>.CastUp(items)); 806public ImmutableArray<S> SelectDistinct<S>(Func<T, S> selector) 878public ImmutableArray<TResult> SelectAsArray<TResult>(Func<T, TResult> map) 914public ImmutableArray<TResult> SelectAsArray<TArg, TResult>(Func<T, TArg, TResult> map, TArg arg) 950public ImmutableArray<TResult> SelectAsArrayWithIndex<TArg, TResult>(Func<T, int, TArg, TResult> map, TArg arg)
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilderExtensions.cs (1)
16public static ImmutableArray<T> ToImmutableOrEmptyAndFree<T>(this ArrayBuilder<T>? builder)
src\roslyn\src\Dependencies\Threading\IAsyncEnumerableExtensions.cs (1)
16public static async Task<ImmutableArray<T>> ToImmutableArrayAsync<T>(this IAsyncEnumerable<T> values, CancellationToken cancellationToken)
src\roslyn\src\Dependencies\Threading\ProducerConsumer.cs (7)
25Func<ImmutableArray<TItem>, TArgs, CancellationToken, Task> consumeItems, 49Func<ImmutableArray<TItem>, TArgs, CancellationToken, Task> consumeItems, 127Func<ImmutableArray<TItem>, TArgs, CancellationToken, Task> consumeItems, 141Func<ImmutableArray<TItem>, TArgs, CancellationToken, Task> consumeItems, 191public static Task<ImmutableArray<TItem>> RunParallelAsync<TSource, TArgs>( 204public static async Task<ImmutableArray<TItem>> RunParallelAsync<TSource, TArgs>( 284/// but returns value as an <see cref="IAsyncEnumerable{TItem}"/>. Versus an <see cref="ImmutableArray{TItem}"/>.
src\roslyn\src\RoslynAnalyzers\Microsoft.CodeAnalysis.BannedApiAnalyzers\Core\SymbolIsBannedAnalyzerBase.cs (7)
26protected abstract Dictionary<(string ContainerName, string SymbolName), ImmutableArray<BanFileEntry>>? ReadBannedApis(CompilationStartAnalysisContext compilationContext); 34protected abstract ImmutableArray<TSyntaxKind> BaseTypeSyntaxKinds { get; } 194bannedApis.TryGetValue((parentName, symbol.Name), out var entries)) 295void VerifyAttributes(Action<Diagnostic> reportDiagnostic, ImmutableArray<AttributeData> attributes, CancellationToken cancellationToken) 486private readonly Lazy<ImmutableArray<ISymbol>> _lazySymbols; 487public ImmutableArray<ISymbol> Symbols => _lazySymbols.Value; 514_lazySymbols = new Lazy<ImmutableArray<ISymbol>>(
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\AdditionalFileProvider.cs (2)
22private readonly ImmutableArray<AdditionalText> _additionalFiles; 24internal AdditionalFileProvider(ImmutableArray<AdditionalText> additionalFiles)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.AssemblyMetricData.cs (5)
25ImmutableArray<CodeAnalysisMetricData> children) 33ImmutableArray<CodeAnalysisMetricData> children = await ComputeAsync(GetChildSymbols(assembly), context).ConfigureAwait(false); 39ImmutableArray<CodeAnalysisMetricData> children = ComputeSynchronously(GetChildSymbols(assembly), context); 43private static AssemblyMetricData ComputeFromChildren(IAssemblySymbol assembly, ImmutableArray<CodeAnalysisMetricData> children, CodeMetricsAnalysisContext context) 72private static ImmutableArray<INamespaceOrTypeSymbol> GetChildSymbols(IAssemblySymbol assembly)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.cs (4)
33ImmutableArray<CodeAnalysisMetricData> children) 112public ImmutableArray<CodeAnalysisMetricData> Children { get; } 323internal static async Task<ImmutableArray<CodeAnalysisMetricData>> ComputeAsync(IEnumerable<ISymbol> children, CodeMetricsAnalysisContext context) 331internal static ImmutableArray<CodeAnalysisMetricData> ComputeSynchronously(IEnumerable<ISymbol> children, CodeMetricsAnalysisContext context)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.EventMetricData.cs (3)
22ImmutableArray<CodeAnalysisMetricData> children) 31ImmutableArray<SyntaxReference> declarations = @event.DeclaringSyntaxReferences; 37ImmutableArray<CodeAnalysisMetricData> children = ComputeSynchronously(GetAccessors(@event), context);
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.FieldMetricData.cs (2)
23linesOfCode, cyclomaticComplexity, depthOfInheritance, children: ImmutableArray<CodeAnalysisMetricData>.Empty) 30ImmutableArray<SyntaxReference> declarations = field.DeclaringSyntaxReferences;
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.MethodMetricData.cs (2)
23linesOfCode, cyclomaticComplexity, depthOfInheritance, children: ImmutableArray<CodeAnalysisMetricData>.Empty) 30ImmutableArray<SyntaxReference> declarations = method.DeclaringSyntaxReferences;
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.NamedTypeMetricData.cs (5)
25ImmutableArray<CodeAnalysisMetricData> children) 35ImmutableArray<CodeAnalysisMetricData> children = await ComputeAsync(members, context).ConfigureAwait(false); 44ImmutableArray<CodeAnalysisMetricData> children = ComputeSynchronously(members, context); 65private static NamedTypeMetricData ComputeFromChildren(INamedTypeSymbol namedType, ImmutableArray<CodeAnalysisMetricData> children, CodeMetricsAnalysisContext context) 68ImmutableArray<SyntaxReference> declarations = namedType.DeclaringSyntaxReferences;
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.NamespaceMetricData.cs (5)
24ImmutableArray<CodeAnalysisMetricData> children) 32ImmutableArray<CodeAnalysisMetricData> children = await ComputeAsync(GetChildSymbols(@namespace), context).ConfigureAwait(false); 38ImmutableArray<CodeAnalysisMetricData> children = ComputeSynchronously(GetChildSymbols(@namespace), context); 42private static NamespaceMetricData ComputeFromChildren(INamespaceSymbol @namespace, ImmutableArray<CodeAnalysisMetricData> children, CodeMetricsAnalysisContext context) 72private static ImmutableArray<INamespaceOrTypeSymbol> GetChildSymbols(INamespaceSymbol @namespace)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.PropertyMetricData.cs (3)
22ImmutableArray<CodeAnalysisMetricData> children) 31ImmutableArray<SyntaxReference> declarations = property.DeclaringSyntaxReferences; 38ImmutableArray<CodeAnalysisMetricData> children = ComputeSynchronously(GetAccessors(property), context);
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (7)
54ImmutableArray<IParameterSymbol> parameters) 62internal static long GetLinesOfCode(ImmutableArray<SyntaxReference> declarations, ISymbol symbol, CodeMetricsAnalysisContext context) 192ImmutableArray<SyntaxReference> declarations, 209var parameters = GetParameters(symbol); 220var attributes = symbol.GetAttributes(); 409internal static ImmutableArray<IParameterSymbol> GetParameters(this ISymbol member) 415_ => ImmutableArray<IParameterSymbol>.Empty,
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\DiagnosticExtensions.cs (5)
29=> node.CreateDiagnostic(rule, additionalLocations: ImmutableArray<Location>.Empty, properties, args); 34ImmutableArray<Location> additionalLocations, 63ImmutableArray<Location> additionalLocations, 110=> location.CreateDiagnostic(rule, ImmutableArray<Location>.Empty, properties, args); 115ImmutableArray<Location> additionalLocations,
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\IMethodSymbolExtensions.cs (2)
547public static ImmutableArray<IMethodSymbol> GetOriginalDefinitions(this IMethodSymbol methodSymbol) 549ImmutableArray<IMethodSymbol>.Builder originalDefinitionsBuilder = ImmutableArray.CreateBuilder<IMethodSymbol>();
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\ImmutableArrayExtensions.cs (6)
13/// <param name="source">The <see cref="ImmutableArray{TSource}"/> to check for cardinality.</param> 16public static bool HasExactly<TSource>(this ImmutableArray<TSource> source, int count) => source.Length == count; 22/// <param name="source">The <see cref="ImmutableArray{TSource}"/> to check for cardinality.</param> 25public static bool HasMoreThan<TSource>(this ImmutableArray<TSource> source, int count) => source.Length > count; 31/// <param name="source">The <see cref="ImmutableArray{TSource}"/> to check for cardinality.</param> 34public static bool HasFewerThan<TSource>(this ImmutableArray<TSource> source, int count) => source.Length < count;
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\IOperationExtensions.cs (5)
83public static ImmutableArray<IOperation> GetTopmostExplicitDescendants(this IOperation operation) 166public static IOperation? GetAncestor(this IOperation root, ImmutableArray<OperationKind> ancestorKinds, Func<IOperation, bool>? predicate = null) 381private static readonly ImmutableArray<OperationKind> s_LambdaAndLocalFunctionKinds = 491this ImmutableArray<IArgumentOperation> arguments, 512this ImmutableArray<IArgumentOperation> arguments,
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\IPropertySymbolExtensions.cs (2)
22public static ImmutableArray<IPropertySymbol> GetOriginalDefinitions(this IPropertySymbol propertySymbol) 24ImmutableArray<IPropertySymbol>.Builder originalDefinitionsBuilder = ImmutableArray.CreateBuilder<IPropertySymbol>();
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\ITypeSymbolExtensions.cs (2)
155var current = type.GetAttributes(); 222var current = type.GetAttributes();
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\OperationKinds.cs (1)
12public static ImmutableArray<OperationKind> MemberReference { get; }
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\HashUtilities.cs (2)
25internal static int Combine<T>(ImmutableArray<T> array) 32internal static void Combine<T>(ImmutableArray<T> array, ref RoslynHashCode hashCode)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\AnalyzerOptionsExtensions.cs (4)
408var matchingSymbols = DocumentationCommentId.GetSymbolsForDeclarationId(genericInterfaceFullName, compilation); 489var names = optionValue.Split(['|'], StringSplitOptions.RemoveEmptyEntries).ToImmutableArray(); 542public static ImmutableArray<string> GetMSBuildItemMetadataValues( 553return ImmutableArray<string>.Empty;
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\MSBuildItemOptionNames.cs (2)
41public static ImmutableArray<string> ParseItemOptionValue(string? itemOptionValue) 45return ImmutableArray<string>.Empty;
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (1)
81public static SymbolNamesWithValueOption<TValue> Create(ImmutableArray<string> symbolNames, Compilation compilation, string? optionalPrefix,
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\WellKnownTypeProvider.cs (6)
33_referencedAssemblies = new Lazy<ImmutableArray<IAssemblySymbol>>( 62private readonly Lazy<ImmutableArray<IAssemblySymbol>> _referencedAssemblies; 81private static readonly ConcurrentDictionary<string, ImmutableArray<string>> _fullTypeNameToNamespaceNames = 120ImmutableArray<string> namespaceNames; 214private static ImmutableArray<string> GetNamespaceNamesFromFullTypeName(string fullTypeName) 297private static bool IsSubsetOfCollection<T>(ImmutableArray<T> set1, ICollection<T> set2)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\WordParser.cs (2)
202public static bool ContainsWord(string text, WordParserOptions options, ImmutableArray<string> words) 236internal static bool ContainsWord(string text, WordParserOptions options, char prefix, ImmutableArray<string> words)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleHelpers.cs (3)
119this ImmutableArray<IOption2>.Builder optionsBuilder, 132this ImmutableArray<IOption2>.Builder optionsBuilder, 144this ImmutableArray<IOption2>.Builder optionsBuilder,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleOptions2.cs (2)
21private static readonly ImmutableArray<IOption2>.Builder s_editorConfigOptionsBuilder = ImmutableArray.CreateBuilder<IOption2>(); 356internal static readonly ImmutableArray<IOption2> EditorConfigOptions = s_editorConfigOptionsBuilder.ToImmutable();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\VisualBasic\VisualBasicCodeStyleOptions.cs (2)
14private static readonly ImmutableArray<IOption2>.Builder s_allOptionsBuilder = ImmutableArray.CreateBuilder<IOption2>(); 55public static ImmutableArray<IOption2> EditorConfigOptions => s_allOptionsBuilder.ToImmutable();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\IntervalTreeAlgorithms`2.cs (4)
19public ImmutableArray<T> GetIntervalsThatMatch<TIntrospector, TIntervalTester>( 29public ImmutableArray<T> GetIntervalsThatOverlapWith<TIntrospector>( 36public ImmutableArray<T> GetIntervalsThatIntersectWith<TIntrospector>( 43public ImmutableArray<T> GetIntervalsThatContain<TIntrospector>(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\SimpleMutableIntervalTree`2.cs (3)
39public ImmutableArray<T> GetIntervalsThatOverlapWith(int start, int length) 42public ImmutableArray<T> GetIntervalsThatIntersectWith(int start, int length) 45public ImmutableArray<T> GetIntervalsThatContain(int start, int length)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Diagnostics\IPragmaSuppressionsAnalyzer.cs (1)
26Func<DiagnosticAnalyzer, ImmutableArray<DiagnosticDescriptor>> getSupportedDiagnostics,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Editing\GenerationOptions.cs (1)
30public static readonly ImmutableArray<IOption2> EditorConfigOptions = [PlaceSystemNamespaceFirst, SeparateImportDirectiveGroups];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\Common\EmbeddedSeparatedSyntaxNodeList.cs (2)
17public ImmutableArray<EmbeddedSyntaxNodeOrToken<TSyntaxKind, TSyntaxNode>> NodesAndTokens { get; } 25ImmutableArray<EmbeddedSyntaxNodeOrToken<TSyntaxKind, TSyntaxNode>> nodesAndTokens)
src\roslyn\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) 56public EmbeddedSyntaxToken<TSyntaxKind> WithDiagnostics(ImmutableArray<EmbeddedDiagnostic> diagnostics) 61Optional<ImmutableArray<EmbeddedSyntaxTrivia<TSyntaxKind>>> leadingTrivia = default, 63Optional<ImmutableArray<EmbeddedSyntaxTrivia<TSyntaxKind>>> trailingTrivia = default, 64Optional<ImmutableArray<EmbeddedDiagnostic>> diagnostics = default,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\Common\EmbeddedSyntaxTree.cs (2)
17public readonly ImmutableArray<EmbeddedDiagnostic> Diagnostics; 22ImmutableArray<EmbeddedDiagnostic> diagnostics)
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\VirtualCharGreenSequence.Chunks.cs (1)
15/// is used so we can expose <see cref="VirtualChar"/>s over an <see cref="ImmutableArray{VirtualChar}"/>
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\VirtualCharUtilities.cs (1)
26public static (ImmutableSegmentedList<VirtualChar> sourceCode, ImmutableArray<TextSpan> markdownSpans) StripMarkupCharacters(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\CollectionExpressionUtilities.cs (3)
97var constructors = namedType.Constructors; 122IMethodSymbol? GetAccessibleInstanceConstructor(ImmutableArray<IMethodSymbol> constructors, Func<IMethodSymbol, bool> predicate) 145public static ImmutableArray<IMethodSymbol>? TryGetCollectionBuilderFactoryMethods(
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DirectiveInfo.cs (2)
12Dictionary<TDirectiveTriviaSyntax, ImmutableArray<TDirectiveTriviaSyntax>> conditionalMap) 19public Dictionary<TDirectiveTriviaSyntax, ImmutableArray<TDirectiveTriviaSyntax>> ConditionalMap { get; } = conditionalMap;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ImmutableArrayExtensions.cs (6)
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> ToImmutableAndClear<T>(this ImmutableArray<T>.Builder builder) 42var result = builder.ToImmutable();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ObjectWriterExtensions.cs (3)
13public static void WriteArray<T>(this ObjectWriter writer, ImmutableArray<T> values, Action<ObjectWriter, T> write) 23public static ImmutableArray<T> ReadArray<T>(this ObjectReader reader, Func<ObjectReader, T> read) 26public static ImmutableArray<T> ReadArray<T, TArg>(this ObjectReader reader, Func<ObjectReader, TArg, T> read, TArg arg)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (3)
341public static bool HasAnyOperationDescendant(this ImmutableArray<IOperation> operationBlocks, Func<IOperation, bool> predicate) 374public static bool HasAnyOperationDescendant(this ImmutableArray<IOperation> operationBlocks, OperationKind kind) 437static IOperation? TryGetSingleExplicitStatement(ImmutableArray<IOperation> operations)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SemanticModelExtensions.cs (2)
140var typeArguments = type.GetAllTypeArguments(); 178ImmutableArray<ITypeSymbol> typeArguments,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\StackExtensions.cs (1)
39public static void Push<T>(this Stack<T> stack, ImmutableArray<T> values)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\StringExtensions.cs (1)
188public static ImmutableArray<SymbolDisplayPart> ToSymbolDisplayParts(this string text)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SymbolInfoExtensions.cs (3)
16public static ImmutableArray<ISymbol> GetAllSymbols(this SymbolInfo info) 19private static ImmutableArray<ISymbol> GetAllSymbolsWorker(this SymbolInfo info) 25public static ImmutableArray<ISymbol> GetBestOrAllSymbols(this SymbolInfo info)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (2)
862var conditionalMap = new Dictionary<TDirectiveTriviaSyntax, ImmutableArray<TDirectiveTriviaSyntax>>( 928var condDirectives = condDirectivesBuilder.ToImmutableAndClear();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\TextSpanExtensions.cs (2)
21public static ImmutableArray<TextSpan> ToNormalizedSpans(this ImmutableArray<TextSpan> spans)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\CustomDataFlowAnalysis.cs (2)
32var blocks = controlFlowGraph.Blocks; 67ImmutableArray<BasicBlock> blocks,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.AnalysisData.cs (2)
144ImmutableArray<IParameterSymbol> parameters) 152ImmutableArray<IParameterSymbol> parameters)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageResult.cs (1)
47public ImmutableArray<(ISymbol Symbol, IOperation WriteOperation)> GetUnreadSymbolWrites()
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.cs (2)
412var intervals = tree.GetIntervalsThatContain(textSpan.Start, textSpan.Length); 542var anchorData = _anchorTree.GetIntervalsThatOverlapWith(baseAnchorData.TextSpan.Start, baseAnchorData.TextSpan.Length);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.InitialContextFinder.cs (3)
43public (List<IndentBlockOperation> indentOperations, ImmutableArray<SuppressOperation> suppressOperations) Do(SyntaxToken startToken, SyntaxToken endToken) 53var initialSuppressOperations = GetInitialSuppressOperations(startToken, endToken); 124private ImmutableArray<SuppressOperation> GetInitialSuppressOperations(SyntaxToken startToken, SyntaxToken endToken)
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\ChainedFormattingRules.cs (9)
21private readonly ImmutableArray<AbstractFormattingRule> _formattingRules; 24private readonly ImmutableArray<AbstractFormattingRule> _addSuppressOperationsRules; 25private readonly ImmutableArray<AbstractFormattingRule> _addAnchorIndentationOperationsRules; 26private readonly ImmutableArray<AbstractFormattingRule> _addIndentBlockOperationsRules; 27private readonly ImmutableArray<AbstractFormattingRule> _addAlignTokensOperationsRules; 28private readonly ImmutableArray<AbstractFormattingRule> _getAdjustNewLinesOperationRules; 29private readonly ImmutableArray<AbstractFormattingRule> _getAdjustSpacesOperationRules; 82private static ImmutableArray<AbstractFormattingRule> FilterToRulesImplementingMethod(ImmutableArray<AbstractFormattingRule> rules, string name)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingOptions2.cs (2)
97internal static readonly ImmutableArray<IOption2> EditorConfigOptions = [UseTabs, TabSize, IndentationSize, NewLine, InsertFinalNewLine]; 102internal static readonly ImmutableArray<IOption2> UndocumentedOptions = [WrappingColumn, ConditionalExpressionWrappingLength];
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextAlignTokensOperationAction.cs (1)
12ImmutableArray<AbstractFormattingRule> formattingRules,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextAnchorIndentationOperationAction.cs (1)
12ImmutableArray<AbstractFormattingRule> formattingRules,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextGetAdjustNewLinesOperation.cs (1)
11ImmutableArray<AbstractFormattingRule> formattingRules,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextGetAdjustSpacesOperation.cs (1)
11ImmutableArray<AbstractFormattingRule> formattingRules,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextIndentBlockOperationAction.cs (1)
12ImmutableArray<AbstractFormattingRule> formattingRules,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextSuppressOperationAction.cs (1)
12ImmutableArray<AbstractFormattingRule> formattingRules,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\TriviaEngine\AbstractTriviaFormatter.cs (1)
265public ImmutableArray<TextChange> FormatToTextChanges(CancellationToken cancellationToken)
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Helpers\RemoveUnnecessaryImports\IUnnecessaryImportsProvider.cs (2)
15ImmutableArray<TSyntaxNode> GetUnnecessaryImports(SemanticModel model, TextSpan? span, CancellationToken cancellationToken); 17ImmutableArray<TSyntaxNode> GetUnnecessaryImports(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Indentation\AbstractIndentation.Indenter.cs (1)
44ImmutableArray<AbstractFormattingRule> rules,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser_SymbolSpec.cs (12)
49out Property<ImmutableArray<SymbolKindOrTypeKind>> kinds, 50out Property<ImmutableArray<Accessibility>> accessibilities, 51out Property<ImmutableArray<ModifierKind>> modifiers) 86private static readonly ImmutableArray<SymbolKindOrTypeKind> s_allApplicableKinds = 89private static ImmutableArray<SymbolKindOrTypeKind> ParseSymbolKindList(string symbolSpecApplicableKinds) 156private static readonly ImmutableArray<Accessibility> s_allAccessibility = 167private static ImmutableArray<Accessibility> ParseAccessibilityKindList(string symbolSpecApplicableAccessibilities) 220private static readonly ImmutableArray<ModifierKind> _allModifierKind = [s_abstractModifierKind, s_asyncModifierKind, s_constModifierKind, s_readonlyModifierKind, s_staticModifierKind]; 222private static ImmutableArray<ModifierKind> ParseModifiers(string symbolSpecRequiredModifiers) 264public static string ToEditorConfigString(this ImmutableArray<SymbolKindOrTypeKind> symbols) 362public static string ToEditorConfigString(this ImmutableArray<Accessibility> accessibilities, string languageName) 421public static string ToEditorConfigString(this ImmutableArray<ModifierKind> modifiers, string languageName)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Naming\IdentifierNameParts.cs (6)
15internal readonly struct IdentifierNameParts(string baseName, ImmutableArray<string> baseNameParts) 18public readonly ImmutableArray<string> BaseNameParts = baseNameParts; 20public static IdentifierNameParts CreateIdentifierNameParts(ISymbol symbol, ImmutableArray<NamingRule> rules) 31var words = CreateWords(parts, baseName); 36private static string RemovePrefixesAndSuffixes(ISymbol symbol, ImmutableArray<NamingRule> rules, string baseName) 73private static ImmutableArray<string> CreateWords(in TemporaryArray<TextSpan> parts, string name)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (1)
61public string CreateName(ImmutableArray<string> words)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyleOptions.cs (1)
32internal static readonly ImmutableArray<IOption2> EditorConfigOptions = [NamingPreferences];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyleRules.cs (5)
11internal sealed class NamingStyleRules(ImmutableArray<NamingRule> namingRules) 13public ImmutableArray<NamingRule> NamingRules { get; } = namingRules; 15private readonly ImmutableArray<SymbolKind> _symbolKindsThatCanBeOverridden = 88var implementedInterfaces = containingType.AllInterfaces; 92var implementedInterfaceMembersWithSameName = implementedInterface.GetMembers(symbol.Name);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (10)
27public readonly ImmutableArray<SymbolSpecification> SymbolSpecifications; 30public readonly ImmutableArray<NamingStyle> NamingStyles; 33public ImmutableArray<SerializableNamingRule> SerializableNamingRules 57ImmutableArray<SymbolSpecification> symbolSpecifications, 58ImmutableArray<NamingStyle> namingStyles, 59ImmutableArray<SerializableNamingRule> serializableRules) 76ImmutableArray<SymbolSpecification> symbolSpecifications, 77ImmutableArray<NamingStyle> namingStyles, 78ImmutableArray<NamingRule> namingRules) 336public static NamingStylePreferences Empty { get; } = new([], [], ImmutableArray<NamingRule>.Empty);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (10)
26ImmutableArray<SymbolSpecification.SymbolKindOrTypeKind> symbolKindList, 27ImmutableArray<Accessibility> accessibilityList = default, 28ImmutableArray<SymbolSpecification.ModifierKind> modifiers = default) : IEquatable<SymbolSpecification> 39public ImmutableArray<SymbolKindOrTypeKind> ApplicableSymbolKindList { get; } = symbolKindList.IsDefault ? DefaultSymbolSpecificationTemplate.ApplicableSymbolKindList : symbolKindList; 42public ImmutableArray<Accessibility> ApplicableAccessibilityList { get; } = accessibilityList.IsDefault ? DefaultSymbolSpecificationTemplate.ApplicableAccessibilityList : accessibilityList; 45public ImmutableArray<ModifierKind> RequiredModifierList { get; } = modifiers.IsDefault ? DefaultSymbolSpecificationTemplate.RequiredModifierList : modifiers; 120private static Modifiers CollapseModifiers(ImmutableArray<ModifierKind> requiredModifierList) 285private static ImmutableArray<SymbolKindOrTypeKind> GetSymbolKindListFromXElement(XElement symbolKindListElement) 306private static ImmutableArray<Accessibility> GetAccessibilityListFromXElement(XElement accessibilityListElement) 312private static ImmutableArray<ModifierKind> GetModifierListFromXElement(XElement modifierListElement)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionDefinition.cs (4)
104type == typeof(ImmutableArray<bool>) || 105type == typeof(ImmutableArray<string>) || 106type == typeof(ImmutableArray<int>) || 107type == typeof(ImmutableArray<long>);
src\roslyn\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\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\FileBannerFacts\IFileBannerFactsExtensions.cs (2)
12public static ImmutableArray<SyntaxTrivia> GetTriviaAfterLeadingBlankLines( 15var leadingBlankLines = bannerService.GetLeadingBlankLines(node);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\HeaderFacts\AbstractHeaderFacts.cs (2)
30=> IsOnHeader(root, position, ownerOfHeader, lastTokenOrNodeOfHeader, ImmutableArray<SyntaxNode>.Empty); 37ImmutableArray<THoleSyntax> holes)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SelectedMembers\AbstractSelectedMembers.cs (5)
31protected abstract ImmutableArray<(SyntaxNode declarator, SyntaxToken identifier)> GetDeclaratorsAndIdentifiers(TMemberDeclarationSyntax member); 33public Task<ImmutableArray<SyntaxNode>> GetSelectedFieldsAndPropertiesAsync( 37public Task<ImmutableArray<SyntaxNode>> GetSelectedMembersAsync( 41private async Task<ImmutableArray<SyntaxNode>> GetSelectedMembersAsync( 76private ImmutableArray<SyntaxNode> GetMembersInSpan(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SemanticFacts\ISemanticFacts.cs (4)
85ImmutableArray<IMethodSymbol> GetDeconstructionAssignmentMethods(SemanticModel semanticModel, SyntaxNode node); 87ImmutableArray<IMethodSymbol> GetDeconstructionForEachMethods(SemanticModel semanticModel, SyntaxNode node); 99ImmutableArray<ISymbol> GetBestOrAllSymbols(SemanticModel semanticModel, SyntaxNode? node, SyntaxToken token, CancellationToken cancellationToken); 106ImmutableArray<IMethodSymbol> GetLocalFunctionSymbols(Compilation compilation, ISymbol symbol, CancellationToken cancellationToken);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SyntaxFacts\ISyntaxFacts.cs (1)
187ImmutableArray<SyntaxNode> GetMatchingConditionalDirectives(SyntaxNode directive, CancellationToken cancellationToken);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SyntaxFacts\ISyntaxFactsExtensions.cs (1)
160this ISyntaxFacts syntaxFacts, ImmutableArray<SyntaxNode> nodes, CancellationToken cancellationToken)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Simplification\SymbolAnnotation.cs (1)
23public static ImmutableArray<ISymbol> GetSymbols(SyntaxAnnotation annotation, Compilation compilation)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.AnonymousTypeSymbolKey.cs (8)
21var properties = symbol.GetMembers().OfType<IPropertySymbol>().ToImmutableArray(); 22var propertyTypes = properties.SelectAsArray(p => p.Type); 23var propertyNames = properties.SelectAsArray(p => (string?)p.Name); 24var propertyIsReadOnly = properties.SelectAsArray(p => p.SetMethod == null); 25var propertyLocations = properties.SelectAsArray(p => p.Locations.FirstOrDefault()); 38var contextualProperties = contextualSymbol?.GetMembers().OfType<IPropertySymbol>().ToImmutableArray() ?? []; 48var propertyLocations = ReadPropertyLocations(reader, out var propertyLocationsFailureReason); 75private static ImmutableArray<Location> ReadPropertyLocations(SymbolKeyReader reader, out string? failureReason)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.BodyLevelSymbolKey.cs (2)
19public static ImmutableArray<Location?> GetBodyLevelSourceLocations(ISymbol symbol, CancellationToken cancellationToken) 63var locations = GetBodyLevelSourceLocations(symbol, cancellationToken);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (5)
152var locations = BodyLevelSymbolKey.GetBodyLevelSourceLocations(symbol, cancellationToken); 261ImmutableArray<ISymbol>.CastUp(symbols.Builder.ToImmutableAndClear()), 266private static T? SafeGet<T>(ImmutableArray<T> values, int index) where T : class 276ImmutableArray<IParameterSymbol> parameters, 303var members = metadataName == null
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.ErrorTypeSymbolKey.cs (2)
44visitor.WriteSymbolKeyArray(ImmutableArray<ITypeSymbol>.Empty); 52private static ImmutableArray<string?> GetContainingNamespaceNamesInReverse(INamespaceSymbol namespaceSymbol)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.FunctionPointerTypeSymbolKey.cs (2)
37var callingConventionModifiers = ImmutableArray<INamedTypeSymbol>.Empty;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.ModuleSymbolKey.cs (1)
38if (assemblyModules is ImmutableArray<IModuleSymbol> modules)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.ParameterSymbolKey.cs (1)
85string metadataName, int ordinal, ImmutableArray<IParameterSymbol> parameters)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.PooledArrayBuilder.cs (2)
34public ImmutableArray<T> ToImmutable() => Builder.ToImmutable(); 52public void AddValuesIfNotNull(ImmutableArray<T> values)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
384ImmutableArray<IParameterSymbol> parameters)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (7)
277internal void WriteSymbolKeyArray<TSymbol>(ImmutableArray<TSymbol> symbols) 283internal void WriteParameterTypesArray(ImmutableArray<IParameterSymbol> symbols) 286internal void WriteBooleanArray(ImmutableArray<bool> array) 292internal void WriteStringArray(ImmutableArray<string?> strings) 295internal void WriteLocationArray(ImmutableArray<Location?> array) 300internal void WriteRefKindArray(ImmutableArray<IParameterSymbol> values) 303private void WriteArray<T, U>(ImmutableArray<T> array, Action<U> writeValue)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TupleTypeSymbolKey.cs (4)
67var elementLocations = ReadElementLocations(reader, out var elementLocationsFailureReason); 80var elementNamesArray = elementNames.ToImmutable(); 95var elementLocations = ReadElementLocations(reader, out var elementLocationsFailureReason); 126private static ImmutableArray<Location> ReadElementLocations(SymbolKeyReader reader, out string? failureReason)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKeyResolution.cs (2)
27internal SymbolKeyResolution(ImmutableArray<ISymbol> candidateSymbols, CandidateReason candidateReason) 38public ImmutableArray<ISymbol> CandidateSymbols => field.NullToEmpty();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (10)
112SemanticModel model, TForEachStatementSyntax forEach, out IMethodSymbol getEnumeratorMethod, out ITypeSymbol elementType, out ImmutableArray<ILocalSymbol> localVariables); 120protected abstract ImmutableArray<TArgumentSyntax> GetArguments(TExpressionSyntax expression); 778GetForEachSymbols(this.OriginalSemanticModel, forEachStatement, out var originalGetEnumerator, out var originalElementType, out var originalLocalVariables); 779GetForEachSymbols(this.SpeculativeSemanticModel, newForEachStatement, out var newGetEnumerator, out var newElementType, out var newLocalVariables); 1055var specifiedArguments = GetArguments(originalInvocation); 1058var symbolParameters = originalSymbol.GetParameters(); 1059var newSymbolParameters = newSymbol.GetParameters(); 1068ImmutableArray<TArgumentSyntax> specifiedArguments, 1069ImmutableArray<IParameterSymbol> signature1Parameters, 1070ImmutableArray<IParameterSymbol> signature2Parameters)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.Builder.cs (2)
139private void BuildArrays(ImmutableArray<Node>.Builder nodes, ImmutableArray<Edge>.Builder edges)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.cs (4)
49private readonly ImmutableArray<Node> _nodes; 50private readonly ImmutableArray<Edge> _edges; 52private BKTree(char[] concatenatedLowerCaseWords, ImmutableArray<Node> nodes, ImmutableArray<Edge> edges)
src\roslyn\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\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IAsyncEnumerableExtensions.cs (1)
38public static IAsyncEnumerable<T> MergeAsync<T>(this ImmutableArray<IAsyncEnumerable<T>> streams, CancellationToken cancellationToken)
src\roslyn\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\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\InterceptsLocationUtilities.cs (4)
20internal record struct InterceptsLocationData(ImmutableArray<byte> ContentHash, int Position) 31public static ImmutableArray<InterceptsLocationData> GetInterceptsLocationData(ImmutableArray<AttributeData> attributes) 103var contentHash = bytes[HashIndex..HashSize].ToImmutableArray();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\LightweightOverloadResolution.cs (4)
31public IMethodSymbol? RefineOverload(SymbolInfo symbolInfo, ImmutableArray<IMethodSymbol> candidates) 34public (IMethodSymbol? method, int parameterIndex) RefineOverloadAndPickParameter(SymbolInfo symbolInfo, ImmutableArray<IMethodSymbol> candidates) 52private (IMethodSymbol? symbol, int parameterIndex) GuessCurrentSymbolAndParameter(ImmutableArray<IMethodSymbol> methodGroup) 85var parameters = method.Parameters;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PathMetadataUtilities.cs (2)
27var parts = folders.SelectMany(folder => folder.Split(NamespaceSeparatorArray)).SelectAsArray(syntaxFacts.EscapeIdentifier); 59public static ImmutableArray<string> BuildFoldersFromNamespace(string? @namespace, string? rootNamespace = null)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PooledBuilderExtensions.cs (6)
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) 47public static ImmutableDictionary<K, ImmutableArray<V>> ToImmutableMultiDictionaryAndFree<K, V, TArg>(this PooledDictionary<K, ArrayBuilder<V>> builders, Func<K, TArg, bool>? where, TArg whereArg) 50var result = ImmutableDictionary.CreateBuilder<K, ImmutableArray<V>>(); 77public static ImmutableArray<T> ToFlattenedImmutableArrayAndFree<T>(this ArrayBuilder<ArrayBuilder<T>> builders)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\RestrictedInternalsVisibleToAttribute.cs (1)
13public ImmutableArray<string> AllowedNamespaces { get; } = [.. allowedNamespaces];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SerializableBytes.cs (1)
222public ImmutableArray<byte> ToImmutableArray()
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SpecializedTasks.cs (4)
46public static Task<ImmutableArray<T>> EmptyImmutableArray<T>() 87public static async ValueTask<ImmutableArray<TResult>> WhenAll<TResult>(this IReadOnlyCollection<Task<TResult>> tasks) 102public static readonly Task<ImmutableArray<T>> EmptyImmutableArray = Task.FromResult(ImmutableArray<T>.Empty);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (4)
29public static ImmutableArray<Compilation> GetReferencedCompilations(this Compilation compilation) 48public static ImmutableArray<IAssemblySymbol> GetReferencedAssemblySymbols(this Compilation compilation, bool excludePreviousSubmissions = false) 52var referencedAssemblySymbols = compilation.Assembly.Modules.First().ReferencedAssemblySymbols; 193=> compilation.GetTypeByMetadataName(typeof(ImmutableArray<>).FullName!);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IMethodSymbolExtensions.cs (1)
49public static ImmutableArray<IMethodSymbol> GetAllMethodSymbolsOfPartialParts(this IMethodSymbol method)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (25)
44public static ImmutableArray<ITypeParameterSymbol> GetAllTypeParameters(this INamedTypeSymbol? symbol) 50public static ImmutableArray<ITypeSymbol> GetAllTypeArguments(this INamedTypeSymbol? symbol) 190public static ImmutableArray<(INamedTypeSymbol type, ImmutableArray<ISymbol> members)> GetAllUnimplementedMembers( 208static ImmutableArray<ISymbol> GetImplicitlyImplementableMembers(INamedTypeSymbol type, ISymbol within) 260public static ImmutableArray<(INamedTypeSymbol type, ImmutableArray<ISymbol> members)> GetAllUnimplementedMembersInThis( 278public static ImmutableArray<(INamedTypeSymbol type, ImmutableArray<ISymbol> members)> GetAllUnimplementedMembersInThis( 281Func<INamedTypeSymbol, ISymbol, ImmutableArray<ISymbol>> interfaceMemberGetter, 297public static ImmutableArray<(INamedTypeSymbol type, ImmutableArray<ISymbol> members)> GetAllUnimplementedExplicitMembers( 311private static ImmutableArray<ISymbol> GetExplicitlyImplementableMembers(INamedTypeSymbol type, ISymbol within) 338private static ImmutableArray<(INamedTypeSymbol type, ImmutableArray<ISymbol> members)> GetAllUnimplementedMembers( 343Func<INamedTypeSymbol, ISymbol, ImmutableArray<ISymbol>> interfaceMemberGetter, 367var typesToImplement = GetTypesToImplement(classOrStructType, interfacesOrAbstractClasses, allowReimplementation, cancellationToken); 372private static ImmutableArray<INamedTypeSymbol> GetTypesToImplement( 383private static ImmutableArray<INamedTypeSymbol> GetAbstractClassesToImplement( 389private static ImmutableArray<INamedTypeSymbol> GetInterfacesToImplement( 404var alreadyImplementedInterfaces = baseType == null || allowReimplementation 413private static ImmutableArray<ISymbol> GetUnimplementedMembers( 418Func<INamedTypeSymbol, ISymbol, ImmutableArray<ISymbol>> interfaceMemberGetter, 528private static ImmutableArray<ISymbol> GetMembers(INamedTypeSymbol type, ISymbol within) 541public static ImmutableArray<ISymbol> GetOverridableMembers(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (12)
141public static ImmutableArray<ISymbol> ExplicitInterfaceImplementations(this ISymbol symbol) 144IEventSymbol @event => ImmutableArray<ISymbol>.CastUp(@event.ExplicitInterfaceImplementations), 145IMethodSymbol method => ImmutableArray<ISymbol>.CastUp(method.ExplicitInterfaceImplementations), 146IPropertySymbol property => ImmutableArray<ISymbol>.CastUp(property.ExplicitInterfaceImplementations), 150public static ImmutableArray<ISymbol> ExplicitOrImplicitInterfaceImplementations(this ISymbol symbol) 175public static ImmutableArray<ISymbol> ImplicitInterfaceImplementations(this ISymbol symbol) 423public static ImmutableArray<IParameterSymbol> GetParameters(this ISymbol? symbol) 431public static ImmutableArray<ITypeParameterSymbol> GetTypeParameters(this ISymbol? symbol) 439public static ImmutableArray<ITypeParameterSymbol> GetAllTypeParameters(this ISymbol? symbol) 452public static ImmutableArray<ITypeSymbol> GetTypeArguments(this ISymbol? symbol) 460public static ImmutableArray<ITypeSymbol> GetAllTypeArguments(this ISymbol symbol) 705var potentialGetAwaiters = semanticModel.LookupSymbols(position,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (6)
43public static ImmutableArray<INamedTypeSymbol> GetAllInterfacesIncludingThis(this ITypeSymbol type) 45var allInterfaces = type.AllInterfaces; 446public static ImmutableArray<T> GetAccessibleMembersInThisAndBaseTypes<T>(this ITypeSymbol? containingType, ISymbol within) where T : class, ISymbol 456public static ImmutableArray<T> GetAccessibleMembersInThisAndBaseTypes<T>(this ITypeSymbol? containingType, string memberName, ISymbol within) where T : class, ISymbol 593var allTypeArgs1 = n1.GetAllTypeArguments(); 594var allTypeArgs2 = n2.GetAllTypeArguments();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.SubstituteTypesVisitor.cs (1)
72var allTypeArguments = symbol.GetAllTypeArguments();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SignatureComparer.cs (4)
108ImmutableArray<IParameterSymbol> parameters1, 109ImmutableArray<IParameterSymbol> parameters2) 118ImmutableArray<IParameterSymbol> parameters1, 119ImmutableArray<IParameterSymbol> parameters2,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.cs (2)
43private readonly ImmutableArray<EquivalenceVisitor> _equivalenceVisitors; 44private readonly ImmutableArray<GetHashCodeVisitor> _getHashCodeVisitors;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (8)
76internal 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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (1)
109private static int CombineHashCodes<T>(ImmutableArray<T> array, int currentHash, Func<int, T, int> func)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\CodeFixContextExtensions.cs (1)
27internal static void RegisterFixes(this CodeFixContext context, IEnumerable<CodeAction> actions, ImmutableArray<Diagnostic> diagnostics)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\FixAllContextHelper.cs (12)
22public static async Task<ImmutableDictionary<Document, ImmutableArray<Diagnostic>>> GetDocumentDiagnosticsToFixAsync( 27var allDiagnostics = ImmutableArray<Diagnostic>.Empty; 40var documentDiagnostics = await fixAllContext.GetDocumentDiagnosticsAsync(document).ConfigureAwait(false); 41return ImmutableDictionary<Document, ImmutableArray<Diagnostic>>.Empty.SetItem(document, documentDiagnostics); 72var projectsToFix = project.Solution.Projects 80allDiagnostics = await ProducerConsumer<ImmutableArray<Diagnostic>>.RunParallelAsync( 92await foreach (var diagnostics in results.ConfigureAwait(false)) 106return ImmutableDictionary<Document, ImmutableArray<Diagnostic>>.Empty; 132private static async Task<ImmutableDictionary<Document, ImmutableArray<Diagnostic>>> GetDocumentDiagnosticsToFixAsync( 134ImmutableArray<Diagnostic> diagnostics, 137var builder = ImmutableDictionary.CreateBuilder<Document, ImmutableArray<Diagnostic>>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\ForkingSyntaxEditorBasedCodeFixProvider.cs (1)
56ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\MultiProjectSafeFixAllProvider.cs (6)
40using var _ = PooledDictionary<DocumentId, ImmutableArray<DocumentId>>.GetInstance(out var documentToLinkedDocuments); 61var linkedDocuments = document.GetLinkedDocumentIds(); 81var diagnostics = documentToDiagnostics[document]; 92var linkedDiagnostics = documentToDiagnostics.TryGetValue(linkedDocument, out var result) ? result : []; 110static IEnumerable<TextSpan> GetDiagnosticSpans(ImmutableArray<Diagnostic> diagnostics)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\SyntaxEditorBasedCodeFixProvider.cs (5)
19private static readonly ImmutableArray<FixAllScope> s_defaultSupportedFixAllScopes = 41var filteredDiagnostics = diagnostics.Distinct() 65var diagnostics = ImmutableArray.Create(diagnostic ?? context.Diagnostics[0]); 70Document document, ImmutableArray<Diagnostic> diagnostics, CancellationToken cancellationToken) 98Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixesAndRefactorings\AbstractFixAllSpanMappingService.cs (3)
20protected abstract Task<ImmutableDictionary<Document, ImmutableArray<TextSpan>>> GetFixAllSpansIfWithinGlobalStatementAsync( 23public Task<ImmutableDictionary<Document, ImmutableArray<TextSpan>>> GetFixAllSpansAsync( 32private async Task<ImmutableDictionary<Document, ImmutableArray<TextSpan>>> GetFixAllSpansAsync(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixesAndRefactorings\IFixAllSpanMappingService.cs (1)
30Task<ImmutableDictionary<Document, ImmutableArray<TextSpan>>> GetFixAllSpansAsync(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService_FindDeclaration.cs (3)
30var declarations = _symbolDeclarationService.GetDeclarations(destination); 163var declarationReferences = _symbolDeclarationService.GetDeclarations(symbol); 164var declarations = declarationReferences.SelectAsArray(r => r.GetSyntax(cancellationToken));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationSymbolFactory.cs (72)
29ImmutableArray<AttributeData> attributes, Accessibility accessibility, 31ImmutableArray<IEventSymbol> explicitInterfaceImplementations, 44ImmutableArray<AttributeData> attributes, 49ImmutableArray<IPropertySymbol> explicitInterfaceImplementations, 51ImmutableArray<IParameterSymbol> parameters, 78ImmutableArray<AttributeData> attributes, Accessibility accessibility, DeclarationModifiers modifiers, 79ITypeSymbol type, RefKind refKind, ImmutableArray<IPropertySymbol> explicitInterfaceImplementations, string name, 80ImmutableArray<IParameterSymbol> parameters, IMethodSymbol? getMethod, IMethodSymbol? setMethod, 103ImmutableArray<AttributeData> attributes, 120ImmutableArray<AttributeData> attributes, 124ImmutableArray<IParameterSymbol> parameters, 125ImmutableArray<SyntaxNode> statements = default, 126ImmutableArray<SyntaxNode> baseConstructorArguments = default, 127ImmutableArray<SyntaxNode> thisConstructorArguments = default, 139ImmutableArray<AttributeData> attributes, string typeName, 140ImmutableArray<SyntaxNode> statements = default) 149ImmutableArray<AttributeData> attributes, 154ImmutableArray<IMethodSymbol> explicitInterfaceImplementations, 156ImmutableArray<ITypeParameterSymbol> typeParameters, 157ImmutableArray<IParameterSymbol> parameters, 158ImmutableArray<SyntaxNode> statements = default, 159ImmutableArray<SyntaxNode> handlesExpressions = default, 160ImmutableArray<AttributeData> returnTypeAttributes = default, 173ImmutableArray<AttributeData> attributes, Accessibility accessibility, DeclarationModifiers modifiers, 176ImmutableArray<IMethodSymbol> explicitInterfaceImplementations, 177string? name, ImmutableArray<ITypeParameterSymbol> typeParameters, 178ImmutableArray<IParameterSymbol> parameters, 179ImmutableArray<SyntaxNode> statements = default, 180ImmutableArray<SyntaxNode> handlesExpressions = default, 181ImmutableArray<AttributeData> returnTypeAttributes = default, 192ImmutableArray<AttributeData> attributes, 197ImmutableArray<IParameterSymbol> parameters, 198ImmutableArray<SyntaxNode> statements = default, 199ImmutableArray<AttributeData> returnTypeAttributes = default, 224ImmutableArray<SyntaxNode> statements = default, 225ImmutableArray<AttributeData> toTypeAttributes = default, 245ImmutableArray<AttributeData> attributes, 252ImmutableArray<SyntaxNode> statements = default, 253ImmutableArray<AttributeData> toTypeAttributes = default, 277ImmutableArray<AttributeData> attributes, RefKind refKind, bool isParams, ITypeSymbol type, string name, bool isOptional = false, bool hasDefaultValue = false, object? defaultValue = null) 287ImmutableArray<AttributeData>? attributes = null, 329ImmutableArray<AttributeData> attributes, 331ImmutableArray<ITypeSymbol> constraintTypes, 358ImmutableArray<AttributeData> attributes = default, 360ImmutableArray<IMethodSymbol> explicitInterfaceImplementations = default, 361ImmutableArray<SyntaxNode> statements = default) 383ImmutableArray<AttributeData> attributes, 385ImmutableArray<SyntaxNode> statements) 405ImmutableArray<TypedConstant> constructorArguments = default, 406ImmutableArray<KeyValuePair<string, TypedConstant>> namedArguments = default) 415ImmutableArray<AttributeData> attributes, 419ImmutableArray<ITypeParameterSymbol> typeParameters = default, 421ImmutableArray<INamedTypeSymbol> interfaces = default, 423ImmutableArray<ISymbol> members = default, 434ImmutableArray<AttributeData> attributes, 438ImmutableArray<ITypeParameterSymbol> typeParameters = default, 440ImmutableArray<INamedTypeSymbol> interfaces = default, 442ImmutableArray<ISymbol> members = default, 460ImmutableArray<AttributeData> attributes, 466ImmutableArray<ITypeParameterSymbol> typeParameters = default, 467ImmutableArray<IParameterSymbol> parameters = default, 512ImmutableArray<AttributeData> attributes = default, 515ImmutableArray<IMethodSymbol> explicitInterfaceImplementations = default, 517ImmutableArray<IParameterSymbol>? parameters = null, 518ImmutableArray<SyntaxNode> statements = default, 521Optional<ImmutableArray<AttributeData>> returnTypeAttributes = default) 542ImmutableArray<AttributeData> attributes = default, 543ImmutableArray<IParameterSymbol>? parameters = null, 546ImmutableArray<IPropertySymbol> explicitInterfaceImplementations = default, 570ImmutableArray<AttributeData> attributes = default, 573ImmutableArray<IEventSymbol> explicitInterfaceImplementations = default, 591ImmutableArray<AttributeData> attributes = default,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAbstractMethodSymbol.cs (14)
17private readonly ImmutableArray<AttributeData> _returnTypeAttributes; 19public virtual ImmutableArray<AttributeData> GetReturnTypeAttributes() 24ImmutableArray<AttributeData> attributes, 28ImmutableArray<AttributeData> returnTypeAttributes, 42public abstract ImmutableArray<ITypeSymbol> TypeArguments { get; } 43public abstract ImmutableArray<ITypeParameterSymbol> TypeParameters { get; } 44public abstract ImmutableArray<IParameterSymbol> Parameters { get; } 52public abstract ImmutableArray<IMethodSymbol> ExplicitInterfaceImplementations { get; } 59public ImmutableArray<NullableAnnotation> TypeArgumentNullableAnnotations => TypeArguments.SelectAsArray(a => a.NullableAnnotation); 90public ImmutableArray<CustomModifier> RefCustomModifiers 93public virtual ImmutableArray<CustomModifier> ReturnTypeCustomModifiers 110public ImmutableArray<INamedTypeSymbol> UnmanagedCallingConventionTypes => []; 115public IMethodSymbol Construct(ImmutableArray<ITypeSymbol> typeArguments, ImmutableArray<CodeAnalysis.NullableAnnotation> typeArgumentNullableAnnotations)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAbstractNamedTypeSymbol.cs (13)
18public ImmutableArray<IFieldSymbol> TupleElements { get; protected set; } 20internal readonly ImmutableArray<CodeGenerationAbstractNamedTypeSymbol> TypeMembers; 25ImmutableArray<AttributeData> attributes, 31ImmutableArray<CodeGenerationAbstractNamedTypeSymbol> typeMembers) 64public INamedTypeSymbol Construct(ImmutableArray<ITypeSymbol> typeArguments, ImmutableArray<NullableAnnotation> typeArgumentNullableAnnotations) 81public abstract ImmutableArray<IMethodSymbol> InstanceConstructors { get; } 82public abstract ImmutableArray<IMethodSymbol> StaticConstructors { get; } 83public abstract ImmutableArray<IMethodSymbol> Constructors { get; } 84public abstract ImmutableArray<ITypeSymbol> TypeArguments { get; } 85public abstract ImmutableArray<NullableAnnotation> TypeArgumentNullableAnnotations { get; } 87public ImmutableArray<CustomModifier> GetTypeArgumentCustomModifiers(int ordinal) 97public abstract ImmutableArray<ITypeParameterSymbol> TypeParameters { get; }
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationArrayTypeSymbol.cs (3)
24public ImmutableArray<int> Sizes 32public ImmutableArray<int> LowerBounds 57public ImmutableArray<CustomModifier> CustomModifiers
src\roslyn\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\roslyn\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\roslyn\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\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationConstructorSymbol.cs (2)
12ImmutableArray<AttributeData> attributes, 15ImmutableArray<IParameterSymbol> parameters) : CodeGenerationMethodSymbol(containingType,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationConversionSymbol.cs (2)
12ImmutableArray<AttributeData> attributes, 18ImmutableArray<AttributeData> toTypeAttributes,
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationDestructorSymbol.cs (1)
11ImmutableArray<AttributeData> attributes) : CodeGenerationMethodSymbol(containingType,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationEventSymbol.cs (4)
13ImmutableArray<AttributeData> attributes, 17ImmutableArray<IEventSymbol> explicitInterfaceImplementations, 26public ImmutableArray<IEventSymbol> ExplicitInterfaceImplementations { get; } = explicitInterfaceImplementations.NullToEmpty(); 66public static ImmutableArray<CustomModifier> TypeCustomModifiers => [];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationFieldSymbol.cs (3)
14ImmutableArray<AttributeData> attributes, 81public ImmutableArray<CustomModifier> RefCustomModifiers => []; 83public ImmutableArray<CustomModifier> CustomModifiers
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationMethodSymbol.cs (9)
17public override ImmutableArray<ITypeParameterSymbol> TypeParameters { get; } 18public override ImmutableArray<IParameterSymbol> Parameters { get; } 19public override ImmutableArray<IMethodSymbol> ExplicitInterfaceImplementations { get; } 24ImmutableArray<AttributeData> attributes, 29ImmutableArray<IMethodSymbol> explicitInterfaceImplementations, 31ImmutableArray<ITypeParameterSymbol> typeParameters, 32ImmutableArray<IParameterSymbol> parameters, 33ImmutableArray<AttributeData> returnTypeAttributes, 95public override ImmutableArray<ITypeSymbol> TypeArguments
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationNamedTypeSymbol.cs (18)
18private readonly ImmutableArray<ITypeParameterSymbol> _typeParameters; 19private readonly ImmutableArray<INamedTypeSymbol> _interfaces; 20private readonly ImmutableArray<ISymbol> _members; 25ImmutableArray<AttributeData> attributes, 31ImmutableArray<ITypeParameterSymbol> typeParameters, 33ImmutableArray<INamedTypeSymbol> interfaces, 36ImmutableArray<ISymbol> members, 37ImmutableArray<CodeGenerationAbstractNamedTypeSymbol> typeMembers, 114public static ImmutableArray<ISymbol> CandidateSymbols 122public override ImmutableArray<ITypeSymbol> TypeArguments 130public override ImmutableArray<NullableAnnotation> TypeArgumentNullableAnnotations 139public override ImmutableArray<ITypeParameterSymbol> TypeParameters 149public override ImmutableArray<INamedTypeSymbol> Interfaces 157public override ImmutableArray<ISymbol> GetMembers() 160public override ImmutableArray<INamedTypeSymbol> GetTypeMembers() 163public override ImmutableArray<IMethodSymbol> InstanceConstructors 172public override ImmutableArray<IMethodSymbol> StaticConstructors 181public override ImmutableArray<IMethodSymbol> Constructors
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationNamespaceOrTypeSymbol.cs (6)
15ImmutableArray<AttributeData> attributes, 23public virtual ImmutableArray<ISymbol> GetMembers() 26public ImmutableArray<ISymbol> GetMembers(string name) 29public virtual ImmutableArray<INamedTypeSymbol> GetTypeMembers() 32public ImmutableArray<INamedTypeSymbol> GetTypeMembers(string name) 35public ImmutableArray<INamedTypeSymbol> GetTypeMembers(string name, int arity)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationNamespaceSymbol.cs (1)
59public ImmutableArray<INamespaceSymbol> ConstituentNamespaces
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationOperatorSymbol.cs (3)
12ImmutableArray<AttributeData> attributes, 17ImmutableArray<IParameterSymbol> parameters, 18ImmutableArray<AttributeData> returnTypeAttributes,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationParameterSymbol.cs (3)
14ImmutableArray<AttributeData> attributes, 58public ImmutableArray<CustomModifier> RefCustomModifiers => []; 60public ImmutableArray<CustomModifier> CustomModifiers => [];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationPointerTypeSymbol.cs (1)
33public ImmutableArray<CustomModifier> CustomModifiers
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationPropertySymbol.cs (7)
14ImmutableArray<AttributeData> attributes, 19ImmutableArray<IPropertySymbol> explicitInterfaceImplementations, 22ImmutableArray<IParameterSymbol> parametersOpt, 30public ImmutableArray<IParameterSymbol> Parameters { get; } = parametersOpt.NullToEmpty(); 31public ImmutableArray<IPropertySymbol> ExplicitInterfaceImplementations { get; } = explicitInterfaceImplementations.NullToEmpty(); 80public ImmutableArray<CustomModifier> RefCustomModifiers => []; 82public ImmutableArray<CustomModifier> TypeCustomModifiers => [];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationSymbol.cs (10)
21private readonly ImmutableArray<AttributeData> _attributes; 32ImmutableArray<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\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationTypeSymbol.cs (8)
17ImmutableArray<AttributeData> attributes, 31public virtual ImmutableArray<INamedTypeSymbol> Interfaces 34public ImmutableArray<INamedTypeSymbol> AllInterfaces 53public static ImmutableArray<ITypeSymbol> TupleElementTypes => default; 55public static ImmutableArray<string> TupleElementNames => default; 64public ImmutableArray<SymbolDisplayPart> ToDisplayParts(NullableFlowState topLevelNullability, SymbolDisplayFormat format = null) 70public ImmutableArray<SymbolDisplayPart> ToMinimalDisplayParts(SemanticModel semanticModel, NullableFlowState topLevelNullability, int position, SymbolDisplayFormat format = null) 87public virtual ImmutableArray<ITypeSymbol> UnionCaseTypes => [];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeRefactorings\CodeRefactoringContextExtensions.cs (7)
21this CodeRefactoringContext context, ImmutableArray<TCodeAction> actions, TextSpan? applicableToSpan = null) 50public static Task<ImmutableArray<TSyntaxNode>> GetRelevantNodesAsync<TSyntaxNode>(this CodeRefactoringContext context) where TSyntaxNode : SyntaxNode 53public static async Task<ImmutableArray<TSyntaxNode>> GetRelevantNodesAsync<TSyntaxNode>(this CodeRefactoringContext context, bool allowEmptyNodes) where TSyntaxNode : SyntaxNode 75public static Task<ImmutableArray<TSyntaxNode>> GetRelevantNodesAsync<TSyntaxNode>( 81public static async Task<ImmutableArray<TSyntaxNode>> GetRelevantNodesAsync<TSyntaxNode>( 88public static ImmutableArray<TSyntaxNode> GetRelevantNodes<TSyntaxNode>( 92public static ImmutableArray<TSyntaxNode> GetRelevantNodes<TSyntaxNode>(
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\ImportAdderService.cs (3)
76ImmutableArray<INamespaceSymbol> namespaceSymbols, 96ImmutableArray<INamespaceSymbol> namespaceSymbols, 245var importsToAdd = importToSyntax.SelectAsArray(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\ContextQuery\SyntaxContext.cs (1)
98public ImmutableArray<ITypeSymbol> InferredTypes { get; } = document.GetRequiredLanguageService<ITypeInferenceService>().InferTypes(semanticModel, position, cancellationToken);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\DocumentExtensions.cs (3)
180var errors = await GetErrorsAsync(document, cancellationToken, ignoreErrorCode).ConfigureAwait(false); 184public static async Task<ImmutableArray<Diagnostic>> GetErrorsAsync(this Document document, CancellationToken cancellationToken, IList<string>? ignoreErrorCode = null) 202var errors = await newDocument.GetErrorsAsync(cancellationToken, ignoreErrorCodes).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IMethodSymbolExtensions.cs (10)
23var parameterNames = NameGenerator.EnsureUniqueness( 35var newTypeParameterNames = NameGenerator.EnsureUniqueness( 43public static IMethodSymbol RenameTypeParameters(this IMethodSymbol method, ImmutableArray<string> newNames) 51var updatedTypeParameters = RenameTypeParameters( 76this IMethodSymbol method, ImmutableArray<string> parameterNames) 78var parameterList = method.Parameters; 84var parameters = parameterList.RenameParameters(parameterNames); 99private static ImmutableArray<ITypeParameterSymbol> RenameTypeParameters( 100ImmutableArray<ITypeParameterSymbol> typeParameters, 101ImmutableArray<string> newNames,
src\roslyn\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\roslyn\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\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\StringBuilderExtensions.cs (1)
37public static StringBuilder AppendJoinedValues<T>(this StringBuilder builder, string separator, ImmutableArray<T> values, Action<T, StringBuilder> append)
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateEqualsMethod.cs (17)
30ImmutableArray<ISymbol> symbols, 37var statements = CreateEqualsMethodStatements( 48public static IMethodSymbol CreateEqualsMethod(this Compilation compilation, ImmutableArray<SyntaxNode> statements) 56ImmutableArray<SyntaxNode> statements) 80ImmutableArray<ISymbol> symbols, 84var statements = CreateIEquatableEqualsMethodStatements( 96var parameters = ImmutableArray.Create(CodeGenerationSymbolFactory.CreateParameterSymbol( 99attributes: ImmutableArray<AttributeData>.Empty)); 120private static ImmutableArray<SyntaxNode> CreateEqualsMethodStatements( 126ImmutableArray<ISymbol> members, 240ImmutableArray<ISymbol> members, SyntaxNode localNameExpression, 291private static ImmutableArray<SyntaxNode> CreateIEquatableEqualsMethodStatements( 297ImmutableArray<ISymbol> members) 476public static ImmutableArray<ISymbol> CreateMemberDelegatingConstructor( 482ImmutableArray<IParameterSymbol> parameters, 491var newMembers = generateProperties 494var statements = factory.CreateAssignmentStatements(
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions.cs (13)
48public static ImmutableArray<SyntaxNode> CreateThrowNotImplementedStatementBlock( 52public static ImmutableArray<SyntaxNode> CreateArguments( 54ImmutableArray<IParameterSymbol> parameters) 183public static ImmutableArray<SyntaxNode> GetGetAccessorStatements( 201var arguments = generator.CreateArguments(property.Parameters); 222public static ImmutableArray<SyntaxNode> GetSetAccessorStatements( 240var arguments = generator.CreateArguments(property.Parameters); 283public static ImmutableArray<ISymbol> CreateFieldsForParameters( 284ImmutableArray<IParameterSymbol> parameters, ImmutableDictionary<string, string>? parameterToNewFieldMap, bool isContainedInUnsafeType) 305public static ImmutableArray<ISymbol> CreatePropertiesForParameters( 306ImmutableArray<IParameterSymbol> parameters, ImmutableDictionary<string, string>? parameterToNewPropertyMap, bool isContainedInUnsafeType) 335public static ImmutableArray<SyntaxNode> CreateAssignmentStatements( 339ImmutableArray<IParameterSymbol> parameters,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Formatting\FormatterShared.cs (4)
24public async Task<Document> FormatAsync(Document document, SyntaxAnnotation annotation, SyntaxFormattingOptions options, ImmutableArray<AbstractFormattingRule> rules, CancellationToken cancellationToken) 30public SyntaxNode Format(SyntaxNode node, SyntaxAnnotation annotation, SyntaxFormattingOptions options, ImmutableArray<AbstractFormattingRule> rules, CancellationToken cancellationToken) 33public SyntaxNode Format(SyntaxNode node, IEnumerable<TextSpan>? spans, SyntaxFormattingOptions options, ImmutableArray<AbstractFormattingRule> rules, CancellationToken cancellationToken) 36public IFormattingResult GetFormattingResult(SyntaxNode node, IEnumerable<TextSpan>? spans, SyntaxFormattingOptions options, ImmutableArray<AbstractFormattingRule> rules, CancellationToken cancellationToken)
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Helpers\MefHostServicesHelpers.cs (2)
16public static ImmutableArray<Assembly> LoadNearbyAssemblies(ImmutableArray<string> assemblyNames)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Indentation\AbstractIndentationService.cs (1)
52var formattingRules = ImmutableArray.Create(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\AddImports\AbstractAddImportsService.cs (9)
26protected abstract ImmutableArray<SyntaxNode> GetGlobalImports(SemanticModel semanticModel, SyntaxNode? contextLocation, SyntaxGenerator generator, CancellationToken cancellationToken); 57var globalImports = GetGlobalImports(semanticModel, contextLocation, generator, cancellationToken); 58var containers = GetAllContainers(root, contextLocation); 62private static ImmutableArray<SyntaxNode> GetAllContainers(SyntaxNode root, SyntaxNode? contextLocation) 71SyntaxNode import, ImmutableArray<SyntaxNode> containers, ImmutableArray<SyntaxNode> globalImports) 137var globalImports = GetGlobalImports(semanticModel, contextLocation, generator, cancellationToken); 138var containers = GetAllContainers(root, contextLocation); 165var contextSpine = applicableContainer.GetAncestorsOrThis<SyntaxNode>().ToImmutableArray();
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\SemanticsFactsService\AbstractSemanticFactsService.cs (4)
219public ImmutableArray<IMethodSymbol> GetDeconstructionAssignmentMethods(SemanticModel semanticModel, SyntaxNode node) 222public ImmutableArray<IMethodSymbol> GetDeconstructionForEachMethods(SemanticModel semanticModel, SyntaxNode node) 243public ImmutableArray<ISymbol> GetBestOrAllSymbols(SemanticModel semanticModel, SyntaxNode? node, SyntaxToken token, CancellationToken cancellationToken) 249public ImmutableArray<IMethodSymbol> GetLocalFunctionSymbols(Compilation compilation, ISymbol symbol, CancellationToken cancellationToken)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\SymbolDeclarationService\ISymbolDeclarationService.cs (1)
17ImmutableArray<SyntaxReference> GetDeclarations(ISymbol symbol);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\SyntaxFactsService\ISyntaxFactsService.cs (1)
18Task<ImmutableArray<SyntaxNode>> GetSelectedFieldsAndPropertiesAsync(SyntaxTree syntaxTree, TextSpan textSpan, bool allowPartialSelection, CancellationToken cancellationToken);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\TypeInferenceService\AbstractTypeInferenceService.cs (15)
15private static ImmutableArray<ITypeSymbol> InferTypeBasedOnNameIfEmpty( 16SemanticModel semanticModel, ImmutableArray<ITypeSymbol> result, string? nameOpt) 26private static ImmutableArray<TypeInferenceInfo> InferTypeBasedOnNameIfEmpty( 27SemanticModel semanticModel, ImmutableArray<TypeInferenceInfo> result, string? nameOpt) 31var types = InferTypeBasedOnName(semanticModel, nameOpt); 38private static readonly ImmutableArray<string> s_booleanPrefixes = 41private static ImmutableArray<ITypeSymbol> InferTypeBasedOnName( 79public ImmutableArray<ITypeSymbol> InferTypes( 83var result = CreateTypeInferrer(semanticModel, cancellationToken) 90public ImmutableArray<ITypeSymbol> InferTypes( 94var result = CreateTypeInferrer(semanticModel, cancellationToken) 101public ImmutableArray<TypeInferenceInfo> GetTypeInferenceInfo( 105var result = CreateTypeInferrer(semanticModel, cancellationToken).InferTypes(position); 109public ImmutableArray<TypeInferenceInfo> GetTypeInferenceInfo( 113var result = CreateTypeInferrer(semanticModel, cancellationToken).InferTypes(expression);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\TypeInferenceService\ITypeInferenceService.cs (4)
27ImmutableArray<ITypeSymbol> InferTypes(SemanticModel semanticModel, SyntaxNode expression, string? nameOpt, CancellationToken cancellationToken); 28ImmutableArray<ITypeSymbol> InferTypes(SemanticModel semanticModel, int position, string? nameOpt, CancellationToken cancellationToken); 30ImmutableArray<TypeInferenceInfo> GetTypeInferenceInfo(SemanticModel semanticModel, int position, string? nameOpt, CancellationToken cancellationToken); 31ImmutableArray<TypeInferenceInfo> GetTypeInferenceInfo(SemanticModel semanticModel, SyntaxNode expression, string? nameOpt, CancellationToken cancellationToken);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Options\MemberDisplayOptions.cs (1)
39public static readonly ImmutableArray<IOption2> EditorConfigOptions = [HideAdvancedMembers];
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\ISimplificationService.cs (2)
32ImmutableArray<TextSpan> spans, 34ImmutableArray<AbstractReducer> reducers = default,
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\LayeredServiceUtilities.cs (1)
19private static readonly ImmutableArray<string> s_orderedProductLayers = [ServiceLayer.Host, ServiceLayer.Editor, ServiceLayer.Desktop, ServiceLayer.Default];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefLanguageServices.cs (4)
15[assembly: DebuggerTypeProxy(typeof(MefLanguageServices.LazyServiceMetadataDebuggerProxy), Target = typeof(ImmutableArray<Lazy<ILanguageService, WorkspaceServiceMetadata>>))] 23private readonly ImmutableArray<(Lazy<ILanguageService, LanguageServiceMetadata> lazyService, bool usesFactory)> _services; 54ImmutableArray<IDisposable> disposableServices; 134internal sealed class LazyServiceMetadataDebuggerProxy(ImmutableArray<Lazy<ILanguageService, LanguageServiceMetadata>> services)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefWorkspaceServices.cs (9)
16[assembly: DebuggerTypeProxy(typeof(MefWorkspaceServices.LazyServiceMetadataDebuggerProxy), Target = typeof(ImmutableArray<Lazy<IWorkspaceService, WorkspaceServiceMetadata>>))] 24private readonly ImmutableArray<(Lazy<IWorkspaceService, WorkspaceServiceMetadata> lazyService, bool usesFactory)> _services; 37private ImmutableArray<string> _languages; 76ImmutableArray<IDisposable> disposableServices; 148private ImmutableArray<string> ComputeSupportedLanguages() 150var localLanguages = _languages; 153var list = HostExportProvider.GetExports<ILanguageService, LanguageServiceMetadata>().Select(lz => lz.Metadata.Language).Concat( 167internal ImmutableArray<string> SupportedLanguagesArray => ComputeSupportedLanguages(); 203internal sealed class LazyServiceMetadataDebuggerProxy(ImmutableArray<Lazy<IWorkspaceService, WorkspaceServiceMetadata>> services)
UpgradeMSBuildWorkspaceAnalyzer.cs (1)
36public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(UpgradeMSBuildWorkspaceDiagnosticRule);
Microsoft.CodeAnalysis.AnalyzerUtilities (855)
src\1e7e9f16bf7f1945\ValueContentAnalysis.ValueContentDataFlowOperationVisitor.cs (1)
273ImmutableArray<IArgumentOperation> visitedArguments,
src\2e2796bccd1466f6\TaintedDataAnalysis.TaintedDataOperationVisitor.cs (7)
44public ImmutableArray<TaintedDataSourceSink> GetTaintedDataSourceSinkEntries() 46ImmutableArray<TaintedDataSourceSink>.Builder builder = ImmutableArray.CreateBuilder<TaintedDataSourceSink>(); 264ImmutableArray<IArgumentOperation> visitedArguments, 423public override TaintedDataAbstractValue VisitInvocation_LocalFunction(IMethodSymbol localFunction, ImmutableArray<IArgumentOperation> visitedArguments, IOperation originalOperation, TaintedDataAbstractValue defaultValue) 437public override TaintedDataAbstractValue VisitInvocation_Lambda(IFlowAnonymousFunctionOperation lambda, ImmutableArray<IArgumentOperation> visitedArguments, IOperation originalOperation, TaintedDataAbstractValue defaultValue) 631ImmutableArray<IArgumentOperation> arguments, 753private IEnumerable<IArgumentOperation> GetTaintedArguments(ImmutableArray<IArgumentOperation> arguments)
src\66dd3055a1c91c38\PointsToAnalysis.PointsToDataFlowOperationVisitor.cs (4)
740protected override void SetAbstractValueForArrayElementInitializer(IArrayCreationOperation arrayCreation, ImmutableArray<AbstractIndex> indices, ITypeSymbol elementType, IOperation initializer, PointsToAbstractValue value) 943ImmutableArray<IArgumentOperation> visitedArguments, 1028ImmutableArray<IArgumentOperation> visitedArguments, 1038ImmutableArray<IArgumentOperation> visitedArguments,
src\683181b2796de991\ParameterValidationAnalysis.ParameterValidationDataFlowOperationVisitor.cs (5)
111protected override void SetAbstractValueForArrayElementInitializer(IArrayCreationOperation arrayCreation, ImmutableArray<AbstractIndex> indices, ITypeSymbol elementType, IOperation initializer, ParameterValidationAbstractValue value) 253ImmutableArray<IArgumentOperation> visitedArguments, 265ImmutableArray<IArgumentOperation> visitedArguments, 276ImmutableArray<IArgumentOperation> visitedArguments, 285private void ProcessRegularInvocationOrCreation(IMethodSymbol? targetMethod, ImmutableArray<IArgumentOperation> arguments, IOperation operation)
src\97c55a67c449f67c\GlobalFlowStateDataFlowOperationVisitor.cs (1)
64ImmutableArray<AbstractIndex>.Empty,
src\97c55a67c449f67c\GlobalFlowStateValueSetFlowOperationVisitor.cs (1)
111ImmutableArray<IArgumentOperation> visitedArguments,
src\a03b2aad21e28a8a\PropertySetAnalysis.PropertySetDataFlowOperationVisitor.cs (5)
135protected override void SetAbstractValueForArrayElementInitializer(IArrayCreationOperation arrayCreation, ImmutableArray<AbstractIndex> indices, ITypeSymbol elementType, IOperation initializer, PropertySetAbstractValue value) 456public override PropertySetAbstractValue VisitInvocation_NonLambdaOrDelegateOrLocalFunction(IMethodSymbol method, IOperation? visitedInstance, ImmutableArray<IArgumentOperation> visitedArguments, bool invokedAsDelegate, IOperation originalOperation, PropertySetAbstractValue defaultValue) 514ImmutableArray<IArgumentOperation> visitedArguments, 635public override PropertySetAbstractValue VisitInvocation_LocalFunction(IMethodSymbol localFunction, ImmutableArray<IArgumentOperation> visitedArguments, IOperation originalOperation, PropertySetAbstractValue defaultValue) 643public override PropertySetAbstractValue VisitInvocation_Lambda(IFlowAnonymousFunctionOperation lambda, ImmutableArray<IArgumentOperation> visitedArguments, IOperation originalOperation, PropertySetAbstractValue defaultValue)
src\a1065d420d446521\NamingStylePreferencesEditorConfigSerializer.cs (9)
30ImmutableArray<SymbolSpecification> symbolSpecifications, 31ImmutableArray<NamingStyle> namingStyles, 32ImmutableArray<NamingRule> namingRules, 47ImmutableArray<SymbolSpecification> symbolSpecifications, 48ImmutableArray<NamingStyle> namingStyles, 49ImmutableArray<NamingRule> rules, 120ImmutableArray<SymbolSpecification> symbolSpecifications, 121ImmutableArray<NamingStyle> namingStyles) 170private static ImmutableDictionary<NamingRule, string> AssignNamesToNamingStyleRules(ImmutableArray<NamingRule> namingRules, ImmutableDictionary<Guid, string> serializedNameMap)
src\a172c07bebba4cd8\DisposeAnalysis.DisposeDataFlowOperationVisitor.cs (2)
152protected override void SetAbstractValueForArrayElementInitializer(IArrayCreationOperation arrayCreation, ImmutableArray<AbstractIndex> indices, ITypeSymbol elementType, IOperation initializer, DisposeAbstractValue value) 260ImmutableArray<IArgumentOperation> visitedArguments,
src\b310f676f7308b7f\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (6)
26private readonly ImmutableArray<IParameterSymbol> _parameters; 74ImmutableArray<IParameterSymbol> parameters, 123var parameters = GetParameters(owningSymbol); 139static ImmutableArray<IParameterSymbol> GetParameters(ISymbol owningSymbol) 141var parameters = owningSymbol.GetParameters(); 164var parameters = lambdaOrLocalFunction.GetParameters();
src\roslyn\src\Compilers\Core\Portable\Collections\DictionaryExtensions.cs (3)
93/// the values in the passed builder will be converted to an <see cref="ImmutableArray{T}"/> using <see 97public static ImmutableSegmentedDictionary<K, ImmutableArray<V>> ToImmutableSegmentedDictionaryAndFree<K, V>(this PooledDictionary<K, ArrayBuilder<V>> dictionary) 100var result = ImmutableSegmentedDictionary.CreateBuilder<K, ImmutableArray<V>>();
src\roslyn\src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (3)
143public ImmutableArray<V> this[K k] 153return ImmutableArray<V>.Empty; 270internal ImmutableArray<V> Items
src\roslyn\src\Compilers\Core\Portable\Diagnostic\DiagnosticArrayExtensions.cs (1)
11internal static bool HasAnyErrors<T>(this ImmutableArray<T> diagnostics) where T : Diagnostic
src\roslyn\src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
729public static string NormalizePathPrefix(string filePath, ImmutableArray<KeyValuePair<string, string>> pathMap)
src\roslyn\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\roslyn\src\Compilers\Core\Portable\InternalUtilities\Hash.cs (3)
120internal static int CombineValues<T>(ImmutableArray<T> values, int maxItemsToHash = int.MaxValue) 171internal static int CombineValues(ImmutableArray<string> values, StringComparer stringComparer, int maxItemsToHash = int.MaxValue) 252internal static int GetFNVHashCode(ImmutableArray<byte> data)
src\roslyn\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\roslyn\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\roslyn\src\Compilers\Core\Portable\InternalUtilities\SetWithInsertionOrder.cs (1)
94public ImmutableArray<T> AsImmutable() => _elements.ToImmutableArrayOrEmpty();
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (2)
20private static ImmutableArray<string> s_lazyNumerals; 25var numerals = s_lazyNumerals;
src\roslyn\src\Compilers\Core\Portable\MetadataReference\AssemblyIdentityUtils.cs (1)
36ImmutableArray<byte> publicKeyOrToken = !publicKeyHandle.IsNil
src\roslyn\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\roslyn\src\Dependencies\Collections\Extensions\FixedSizeArrayBuilder.cs (5)
19/// A bare-bones array builder, focused on the case of producing <see cref="ImmutableArray{T}"/>s where the final array 37/// The builder will be moved to an array (see <see cref="MoveToArray"/>) or <see cref="ImmutableArray{T}"/> (see <see 70public void AddRange(ImmutableArray<T> values) 116/// Moves the underlying buffer out of control of this type, into the returned <see cref="ImmutableArray{T}"/>. It 122public ImmutableArray<T> MoveToImmutable()
src\roslyn\src\Dependencies\Collections\Extensions\ICollectionExtensions.cs (1)
76public static void AddRange<T>(this ICollection<T> collection, ImmutableArray<T> values)
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (26)
60public static ImmutableArray<T> ToImmutableArrayOrEmpty<T>(this IEnumerable<T>? items) 67if (items is ImmutableArray<T> array) 82if (items is ImmutableArray<T> array) 271/// <seealso cref="Microsoft.CodeAnalysis.ImmutableArrayExtensions.HasDuplicates{TItem, TValue}(ImmutableArray{TItem}, Func{TItem, TValue}, IEqualityComparer{TValue})"/> 376public static ImmutableArray<T> WhereAsArray<T>(this IEnumerable<T> values, Func<T, bool> predicate) 390public static ImmutableArray<T> WhereAsArray<T, TArg>(this IEnumerable<T> values, Func<T, TArg, bool> predicate, TArg arg) 407public static ImmutableArray<TResult> SelectAsArray<TSource, TResult>(this IEnumerable<TSource>? source, Func<TSource, TResult> selector) 417public static ImmutableArray<TResult> SelectAsArray<TItem, TResult>(this IEnumerable<TItem>? source, Func<TItem, bool> predicate, Func<TItem, TResult> selector) 431public static ImmutableArray<TResult> SelectAsArray<TSource, TResult>(this IEnumerable<TSource>? source, Func<TSource, int, TResult> selector) 446public static ImmutableArray<TResult> SelectAsArray<TSource, TResult, TArg>(this IEnumerable<TSource>? source, Func<TSource, TArg, TResult> selector, TArg arg) 449return ImmutableArray<TResult>.Empty; 461public static ImmutableArray<TResult> SelectAsArray<TSource, TResult>(this IReadOnlyCollection<TSource>? source, Func<TSource, TResult> selector) 473public static ImmutableArray<TResult> SelectAsArray<TSource, TResult, TArg>(this IReadOnlyCollection<TSource>? source, Func<TSource, TArg, TResult> selector, TArg arg) 485public static ImmutableArray<TResult> SelectManyAsArray<TSource, TResult>(this IEnumerable<TSource>? source, Func<TSource, IEnumerable<TResult>> selector) 496public static ImmutableArray<TResult> SelectManyAsArray<TItem, TArg, TResult>(this IEnumerable<TItem>? source, Func<TItem, TArg, IEnumerable<TResult>> selector, TArg arg) 507public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, IEnumerable<TResult>> selector) 520public static ImmutableArray<TResult> SelectManyAsArray<TItem, TArg, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, TArg, IEnumerable<TResult>> selector, TArg arg) 533public static ImmutableArray<TResult> SelectManyAsArray<TSource, TResult>(this IEnumerable<TSource>? source, Func<TSource, OneOrMany<TResult>> selector) 547public static async ValueTask<ImmutableArray<TResult>> SelectAsArrayAsync<TItem, TResult>(this IEnumerable<TItem> source, Func<TItem, ValueTask<TResult>> selector) 561public static async ValueTask<ImmutableArray<TResult>> SelectAsArrayAsync<TItem, TResult>(this IEnumerable<TItem> source, Func<TItem, CancellationToken, ValueTask<TResult>> selector, CancellationToken cancellationToken) 575public static async ValueTask<ImmutableArray<TResult>> SelectAsArrayAsync<TItem, TArg, TResult>(this IEnumerable<TItem> source, Func<TItem, TArg, CancellationToken, ValueTask<TResult>> selector, TArg arg, CancellationToken cancellationToken) 586public 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) 764internal static Dictionary<K, ImmutableArray<T>> ToMultiDictionary<K, T>(this IEnumerable<T> data, Func<T, K> keySelector, IEqualityComparer<K>? comparer = null) 767var dictionary = new Dictionary<K, ImmutableArray<T>>(comparer); 834/// Methods that are available on both <see cref="IEnumerable{T}"/> and <see cref="ImmutableArray{T}"/> are defined in System.Linq namespace 835/// to avoid accidental boxing of <see cref="ImmutableArray{T}"/>. The boxing would occur if the file calling these methods didn't have <c>using System.Linq</c>.
src\roslyn\src\Dependencies\Collections\Extensions\IListExtensions.cs (1)
31/// <seealso cref="ImmutableArrayExtensions.HasDuplicates{TItem, TValue}(System.Collections.Immutable.ImmutableArray{TItem}, Func{TItem, TValue}, IEqualityComparer{TValue})"/>
src\roslyn\src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (156)
24/// The collection of extension methods for the <see cref="ImmutableArray{T}"/> type 36public static ImmutableArray<T> AsImmutable<T>(this IEnumerable<T> items) 48public static ImmutableArray<T> AsImmutableOrEmpty<T>(this IEnumerable<T>? items) 52return ImmutableArray<T>.Empty; 65public static ImmutableArray<T> AsImmutableOrNull<T>(this IEnumerable<T>? items) 81public static ImmutableArray<T> AsImmutable<T>(this T[] items) 94public static ImmutableArray<T> AsImmutableOrNull<T>(this T[]? items) 110public static ImmutableArray<T> AsImmutableOrEmpty<T>(this T[]? items) 114return ImmutableArray<T>.Empty; 125public static ImmutableArray<byte> ToImmutable(this MemoryStream stream) 138public static ImmutableArray<TResult> SelectAsArray<TItem, TResult>(this ImmutableArray<TItem> items, Func<TItem, TResult> map) 153public static ImmutableArray<TResult> SelectAsArray<TItem, TArg, TResult>(this ImmutableArray<TItem> items, Func<TItem, TArg, TResult> map, TArg arg) 168public static ImmutableArray<TResult> SelectAsArray<TItem, TArg, TResult>(this ImmutableArray<TItem> items, Func<TItem, int, TArg, TResult> map, TArg arg) 198public static ImmutableArray<TResult> SelectAsArray<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, bool> predicate, Func<TItem, TResult> selector) 224public static ImmutableArray<TResult> SelectAsArray<TItem, TArg, TResult>(this ImmutableArray<TItem> array, Func<TItem, TArg, bool> predicate, Func<TItem, TArg, TResult> selector, TArg arg) 247public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, IEnumerable<TResult>> selector) 267public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, ImmutableArray<TResult>> selector) 287public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, OneOrMany<TResult>> selector) 308public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, bool> predicate, Func<TItem, IEnumerable<TResult>> selector) 332public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, bool> predicate, Func<TItem, ImmutableArray<TResult>> selector) 356public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, bool> predicate, Func<TItem, OneOrMany<TResult>> selector) 381public static ImmutableArray<TResult> SelectManyAsArray<TItem, TArg, TResult>(this ImmutableArray<TItem> array, Func<TItem, TArg, bool> predicate, Func<TItem, TArg, OneOrMany<TResult>> selector, TArg arg) 399public static async ValueTask<ImmutableArray<TResult>> SelectAsArrayAsync<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, CancellationToken, ValueTask<TResult>> selector, CancellationToken cancellationToken) 414public static async ValueTask<ImmutableArray<TResult>> SelectAsArrayAsync<TItem, TArg, TResult>(this ImmutableArray<TItem> array, Func<TItem, TArg, CancellationToken, ValueTask<TResult>> selector, TArg arg, CancellationToken cancellationToken) 426public static ValueTask<ImmutableArray<TResult>> SelectManyAsArrayAsync<TItem, TArg, TResult>(this ImmutableArray<TItem> source, Func<TItem, TArg, CancellationToken, ValueTask<ImmutableArray<TResult>>> selector, TArg arg, CancellationToken cancellationToken) 429return new ValueTask<ImmutableArray<TResult>>([]); 436async ValueTask<ImmutableArray<TResult>> CreateTaskAsync() 453public static ImmutableArray<TResult> ZipAsArray<T1, T2, TResult>(this ImmutableArray<T1> self, ImmutableArray<T2> other, Func<T1, T2, TResult> map) 473public static ImmutableArray<TResult> ZipAsArray<T1, T2, TArg, TResult>(this ImmutableArray<T1> self, ImmutableArray<T2> other, TArg arg, Func<T1, T2, int, TArg, TResult> map) 493public static ImmutableArray<T> WhereAsArray<T>(this ImmutableArray<T> array, Func<T, bool> predicate) 501public static ImmutableArray<T> WhereAsArray<T, TArg>(this ImmutableArray<T> array, Func<T, TArg, bool> predicate, TArg arg) 504private static ImmutableArray<T> WhereAsArrayImpl<T, TArg>(ImmutableArray<T> array, Func<T, bool>? predicateWithoutArg, Func<T, TArg, bool>? predicateWithArg, TArg arg) 569return ImmutableArray<T>.Empty; 573public static async Task<bool> AnyAsync<T>(this ImmutableArray<T> array, Func<T, Task<bool>> predicateAsync) 584public static async Task<bool> AnyAsync<T, TArg>(this ImmutableArray<T> array, Func<T, TArg, Task<bool>> predicateAsync, TArg arg) 595public static async ValueTask<T?> FirstOrDefaultAsync<T>(this ImmutableArray<T> array, Func<T, Task<bool>> predicateAsync) 610public static ImmutableArray<TBase> Cast<TDerived, TBase>(this ImmutableArray<TDerived> items) 613return ImmutableArray<TBase>.CastUp(items); 624public static bool SetEquals<T>(this ImmutableArray<T> array1, ImmutableArray<T> array2, IEqualityComparer<T> comparer) 665public static ImmutableArray<T> NullToEmpty<T>(this ImmutableArray<T> array) 667return array.IsDefault ? ImmutableArray<T>.Empty : array; 673public static ImmutableArray<T> NullToEmpty<T>(this ImmutableArray<T>? array) 676null or { IsDefault: true } => ImmutableArray<T>.Empty, 682internal static ImmutableArray<T> ConditionallyDeOrder<T>(this ImmutableArray<T> array) 699internal static ImmutableArray<TValue> Flatten<TKey, TValue>( 700this Dictionary<TKey, ImmutableArray<TValue>> dictionary, 723internal static ImmutableArray<T> AddRange<T>(this ImmutableArray<T> self, in TemporaryArray<T> items) 751internal static bool HasDuplicates<T>(this ImmutableArray<T> array) 754internal static bool HasDuplicates<T>(this ImmutableArray<T> array, IEqualityComparer<T> comparer) 757public static bool HasDuplicates<TItem, TValue>(this ImmutableArray<TItem> array, Func<TItem, TValue> selector) 769internal static bool HasDuplicates<TItem, TValue>(this ImmutableArray<TItem> array, Func<TItem, TValue> selector, IEqualityComparer<TValue> comparer) 826(Dictionary<TKey, object> dictionary, Dictionary<TKey, ImmutableArray<TNamespaceOrTypeSymbol>> result) 837static ImmutableArray<TNamespaceOrTypeSymbol> createMembers(object value) 848return ImmutableArray<TNamespaceOrTypeSymbol>.CastUp(builder.ToDowncastedImmutableAndFree<TNamedTypeSymbol>()); 855: ImmutableArray<TNamespaceOrTypeSymbol>.CastUp(ImmutableArray.Create((TNamedTypeSymbol)symbol)); 860internal static Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>> GetTypesFromMemberMap<TKey, TNamespaceOrTypeSymbol, TNamedTypeSymbol> 861(Dictionary<TKey, ImmutableArray<TNamespaceOrTypeSymbol>> map, IEqualityComparer<TKey> comparer) 872var dictionary = new Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>>(capacity, comparer); 876var namedTypes = getOrCreateNamedTypes(entry.Value); 883static ImmutableArray<TNamedTypeSymbol> getOrCreateNamedTypes(ImmutableArray<TNamespaceOrTypeSymbol> members) 890var membersAsNamedTypes = members.As<TNamedTypeSymbol>(); 903return ImmutableArray<TNamedTypeSymbol>.Empty; 917internal static int IndexOf<T>(this ImmutableArray<T> array, T item, IEqualityComparer<T> comparer) 920internal static bool IsSorted<T>(this ImmutableArray<T> array, Comparison<T> comparison) 923internal static bool IsSorted<T>(this ImmutableArray<T> array, IComparer<T>? comparer = null) 938public static bool IsSubsetOf<TElement>(this ImmutableArray<TElement> array, ImmutableArray<TElement> other) 983/// Extension methods that are available on both <see cref="IEnumerable{T}"/> and <see cref="ImmutableArray{T}"/> in System.Linq namespace 984/// are defined in System.Linq namespace to avoid accidental boxing of <see cref="ImmutableArray{T}"/>. 990/// Variant of <see cref="System.Linq.ImmutableArrayExtensions.FirstOrDefault{T}(ImmutableArray{T}, Func{T, bool})"/> 992public static TValue? FirstOrDefault<TValue, TArg>(this ImmutableArray<TValue> array, Func<TValue, TArg, bool> predicate, TArg arg) 1004/// Variant of <see cref="System.Linq.ImmutableArrayExtensions.Single{T}(ImmutableArray{T}, Func{T, bool})"/> 1006public static TValue Single<TValue, TArg>(this ImmutableArray<TValue> array, Func<TValue, TArg, bool> predicate, TArg arg) 1033/// Variant of <see cref="System.Linq.ImmutableArrayExtensions.SequenceEqual{TDerived, TBase}(ImmutableArray{TBase}, ImmutableArray{TDerived}, Func{TBase, TBase, bool})"/>. 1035public static bool SequenceEqual<TElement, TArg>(this ImmutableArray<TElement> array1, ImmutableArray<TElement> array2, TArg arg, Func<TElement, TElement, TArg, bool> predicate) 1066/// Specialization of <see cref="System.Linq.Enumerable.Count{TSource}(IEnumerable{TSource}, Func{TSource, bool})"/> for <see cref="ImmutableArray{T}"/>. 1068public static int Count<T>(this ImmutableArray<T> items, Func<T, bool> predicate) 1084/// Specialization of <see cref="System.Linq.Enumerable.Sum(IEnumerable{int})"/> for <see cref="ImmutableArray{T}"/>. 1086public static int Sum<T>(this ImmutableArray<T> items, Func<T, int> selector) 1096/// Variation of <see cref="System.Linq.Enumerable.Sum(IEnumerable{int})"/> for <see cref="ImmutableArray{T}"/>. 1098public static int Sum<T>(this ImmutableArray<T> items, Func<T, int, int> selector) 1108/// Specialization of <see cref="System.Linq.Enumerable.Concat{TSource}(IEnumerable{TSource}, IEnumerable{TSource})"/> for <see cref="ImmutableArray{T}"/>. 1110public static ImmutableArray<T> Concat<T>(this ImmutableArray<T> first, ImmutableArray<T> second) 1116public static ImmutableArray<T> Concat<T>(this ImmutableArray<T> first, T second) 1122public static ImmutableArray<T> Concat<T>(this ImmutableArray<T> first, ImmutableArray<T> second, ImmutableArray<T> third) 1136public static ImmutableArray<T> Concat<T>(this ImmutableArray<T> first, ImmutableArray<T> second, ImmutableArray<T> third, ImmutableArray<T> fourth) 1152public static ImmutableArray<T> Concat<T>(this ImmutableArray<T> first, ImmutableArray<T> second, ImmutableArray<T> third, ImmutableArray<T> fourth, ImmutableArray<T> fifth) 1168public static ImmutableArray<T> Concat<T>(this ImmutableArray<T> first, ImmutableArray<T> second, ImmutableArray<T> third, ImmutableArray<T> fourth, ImmutableArray<T> fifth, ImmutableArray<T> sixth) 1188public static ImmutableArray<T> Distinct<T>(this ImmutableArray<T> array, IEqualityComparer<T>? comparer = null) 1207var result = (builder.Count == array.Length) ? array : builder.ToImmutable(); 1213/// Variant of <see cref="System.Linq.ImmutableArrayExtensions.Any{T}(ImmutableArray{T}, Func{T, bool})"/>. 1215public static bool Any<T, TArg>(this ImmutableArray<T> array, Func<T, TArg, bool> predicate, TArg arg) 1227/// Variant of <see cref="System.Linq.ImmutableArrayExtensions.All{T}(ImmutableArray{T}, Func{T, bool})"/>. 1229public static bool All<T, TArg>(this ImmutableArray<T> array, Func<T, TArg, bool> predicate, TArg arg) 1248/// Methods that are available on both <see cref="IEnumerable{T}"/> and <see cref="ImmutableArray{T}"/> in System.Collections.Immutable namespace 1249/// are defined in System.Collections.Immutable namespace to avoid accidental boxing of <see cref="ImmutableArray{T}"/>. 1255/// Variant of <see cref="System.Collections.Immutable.ImmutableArray{T}.Contains(T, IEqualityComparer{T})"/> 1257public static bool Contains<T>(this ImmutableArray<T> array, Func<T, bool> predicate) 1261/// Variant of <see cref="System.Collections.Immutable.ImmutableArray.BinarySearch{T}(ImmutableArray{T}, T, IComparer{T}?)"/> 1264public static int BinarySearch<TElement, TValue>(this ImmutableArray<TElement> array, TValue value, Func<TElement, TValue, int> comparer)
src\roslyn\src\Dependencies\Collections\Internal\HashHelpers.cs (1)
40private static readonly ImmutableArray<int> s_primes = ImmutableArray.Create(
src\roslyn\src\Dependencies\Collections\OneOrMany.cs (8)
28public static readonly OneOrMany<T> Empty = new OneOrMany<T>(ImmutableArray<T>.Empty); 31private readonly ImmutableArray<T> _many; 39public OneOrMany(ImmutableArray<T> many) 167: new OneOrMany<T>(ImmutableArray<T>.CastUp(from._many)); 185public ImmutableArray<T> ToImmutable() 206public bool SequenceEqual(ImmutableArray<T> other, IEqualityComparer<T>? comparer = null) 278public static OneOrMany<T> Create<T>(ImmutableArray<T> many) 281public static bool SequenceEqual<T>(this ImmutableArray<T> array, OneOrMany<T> other, IEqualityComparer<T>? comparer = null)
src\roslyn\src\Dependencies\Collections\RoslynImmutableInterlocked.cs (5)
618public static ImmutableArray<T> VolatileRead<T>(ref readonly ImmutableArray<T> location) 620var value = location; 635public static void VolatileWrite<T>(ref ImmutableArray<T> location, ImmutableArray<T> value)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
23/// the scenarios where <see cref="ImmutableArray{T}"/> is applicable, and
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.List.cs (1)
20public static readonly IReadOnlyList<T> Instance = ImmutableArray<T>.Empty;
src\roslyn\src\Dependencies\Collections\TemporaryArray`1.cs (6)
24/// <see cref="ImmutableArray{T}"/>. 179public void AddRange(ImmutableArray<T> items) 299/// Create an <see cref="ImmutableArray{T}"/> with the elements currently held in the temporary array, and clear 302public ImmutableArray<T> ToImmutableAndClear() 310var result = _count switch 3120 => ImmutableArray<T>.Empty,
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilder.cs (27)
61private readonly ImmutableArray<T>.Builder _builder; 83public ImmutableArray<T> ToImmutable() 91public ImmutableArray<T> ToImmutableAndClear() 93ImmutableArray<T> result; 96result = ImmutableArray<T>.Empty; 393public ImmutableArray<T> ToImmutableOrNull() 406public ImmutableArray<U> ToDowncastedImmutable<U>() 411return ImmutableArray<U>.Empty; 423public ImmutableArray<U> ToDowncastedImmutableAndFree<U>() where U : T 425var result = ToDowncastedImmutable<U>(); 433public ImmutableArray<T> ToImmutableAndFree() 437ImmutableArray<T> result; 440result = ImmutableArray<T>.Empty; 613internal Dictionary<K, ImmutableArray<T>> ToDictionary<K>(Func<T, K> keySelector, IEqualityComparer<K>? comparer = null) 618var dictionary1 = new Dictionary<K, ImmutableArray<T>>(1, comparer); 626return new Dictionary<K, ImmutableArray<T>>(comparer); 645var dictionary = new Dictionary<K, ImmutableArray<T>>(accumulator.Count, comparer); 684public void AddRange(ImmutableArray<T> items) 689public void AddRange<U>(ImmutableArray<U> items, Func<U, T> selector) 697public void AddRange(ImmutableArray<T> items, int length) 702public void AddRange(ImmutableArray<T> items, int start, int length) 712public void AddRange<S>(ImmutableArray<S> items) where S : class, T 714AddRange(ImmutableArray<T>.CastUp(items)); 806public ImmutableArray<S> SelectDistinct<S>(Func<T, S> selector) 878public ImmutableArray<TResult> SelectAsArray<TResult>(Func<T, TResult> map) 914public ImmutableArray<TResult> SelectAsArray<TArg, TResult>(Func<T, TArg, TResult> map, TArg arg) 950public ImmutableArray<TResult> SelectAsArrayWithIndex<TArg, TResult>(Func<T, int, TArg, TResult> map, TArg arg)
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilderExtensions.cs (1)
16public static ImmutableArray<T> ToImmutableOrEmptyAndFree<T>(this ArrayBuilder<T>? builder)
src\roslyn\src\Dependencies\Threading\IAsyncEnumerableExtensions.cs (1)
16public static async Task<ImmutableArray<T>> ToImmutableArrayAsync<T>(this IAsyncEnumerable<T> values, CancellationToken cancellationToken)
src\roslyn\src\Dependencies\Threading\ProducerConsumer.cs (7)
25Func<ImmutableArray<TItem>, TArgs, CancellationToken, Task> consumeItems, 49Func<ImmutableArray<TItem>, TArgs, CancellationToken, Task> consumeItems, 127Func<ImmutableArray<TItem>, TArgs, CancellationToken, Task> consumeItems, 141Func<ImmutableArray<TItem>, TArgs, CancellationToken, Task> consumeItems, 191public static Task<ImmutableArray<TItem>> RunParallelAsync<TSource, TArgs>( 204public static async Task<ImmutableArray<TItem>> RunParallelAsync<TSource, TArgs>( 284/// but returns value as an <see cref="IAsyncEnumerable{TItem}"/>. Versus an <see cref="ImmutableArray{TItem}"/>.
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\AdditionalFileProvider.cs (2)
22private readonly ImmutableArray<AdditionalText> _additionalFiles; 24internal AdditionalFileProvider(ImmutableArray<AdditionalText> additionalFiles)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.AssemblyMetricData.cs (5)
25ImmutableArray<CodeAnalysisMetricData> children) 33ImmutableArray<CodeAnalysisMetricData> children = await ComputeAsync(GetChildSymbols(assembly), context).ConfigureAwait(false); 39ImmutableArray<CodeAnalysisMetricData> children = ComputeSynchronously(GetChildSymbols(assembly), context); 43private static AssemblyMetricData ComputeFromChildren(IAssemblySymbol assembly, ImmutableArray<CodeAnalysisMetricData> children, CodeMetricsAnalysisContext context) 72private static ImmutableArray<INamespaceOrTypeSymbol> GetChildSymbols(IAssemblySymbol assembly)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.cs (4)
33ImmutableArray<CodeAnalysisMetricData> children) 112public ImmutableArray<CodeAnalysisMetricData> Children { get; } 323internal static async Task<ImmutableArray<CodeAnalysisMetricData>> ComputeAsync(IEnumerable<ISymbol> children, CodeMetricsAnalysisContext context) 331internal static ImmutableArray<CodeAnalysisMetricData> ComputeSynchronously(IEnumerable<ISymbol> children, CodeMetricsAnalysisContext context)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.EventMetricData.cs (3)
22ImmutableArray<CodeAnalysisMetricData> children) 31ImmutableArray<SyntaxReference> declarations = @event.DeclaringSyntaxReferences; 37ImmutableArray<CodeAnalysisMetricData> children = ComputeSynchronously(GetAccessors(@event), context);
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.FieldMetricData.cs (2)
23linesOfCode, cyclomaticComplexity, depthOfInheritance, children: ImmutableArray<CodeAnalysisMetricData>.Empty) 30ImmutableArray<SyntaxReference> declarations = field.DeclaringSyntaxReferences;
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.MethodMetricData.cs (2)
23linesOfCode, cyclomaticComplexity, depthOfInheritance, children: ImmutableArray<CodeAnalysisMetricData>.Empty) 30ImmutableArray<SyntaxReference> declarations = method.DeclaringSyntaxReferences;
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.NamedTypeMetricData.cs (5)
25ImmutableArray<CodeAnalysisMetricData> children) 35ImmutableArray<CodeAnalysisMetricData> children = await ComputeAsync(members, context).ConfigureAwait(false); 44ImmutableArray<CodeAnalysisMetricData> children = ComputeSynchronously(members, context); 65private static NamedTypeMetricData ComputeFromChildren(INamedTypeSymbol namedType, ImmutableArray<CodeAnalysisMetricData> children, CodeMetricsAnalysisContext context) 68ImmutableArray<SyntaxReference> declarations = namedType.DeclaringSyntaxReferences;
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.NamespaceMetricData.cs (5)
24ImmutableArray<CodeAnalysisMetricData> children) 32ImmutableArray<CodeAnalysisMetricData> children = await ComputeAsync(GetChildSymbols(@namespace), context).ConfigureAwait(false); 38ImmutableArray<CodeAnalysisMetricData> children = ComputeSynchronously(GetChildSymbols(@namespace), context); 42private static NamespaceMetricData ComputeFromChildren(INamespaceSymbol @namespace, ImmutableArray<CodeAnalysisMetricData> children, CodeMetricsAnalysisContext context) 72private static ImmutableArray<INamespaceOrTypeSymbol> GetChildSymbols(INamespaceSymbol @namespace)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.PropertyMetricData.cs (3)
22ImmutableArray<CodeAnalysisMetricData> children) 31ImmutableArray<SyntaxReference> declarations = property.DeclaringSyntaxReferences; 38ImmutableArray<CodeAnalysisMetricData> children = ComputeSynchronously(GetAccessors(property), context);
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (7)
54ImmutableArray<IParameterSymbol> parameters) 62internal static long GetLinesOfCode(ImmutableArray<SyntaxReference> declarations, ISymbol symbol, CodeMetricsAnalysisContext context) 192ImmutableArray<SyntaxReference> declarations, 209var parameters = GetParameters(symbol); 220var attributes = symbol.GetAttributes(); 409internal static ImmutableArray<IParameterSymbol> GetParameters(this ISymbol member) 415_ => ImmutableArray<IParameterSymbol>.Empty,
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\DiagnosticExtensions.cs (5)
29=> node.CreateDiagnostic(rule, additionalLocations: ImmutableArray<Location>.Empty, properties, args); 34ImmutableArray<Location> additionalLocations, 63ImmutableArray<Location> additionalLocations, 110=> location.CreateDiagnostic(rule, ImmutableArray<Location>.Empty, properties, args); 115ImmutableArray<Location> additionalLocations,
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\IMethodSymbolExtensions.cs (2)
547public static ImmutableArray<IMethodSymbol> GetOriginalDefinitions(this IMethodSymbol methodSymbol) 549ImmutableArray<IMethodSymbol>.Builder originalDefinitionsBuilder = ImmutableArray.CreateBuilder<IMethodSymbol>();
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\ImmutableArrayExtensions.cs (6)
13/// <param name="source">The <see cref="ImmutableArray{TSource}"/> to check for cardinality.</param> 16public static bool HasExactly<TSource>(this ImmutableArray<TSource> source, int count) => source.Length == count; 22/// <param name="source">The <see cref="ImmutableArray{TSource}"/> to check for cardinality.</param> 25public static bool HasMoreThan<TSource>(this ImmutableArray<TSource> source, int count) => source.Length > count; 31/// <param name="source">The <see cref="ImmutableArray{TSource}"/> to check for cardinality.</param> 34public static bool HasFewerThan<TSource>(this ImmutableArray<TSource> source, int count) => source.Length < count;
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\IOperationExtensions.cs (5)
83public static ImmutableArray<IOperation> GetTopmostExplicitDescendants(this IOperation operation) 166public static IOperation? GetAncestor(this IOperation root, ImmutableArray<OperationKind> ancestorKinds, Func<IOperation, bool>? predicate = null) 381private static readonly ImmutableArray<OperationKind> s_LambdaAndLocalFunctionKinds = 491this ImmutableArray<IArgumentOperation> arguments, 512this ImmutableArray<IArgumentOperation> arguments,
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\IPropertySymbolExtensions.cs (2)
22public static ImmutableArray<IPropertySymbol> GetOriginalDefinitions(this IPropertySymbol propertySymbol) 24ImmutableArray<IPropertySymbol>.Builder originalDefinitionsBuilder = ImmutableArray.CreateBuilder<IPropertySymbol>();
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\ITypeSymbolExtensions.cs (2)
155var current = type.GetAttributes(); 222var current = type.GetAttributes();
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\OperationKinds.cs (1)
12public static ImmutableArray<OperationKind> MemberReference { get; }
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\HashUtilities.cs (2)
25internal static int Combine<T>(ImmutableArray<T> array) 32internal static void Combine<T>(ImmutableArray<T> array, ref RoslynHashCode hashCode)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\AnalyzerOptionsExtensions.cs (4)
408var matchingSymbols = DocumentationCommentId.GetSymbolsForDeclarationId(genericInterfaceFullName, compilation); 489var names = optionValue.Split(['|'], StringSplitOptions.RemoveEmptyEntries).ToImmutableArray(); 542public static ImmutableArray<string> GetMSBuildItemMetadataValues( 553return ImmutableArray<string>.Empty;
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\MSBuildItemOptionNames.cs (2)
41public static ImmutableArray<string> ParseItemOptionValue(string? itemOptionValue) 45return ImmutableArray<string>.Empty;
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (1)
81public static SymbolNamesWithValueOption<TValue> Create(ImmutableArray<string> symbolNames, Compilation compilation, string? optionalPrefix,
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\WellKnownTypeProvider.cs (6)
33_referencedAssemblies = new Lazy<ImmutableArray<IAssemblySymbol>>( 62private readonly Lazy<ImmutableArray<IAssemblySymbol>> _referencedAssemblies; 81private static readonly ConcurrentDictionary<string, ImmutableArray<string>> _fullTypeNameToNamespaceNames = 120ImmutableArray<string> namespaceNames; 214private static ImmutableArray<string> GetNamespaceNamesFromFullTypeName(string fullTypeName) 297private static bool IsSubsetOfCollection<T>(ImmutableArray<T> set1, ICollection<T> set2)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\WordParser.cs (2)
202public static bool ContainsWord(string text, WordParserOptions options, ImmutableArray<string> words) 236internal static bool ContainsWord(string text, WordParserOptions options, char prefix, ImmutableArray<string> words)
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\BranchWithInfo.cs (14)
30enteringRegions: ImmutableArray<ControlFlowRegion>.Empty, 31leavingRegions: ImmutableArray<ControlFlowRegion>.Empty, 32finallyRegions: ImmutableArray<ControlFlowRegion>.Empty, 43ImmutableArray<ControlFlowRegion> enteringRegions, 44ImmutableArray<ControlFlowRegion> leavingRegions, 45ImmutableArray<ControlFlowRegion> finallyRegions, 65public ImmutableArray<ControlFlowRegion> EnteringRegions { get; } 66public ImmutableArray<ControlFlowRegion> FinallyRegions { get; } 67public ImmutableArray<ControlFlowRegion> LeavingRegions { get; } 79enteringRegions: ImmutableArray<ControlFlowRegion>.Empty, 80leavingRegions: ImmutableArray<ControlFlowRegion>.Empty, 81finallyRegions: ImmutableArray<ControlFlowRegion>.Empty, 111private static IEnumerable<ILocalSymbol> ComputeLeavingRegionLocals(ImmutableArray<ControlFlowRegion> leavingRegions) 116private static IEnumerable<CaptureId> ComputeLeavingRegionFlowCaptures(ImmutableArray<ControlFlowRegion> leavingRegions)
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\Extensions\ListExtensions.cs (4)
23/// no elements were removed, this method returns <see cref="ImmutableArray{T}.Empty"/>.</returns> 24public static ImmutableArray<T> ExtractAll<T, TArg>(this List<T> list, Func<T, TArg, bool> predicate, TArg argument) 26ImmutableArray<T>.Builder? builder = null; 43return ImmutableArray<T>.Empty;
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\Extensions\OperationBlocksExtensions.cs (1)
13public static ControlFlowGraph? GetControlFlowGraph(this ImmutableArray<IOperation> operationBlocks)
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\DisposeAnalysis\DisposeAnalysisHelper.cs (2)
123ImmutableArray<IOperation> operationBlocks, 163public bool HasAnyDisposableCreationDescendant(ImmutableArray<IOperation> operationBlocks, IMethodSymbol containingMethod)
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\GlobalFlowStateAnalysis\GlobalFlowStateAnalysis.cs (2)
70ImmutableArray<INamedTypeSymbol> additionalSupportedValueTypes = default, 100ImmutableArray<INamedTypeSymbol> additionalSupportedValueTypes = default,
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\PropertySetAnalysis\ConstructorMapper.cs (4)
47public ConstructorMapper(ImmutableArray<PropertySetAbstractValueKind> propertyAbstractValues) 59this.PropertyAbstractValues = ImmutableArray<PropertySetAbstractValueKind>.Empty; 69this.PropertyAbstractValues = ImmutableArray<PropertySetAbstractValueKind>.Empty; 83internal ImmutableArray<PropertySetAbstractValueKind> PropertyAbstractValues { get; }
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\PropertySetAnalysis\PropertySetAbstractValue.cs (4)
56public static PropertySetAbstractValue GetInstance(ImmutableArray<PropertySetAbstractValueKind> propertyAbstractValues) 101private PropertySetAbstractValue(ImmutableArray<PropertySetAbstractValueKind> propertyAbstractValues) 108this.KnownPropertyAbstractValues = ImmutableArray<PropertySetAbstractValueKind>.Empty; 117private ImmutableArray<PropertySetAbstractValueKind> KnownPropertyAbstractValues { get; }
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\TaintedDataAnalysis\ITaintedDataInfo.cs (1)
24ImmutableArray<string> DependencyFullTypeNames { get; }
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\TaintedDataAnalysis\PooledHashSetExtensions.cs (1)
86ImmutableArray<string> dependencyFullTypeNames,
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\TaintedDataAnalysis\SanitizerInfo.cs (2)
83public ImmutableArray<string> DependencyFullTypeNames => ImmutableArray<string>.Empty;
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\TaintedDataAnalysis\SinkInfo.cs (2)
71public ImmutableArray<string> DependencyFullTypeNames => ImmutableArray<string>.Empty;
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\TaintedDataAnalysis\SourceInfo.cs (7)
14internal delegate bool PointsToCheck(ImmutableArray<PointsToAbstractValue> pointsTos); 15internal delegate bool ValueContentCheck(ImmutableArray<PointsToAbstractValue> pointsTos, ImmutableArray<ValueContentAbstractValue> valueContents); 16internal delegate bool MethodMatcher(string methodName, ImmutableArray<IArgumentOperation> arguments); 51ImmutableArray<string>? dependencyFullTypeNames = null) 69DependencyFullTypeNames = dependencyFullTypeNames ?? ImmutableArray<string>.Empty; 80public ImmutableArray<string> DependencyFullTypeNames { get; }
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\TaintedDataAnalysis\TaintedDataAnalysisResult.cs (2)
17ImmutableArray<TaintedDataSourceSink> taintedDataSourceSinks) 23public ImmutableArray<TaintedDataSourceSink> TaintedDataSourceSinks { get; }
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\TaintedDataAnalysis\TaintedDataSymbolMapExtensions.cs (2)
37ImmutableArray<IArgumentOperation> arguments, 185ImmutableArray<IArgumentOperation> arguments,
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\TaintedDataAnalysis\WebInputSources.cs (1)
32var dependencyFullTypeNames = ImmutableArray.Create(WellKnownTypeNames.MicrosoftAspNetCoreMvcControllerBase,
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\ValueContentAnalysis\ValueContentAnalysis.cs (2)
56ImmutableArray<INamedTypeSymbol> additionalSupportedValueTypes = default, 90ImmutableArray<INamedTypeSymbol> additionalSupportedValueTypes = default,
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\ValueContentAnalysis\ValueContentAnalysisContext.cs (4)
35ImmutableArray<INamedTypeSymbol> additionalSupportedValueTypes, 45AdditionalSupportedValueTypes = additionalSupportedValueTypes.IsDefault ? ImmutableArray<INamedTypeSymbol>.Empty : additionalSupportedValueTypes; 49public ImmutableArray<INamedTypeSymbol> AdditionalSupportedValueTypes { get; } 63ImmutableArray<INamedTypeSymbol> additionalSupportedValueTypes,
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\AbstractLocation.cs (2)
157var arguments = creation switch 163_ => ImmutableArray<IArgumentOperation>.Empty,
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\AbstractLocationDataFlowOperationVisitor.cs (1)
124var keys = currentAnalysisData.Keys.ToImmutableArray();
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\AnalysisEntity.cs (8)
40ImmutableArray<AbstractIndex> indices, 69private AnalysisEntity(ISymbol? symbol, ImmutableArray<AbstractIndex> indices, PointsToAbstractValue location, ITypeSymbol type, AnalysisEntity? parent, AnalysisEntity? entityForInstanceLocation) 76: this(symbol: null, indices: ImmutableArray<AbstractIndex>.Empty, instanceReferenceOperationSyntax: instanceReferenceOperation.Syntax, 83: this(symbol: null, indices: ImmutableArray<AbstractIndex>.Empty, instanceReferenceOperationSyntax: null, 89: this(symbol: namedType, indices: ImmutableArray<AbstractIndex>.Empty, instanceReferenceOperationSyntax: null, 94public static AnalysisEntity Create(ISymbol? symbol, ImmutableArray<AbstractIndex> indices, 197public ImmutableArray<AbstractIndex> Indices { get; } 216internal AnalysisEntity WithIndices(ImmutableArray<AbstractIndex> indices)
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\AnalysisEntityBasedPredicateAnalysisData.cs (1)
139var keys = CoreAnalysisData.Keys.ToImmutableArray();
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\AnalysisEntityDataFlowOperationVisitor.cs (3)
94var keys = currentAnalysisData.Keys.ToImmutableArray(); 210protected override void SetAbstractValueForArrayElementInitializer(IArrayCreationOperation arrayCreation, ImmutableArray<AbstractIndex> indices, ITypeSymbol elementType, IOperation initializer, TAbstractAnalysisValue value) 767AnalysisEntityFactory.TryCreateForTupleElements(tupleOperation, out var tupleElementEntities))
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\AnalysisEntityFactory.cs (17)
31private readonly Dictionary<ITupleOperation, ImmutableArray<AnalysisEntity>> _tupleElementEntitiesMap; 92private static ImmutableArray<AbstractIndex> CreateAbstractIndices<T>(ImmutableArray<T> indices) 106return ImmutableArray<AbstractIndex>.Empty; 134ImmutableArray<AbstractIndex> indices = ImmutableArray<AbstractIndex>.Empty; 271private static void GetSymbolAndIndicesForMemberReference(IMemberReferenceOperation memberReference, ref ISymbol? symbol, ref ImmutableArray<AbstractIndex> indices) 304ImmutableArray<AbstractIndex>.Empty; 315var indices = ImmutableArray<AbstractIndex>.Empty; 323public bool TryCreateForTupleElements(ITupleOperation tupleOperation, [NotNullWhen(returnValue: true)] out ImmutableArray<AnalysisEntity> elementEntities) 350TryCreateForTupleElements(parentTupleOperationOpt, out var parentTupleElementEntities)) 368parentEntity = AnalysisEntity.Create(underlyingValueTupleType, ImmutableArray<AbstractIndex>.Empty, 384builder.Add(AnalysisEntity.Create(mappedValueTupleField, indices: ImmutableArray<AbstractIndex>.Empty, 397public bool TryCreateForArrayElementInitializer(IArrayCreationOperation arrayCreation, ImmutableArray<AbstractIndex> indices, ITypeSymbol elementType, [NotNullWhen(returnValue: true)] out AnalysisEntity? analysisEntity) 439private bool TryCreate(ISymbol? symbol, ImmutableArray<AbstractIndex> indices, 554private AnalysisEntity Create(ISymbol? symbol, ImmutableArray<AbstractIndex> indices, ITypeSymbol type, PointsToAbstractValue? instanceLocation, AnalysisEntity? parent, AnalysisEntity? entityForInstanceLocation)
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DataFlowOperationVisitor.cs (12)
990var requiresMethods = ContractNamedType.GetMembers("Requires"); 991var assumeMethods = ContractNamedType.GetMembers("Assume"); 992var assertMethods = ContractNamedType.GetMembers("Assert"); 1946protected abstract void SetAbstractValueForArrayElementInitializer(IArrayCreationOperation arrayCreation, ImmutableArray<AbstractIndex> indices, ITypeSymbol elementType, IOperation initializer, TAbstractAnalysisValue value); 2205ImmutableArray<IArgumentOperation> arguments, 2782var pendingArguments = _pendingArgumentsToPostProcess.ExtractAll(static (arg, operation) => arg.Parent == operation, operation); 3227void PostVisitInvocation(IMethodSymbol targetMethod, ImmutableArray<IArgumentOperation> arguments) 3252void ProcessInterlockedOperation(IMethodSymbol targetMethod, ImmutableArray<IArgumentOperation> arguments, INamedTypeSymbol interlockedType) 3536ImmutableArray<IArgumentOperation> visitedArguments, 3578ImmutableArray<IArgumentOperation> visitedArguments, 3596ImmutableArray<IArgumentOperation> visitedArguments, 3680if (AnalysisEntityFactory.TryCreateForTupleElements(operation, out var elementEntities))
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\InterproceduralAnalysisConfiguration.cs (2)
83ImmutableArray<DiagnosticDescriptor> rules, 94ImmutableArray<DiagnosticDescriptor> rules,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleHelpers.cs (3)
119this ImmutableArray<IOption2>.Builder optionsBuilder, 132this ImmutableArray<IOption2>.Builder optionsBuilder, 144this ImmutableArray<IOption2>.Builder optionsBuilder,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleOptions2.cs (2)
21private static readonly ImmutableArray<IOption2>.Builder s_editorConfigOptionsBuilder = ImmutableArray.CreateBuilder<IOption2>(); 356internal static readonly ImmutableArray<IOption2> EditorConfigOptions = s_editorConfigOptionsBuilder.ToImmutable();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\VisualBasic\VisualBasicCodeStyleOptions.cs (2)
14private static readonly ImmutableArray<IOption2>.Builder s_allOptionsBuilder = ImmutableArray.CreateBuilder<IOption2>(); 55public static ImmutableArray<IOption2> EditorConfigOptions => s_allOptionsBuilder.ToImmutable();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\IntervalTreeAlgorithms`2.cs (4)
19public ImmutableArray<T> GetIntervalsThatMatch<TIntrospector, TIntervalTester>( 29public ImmutableArray<T> GetIntervalsThatOverlapWith<TIntrospector>( 36public ImmutableArray<T> GetIntervalsThatIntersectWith<TIntrospector>( 43public ImmutableArray<T> GetIntervalsThatContain<TIntrospector>(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\SimpleMutableIntervalTree`2.cs (3)
39public ImmutableArray<T> GetIntervalsThatOverlapWith(int start, int length) 42public ImmutableArray<T> GetIntervalsThatIntersectWith(int start, int length) 45public ImmutableArray<T> GetIntervalsThatContain(int start, int length)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Diagnostics\IPragmaSuppressionsAnalyzer.cs (1)
26Func<DiagnosticAnalyzer, ImmutableArray<DiagnosticDescriptor>> getSupportedDiagnostics,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Editing\GenerationOptions.cs (1)
30public static readonly ImmutableArray<IOption2> EditorConfigOptions = [PlaceSystemNamespaceFirst, SeparateImportDirectiveGroups];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\Common\EmbeddedSeparatedSyntaxNodeList.cs (2)
17public ImmutableArray<EmbeddedSyntaxNodeOrToken<TSyntaxKind, TSyntaxNode>> NodesAndTokens { get; } 25ImmutableArray<EmbeddedSyntaxNodeOrToken<TSyntaxKind, TSyntaxNode>> nodesAndTokens)
src\roslyn\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) 56public EmbeddedSyntaxToken<TSyntaxKind> WithDiagnostics(ImmutableArray<EmbeddedDiagnostic> diagnostics) 61Optional<ImmutableArray<EmbeddedSyntaxTrivia<TSyntaxKind>>> leadingTrivia = default, 63Optional<ImmutableArray<EmbeddedSyntaxTrivia<TSyntaxKind>>> trailingTrivia = default, 64Optional<ImmutableArray<EmbeddedDiagnostic>> diagnostics = default,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\Common\EmbeddedSyntaxTree.cs (2)
17public readonly ImmutableArray<EmbeddedDiagnostic> Diagnostics; 22ImmutableArray<EmbeddedDiagnostic> diagnostics)
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\VirtualCharGreenSequence.Chunks.cs (1)
15/// is used so we can expose <see cref="VirtualChar"/>s over an <see cref="ImmutableArray{VirtualChar}"/>
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\VirtualCharUtilities.cs (1)
26public static (ImmutableSegmentedList<VirtualChar> sourceCode, ImmutableArray<TextSpan> markdownSpans) StripMarkupCharacters(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\CollectionExpressionUtilities.cs (3)
97var constructors = namedType.Constructors; 122IMethodSymbol? GetAccessibleInstanceConstructor(ImmutableArray<IMethodSymbol> constructors, Func<IMethodSymbol, bool> predicate) 145public static ImmutableArray<IMethodSymbol>? TryGetCollectionBuilderFactoryMethods(
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DirectiveInfo.cs (2)
12Dictionary<TDirectiveTriviaSyntax, ImmutableArray<TDirectiveTriviaSyntax>> conditionalMap) 19public Dictionary<TDirectiveTriviaSyntax, ImmutableArray<TDirectiveTriviaSyntax>> ConditionalMap { get; } = conditionalMap;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ImmutableArrayExtensions.cs (6)
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> ToImmutableAndClear<T>(this ImmutableArray<T>.Builder builder) 42var result = builder.ToImmutable();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ObjectWriterExtensions.cs (3)
13public static void WriteArray<T>(this ObjectWriter writer, ImmutableArray<T> values, Action<ObjectWriter, T> write) 23public static ImmutableArray<T> ReadArray<T>(this ObjectReader reader, Func<ObjectReader, T> read) 26public static ImmutableArray<T> ReadArray<T, TArg>(this ObjectReader reader, Func<ObjectReader, TArg, T> read, TArg arg)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (3)
341public static bool HasAnyOperationDescendant(this ImmutableArray<IOperation> operationBlocks, Func<IOperation, bool> predicate) 374public static bool HasAnyOperationDescendant(this ImmutableArray<IOperation> operationBlocks, OperationKind kind) 437static IOperation? TryGetSingleExplicitStatement(ImmutableArray<IOperation> operations)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SemanticModelExtensions.cs (2)
140var typeArguments = type.GetAllTypeArguments(); 178ImmutableArray<ITypeSymbol> typeArguments,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\StackExtensions.cs (1)
39public static void Push<T>(this Stack<T> stack, ImmutableArray<T> values)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\StringExtensions.cs (1)
188public static ImmutableArray<SymbolDisplayPart> ToSymbolDisplayParts(this string text)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SymbolInfoExtensions.cs (3)
16public static ImmutableArray<ISymbol> GetAllSymbols(this SymbolInfo info) 19private static ImmutableArray<ISymbol> GetAllSymbolsWorker(this SymbolInfo info) 25public static ImmutableArray<ISymbol> GetBestOrAllSymbols(this SymbolInfo info)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (2)
862var conditionalMap = new Dictionary<TDirectiveTriviaSyntax, ImmutableArray<TDirectiveTriviaSyntax>>( 928var condDirectives = condDirectivesBuilder.ToImmutableAndClear();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\TextSpanExtensions.cs (2)
21public static ImmutableArray<TextSpan> ToNormalizedSpans(this ImmutableArray<TextSpan> spans)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\CustomDataFlowAnalysis.cs (2)
32var blocks = controlFlowGraph.Blocks; 67ImmutableArray<BasicBlock> blocks,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.AnalysisData.cs (2)
144ImmutableArray<IParameterSymbol> parameters) 152ImmutableArray<IParameterSymbol> parameters)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageResult.cs (1)
47public ImmutableArray<(ISymbol Symbol, IOperation WriteOperation)> GetUnreadSymbolWrites()
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.cs (2)
412var intervals = tree.GetIntervalsThatContain(textSpan.Start, textSpan.Length); 542var anchorData = _anchorTree.GetIntervalsThatOverlapWith(baseAnchorData.TextSpan.Start, baseAnchorData.TextSpan.Length);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.InitialContextFinder.cs (3)
43public (List<IndentBlockOperation> indentOperations, ImmutableArray<SuppressOperation> suppressOperations) Do(SyntaxToken startToken, SyntaxToken endToken) 53var initialSuppressOperations = GetInitialSuppressOperations(startToken, endToken); 124private ImmutableArray<SuppressOperation> GetInitialSuppressOperations(SyntaxToken startToken, SyntaxToken endToken)
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\ChainedFormattingRules.cs (9)
21private readonly ImmutableArray<AbstractFormattingRule> _formattingRules; 24private readonly ImmutableArray<AbstractFormattingRule> _addSuppressOperationsRules; 25private readonly ImmutableArray<AbstractFormattingRule> _addAnchorIndentationOperationsRules; 26private readonly ImmutableArray<AbstractFormattingRule> _addIndentBlockOperationsRules; 27private readonly ImmutableArray<AbstractFormattingRule> _addAlignTokensOperationsRules; 28private readonly ImmutableArray<AbstractFormattingRule> _getAdjustNewLinesOperationRules; 29private readonly ImmutableArray<AbstractFormattingRule> _getAdjustSpacesOperationRules; 82private static ImmutableArray<AbstractFormattingRule> FilterToRulesImplementingMethod(ImmutableArray<AbstractFormattingRule> rules, string name)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingOptions2.cs (2)
97internal static readonly ImmutableArray<IOption2> EditorConfigOptions = [UseTabs, TabSize, IndentationSize, NewLine, InsertFinalNewLine]; 102internal static readonly ImmutableArray<IOption2> UndocumentedOptions = [WrappingColumn, ConditionalExpressionWrappingLength];
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextAlignTokensOperationAction.cs (1)
12ImmutableArray<AbstractFormattingRule> formattingRules,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextAnchorIndentationOperationAction.cs (1)
12ImmutableArray<AbstractFormattingRule> formattingRules,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextGetAdjustNewLinesOperation.cs (1)
11ImmutableArray<AbstractFormattingRule> formattingRules,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextGetAdjustSpacesOperation.cs (1)
11ImmutableArray<AbstractFormattingRule> formattingRules,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextIndentBlockOperationAction.cs (1)
12ImmutableArray<AbstractFormattingRule> formattingRules,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextSuppressOperationAction.cs (1)
12ImmutableArray<AbstractFormattingRule> formattingRules,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\TriviaEngine\AbstractTriviaFormatter.cs (1)
265public ImmutableArray<TextChange> FormatToTextChanges(CancellationToken cancellationToken)
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Helpers\RemoveUnnecessaryImports\IUnnecessaryImportsProvider.cs (2)
15ImmutableArray<TSyntaxNode> GetUnnecessaryImports(SemanticModel model, TextSpan? span, CancellationToken cancellationToken); 17ImmutableArray<TSyntaxNode> GetUnnecessaryImports(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Indentation\AbstractIndentation.Indenter.cs (1)
44ImmutableArray<AbstractFormattingRule> rules,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser_SymbolSpec.cs (12)
49out Property<ImmutableArray<SymbolKindOrTypeKind>> kinds, 50out Property<ImmutableArray<Accessibility>> accessibilities, 51out Property<ImmutableArray<ModifierKind>> modifiers) 86private static readonly ImmutableArray<SymbolKindOrTypeKind> s_allApplicableKinds = 89private static ImmutableArray<SymbolKindOrTypeKind> ParseSymbolKindList(string symbolSpecApplicableKinds) 156private static readonly ImmutableArray<Accessibility> s_allAccessibility = 167private static ImmutableArray<Accessibility> ParseAccessibilityKindList(string symbolSpecApplicableAccessibilities) 220private static readonly ImmutableArray<ModifierKind> _allModifierKind = [s_abstractModifierKind, s_asyncModifierKind, s_constModifierKind, s_readonlyModifierKind, s_staticModifierKind]; 222private static ImmutableArray<ModifierKind> ParseModifiers(string symbolSpecRequiredModifiers) 264public static string ToEditorConfigString(this ImmutableArray<SymbolKindOrTypeKind> symbols) 362public static string ToEditorConfigString(this ImmutableArray<Accessibility> accessibilities, string languageName) 421public static string ToEditorConfigString(this ImmutableArray<ModifierKind> modifiers, string languageName)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Naming\IdentifierNameParts.cs (6)
15internal readonly struct IdentifierNameParts(string baseName, ImmutableArray<string> baseNameParts) 18public readonly ImmutableArray<string> BaseNameParts = baseNameParts; 20public static IdentifierNameParts CreateIdentifierNameParts(ISymbol symbol, ImmutableArray<NamingRule> rules) 31var words = CreateWords(parts, baseName); 36private static string RemovePrefixesAndSuffixes(ISymbol symbol, ImmutableArray<NamingRule> rules, string baseName) 73private static ImmutableArray<string> CreateWords(in TemporaryArray<TextSpan> parts, string name)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (1)
61public string CreateName(ImmutableArray<string> words)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyleOptions.cs (1)
32internal static readonly ImmutableArray<IOption2> EditorConfigOptions = [NamingPreferences];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyleRules.cs (5)
11internal sealed class NamingStyleRules(ImmutableArray<NamingRule> namingRules) 13public ImmutableArray<NamingRule> NamingRules { get; } = namingRules; 15private readonly ImmutableArray<SymbolKind> _symbolKindsThatCanBeOverridden = 88var implementedInterfaces = containingType.AllInterfaces; 92var implementedInterfaceMembersWithSameName = implementedInterface.GetMembers(symbol.Name);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (10)
27public readonly ImmutableArray<SymbolSpecification> SymbolSpecifications; 30public readonly ImmutableArray<NamingStyle> NamingStyles; 33public ImmutableArray<SerializableNamingRule> SerializableNamingRules 57ImmutableArray<SymbolSpecification> symbolSpecifications, 58ImmutableArray<NamingStyle> namingStyles, 59ImmutableArray<SerializableNamingRule> serializableRules) 76ImmutableArray<SymbolSpecification> symbolSpecifications, 77ImmutableArray<NamingStyle> namingStyles, 78ImmutableArray<NamingRule> namingRules) 336public static NamingStylePreferences Empty { get; } = new([], [], ImmutableArray<NamingRule>.Empty);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (10)
26ImmutableArray<SymbolSpecification.SymbolKindOrTypeKind> symbolKindList, 27ImmutableArray<Accessibility> accessibilityList = default, 28ImmutableArray<SymbolSpecification.ModifierKind> modifiers = default) : IEquatable<SymbolSpecification> 39public ImmutableArray<SymbolKindOrTypeKind> ApplicableSymbolKindList { get; } = symbolKindList.IsDefault ? DefaultSymbolSpecificationTemplate.ApplicableSymbolKindList : symbolKindList; 42public ImmutableArray<Accessibility> ApplicableAccessibilityList { get; } = accessibilityList.IsDefault ? DefaultSymbolSpecificationTemplate.ApplicableAccessibilityList : accessibilityList; 45public ImmutableArray<ModifierKind> RequiredModifierList { get; } = modifiers.IsDefault ? DefaultSymbolSpecificationTemplate.RequiredModifierList : modifiers; 120private static Modifiers CollapseModifiers(ImmutableArray<ModifierKind> requiredModifierList) 285private static ImmutableArray<SymbolKindOrTypeKind> GetSymbolKindListFromXElement(XElement symbolKindListElement) 306private static ImmutableArray<Accessibility> GetAccessibilityListFromXElement(XElement accessibilityListElement) 312private static ImmutableArray<ModifierKind> GetModifierListFromXElement(XElement modifierListElement)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionDefinition.cs (4)
104type == typeof(ImmutableArray<bool>) || 105type == typeof(ImmutableArray<string>) || 106type == typeof(ImmutableArray<int>) || 107type == typeof(ImmutableArray<long>);
src\roslyn\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\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\FileBannerFacts\IFileBannerFactsExtensions.cs (2)
12public static ImmutableArray<SyntaxTrivia> GetTriviaAfterLeadingBlankLines( 15var leadingBlankLines = bannerService.GetLeadingBlankLines(node);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\HeaderFacts\AbstractHeaderFacts.cs (2)
30=> IsOnHeader(root, position, ownerOfHeader, lastTokenOrNodeOfHeader, ImmutableArray<SyntaxNode>.Empty); 37ImmutableArray<THoleSyntax> holes)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SelectedMembers\AbstractSelectedMembers.cs (5)
31protected abstract ImmutableArray<(SyntaxNode declarator, SyntaxToken identifier)> GetDeclaratorsAndIdentifiers(TMemberDeclarationSyntax member); 33public Task<ImmutableArray<SyntaxNode>> GetSelectedFieldsAndPropertiesAsync( 37public Task<ImmutableArray<SyntaxNode>> GetSelectedMembersAsync( 41private async Task<ImmutableArray<SyntaxNode>> GetSelectedMembersAsync( 76private ImmutableArray<SyntaxNode> GetMembersInSpan(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SemanticFacts\ISemanticFacts.cs (4)
85ImmutableArray<IMethodSymbol> GetDeconstructionAssignmentMethods(SemanticModel semanticModel, SyntaxNode node); 87ImmutableArray<IMethodSymbol> GetDeconstructionForEachMethods(SemanticModel semanticModel, SyntaxNode node); 99ImmutableArray<ISymbol> GetBestOrAllSymbols(SemanticModel semanticModel, SyntaxNode? node, SyntaxToken token, CancellationToken cancellationToken); 106ImmutableArray<IMethodSymbol> GetLocalFunctionSymbols(Compilation compilation, ISymbol symbol, CancellationToken cancellationToken);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SyntaxFacts\ISyntaxFacts.cs (1)
187ImmutableArray<SyntaxNode> GetMatchingConditionalDirectives(SyntaxNode directive, CancellationToken cancellationToken);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SyntaxFacts\ISyntaxFactsExtensions.cs (1)
160this ISyntaxFacts syntaxFacts, ImmutableArray<SyntaxNode> nodes, CancellationToken cancellationToken)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Simplification\SymbolAnnotation.cs (1)
23public static ImmutableArray<ISymbol> GetSymbols(SyntaxAnnotation annotation, Compilation compilation)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.AnonymousTypeSymbolKey.cs (8)
21var properties = symbol.GetMembers().OfType<IPropertySymbol>().ToImmutableArray(); 22var propertyTypes = properties.SelectAsArray(p => p.Type); 23var propertyNames = properties.SelectAsArray(p => (string?)p.Name); 24var propertyIsReadOnly = properties.SelectAsArray(p => p.SetMethod == null); 25var propertyLocations = properties.SelectAsArray(p => p.Locations.FirstOrDefault()); 38var contextualProperties = contextualSymbol?.GetMembers().OfType<IPropertySymbol>().ToImmutableArray() ?? []; 48var propertyLocations = ReadPropertyLocations(reader, out var propertyLocationsFailureReason); 75private static ImmutableArray<Location> ReadPropertyLocations(SymbolKeyReader reader, out string? failureReason)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.BodyLevelSymbolKey.cs (2)
19public static ImmutableArray<Location?> GetBodyLevelSourceLocations(ISymbol symbol, CancellationToken cancellationToken) 63var locations = GetBodyLevelSourceLocations(symbol, cancellationToken);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (5)
152var locations = BodyLevelSymbolKey.GetBodyLevelSourceLocations(symbol, cancellationToken); 261ImmutableArray<ISymbol>.CastUp(symbols.Builder.ToImmutableAndClear()), 266private static T? SafeGet<T>(ImmutableArray<T> values, int index) where T : class 276ImmutableArray<IParameterSymbol> parameters, 303var members = metadataName == null
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.ErrorTypeSymbolKey.cs (2)
44visitor.WriteSymbolKeyArray(ImmutableArray<ITypeSymbol>.Empty); 52private static ImmutableArray<string?> GetContainingNamespaceNamesInReverse(INamespaceSymbol namespaceSymbol)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.FunctionPointerTypeSymbolKey.cs (2)
37var callingConventionModifiers = ImmutableArray<INamedTypeSymbol>.Empty;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.ModuleSymbolKey.cs (1)
38if (assemblyModules is ImmutableArray<IModuleSymbol> modules)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.ParameterSymbolKey.cs (1)
85string metadataName, int ordinal, ImmutableArray<IParameterSymbol> parameters)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.PooledArrayBuilder.cs (2)
34public ImmutableArray<T> ToImmutable() => Builder.ToImmutable(); 52public void AddValuesIfNotNull(ImmutableArray<T> values)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
384ImmutableArray<IParameterSymbol> parameters)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (7)
277internal void WriteSymbolKeyArray<TSymbol>(ImmutableArray<TSymbol> symbols) 283internal void WriteParameterTypesArray(ImmutableArray<IParameterSymbol> symbols) 286internal void WriteBooleanArray(ImmutableArray<bool> array) 292internal void WriteStringArray(ImmutableArray<string?> strings) 295internal void WriteLocationArray(ImmutableArray<Location?> array) 300internal void WriteRefKindArray(ImmutableArray<IParameterSymbol> values) 303private void WriteArray<T, U>(ImmutableArray<T> array, Action<U> writeValue)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TupleTypeSymbolKey.cs (4)
67var elementLocations = ReadElementLocations(reader, out var elementLocationsFailureReason); 80var elementNamesArray = elementNames.ToImmutable(); 95var elementLocations = ReadElementLocations(reader, out var elementLocationsFailureReason); 126private static ImmutableArray<Location> ReadElementLocations(SymbolKeyReader reader, out string? failureReason)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKeyResolution.cs (2)
27internal SymbolKeyResolution(ImmutableArray<ISymbol> candidateSymbols, CandidateReason candidateReason) 38public ImmutableArray<ISymbol> CandidateSymbols => field.NullToEmpty();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (10)
112SemanticModel model, TForEachStatementSyntax forEach, out IMethodSymbol getEnumeratorMethod, out ITypeSymbol elementType, out ImmutableArray<ILocalSymbol> localVariables); 120protected abstract ImmutableArray<TArgumentSyntax> GetArguments(TExpressionSyntax expression); 778GetForEachSymbols(this.OriginalSemanticModel, forEachStatement, out var originalGetEnumerator, out var originalElementType, out var originalLocalVariables); 779GetForEachSymbols(this.SpeculativeSemanticModel, newForEachStatement, out var newGetEnumerator, out var newElementType, out var newLocalVariables); 1055var specifiedArguments = GetArguments(originalInvocation); 1058var symbolParameters = originalSymbol.GetParameters(); 1059var newSymbolParameters = newSymbol.GetParameters(); 1068ImmutableArray<TArgumentSyntax> specifiedArguments, 1069ImmutableArray<IParameterSymbol> signature1Parameters, 1070ImmutableArray<IParameterSymbol> signature2Parameters)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.Builder.cs (2)
139private void BuildArrays(ImmutableArray<Node>.Builder nodes, ImmutableArray<Edge>.Builder edges)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.cs (4)
49private readonly ImmutableArray<Node> _nodes; 50private readonly ImmutableArray<Edge> _edges; 52private BKTree(char[] concatenatedLowerCaseWords, ImmutableArray<Node> nodes, ImmutableArray<Edge> edges)
src\roslyn\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\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IAsyncEnumerableExtensions.cs (1)
38public static IAsyncEnumerable<T> MergeAsync<T>(this ImmutableArray<IAsyncEnumerable<T>> streams, CancellationToken cancellationToken)
src\roslyn\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\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\InterceptsLocationUtilities.cs (4)
20internal record struct InterceptsLocationData(ImmutableArray<byte> ContentHash, int Position) 31public static ImmutableArray<InterceptsLocationData> GetInterceptsLocationData(ImmutableArray<AttributeData> attributes) 103var contentHash = bytes[HashIndex..HashSize].ToImmutableArray();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\LightweightOverloadResolution.cs (4)
31public IMethodSymbol? RefineOverload(SymbolInfo symbolInfo, ImmutableArray<IMethodSymbol> candidates) 34public (IMethodSymbol? method, int parameterIndex) RefineOverloadAndPickParameter(SymbolInfo symbolInfo, ImmutableArray<IMethodSymbol> candidates) 52private (IMethodSymbol? symbol, int parameterIndex) GuessCurrentSymbolAndParameter(ImmutableArray<IMethodSymbol> methodGroup) 85var parameters = method.Parameters;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PathMetadataUtilities.cs (2)
27var parts = folders.SelectMany(folder => folder.Split(NamespaceSeparatorArray)).SelectAsArray(syntaxFacts.EscapeIdentifier); 59public static ImmutableArray<string> BuildFoldersFromNamespace(string? @namespace, string? rootNamespace = null)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PooledBuilderExtensions.cs (6)
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) 47public static ImmutableDictionary<K, ImmutableArray<V>> ToImmutableMultiDictionaryAndFree<K, V, TArg>(this PooledDictionary<K, ArrayBuilder<V>> builders, Func<K, TArg, bool>? where, TArg whereArg) 50var result = ImmutableDictionary.CreateBuilder<K, ImmutableArray<V>>(); 77public static ImmutableArray<T> ToFlattenedImmutableArrayAndFree<T>(this ArrayBuilder<ArrayBuilder<T>> builders)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\RestrictedInternalsVisibleToAttribute.cs (1)
13public ImmutableArray<string> AllowedNamespaces { get; } = [.. allowedNamespaces];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SerializableBytes.cs (1)
222public ImmutableArray<byte> ToImmutableArray()
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SpecializedTasks.cs (4)
46public static Task<ImmutableArray<T>> EmptyImmutableArray<T>() 87public static async ValueTask<ImmutableArray<TResult>> WhenAll<TResult>(this IReadOnlyCollection<Task<TResult>> tasks) 102public static readonly Task<ImmutableArray<T>> EmptyImmutableArray = Task.FromResult(ImmutableArray<T>.Empty);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (4)
29public static ImmutableArray<Compilation> GetReferencedCompilations(this Compilation compilation) 48public static ImmutableArray<IAssemblySymbol> GetReferencedAssemblySymbols(this Compilation compilation, bool excludePreviousSubmissions = false) 52var referencedAssemblySymbols = compilation.Assembly.Modules.First().ReferencedAssemblySymbols; 193=> compilation.GetTypeByMetadataName(typeof(ImmutableArray<>).FullName!);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IMethodSymbolExtensions.cs (1)
49public static ImmutableArray<IMethodSymbol> GetAllMethodSymbolsOfPartialParts(this IMethodSymbol method)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (25)
44public static ImmutableArray<ITypeParameterSymbol> GetAllTypeParameters(this INamedTypeSymbol? symbol) 50public static ImmutableArray<ITypeSymbol> GetAllTypeArguments(this INamedTypeSymbol? symbol) 190public static ImmutableArray<(INamedTypeSymbol type, ImmutableArray<ISymbol> members)> GetAllUnimplementedMembers( 208static ImmutableArray<ISymbol> GetImplicitlyImplementableMembers(INamedTypeSymbol type, ISymbol within) 260public static ImmutableArray<(INamedTypeSymbol type, ImmutableArray<ISymbol> members)> GetAllUnimplementedMembersInThis( 278public static ImmutableArray<(INamedTypeSymbol type, ImmutableArray<ISymbol> members)> GetAllUnimplementedMembersInThis( 281Func<INamedTypeSymbol, ISymbol, ImmutableArray<ISymbol>> interfaceMemberGetter, 297public static ImmutableArray<(INamedTypeSymbol type, ImmutableArray<ISymbol> members)> GetAllUnimplementedExplicitMembers( 311private static ImmutableArray<ISymbol> GetExplicitlyImplementableMembers(INamedTypeSymbol type, ISymbol within) 338private static ImmutableArray<(INamedTypeSymbol type, ImmutableArray<ISymbol> members)> GetAllUnimplementedMembers( 343Func<INamedTypeSymbol, ISymbol, ImmutableArray<ISymbol>> interfaceMemberGetter, 367var typesToImplement = GetTypesToImplement(classOrStructType, interfacesOrAbstractClasses, allowReimplementation, cancellationToken); 372private static ImmutableArray<INamedTypeSymbol> GetTypesToImplement( 383private static ImmutableArray<INamedTypeSymbol> GetAbstractClassesToImplement( 389private static ImmutableArray<INamedTypeSymbol> GetInterfacesToImplement( 404var alreadyImplementedInterfaces = baseType == null || allowReimplementation 413private static ImmutableArray<ISymbol> GetUnimplementedMembers( 418Func<INamedTypeSymbol, ISymbol, ImmutableArray<ISymbol>> interfaceMemberGetter, 528private static ImmutableArray<ISymbol> GetMembers(INamedTypeSymbol type, ISymbol within) 541public static ImmutableArray<ISymbol> GetOverridableMembers(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (12)
141public static ImmutableArray<ISymbol> ExplicitInterfaceImplementations(this ISymbol symbol) 144IEventSymbol @event => ImmutableArray<ISymbol>.CastUp(@event.ExplicitInterfaceImplementations), 145IMethodSymbol method => ImmutableArray<ISymbol>.CastUp(method.ExplicitInterfaceImplementations), 146IPropertySymbol property => ImmutableArray<ISymbol>.CastUp(property.ExplicitInterfaceImplementations), 150public static ImmutableArray<ISymbol> ExplicitOrImplicitInterfaceImplementations(this ISymbol symbol) 175public static ImmutableArray<ISymbol> ImplicitInterfaceImplementations(this ISymbol symbol) 423public static ImmutableArray<IParameterSymbol> GetParameters(this ISymbol? symbol) 431public static ImmutableArray<ITypeParameterSymbol> GetTypeParameters(this ISymbol? symbol) 439public static ImmutableArray<ITypeParameterSymbol> GetAllTypeParameters(this ISymbol? symbol) 452public static ImmutableArray<ITypeSymbol> GetTypeArguments(this ISymbol? symbol) 460public static ImmutableArray<ITypeSymbol> GetAllTypeArguments(this ISymbol symbol) 705var potentialGetAwaiters = semanticModel.LookupSymbols(position,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (6)
43public static ImmutableArray<INamedTypeSymbol> GetAllInterfacesIncludingThis(this ITypeSymbol type) 45var allInterfaces = type.AllInterfaces; 446public static ImmutableArray<T> GetAccessibleMembersInThisAndBaseTypes<T>(this ITypeSymbol? containingType, ISymbol within) where T : class, ISymbol 456public static ImmutableArray<T> GetAccessibleMembersInThisAndBaseTypes<T>(this ITypeSymbol? containingType, string memberName, ISymbol within) where T : class, ISymbol 593var allTypeArgs1 = n1.GetAllTypeArguments(); 594var allTypeArgs2 = n2.GetAllTypeArguments();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.SubstituteTypesVisitor.cs (1)
72var allTypeArguments = symbol.GetAllTypeArguments();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SignatureComparer.cs (4)
108ImmutableArray<IParameterSymbol> parameters1, 109ImmutableArray<IParameterSymbol> parameters2) 118ImmutableArray<IParameterSymbol> parameters1, 119ImmutableArray<IParameterSymbol> parameters2,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.cs (2)
43private readonly ImmutableArray<EquivalenceVisitor> _equivalenceVisitors; 44private readonly ImmutableArray<GetHashCodeVisitor> _getHashCodeVisitors;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (8)
76internal 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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (1)
109private static int CombineHashCodes<T>(ImmutableArray<T> array, int currentHash, Func<int, T, int> func)
Microsoft.CodeAnalysis.CodeStyle (798)
src\4f5ad909b1ed0e10\AbstractUseCoalesceExpressionForNullableTernaryConditionalCheckDiagnosticAnalyzer.cs (1)
119var locations = ImmutableArray.Create(
src\a1065d420d446521\NamingStylePreferencesEditorConfigSerializer.cs (9)
30ImmutableArray<SymbolSpecification> symbolSpecifications, 31ImmutableArray<NamingStyle> namingStyles, 32ImmutableArray<NamingRule> namingRules, 47ImmutableArray<SymbolSpecification> symbolSpecifications, 48ImmutableArray<NamingStyle> namingStyles, 49ImmutableArray<NamingRule> rules, 120ImmutableArray<SymbolSpecification> symbolSpecifications, 121ImmutableArray<NamingStyle> namingStyles) 170private static ImmutableDictionary<NamingRule, string> AssignNamesToNamingStyleRules(ImmutableArray<NamingRule> namingRules, ImmutableDictionary<Guid, string> serializedNameMap)
src\b310f676f7308b7f\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (6)
26private readonly ImmutableArray<IParameterSymbol> _parameters; 74ImmutableArray<IParameterSymbol> parameters, 123var parameters = GetParameters(owningSymbol); 139static ImmutableArray<IParameterSymbol> GetParameters(ISymbol owningSymbol) 141var parameters = owningSymbol.GetParameters(); 164var parameters = lambdaOrLocalFunction.GetParameters();
src\roslyn\src\Analyzers\Core\Analyzers\AbstractBuiltInCodeStyleDiagnosticAnalyzer_Core.cs (3)
38protected AbstractBuiltInCodeStyleDiagnosticAnalyzer(ImmutableArray<DiagnosticDescriptor> supportedDiagnostics) 47public sealed override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } 120ImmutableArray<NotificationOption2> notifications,
src\roslyn\src\Analyzers\Core\Analyzers\AbstractBuiltInCodeStyleDiagnosticAnalyzer.cs (2)
82protected AbstractBuiltInCodeStyleDiagnosticAnalyzer(ImmutableArray<(DiagnosticDescriptor Descriptor, IOption2 Option)> supportedDiagnosticsWithOptions) 95protected AbstractBuiltInCodeStyleDiagnosticAnalyzer(ImmutableArray<(DiagnosticDescriptor Descriptor, ImmutableHashSet<IOption2> Options)> supportedDiagnosticsWithOptions)
src\roslyn\src\Analyzers\Core\Analyzers\AbstractBuiltInUnnecessaryCodeStyleDiagnosticAnalyzer.cs (3)
72protected AbstractBuiltInUnnecessaryCodeStyleDiagnosticAnalyzer(ImmutableArray<DiagnosticDescriptor> descriptors) 80protected AbstractBuiltInUnnecessaryCodeStyleDiagnosticAnalyzer(ImmutableArray<(DiagnosticDescriptor Descriptor, IOption2 Option)> supportedDiagnosticsWithOptions) 88protected AbstractBuiltInUnnecessaryCodeStyleDiagnosticAnalyzer(ImmutableArray<(DiagnosticDescriptor Descriptor, ImmutableHashSet<IOption2> Options)> supportedDiagnosticsWithOptions)
src\roslyn\src\Analyzers\Core\Analyzers\AbstractCodeQualityDiagnosticAnalyzer.cs (2)
16ImmutableArray<DiagnosticDescriptor> descriptors, 24public sealed override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; }
src\roslyn\src\Analyzers\Core\Analyzers\AddAccessibilityModifiers\AbstractAddAccessibilityModifiersDiagnosticAnalyzer.cs (1)
67var additionalLocations = ImmutableArray.Create(member.GetLocation());
src\roslyn\src\Analyzers\Core\Analyzers\AddRequiredParentheses\AbstractAddRequiredParenthesesDiagnosticAnalyzer.cs (4)
67protected static ImmutableArray<string> GetAllEquivalenceKeys() 85protected abstract ImmutableArray<TLanguageKindEnum> GetSyntaxNodeKinds(); 115var additionalLocations = ImmutableArray.Create(binaryLike.GetLocation()); 166NotificationOption2 notificationOption, ImmutableArray<Location> additionalLocations,
src\roslyn\src\Analyzers\Core\Analyzers\ForEachCast\AbstractForEachCastDiagnosticAnalyzer.cs (1)
39protected abstract ImmutableArray<TSyntaxKind> GetSyntaxKinds();
src\roslyn\src\Analyzers\Core\Analyzers\Helpers\DiagnosticHelper.cs (8)
90ImmutableArray<Location> additionalLocations, 91ImmutableArray<Location> additionalUnnecessaryLocations, 110ImmutableArray<Location> additionalLocations, 111ImmutableArray<Location> additionalUnnecessaryLocations) 158ImmutableArray<Location> additionalLocations, 159ImmutableArray<Location> additionalUnnecessaryLocations, 180ImmutableArray<Location> additionalLocations, 181ImmutableArray<Location> additionalUnnecessaryLocations,
src\roslyn\src\Analyzers\Core\Analyzers\Helpers\HashCodeAnalyzer\HashCodeAnalyzer.cs (8)
50public (bool accessesBase, ImmutableArray<ISymbol> members, ImmutableArray<IOperation> statements) GetHashedMembers(ISymbol? owningSymbol, IOperation? operation) 72var statements = blockOperation.Operations.WhereAsArray(o => !o.IsImplicit); 81private (bool accessesBase, ImmutableArray<ISymbol> members)? MatchTuplePattern( 82IMethodSymbol method, ImmutableArray<IOperation> statements) 104private (bool accessesBase, ImmutableArray<ISymbol> members)? MatchAccumulatorPattern( 105IMethodSymbol method, ImmutableArray<IOperation> statements) 127var variables = varDeclStatement.GetDeclaredVariables();
src\roslyn\src\Analyzers\Core\Analyzers\Helpers\HashCodeAnalyzer\HashCodeAnalyzer.OperationDeconstructor.cs (1)
34public readonly (bool accessesBase, ImmutableArray<ISymbol> hashedSymbol) GetResult()
src\roslyn\src\Analyzers\Core\Analyzers\MakeFieldReadonly\AbstractMakeFieldReadonlyDiagnosticAnalyzer.cs (1)
117var members = ((INamedTypeSymbol)symbolEndContext.Symbol).GetMembers();
src\roslyn\src\Analyzers\Core\Analyzers\MatchFolderAndNamespace\AbstractMatchFolderAndNamespaceDiagnosticAnalyzer.cs (1)
45protected abstract ImmutableArray<TSyntaxKind> GetSyntaxKindsToAnalyze();
src\roslyn\src\Analyzers\Core\Analyzers\NamingStyle\NamingStyleDiagnosticAnalyzerBase.cs (2)
34private static readonly ImmutableArray<SymbolKind> _symbolKinds = [SymbolKind.Event, SymbolKind.Method, SymbolKind.NamedType, SymbolKind.Namespace, SymbolKind.Property]; 38protected abstract ImmutableArray<TLanguageKindEnum> SupportedSyntaxKinds { get; }
src\roslyn\src\Analyzers\Core\Analyzers\RemoveUnnecessaryCast\AbstractRemoveUnnecessaryCastDiagnosticAnalyzer.cs (1)
29protected abstract ImmutableArray<TLanguageKindEnum> SyntaxKindsOfInterest { get; }
src\roslyn\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); 95var unnecessaryImports = UnnecessaryImportsProvider.GetUnnecessaryImports(context.SemanticModel, context.FilterSpan, cancellationToken); 103var mergedImports = MergeImports(unnecessaryImports); 146private IEnumerable<TextSpan> GetContiguousSpans(ImmutableArray<SyntaxNode> nodes)
src\roslyn\src\Analyzers\Core\Analyzers\RemoveUnnecessaryParentheses\AbstractRemoveUnnecessaryParenthesesDiagnosticAnalyzer.cs (2)
111var additionalLocations = ImmutableArray.Create( 113var additionalUnnecessaryLocations = ImmutableArray.Create(
src\roslyn\src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryAttributeSuppressionsDiagnosticAnalyzer.cs (2)
75if (!_state.IsSuppressMessageAttributeWithNamedArguments(attributeSyntax, model, cancellationToken, out var namedAttributeArguments)) 87out var targetSymbolString, out var targetValueOperation, out var resolvedSymbols))
src\roslyn\src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (22)
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) 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\roslyn\src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\SuppressMessageAttributeState.cs (5)
46out ImmutableArray<(string name, IOperation value)> namedAttributeArguments) 70public static bool HasValidScope(ImmutableArray<(string name, IOperation value)> namedAttributeArguments, out TargetScope targetScope) 88ImmutableArray<(string name, IOperation value)> namedAttributeArguments, 93out ImmutableArray<ISymbol> resolvedSymbols) 128ImmutableArray<(string name, IOperation value)> namedAttributeArguments,
src\roslyn\src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (4)
364var methods = _analyzer.SemanticFacts.GetDeconstructionAssignmentMethods(operation.SemanticModel!, operation.Syntax); 475var parameters = operationContext.Operation switch 706var additionalUnnecessaryLocations = !isConvertibleProperty && fadingNode is not null 708: ImmutableArray<Location>.Empty;
src\roslyn\src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.cs (1)
213var notifications = ImmutableArray.Create(unusedParametersOption.Notification, unusedValueExpressionStatementSeverity, unusedValueAssignmentSeverity);
src\roslyn\src\Analyzers\Core\Analyzers\SimplifyInterpolation\AbstractSimplifyInterpolationDiagnosticAnalyzer.cs (2)
78out var formatString, out var unnecessaryLocations); 86var remainingUnnecessaryLocations = unnecessaryLocations.RemoveAt(0);
src\roslyn\src\Analyzers\Core\Analyzers\SimplifyInterpolation\AbstractSimplifyInterpolationHelpers.cs (1)
74out ImmutableArray<Location> unnecessaryLocations)
src\roslyn\src\Analyzers\Core\Analyzers\SimplifyLinqExpression\AbstractSimplifyLinqExpressionDiagnosticAnalyzer.cs (3)
66TryGetLinqMethodsThatDoNotReturnEnumerables(enumerableType, out var linqMethods)) 102static bool TryGetLinqMethodsThatDoNotReturnEnumerables(INamedTypeSymbol enumerableType, out ImmutableArray<IMethodSymbol> linqMethods) 168var members = targetTypeSymbol.GetMembers(name);
src\roslyn\src\Analyzers\Core\Analyzers\SimplifyTypeNames\SimplifyTypeNamesDiagnosticAnalyzerBase.cs (5)
70protected static ImmutableArray<NotificationOption2> GetAllNotifications(SimplifierOptions options) 97protected abstract ImmutableArray<Diagnostic> AnalyzeCodeBlock(CodeBlockAnalysisContext context, SyntaxNode root); 98protected abstract ImmutableArray<Diagnostic> AnalyzeSemanticModel(SemanticModelAnalysisContext context, SyntaxNode root, TextSpanMutableIntervalTree? codeBlockIntervalTree); 224var diagnostics = _analyzer.AnalyzeCodeBlock(context, root); 280var diagnostics = _analyzer.AnalyzeSemanticModel(context, root, intervalTree);
src\roslyn\src\Analyzers\Core\Analyzers\UseAutoProperty\AbstractUseAutoPropertyAnalyzer.cs (2)
437var attributes = getterField.GetAttributes(); 648var additionalLocations = ImmutableArray.Create(
src\roslyn\src\Analyzers\Core\Analyzers\UseAutoProperty\AccessedFields.cs (1)
17ImmutableArray<IFieldSymbol> NonTrivialFields)
src\roslyn\src\Analyzers\Core\Analyzers\UseCoalesceExpression\AbstractUseCoalesceExpressionForTernaryConditionalCheckDiagnosticAnalyzer.cs (1)
123var locations = ImmutableArray.Create(
src\roslyn\src\Analyzers\Core\Analyzers\UseCollectionInitializer\AbstractObjectCreationExpressionAnalyzer.cs (2)
38ImmutableArray<TMatch> PreMatches, 39ImmutableArray<TMatch> PostMatches,
src\roslyn\src\Analyzers\Core\Analyzers\UseCollectionInitializer\AbstractUseCollectionInitializerAnalyzer.cs (2)
221protected ImmutableArray<IMethodSymbol> GetAddMethods(CancellationToken cancellationToken) 227var addMethods = this.SemanticModel.LookupSymbols(
src\roslyn\src\Analyzers\Core\Analyzers\UseCollectionInitializer\AbstractUseCollectionInitializerDiagnosticAnalyzer.cs (10)
83ImmutableArray<CollectionMatch<SyntaxNode>> preMatches, 110var matchKindsArray = matchKinds.ToImmutableAndClear(); 176var nodes = containingStatement is null 177? ImmutableArray<SyntaxNode>.Empty 183var locations = ImmutableArray.Create(objectCreationExpression.GetLocation()); 202(ImmutableArray<CollectionMatch<SyntaxNode>> matches, bool shouldUseCollectionExpression, bool changesSemantics)? GetCollectionInitializerMatches() 219(ImmutableArray<CollectionMatch<SyntaxNode>> matches, bool shouldUseCollectionExpression, bool changesSemantics)? GetCollectionExpressionMatches() 245ImmutableArray<CollectionMatch<SyntaxNode>> matches, 246ImmutableArray<Location> locations, 253var additionalUnnecessaryLocations = UseCollectionInitializerHelpers.GetLocationsToFade(
src\roslyn\src\Analyzers\Core\Analyzers\UseCollectionInitializer\UpdateExpressionState.cs (3)
33private static readonly ImmutableArray<(string name, bool isLinq)> s_multiAddNames = 498var whenTrueStatements = whenTrue.ToImmutableArray(); 519var whenFalseStatements = whenFalse.ToImmutableArray();
src\roslyn\src\Analyzers\Core\Analyzers\UseCollectionInitializer\UseCollectionInitializerHelpers.cs (3)
22public static ImmutableArray<Location> GetLocationsToFade( 35var additionalUnnecessaryLocations = ImmutableArray.Create( 47var additionalUnnecessaryLocations = ImmutableArray.Create(
src\roslyn\src\Analyzers\Core\Analyzers\UseCompoundAssignment\AbstractUseCompoundAssignmentDiagnosticAnalyzer.cs (1)
37ImmutableArray<(TSyntaxKind exprKind, TSyntaxKind assignmentKind, TSyntaxKind tokenKind)> kinds)
src\roslyn\src\Analyzers\Core\Analyzers\UseCompoundAssignment\UseCompoundAssignmentUtilities.cs (1)
20ImmutableArray<(TSyntaxKind exprKind, TSyntaxKind assignmentKind, TSyntaxKind tokenKind)> kinds,
src\roslyn\src\Analyzers\Core\Analyzers\UseIsNullCheck\AbstractUseIsNullForReferenceEqualsDiagnosticAnalyzer.cs (1)
132var additionalLocations = ImmutableArray.Create(invocation.GetLocation());
src\roslyn\src\Analyzers\Core\Analyzers\UseNullPropagation\AbstractUseNullPropagationDiagnosticAnalyzer_IfStatement.cs (2)
30out ImmutableArray<TStatementSyntax> trueStatements); 161if (!this.TryGetPartsOfIfStatement(ifStatement, out condition, out var trueStatements))
src\roslyn\src\Analyzers\Core\Analyzers\UseObjectInitializer\AbstractUseObjectInitializerDiagnosticAnalyzer.cs (6)
86var matchKindsArray = matchKinds.ToImmutableAndClear(); 116var matches = analyzer.Analyze(semanticModel, syntaxFacts, objectCreationExpression, context.CancellationToken); 128var nodes = ImmutableArray.Create<SyntaxNode>(containingStatement).AddRange(matches.Select(m => m.Statement)); 132var locations = ImmutableArray.Create(objectCreationExpression.GetLocation()); 149ImmutableArray<Match<TExpressionSyntax, TStatementSyntax, TMemberAccessExpressionSyntax, TAssignmentStatementSyntax>> matches, 150ImmutableArray<Location> locations,
src\roslyn\src\Analyzers\Core\Analyzers\UseObjectInitializer\UseNamedMemberInitializerAnalyzer.cs (1)
49public ImmutableArray<Match<TExpressionSyntax, TStatementSyntax, TMemberAccessExpressionSyntax, TAssignmentStatementSyntax>> Analyze(
src\roslyn\src\Analyzers\Core\Analyzers\UseThrowExpression\AbstractUseThrowExpressionDiagnosticAnalyzer.cs (2)
128var allLocations = ImmutableArray.Create( 140var statements = containingBlock.Operations;
src\roslyn\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\roslyn\src\Analyzers\Core\Analyzers\ValidateFormatString\FormatStringValidationOptionStorage.cs (1)
17public static readonly ImmutableArray<IOption2> UnsupportedOptions = [ReportInvalidPlaceholdersInStringDotFormatCalls];
src\roslyn\src\Compilers\Core\Portable\Collections\DictionaryExtensions.cs (3)
93/// the values in the passed builder will be converted to an <see cref="ImmutableArray{T}"/> using <see 97public static ImmutableSegmentedDictionary<K, ImmutableArray<V>> ToImmutableSegmentedDictionaryAndFree<K, V>(this PooledDictionary<K, ArrayBuilder<V>> dictionary) 100var result = ImmutableSegmentedDictionary.CreateBuilder<K, ImmutableArray<V>>();
src\roslyn\src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (3)
143public ImmutableArray<V> this[K k] 153return ImmutableArray<V>.Empty; 270internal ImmutableArray<V> Items
src\roslyn\src\Compilers\Core\Portable\Diagnostic\DiagnosticArrayExtensions.cs (1)
11internal static bool HasAnyErrors<T>(this ImmutableArray<T> diagnostics) where T : Diagnostic
src\roslyn\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\roslyn\src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
729public static string NormalizePathPrefix(string filePath, ImmutableArray<KeyValuePair<string, string>> pathMap)
src\roslyn\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\roslyn\src\Compilers\Core\Portable\InternalUtilities\Hash.cs (3)
120internal static int CombineValues<T>(ImmutableArray<T> values, int maxItemsToHash = int.MaxValue) 171internal static int CombineValues(ImmutableArray<string> values, StringComparer stringComparer, int maxItemsToHash = int.MaxValue) 252internal static int GetFNVHashCode(ImmutableArray<byte> data)
src\roslyn\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\roslyn\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\roslyn\src\Compilers\Core\Portable\InternalUtilities\SetWithInsertionOrder.cs (1)
94public ImmutableArray<T> AsImmutable() => _elements.ToImmutableArrayOrEmpty();
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (2)
20private static ImmutableArray<string> s_lazyNumerals; 25var numerals = s_lazyNumerals;
src\roslyn\src\Compilers\Core\Portable\MetadataReference\AssemblyIdentityUtils.cs (1)
36ImmutableArray<byte> publicKeyOrToken = !publicKeyHandle.IsNil
src\roslyn\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\roslyn\src\Dependencies\Collections\Extensions\FixedSizeArrayBuilder.cs (5)
19/// A bare-bones array builder, focused on the case of producing <see cref="ImmutableArray{T}"/>s where the final array 37/// The builder will be moved to an array (see <see cref="MoveToArray"/>) or <see cref="ImmutableArray{T}"/> (see <see 70public void AddRange(ImmutableArray<T> values) 116/// Moves the underlying buffer out of control of this type, into the returned <see cref="ImmutableArray{T}"/>. It 122public ImmutableArray<T> MoveToImmutable()
src\roslyn\src\Dependencies\Collections\Extensions\ICollectionExtensions.cs (1)
76public static void AddRange<T>(this ICollection<T> collection, ImmutableArray<T> values)
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (26)
60public static ImmutableArray<T> ToImmutableArrayOrEmpty<T>(this IEnumerable<T>? items) 67if (items is ImmutableArray<T> array) 82if (items is ImmutableArray<T> array) 271/// <seealso cref="Microsoft.CodeAnalysis.ImmutableArrayExtensions.HasDuplicates{TItem, TValue}(ImmutableArray{TItem}, Func{TItem, TValue}, IEqualityComparer{TValue})"/> 376public static ImmutableArray<T> WhereAsArray<T>(this IEnumerable<T> values, Func<T, bool> predicate) 390public static ImmutableArray<T> WhereAsArray<T, TArg>(this IEnumerable<T> values, Func<T, TArg, bool> predicate, TArg arg) 407public static ImmutableArray<TResult> SelectAsArray<TSource, TResult>(this IEnumerable<TSource>? source, Func<TSource, TResult> selector) 417public static ImmutableArray<TResult> SelectAsArray<TItem, TResult>(this IEnumerable<TItem>? source, Func<TItem, bool> predicate, Func<TItem, TResult> selector) 431public static ImmutableArray<TResult> SelectAsArray<TSource, TResult>(this IEnumerable<TSource>? source, Func<TSource, int, TResult> selector) 446public static ImmutableArray<TResult> SelectAsArray<TSource, TResult, TArg>(this IEnumerable<TSource>? source, Func<TSource, TArg, TResult> selector, TArg arg) 449return ImmutableArray<TResult>.Empty; 461public static ImmutableArray<TResult> SelectAsArray<TSource, TResult>(this IReadOnlyCollection<TSource>? source, Func<TSource, TResult> selector) 473public static ImmutableArray<TResult> SelectAsArray<TSource, TResult, TArg>(this IReadOnlyCollection<TSource>? source, Func<TSource, TArg, TResult> selector, TArg arg) 485public static ImmutableArray<TResult> SelectManyAsArray<TSource, TResult>(this IEnumerable<TSource>? source, Func<TSource, IEnumerable<TResult>> selector) 496public static ImmutableArray<TResult> SelectManyAsArray<TItem, TArg, TResult>(this IEnumerable<TItem>? source, Func<TItem, TArg, IEnumerable<TResult>> selector, TArg arg) 507public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, IEnumerable<TResult>> selector) 520public static ImmutableArray<TResult> SelectManyAsArray<TItem, TArg, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, TArg, IEnumerable<TResult>> selector, TArg arg) 533public static ImmutableArray<TResult> SelectManyAsArray<TSource, TResult>(this IEnumerable<TSource>? source, Func<TSource, OneOrMany<TResult>> selector) 547public static async ValueTask<ImmutableArray<TResult>> SelectAsArrayAsync<TItem, TResult>(this IEnumerable<TItem> source, Func<TItem, ValueTask<TResult>> selector) 561public static async ValueTask<ImmutableArray<TResult>> SelectAsArrayAsync<TItem, TResult>(this IEnumerable<TItem> source, Func<TItem, CancellationToken, ValueTask<TResult>> selector, CancellationToken cancellationToken) 575public static async ValueTask<ImmutableArray<TResult>> SelectAsArrayAsync<TItem, TArg, TResult>(this IEnumerable<TItem> source, Func<TItem, TArg, CancellationToken, ValueTask<TResult>> selector, TArg arg, CancellationToken cancellationToken) 586public 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) 764internal static Dictionary<K, ImmutableArray<T>> ToMultiDictionary<K, T>(this IEnumerable<T> data, Func<T, K> keySelector, IEqualityComparer<K>? comparer = null) 767var dictionary = new Dictionary<K, ImmutableArray<T>>(comparer); 834/// Methods that are available on both <see cref="IEnumerable{T}"/> and <see cref="ImmutableArray{T}"/> are defined in System.Linq namespace 835/// to avoid accidental boxing of <see cref="ImmutableArray{T}"/>. The boxing would occur if the file calling these methods didn't have <c>using System.Linq</c>.
src\roslyn\src\Dependencies\Collections\Extensions\IListExtensions.cs (1)
31/// <seealso cref="ImmutableArrayExtensions.HasDuplicates{TItem, TValue}(System.Collections.Immutable.ImmutableArray{TItem}, Func{TItem, TValue}, IEqualityComparer{TValue})"/>
src\roslyn\src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (156)
24/// The collection of extension methods for the <see cref="ImmutableArray{T}"/> type 36public static ImmutableArray<T> AsImmutable<T>(this IEnumerable<T> items) 48public static ImmutableArray<T> AsImmutableOrEmpty<T>(this IEnumerable<T>? items) 52return ImmutableArray<T>.Empty; 65public static ImmutableArray<T> AsImmutableOrNull<T>(this IEnumerable<T>? items) 81public static ImmutableArray<T> AsImmutable<T>(this T[] items) 94public static ImmutableArray<T> AsImmutableOrNull<T>(this T[]? items) 110public static ImmutableArray<T> AsImmutableOrEmpty<T>(this T[]? items) 114return ImmutableArray<T>.Empty; 125public static ImmutableArray<byte> ToImmutable(this MemoryStream stream) 138public static ImmutableArray<TResult> SelectAsArray<TItem, TResult>(this ImmutableArray<TItem> items, Func<TItem, TResult> map) 153public static ImmutableArray<TResult> SelectAsArray<TItem, TArg, TResult>(this ImmutableArray<TItem> items, Func<TItem, TArg, TResult> map, TArg arg) 168public static ImmutableArray<TResult> SelectAsArray<TItem, TArg, TResult>(this ImmutableArray<TItem> items, Func<TItem, int, TArg, TResult> map, TArg arg) 198public static ImmutableArray<TResult> SelectAsArray<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, bool> predicate, Func<TItem, TResult> selector) 224public static ImmutableArray<TResult> SelectAsArray<TItem, TArg, TResult>(this ImmutableArray<TItem> array, Func<TItem, TArg, bool> predicate, Func<TItem, TArg, TResult> selector, TArg arg) 247public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, IEnumerable<TResult>> selector) 267public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, ImmutableArray<TResult>> selector) 287public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, OneOrMany<TResult>> selector) 308public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, bool> predicate, Func<TItem, IEnumerable<TResult>> selector) 332public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, bool> predicate, Func<TItem, ImmutableArray<TResult>> selector) 356public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, bool> predicate, Func<TItem, OneOrMany<TResult>> selector) 381public static ImmutableArray<TResult> SelectManyAsArray<TItem, TArg, TResult>(this ImmutableArray<TItem> array, Func<TItem, TArg, bool> predicate, Func<TItem, TArg, OneOrMany<TResult>> selector, TArg arg) 399public static async ValueTask<ImmutableArray<TResult>> SelectAsArrayAsync<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, CancellationToken, ValueTask<TResult>> selector, CancellationToken cancellationToken) 414public static async ValueTask<ImmutableArray<TResult>> SelectAsArrayAsync<TItem, TArg, TResult>(this ImmutableArray<TItem> array, Func<TItem, TArg, CancellationToken, ValueTask<TResult>> selector, TArg arg, CancellationToken cancellationToken) 426public static ValueTask<ImmutableArray<TResult>> SelectManyAsArrayAsync<TItem, TArg, TResult>(this ImmutableArray<TItem> source, Func<TItem, TArg, CancellationToken, ValueTask<ImmutableArray<TResult>>> selector, TArg arg, CancellationToken cancellationToken) 429return new ValueTask<ImmutableArray<TResult>>([]); 436async ValueTask<ImmutableArray<TResult>> CreateTaskAsync() 453public static ImmutableArray<TResult> ZipAsArray<T1, T2, TResult>(this ImmutableArray<T1> self, ImmutableArray<T2> other, Func<T1, T2, TResult> map) 473public static ImmutableArray<TResult> ZipAsArray<T1, T2, TArg, TResult>(this ImmutableArray<T1> self, ImmutableArray<T2> other, TArg arg, Func<T1, T2, int, TArg, TResult> map) 493public static ImmutableArray<T> WhereAsArray<T>(this ImmutableArray<T> array, Func<T, bool> predicate) 501public static ImmutableArray<T> WhereAsArray<T, TArg>(this ImmutableArray<T> array, Func<T, TArg, bool> predicate, TArg arg) 504private static ImmutableArray<T> WhereAsArrayImpl<T, TArg>(ImmutableArray<T> array, Func<T, bool>? predicateWithoutArg, Func<T, TArg, bool>? predicateWithArg, TArg arg) 569return ImmutableArray<T>.Empty; 573public static async Task<bool> AnyAsync<T>(this ImmutableArray<T> array, Func<T, Task<bool>> predicateAsync) 584public static async Task<bool> AnyAsync<T, TArg>(this ImmutableArray<T> array, Func<T, TArg, Task<bool>> predicateAsync, TArg arg) 595public static async ValueTask<T?> FirstOrDefaultAsync<T>(this ImmutableArray<T> array, Func<T, Task<bool>> predicateAsync) 610public static ImmutableArray<TBase> Cast<TDerived, TBase>(this ImmutableArray<TDerived> items) 613return ImmutableArray<TBase>.CastUp(items); 624public static bool SetEquals<T>(this ImmutableArray<T> array1, ImmutableArray<T> array2, IEqualityComparer<T> comparer) 665public static ImmutableArray<T> NullToEmpty<T>(this ImmutableArray<T> array) 667return array.IsDefault ? ImmutableArray<T>.Empty : array; 673public static ImmutableArray<T> NullToEmpty<T>(this ImmutableArray<T>? array) 676null or { IsDefault: true } => ImmutableArray<T>.Empty, 682internal static ImmutableArray<T> ConditionallyDeOrder<T>(this ImmutableArray<T> array) 699internal static ImmutableArray<TValue> Flatten<TKey, TValue>( 700this Dictionary<TKey, ImmutableArray<TValue>> dictionary, 723internal static ImmutableArray<T> AddRange<T>(this ImmutableArray<T> self, in TemporaryArray<T> items) 751internal static bool HasDuplicates<T>(this ImmutableArray<T> array) 754internal static bool HasDuplicates<T>(this ImmutableArray<T> array, IEqualityComparer<T> comparer) 757public static bool HasDuplicates<TItem, TValue>(this ImmutableArray<TItem> array, Func<TItem, TValue> selector) 769internal static bool HasDuplicates<TItem, TValue>(this ImmutableArray<TItem> array, Func<TItem, TValue> selector, IEqualityComparer<TValue> comparer) 826(Dictionary<TKey, object> dictionary, Dictionary<TKey, ImmutableArray<TNamespaceOrTypeSymbol>> result) 837static ImmutableArray<TNamespaceOrTypeSymbol> createMembers(object value) 848return ImmutableArray<TNamespaceOrTypeSymbol>.CastUp(builder.ToDowncastedImmutableAndFree<TNamedTypeSymbol>()); 855: ImmutableArray<TNamespaceOrTypeSymbol>.CastUp(ImmutableArray.Create((TNamedTypeSymbol)symbol)); 860internal static Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>> GetTypesFromMemberMap<TKey, TNamespaceOrTypeSymbol, TNamedTypeSymbol> 861(Dictionary<TKey, ImmutableArray<TNamespaceOrTypeSymbol>> map, IEqualityComparer<TKey> comparer) 872var dictionary = new Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>>(capacity, comparer); 876var namedTypes = getOrCreateNamedTypes(entry.Value); 883static ImmutableArray<TNamedTypeSymbol> getOrCreateNamedTypes(ImmutableArray<TNamespaceOrTypeSymbol> members) 890var membersAsNamedTypes = members.As<TNamedTypeSymbol>(); 903return ImmutableArray<TNamedTypeSymbol>.Empty; 917internal static int IndexOf<T>(this ImmutableArray<T> array, T item, IEqualityComparer<T> comparer) 920internal static bool IsSorted<T>(this ImmutableArray<T> array, Comparison<T> comparison) 923internal static bool IsSorted<T>(this ImmutableArray<T> array, IComparer<T>? comparer = null) 938public static bool IsSubsetOf<TElement>(this ImmutableArray<TElement> array, ImmutableArray<TElement> other) 983/// Extension methods that are available on both <see cref="IEnumerable{T}"/> and <see cref="ImmutableArray{T}"/> in System.Linq namespace 984/// are defined in System.Linq namespace to avoid accidental boxing of <see cref="ImmutableArray{T}"/>. 990/// Variant of <see cref="System.Linq.ImmutableArrayExtensions.FirstOrDefault{T}(ImmutableArray{T}, Func{T, bool})"/> 992public static TValue? FirstOrDefault<TValue, TArg>(this ImmutableArray<TValue> array, Func<TValue, TArg, bool> predicate, TArg arg) 1004/// Variant of <see cref="System.Linq.ImmutableArrayExtensions.Single{T}(ImmutableArray{T}, Func{T, bool})"/> 1006public static TValue Single<TValue, TArg>(this ImmutableArray<TValue> array, Func<TValue, TArg, bool> predicate, TArg arg) 1033/// Variant of <see cref="System.Linq.ImmutableArrayExtensions.SequenceEqual{TDerived, TBase}(ImmutableArray{TBase}, ImmutableArray{TDerived}, Func{TBase, TBase, bool})"/>. 1035public static bool SequenceEqual<TElement, TArg>(this ImmutableArray<TElement> array1, ImmutableArray<TElement> array2, TArg arg, Func<TElement, TElement, TArg, bool> predicate) 1066/// Specialization of <see cref="System.Linq.Enumerable.Count{TSource}(IEnumerable{TSource}, Func{TSource, bool})"/> for <see cref="ImmutableArray{T}"/>. 1068public static int Count<T>(this ImmutableArray<T> items, Func<T, bool> predicate) 1084/// Specialization of <see cref="System.Linq.Enumerable.Sum(IEnumerable{int})"/> for <see cref="ImmutableArray{T}"/>. 1086public static int Sum<T>(this ImmutableArray<T> items, Func<T, int> selector) 1096/// Variation of <see cref="System.Linq.Enumerable.Sum(IEnumerable{int})"/> for <see cref="ImmutableArray{T}"/>. 1098public static int Sum<T>(this ImmutableArray<T> items, Func<T, int, int> selector) 1108/// Specialization of <see cref="System.Linq.Enumerable.Concat{TSource}(IEnumerable{TSource}, IEnumerable{TSource})"/> for <see cref="ImmutableArray{T}"/>. 1110public static ImmutableArray<T> Concat<T>(this ImmutableArray<T> first, ImmutableArray<T> second) 1116public static ImmutableArray<T> Concat<T>(this ImmutableArray<T> first, T second) 1122public static ImmutableArray<T> Concat<T>(this ImmutableArray<T> first, ImmutableArray<T> second, ImmutableArray<T> third) 1136public static ImmutableArray<T> Concat<T>(this ImmutableArray<T> first, ImmutableArray<T> second, ImmutableArray<T> third, ImmutableArray<T> fourth) 1152public static ImmutableArray<T> Concat<T>(this ImmutableArray<T> first, ImmutableArray<T> second, ImmutableArray<T> third, ImmutableArray<T> fourth, ImmutableArray<T> fifth) 1168public static ImmutableArray<T> Concat<T>(this ImmutableArray<T> first, ImmutableArray<T> second, ImmutableArray<T> third, ImmutableArray<T> fourth, ImmutableArray<T> fifth, ImmutableArray<T> sixth) 1188public static ImmutableArray<T> Distinct<T>(this ImmutableArray<T> array, IEqualityComparer<T>? comparer = null) 1207var result = (builder.Count == array.Length) ? array : builder.ToImmutable(); 1213/// Variant of <see cref="System.Linq.ImmutableArrayExtensions.Any{T}(ImmutableArray{T}, Func{T, bool})"/>. 1215public static bool Any<T, TArg>(this ImmutableArray<T> array, Func<T, TArg, bool> predicate, TArg arg) 1227/// Variant of <see cref="System.Linq.ImmutableArrayExtensions.All{T}(ImmutableArray{T}, Func{T, bool})"/>. 1229public static bool All<T, TArg>(this ImmutableArray<T> array, Func<T, TArg, bool> predicate, TArg arg) 1248/// Methods that are available on both <see cref="IEnumerable{T}"/> and <see cref="ImmutableArray{T}"/> in System.Collections.Immutable namespace 1249/// are defined in System.Collections.Immutable namespace to avoid accidental boxing of <see cref="ImmutableArray{T}"/>. 1255/// Variant of <see cref="System.Collections.Immutable.ImmutableArray{T}.Contains(T, IEqualityComparer{T})"/> 1257public static bool Contains<T>(this ImmutableArray<T> array, Func<T, bool> predicate) 1261/// Variant of <see cref="System.Collections.Immutable.ImmutableArray.BinarySearch{T}(ImmutableArray{T}, T, IComparer{T}?)"/> 1264public static int BinarySearch<TElement, TValue>(this ImmutableArray<TElement> array, TValue value, Func<TElement, TValue, int> comparer)
src\roslyn\src\Dependencies\Collections\Internal\HashHelpers.cs (1)
40private static readonly ImmutableArray<int> s_primes = ImmutableArray.Create(
src\roslyn\src\Dependencies\Collections\OneOrMany.cs (8)
28public static readonly OneOrMany<T> Empty = new OneOrMany<T>(ImmutableArray<T>.Empty); 31private readonly ImmutableArray<T> _many; 39public OneOrMany(ImmutableArray<T> many) 167: new OneOrMany<T>(ImmutableArray<T>.CastUp(from._many)); 185public ImmutableArray<T> ToImmutable() 206public bool SequenceEqual(ImmutableArray<T> other, IEqualityComparer<T>? comparer = null) 278public static OneOrMany<T> Create<T>(ImmutableArray<T> many) 281public static bool SequenceEqual<T>(this ImmutableArray<T> array, OneOrMany<T> other, IEqualityComparer<T>? comparer = null)
src\roslyn\src\Dependencies\Collections\RoslynImmutableInterlocked.cs (5)
618public static ImmutableArray<T> VolatileRead<T>(ref readonly ImmutableArray<T> location) 620var value = location; 635public static void VolatileWrite<T>(ref ImmutableArray<T> location, ImmutableArray<T> value)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
23/// the scenarios where <see cref="ImmutableArray{T}"/> is applicable, and
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.List.cs (1)
20public static readonly IReadOnlyList<T> Instance = ImmutableArray<T>.Empty;
src\roslyn\src\Dependencies\Collections\TemporaryArray`1.cs (6)
24/// <see cref="ImmutableArray{T}"/>. 179public void AddRange(ImmutableArray<T> items) 299/// Create an <see cref="ImmutableArray{T}"/> with the elements currently held in the temporary array, and clear 302public ImmutableArray<T> ToImmutableAndClear() 310var result = _count switch 3120 => ImmutableArray<T>.Empty,
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilder.cs (27)
61private readonly ImmutableArray<T>.Builder _builder; 83public ImmutableArray<T> ToImmutable() 91public ImmutableArray<T> ToImmutableAndClear() 93ImmutableArray<T> result; 96result = ImmutableArray<T>.Empty; 393public ImmutableArray<T> ToImmutableOrNull() 406public ImmutableArray<U> ToDowncastedImmutable<U>() 411return ImmutableArray<U>.Empty; 423public ImmutableArray<U> ToDowncastedImmutableAndFree<U>() where U : T 425var result = ToDowncastedImmutable<U>(); 433public ImmutableArray<T> ToImmutableAndFree() 437ImmutableArray<T> result; 440result = ImmutableArray<T>.Empty; 613internal Dictionary<K, ImmutableArray<T>> ToDictionary<K>(Func<T, K> keySelector, IEqualityComparer<K>? comparer = null) 618var dictionary1 = new Dictionary<K, ImmutableArray<T>>(1, comparer); 626return new Dictionary<K, ImmutableArray<T>>(comparer); 645var dictionary = new Dictionary<K, ImmutableArray<T>>(accumulator.Count, comparer); 684public void AddRange(ImmutableArray<T> items) 689public void AddRange<U>(ImmutableArray<U> items, Func<U, T> selector) 697public void AddRange(ImmutableArray<T> items, int length) 702public void AddRange(ImmutableArray<T> items, int start, int length) 712public void AddRange<S>(ImmutableArray<S> items) where S : class, T 714AddRange(ImmutableArray<T>.CastUp(items)); 806public ImmutableArray<S> SelectDistinct<S>(Func<T, S> selector) 878public ImmutableArray<TResult> SelectAsArray<TResult>(Func<T, TResult> map) 914public ImmutableArray<TResult> SelectAsArray<TArg, TResult>(Func<T, TArg, TResult> map, TArg arg) 950public ImmutableArray<TResult> SelectAsArrayWithIndex<TArg, TResult>(Func<T, int, TArg, TResult> map, TArg arg)
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilderExtensions.cs (1)
16public static ImmutableArray<T> ToImmutableOrEmptyAndFree<T>(this ArrayBuilder<T>? builder)
src\roslyn\src\Dependencies\Threading\IAsyncEnumerableExtensions.cs (1)
16public static async Task<ImmutableArray<T>> ToImmutableArrayAsync<T>(this IAsyncEnumerable<T> values, CancellationToken cancellationToken)
src\roslyn\src\Dependencies\Threading\ProducerConsumer.cs (7)
25Func<ImmutableArray<TItem>, TArgs, CancellationToken, Task> consumeItems, 49Func<ImmutableArray<TItem>, TArgs, CancellationToken, Task> consumeItems, 127Func<ImmutableArray<TItem>, TArgs, CancellationToken, Task> consumeItems, 141Func<ImmutableArray<TItem>, TArgs, CancellationToken, Task> consumeItems, 191public static Task<ImmutableArray<TItem>> RunParallelAsync<TSource, TArgs>( 204public static async Task<ImmutableArray<TItem>> RunParallelAsync<TSource, TArgs>( 284/// but returns value as an <see cref="IAsyncEnumerable{TItem}"/>. Versus an <see cref="ImmutableArray{TItem}"/>.
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleHelpers.cs (3)
119this ImmutableArray<IOption2>.Builder optionsBuilder, 132this ImmutableArray<IOption2>.Builder optionsBuilder, 144this ImmutableArray<IOption2>.Builder optionsBuilder,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleOptions2.cs (2)
21private static readonly ImmutableArray<IOption2>.Builder s_editorConfigOptionsBuilder = ImmutableArray.CreateBuilder<IOption2>(); 356internal static readonly ImmutableArray<IOption2> EditorConfigOptions = s_editorConfigOptionsBuilder.ToImmutable();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\VisualBasic\VisualBasicCodeStyleOptions.cs (2)
14private static readonly ImmutableArray<IOption2>.Builder s_allOptionsBuilder = ImmutableArray.CreateBuilder<IOption2>(); 55public static ImmutableArray<IOption2> EditorConfigOptions => s_allOptionsBuilder.ToImmutable();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\IntervalTreeAlgorithms`2.cs (4)
19public ImmutableArray<T> GetIntervalsThatMatch<TIntrospector, TIntervalTester>( 29public ImmutableArray<T> GetIntervalsThatOverlapWith<TIntrospector>( 36public ImmutableArray<T> GetIntervalsThatIntersectWith<TIntrospector>( 43public ImmutableArray<T> GetIntervalsThatContain<TIntrospector>(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\SimpleMutableIntervalTree`2.cs (3)
39public ImmutableArray<T> GetIntervalsThatOverlapWith(int start, int length) 42public ImmutableArray<T> GetIntervalsThatIntersectWith(int start, int length) 45public ImmutableArray<T> GetIntervalsThatContain(int start, int length)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Diagnostics\IPragmaSuppressionsAnalyzer.cs (1)
26Func<DiagnosticAnalyzer, ImmutableArray<DiagnosticDescriptor>> getSupportedDiagnostics,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Editing\GenerationOptions.cs (1)
30public static readonly ImmutableArray<IOption2> EditorConfigOptions = [PlaceSystemNamespaceFirst, SeparateImportDirectiveGroups];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\Common\EmbeddedSeparatedSyntaxNodeList.cs (2)
17public ImmutableArray<EmbeddedSyntaxNodeOrToken<TSyntaxKind, TSyntaxNode>> NodesAndTokens { get; } 25ImmutableArray<EmbeddedSyntaxNodeOrToken<TSyntaxKind, TSyntaxNode>> nodesAndTokens)
src\roslyn\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) 56public EmbeddedSyntaxToken<TSyntaxKind> WithDiagnostics(ImmutableArray<EmbeddedDiagnostic> diagnostics) 61Optional<ImmutableArray<EmbeddedSyntaxTrivia<TSyntaxKind>>> leadingTrivia = default, 63Optional<ImmutableArray<EmbeddedSyntaxTrivia<TSyntaxKind>>> trailingTrivia = default, 64Optional<ImmutableArray<EmbeddedDiagnostic>> diagnostics = default,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\Common\EmbeddedSyntaxTree.cs (2)
17public readonly ImmutableArray<EmbeddedDiagnostic> Diagnostics; 22ImmutableArray<EmbeddedDiagnostic> diagnostics)
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\VirtualCharGreenSequence.Chunks.cs (1)
15/// is used so we can expose <see cref="VirtualChar"/>s over an <see cref="ImmutableArray{VirtualChar}"/>
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\VirtualCharUtilities.cs (1)
26public static (ImmutableSegmentedList<VirtualChar> sourceCode, ImmutableArray<TextSpan> markdownSpans) StripMarkupCharacters(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\CollectionExpressionUtilities.cs (3)
97var constructors = namedType.Constructors; 122IMethodSymbol? GetAccessibleInstanceConstructor(ImmutableArray<IMethodSymbol> constructors, Func<IMethodSymbol, bool> predicate) 145public static ImmutableArray<IMethodSymbol>? TryGetCollectionBuilderFactoryMethods(
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DirectiveInfo.cs (2)
12Dictionary<TDirectiveTriviaSyntax, ImmutableArray<TDirectiveTriviaSyntax>> conditionalMap) 19public Dictionary<TDirectiveTriviaSyntax, ImmutableArray<TDirectiveTriviaSyntax>> ConditionalMap { get; } = conditionalMap;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ImmutableArrayExtensions.cs (6)
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> ToImmutableAndClear<T>(this ImmutableArray<T>.Builder builder) 42var result = builder.ToImmutable();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ObjectWriterExtensions.cs (3)
13public static void WriteArray<T>(this ObjectWriter writer, ImmutableArray<T> values, Action<ObjectWriter, T> write) 23public static ImmutableArray<T> ReadArray<T>(this ObjectReader reader, Func<ObjectReader, T> read) 26public static ImmutableArray<T> ReadArray<T, TArg>(this ObjectReader reader, Func<ObjectReader, TArg, T> read, TArg arg)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (3)
341public static bool HasAnyOperationDescendant(this ImmutableArray<IOperation> operationBlocks, Func<IOperation, bool> predicate) 374public static bool HasAnyOperationDescendant(this ImmutableArray<IOperation> operationBlocks, OperationKind kind) 437static IOperation? TryGetSingleExplicitStatement(ImmutableArray<IOperation> operations)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SemanticModelExtensions.cs (2)
140var typeArguments = type.GetAllTypeArguments(); 178ImmutableArray<ITypeSymbol> typeArguments,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\StackExtensions.cs (1)
39public static void Push<T>(this Stack<T> stack, ImmutableArray<T> values)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\StringExtensions.cs (1)
188public static ImmutableArray<SymbolDisplayPart> ToSymbolDisplayParts(this string text)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SymbolInfoExtensions.cs (3)
16public static ImmutableArray<ISymbol> GetAllSymbols(this SymbolInfo info) 19private static ImmutableArray<ISymbol> GetAllSymbolsWorker(this SymbolInfo info) 25public static ImmutableArray<ISymbol> GetBestOrAllSymbols(this SymbolInfo info)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (2)
862var conditionalMap = new Dictionary<TDirectiveTriviaSyntax, ImmutableArray<TDirectiveTriviaSyntax>>( 928var condDirectives = condDirectivesBuilder.ToImmutableAndClear();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\TextSpanExtensions.cs (2)
21public static ImmutableArray<TextSpan> ToNormalizedSpans(this ImmutableArray<TextSpan> spans)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\CustomDataFlowAnalysis.cs (2)
32var blocks = controlFlowGraph.Blocks; 67ImmutableArray<BasicBlock> blocks,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.AnalysisData.cs (2)
144ImmutableArray<IParameterSymbol> parameters) 152ImmutableArray<IParameterSymbol> parameters)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageResult.cs (1)
47public ImmutableArray<(ISymbol Symbol, IOperation WriteOperation)> GetUnreadSymbolWrites()
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.cs (2)
412var intervals = tree.GetIntervalsThatContain(textSpan.Start, textSpan.Length); 542var anchorData = _anchorTree.GetIntervalsThatOverlapWith(baseAnchorData.TextSpan.Start, baseAnchorData.TextSpan.Length);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.InitialContextFinder.cs (3)
43public (List<IndentBlockOperation> indentOperations, ImmutableArray<SuppressOperation> suppressOperations) Do(SyntaxToken startToken, SyntaxToken endToken) 53var initialSuppressOperations = GetInitialSuppressOperations(startToken, endToken); 124private ImmutableArray<SuppressOperation> GetInitialSuppressOperations(SyntaxToken startToken, SyntaxToken endToken)
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\ChainedFormattingRules.cs (9)
21private readonly ImmutableArray<AbstractFormattingRule> _formattingRules; 24private readonly ImmutableArray<AbstractFormattingRule> _addSuppressOperationsRules; 25private readonly ImmutableArray<AbstractFormattingRule> _addAnchorIndentationOperationsRules; 26private readonly ImmutableArray<AbstractFormattingRule> _addIndentBlockOperationsRules; 27private readonly ImmutableArray<AbstractFormattingRule> _addAlignTokensOperationsRules; 28private readonly ImmutableArray<AbstractFormattingRule> _getAdjustNewLinesOperationRules; 29private readonly ImmutableArray<AbstractFormattingRule> _getAdjustSpacesOperationRules; 82private static ImmutableArray<AbstractFormattingRule> FilterToRulesImplementingMethod(ImmutableArray<AbstractFormattingRule> rules, string name)
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextAlignTokensOperationAction.cs (1)
12ImmutableArray<AbstractFormattingRule> formattingRules,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextAnchorIndentationOperationAction.cs (1)
12ImmutableArray<AbstractFormattingRule> formattingRules,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextGetAdjustNewLinesOperation.cs (1)
11ImmutableArray<AbstractFormattingRule> formattingRules,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextGetAdjustSpacesOperation.cs (1)
11ImmutableArray<AbstractFormattingRule> formattingRules,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextIndentBlockOperationAction.cs (1)
12ImmutableArray<AbstractFormattingRule> formattingRules,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextSuppressOperationAction.cs (1)
12ImmutableArray<AbstractFormattingRule> formattingRules,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\TriviaEngine\AbstractTriviaFormatter.cs (1)
265public ImmutableArray<TextChange> FormatToTextChanges(CancellationToken cancellationToken)
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Helpers\RemoveUnnecessaryImports\IUnnecessaryImportsProvider.cs (2)
15ImmutableArray<TSyntaxNode> GetUnnecessaryImports(SemanticModel model, TextSpan? span, CancellationToken cancellationToken); 17ImmutableArray<TSyntaxNode> GetUnnecessaryImports(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Indentation\AbstractIndentation.Indenter.cs (1)
44ImmutableArray<AbstractFormattingRule> rules,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser_SymbolSpec.cs (12)
49out Property<ImmutableArray<SymbolKindOrTypeKind>> kinds, 50out Property<ImmutableArray<Accessibility>> accessibilities, 51out Property<ImmutableArray<ModifierKind>> modifiers) 86private static readonly ImmutableArray<SymbolKindOrTypeKind> s_allApplicableKinds = 89private static ImmutableArray<SymbolKindOrTypeKind> ParseSymbolKindList(string symbolSpecApplicableKinds) 156private static readonly ImmutableArray<Accessibility> s_allAccessibility = 167private static ImmutableArray<Accessibility> ParseAccessibilityKindList(string symbolSpecApplicableAccessibilities) 220private static readonly ImmutableArray<ModifierKind> _allModifierKind = [s_abstractModifierKind, s_asyncModifierKind, s_constModifierKind, s_readonlyModifierKind, s_staticModifierKind]; 222private static ImmutableArray<ModifierKind> ParseModifiers(string symbolSpecRequiredModifiers) 264public static string ToEditorConfigString(this ImmutableArray<SymbolKindOrTypeKind> symbols) 362public static string ToEditorConfigString(this ImmutableArray<Accessibility> accessibilities, string languageName) 421public static string ToEditorConfigString(this ImmutableArray<ModifierKind> modifiers, string languageName)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Naming\IdentifierNameParts.cs (6)
15internal readonly struct IdentifierNameParts(string baseName, ImmutableArray<string> baseNameParts) 18public readonly ImmutableArray<string> BaseNameParts = baseNameParts; 20public static IdentifierNameParts CreateIdentifierNameParts(ISymbol symbol, ImmutableArray<NamingRule> rules) 31var words = CreateWords(parts, baseName); 36private static string RemovePrefixesAndSuffixes(ISymbol symbol, ImmutableArray<NamingRule> rules, string baseName) 73private static ImmutableArray<string> CreateWords(in TemporaryArray<TextSpan> parts, string name)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (1)
61public string CreateName(ImmutableArray<string> words)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyleOptions.cs (1)
32internal static readonly ImmutableArray<IOption2> EditorConfigOptions = [NamingPreferences];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyleRules.cs (5)
11internal sealed class NamingStyleRules(ImmutableArray<NamingRule> namingRules) 13public ImmutableArray<NamingRule> NamingRules { get; } = namingRules; 15private readonly ImmutableArray<SymbolKind> _symbolKindsThatCanBeOverridden = 88var implementedInterfaces = containingType.AllInterfaces; 92var implementedInterfaceMembersWithSameName = implementedInterface.GetMembers(symbol.Name);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (10)
27public readonly ImmutableArray<SymbolSpecification> SymbolSpecifications; 30public readonly ImmutableArray<NamingStyle> NamingStyles; 33public ImmutableArray<SerializableNamingRule> SerializableNamingRules 57ImmutableArray<SymbolSpecification> symbolSpecifications, 58ImmutableArray<NamingStyle> namingStyles, 59ImmutableArray<SerializableNamingRule> serializableRules) 76ImmutableArray<SymbolSpecification> symbolSpecifications, 77ImmutableArray<NamingStyle> namingStyles, 78ImmutableArray<NamingRule> namingRules) 336public static NamingStylePreferences Empty { get; } = new([], [], ImmutableArray<NamingRule>.Empty);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (10)
26ImmutableArray<SymbolSpecification.SymbolKindOrTypeKind> symbolKindList, 27ImmutableArray<Accessibility> accessibilityList = default, 28ImmutableArray<SymbolSpecification.ModifierKind> modifiers = default) : IEquatable<SymbolSpecification> 39public ImmutableArray<SymbolKindOrTypeKind> ApplicableSymbolKindList { get; } = symbolKindList.IsDefault ? DefaultSymbolSpecificationTemplate.ApplicableSymbolKindList : symbolKindList; 42public ImmutableArray<Accessibility> ApplicableAccessibilityList { get; } = accessibilityList.IsDefault ? DefaultSymbolSpecificationTemplate.ApplicableAccessibilityList : accessibilityList; 45public ImmutableArray<ModifierKind> RequiredModifierList { get; } = modifiers.IsDefault ? DefaultSymbolSpecificationTemplate.RequiredModifierList : modifiers; 120private static Modifiers CollapseModifiers(ImmutableArray<ModifierKind> requiredModifierList) 285private static ImmutableArray<SymbolKindOrTypeKind> GetSymbolKindListFromXElement(XElement symbolKindListElement) 306private static ImmutableArray<Accessibility> GetAccessibilityListFromXElement(XElement accessibilityListElement) 312private static ImmutableArray<ModifierKind> GetModifierListFromXElement(XElement modifierListElement)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionDefinition.cs (4)
104type == typeof(ImmutableArray<bool>) || 105type == typeof(ImmutableArray<string>) || 106type == typeof(ImmutableArray<int>) || 107type == typeof(ImmutableArray<long>);
src\roslyn\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\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\FileBannerFacts\IFileBannerFactsExtensions.cs (2)
12public static ImmutableArray<SyntaxTrivia> GetTriviaAfterLeadingBlankLines( 15var leadingBlankLines = bannerService.GetLeadingBlankLines(node);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\HeaderFacts\AbstractHeaderFacts.cs (2)
30=> IsOnHeader(root, position, ownerOfHeader, lastTokenOrNodeOfHeader, ImmutableArray<SyntaxNode>.Empty); 37ImmutableArray<THoleSyntax> holes)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SelectedMembers\AbstractSelectedMembers.cs (5)
31protected abstract ImmutableArray<(SyntaxNode declarator, SyntaxToken identifier)> GetDeclaratorsAndIdentifiers(TMemberDeclarationSyntax member); 33public Task<ImmutableArray<SyntaxNode>> GetSelectedFieldsAndPropertiesAsync( 37public Task<ImmutableArray<SyntaxNode>> GetSelectedMembersAsync( 41private async Task<ImmutableArray<SyntaxNode>> GetSelectedMembersAsync( 76private ImmutableArray<SyntaxNode> GetMembersInSpan(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SemanticFacts\ISemanticFacts.cs (4)
85ImmutableArray<IMethodSymbol> GetDeconstructionAssignmentMethods(SemanticModel semanticModel, SyntaxNode node); 87ImmutableArray<IMethodSymbol> GetDeconstructionForEachMethods(SemanticModel semanticModel, SyntaxNode node); 99ImmutableArray<ISymbol> GetBestOrAllSymbols(SemanticModel semanticModel, SyntaxNode? node, SyntaxToken token, CancellationToken cancellationToken); 106ImmutableArray<IMethodSymbol> GetLocalFunctionSymbols(Compilation compilation, ISymbol symbol, CancellationToken cancellationToken);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SyntaxFacts\ISyntaxFacts.cs (1)
187ImmutableArray<SyntaxNode> GetMatchingConditionalDirectives(SyntaxNode directive, CancellationToken cancellationToken);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SyntaxFacts\ISyntaxFactsExtensions.cs (1)
160this ISyntaxFacts syntaxFacts, ImmutableArray<SyntaxNode> nodes, CancellationToken cancellationToken)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Simplification\SymbolAnnotation.cs (1)
23public static ImmutableArray<ISymbol> GetSymbols(SyntaxAnnotation annotation, Compilation compilation)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.AnonymousTypeSymbolKey.cs (8)
21var properties = symbol.GetMembers().OfType<IPropertySymbol>().ToImmutableArray(); 22var propertyTypes = properties.SelectAsArray(p => p.Type); 23var propertyNames = properties.SelectAsArray(p => (string?)p.Name); 24var propertyIsReadOnly = properties.SelectAsArray(p => p.SetMethod == null); 25var propertyLocations = properties.SelectAsArray(p => p.Locations.FirstOrDefault()); 38var contextualProperties = contextualSymbol?.GetMembers().OfType<IPropertySymbol>().ToImmutableArray() ?? []; 48var propertyLocations = ReadPropertyLocations(reader, out var propertyLocationsFailureReason); 75private static ImmutableArray<Location> ReadPropertyLocations(SymbolKeyReader reader, out string? failureReason)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.BodyLevelSymbolKey.cs (2)
19public static ImmutableArray<Location?> GetBodyLevelSourceLocations(ISymbol symbol, CancellationToken cancellationToken) 63var locations = GetBodyLevelSourceLocations(symbol, cancellationToken);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (5)
152var locations = BodyLevelSymbolKey.GetBodyLevelSourceLocations(symbol, cancellationToken); 261ImmutableArray<ISymbol>.CastUp(symbols.Builder.ToImmutableAndClear()), 266private static T? SafeGet<T>(ImmutableArray<T> values, int index) where T : class 276ImmutableArray<IParameterSymbol> parameters, 303var members = metadataName == null
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.ErrorTypeSymbolKey.cs (2)
44visitor.WriteSymbolKeyArray(ImmutableArray<ITypeSymbol>.Empty); 52private static ImmutableArray<string?> GetContainingNamespaceNamesInReverse(INamespaceSymbol namespaceSymbol)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.FunctionPointerTypeSymbolKey.cs (2)
37var callingConventionModifiers = ImmutableArray<INamedTypeSymbol>.Empty;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.ModuleSymbolKey.cs (1)
38if (assemblyModules is ImmutableArray<IModuleSymbol> modules)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.ParameterSymbolKey.cs (1)
85string metadataName, int ordinal, ImmutableArray<IParameterSymbol> parameters)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.PooledArrayBuilder.cs (2)
34public ImmutableArray<T> ToImmutable() => Builder.ToImmutable(); 52public void AddValuesIfNotNull(ImmutableArray<T> values)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
384ImmutableArray<IParameterSymbol> parameters)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (7)
277internal void WriteSymbolKeyArray<TSymbol>(ImmutableArray<TSymbol> symbols) 283internal void WriteParameterTypesArray(ImmutableArray<IParameterSymbol> symbols) 286internal void WriteBooleanArray(ImmutableArray<bool> array) 292internal void WriteStringArray(ImmutableArray<string?> strings) 295internal void WriteLocationArray(ImmutableArray<Location?> array) 300internal void WriteRefKindArray(ImmutableArray<IParameterSymbol> values) 303private void WriteArray<T, U>(ImmutableArray<T> array, Action<U> writeValue)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TupleTypeSymbolKey.cs (4)
67var elementLocations = ReadElementLocations(reader, out var elementLocationsFailureReason); 80var elementNamesArray = elementNames.ToImmutable(); 95var elementLocations = ReadElementLocations(reader, out var elementLocationsFailureReason); 126private static ImmutableArray<Location> ReadElementLocations(SymbolKeyReader reader, out string? failureReason)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKeyResolution.cs (2)
27internal SymbolKeyResolution(ImmutableArray<ISymbol> candidateSymbols, CandidateReason candidateReason) 38public ImmutableArray<ISymbol> CandidateSymbols => field.NullToEmpty();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (10)
112SemanticModel model, TForEachStatementSyntax forEach, out IMethodSymbol getEnumeratorMethod, out ITypeSymbol elementType, out ImmutableArray<ILocalSymbol> localVariables); 120protected abstract ImmutableArray<TArgumentSyntax> GetArguments(TExpressionSyntax expression); 778GetForEachSymbols(this.OriginalSemanticModel, forEachStatement, out var originalGetEnumerator, out var originalElementType, out var originalLocalVariables); 779GetForEachSymbols(this.SpeculativeSemanticModel, newForEachStatement, out var newGetEnumerator, out var newElementType, out var newLocalVariables); 1055var specifiedArguments = GetArguments(originalInvocation); 1058var symbolParameters = originalSymbol.GetParameters(); 1059var newSymbolParameters = newSymbol.GetParameters(); 1068ImmutableArray<TArgumentSyntax> specifiedArguments, 1069ImmutableArray<IParameterSymbol> signature1Parameters, 1070ImmutableArray<IParameterSymbol> signature2Parameters)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.Builder.cs (2)
139private void BuildArrays(ImmutableArray<Node>.Builder nodes, ImmutableArray<Edge>.Builder edges)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.cs (4)
49private readonly ImmutableArray<Node> _nodes; 50private readonly ImmutableArray<Edge> _edges; 52private BKTree(char[] concatenatedLowerCaseWords, ImmutableArray<Node> nodes, ImmutableArray<Edge> edges)
src\roslyn\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\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IAsyncEnumerableExtensions.cs (1)
38public static IAsyncEnumerable<T> MergeAsync<T>(this ImmutableArray<IAsyncEnumerable<T>> streams, CancellationToken cancellationToken)
src\roslyn\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\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\InterceptsLocationUtilities.cs (4)
20internal record struct InterceptsLocationData(ImmutableArray<byte> ContentHash, int Position) 31public static ImmutableArray<InterceptsLocationData> GetInterceptsLocationData(ImmutableArray<AttributeData> attributes) 103var contentHash = bytes[HashIndex..HashSize].ToImmutableArray();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\LightweightOverloadResolution.cs (4)
31public IMethodSymbol? RefineOverload(SymbolInfo symbolInfo, ImmutableArray<IMethodSymbol> candidates) 34public (IMethodSymbol? method, int parameterIndex) RefineOverloadAndPickParameter(SymbolInfo symbolInfo, ImmutableArray<IMethodSymbol> candidates) 52private (IMethodSymbol? symbol, int parameterIndex) GuessCurrentSymbolAndParameter(ImmutableArray<IMethodSymbol> methodGroup) 85var parameters = method.Parameters;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PathMetadataUtilities.cs (2)
27var parts = folders.SelectMany(folder => folder.Split(NamespaceSeparatorArray)).SelectAsArray(syntaxFacts.EscapeIdentifier); 59public static ImmutableArray<string> BuildFoldersFromNamespace(string? @namespace, string? rootNamespace = null)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PooledBuilderExtensions.cs (6)
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) 47public static ImmutableDictionary<K, ImmutableArray<V>> ToImmutableMultiDictionaryAndFree<K, V, TArg>(this PooledDictionary<K, ArrayBuilder<V>> builders, Func<K, TArg, bool>? where, TArg whereArg) 50var result = ImmutableDictionary.CreateBuilder<K, ImmutableArray<V>>(); 77public static ImmutableArray<T> ToFlattenedImmutableArrayAndFree<T>(this ArrayBuilder<ArrayBuilder<T>> builders)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\RestrictedInternalsVisibleToAttribute.cs (1)
13public ImmutableArray<string> AllowedNamespaces { get; } = [.. allowedNamespaces];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SerializableBytes.cs (1)
222public ImmutableArray<byte> ToImmutableArray()
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SpecializedTasks.cs (4)
46public static Task<ImmutableArray<T>> EmptyImmutableArray<T>() 87public static async ValueTask<ImmutableArray<TResult>> WhenAll<TResult>(this IReadOnlyCollection<Task<TResult>> tasks) 102public static readonly Task<ImmutableArray<T>> EmptyImmutableArray = Task.FromResult(ImmutableArray<T>.Empty);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (4)
29public static ImmutableArray<Compilation> GetReferencedCompilations(this Compilation compilation) 48public static ImmutableArray<IAssemblySymbol> GetReferencedAssemblySymbols(this Compilation compilation, bool excludePreviousSubmissions = false) 52var referencedAssemblySymbols = compilation.Assembly.Modules.First().ReferencedAssemblySymbols; 193=> compilation.GetTypeByMetadataName(typeof(ImmutableArray<>).FullName!);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IMethodSymbolExtensions.cs (1)
49public static ImmutableArray<IMethodSymbol> GetAllMethodSymbolsOfPartialParts(this IMethodSymbol method)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (25)
44public static ImmutableArray<ITypeParameterSymbol> GetAllTypeParameters(this INamedTypeSymbol? symbol) 50public static ImmutableArray<ITypeSymbol> GetAllTypeArguments(this INamedTypeSymbol? symbol) 190public static ImmutableArray<(INamedTypeSymbol type, ImmutableArray<ISymbol> members)> GetAllUnimplementedMembers( 208static ImmutableArray<ISymbol> GetImplicitlyImplementableMembers(INamedTypeSymbol type, ISymbol within) 260public static ImmutableArray<(INamedTypeSymbol type, ImmutableArray<ISymbol> members)> GetAllUnimplementedMembersInThis( 278public static ImmutableArray<(INamedTypeSymbol type, ImmutableArray<ISymbol> members)> GetAllUnimplementedMembersInThis( 281Func<INamedTypeSymbol, ISymbol, ImmutableArray<ISymbol>> interfaceMemberGetter, 297public static ImmutableArray<(INamedTypeSymbol type, ImmutableArray<ISymbol> members)> GetAllUnimplementedExplicitMembers( 311private static ImmutableArray<ISymbol> GetExplicitlyImplementableMembers(INamedTypeSymbol type, ISymbol within) 338private static ImmutableArray<(INamedTypeSymbol type, ImmutableArray<ISymbol> members)> GetAllUnimplementedMembers( 343Func<INamedTypeSymbol, ISymbol, ImmutableArray<ISymbol>> interfaceMemberGetter, 367var typesToImplement = GetTypesToImplement(classOrStructType, interfacesOrAbstractClasses, allowReimplementation, cancellationToken); 372private static ImmutableArray<INamedTypeSymbol> GetTypesToImplement( 383private static ImmutableArray<INamedTypeSymbol> GetAbstractClassesToImplement( 389private static ImmutableArray<INamedTypeSymbol> GetInterfacesToImplement( 404var alreadyImplementedInterfaces = baseType == null || allowReimplementation 413private static ImmutableArray<ISymbol> GetUnimplementedMembers( 418Func<INamedTypeSymbol, ISymbol, ImmutableArray<ISymbol>> interfaceMemberGetter, 528private static ImmutableArray<ISymbol> GetMembers(INamedTypeSymbol type, ISymbol within) 541public static ImmutableArray<ISymbol> GetOverridableMembers(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (12)
141public static ImmutableArray<ISymbol> ExplicitInterfaceImplementations(this ISymbol symbol) 144IEventSymbol @event => ImmutableArray<ISymbol>.CastUp(@event.ExplicitInterfaceImplementations), 145IMethodSymbol method => ImmutableArray<ISymbol>.CastUp(method.ExplicitInterfaceImplementations), 146IPropertySymbol property => ImmutableArray<ISymbol>.CastUp(property.ExplicitInterfaceImplementations), 150public static ImmutableArray<ISymbol> ExplicitOrImplicitInterfaceImplementations(this ISymbol symbol) 175public static ImmutableArray<ISymbol> ImplicitInterfaceImplementations(this ISymbol symbol) 423public static ImmutableArray<IParameterSymbol> GetParameters(this ISymbol? symbol) 431public static ImmutableArray<ITypeParameterSymbol> GetTypeParameters(this ISymbol? symbol) 439public static ImmutableArray<ITypeParameterSymbol> GetAllTypeParameters(this ISymbol? symbol) 452public static ImmutableArray<ITypeSymbol> GetTypeArguments(this ISymbol? symbol) 460public static ImmutableArray<ITypeSymbol> GetAllTypeArguments(this ISymbol symbol) 705var potentialGetAwaiters = semanticModel.LookupSymbols(position,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (6)
43public static ImmutableArray<INamedTypeSymbol> GetAllInterfacesIncludingThis(this ITypeSymbol type) 45var allInterfaces = type.AllInterfaces; 446public static ImmutableArray<T> GetAccessibleMembersInThisAndBaseTypes<T>(this ITypeSymbol? containingType, ISymbol within) where T : class, ISymbol 456public static ImmutableArray<T> GetAccessibleMembersInThisAndBaseTypes<T>(this ITypeSymbol? containingType, string memberName, ISymbol within) where T : class, ISymbol 593var allTypeArgs1 = n1.GetAllTypeArguments(); 594var allTypeArgs2 = n2.GetAllTypeArguments();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.SubstituteTypesVisitor.cs (1)
72var allTypeArguments = symbol.GetAllTypeArguments();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SignatureComparer.cs (4)
108ImmutableArray<IParameterSymbol> parameters1, 109ImmutableArray<IParameterSymbol> parameters2) 118ImmutableArray<IParameterSymbol> parameters1, 119ImmutableArray<IParameterSymbol> parameters2,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.cs (2)
43private readonly ImmutableArray<EquivalenceVisitor> _equivalenceVisitors; 44private readonly ImmutableArray<GetHashCodeVisitor> _getHashCodeVisitors;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (8)
76internal 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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (1)
109private static int CombineHashCodes<T>(ImmutableArray<T> array, int currentHash, Func<int, T, int> func)
Microsoft.CodeAnalysis.CodeStyle.Fixes (800)
Host\Mef\CodeStyleHostLanguageServices.cs (2)
31var assemblies = CreateAssemblies(languageName); 56private static ImmutableArray<Assembly> CreateAssemblies(string languageName)
src\0bf6ba47805c8821\AbstractMoveDeclarationNearReferenceService.cs (1)
177private static ImmutableArray<SyntaxTrivia> GetMergedTrivia(
src\5f6f2f95b47c3dc6\SemanticModelWorkspaceServiceFactory.SemanticModelWorkspaceService.cs (1)
140var linkedIds = document.GetLinkedDocumentIds();
src\939a5660f39ce290\AbstractUseConditionalExpressionForAssignmentCodeFixProvider.cs (2)
40public override ImmutableArray<string> FixableDiagnosticIds 222var declarators = declaration.Declarators;
src\a16f30e1d256badc\AbstractTypeInferenceService.AbstractTypeInferrer.cs (4)
40public ImmutableArray<TypeInferenceInfo> InferTypes(int position) 46public ImmutableArray<TypeInferenceInfo> InferTypes(SyntaxNode expression, bool filterUnusable = true) 73private ImmutableArray<TypeInferenceInfo> Filter(IEnumerable<TypeInferenceInfo> types, bool filterUnusable = true) 106var parameters = type.TypeArguments;
src\roslyn\src\Analyzers\Core\CodeFixes\AddAccessibilityModifiers\AbstractAddAccessibilityModifiersCodeFixProvider.cs (2)
21public sealed override ImmutableArray<string> FixableDiagnosticIds 40Document document, ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\Core\CodeFixes\AddAnonymousTypeMemberName\AbstractAddAnonymousTypeMemberNameCodeFixProvider.cs (1)
83Document document, ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\Core\CodeFixes\AddExplicitCast\AbstractAddExplicitCastCodeFixProvider.cs (7)
47protected ImmutableArray<(TExpressionSyntax node, ITypeSymbol type)> GetPotentialTargetTypes( 78var potentialConversionTypes = GetPotentialTargetTypes( 169private static ImmutableArray<(TExpressionSyntax, ITypeSymbol)> FilterValidPotentialConversionTypes( 196string argumentName, ImmutableArray<IParameterSymbol> parameters, ref int parameterIndex) 212ImmutableArray<Diagnostic> diagnostics, 217var spanNodes = diagnostics.SelectAsArray( 227var potentialConversionTypes = GetPotentialTargetTypes(
src\roslyn\src\Analyzers\Core\CodeFixes\AddExplicitCast\Fixer.cs (2)
38public ImmutableArray<(TExpressionSyntax, ITypeSymbol)> GetPotentialConversionTypes( 113ImmutableArray<IParameterSymbol> parameters,
src\roslyn\src\Analyzers\Core\CodeFixes\AddObsoleteAttribute\AbstractAddObsoleteAttributeCodeFixProvider.cs (1)
71Document document, ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\Core\CodeFixes\AddParameter\AbstractAddParameterCodeFixProvider.cs (17)
44protected abstract ImmutableArray<string> TooManyArgumentsDiagnosticIds { get; } 45protected abstract ImmutableArray<string> CannotConvertDiagnosticIds { get; } 83var candidates = fixData.MethodCandidates; 95var argumentInsertPositionInMethodCandidates = GetArgumentInsertPositionForMethodCandidates( 134var candidates = semanticModel.GetMemberGroup(expression, cancellationToken).OfType<IMethodSymbol>().ToImmutableArray(); 185var methodCandidates = type.InstanceConstructors; 193private static ImmutableArray<ArgumentInsertPositionData<TArgumentSyntax>> GetArgumentInsertPositionForMethodCandidates( 198ImmutableArray<IMethodSymbol> methodCandidates) 242ImmutableArray<ArgumentInsertPositionData<TArgumentSyntax>> methodsAndArgumentsToAdd) 244var codeFixData = PrepareCreationOfCodeActions(context.Document, arguments, methodsAndArgumentsToAdd); 249var fixes = codeFixData.Length <= 2 256ImmutableArray<CodeAction> NestByOverload() 293ImmutableArray<CodeAction> NestByCascading() 297var nonCascadingActions = codeFixData.SelectAsArray(data => 303var cascadingActions = codeFixData.SelectAsArray( 330private ImmutableArray<CodeFixData> PrepareCreationOfCodeActions( 333ImmutableArray<ArgumentInsertPositionData<TArgumentSyntax>> methodsAndArgumentsToAdd)
src\roslyn\src\Analyzers\Core\CodeFixes\AddParameter\AddParameterService.cs (2)
91var referencedSymbols = fixAllReferences 214private static async Task<ImmutableArray<IMethodSymbol>> FindMethodDeclarationReferencesAsync(
src\roslyn\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\roslyn\src\Analyzers\Core\CodeFixes\AddRequiredParentheses\AddRequiredParenthesesCodeFixProvider.cs (2)
23public override ImmutableArray<string> FixableDiagnosticIds 37Document document, ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\Core\CodeFixes\AliasAmbiguousType\AbstractAliasAmbiguousTypeCodeFixProvider.cs (4)
80var typeToNameSegments = new Dictionary<ITypeSymbol, ImmutableArray<string>>(); 84var t1NameSegments = GetNameSegments(t1); 85var t2NameSegments = GetNameSegments(t2); 106ImmutableArray<string> GetNameSegments(ITypeSymbol symbol)
src\roslyn\src\Analyzers\Core\CodeFixes\ConflictMarkerResolution\AbstractConflictMarkerCodeFixProvider.cs (3)
56public override ImmutableArray<string> FixableDiagnosticIds { get; } 393Document document, ImmutableArray<Diagnostic> diagnostics, 402var orderedDiagnostics = diagnostics.OrderBy(
src\roslyn\src\Analyzers\Core\CodeFixes\ConvertTypeOfToNameOf\AbstractConvertTypeOfToNameOfCodeFixProvider.cs (2)
24public sealed override ImmutableArray<string> FixableDiagnosticIds 34Document document, ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\Core\CodeFixes\DocumentationComments\AbstractAddDocCommentNodesCodeFixProvider.cs (2)
54protected abstract ImmutableArray<string> GetParameterNames(TMemberDeclarationSyntax method); 63var parameterNames = GetParameterNames(parentMethod);
src\roslyn\src\Analyzers\Core\CodeFixes\DocumentationComments\AbstractRemoveDocCommentNodeCodeFixProvider.cs (1)
23public abstract override ImmutableArray<string> FixableDiagnosticIds { get; }
src\roslyn\src\Analyzers\Core\CodeFixes\FileHeaders\AbstractFileHeaderCodeFixProvider.cs (1)
27public override ImmutableArray<string> FixableDiagnosticIds { get; }
src\roslyn\src\Analyzers\Core\CodeFixes\ForEachCast\AbstractForEachCastCodeFixProvider.cs (2)
24public sealed override ImmutableArray<string> FixableDiagnosticIds 39Document document, ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\Core\CodeFixes\Formatting\FormattingCodeFixProvider.cs (2)
28public sealed override ImmutableArray<string> FixableDiagnosticIds 86protected override async Task FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken)
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.cs (8)
34protected abstract bool TryInitializeImplicitObjectCreation(SemanticDocument document, SyntaxNode node, CancellationToken cancellationToken, out SyntaxToken token, out ImmutableArray<Argument<TExpressionSyntax>> arguments, [NotNullWhen(true)] out INamedTypeSymbol? typeToGenerateIn); 35protected abstract bool TryInitializeSimpleNameGenerationState(SemanticDocument document, SyntaxNode simpleName, CancellationToken cancellationToken, out SyntaxToken token, out ImmutableArray<Argument<TExpressionSyntax>> arguments, [NotNullWhen(true)] out INamedTypeSymbol? typeToGenerateIn); 36protected abstract bool TryInitializeConstructorInitializerGeneration(SemanticDocument document, SyntaxNode constructorInitializer, CancellationToken cancellationToken, out SyntaxToken token, out ImmutableArray<Argument<TExpressionSyntax>> arguments, [NotNullWhen(true)] out INamedTypeSymbol? typeToGenerateIn); 37protected abstract bool TryInitializeSimpleAttributeNameGenerationState(SemanticDocument document, SyntaxNode simpleName, CancellationToken cancellationToken, out SyntaxToken token, out ImmutableArray<Argument<TExpressionSyntax>> arguments, [NotNullWhen(true)] out INamedTypeSymbol? typeToGenerateIn); 80public async Task<ImmutableArray<CodeAction>> GenerateConstructorAsync(Document document, SyntaxNode node, CancellationToken cancellationToken) 170private ImmutableArray<ParameterName> GenerateParameterNames( 176var isFixed = reservedNames.Select(s => true).Concat( 179var parameterNames = reservedNames.Concat(
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.State.cs (32)
35private ImmutableArray<Argument<TExpressionSyntax>> _arguments; 40private ImmutableArray<RefKind> _parameterRefKinds; 41public ImmutableArray<ITypeSymbol> ParameterTypes; 48private ImmutableArray<IParameterSymbol> _parameters; 128var typeParametersNames = TypeToGenerateIn.GetAllTypeParameters().SelectAsArray(t => t.Name); 129var parameterNames = GetParameterNames(_arguments, typeParametersNames, cancellationToken); 136private ImmutableArray<ParameterName> GetParameterNames( 137ImmutableArray<Argument<TExpressionSyntax>> arguments, ImmutableArray<string> typeParametersNames, CancellationToken cancellationToken) 146var parameters = ParameterTypes.Zip(_parameterRefKinds, 148var expressions = _arguments.SelectAsArray(a => a.Expression); 160var remainingArguments = _arguments.Skip(argumentCount).ToImmutableArray(); 161var remainingParameterNames = _service.GenerateParameterNames( 172var remainingParameterTypes = ParameterTypes.Skip(argumentCount).ToImmutableArray(); 183ImmutableArray<IParameterSymbol> allParameters, 184ImmutableArray<TExpressionSyntax?> allExpressions, 192var parameters = allParameters[0..i]; 193var expressions = allExpressions[0..i]; 204ImmutableArray<IParameterSymbol> parameters, 205ImmutableArray<TExpressionSyntax?> expressions, 206ImmutableArray<IMethodSymbol> constructors, 278internal ImmutableArray<ITypeSymbol> GetParameterTypes(CancellationToken cancellationToken) 280var allTypeParameters = TypeToGenerateIn.GetAllTypeParameters(); 300out var token, out var arguments, out var typeToGenerateIn)) 318out var token, out var arguments, out var typeToGenerateIn)) 337out var token, out var arguments, out var typeToGenerateIn)) 431var delegatingArguments = this.GetRequiredLanguageService<SyntaxGenerator>(TypeToGenerateIn.Language).CreateArguments(_delegatedConstructor.Parameters); 433var newParameters = _delegatedConstructor.Parameters.Concat(_parameters); 458private async Task<(ImmutableArray<ISymbol>, ImmutableArray<SyntaxNode>)> GenerateMembersAndAssignmentsAsync( 463var members = withFields ? SyntaxGeneratorExtensions.CreateFieldsForParameters(_parameters, ParameterToNewFieldMap, IsContainedInUnsafeType) : 468var assignments = !withFields && !withProperties
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateConstructor\GenerateConstructorHelpers.cs (10)
28ImmutableArray<IParameterSymbol> parameters, 29ImmutableArray<TExpressionSyntax?> expressions, 84ImmutableArray<TExpressionSyntax?> expressions) 131(ImmutableArray<IParameterSymbol> parameters, 137ImmutableArray<Argument<TExpressionSyntax>> arguments, 138ImmutableArray<ITypeSymbol> parameterTypes, 139ImmutableArray<ParameterName> parameterNames, 147var rules = await document.Document.GetNamingRulesAsync(cancellationToken).ConfigureAwait(false); 153var unavailableMemberNames = GetUnavailableMemberNames(typeToGenerateIn).ToImmutableArray(); 278var membersArray = members.ToImmutableArray();
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateConstructor\IGenerateConstructorService.cs (1)
15Task<ImmutableArray<CodeAction>> GenerateConstructorAsync(Document document, SyntaxNode node, CancellationToken cancellationToken);
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateDefaultConstructors\AbstractGenerateDefaultConstructorCodeFixProvider.cs (1)
38var actions = await service.GenerateDefaultConstructorsAsync(
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateDefaultConstructors\AbstractGenerateDefaultConstructorsService.cs (1)
25public async Task<ImmutableArray<CodeAction>> GenerateDefaultConstructorsAsync(
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateDefaultConstructors\AbstractGenerateDefaultConstructorsService.State.cs (3)
21public ImmutableArray<IMethodSymbol> UnimplementedConstructors { get; private set; } 77var classConstructors = ClassType.InstanceConstructors; 119ImmutableArray<IMethodSymbol> classConstructors,
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateDefaultConstructors\GenerateDefaultConstructorsCodeAction.cs (3)
22ImmutableArray<IMethodSymbol> constructors) : CodeAction 24private readonly ImmutableArray<IMethodSymbol> _constructors = constructors; 48var baseConstructorArguments = baseConstructor.Parameters.Length != 0
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateDefaultConstructors\IGenerateDefaultConstructorsService.cs (1)
16Task<ImmutableArray<CodeAction>> GenerateDefaultConstructorsAsync(
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateEnumMember\AbstractGenerateEnumMemberService.cs (1)
25public async Task<ImmutableArray<CodeAction>> GenerateEnumMemberAsync(Document document, SyntaxNode node, CancellationToken cancellationToken)
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateEnumMember\AbstractGenerateEnumMemberService.State.cs (1)
58var existingMembers = TypeToGenerateIn.GetMembers(IdentifierToken.ValueText);
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateEnumMember\IGenerateEnumMemberService.cs (1)
15Task<ImmutableArray<CodeAction>> GenerateEnumMemberAsync(Document document, SyntaxNode node, CancellationToken cancellationToken);
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateMember\AbstractGenerateMemberCodeFixProvider.cs (2)
25protected abstract Task<ImmutableArray<CodeAction>> GetCodeActionsAsync(Document document, SyntaxNode node, CancellationToken cancellationToken); 45var codeActions = await GetCodeActionsAsync(context.Document, name, context.CancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateMember\AbstractGenerateMemberService.cs (1)
47var locations = typeToGenerateIn.Locations;
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateConversionService.cs (1)
27public async Task<ImmutableArray<CodeAction>> GenerateConversionAsync(
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateDeconstructMethodService.cs (2)
21public abstract ImmutableArray<IParameterSymbol> TryMakeParameters(SemanticModel semanticModel, SyntaxNode target, CancellationToken cancellationToken); 23public async Task<ImmutableArray<CodeAction>> GenerateDeconstructMethodAsync(
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateDeconstructMethodService.State.cs (1)
65var parameters = service.TryMakeParameters(semanticModel, targetVariables, cancellationToken);
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateMethodService.cs (1)
28public async Task<ImmutableArray<CodeAction>> GenerateMethodAsync(
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateMethodService.State.cs (3)
170var parameterNames = delegateInvokeMethod.ContainingType is { Name: nameof(Action) or nameof(Func<>), ContainingNamespace.Name: nameof(System) } 230private static ImmutableArray<string> GenerateParameterNamesBasedOnParameterTypes(ImmutableArray<IParameterSymbol> parameters)
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.AbstractInvocationInfo.cs (8)
22protected abstract ImmutableArray<ITypeParameterSymbol> GetCapturedTypeParameters(CancellationToken cancellationToken); 23protected abstract ImmutableArray<ITypeParameterSymbol> GenerateTypeParameters(CancellationToken cancellationToken); 30protected override ImmutableArray<ITypeParameterSymbol> DetermineTypeParametersWorker( 33var typeParameters = ComputeTypeParameters(cancellationToken); 37private ImmutableArray<ITypeParameterSymbol> ComputeTypeParameters( 44var capturedTypeParameters = GetCapturedTypeParameters(cancellationToken); 45var availableTypeParameters = State.TypeToGenerateIn.GetAllTypeParameters(); 46var result = capturedTypeParameters.Except<ITypeParameterSymbol>(availableTypeParameters, SymbolEqualityComparer.Default).ToImmutableArray();
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.cs (2)
38protected async ValueTask<ImmutableArray<CodeAction>> GetActionsAsync(Document document, State state, CancellationToken cancellationToken) 61var typeParameters = state.SignatureInfo.DetermineTypeParameters(cancellationToken);
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.MethodSignatureInfo.cs (8)
17ImmutableArray<string> parameterNames = default) : SignatureInfo(document, state) 20private readonly ImmutableArray<string> _parameterNames = parameterNames; 28protected override ImmutableArray<ITypeParameterSymbol> DetermineTypeParametersWorker(CancellationToken cancellationToken) 31protected override ImmutableArray<RefKind> DetermineParameterModifiers(CancellationToken cancellationToken) 34protected override ImmutableArray<bool> DetermineParameterOptionality(CancellationToken cancellationToken) 37protected override ImmutableArray<ITypeSymbol> DetermineParameterTypes(CancellationToken cancellationToken) 40protected override ImmutableArray<ParameterName> DetermineParameterNames(CancellationToken cancellationToken) 45protected override ImmutableArray<ITypeSymbol> DetermineTypeArguments(CancellationToken cancellationToken)
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.SignatureInfo.cs (20)
32private ImmutableArray<ITypeParameterSymbol> _typeParameters; 35public ImmutableArray<ITypeParameterSymbol> DetermineTypeParameters(CancellationToken cancellationToken) 42protected abstract ImmutableArray<ITypeParameterSymbol> DetermineTypeParametersWorker(CancellationToken cancellationToken); 56protected abstract ImmutableArray<ITypeSymbol> DetermineTypeArguments(CancellationToken cancellationToken); 58protected abstract ImmutableArray<RefKind> DetermineParameterModifiers(CancellationToken cancellationToken); 59protected abstract ImmutableArray<ITypeSymbol> DetermineParameterTypes(CancellationToken cancellationToken); 60protected abstract ImmutableArray<bool> DetermineParameterOptionality(CancellationToken cancellationToken); 61protected abstract ImmutableArray<ParameterName> DetermineParameterNames(CancellationToken cancellationToken); 94var parameters = await DetermineParametersAsync(cancellationToken).ConfigureAwait(false); 128var newTypeParameterNames = NameGenerator.EnsureUniqueness( 141var availableMethodTypeParameters = DetermineTypeParameters(cancellationToken); 142var availableTypeParameters = State.TypeToGenerateIn.GetAllTypeParameters(); 145var allTypeParameters = availableMethodTypeParameters.Concat(availableTypeParameters); 167var typeArguments = DetermineTypeArguments(cancellationToken); 168var typeParameters = DetermineTypeParameters(cancellationToken); 187private ImmutableArray<SyntaxNode> GenerateStatements( 198private async ValueTask<ImmutableArray<IParameterSymbol>> DetermineParametersAsync(CancellationToken cancellationToken) 200var modifiers = DetermineParameterModifiers(cancellationToken); 202var optionality = DetermineParameterOptionality(cancellationToken); 203var names = DetermineParameterNames(cancellationToken);
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\IGenerateConversionService.cs (1)
15Task<ImmutableArray<CodeAction>> GenerateConversionAsync(Document document, SyntaxNode node, CancellationToken cancellationToken);
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\IGenerateDeconstructMemberService.cs (1)
15Task<ImmutableArray<CodeAction>> GenerateDeconstructMethodAsync(
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\IGenerateParameterizedMemberService.cs (1)
15Task<ImmutableArray<CodeAction>> GenerateMethodAsync(Document document, SyntaxNode node, CancellationToken cancellationToken);
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.CodeAction.cs (1)
106private ImmutableArray<SyntaxNode> GenerateStatements()
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.cs (1)
32public async Task<ImmutableArray<CodeAction>> GenerateVariableAsync(
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.State.cs (2)
37public ImmutableArray<IParameterSymbol> Parameters { get; private set; } 478var availableTypeParameters = TypeToGenerateIn.GetAllTypeParameters();
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateVariable\IGenerateVariableService.cs (1)
15Task<ImmutableArray<CodeAction>> GenerateVariableAsync(Document document, SyntaxNode node, CancellationToken cancellationToken);
src\roslyn\src\Analyzers\Core\CodeFixes\ImplementAbstractClass\AbstractImplementAbstractClassCodeFixProvider.cs (1)
16public sealed override ImmutableArray<string> FixableDiagnosticIds { get; } = [diagnosticId];
src\roslyn\src\Analyzers\Core\CodeFixes\ImplementAbstractClass\ImplementAbstractClassData.cs (11)
29ImmutableArray<(INamedTypeSymbol type, ImmutableArray<ISymbol> members)> unimplementedMembers) 35private readonly ImmutableArray<(INamedTypeSymbol type, ImmutableArray<ISymbol> members)> _unimplementedMembers = unimplementedMembers; 60var unimplementedMembers = classType.GetAllUnimplementedMembers( 89var memberDefinitions = GenerateMembers(compilation, throughMember, _options.PropertyGenerationBehavior, cancellationToken); 123private ImmutableArray<ISymbol> GenerateMembers( 266public ImmutableArray<(ISymbol symbol, bool canDelegateAllMembers)> GetDelegatableMembers(CancellationToken cancellationToken) 268var members = ImplementHelpers.GetDelegatableMembers( 276var allUnimplementedMembers = _unimplementedMembers.SelectManyAsArray(t => t.members); 315var constraints = typeParameter.ConstraintTypes;
src\roslyn\src\Analyzers\Core\CodeFixes\ImplementInterface\AbstractImplementInterfaceCodeFixProvider.cs (1)
33var codeActions = await service.GetCodeActionsAsync(document, type, cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\Core\CodeFixes\ImplementInterface\AbstractImplementInterfaceService.cs (7)
40out ImmutableArray<INamedTypeSymbol> interfaceTypes); 49public ImmutableArray<SyntaxNode> GetInterfaceTypes(SyntaxNode typeDeclaration) 119public ImmutableArray<ISymbol> ImplementInterfaceMember( 132var implementedMembers = generator.GenerateMembers( 146public async Task<ImmutableArray<CodeAction>> GetCodeActionsAsync(Document document, SyntaxNode? interfaceType, CancellationToken cancellationToken) 203var delegatableMembers = GetDelegatableMembers(document, state, cancellationToken); 299private static ImmutableArray<ISymbol> GetDelegatableMembers(
src\roslyn\src\Analyzers\Core\CodeFixes\ImplementInterface\AbstractImplementInterfaceService.State.cs (9)
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; 50out var classOrStructDecl, out var classOrStructType, out var interfaceTypes))
src\roslyn\src\Analyzers\Core\CodeFixes\ImplementInterface\IImplementInterfaceService.cs (3)
32ImmutableArray<ISymbol> ImplementInterfaceMember( 40Task<ImmutableArray<CodeAction>> GetCodeActionsAsync( 43ImmutableArray<SyntaxNode> GetInterfaceTypes(SyntaxNode typeDeclaration);
src\roslyn\src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementHelpers.cs (10)
19public static ImmutableArray<ISymbol> GetDelegatableMembers( 27var fields = namedType.GetMembers() 31var properties = namedType.GetMembers() 35var parameters = GetNonCapturedPrimaryConstructorParameters(fields, properties); 39ImmutableArray<IParameterSymbol> GetNonCapturedPrimaryConstructorParameters( 40ImmutableArray<IFieldSymbol> fields, 41ImmutableArray<IPropertySymbol> properties) 62bool IsAssignedToFieldOrProperty(ImmutableArray<IFieldSymbol> fields, ImmutableArray<IPropertySymbol> properties, IParameterSymbol parameter) 234var unimplementedMembers = explicitly
src\roslyn\src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementInterfaceGenerator_DisposePattern.cs (5)
31private static readonly ImmutableArray<string> s_disposedValueNameParts = ["disposed", "value"]; 40ImmutableArray<(INamedTypeSymbol type, ImmutableArray<ISymbol> members)> unimplementedMembers, 111private (ImmutableArray<ISymbol>, SyntaxNode) CreateDisposableMethods( 215var explicitInterfaceImplementations = Explicitly || !Service.CanImplementImplicitly
src\roslyn\src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementInterfaceGenerator_Property.cs (4)
23private ImmutableArray<ISymbol> GeneratePropertyMembers( 57var parameterNames = NameGenerator.EnsureUniqueness( 147private ImmutableArray<SyntaxNode> GetSetAccessorStatements( 162private ImmutableArray<SyntaxNode> GetGetAccessorStatements(
src\roslyn\src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementInterfaceGenerator.cs (9)
58var unimplementedMembers = Explicitly 70ImmutableArray<(INamedTypeSymbol type, ImmutableArray<ISymbol> members)> unimplementedMembers, 71ImmutableArray<ISymbol> extraMembers, 79var memberDefinitions = GenerateMembers( 100private ImmutableArray<ISymbol> GenerateMembers( 103ImmutableArray<(INamedTypeSymbol type, ImmutableArray<ISymbol> members)> unimplementedMembers, 278public ImmutableArray<ISymbol> GenerateMembers(
src\roslyn\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\roslyn\src\Analyzers\Core\CodeFixes\ImplementType\ImplementTypeOptions.cs (1)
65public static readonly ImmutableArray<IOption2> EditorConfigOptions = [InsertionBehavior, PropertyGenerationBehavior];
src\roslyn\src\Analyzers\Core\CodeFixes\MakeFieldReadonly\AbstractMakeFieldReadonlyCodeFixProvider.cs (2)
25public override ImmutableArray<string> FixableDiagnosticIds 38ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\Core\CodeFixes\MakeMemberStatic\AbstractMakeMemberStaticCodeFixProvider.cs (1)
28protected sealed override async Task FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor,
src\roslyn\src\Analyzers\Core\CodeFixes\MakeMethodSynchronous\AbstractMakeMethodSynchronousCodeFixProvider.cs (1)
153Solution solution, ImmutableArray<ReferenceLocation> locations, CancellationToken cancellationToken)
src\roslyn\src\Analyzers\Core\CodeFixes\MakeTypeAbstract\AbstractMakeTypeAbstractCodeFixProvider.cs (1)
28protected sealed override async Task FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor,
src\roslyn\src\Analyzers\Core\CodeFixes\MakeTypePartial\AbstractMakeTypePartialCodeFixProvider.cs (1)
23protected override async Task FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken)
src\roslyn\src\Analyzers\Core\CodeFixes\MatchFolderAndNamespace\AbstractChangeNamespaceToMatchFolderCodeFixProvider.cs (3)
23public override ImmutableArray<string> FixableDiagnosticIds => [IDEDiagnosticIds.MatchFolderAndNamespaceDiagnosticId]; 40private static async Task<Solution> FixAllInDocumentAsync(Document document, ImmutableArray<Diagnostic> diagnostics, CancellationToken cancellationToken) 52var targetFolders = PathMetadataUtilities.BuildFoldersFromNamespace(targetNamespace, document.Project.DefaultNamespace);
src\roslyn\src\Analyzers\Core\CodeFixes\MatchFolderAndNamespace\AbstractChangeNamespaceToMatchFolderCodeFixProvider.CustomFixAllProvider.cs (5)
30var diagnostics = fixAllContext.Scope switch 51static async Task<ImmutableArray<Diagnostic>> GetSolutionDiagnosticsAsync(FixAllContext fixAllContext) 57var projectDiagnostics = await fixAllContext.GetAllDiagnosticsAsync(project).ConfigureAwait(false); 67ImmutableArray<Diagnostic> diagnostics, 77var documentIdToDiagnosticsMap = diagnostics
src\roslyn\src\Analyzers\Core\CodeFixes\Naming\FallbackNamingRules.cs (9)
18public static readonly ImmutableArray<NamingRule> Default = 49internal static readonly ImmutableArray<NamingRule> CompletionFallbackRules = [CreateCamelCaseFieldsAndParametersRule()]; 55internal static readonly ImmutableArray<NamingRule> CompletionSupplementaryRules = [CreateEndWithAsyncRule(), CreateGetAsyncRule(), CreateMethodStartsWithGetRule()]; 59var kinds = ImmutableArray.Create(new SymbolKindOrTypeKind(MethodKind.Ordinary)); 60var modifiers = ImmutableArray.Create(new ModifierKind(ModifierKindEnum.IsAsync)); 69var kinds = ImmutableArray.Create(new SymbolKindOrTypeKind(SymbolKind.Field), new SymbolKindOrTypeKind(SymbolKind.Parameter), new SymbolKindOrTypeKind(SymbolKind.Local)); 78var kinds = ImmutableArray.Create(new SymbolKindOrTypeKind(MethodKind.Ordinary)); 79var modifiers = ImmutableArray.Create(new ModifierKind(ModifierKindEnum.IsAsync)); 88var kinds = ImmutableArray.Create(new SymbolKindOrTypeKind(MethodKind.Ordinary));
src\roslyn\src\Analyzers\Core\CodeFixes\Naming\NamingExtensions.cs (2)
19var rules = await document.GetNamingRulesAsync(cancellationToken).ConfigureAwait(false); 34public static async Task<ImmutableArray<NamingRule>> GetNamingRulesAsync(
src\roslyn\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\roslyn\src\Analyzers\Core\CodeFixes\NewLines\ConsecutiveStatementPlacement\ConsecutiveStatementPlacementCodeFixProvider.cs (2)
26public override ImmutableArray<string> FixableDiagnosticIds 43public static async Task<Document> FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, CancellationToken cancellationToken)
src\roslyn\src\Analyzers\Core\CodeFixes\NewLines\MultipleBlankLines\AbstractMultipleBlankLinesCodeFixProvider.cs (2)
26public override ImmutableArray<string> FixableDiagnosticIds 44Document document, ImmutableArray<Diagnostic> diagnostics, CancellationToken cancellationToken)
src\roslyn\src\Analyzers\Core\CodeFixes\OrderModifiers\AbstractOrderModifiersCodeFixProvider.cs (3)
26protected abstract ImmutableArray<string> FixableCompilerErrorIds { get; } 29public sealed override ImmutableArray<string> FixableDiagnosticIds 44Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken)
src\roslyn\src\Analyzers\Core\CodeFixes\PopulateSwitch\AbstractPopulateSwitchCodeFixProvider.cs (4)
32public sealed override ImmutableArray<string> FixableDiagnosticIds { get; } = [diagnosticId]; 107Document document, ImmutableArray<Diagnostic> diagnostics, 117Document document, SyntaxEditor editor, ImmutableArray<Diagnostic> diagnostics, 213ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\Core\CodeFixes\PopulateSwitch\AbstractPopulateSwitchExpressionCodeFixProvider.cs (1)
54var arms = switchExpression.Arms;
src\roslyn\src\Analyzers\Core\CodeFixes\PopulateSwitch\AbstractPopulateSwitchStatementCodeFixProvider.cs (1)
85var cases = switchStatement.Cases;
src\roslyn\src\Analyzers\Core\CodeFixes\QualifyMemberAccess\AbstractQualifyMemberAccessCodeFixProvider.cs (2)
23public sealed override ImmutableArray<string> FixableDiagnosticIds 33Document document, ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\Core\CodeFixes\RemoveAsyncModifier\AbstractRemoveAsyncModifierCodeFixProvider.cs (1)
53Document document, ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\Core\CodeFixes\RemoveRedundantEquality\RemoveRedundantEqualityCodeFixProvider.cs (1)
24public override ImmutableArray<string> FixableDiagnosticIds => [IDEDiagnosticIds.RemoveRedundantEqualityDiagnosticId];
src\roslyn\src\Analyzers\Core\CodeFixes\RemoveUnnecessaryImports\AbstractRemoveUnnecessaryImportsCodeFixProvider.cs (2)
21public sealed override ImmutableArray<string> FixableDiagnosticIds 53Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken)
src\roslyn\src\Analyzers\Core\CodeFixes\RemoveUnnecessaryParentheses\AbstractRemoveUnnecessaryParenthesesCodeFixProvider.cs (3)
20public override ImmutableArray<string> FixableDiagnosticIds 32Document document, ImmutableArray<Diagnostic> diagnostics, 36var originalNodes = diagnostics.SelectAsArray(
src\roslyn\src\Analyzers\Core\CodeFixes\RemoveUnnecessarySuppressions\RemoveUnnecessaryAttributeSuppressionsCodeFixProvider.cs (2)
23public override ImmutableArray<string> FixableDiagnosticIds 39protected override async Task FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken)
src\roslyn\src\Analyzers\Core\CodeFixes\RemoveUnnecessarySuppressions\RemoveUnnecessaryPragmaSuppressionsCodeFixProvider.cs (2)
27public override ImmutableArray<string> FixableDiagnosticIds 45protected override async Task FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken)
src\roslyn\src\Analyzers\Core\CodeFixes\RemoveUnusedMembers\AbstractRemoveUnusedMembersCodeFixProvider.cs (2)
23public sealed override ImmutableArray<string> FixableDiagnosticIds 41ImmutableArray<Diagnostic> diagnostics,
src\roslyn\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\roslyn\src\Analyzers\Core\CodeFixes\SimplifyBooleanExpression\SimplifyConditionalCodeFixProvider.cs (2)
26public sealed override ImmutableArray<string> FixableDiagnosticIds { get; } = 36ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\Core\CodeFixes\SimplifyInterpolation\AbstractSimplifyInterpolationCodeFixProvider.cs (2)
30public override ImmutableArray<string> FixableDiagnosticIds { get; } = 46Document document, ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\Core\CodeFixes\SimplifyLinqExpression\SimplifyLinqExpressionCodeFixProvider.cs (2)
24public sealed override ImmutableArray<string> FixableDiagnosticIds 34ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\Core\CodeFixes\UnsealClass\AbstractUnsealClassCodeFixProvider.cs (1)
58Solution solution, ImmutableArray<SyntaxReference> declarationReferences, CancellationToken cancellationToken)
src\roslyn\src\Analyzers\Core\CodeFixes\UpdateLegacySuppressions\UpdateLegacySuppressionsCodeFixProvider.cs (2)
24public override ImmutableArray<string> FixableDiagnosticIds 40protected override async Task FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken)
src\roslyn\src\Analyzers\Core\CodeFixes\UpgradeProject\AbstractUpgradeProjectCodeFixProvider.cs (4)
21public abstract string SuggestedVersion(ImmutableArray<Diagnostic> diagnostics); 35var diagnostics = context.Diagnostics; 40protected ImmutableArray<CodeAction> GetUpgradeProjectCodeActions(CodeFixContext context) 49var upgradeableProjects = solution.Projects.Where(p => CanUpgrade(p, language, newVersion)).AsImmutable();
src\roslyn\src\Analyzers\Core\CodeFixes\UseAutoProperty\AbstractUseAutoPropertyCodeFixProvider.cs (8)
55public sealed override ImmutableArray<string> FixableDiagnosticIds 66TPropertyDeclaration property, ImmutableArray<ReferencedSymbol> fieldLocations, CancellationToken cancellationToken); 68protected abstract ImmutableArray<AbstractFormattingRule> GetFormattingRules( 134var fieldLocations = (await SymbolFinder.FindReferencesAsync( 315ImmutableArray<ReferencedSymbol> fieldLocations, 350var symbols = semanticModel.LookupSymbols(node.SpanStart, name: property.Name); 460var formattingRules = GetFormattingRules(document, finalPropertyDeclaration); 479ImmutableArray<ReferencedSymbol> referencedSymbols,
src\roslyn\src\Analyzers\Core\CodeFixes\UseCoalesceExpression\AbstractUseCoalesceExpressionForIfNullStatementCheckCodeFixProvider.cs (5)
21public override ImmutableArray<string> FixableDiagnosticIds 33Document document, ImmutableArray<Diagnostic> diagnostics, 53var ifStatementLeadingTrivia = GetLeadingComments(ifStatement); 54var whenTrueStatementLeadingTrivia = GetLeadingComments(whenTrueStatement); 72ImmutableArray<SyntaxTrivia> GetLeadingComments(SyntaxNode node)
src\roslyn\src\Analyzers\Core\CodeFixes\UseCoalesceExpression\UseCoalesceExpressionForNullableTernaryConditionalCheckCodeFixProvider.cs (2)
24public override ImmutableArray<string> FixableDiagnosticIds 36Document document, ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\Core\CodeFixes\UseCoalesceExpression\UseCoalesceExpressionForTernaryConditionalCheckCodeFixProvider.cs (2)
25public override ImmutableArray<string> FixableDiagnosticIds 37Document document, ImmutableArray<Diagnostic> diagnostics,
src\roslyn\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\roslyn\src\Analyzers\Core\CodeFixes\UseCompoundAssignment\AbstractUseCompoundAssignmentCodeFixProvider.cs (3)
23public override ImmutableArray<string> FixableDiagnosticIds { get; } = 32ImmutableArray<(TSyntaxKind exprKind, TSyntaxKind assignmentKind, TSyntaxKind tokenKind)> kinds) 50Document document, ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\Core\CodeFixes\UseConditionalExpression\AbstractUseConditionalExpressionCodeFixProvider.cs (2)
47Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, 71var rules = ImmutableArray.Create(GetMultiLineFormattingRule());
src\roslyn\src\Analyzers\Core\CodeFixes\UseConditionalExpression\ForReturn\AbstractUseConditionalExpressionForReturnCodeFixProvider.cs (1)
31public override ImmutableArray<string> FixableDiagnosticIds
src\roslyn\src\Analyzers\Core\CodeFixes\UseExplicitTupleName\UseExplicitTupleNameCodeFixProvider.cs (2)
23public override ImmutableArray<string> FixableDiagnosticIds { get; } 32Document document, ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\Core\CodeFixes\UseInferredMemberName\AbstractUseInferredMemberNameCodeFixProvider.cs (2)
18public override ImmutableArray<string> FixableDiagnosticIds { get; } 27Document document, ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\Core\CodeFixes\UseIsNullCheck\AbstractUseIsNullForReferenceEqualsCodeFixProvider.cs (2)
23public override ImmutableArray<string> FixableDiagnosticIds 46Document document, ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\Core\CodeFixes\UseNullPropagation\AbstractUseNullPropagationCodeFixProvider.cs (1)
62public override ImmutableArray<string> FixableDiagnosticIds
src\roslyn\src\Analyzers\Core\CodeFixes\UseObjectInitializer\AbstractUseObjectInitializerCodeFixProvider.cs (3)
58ImmutableArray<Match<TExpressionSyntax, TStatementSyntax, TMemberAccessExpressionSyntax, TAssignmentStatementSyntax>> matches); 60public override ImmutableArray<string> FixableDiagnosticIds 76var matches = analyzer.Analyze(semanticModel, syntaxFacts, objectCreation, cancellationToken);
src\roslyn\src\Analyzers\Core\CodeFixes\UseSystemHashCode\UseSystemHashCodeCodeFixProvider.cs (3)
25public override ImmutableArray<string> FixableDiagnosticIds { get; } 34Document document, ImmutableArray<Diagnostic> diagnostics, 73var components = generator.GetGetHashCodeComponents(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\CodeFixContextExtensions.cs (1)
27internal static void RegisterFixes(this CodeFixContext context, IEnumerable<CodeAction> actions, ImmutableArray<Diagnostic> diagnostics)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\FixAllContextHelper.cs (12)
22public static async Task<ImmutableDictionary<Document, ImmutableArray<Diagnostic>>> GetDocumentDiagnosticsToFixAsync( 27var allDiagnostics = ImmutableArray<Diagnostic>.Empty; 40var documentDiagnostics = await fixAllContext.GetDocumentDiagnosticsAsync(document).ConfigureAwait(false); 41return ImmutableDictionary<Document, ImmutableArray<Diagnostic>>.Empty.SetItem(document, documentDiagnostics); 72var projectsToFix = project.Solution.Projects 80allDiagnostics = await ProducerConsumer<ImmutableArray<Diagnostic>>.RunParallelAsync( 92await foreach (var diagnostics in results.ConfigureAwait(false)) 106return ImmutableDictionary<Document, ImmutableArray<Diagnostic>>.Empty; 132private static async Task<ImmutableDictionary<Document, ImmutableArray<Diagnostic>>> GetDocumentDiagnosticsToFixAsync( 134ImmutableArray<Diagnostic> diagnostics, 137var builder = ImmutableDictionary.CreateBuilder<Document, ImmutableArray<Diagnostic>>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\ForkingSyntaxEditorBasedCodeFixProvider.cs (1)
56ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\MultiProjectSafeFixAllProvider.cs (6)
40using var _ = PooledDictionary<DocumentId, ImmutableArray<DocumentId>>.GetInstance(out var documentToLinkedDocuments); 61var linkedDocuments = document.GetLinkedDocumentIds(); 81var diagnostics = documentToDiagnostics[document]; 92var linkedDiagnostics = documentToDiagnostics.TryGetValue(linkedDocument, out var result) ? result : []; 110static IEnumerable<TextSpan> GetDiagnosticSpans(ImmutableArray<Diagnostic> diagnostics)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\SyntaxEditorBasedCodeFixProvider.cs (5)
19private static readonly ImmutableArray<FixAllScope> s_defaultSupportedFixAllScopes = 41var filteredDiagnostics = diagnostics.Distinct() 65var diagnostics = ImmutableArray.Create(diagnostic ?? context.Diagnostics[0]); 70Document document, ImmutableArray<Diagnostic> diagnostics, CancellationToken cancellationToken) 98Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixesAndRefactorings\AbstractFixAllSpanMappingService.cs (3)
20protected abstract Task<ImmutableDictionary<Document, ImmutableArray<TextSpan>>> GetFixAllSpansIfWithinGlobalStatementAsync( 23public Task<ImmutableDictionary<Document, ImmutableArray<TextSpan>>> GetFixAllSpansAsync( 32private async Task<ImmutableDictionary<Document, ImmutableArray<TextSpan>>> GetFixAllSpansAsync(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixesAndRefactorings\IFixAllSpanMappingService.cs (1)
30Task<ImmutableDictionary<Document, ImmutableArray<TextSpan>>> GetFixAllSpansAsync(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService_FindDeclaration.cs (3)
30var declarations = _symbolDeclarationService.GetDeclarations(destination); 163var declarationReferences = _symbolDeclarationService.GetDeclarations(symbol); 164var declarations = declarationReferences.SelectAsArray(r => r.GetSyntax(cancellationToken));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationSymbolFactory.cs (72)
29ImmutableArray<AttributeData> attributes, Accessibility accessibility, 31ImmutableArray<IEventSymbol> explicitInterfaceImplementations, 44ImmutableArray<AttributeData> attributes, 49ImmutableArray<IPropertySymbol> explicitInterfaceImplementations, 51ImmutableArray<IParameterSymbol> parameters, 78ImmutableArray<AttributeData> attributes, Accessibility accessibility, DeclarationModifiers modifiers, 79ITypeSymbol type, RefKind refKind, ImmutableArray<IPropertySymbol> explicitInterfaceImplementations, string name, 80ImmutableArray<IParameterSymbol> parameters, IMethodSymbol? getMethod, IMethodSymbol? setMethod, 103ImmutableArray<AttributeData> attributes, 120ImmutableArray<AttributeData> attributes, 124ImmutableArray<IParameterSymbol> parameters, 125ImmutableArray<SyntaxNode> statements = default, 126ImmutableArray<SyntaxNode> baseConstructorArguments = default, 127ImmutableArray<SyntaxNode> thisConstructorArguments = default, 139ImmutableArray<AttributeData> attributes, string typeName, 140ImmutableArray<SyntaxNode> statements = default) 149ImmutableArray<AttributeData> attributes, 154ImmutableArray<IMethodSymbol> explicitInterfaceImplementations, 156ImmutableArray<ITypeParameterSymbol> typeParameters, 157ImmutableArray<IParameterSymbol> parameters, 158ImmutableArray<SyntaxNode> statements = default, 159ImmutableArray<SyntaxNode> handlesExpressions = default, 160ImmutableArray<AttributeData> returnTypeAttributes = default, 173ImmutableArray<AttributeData> attributes, Accessibility accessibility, DeclarationModifiers modifiers, 176ImmutableArray<IMethodSymbol> explicitInterfaceImplementations, 177string? name, ImmutableArray<ITypeParameterSymbol> typeParameters, 178ImmutableArray<IParameterSymbol> parameters, 179ImmutableArray<SyntaxNode> statements = default, 180ImmutableArray<SyntaxNode> handlesExpressions = default, 181ImmutableArray<AttributeData> returnTypeAttributes = default, 192ImmutableArray<AttributeData> attributes, 197ImmutableArray<IParameterSymbol> parameters, 198ImmutableArray<SyntaxNode> statements = default, 199ImmutableArray<AttributeData> returnTypeAttributes = default, 224ImmutableArray<SyntaxNode> statements = default, 225ImmutableArray<AttributeData> toTypeAttributes = default, 245ImmutableArray<AttributeData> attributes, 252ImmutableArray<SyntaxNode> statements = default, 253ImmutableArray<AttributeData> toTypeAttributes = default, 277ImmutableArray<AttributeData> attributes, RefKind refKind, bool isParams, ITypeSymbol type, string name, bool isOptional = false, bool hasDefaultValue = false, object? defaultValue = null) 287ImmutableArray<AttributeData>? attributes = null, 329ImmutableArray<AttributeData> attributes, 331ImmutableArray<ITypeSymbol> constraintTypes, 358ImmutableArray<AttributeData> attributes = default, 360ImmutableArray<IMethodSymbol> explicitInterfaceImplementations = default, 361ImmutableArray<SyntaxNode> statements = default) 383ImmutableArray<AttributeData> attributes, 385ImmutableArray<SyntaxNode> statements) 405ImmutableArray<TypedConstant> constructorArguments = default, 406ImmutableArray<KeyValuePair<string, TypedConstant>> namedArguments = default) 415ImmutableArray<AttributeData> attributes, 419ImmutableArray<ITypeParameterSymbol> typeParameters = default, 421ImmutableArray<INamedTypeSymbol> interfaces = default, 423ImmutableArray<ISymbol> members = default, 434ImmutableArray<AttributeData> attributes, 438ImmutableArray<ITypeParameterSymbol> typeParameters = default, 440ImmutableArray<INamedTypeSymbol> interfaces = default, 442ImmutableArray<ISymbol> members = default, 460ImmutableArray<AttributeData> attributes, 466ImmutableArray<ITypeParameterSymbol> typeParameters = default, 467ImmutableArray<IParameterSymbol> parameters = default, 512ImmutableArray<AttributeData> attributes = default, 515ImmutableArray<IMethodSymbol> explicitInterfaceImplementations = default, 517ImmutableArray<IParameterSymbol>? parameters = null, 518ImmutableArray<SyntaxNode> statements = default, 521Optional<ImmutableArray<AttributeData>> returnTypeAttributes = default) 542ImmutableArray<AttributeData> attributes = default, 543ImmutableArray<IParameterSymbol>? parameters = null, 546ImmutableArray<IPropertySymbol> explicitInterfaceImplementations = default, 570ImmutableArray<AttributeData> attributes = default, 573ImmutableArray<IEventSymbol> explicitInterfaceImplementations = default, 591ImmutableArray<AttributeData> attributes = default,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAbstractMethodSymbol.cs (14)
17private readonly ImmutableArray<AttributeData> _returnTypeAttributes; 19public virtual ImmutableArray<AttributeData> GetReturnTypeAttributes() 24ImmutableArray<AttributeData> attributes, 28ImmutableArray<AttributeData> returnTypeAttributes, 42public abstract ImmutableArray<ITypeSymbol> TypeArguments { get; } 43public abstract ImmutableArray<ITypeParameterSymbol> TypeParameters { get; } 44public abstract ImmutableArray<IParameterSymbol> Parameters { get; } 52public abstract ImmutableArray<IMethodSymbol> ExplicitInterfaceImplementations { get; } 59public ImmutableArray<NullableAnnotation> TypeArgumentNullableAnnotations => TypeArguments.SelectAsArray(a => a.NullableAnnotation); 90public ImmutableArray<CustomModifier> RefCustomModifiers 93public virtual ImmutableArray<CustomModifier> ReturnTypeCustomModifiers 110public ImmutableArray<INamedTypeSymbol> UnmanagedCallingConventionTypes => []; 115public IMethodSymbol Construct(ImmutableArray<ITypeSymbol> typeArguments, ImmutableArray<CodeAnalysis.NullableAnnotation> typeArgumentNullableAnnotations)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAbstractNamedTypeSymbol.cs (13)
18public ImmutableArray<IFieldSymbol> TupleElements { get; protected set; } 20internal readonly ImmutableArray<CodeGenerationAbstractNamedTypeSymbol> TypeMembers; 25ImmutableArray<AttributeData> attributes, 31ImmutableArray<CodeGenerationAbstractNamedTypeSymbol> typeMembers) 64public INamedTypeSymbol Construct(ImmutableArray<ITypeSymbol> typeArguments, ImmutableArray<NullableAnnotation> typeArgumentNullableAnnotations) 81public abstract ImmutableArray<IMethodSymbol> InstanceConstructors { get; } 82public abstract ImmutableArray<IMethodSymbol> StaticConstructors { get; } 83public abstract ImmutableArray<IMethodSymbol> Constructors { get; } 84public abstract ImmutableArray<ITypeSymbol> TypeArguments { get; } 85public abstract ImmutableArray<NullableAnnotation> TypeArgumentNullableAnnotations { get; } 87public ImmutableArray<CustomModifier> GetTypeArgumentCustomModifiers(int ordinal) 97public abstract ImmutableArray<ITypeParameterSymbol> TypeParameters { get; }
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationArrayTypeSymbol.cs (3)
24public ImmutableArray<int> Sizes 32public ImmutableArray<int> LowerBounds 57public ImmutableArray<CustomModifier> CustomModifiers
src\roslyn\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\roslyn\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\roslyn\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\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationConstructorSymbol.cs (2)
12ImmutableArray<AttributeData> attributes, 15ImmutableArray<IParameterSymbol> parameters) : CodeGenerationMethodSymbol(containingType,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationConversionSymbol.cs (2)
12ImmutableArray<AttributeData> attributes, 18ImmutableArray<AttributeData> toTypeAttributes,
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationDestructorSymbol.cs (1)
11ImmutableArray<AttributeData> attributes) : CodeGenerationMethodSymbol(containingType,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationEventSymbol.cs (4)
13ImmutableArray<AttributeData> attributes, 17ImmutableArray<IEventSymbol> explicitInterfaceImplementations, 26public ImmutableArray<IEventSymbol> ExplicitInterfaceImplementations { get; } = explicitInterfaceImplementations.NullToEmpty(); 66public static ImmutableArray<CustomModifier> TypeCustomModifiers => [];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationFieldSymbol.cs (3)
14ImmutableArray<AttributeData> attributes, 81public ImmutableArray<CustomModifier> RefCustomModifiers => []; 83public ImmutableArray<CustomModifier> CustomModifiers
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationMethodSymbol.cs (9)
17public override ImmutableArray<ITypeParameterSymbol> TypeParameters { get; } 18public override ImmutableArray<IParameterSymbol> Parameters { get; } 19public override ImmutableArray<IMethodSymbol> ExplicitInterfaceImplementations { get; } 24ImmutableArray<AttributeData> attributes, 29ImmutableArray<IMethodSymbol> explicitInterfaceImplementations, 31ImmutableArray<ITypeParameterSymbol> typeParameters, 32ImmutableArray<IParameterSymbol> parameters, 33ImmutableArray<AttributeData> returnTypeAttributes, 95public override ImmutableArray<ITypeSymbol> TypeArguments
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationNamedTypeSymbol.cs (18)
18private readonly ImmutableArray<ITypeParameterSymbol> _typeParameters; 19private readonly ImmutableArray<INamedTypeSymbol> _interfaces; 20private readonly ImmutableArray<ISymbol> _members; 25ImmutableArray<AttributeData> attributes, 31ImmutableArray<ITypeParameterSymbol> typeParameters, 33ImmutableArray<INamedTypeSymbol> interfaces, 36ImmutableArray<ISymbol> members, 37ImmutableArray<CodeGenerationAbstractNamedTypeSymbol> typeMembers, 114public static ImmutableArray<ISymbol> CandidateSymbols 122public override ImmutableArray<ITypeSymbol> TypeArguments 130public override ImmutableArray<NullableAnnotation> TypeArgumentNullableAnnotations 139public override ImmutableArray<ITypeParameterSymbol> TypeParameters 149public override ImmutableArray<INamedTypeSymbol> Interfaces 157public override ImmutableArray<ISymbol> GetMembers() 160public override ImmutableArray<INamedTypeSymbol> GetTypeMembers() 163public override ImmutableArray<IMethodSymbol> InstanceConstructors 172public override ImmutableArray<IMethodSymbol> StaticConstructors 181public override ImmutableArray<IMethodSymbol> Constructors
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationNamespaceOrTypeSymbol.cs (6)
15ImmutableArray<AttributeData> attributes, 23public virtual ImmutableArray<ISymbol> GetMembers() 26public ImmutableArray<ISymbol> GetMembers(string name) 29public virtual ImmutableArray<INamedTypeSymbol> GetTypeMembers() 32public ImmutableArray<INamedTypeSymbol> GetTypeMembers(string name) 35public ImmutableArray<INamedTypeSymbol> GetTypeMembers(string name, int arity)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationNamespaceSymbol.cs (1)
59public ImmutableArray<INamespaceSymbol> ConstituentNamespaces
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationOperatorSymbol.cs (3)
12ImmutableArray<AttributeData> attributes, 17ImmutableArray<IParameterSymbol> parameters, 18ImmutableArray<AttributeData> returnTypeAttributes,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationParameterSymbol.cs (3)
14ImmutableArray<AttributeData> attributes, 58public ImmutableArray<CustomModifier> RefCustomModifiers => []; 60public ImmutableArray<CustomModifier> CustomModifiers => [];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationPointerTypeSymbol.cs (1)
33public ImmutableArray<CustomModifier> CustomModifiers
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationPropertySymbol.cs (7)
14ImmutableArray<AttributeData> attributes, 19ImmutableArray<IPropertySymbol> explicitInterfaceImplementations, 22ImmutableArray<IParameterSymbol> parametersOpt, 30public ImmutableArray<IParameterSymbol> Parameters { get; } = parametersOpt.NullToEmpty(); 31public ImmutableArray<IPropertySymbol> ExplicitInterfaceImplementations { get; } = explicitInterfaceImplementations.NullToEmpty(); 80public ImmutableArray<CustomModifier> RefCustomModifiers => []; 82public ImmutableArray<CustomModifier> TypeCustomModifiers => [];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationSymbol.cs (10)
21private readonly ImmutableArray<AttributeData> _attributes; 32ImmutableArray<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\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationTypeSymbol.cs (8)
17ImmutableArray<AttributeData> attributes, 31public virtual ImmutableArray<INamedTypeSymbol> Interfaces 34public ImmutableArray<INamedTypeSymbol> AllInterfaces 53public static ImmutableArray<ITypeSymbol> TupleElementTypes => default; 55public static ImmutableArray<string> TupleElementNames => default; 64public ImmutableArray<SymbolDisplayPart> ToDisplayParts(NullableFlowState topLevelNullability, SymbolDisplayFormat format = null) 70public ImmutableArray<SymbolDisplayPart> ToMinimalDisplayParts(SemanticModel semanticModel, NullableFlowState topLevelNullability, int position, SymbolDisplayFormat format = null) 87public virtual ImmutableArray<ITypeSymbol> UnionCaseTypes => [];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeRefactorings\CodeRefactoringContextExtensions.cs (7)
21this CodeRefactoringContext context, ImmutableArray<TCodeAction> actions, TextSpan? applicableToSpan = null) 50public static Task<ImmutableArray<TSyntaxNode>> GetRelevantNodesAsync<TSyntaxNode>(this CodeRefactoringContext context) where TSyntaxNode : SyntaxNode 53public static async Task<ImmutableArray<TSyntaxNode>> GetRelevantNodesAsync<TSyntaxNode>(this CodeRefactoringContext context, bool allowEmptyNodes) where TSyntaxNode : SyntaxNode 75public static Task<ImmutableArray<TSyntaxNode>> GetRelevantNodesAsync<TSyntaxNode>( 81public static async Task<ImmutableArray<TSyntaxNode>> GetRelevantNodesAsync<TSyntaxNode>( 88public static ImmutableArray<TSyntaxNode> GetRelevantNodes<TSyntaxNode>( 92public static ImmutableArray<TSyntaxNode> GetRelevantNodes<TSyntaxNode>(
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\ImportAdderService.cs (3)
76ImmutableArray<INamespaceSymbol> namespaceSymbols, 96ImmutableArray<INamespaceSymbol> namespaceSymbols, 245var importsToAdd = importToSyntax.SelectAsArray(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\ContextQuery\SyntaxContext.cs (1)
98public ImmutableArray<ITypeSymbol> InferredTypes { get; } = document.GetRequiredLanguageService<ITypeInferenceService>().InferTypes(semanticModel, position, cancellationToken);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\DocumentExtensions.cs (3)
180var errors = await GetErrorsAsync(document, cancellationToken, ignoreErrorCode).ConfigureAwait(false); 184public static async Task<ImmutableArray<Diagnostic>> GetErrorsAsync(this Document document, CancellationToken cancellationToken, IList<string>? ignoreErrorCode = null) 202var errors = await newDocument.GetErrorsAsync(cancellationToken, ignoreErrorCodes).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IMethodSymbolExtensions.cs (10)
23var parameterNames = NameGenerator.EnsureUniqueness( 35var newTypeParameterNames = NameGenerator.EnsureUniqueness( 43public static IMethodSymbol RenameTypeParameters(this IMethodSymbol method, ImmutableArray<string> newNames) 51var updatedTypeParameters = RenameTypeParameters( 76this IMethodSymbol method, ImmutableArray<string> parameterNames) 78var parameterList = method.Parameters; 84var parameters = parameterList.RenameParameters(parameterNames); 99private static ImmutableArray<ITypeParameterSymbol> RenameTypeParameters( 100ImmutableArray<ITypeParameterSymbol> typeParameters, 101ImmutableArray<string> newNames,
src\roslyn\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\roslyn\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\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\StringBuilderExtensions.cs (1)
37public static StringBuilder AppendJoinedValues<T>(this StringBuilder builder, string separator, ImmutableArray<T> values, Action<T, StringBuilder> append)
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateEqualsMethod.cs (17)
30ImmutableArray<ISymbol> symbols, 37var statements = CreateEqualsMethodStatements( 48public static IMethodSymbol CreateEqualsMethod(this Compilation compilation, ImmutableArray<SyntaxNode> statements) 56ImmutableArray<SyntaxNode> statements) 80ImmutableArray<ISymbol> symbols, 84var statements = CreateIEquatableEqualsMethodStatements( 96var parameters = ImmutableArray.Create(CodeGenerationSymbolFactory.CreateParameterSymbol( 99attributes: ImmutableArray<AttributeData>.Empty)); 120private static ImmutableArray<SyntaxNode> CreateEqualsMethodStatements( 126ImmutableArray<ISymbol> members, 240ImmutableArray<ISymbol> members, SyntaxNode localNameExpression, 291private static ImmutableArray<SyntaxNode> CreateIEquatableEqualsMethodStatements( 297ImmutableArray<ISymbol> members) 476public static ImmutableArray<ISymbol> CreateMemberDelegatingConstructor( 482ImmutableArray<IParameterSymbol> parameters, 491var newMembers = generateProperties 494var statements = factory.CreateAssignmentStatements(
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions.cs (13)
48public static ImmutableArray<SyntaxNode> CreateThrowNotImplementedStatementBlock( 52public static ImmutableArray<SyntaxNode> CreateArguments( 54ImmutableArray<IParameterSymbol> parameters) 183public static ImmutableArray<SyntaxNode> GetGetAccessorStatements( 201var arguments = generator.CreateArguments(property.Parameters); 222public static ImmutableArray<SyntaxNode> GetSetAccessorStatements( 240var arguments = generator.CreateArguments(property.Parameters); 283public static ImmutableArray<ISymbol> CreateFieldsForParameters( 284ImmutableArray<IParameterSymbol> parameters, ImmutableDictionary<string, string>? parameterToNewFieldMap, bool isContainedInUnsafeType) 305public static ImmutableArray<ISymbol> CreatePropertiesForParameters( 306ImmutableArray<IParameterSymbol> parameters, ImmutableDictionary<string, string>? parameterToNewPropertyMap, bool isContainedInUnsafeType) 335public static ImmutableArray<SyntaxNode> CreateAssignmentStatements( 339ImmutableArray<IParameterSymbol> parameters,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Formatting\FormatterShared.cs (4)
24public async Task<Document> FormatAsync(Document document, SyntaxAnnotation annotation, SyntaxFormattingOptions options, ImmutableArray<AbstractFormattingRule> rules, CancellationToken cancellationToken) 30public SyntaxNode Format(SyntaxNode node, SyntaxAnnotation annotation, SyntaxFormattingOptions options, ImmutableArray<AbstractFormattingRule> rules, CancellationToken cancellationToken) 33public SyntaxNode Format(SyntaxNode node, IEnumerable<TextSpan>? spans, SyntaxFormattingOptions options, ImmutableArray<AbstractFormattingRule> rules, CancellationToken cancellationToken) 36public IFormattingResult GetFormattingResult(SyntaxNode node, IEnumerable<TextSpan>? spans, SyntaxFormattingOptions options, ImmutableArray<AbstractFormattingRule> rules, CancellationToken cancellationToken)
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Helpers\MefHostServicesHelpers.cs (2)
16public static ImmutableArray<Assembly> LoadNearbyAssemblies(ImmutableArray<string> assemblyNames)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Indentation\AbstractIndentationService.cs (1)
52var formattingRules = ImmutableArray.Create(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\AddImports\AbstractAddImportsService.cs (9)
26protected abstract ImmutableArray<SyntaxNode> GetGlobalImports(SemanticModel semanticModel, SyntaxNode? contextLocation, SyntaxGenerator generator, CancellationToken cancellationToken); 57var globalImports = GetGlobalImports(semanticModel, contextLocation, generator, cancellationToken); 58var containers = GetAllContainers(root, contextLocation); 62private static ImmutableArray<SyntaxNode> GetAllContainers(SyntaxNode root, SyntaxNode? contextLocation) 71SyntaxNode import, ImmutableArray<SyntaxNode> containers, ImmutableArray<SyntaxNode> globalImports) 137var globalImports = GetGlobalImports(semanticModel, contextLocation, generator, cancellationToken); 138var containers = GetAllContainers(root, contextLocation); 165var contextSpine = applicableContainer.GetAncestorsOrThis<SyntaxNode>().ToImmutableArray();
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\SemanticsFactsService\AbstractSemanticFactsService.cs (4)
219public ImmutableArray<IMethodSymbol> GetDeconstructionAssignmentMethods(SemanticModel semanticModel, SyntaxNode node) 222public ImmutableArray<IMethodSymbol> GetDeconstructionForEachMethods(SemanticModel semanticModel, SyntaxNode node) 243public ImmutableArray<ISymbol> GetBestOrAllSymbols(SemanticModel semanticModel, SyntaxNode? node, SyntaxToken token, CancellationToken cancellationToken) 249public ImmutableArray<IMethodSymbol> GetLocalFunctionSymbols(Compilation compilation, ISymbol symbol, CancellationToken cancellationToken)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\SymbolDeclarationService\ISymbolDeclarationService.cs (1)
17ImmutableArray<SyntaxReference> GetDeclarations(ISymbol symbol);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\SyntaxFactsService\ISyntaxFactsService.cs (1)
18Task<ImmutableArray<SyntaxNode>> GetSelectedFieldsAndPropertiesAsync(SyntaxTree syntaxTree, TextSpan textSpan, bool allowPartialSelection, CancellationToken cancellationToken);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\TypeInferenceService\AbstractTypeInferenceService.cs (15)
15private static ImmutableArray<ITypeSymbol> InferTypeBasedOnNameIfEmpty( 16SemanticModel semanticModel, ImmutableArray<ITypeSymbol> result, string? nameOpt) 26private static ImmutableArray<TypeInferenceInfo> InferTypeBasedOnNameIfEmpty( 27SemanticModel semanticModel, ImmutableArray<TypeInferenceInfo> result, string? nameOpt) 31var types = InferTypeBasedOnName(semanticModel, nameOpt); 38private static readonly ImmutableArray<string> s_booleanPrefixes = 41private static ImmutableArray<ITypeSymbol> InferTypeBasedOnName( 79public ImmutableArray<ITypeSymbol> InferTypes( 83var result = CreateTypeInferrer(semanticModel, cancellationToken) 90public ImmutableArray<ITypeSymbol> InferTypes( 94var result = CreateTypeInferrer(semanticModel, cancellationToken) 101public ImmutableArray<TypeInferenceInfo> GetTypeInferenceInfo( 105var result = CreateTypeInferrer(semanticModel, cancellationToken).InferTypes(position); 109public ImmutableArray<TypeInferenceInfo> GetTypeInferenceInfo( 113var result = CreateTypeInferrer(semanticModel, cancellationToken).InferTypes(expression);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\TypeInferenceService\ITypeInferenceService.cs (4)
27ImmutableArray<ITypeSymbol> InferTypes(SemanticModel semanticModel, SyntaxNode expression, string? nameOpt, CancellationToken cancellationToken); 28ImmutableArray<ITypeSymbol> InferTypes(SemanticModel semanticModel, int position, string? nameOpt, CancellationToken cancellationToken); 30ImmutableArray<TypeInferenceInfo> GetTypeInferenceInfo(SemanticModel semanticModel, int position, string? nameOpt, CancellationToken cancellationToken); 31ImmutableArray<TypeInferenceInfo> GetTypeInferenceInfo(SemanticModel semanticModel, SyntaxNode expression, string? nameOpt, CancellationToken cancellationToken);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Options\MemberDisplayOptions.cs (1)
39public static readonly ImmutableArray<IOption2> EditorConfigOptions = [HideAdvancedMembers];
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\ISimplificationService.cs (2)
32ImmutableArray<TextSpan> spans, 34ImmutableArray<AbstractReducer> reducers = default,
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\LayeredServiceUtilities.cs (1)
19private static readonly ImmutableArray<string> s_orderedProductLayers = [ServiceLayer.Host, ServiceLayer.Editor, ServiceLayer.Desktop, ServiceLayer.Default];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefLanguageServices.cs (4)
15[assembly: DebuggerTypeProxy(typeof(MefLanguageServices.LazyServiceMetadataDebuggerProxy), Target = typeof(ImmutableArray<Lazy<ILanguageService, WorkspaceServiceMetadata>>))] 23private readonly ImmutableArray<(Lazy<ILanguageService, LanguageServiceMetadata> lazyService, bool usesFactory)> _services; 54ImmutableArray<IDisposable> disposableServices; 134internal sealed class LazyServiceMetadataDebuggerProxy(ImmutableArray<Lazy<ILanguageService, LanguageServiceMetadata>> services)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefWorkspaceServices.cs (9)
16[assembly: DebuggerTypeProxy(typeof(MefWorkspaceServices.LazyServiceMetadataDebuggerProxy), Target = typeof(ImmutableArray<Lazy<IWorkspaceService, WorkspaceServiceMetadata>>))] 24private readonly ImmutableArray<(Lazy<IWorkspaceService, WorkspaceServiceMetadata> lazyService, bool usesFactory)> _services; 37private ImmutableArray<string> _languages; 76ImmutableArray<IDisposable> disposableServices; 148private ImmutableArray<string> ComputeSupportedLanguages() 150var localLanguages = _languages; 153var list = HostExportProvider.GetExports<ILanguageService, LanguageServiceMetadata>().Select(lz => lz.Metadata.Language).Concat( 167internal ImmutableArray<string> SupportedLanguagesArray => ComputeSupportedLanguages(); 203internal sealed class LazyServiceMetadataDebuggerProxy(ImmutableArray<Lazy<IWorkspaceService, WorkspaceServiceMetadata>> services)
Microsoft.CodeAnalysis.CSharp (7685)
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, 261ImmutableArray<string?> boundConstructorArgumentNamesOpt = analyzedArguments.ConstructorArguments.GetNames(); 266ImmutableArray<BoundAssignmentOperator> boundNamedArguments = analyzedArguments.NamedArguments?.ToImmutableAndFree() ?? ImmutableArray<BoundAssignmentOperator>.Empty; 306var arguments = boundAttribute.ConstructorArguments; 307var constructorArgsArray = visitor.VisitArguments(arguments, diagnostics, ref hasErrors); 308var namedArguments = visitor.VisitNamedArguments(boundAttribute.NamedArguments, diagnostics, ref hasErrors); 312ImmutableArray<int> argsToParamsOpt = boundAttribute.ConstructorArgumentsToParamsOpt; 313ImmutableArray<TypedConstant> rewrittenArguments; 346ImmutableArray<int> makeSourceIndices() 398private void ValidateTypeForAttributeParameters(ImmutableArray<ParameterSymbol> parameters, CSharpSyntaxNode syntax, BindingDiagnosticBag diagnostics, ref bool hasErrors) 427ImmutableArray<string> conditionalSymbols = attributeType.GetAppliedConditionalSymbols(); 704private ImmutableArray<TypedConstant> GetRewrittenAttributeConstructorArguments( 706ImmutableArray<TypedConstant> constructorArgsArray, 708ImmutableArray<int> argumentsToParams, 718ImmutableArray<ParameterSymbol> parameters = attributeConstructor.Parameters; 769public ImmutableArray<TypedConstant> VisitArguments(ImmutableArray<BoundExpression> arguments, BindingDiagnosticBag diagnostics, ref bool attrHasErrors, bool parentHasErrors = false) 771var validatedArguments = ImmutableArray<TypedConstant>.Empty; 790public ImmutableArray<KeyValuePair<string, TypedConstant>> VisitNamedArguments(ImmutableArray<BoundAssignmentOperator> arguments, BindingDiagnosticBag diagnostics, ref bool attrHasErrors) 810return ImmutableArray<KeyValuePair<string, TypedConstant>>.Empty; 886var elements = collection.Elements; 981ImmutableArray<BoundExpression> bounds = node.Bounds; 992ImmutableArray<TypedConstant> initializer; 997initializer = ImmutableArray<TypedConstant>.Empty; 1003initializer = ImmutableArray<TypedConstant>.Empty; 1021object? simpleValue = null, ImmutableArray<TypedConstant> arrayValue = default(ImmutableArray<TypedConstant>))
Binder\Binder_Await.cs (4)
364var awaitMembers = asyncHelpersType.GetMembers("Await"); 601getAwaiterCall = MakeInvocationExpression(node, expression, WellKnownMemberNames.GetAwaiter, ImmutableArray<BoundExpression>.Empty, diagnostics); 642var qualified = BindInstanceMemberAccess(node, node, receiver, name, 0, default(SeparatedSyntaxList<TypeSyntax>), default(ImmutableArray<TypeWithAnnotations>), invoked: false, indexed: false, diagnostics); 715getAwaiterGetResultCall = MakeInvocationExpression(node, awaiterExpression, WellKnownMemberNames.GetResult, ImmutableArray<BoundExpression>.Empty, diagnostics);
Binder\Binder_Constraints.cs (6)
24internal ImmutableArray<TypeParameterConstraintClause> BindTypeParameterConstraintClauses( 26ImmutableArray<TypeParameterSymbol> typeParameters, 348return (TypeParameterConstraintClause.Create(constraints, constraintTypes?.ToImmutableAndFree() ?? ImmutableArray<TypeWithAnnotations>.Empty), syntaxBuilder); 365internal ImmutableArray<TypeParameterConstraintClause> GetDefaultTypeParameterConstraintClauses(TypeParameterListSyntax typeParameterList) 386ImmutableArray<TypeParameterSymbol> typeParameters, 410var constraintTypes = constraintClause.ConstraintTypes;
Binder\Binder_Conversions.cs (52)
434ImmutableArray<TypeWithAnnotations> sourceTypes; 435ImmutableArray<TypeWithAnnotations> destTypes; 441var elementConversions = conversion.UnderlyingConversions; 765var members = type.GetMembers(name); 789ImmutableArray<BoundExpression> parts = BindInterpolatedStringPartsForFactory(unconvertedSource, diagnostics, out bool haveErrors); 916CollectionExpressionTypeKind collectionTypeKind, ImmutableArray<BoundNode> elements, BoundObjectOrCollectionValuePlaceholder? placeholder = null, BoundExpression? collectionCreation = null, MethodSymbol? collectionBuilderMethod = null, BoundCollectionBuilderElementsPlaceholder? collectionBuilderElementsPlaceholder = null) 1004var elements = BindElements(elementType); 1052var elements = _node.Elements; 1152private readonly ImmutableArray<BoundNode> BindElements(TypeSymbol elementType) 1154var elements = _node.Elements; 1157var elementConversions = _conversion.UnderlyingConversions; 1219ImmutableArray<BoundNode> elements) 1246private readonly BoundCollectionExpression? TryConvertCollectionExpressionArrayInterfaceType(ImmutableArray<BoundNode> elements) 1306var candidateConstructors = candidateConstructorsBuilder.ToImmutableAndFree(); 1340private readonly BoundCollectionExpression? TryConvertCollectionExpressionBuilderType(ImmutableArray<BoundNode> elements) 1358var collectionBuilderMethods = @this._binder.GetCollectionBuilderMethods(@this._node.Syntax, namedType, @this._diagnostics, forParams: false); 1438var arguments = projectionCall.Arguments; 1439var argumentNames = projectionCall.ArgumentNamesOpt; 1440var argumentRefKinds = projectionCall.ArgumentRefKindsOpt; 1449var argsToParams = projectionCall.ArgsToParamsOpt; 1496internal ImmutableArray<MethodSymbol> GetCollectionBuilderMethods( 1510var collectionBuilderMethods = collectMethods( 1522ImmutableArray<MethodSymbol> collectMethods( 1540var allTypeArguments = targetType.GetAllTypeArgumentsNoUseSiteDiagnostics(); 1587var allTypeParameters = TypeMap.TypeParametersAsTypeSymbolsWithAnnotations(targetType.OriginalDefinition.GetAllTypeParameters()); 1709var candidateConstructors = GetAccessibleConstructorsForOverloadResolution( 1711out var allInstanceConstructors, ref useSiteInfo); 1833internal bool HasCollectionExpressionApplicableAddMethod(SyntaxNode syntax, TypeSymbol targetType, out ImmutableArray<MethodSymbol> addMethods, BindingDiagnosticBag diagnostics) 1878out ImmutableArray<MethodSymbol> addMethods) 1896out ImmutableArray<MethodSymbol> addMethods) 1901typeArgumentsWithAnnotations: default(ImmutableArray<TypeWithAnnotations>), 1937out ImmutableArray<MethodSymbol> addMethods) 1952out ImmutableArray<MethodSymbol> addMethods) 2005var finalApplicableCandidates = addMethodBinder.GetCandidatesPassingFinalValidation(syntax, resolution.OverloadResolutionResult, 2057static ImmutableArray<MethodSymbol> filterOutBadGenericMethods( 2059ImmutableArray<MemberResolutionResult<MethodSymbol>> finalApplicableCandidates, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2082var typeParameters = member.TypeParameters; 2121parameterTypes: out ImmutableArray<TypeWithAnnotations> parameterTypes, 2122parameterRefKinds: out ImmutableArray<RefKind> parameterRefKinds); 2315var withArguments = node.WithElement?.Arguments ?? []; 2321var naturalWithArguments = withArgumentsBuilder.ToImmutableAndFree(); 2384var elements = node.Elements; 2458ImmutableArray<Conversion> underlyingConversions = conversion.UnderlyingConversions; 2496ImmutableArray<Conversion> underlyingConversions = conversion.UnderlyingConversions; 2512var newSwitchArms = builder.ToImmutableAndFree(); 2777var candidateConstructors = ImmutableArray.Create(analysis.Operator); 3006var delegateParameters = delegateType.DelegateParameters(); 3178var arguments = sourceTuple.Arguments; 3181var targetElementTypes = targetType.TupleElementTypesWithAnnotations; 3183var underlyingConversions = conversionWithoutNullable.UnderlyingConversions; 3532var delegateOrFuncPtrParameters = delegateOrFuncPtrMethod.Parameters; 3533var methodParameters = method.Parameters;
Binder\Binder_Crefs.cs (54)
19internal ImmutableArray<Symbol> BindCref(CrefSyntax syntax, out Symbol? ambiguityWinner, BindingDiagnosticBag diagnostics) 21ImmutableArray<Symbol> symbols = BindCrefInternal(syntax, out ambiguityWinner, diagnostics); 27private ImmutableArray<Symbol> BindCrefInternal(CrefSyntax syntax, out Symbol? ambiguityWinner, BindingDiagnosticBag diagnostics) 46private ImmutableArray<Symbol> BindTypeCref(TypeCrefSyntax syntax, out Symbol? ambiguityWinner, BindingDiagnosticBag diagnostics) 65private ImmutableArray<Symbol> BindQualifiedCref(QualifiedCrefSyntax syntax, out Symbol? ambiguityWinner, BindingDiagnosticBag diagnostics) 101private ImmutableArray<Symbol> BindMemberCref(MemberCrefSyntax syntax, NamespaceOrTypeSymbol? containerOpt, out Symbol? ambiguityWinner, BindingDiagnosticBag diagnostics) 112return ImmutableArray<Symbol>.Empty; 115ImmutableArray<Symbol> result; 147private ImmutableArray<Symbol> BindNameMemberCref(NameMemberCrefSyntax syntax, NamespaceOrTypeSymbol? containerOpt, out Symbol? ambiguityWinner, BindingDiagnosticBag diagnostics) 177return ImmutableArray<Symbol>.Empty; 180ImmutableArray<Symbol> sortedSymbols = ComputeSortedCrefMembers(syntax, containerOpt, memberName, memberNameText, arity, syntax.Parameters != null, diagnostics); 185return ImmutableArray<Symbol>.Empty; 198private ImmutableArray<Symbol> BindIndexerMemberCref(IndexerMemberCrefSyntax syntax, NamespaceOrTypeSymbol? containerOpt, out Symbol? ambiguityWinner, BindingDiagnosticBag diagnostics) 202ImmutableArray<Symbol> sortedSymbols = ComputeSortedCrefMembers(syntax, containerOpt, WellKnownMemberNames.Indexer, memberNameText: WellKnownMemberNames.Indexer, arity, syntax.Parameters != null, diagnostics); 207return ImmutableArray<Symbol>.Empty; 224private ImmutableArray<Symbol> BindExtensionMemberCref(ExtensionMemberCrefSyntax syntax, NamespaceOrTypeSymbol? containerOpt, out Symbol? ambiguityWinner, BindingDiagnosticBag diagnostics) 255return ImmutableArray<Symbol>.Empty; 260ImmutableArray<Symbol> sortedSymbols = computeSortedAndFilteredCrefExtensionMembers(containerOpt, memberName, extensionArity, arity, extensionTypeArguments, diagnostics, syntax); 272ImmutableArray<Symbol> computeSortedAndFilteredCrefExtensionMembers(NamespaceOrTypeSymbol? containerOpt, string name, int extensionArity, int arity, TypeArgumentListSyntax? extensionTypeArguments, BindingDiagnosticBag diagnostics, ExtensionMemberCrefSyntax syntax) 277ImmutableArray<ParameterSymbol> extensionParameterSymbols = BindCrefParameters(syntax.Parameters, diagnostics); 331var candidates = constructedNested.GetMembers(name); 361return ImmutableArray<Symbol>.Empty; 373ImmutableArray<NamedTypeSymbol> candidateTypes(NamespaceOrTypeSymbol? containerOpt) 394private ImmutableArray<Symbol> BindOperatorMemberCref(OperatorMemberCrefSyntax syntax, NamespaceOrTypeSymbol? containerOpt, out Symbol? ambiguityWinner, BindingDiagnosticBag diagnostics) 403return ImmutableArray<Symbol>.Empty; 406ImmutableArray<Symbol> sortedSymbols = ComputeSortedCrefMembers(syntax, containerOpt, memberName, memberNameText: memberName, arity, syntax.Parameters != null, diagnostics); 411return ImmutableArray<Symbol>.Empty; 469private ImmutableArray<Symbol> BindConversionOperatorMemberCref(ConversionOperatorMemberCrefSyntax syntax, NamespaceOrTypeSymbol? containerOpt, out Symbol? ambiguityWinner, BindingDiagnosticBag diagnostics) 482return ImmutableArray<Symbol>.Empty; 496ImmutableArray<Symbol> sortedSymbols = ComputeSortedCrefMembers(syntax, containerOpt, memberName, memberNameText: memberName, arity, syntax.Parameters != null, diagnostics); 501return ImmutableArray<Symbol>.Empty; 513return ImmutableArray<Symbol>.Empty; 534private ImmutableArray<Symbol> ComputeSortedCrefMembers(CSharpSyntaxNode syntax, NamespaceOrTypeSymbol? containerOpt, string memberName, string memberNameText, int arity, bool hasParameterList, BindingDiagnosticBag diagnostics) 537var result = ComputeSortedCrefMembers(containerOpt, memberName, memberNameText, arity, hasParameterList, syntax, diagnostics, ref useSiteInfo); 542private ImmutableArray<Symbol> ComputeSortedCrefMembers(NamespaceOrTypeSymbol? containerOpt, string memberName, string memberNameText, int arity, bool hasParameterList, CSharpSyntaxNode syntax, 647ImmutableArray<MethodSymbol> instanceConstructors = constructorType.InstanceConstructors; 652return ImmutableArray<Symbol>.Empty; 660return ImmutableArray<Symbol>.Empty; 681private ImmutableArray<Symbol> ProcessCrefMemberLookupResults( 682ImmutableArray<Symbol> symbols, 700ImmutableArray<ParameterSymbol> parameterSymbols = BindCrefParameters(parameterListSyntax, diagnostics); 701ImmutableArray<Symbol> results = PerformCrefOverloadResolution(candidates, parameterSymbols, arity, memberSyntax, out ambiguityWinner, diagnostics); 832private ImmutableArray<Symbol> ProcessParameterlessCrefMemberLookupResults( 833ImmutableArray<Symbol> symbols, 939private void GetCrefOverloadResolutionCandidates(ImmutableArray<Symbol> symbols, int arity, TypeArgumentListSyntax? typeArgumentListSyntax, ArrayBuilder<Symbol> candidates) 965private static ImmutableArray<Symbol> PerformCrefOverloadResolution(ArrayBuilder<Symbol> candidates, ImmutableArray<ParameterSymbol> parameterSymbols, int arity, MemberCrefSyntax memberSyntax, out Symbol? ambiguityWinner, BindingDiagnosticBag diagnostics) 1005refCustomModifiers: ImmutableArray<CustomModifier>.Empty, 1006explicitInterfaceImplementations: ImmutableArray<MethodSymbol>.Empty); 1020refCustomModifiers: ImmutableArray<CustomModifier>.Empty, 1022explicitInterfaceImplementations: ImmutableArray<PropertySymbol>.Empty); 1068return ImmutableArray<Symbol>.Empty; 1136private ImmutableArray<ParameterSymbol> BindCrefParameters(BaseCrefParameterListSyntax parameterListSyntax, BindingDiagnosticBag diagnostics) 1152parameterBuilder.Add(new SignatureOnlyParameterSymbol(TypeWithAnnotations.Create(type), ImmutableArray<CustomModifier>.Empty, isParamsArray: false, isParamsCollection: false, refKind: refKind));
Binder\Binder_Deconstruct.cs (13)
252ImmutableArray<TypeSymbol> tupleOrDeconstructedTypes; 279inputPlaceholder, rightSyntax, diagnostics, outPlaceholders: out ImmutableArray<BoundDeconstructValuePlaceholder> outPlaceholders, out _, variables); 351private void SetInferredTypes(ArrayBuilder<DeconstructionVariable> variables, ImmutableArray<TypeSymbol> foundTypes, BindingDiagnosticBag diagnostics) 538elementNames: default(ImmutableArray<string?>), 543errorPositions: default(ImmutableArray<bool>), 574ImmutableArray<BoundExpression> arguments = valuesBuilder.ToImmutableAndFree(); 580ImmutableArray<string?> tupleNames = namesBuilder is null ? default : namesBuilder.ToImmutableAndFree(); 581ImmutableArray<bool> inferredPositions = tupleNames.IsDefault ? default : tupleNames.SelectAsArray(n => n != null); 618out ImmutableArray<BoundDeconstructValuePlaceholder> outPlaceholders, 627outPlaceholders = default(ImmutableArray<BoundDeconstructValuePlaceholder>); 657typeArgumentsWithAnnotations: default(ImmutableArray<TypeWithAnnotations>), 687var parameters = deconstructMethod.Parameters; 718out ImmutableArray<BoundDeconstructValuePlaceholder> outPlaceholders, BoundExpression childNode)
Binder\Binder_Expressions.cs (182)
120return BadExpression(syntax, LookupResultKind.Empty, ImmutableArray<Symbol>.Empty); 128return BadExpression(syntax, LookupResultKind.Empty, ImmutableArray<Symbol>.Empty, childNode); 134private BoundBadExpression BadExpression(SyntaxNode syntax, ImmutableArray<BoundExpression> childNodes) 136return BadExpression(syntax, LookupResultKind.Empty, ImmutableArray<Symbol>.Empty, childNodes); 144return BadExpression(syntax, lookupResultKind, ImmutableArray<Symbol>.Empty); 152return BadExpression(syntax, lookupResultKind, ImmutableArray<Symbol>.Empty, childNode); 158private BoundBadExpression BadExpression(SyntaxNode syntax, LookupResultKind resultKind, ImmutableArray<Symbol> symbols) 163ImmutableArray<BoundExpression>.Empty, 171private BoundBadExpression BadExpression(SyntaxNode syntax, LookupResultKind resultKind, ImmutableArray<Symbol> symbols, BoundExpression childNode) 196private BoundBadExpression BadExpression(SyntaxNode syntax, LookupResultKind resultKind, ImmutableArray<Symbol> symbols, ImmutableArray<BoundExpression> childNodes, bool wasCompilerGenerated = false) 896node, LookupResultKind.Empty, ImmutableArray<Symbol>.Empty, ImmutableArray.Create<BoundExpression>(BindToTypeForErrorRecovery(BindValue(node.Expression, BindingDiagnosticBag.Discarded, BindValueKind.RefersToLocation))), 1008ImmutableArray<BoundExpression> subExpressions = builder.ToImmutableAndFree(); 1014ImmutableArray<string> tupleNames = namesBuilder is null ? default : namesBuilder.ToImmutableAndFree(); 1015ImmutableArray<bool> inferredPositions = tupleNames.IsDefault ? default : tupleNames.SelectAsArray(n => n != null); 1047var args = numElements == 1 ? 1049ImmutableArray<BoundExpression>.Empty; 1083argumentSyntax, LookupResultKind.Empty, ImmutableArray<Symbol>.Empty, 1099var elements = elementTypesWithAnnotations.ToImmutableAndFree(); 1100var locations = elementLocations.ToImmutableAndFree(); 1108includeNullability: false, errorPositions: disallowInferredNames ? inferredPositions : default(ImmutableArray<bool>)); 1120private static (ImmutableArray<string> elementNamesArray, ImmutableArray<bool> inferredArray, bool hasErrors) ExtractTupleElementNames( 1164private static (ImmutableArray<string> names, ImmutableArray<bool> inferred) MergeTupleElementNames( 1171return (default(ImmutableArray<string>), default(ImmutableArray<bool>)); 1175var finalNames = inferredElementNames.ToImmutable(); 1182return (elementNames.ToImmutable(), default(ImmutableArray<bool>)); 1689var typeArgumentsWithAnnotations = hasTypeArguments ? 1691default(ImmutableArray<TypeWithAnnotations>); 2882ImmutableArray<MethodSymbol> originalUserDefinedConversions = conversion.OriginalUserDefinedOrUnionConversions; 2913var targetElementTypesWithAnnotations = default(ImmutableArray<TypeWithAnnotations>); 2972ImmutableArray<BoundExpression> tupleArguments, 2973ImmutableArray<TypeWithAnnotations> targetElementTypesWithAnnotations) 3388foreach (Symbol member in ContainingType?.GetMembers(identifier) ?? ImmutableArray<Symbol>.Empty) 3508out ImmutableArray<int> argsToParamsOpt) 3518var parameters = methodResult.LeastOverriddenMember.GetParameters(); 3564ImmutableArray<ParameterSymbol> parameters, 3620ImmutableArray<ParameterSymbol> parameters, 3653ImmutableArray<ParameterSymbol> parameters, 3657ref ImmutableArray<int> argsToParamsOpt, 3682ImmutableArray<BoundExpression> collectionArgs = paramsArgsBuilder.ToImmutableAndFree(); 3736static ParameterSymbol getCorrespondingParameter(in MemberAnalysisResult result, ImmutableArray<ParameterSymbol> parameters, int arg) 3746ImmutableArray<ParameterSymbol> parameters, 3759var handlerParameterIndexes = correspondingParameter.InterpolatedStringHandlerArgumentIndexes; 3815ImmutableArray<int> handlerArgumentIndexes; 4171ImmutableArray<BoundExpression> arraySizes = sizes.ToImmutableAndFree(); 4211ImmutableArray<BoundExpression> boundInitializerExpressions = BindArrayInitializerExpressions(initializer, diagnostics, dimension: 1, rank: rank); 4232sizes: ImmutableArray<BoundExpression>.Empty, boundInitExprOpt: boundInitializerExpressions); 4238ImmutableArray<BoundExpression> boundInitializerExpressions = BindArrayInitializerExpressions(initializer, diagnostics, dimension: 1, rank: 1); 4270private ImmutableArray<BoundExpression> BindArrayInitializerExpressions(InitializerExpressionSyntax initializer, BindingDiagnosticBag diagnostics, int dimension, int rank) 4358ImmutableArray<BoundExpression> boundInitExpr, 4439ImmutableArray<BoundExpression> boundInitExprOpt = default(ImmutableArray<BoundExpression>)) 4506ImmutableArray<BoundExpression> sizes, 4507ImmutableArray<BoundExpression> boundInitExprOpt = default(ImmutableArray<BoundExpression>), 4597ImmutableArray<Symbol>.Empty, 4598ImmutableArray<BoundExpression>.Empty, 4636ImmutableArray<Symbol>.Empty, 4767ImmutableArray<BoundExpression> boundInitExprOpt = default) 4980symbols: ImmutableArray<Symbol>.Empty, 4991symbols: ImmutableArray<Symbol>.Empty, //CONSIDER: we could look for a matching constructor on System.ValueType 5034symbols: ImmutableArray<Symbol>.Empty, //CONSIDER: we could look for a matching constructor on System.ValueType 5040ImmutableArray<MethodSymbol> candidateConstructors; 5074ImmutableArray<MethodSymbol> candidateConstructors, 5080ImmutableArray<int> argsToParamsOpt; 5168var arguments = analyzedArguments.Arguments.ToImmutable(); 5169var refKinds = analyzedArguments.RefKinds.ToImmutableOrNull(); 5204typeArgumentsWithAnnotations: ImmutableArray<TypeWithAnnotations>.Empty, 5356return new BoundBadExpression(syntax, LookupResultKind.Empty, ImmutableArray<Symbol?>.Empty, ImmutableArray<BoundExpression>.Empty, CreateErrorType()); 5694var childNodes = BuildArgumentsForErrorRecovery(analyzedArguments); 6077ImmutableArray<BoundExpression> arguments = ImmutableArray<BoundExpression>.Empty; 6078ImmutableArray<string> argumentNamesOpt = default; 6079ImmutableArray<int> argsToParamsOpt = default; 6080ImmutableArray<RefKind> argumentRefKindsOpt = default; 6133var handlerPlaceholders = operand.GetInterpolatedStringHandlerData().ArgumentPlaceholders; 6311ImmutableArray<BoundExpression> initializers, 6576ImmutableArray<BoundExpression> boundElementInitializerExpressions, 6604return BadExpression(elementInitializer, LookupResultKind.NotInvocable, ImmutableArray<Symbol>.Empty, boundElementInitializerExpressions); 6628ImmutableArray<BoundExpression> boundElementInitializerExpressions, 6644applicableMethods: ImmutableArray<MethodSymbol>.Empty, 6768internal ImmutableArray<MethodSymbol> FilterInaccessibleConstructors(ImmutableArray<MethodSymbol> constructors, bool allowProtectedConstructorsOfBaseType, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 6870ImmutableArray<MethodSymbol> accessibleConstructors = GetAccessibleConstructorsForOverloadResolution(type, ref useSiteInfo); 6875var finalApplicableCandidates = GetCandidatesPassingFinalValidation(node, overloadResolutionResult, receiverOpt: null, default(ImmutableArray<TypeWithAnnotations>), isExtensionMethodGroup: false, diagnostics); 6883var argArray = BuildArgumentsForDynamicInvocation(analyzedArguments, diagnostics); 6884var refKindsArray = analyzedArguments.RefKinds.ToImmutableOrNull(); 6920out ImmutableArray<MethodSymbol> candidateConstructors, 6940ImmutableArray<MethodSymbol> candidateConstructors, 6955ImmutableArray<int> argToParams; 6993var arguments = analyzedArguments.Arguments.ToImmutable(); 6994var refKinds = analyzedArguments.RefKinds.ToImmutableOrNull(); 7026ImmutableArray<MethodSymbol> candidateConstructors, 7236var children = BuildArgumentsForErrorRecovery(analyzedArguments); 7243return new BoundBadExpression(node, LookupResultKind.OverloadResolutionFailure, ImmutableArray<Symbol>.Empty, children, interfaceType); 7326out ImmutableArray<MethodSymbol> candidateConstructors, 7336out var allInstanceConstructors, ref useSiteInfo); 7359ref ImmutableArray<MethodSymbol> candidateConstructors, 7360ImmutableArray<MethodSymbol> allInstanceConstructors, 7480private ImmutableArray<MethodSymbol> GetAccessibleConstructorsForOverloadResolution(NamedTypeSymbol type, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 7482ImmutableArray<MethodSymbol> allInstanceConstructors; 7486private ImmutableArray<MethodSymbol> GetAccessibleConstructorsForOverloadResolution(NamedTypeSymbol type, bool allowProtectedConstructorsOfBaseType, out ImmutableArray<MethodSymbol> allInstanceConstructors, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 7841ImmutableArray<TypeWithAnnotations> typeArgumentsWithAnnotations = rightHasTypeArguments ? 7843default(ImmutableArray<TypeWithAnnotations>); 7892/// <see cref="MakeQueryInvocation(CSharpSyntaxNode, BoundExpression, string, SeparatedSyntaxList{TypeSyntax}, ImmutableArray{TypeWithAnnotations}, ImmutableArray{BoundExpression}, BindingDiagnosticBag, string?)"/>. 7967var typeArguments = typeArgumentsSyntax.Count > 0 ? BindTypeArguments(typeArgumentsSyntax, diagnostics) : default(ImmutableArray<TypeWithAnnotations>); 8063ImmutableArray<TypeWithAnnotations> typeArguments, 8138ImmutableArray<TypeWithAnnotations> typeArguments, 8258ImmutableArray<TypeWithAnnotations> typeArgumentsOpt, BindingDiagnosticBag diagnostics) 8320ImmutableArray<TypeWithAnnotations> typeArgumentsWithAnnotations, 8389ImmutableArray<TypeWithAnnotations> typeArgumentsWithAnnotations, LookupResult lookupResult, BoundMethodGroupFlags flags, SyntaxNode node, 8397lookupResult.Symbols.All(s => s.Kind == SymbolKind.Method) ? lookupResult.Symbols.SelectAsArray(s_toMethodSymbolFunc) : ImmutableArray<MethodSymbol>.Empty, 8458ReportQueryLookupFailed(node, boundLeft, plainName, ImmutableArray<Symbol>.Empty, diagnostics); 8535ImmutableArray<Symbol> symbols, 8546var methods = builder.ToImmutableAndFree(); 8555default(ImmutableArray<TypeWithAnnotations>), 8571(object)symbolOpt == null ? ImmutableArray<Symbol>.Empty : ImmutableArray.Create(symbolOpt), 8572boundLeft == null ? ImmutableArray<BoundExpression>.Empty : ImmutableArray.Create(AdjustBadExpressionChild(BindToTypeForErrorRecovery(boundLeft))), 8646ImmutableArray<TypeWithAnnotations> typeArgumentsWithAnnotations, 8724boundDimensionsOpt: ImmutableArray<BoundExpression>.Empty, 8765ImmutableArray<TypeWithAnnotations> typeArgumentsWithAnnotations, 8849ImmutableArray<TypeWithAnnotations> typeArgumentsWithAnnotations, 9005ImmutableArray<Symbol> symbols = lookupResult.Symbols.ToImmutable(); 9036ImmutableArray<TypeWithAnnotations> typeArgumentsWithAnnotations, 9296ImmutableArray<BoundImplicitIndexerValuePlaceholder> intIndexerOrSliceArgumentPlaceholders = default; 9319ref ImmutableArray<BoundImplicitIndexerValuePlaceholder> argumentPlaceholders, 9543ref ImmutableArray<BoundImplicitIndexerValuePlaceholder> argumentPlaceholders, 9571ref ImmutableArray<BoundImplicitIndexerValuePlaceholder> argumentPlaceholders, 9648ref ImmutableArray<BoundImplicitIndexerValuePlaceholder> argumentPlaceholders, 9779ImmutableArray<string?> argumentNames = analyzedArguments.GetNames(); 9780ImmutableArray<RefKind> argumentRefKinds = analyzedArguments.RefKinds.ToImmutableOrNull(); 10600var childBoundNodes = BuildArgumentsForErrorRecovery(analyzedArguments).Add(expr); 10601return new BoundBadExpression(node, LookupResultKind.Empty, ImmutableArray<Symbol>.Empty, childBoundNodes, CreateErrorType(), hasErrors: true); 10622return BindDynamicIndexer(node, expr, arguments, ImmutableArray<PropertySymbol>.Empty, diagnostics); 10706var argumentPlaceholders = ImmutableArray.Create(new BoundImplicitIndexerValuePlaceholder(convertedArguments[0].Syntax, int32) { WasCompilerGenerated = true }); 10714indexerOrSliceAccess: new BoundArrayAccess(node, receiverPlaceholder, ImmutableArray<BoundExpression>.CastUp(argumentPlaceholders), resultType) { WasCompilerGenerated = true }, 11024var properties = propertyGroup.Properties; 11036ImmutableArray<BoundExpression>.Empty, 11037default(ImmutableArray<string>), 11038default(ImmutableArray<RefKind>), 11049private BoundExpression BindIndexedPropertyAccess(SyntaxNode syntax, BoundExpression receiver, ImmutableArray<PropertySymbol> propertyGroup, AnalyzedArguments arguments, BindingDiagnosticBag diagnostics) 11068ImmutableArray<PropertySymbol> applicableProperties, 11092var argArray = BuildArgumentsForDynamicInvocation(arguments, diagnostics); 11093var refKindsArray = arguments.RefKinds.ToImmutableOrNull(); 11130var finalApplicableCandidates = GetCandidatesPassingFinalValidation(syntax, overloadResolutionResult, receiver, default(ImmutableArray<TypeWithAnnotations>), isExtensionMethodGroup: false, diagnostics); 11156ImmutableArray<string> argumentNames = analyzedArguments.GetNames(); 11157ImmutableArray<RefKind> argumentRefKinds = analyzedArguments.RefKinds.ToImmutableOrNull(); 11160ImmutableArray<PropertySymbol> candidates = propertyGroup.ToImmutable(); 11179ImmutableArray<BoundExpression> arguments = BuildArgumentsForErrorRecovery(analyzedArguments, candidates); 11205private BoundIndexerAccess BindResolvedIndexerOrIndexedPropertyAccess(SyntaxNode syntax, BoundExpression receiver, AnalyzedArguments analyzedArguments, BindingDiagnosticBag diagnostics, ImmutableArray<string> argumentNames, ImmutableArray<RefKind> argumentRefKinds, MemberResolutionResult<PropertySymbol> resolutionResult) 11218ImmutableArray<int> argsToParams; 11231var arguments = analyzedArguments.Arguments.ToImmutable(); 11275ImmutableArray<BoundImplicitIndexerValuePlaceholder> intIndexerOrSliceArgumentPlaceholders = default; 11295ImmutableArray<BoundImplicitIndexerValuePlaceholder> argumentPlaceholders, 11351ref ImmutableArray<BoundImplicitIndexerValuePlaceholder> argumentPlaceholders, 11402out ImmutableArray<BoundImplicitIndexerValuePlaceholder> argumentPlaceholders) 11572private ErrorPropertySymbol CreateErrorPropertySymbol(ImmutableArray<PropertySymbol> propertyGroup) 11739var methods = node.Methods; 11867ImmutableArray<TypeWithAnnotations> typeArguments = node.TypeArgumentsOpt; 12013var typeArguments = node.TypeArgumentsOpt; 12191ImmutableArray<ScopedKind>? parameterScopesOverride = null, 12192ImmutableArray<bool>? parameterHasUnscopedRefAttributesOverride = null, 12196var parameters = methodSymbol.Parameters; 12197var parameterRefKinds = methodSymbol.ParameterRefKinds; 12198var parameterTypes = methodSymbol.ParameterTypesWithAnnotations; 12201var parameterScopes = parameterScopesOverride ?? 12203var parameterHasUnscopedRefAttributes = parameterHasUnscopedRefAttributesOverride ?? 12205var parameterDefaultValues = parameters.Any(p => p.HasExplicitDefaultValue) ? 12216var typeArguments = returnsVoid ? parameterTypes : parameterTypes.Add(returnType); 12279static bool checkConstraints(CSharpCompilation compilation, ConversionsBase conversions, NamedTypeSymbol delegateType, ImmutableArray<TypeWithAnnotations> typeArguments) 12282var 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 (57)
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) => 488foreach (var parts in 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 (66)
42private static ImmutableArray<MethodSymbol> GetOriginalMethods(OverloadResolutionResult<MethodSymbol> overloadResolutionResult) 52return ImmutableArray<MethodSymbol>.Empty; 82ImmutableArray<BoundExpression> args, 85ImmutableArray<TypeWithAnnotations> typeArgs = default(ImmutableArray<TypeWithAnnotations>), 86ImmutableArray<(string Name, Location Location)?> names = default, 319ImmutableArray<BoundExpression> arguments = analyzedArguments.Arguments.ToImmutable(); 320ImmutableArray<RefKind> refKinds = analyzedArguments.RefKinds.ToImmutableOrNull(); 356result = BindDynamicInvocation(node, boundExpression, analyzedArguments, ImmutableArray<MethodSymbol>.Empty, diagnostics, queryClause); 403ImmutableArray<MethodSymbol> applicableMethods, 488ImmutableArray<BoundExpression> argArray = BuildArgumentsForDynamicInvocation(arguments, diagnostics); 489var refKindsArray = arguments.RefKinds.ToImmutableOrNull(); 532private ImmutableArray<BoundExpression> BuildArgumentsForDynamicInvocation(AnalyzedArguments arguments, BindingDiagnosticBag diagnostics) 554ImmutableArray<BoundExpression> arguments, 555ImmutableArray<RefKind> refKinds, 673private static bool HasApplicableConditionalMethod(ImmutableArray<MemberResolutionResult<MethodSymbol>> finalApplicableCandidates) 774ImmutableArray<MethodSymbol> originalMethods; 776ImmutableArray<TypeWithAnnotations> typeArguments; 848var finalApplicableCandidates = GetCandidatesPassingFinalValidation(syntax, resolution.OverloadResolutionResult, 910private void ReportDynamicInvocationWarnings(SyntaxNode syntax, BoundMethodGroup methodGroup, BindingDiagnosticBag diagnostics, ImmutableArray<MemberResolutionResult<MethodSymbol>> finalApplicableCandidates) 926var parameters = candidate.Member.GetParameters(); 1034private ImmutableArray<MemberResolutionResult<TMethodOrPropertySymbol>> GetCandidatesPassingFinalValidation<TMethodOrPropertySymbol>( 1038ImmutableArray<TypeWithAnnotations> typeArgumentsOpt, 1276ImmutableArray<int> argsToParams; 1335var argNames = analyzedArguments.GetNames(); 1336var argRefKinds = analyzedArguments.RefKinds.ToImmutableOrNull(); 1337var args = analyzedArguments.Arguments.ToImmutable(); 1513ImmutableArray<ParameterSymbol> parameters, 1514ImmutableArray<int> argsToParamsOpt, 1556ImmutableArray<ParameterSymbol> parameters, 1561ref ImmutableArray<int> argsToParamsOpt, 1663BoundExpression collection = CreateParamsCollection(node, parameters[paramsIndex], collectionArgs: ImmutableArray<BoundExpression>.Empty, diagnostics); 1690BoundExpression? extensionReceiver, ArrayBuilder<BoundExpression> argumentsBuilder, int argumentsCount, ImmutableArray<int> argsToParamsOpt) 1803BoundExpression? extensionReceiver, ArrayBuilder<BoundExpression> argumentsBuilder, int argumentsCount, ImmutableArray<int> argsToParamsOpt, 1830static int getArgumentIndex(int parameterIndex, ImmutableArray<int> argsToParamsOpt, bool hasExtensionReceiver) 1861private BoundExpression CreateParamsCollection(SyntaxNode node, ParameterSymbol paramsParameter, ImmutableArray<BoundExpression> collectionArgs, BindingDiagnosticBag diagnostics) 1888node, withElement: null, ImmutableArray<BoundNode>.CastUp(collectionArgs)) 2068ImmutableArray<MethodSymbol> methods, 2070ImmutableArray<TypeWithAnnotations> typeArgumentsWithAnnotations, 2077ImmutableArray<BoundExpression> args; 2117var argNames = analyzedArguments.GetNames(); 2118var argRefKinds = analyzedArguments.RefKinds.ToImmutableOrNull(); 2143private ImmutableArray<BoundExpression> BuildArgumentsForErrorRecovery(AnalyzedArguments analyzedArguments, ImmutableArray<MethodSymbol> methods, BindingDiagnosticBag diagnostics) 2145var parameterListList = ArrayBuilder<ImmutableArray<ParameterSymbol>>.GetInstance(); 2158var result = BuildArgumentsForErrorRecovery(analyzedArguments, parameterListList, diagnostics); 2163private ImmutableArray<BoundExpression> BuildArgumentsForErrorRecovery(AnalyzedArguments analyzedArguments, ImmutableArray<PropertySymbol> properties) 2165var parameterListList = ArrayBuilder<ImmutableArray<ParameterSymbol>>.GetInstance(); 2179var result = BuildArgumentsForErrorRecovery(analyzedArguments, parameterListList, BindingDiagnosticBag.Discarded); 2184private ImmutableArray<BoundExpression> BuildArgumentsForErrorRecovery(AnalyzedArguments analyzedArguments, IEnumerable<ImmutableArray<ParameterSymbol>> parameterListList, BindingDiagnosticBag diagnostics) 2213foreach (var parameterList in parameterListList) 2290foreach (var parameterList in parameterListList) 2320private static TypeSymbol GetCorrespondingParameterType(AnalyzedArguments analyzedArguments, int i, ImmutableArray<ParameterSymbol> parameterList) 2341private ImmutableArray<BoundExpression> BuildArgumentsForErrorRecovery(AnalyzedArguments analyzedArguments) 2343return BuildArgumentsForErrorRecovery(analyzedArguments, Enumerable.Empty<ImmutableArray<ParameterSymbol>>(), BindingDiagnosticBag.Discarded); 2356var args = BuildArgumentsForErrorRecovery(analyzedArguments); 2357var argNames = analyzedArguments.GetNames(); 2358var argRefKinds = analyzedArguments.RefKinds.ToImmutableOrNull(); 2359var originalMethods = (expr.Kind == BoundKind.MethodGroup) ? ((BoundMethodGroup)expr).Methods : ImmutableArray<MethodSymbol>.Empty; 2364private static TypeSymbol GetCommonTypeOrReturnType<TMember>(ImmutableArray<TMember> members) 2579ImmutableArray<FunctionPointerMethodSymbol> methods = methodsBuilder.ToImmutableAndFree(); 2614var args = analyzedArguments.Arguments.ToImmutable(); 2615var refKinds = analyzedArguments.RefKinds.ToImmutableOrNull();
Binder\Binder_Lambda.cs (11)
46ImmutableArray<string> names = default; 47ImmutableArray<RefKind> refKinds = default; 48ImmutableArray<ScopedKind> scopes = default; 49ImmutableArray<TypeWithAnnotations> types = default; 50ImmutableArray<EqualsValueClauseSyntax?> defaultValues = default; 52ImmutableArray<CustomModifier> refCustomModifiers = []; 54ImmutableArray<SyntaxList<AttributeListSyntax>> parameterAttributes = default; 57ImmutableArray<bool> discardsOpt = default; 258static ImmutableArray<bool> computeDiscards(SeparatedSyntaxList<ParameterSyntax> parameters, int underscoresCount) 292private (RefKind, ImmutableArray<CustomModifier> refCustomModifiers, TypeWithAnnotations) BindExplicitLambdaReturnType(TypeSyntax syntax, BindingDiagnosticBag diagnostics) 315ImmutableArray<CustomModifier> refCustomModifiers = [];
Binder\Binder_Lookup.cs (22)
500ImmutableArray<AliasAndExternAliasDirective> externAliases, 546var members = GetCandidateMembers(ns, name, options, originalBinder); 697var originalSymbols = symbols.ToImmutable(); 868var members = GetCandidateMembers(type, name, options, originalBinder); 1138private static ImmutableArray<NamedTypeSymbol> GetBaseInterfaces(NamedTypeSymbol type, ConsList<TypeSymbol> basesBeingResolved, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1147return ImmutableArray<NamedTypeSymbol>.Empty; 1150var interfaces = type.GetDeclaredInterfaces(basesBeingResolved); 1154return ImmutableArray<NamedTypeSymbol>.Empty; 1199ImmutableArray<NamedTypeSymbol> baseInterfaces = @interface.GetDeclaredInterfaces(basesBeingResolved); 1219ImmutableArray<NamedTypeSymbol> interfaces, 1395internal static ImmutableArray<Symbol> GetCandidateMembers(NamespaceOrTypeSymbol nsOrType, string name, LookupOptions options, Binder originalBinder) 1407return ImmutableArray<Symbol>.Empty; 1419internal static ImmutableArray<Symbol> GetCandidateMembers(NamespaceOrTypeSymbol nsOrType, LookupOptions options, Binder originalBinder) 1431return ImmutableArray<Symbol>.Empty; 1547var unwrappedSymbols = ImmutableArray.Create<Symbol>(unwrappedSymbol); 1548diagInfo = diagnose ? new CSDiagnosticInfo(ErrorCode.ERR_BadAccess, new[] { unwrappedSymbol }, unwrappedSymbols, additionalLocations: ImmutableArray<Location>.Empty) : null; 1572diagInfo = new CSDiagnosticInfo(ErrorCode.ERR_BadAccess, new[] { unwrappedSymbol }, ImmutableArray.Create<Symbol>(unwrappedSymbol), additionalLocations: ImmutableArray<Location>.Empty); 1627ImmutableArray<byte> publicKey = this.Compilation.Assembly.PublicKey; 1631foreach (ImmutableArray<byte> key in keys) 2024ImmutableArray<AliasAndExternAliasDirective> externAliases, 2056var candidateMembers = result.FilterName != null ? GetCandidateMembers(ns, result.FilterName, options, originalBinder) : GetCandidateMembers(ns, options, originalBinder); 2068var candidateMembers = result.FilterName != null ? GetCandidateMembers(type, result.FilterName, options, originalBinder) : GetCandidateMembers(type, options, originalBinder);
Binder\Binder_NameConflicts.cs (2)
28ImmutableArray<TypeParameterSymbol> typeParameters, 29ImmutableArray<ParameterSymbol> parameters,
Binder\Binder_Operators.cs (33)
156ImmutableArray<MethodSymbol> originalUserDefinedOperators; 172ImmutableArray<MethodSymbol> staticExtensionOriginalUserDefinedOperators; 327ImmutableArray<MethodSymbol> originalUserDefinedOperators, 523originalUserDefinedOperatorsOpt: ImmutableArray<MethodSymbol>.Empty, 530ImmutableArray<MethodSymbol> methodsArray = methods.ToImmutableAndFree(); 584out ImmutableArray<MethodSymbol> staticOriginalUserDefinedOperators) 1009ImmutableArray<MethodSymbol> originalUserDefinedOperators; 1136out ImmutableArray<MethodSymbol> originalUserDefinedOperators, out BinaryOperatorSignature resultSignature, out BinaryOperatorAnalysisResult best) 1141originalUserDefinedOperators = default(ImmutableArray<MethodSymbol>); 1160ref ImmutableArray<MethodSymbol> originalUserDefinedOperators, 1221ImmutableArray<MethodSymbol> extensionOriginalUserDefinedOperators; 1469ImmutableArray<MethodSymbol> originalUserDefinedOperators; 1475originalUserDefinedOperators = default(ImmutableArray<MethodSymbol>); 2037out ImmutableArray<MethodSymbol> originalUserDefinedOperators) 2055out ImmutableArray<MethodSymbol> originalUserDefinedOperators) 2069ImmutableArray<MethodSymbol> extensionOriginalUserDefinedOperators; 2096out ImmutableArray<MethodSymbol> originalUserDefinedOperators) 2156out ImmutableArray<MethodSymbol> originalUserDefinedOperators) 2176private static BinaryOperatorAnalysisResult BinaryOperatorAnalyzeOverloadResolutionResult(BinaryOperatorOverloadResolutionResult result, out LookupResultKind resultKind, out ImmutableArray<MethodSymbol> originalUserDefinedOperators) 2208originalUserDefinedOperators = ImmutableArray<MethodSymbol>.Empty; 2260out ImmutableArray<MethodSymbol> originalUserDefinedOperators) 2277ImmutableArray<MethodSymbol> extensionOriginalUserDefinedOperators; 2302out ImmutableArray<MethodSymbol> originalUserDefinedOperators) 2330out ImmutableArray<MethodSymbol> originalUserDefinedOperators) 2378originalUserDefinedOperators = ImmutableArray<MethodSymbol>.Empty; 2408out ImmutableArray<MethodSymbol> originalUserDefinedOperators) 3313originalUserDefinedOperatorsOpt: default(ImmutableArray<MethodSymbol>), 3339ImmutableArray<MethodSymbol> originalUserDefinedOperators; 3353ImmutableArray<MethodSymbol> staticExtensionOriginalUserDefinedOperators; 3627ImmutableArray<MethodSymbol>.Empty, 3634ImmutableArray<MethodSymbol> methodsArray = methods.ToImmutableAndFree(); 3691out ImmutableArray<MethodSymbol> staticOriginalUserDefinedOperators) 4391ImmutableArray<MethodSymbol> originalUserDefinedOperators;
Binder\Binder_Patterns.cs (14)
323private ImmutableArray<BoundPattern> BindListPatternSubpatterns( 398ImmutableArray<BoundPattern> subpatterns = BindListPatternSubpatterns( 585var interfaces = inputType is TypeParameterSymbol typeParam ? typeParam.EffectiveInterfacesNoUseSiteDiagnostics : inputType.AllInterfacesNoUseSiteDiagnostics; 1188ImmutableArray<BoundPositionalSubpattern> deconstructionSubpatterns = default; 1199positionalClause, declType, ImmutableArray<TypeWithAnnotations>.Empty, permitDesignations, ref hasErrors, patternsBuilder, diagnostics, out bool tupleHasUnionMatching); 1215deconstructDiagnostics, outPlaceholders: out ImmutableArray<BoundDeconstructValuePlaceholder> outPlaceholders, 1246ImmutableArray<BoundPropertySubpattern> properties = default; 1283ImmutableArray<BoundDeconstructValuePlaceholder> outPlaceholders, 1379ImmutableArray<TypeWithAnnotations> elementTypesWithAnnotations, 1629addSubpatternsForTuple(ImmutableArray<TypeWithAnnotations>.Empty); 1643outPlaceholders: out ImmutableArray<BoundDeconstructValuePlaceholder> outPlaceholders, 1682void addSubpatternsForTuple(ImmutableArray<TypeWithAnnotations> elementTypes) 1722private ImmutableArray<BoundPropertySubpattern> BindPropertyPatternClause( 1854typeArgumentsWithAnnotations: 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; 701return lambdaBodyBinder.CreateBlockFromExpression(node, ImmutableArray<LocalSymbol>.Empty, RefKind.None, construction, null, d); 741yExpression = new BoundBadExpression(yExpression.Syntax, LookupResultKind.Empty, ImmutableArray<Symbol?>.Empty, ImmutableArray.Create(yExpression), CreateErrorType()); 747yExpression = new BoundBadExpression(yExpression.Syntax, LookupResultKind.Empty, ImmutableArray<Symbol?>.Empty, ImmutableArray.Create(yExpression), yExpression.Type); 775var locals = this.GetDeclaredLocalsForScope(expression); 808field2Value = new BoundBadExpression(field2Value.Syntax, LookupResultKind.Empty, ImmutableArray<Symbol?>.Empty, ImmutableArray.Create(field2Value), field2Value.Type, true); 836private UnboundLambda MakeQueryUnboundLambda(RangeVariableMap qvm, ImmutableArray<RangeVariableSymbol> parameters, ExpressionSyntax expression, bool withDependencies) 865private UnboundLambda MakeQueryUnboundLambda(RangeVariableMap qvm, ImmutableArray<RangeVariableSymbol> parameters, CSharpSyntaxNode node, LambdaBodyFactory bodyFactory, bool withDependencies) 885return MakeQueryInvocation(node, receiver, methodName, default(SeparatedSyntaxList<TypeSyntax>), default(ImmutableArray<TypeWithAnnotations>), ImmutableArray.Create(arg), diagnostics 892protected BoundCall MakeQueryInvocation(CSharpSyntaxNode node, BoundExpression receiver, string methodName, ImmutableArray<BoundExpression> args, BindingDiagnosticBag diagnostics 898return MakeQueryInvocation(node, receiver, methodName, default(SeparatedSyntaxList<TypeSyntax>), default(ImmutableArray<TypeWithAnnotations>), args, diagnostics 911return MakeQueryInvocation(node, receiver, methodName, new SeparatedSyntaxList<TypeSyntax>(new SyntaxNodeOrTokenList(typeArgSyntax, 0)), ImmutableArray.Create(typeArg), ImmutableArray<BoundExpression>.Empty, diagnostics 918protected BoundCall MakeQueryInvocation(CSharpSyntaxNode node, BoundExpression receiver, string methodName, SeparatedSyntaxList<TypeSyntax> typeArgsSyntax, ImmutableArray<TypeWithAnnotations> typeArgs, ImmutableArray<BoundExpression> args, BindingDiagnosticBag diagnostics 964receiver = new BoundBadExpression(receiver.Syntax, LookupResultKind.NotAValue, ImmutableArray<Symbol?>.Empty, ImmutableArray.Create(receiver), CreateErrorType()); 986receiver = new BoundBadExpression(receiver.Syntax, LookupResultKind.NotAValue, ImmutableArray<Symbol?>.Empty, ImmutableArray.Create(receiver), CreateErrorType()); 1029protected 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 (42)
146result = new BoundBadStatement(node, ImmutableArray<BoundNode>.Empty, hasErrors: true); 200ImmutableArray<BoundLocalDeclaration> declarations; 535ImmutableArray<BoundNode> childNodes; 543childNodes = ImmutableArray<BoundNode>.Empty; 1113ImmutableArray<BoundExpression> arguments = BindDeclaratorArguments(declarator, localDiagnostics); 1179internal ImmutableArray<BoundExpression> BindDeclaratorArguments(VariableDeclaratorSyntax declarator, BindingDiagnosticBag diagnostics) 1188var arguments = default(ImmutableArray<BoundExpression>); 1884ImmutableArray<BoundExpression>.Empty); 1938private BoundBlock FinishBindBlockParts(CSharpSyntaxNode node, ImmutableArray<BoundStatement> boundStatements) 1940ImmutableArray<LocalSymbol> locals = GetDeclaredLocalsForScope(node); 1945ImmutableArray<MethodSymbol>.CastUp(GetDeclaredLocalFunctionsForScope(node)), 2181var delegateParameters = delegateType.DelegateParameters(); 2317ImmutableArray<MethodSymbol> originalUserDefinedConversions = conversion.OriginalUserDefinedOrUnionConversions; 2381var targetElementTypes = default(ImmutableArray<TypeWithAnnotations>); 2554ImmutableArray<BoundExpression> tupleArguments, 2555ImmutableArray<TypeWithAnnotations> targetElementTypes) 2755var best = this.UnaryOperatorOverloadResolution(UnaryOperatorKind.True, expr, node, diagnostics, ref discardedOperatorResolutionForReporting, out LookupResultKind resultKind, out ImmutableArray<MethodSymbol> originalUserDefinedOperators); 2844internal BoundStatement BindForOrUsingOrFixedDeclarations(VariableDeclarationSyntax nodeOpt, LocalDeclarationKind localKind, BindingDiagnosticBag diagnostics, out ImmutableArray<BoundLocalDeclaration> declarations) 2848declarations = ImmutableArray<BoundLocalDeclaration>.Empty; 3295var catchBlocks = BindCatchBlocks(node.Catches, diagnostics); 3300private ImmutableArray<BoundCatchBlock> BindCatchBlocks(SyntaxList<CatchClauseSyntax> catchClauses, BindingDiagnosticBag diagnostics) 3305return ImmutableArray<BoundCatchBlock>.Empty; 3420ImmutableArray<LocalSymbol> locals = binder.GetDeclaredLocalsForScope(node); 3538internal BoundBlock CreateBlockFromExpression(CSharpSyntaxNode node, ImmutableArray<LocalSymbol> locals, RefKind refKind, BoundExpression expression, ExpressionSyntax expressionSyntax, BindingDiagnosticBag diagnostics) 3775ImmutableArray<LocalSymbol> constructorLocals; 3786constructorLocals = ImmutableArray<LocalSymbol>.Empty; 3792blockBody: new BoundBlock(typeDecl, ImmutableArray<LocalSymbol>.Empty, ImmutableArray<BoundStatement>.Empty).MakeCompilerGenerated(), 4072arguments: ImmutableArray<BoundExpression>.Empty, 4073argumentNamesOpt: ImmutableArray<string?>.Empty, 4074argumentRefKindsOpt: ImmutableArray<RefKind>.Empty, 4078argsToParamsOpt: ImmutableArray<int>.Empty, 4151internal virtual ImmutableArray<LocalSymbol> Locals 4155return ImmutableArray<LocalSymbol>.Empty; 4159internal virtual ImmutableArray<LocalFunctionSymbol> LocalFunctions 4163return ImmutableArray<LocalFunctionSymbol>.Empty; 4167internal virtual ImmutableArray<LabelSymbol> Labels 4171return ImmutableArray<LabelSymbol>.Empty; 4179internal virtual ImmutableArray<AliasAndExternAliasDirective> ExternAliases 4193internal virtual ImmutableArray<AliasAndUsingDirective> UsingAliases
Binder\Binder_Symbols.cs (13)
737var typesArray = types.ToImmutableAndFree(); 738var locationsArray = locations.ToImmutableAndFree(); 750default(ImmutableArray<string>) : 755errorPositions: default(ImmutableArray<bool>), 1255var boundTypeArguments = BindTypeArguments(typeArguments, diagnostics, basesBeingResolved); 1360private ImmutableArray<TypeWithAnnotations> BindTypeArguments(SeparatedSyntaxList<TypeSyntax> typeArguments, BindingDiagnosticBag diagnostics, ConsList<TypeSymbol> basesBeingResolved = null) 1395private NamedTypeSymbol ConstructNamedTypeUnlessTypeArgumentOmitted(SyntaxNode typeSyntax, NamedTypeSymbol type, SeparatedSyntaxList<TypeSyntax> typeArgumentsSyntax, ImmutableArray<TypeWithAnnotations> typeArguments, BindingDiagnosticBag diagnostics) 1441ImmutableArray<TypeWithAnnotations> typeArguments, 1488ImmutableArray<TypeWithAnnotations> typeArguments, bool invoked, ArrayBuilder<Symbol> members, BindingDiagnosticBag diagnostics) 1522receiver = new BoundBadExpression(receiver.Syntax, LookupResultKind.Ambiguous, ImmutableArray<Symbol>.Empty, ImmutableArray.Create(receiver), receiver.Type, hasErrors: true).MakeCompilerGenerated(); 1532receiver = new BoundBadExpression(receiver.Syntax, LookupResultKind.Empty, ImmutableArray<Symbol>.Empty, childBoundNodes: [AdjustBadExpressionChild(receiver)], receiver.Type, hasErrors: true).MakeCompilerGenerated(); 1635ImmutableArray<TypeWithAnnotations> typeArguments, 2040var originalSymbols = symbols.ToImmutable();
Binder\Binder_TupleOperators.cs (18)
54ImmutableArray<BoundExpression> arguments = tuple.Arguments; 160ImmutableArray<MethodSymbol> originalUserDefinedOperators; 236(ImmutableArray<BoundExpression> leftParts, ImmutableArray<string> leftNames) = GetTupleArgumentsOrPlaceholders(left); 237(ImmutableArray<BoundExpression> rightParts, ImmutableArray<string> rightNames) = GetTupleArgumentsOrPlaceholders(right); 251var operators = operatorsBuilder.ToImmutableAndFree(); 273ImmutableArray<string> leftNames, ImmutableArray<string> rightNames, BindingDiagnosticBag diagnostics) 293ImmutableArray<bool> leftInferred = leftIsTupleLiteral ? ((BoundTupleExpression)left).InferredNamesOpt : default; 296ImmutableArray<bool> rightInferred = rightIsTupleLiteral ? ((BoundTupleExpression)right).InferredNamesOpt : default; 381private static (ImmutableArray<BoundExpression> Elements, ImmutableArray<string> Names) GetTupleArgumentsOrPlaceholders(BoundExpression expr) 390ImmutableArray<BoundExpression> placeholders = tupleType.TupleElementTypesWithAnnotations 401private TypeSymbol MakeConvertedType(ImmutableArray<TypeSymbol> convertedTypes, CSharpSyntaxNode syntax, 402ImmutableArray<BoundExpression> elements, ImmutableArray<string> names, 413ImmutableArray<Location> elementLocations = elements.SelectAsArray(e => e.Syntax.Location);
Binder\Binder_Unsafe.cs (2)
65var typeParameters = methodSymbol.GetTypeParametersIncludingExtension(); 66var typeArguments = methodSymbol.ContainingType.TypeArgumentsWithAnnotationsNoUseSiteDiagnostics.Concat(methodSymbol.TypeArgumentsWithAnnotations);
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\Binder.cs (8)
216internal virtual ImmutableArray<LocalSymbol> GetDeclaredLocalsForScope(SyntaxNode scopeDesignator) 225internal virtual ImmutableArray<LocalFunctionSymbol> GetDeclaredLocalFunctionsForScope(CSharpSyntaxNode scopeDesignator) 919var locals = this.GetDeclaredLocalsForScope(scopeDesignator); 922: new BoundSequence(scopeDesignator, locals, ImmutableArray<BoundExpression>.Empty, expression, getType()) { WasCompilerGenerated = true }; 934var locals = this.GetDeclaredLocalsForScope(scopeDesignator); 949var locals = this.GetDeclaredLocalsForScope(scopeDesignator); 950var localFunctions = this.GetDeclaredLocalFunctionsForScope(scopeDesignator); 956return new BoundBlock(statement.Syntax, locals, ImmutableArray<MethodSymbol>.CastUp(localFunctions), hasUnsafeModifier: false, instrumentation: null,
Binder\Binder.IdentifierUsedAsValueFinder.cs (3)
187unboundLambda.HasExplicitReturnType(out RefKind refKind, out ImmutableArray<CustomModifier> refCustomModifiers, out TypeWithAnnotations returnType); 193ImmutableArray<TypeWithAnnotations>.Empty, 194ImmutableArray<RefKind>.Empty,
Binder\Binder.QueryTranslationState.cs (1)
57result.Add(vars, ImmutableArray<string>.Empty);
Binder\Binder.QueryUnboundLambdaState.cs (3)
21private readonly ImmutableArray<RangeVariableSymbol> _parameters; 25public QueryUnboundLambdaState(Binder binder, RangeVariableMap rangeVariableMap, ImmutableArray<RangeVariableSymbol> parameters, LambdaBodyFactory bodyFactory, bool includeCache = true) 38public override bool HasExplicitReturnType(out RefKind refKind, out ImmutableArray<CustomModifier> refCustomModifiers, out TypeWithAnnotations returnType)
Binder\Binder.RangeVariableMap.cs (1)
26private class RangeVariableMap : Dictionary<RangeVariableSymbol, ImmutableArray<string>>
Binder\Binder.ValueChecks.cs (55)
104public ImmutableArray<ParameterSymbol> Parameters; 107public ImmutableArray<BoundExpression> ArgsOpt; 108public ImmutableArray<RefKind> ArgumentRefKindsOpt; 109public ImmutableArray<int> ArgsToParamsOpt; 125public static MethodInvocationInfo FromCallParts(MethodSymbol method, BoundExpression receiver, ImmutableArray<BoundExpression> args, ThreeState receiverIsSubjectToCloning) 245public static MethodInvocationInfo FromInlineArrayConversion(SignatureOnlyMethodSymbol equivalentSignatureMethod, ImmutableArray<BoundExpression> arguments, ImmutableArray<RefKind> refKinds, bool hasAnyErrors) 291public static MethodInvocationInfo FromInlineArrayAccess(SignatureOnlyMethodSymbol equivalentSignatureMethod, ImmutableArray<BoundExpression> arguments, ImmutableArray<RefKind> refKinds, bool hasAnyErrors) 651var argsToParams = indexerAccess.ArgsToParamsOpt; 655var parameters = accessorForDefaultArguments.Parameters; 664ImmutableArray<string?> argumentNamesOpt = indexerAccess.ArgumentNamesOpt; 892(object)otherSymbol == null ? ImmutableArray<Symbol>.Empty : ImmutableArray.Create(otherSymbol), 893receiver == null ? ImmutableArray<BoundExpression>.Empty : ImmutableArray.Create(AdjustBadExpressionChild(receiver)), 1220bool checkArrayAccessValueKind(SyntaxNode node, BindValueKind valueKind, ImmutableArray<BoundExpression> indices, BindingDiagnosticBag diagnostics) 2690var argsOpt = methodInvocationInfo.ArgsOpt; 2693var parameters = methodInvocationInfo.Parameters; 2694var argsToParamsOpt = methodInvocationInfo.ArgsToParamsOpt; 2695var argRefKindsOpt = methodInvocationInfo.ArgumentRefKindsOpt; 2785ImmutableArray<BoundExpression> argsOpt, 2786ImmutableArray<RefKind> argRefKindsOpt, 3300void inferDeclarationExpressionValEscape(ImmutableArray<BoundExpression> argsOpt, ArrayBuilder<EscapeValue> escapeValues) 3325var parameters = methodInvocationInfo.Parameters; 3326var argsOpt = methodInvocationInfo.ArgsOpt; 3327var argsToParamsOpt = methodInvocationInfo.ArgsToParamsOpt; 3390public override ImmutableArray<Location> Locations 3889ImmutableArray<BoundExpression> arguments; 3890ImmutableArray<RefKind> refKinds; 4190ImmutableArray<BoundExpression> arguments; 4191ImmutableArray<RefKind> refKinds; 4525ImmutableArray<BoundExpression> arguments; 4526ImmutableArray<RefKind> refKinds; 4608ImmutableArray<BoundExpression> arguments; 4609ImmutableArray<RefKind> refKinds; 4868private SafeContext GetTupleValEscape(ImmutableArray<BoundExpression> elements) 5015private SafeContext GetValEscape(ImmutableArray<BoundExpression> expressions) 5268ImmutableArray<BoundExpression> arguments; 5269ImmutableArray<RefKind> refKinds; 5393ImmutableArray<BoundExpression> arguments; 5394ImmutableArray<RefKind> refKinds; 5701private SignatureOnlyMethodSymbol GetInlineArrayAccessEquivalentSignatureMethod(BoundInlineArrayAccess elementAccess, out ImmutableArray<BoundExpression> arguments, out ImmutableArray<RefKind> refKinds) 5742ImmutableArray<TypeParameterSymbol>.Empty, 5745ImmutableArray<CustomModifier>.Empty, 5754ImmutableArray<CustomModifier>.Empty, 5755ImmutableArray<MethodSymbol>.Empty); 5763private SignatureOnlyMethodSymbol GetInlineArrayConversionEquivalentSignatureMethod(BoundConversion conversion, out ImmutableArray<BoundExpression> arguments, out ImmutableArray<RefKind> refKinds) 5769private SignatureOnlyMethodSymbol GetInlineArrayConversionEquivalentSignatureMethod(BoundExpression inlineArray, TypeSymbol resultType, out ImmutableArray<BoundExpression> arguments, out ImmutableArray<RefKind> refKinds) 5782ImmutableArray<TypeParameterSymbol>.Empty, 5785ImmutableArray<CustomModifier>.Empty, 5794ImmutableArray<CustomModifier>.Empty, 5795ImmutableArray<MethodSymbol>.Empty); 5803private bool CheckTupleValEscape(ImmutableArray<BoundExpression> elements, SafeContext escapeTo, BindingDiagnosticBag diagnostics)
Binder\Binder.WithQueryLambdaParametersBinder.cs (2)
42ImmutableArray<string> path; 99var result = BindMemberOfType(node, node, name, 0, invoked: false, indexed: false, receiver, default(SeparatedSyntaxList<TypeSyntax>), default(ImmutableArray<TypeWithAnnotations>), lookupResult, BoundMethodGroupFlags.None, diagnostics);
Binder\BinderFactory.BinderFactoryVisitor.cs (4)
640private static bool InSpan(ImmutableArray<Location> locations, SyntaxTree syntaxTree, TextSpan span) 1295ImmutableArray<ParameterSymbol> parameters = property.Parameters; 1324ImmutableArray<ParameterSymbol> parameters = invokeMethod.Parameters; 1377ImmutableArray<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)
164internal override ImmutableArray<LocalSymbol> GetDeclaredLocalsForScope(SyntaxNode scopeDesignator) 169internal 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_CheckOrReachability.cs (16)
139ImmutableArray<BoundSwitchExpressionArm> switchArms, 159ImmutableArray<BoundSwitchExpressionArm> switchArms, 198ImmutableArray<BoundSwitchSection> switchSections, 214static bool shouldAnalyzeAny(CSharpCompilation compilation, ImmutableArray<BoundSwitchSection> switchSections) 234ImmutableArray<BoundSwitchSection> switchSections, 1176ImmutableArray<BoundPropertySubpattern>.Empty, isExplicitNotNullTest: false, unionMatchingMode: UnionMatchingMode.None, variable: null, variableAccess: null, node.InputType, node.InputType); 1182ImmutableArray<BoundPositionalSubpattern> deconstruction = node.Deconstruction; 1185var discards = deconstruction.SelectAsArray(d => d.WithPattern(MakeDiscardPattern(d.Syntax, d.Pattern.InputType))); 1196ImmutableArray<BoundPositionalSubpattern> newSubPatterns = discards.SetItem(i, deconstruction[i].WithPattern(newPattern)); 1231ImmutableArray<BoundPropertySubpattern> newSubPatterns = [property.WithPattern(newPattern)]; 1297var subpatterns = ituplePattern.Subpatterns; 1298var discards = subpatterns.SelectAsArray(d => d.WithPattern(MakeDiscardPattern(d.Syntax, d.Pattern.InputType))); 1319ImmutableArray<BoundPositionalSubpattern> newSubpatterns = discards.SetItem(i, subpatterns[i].WithPattern(newPattern)); 1365ImmutableArray<BoundPattern> equivalentDefaultPatterns = listPattern.Subpatterns.SelectAsArray(makeEquivalentDefaultPattern); 1382ImmutableArray<BoundPattern> newSubpatterns = equivalentDefaultPatterns.SetItem(i, newPattern); 1413ImmutableArray<BoundPattern> newSubpatterns = equivalentDefaultPatterns.SetItem(i, newSlice);
Binder\DecisionDagBuilder_ListPatterns.cs (1)
25var subpatterns = list.Subpatterns;
Binder\DecisionDagBuilder.cs (34)
85ImmutableArray<BoundSwitchSection> switchSections, 101ImmutableArray<BoundSwitchExpressionArm> switchArms, 146ImmutableArray<BoundSwitchSection> switchSections) 171ImmutableArray<BoundSwitchExpressionArm> switchArms) 201Tests tests = MakeAndSimplifyTestsAndBindings(input, pattern, out ImmutableArray<BoundPatternBinding> bindings); 208out ImmutableArray<BoundPatternBinding> bindings) 973ImmutableArray<FieldSymbol> elements = inputType.TupleElements; 974ImmutableArray<TypeWithAnnotations> elementTypes = inputType.TupleElementTypesWithAnnotations; 1251var sortedBoundDagNodes = boundDecisionDag.TopologicallySortedNodes; 1440if (result.TryGetTopologicallySortedReachableStates(out ImmutableArray<DagState> states)) 1614bool wasAcyclic = decisionDag.TryGetTopologicallySortedReachableStates(out ImmutableArray<DagState> sortedStates); 1667BoundDecisionDagNode finalState(SyntaxNode syntax, LabelSymbol label, ImmutableArray<BoundPatternBinding> bindings) 2802public bool TryGetTopologicallySortedReachableStates(out ImmutableArray<DagState> result) 2814if (!this.TryGetTopologicallySortedReachableStates(out var allStates)) 3170public readonly ImmutableArray<BoundPatternBinding> Bindings; 3177ImmutableArray<BoundPatternBinding> Bindings, 3287protected abstract RemoveEvaluationAndUpdateTempReferencesResult RemoveEvaluationAndUpdateTempReferencesCore(DecisionDagBuilder dagBuilder, DagState state, ImmutableArray<BoundPatternBinding> bindings, ImmutableDictionary<BoundDagTemp, BoundDagTemp> tempMap, BoundDagEvaluation e); 3289public Tests RemoveEvaluation(DecisionDagBuilder dagBuilder, DagState state, ImmutableArray<BoundPatternBinding> bindings, BoundDagEvaluation e) 3294protected Tests RemoveEvaluationAndUpdateTempReferences(DecisionDagBuilder dagBuilder, DagState state, ImmutableArray<BoundPatternBinding> bindings, ImmutableDictionary<BoundDagTemp, BoundDagTemp> tempMap, BoundDagEvaluation e) 3340private static void AddBindingsPatchingAssignments(ImmutableArray<BoundPatternBinding> bindings, ImmutableDictionary<BoundDagTemp, BoundDagTemp> oldTempMap, ImmutableDictionary<BoundDagTemp, BoundDagTemp> newTempMap, ArrayBuilder<Tests> assignments) 3403protected override RemoveEvaluationAndUpdateTempReferencesResult RemoveEvaluationAndUpdateTempReferencesCore(DecisionDagBuilder builder, DagState state, ImmutableArray<BoundPatternBinding> bindings, ImmutableDictionary<BoundDagTemp, BoundDagTemp> tempMap, BoundDagEvaluation e) 3427protected override RemoveEvaluationAndUpdateTempReferencesResult RemoveEvaluationAndUpdateTempReferencesCore(DecisionDagBuilder builder, DagState state, ImmutableArray<BoundPatternBinding> bindings, ImmutableDictionary<BoundDagTemp, BoundDagTemp> tempMap, BoundDagEvaluation e) 3574protected override RemoveEvaluationAndUpdateTempReferencesResult RemoveEvaluationAndUpdateTempReferencesCore(DecisionDagBuilder builder, DagState state, ImmutableArray<BoundPatternBinding> bindings, ImmutableDictionary<BoundDagTemp, BoundDagTemp> tempMap, BoundDagEvaluation e) 4156DecisionDagBuilder dagBuilder, DagState state, ImmutableArray<BoundPatternBinding> bindings, 4199private static ArrayBuilder<Tests> NegateSequenceElements(ImmutableArray<Tests> seq) 4209protected override RemoveEvaluationAndUpdateTempReferencesResult RemoveEvaluationAndUpdateTempReferencesCore(DecisionDagBuilder builder, DagState state, ImmutableArray<BoundPatternBinding> bindings, ImmutableDictionary<BoundDagTemp, BoundDagTemp> tempMap, BoundDagEvaluation e) 4241public readonly ImmutableArray<Tests> RemainingTests; 4242protected SequenceTests(ImmutableArray<Tests> remainingTests) 4330protected sealed override RemoveEvaluationAndUpdateTempReferencesResult RemoveEvaluationAndUpdateTempReferencesCore(DecisionDagBuilder dagBuilder, DagState state, ImmutableArray<BoundPatternBinding> bindings, ImmutableDictionary<BoundDagTemp, BoundDagTemp> tempMap, BoundDagEvaluation e) 4349ImmutableArray<Tests> remainingTests = seq.RemainingTests; 4776private AndSequence(ImmutableArray<Tests> remainingTests) : base(remainingTests) 4804var testsToInsert = seq.RemainingTests; 4882private OrSequence(ImmutableArray<Tests> remainingTests) : base(remainingTests) 4959private static bool TryCreateValueSet(ImmutableArray<Tests>.Builder builder, [NotNullWhen(true)] out Tests? result)
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\ExecutableCodeBinder.cs (1)
110var parameters = iterator.GetParametersIncludingExtensionParameter(skipExtensionIfStatic: true);
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 (12)
47internal override ImmutableArray<LocalSymbol> GetDeclaredLocalsForScope(SyntaxNode scopeDesignator) 57internal override ImmutableArray<LocalFunctionSymbol> GetDeclaredLocalFunctionsForScope(CSharpSyntaxNode scopeDesignator) 70protected override ImmutableArray<LocalSymbol> BuildLocals() 434ImmutableArray<LocalSymbol> iterationVariables = this.Locals; 497ImmutableArray<MethodSymbol> originalUserDefinedConversions = elementConversionClassification.OriginalUserDefinedOrUnionConversions; 748ImmutableArray<Symbol>.Empty, 1221var argsToParams = default(ImmutableArray<int>); 1484var argsToParams = overloadResolutionResult.ValidResult.Result.ArgsToParamsOpt; 1848var allInterfaces = typeParameter.EffectiveBaseClass(ref useSiteInfo).AllInterfacesWithDefinitionUseSiteDiagnostics(ref useSiteInfo) 1861private static void GetIEnumerableOfT(ImmutableArray<NamedTypeSymbol> interfaces, bool isAsync, CSharpCompilation compilation, ref NamedTypeSymbol result, ref bool foundMultiple) 1973ImmutableArray<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 (17)
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) 186var usings = this.Usings.AddRange(otherImports.Usings).Distinct(UsingTargetComparer.Instance); 187var externAliases = ConcatExternAliases(this.ExternAliases, otherImports.ExternAliases); 192private static ImmutableArray<AliasAndExternAliasDirective> ConcatExternAliases(ImmutableArray<AliasAndExternAliasDirective> externs1, ImmutableArray<AliasAndExternAliasDirective> externs2) 206var result = externs1.WhereAsArray((e, replacedExternAliases) => !replacedExternAliases.Contains(e.Alias.Name), replacedExternAliases).AddRange(externs2);
Binder\InMethodBinder.cs (5)
49private static void RecordDefinition<T>(SmallDictionary<string, Symbol> declarationMap, ImmutableArray<T> definitions) where T : Symbol 197var parameters = _methodSymbol.Parameters; 236var locations = parameter.Locations; 323var parameters = _methodSymbol.Parameters; 324var typeParameters = _methodSymbol.TypeParameters;
Binder\InSubmissionClassBinder.cs (2)
55internal override ImmutableArray<AliasAndExternAliasDirective> ExternAliases => ((SourceNamespaceSymbol)Compilation.SourceModule.GlobalNamespace).GetExternAliases(_declarationSyntax); 57internal override ImmutableArray<AliasAndUsingDirective> UsingAliases => ((SourceNamespaceSymbol)Compilation.SourceModule.GlobalNamespace).GetUsingAliases(_declarationSyntax, basesBeingResolved: null);
Binder\LocalBinderFactory.cs (6)
308var parameters = target switch 324static ImmutableArray<ParameterSymbol> getAllParameters(ParameterSymbol parameter) 338static ImmutableArray<ParameterSymbol> getMethodParametersFromTypeParameter(TypeParameterSymbol typeParameter) 352static ImmutableArray<ParameterSymbol> getDelegateParameters(NamedTypeSymbol delegateType) 364static ImmutableArray<ParameterSymbol> getSetterParameters(SourcePropertyAccessorSymbol setter) 366var 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)
116var 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, 133Func<ImmutableArray<BoundDecisionDagNode>, bool, bool> handler) 244ImmutableArray<BoundDecisionDagNode> nodes, 262var shortestPathToNode = ShortestPathToNode(nodes, targetNode, nullPaths, reachabilityInfo, out requiresFalseWhenClause); 310static void gatherConstraintsAndEvaluations(Binder binder, BoundDecisionDagNode targetNode, ImmutableArray<BoundDecisionDagNode> pathToNode, 365var constraints = getArray(constraintMap, input); 366var evaluations = getArray(evaluationMap, input); 379static ImmutableArray<T> getArray<T>(Dictionary<BoundDagTemp, ArrayBuilder<T>> map, BoundDagTemp temp) 381return map.TryGetValue(temp, out var builder) ? builder.ToImmutable() : ImmutableArray<T>.Empty; 556var elements = input.Type.TupleElements; 760IConstantValueSet computeRemainingValues(IConstantValueSetFactory fac, ImmutableArray<(BoundDagTest test, bool sense)> constraints)
Binder\RefSafetyAnalysis.cs (11)
99private readonly ImmutableArray<LocalSymbol> _locals; 103public LocalScope(RefSafetyAnalysis analysis, ImmutableArray<LocalSymbol> locals, bool adjustDepth = true) 763private void VisitArgumentsAndGetArgumentPlaceholders(BoundExpression? receiverOpt, ImmutableArray<BoundExpression> arguments, bool isExtensionBlockMember) 896ImmutableArray<BoundExpression> arguments, 942SafeContext getArgumentEscapeScope(int nArgumentsVisited, ImmutableArray<BoundExpression> arguments, int argIndex) 1192var parameters = methodInvocationInfo.Parameters; 1256var arguments = tuple.Arguments; 1272private static ImmutableArray<BoundExpression> GetDeconstructionRightParts(BoundExpression expr) 1298ImmutableArray<BoundExpression> arguments; 1299ImmutableArray<RefKind> refKinds; 1316using 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); 643ImmutableArray<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) 196internal Conversion(ConversionKind kind, ImmutableArray<Conversion> nestedConversions) 205internal Conversion(ConversionKind kind, DeconstructMethodInfo deconstructMethodInfo, ImmutableArray<(BoundValuePlaceholder? placeholder, BoundExpression? conversion)> deconstructConversionInfo) 331internal static ImmutableArray<Conversion> IdentityUnderlying => ConversionSingletons.IdentityUnderlying; 332internal static ImmutableArray<Conversion> ImplicitConstantUnderlying => ConversionSingletons.ImplicitConstantUnderlying; 333internal static ImmutableArray<Conversion> ImplicitNumericUnderlying => ConversionSingletons.ImplicitNumericUnderlying; 334internal static ImmutableArray<Conversion> ExplicitNumericUnderlying => ConversionSingletons.ExplicitNumericUnderlying; 335internal static ImmutableArray<Conversion> ExplicitEnumerationUnderlying => ConversionSingletons.ExplicitEnumerationUnderlying; 336internal static ImmutableArray<Conversion> PointerToIntegerUnderlying => ConversionSingletons.PointerToIntegerUnderlying; 357internal static ImmutableArray<Conversion> IdentityUnderlying = ImmutableArray.Create(Identity); 358internal static ImmutableArray<Conversion> ImplicitConstantUnderlying = ImmutableArray.Create(ImplicitConstant); 359internal static ImmutableArray<Conversion> ImplicitNumericUnderlying = ImmutableArray.Create(ImplicitNumeric); 360internal static ImmutableArray<Conversion> ExplicitNumericUnderlying = ImmutableArray.Create(ExplicitNumeric); 361internal static ImmutableArray<Conversion> ExplicitEnumerationUnderlying = ImmutableArray.Create(ExplicitEnumeration); 362internal static ImmutableArray<Conversion> PointerToIntegerUnderlying = ImmutableArray.Create(PointerToInteger); 391internal static Conversion MakeSwitchExpression(ImmutableArray<Conversion> innerConversions) 396internal static Conversion MakeConditionalExpression(ImmutableArray<Conversion> innerConversions) 425internal ImmutableArray<Conversion> UnderlyingConversions 431default(ImmutableArray<Conversion>); 448var underlyingConversions = UnderlyingConversions; 492var underlyingConversions = UnderlyingConversions; 575internal ImmutableArray<(BoundValuePlaceholder? placeholder, BoundExpression? conversion)> DeconstructConversionInfo 1154internal ImmutableArray<MethodSymbol> OriginalUserDefinedOrUnionConversions 1174return ImmutableArray<MethodSymbol>.Empty; 1301var underlyingConversions = self.UnderlyingConversions; 1318ImmutableArray<BoundDeconstructValuePlaceholder> outputPlaceholders) 1326internal readonly ImmutableArray<BoundDeconstructValuePlaceholder> OutputPlaceholders;
Binder\Semantics\Conversions\Conversions.cs (2)
186var elements = node.Elements; 434public static void GetDelegateOrFunctionPointerArguments(SyntaxNode syntax, AnalyzedArguments analyzedArguments, ImmutableArray<ParameterSymbol> delegateParameters, CSharpCompilation compilation)
Binder\Semantics\Conversions\ConversionsBase.cs (8)
1509var delegateParameters = invokeMethod.Parameters; 1715var allInterfaces = targetType.GetAllInterfacesOrEffectiveInterfaces(); 2345var arguments = source.Arguments; 2353var targetElementTypes = destination.TupleElementTypesWithAnnotations; 2427ImmutableArray<TypeWithAnnotations> sourceTypes; 2428ImmutableArray<TypeWithAnnotations> destTypes; 3703var sourceTypeArguments = sourceType.TypeArgumentsWithDefinitionUseSiteDiagnostics(ref useSiteInfo); 3704var 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(); 370ImmutableArray<UserDefinedConversionAnalysis> u, 428ImmutableArray<UserDefinedConversionAnalysis> u,
Binder\Semantics\Conversions\UserDefinedImplicitConversions.cs (13)
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) 692ImmutableArray<T> items, 700ImmutableArray<T> items, 754ImmutableArray<T> items, 762ImmutableArray<T> items, 806private static int? UniqueBestValidIndex<T>(ImmutableArray<T> items, Func<T, bool> valid, Func<T, T, BetterResult> better) 972ImmutableArray<UserDefinedConversionAnalysis> u = ubuild.ToImmutableAndFree(); 1009ImmutableArray<UserDefinedConversionAnalysis> u = ubuild.ToImmutableAndFree();
Binder\Semantics\Operators\BinaryOperatorOverloadResolution.cs (3)
235ImmutableArray<NamedTypeSymbol> interfaces = default; 1377var p = op1.Method.OriginalDefinition.GetParameters(); 1394var p = op2.Method.OriginalDefinition.GetParameters();
Binder\Semantics\Operators\UnaryOperatorOverloadResolution.cs (1)
698ImmutableArray<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 (22)
26private readonly ImmutableArray<Conversion> _conversionsOpt; 27public ImmutableArray<Conversion> ConversionsOpt 62private readonly ImmutableArray<int> _argsToParamsOpt; 63public ImmutableArray<int> ArgsToParamsOpt 76private readonly ImmutableArray<TypeParameterDiagnosticInfo> _constraintFailureDiagnostics; 77public ImmutableArray<TypeParameterDiagnosticInfo> ConstraintFailureDiagnostics 122ImmutableArray<int> argsToParamsOpt = default, 123ImmutableArray<Conversion> conversionsOpt = default, 126ImmutableArray<TypeParameterDiagnosticInfo> constraintFailureDiagnosticsOpt = default, 323public static MemberAnalysisResult BadArgumentConversions(ImmutableArray<int> argsToParamsOpt, BitVector badArguments, ImmutableArray<Conversion> conversions, TypeWithAnnotations definitionParamsElementTypeOpt, TypeWithAnnotations paramsElementTypeOpt) 378public static MemberAnalysisResult NormalForm(ImmutableArray<int> argsToParamsOpt, ImmutableArray<Conversion> conversions, bool hasAnyRefOmittedArgument) 383public static MemberAnalysisResult ExpandedForm(ImmutableArray<int> argsToParamsOpt, ImmutableArray<Conversion> conversions, bool hasAnyRefOmittedArgument, TypeWithAnnotations definitionParamsElementType, TypeWithAnnotations paramsElementType) 400internal static MemberAnalysisResult ConstraintFailure(ImmutableArray<TypeParameterDiagnosticInfo> constraintFailureDiagnostics) 421var argsToParams = adjustArgsToParams(ArgsToParamsOpt); 422var conversions = adjustConversions(ConversionsOpt); 444static ImmutableArray<int> adjustArgsToParams(ImmutableArray<int> argsToParams) 461static ImmutableArray<Conversion> adjustConversions(ImmutableArray<Conversion> conversions)
Binder\Semantics\OverloadResolution\MethodGroup.cs (3)
43ImmutableArray<TypeWithAnnotations> typeArguments, 68ImmutableArray<MethodSymbol> methods, 69ImmutableArray<TypeWithAnnotations> typeArguments,
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (41)
73public readonly ImmutableArray<TypeWithAnnotations> InferredTypeArguments; 82ImmutableArray<TypeWithAnnotations> inferredTypeArguments, 136private readonly ImmutableArray<TypeParameterSymbol> _methodTypeParameters; 138private readonly ImmutableArray<TypeWithAnnotations> _formalParameterTypes; 139private readonly ImmutableArray<RefKind> _formalParameterRefKinds; 140private readonly ImmutableArray<BoundExpression> _arguments; 175ImmutableArray<TypeParameterSymbol> methodTypeParameters, 180ImmutableArray<TypeWithAnnotations> formalParameterTypes, 277ImmutableArray<RefKind> formalParameterRefKinds, // Optional; assume all value if missing. 278ImmutableArray<BoundExpression> arguments,// Required; in scenarios like method group conversions where there are 327ImmutableArray<TypeParameterSymbol> methodTypeParameters, 329ImmutableArray<TypeWithAnnotations> formalParameterTypes, 330ImmutableArray<RefKind> formalParameterRefKinds, 331ImmutableArray<BoundExpression> arguments, 447private ImmutableArray<TypeWithAnnotations> GetResults(out bool inferredFromFunctionType) 571var fixedArguments = _methodTypeParameters.SelectAsArray( 592var inferredTypeArguments = GetResults(out bool inferredFromFunctionType); 734var sourceArguments = argument.Arguments; 743var destTypes = destination.TupleElementTypesWithAnnotations; 932var sourceArguments = argument.Arguments; 940var destTypes = destination.TupleElementTypesWithAnnotations; 1029var parameters = delegateOrFunctionPointerType.DelegateOrFunctionPointerParameters(); 1483var fixedParameters = GetFixedDelegateOrFunctionPointer(delegateOrFunctionPointerType).DelegateOrFunctionPointerParameters(); 1506ImmutableArray<ParameterSymbol> delegateParameters, 1577var delegateParameters = delegateType.DelegateParameters(); 1840ImmutableArray<TypeWithAnnotations> sourceTypes; 1841ImmutableArray<TypeWithAnnotations> targetTypes; 2321ImmutableArray<NamedTypeSymbol> allInterfaces; 2353internal static ImmutableArray<NamedTypeSymbol> ModuloReferenceTypeNullabilityDifferences(ImmutableArray<NamedTypeSymbol> interfaces, VarianceKind variance) 2370var result = dictionary.Count != interfaces.Length ? dictionary.Values.ToImmutableArray() : interfaces; 2710ImmutableArray<NamedTypeSymbol> allInterfaces = target.AllInterfacesWithDefinitionUseSiteDiagnostics(ref useSiteInfo); 3022var constraintTypes = typeParameter.ConstraintTypesNoUseSiteDiagnostics; 3103var originalDelegateParameters = target.DelegateParameters(); 3116var fixedDelegateParameters = fixedDelegate.DelegateParameters(); 3154private static NamedTypeSymbol GetInterfaceInferenceBound(ImmutableArray<NamedTypeSymbol> interfaces, NamedTypeSymbol target) 3187public static ImmutableArray<TypeWithAnnotations> InferTypeArgumentsFromReceiverType( 3240public static ImmutableArray<TypeWithAnnotations> InferTypeArgumentsFromFirstArgument( 3244ImmutableArray<BoundExpression> arguments, 3259ImmutableArray<BoundExpression> arguments, 3337private ImmutableArray<TypeWithAnnotations> GetInferredTypeArguments(out bool inferredFromFunctionType)
Binder\Semantics\OverloadResolution\OverloadResolution_ArgsToParameters.cs (7)
52public ImmutableArray<int> ToImmutableArray() 58private static ImmutableArray<TypeWithAnnotations> GetParameterTypesIncludingReceiver(Symbol symbol) 74ImmutableArray<ParameterSymbol> parameters = symbol.GetParametersIncludingExtensionParameter(skipExtensionIfStatic: false); 240ImmutableArray<ParameterSymbol> memberParameters, 348ImmutableArray<ParameterSymbol> parameters, 385return ArgumentAnalysisResult.NormalForm(default(ImmutableArray<int>)); 441ImmutableArray<ParameterSymbol> parameters,
Binder\Semantics\OverloadResolution\OverloadResolution.cs (55)
101public void ObjectCreationOverloadResolution(ImmutableArray<MethodSymbol> constructors, AnalyzedArguments arguments, OverloadResolutionResult<MethodSymbol> result, bool dynamicResolution, bool isEarlyAttributeBinding, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 286var applicableMethods = result.GetAllApplicableMembers(); 540static ImmutableArray<Symbol> getHiddenMembers(Symbol member) 551return ImmutableArray<Symbol>.Empty; 1495bool typeArgumentsAccessible(ImmutableArray<TypeSymbol> typeArguments, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1748ImmutableArray<MethodSymbol> constructors, 2168var m1LeastOverriddenParameters = m1.LeastOverriddenMember.GetParameters(); 2169var m2LeastOverriddenParameters = m2.LeastOverriddenMember.GetParameters(); 2475var m1DefinitionParameters = m1.LeastOverriddenMember.OriginalDefinition.GetParameters(); 2476var m2DefinitionParameters = m2.LeastOverriddenMember.OriginalDefinition.GetParameters(); 2577static TypeSymbol getParameterTypeAndRefKind(int i, MemberAnalysisResult memberResolutionResult, ImmutableArray<ParameterSymbol> parameters, 2598static ParameterSymbol getParameterOrExtensionParameter(int argIndex, MemberAnalysisResult result, ImmutableArray<ParameterSymbol> parameters, TMember member) 2619ImmutableArray<ParameterSymbol> parameters1, 2621ImmutableArray<ParameterSymbol> parameters2) 2709var conversionsOpt = m.Result.ConversionsOpt; 2728ImmutableArray<int> argsToParamsOpt = m.Result.ArgsToParamsOpt; 3084ImmutableArray<BoundNode> collectionExpressionElements, 3085TypeSymbol t1, CollectionExpressionTypeKind kind1, TypeSymbol elementType1, ImmutableArray<Conversion> underlyingElementConversions1, 3086TypeSymbol t2, CollectionExpressionTypeKind kind2, TypeSymbol elementType2, ImmutableArray<Conversion> underlyingElementConversions2, 3392var sourceArguments = tupleSource.Arguments; 3400var destTypes = destination.TupleElementTypesWithAnnotations; 3778private static bool IdenticalParameters(ImmutableArray<ParameterSymbol> p1, ImmutableArray<ParameterSymbol> p2) 3855ImmutableArray<int> argToParamMap, 3861out ImmutableArray<TypeWithAnnotations> parameterTypes, 3862out ImmutableArray<RefKind> parameterRefKinds) 3877internal readonly ImmutableArray<TypeWithAnnotations> ParameterTypes; 3878internal readonly ImmutableArray<RefKind> ParameterRefKinds; 3881internal EffectiveParameters(ImmutableArray<TypeWithAnnotations> types, ImmutableArray<RefKind> refKinds, int firstParamsElementIndex) 3894ImmutableArray<int> argToParamMap, 3904ImmutableArray<ParameterSymbol> parameters = member.GetParametersIncludingExtensionParameter(skipExtensionIfStatic: false); 3921var parameterTypes = isExtensionBlockMember ? GetParameterTypesIncludingReceiver(member) : member.GetParameterTypes(); 3958var refKinds = refs != null ? refs.ToImmutableAndFree() : default(ImmutableArray<RefKind>); 4044ImmutableArray<int> argToParamMap, 4055ImmutableArray<int> argToParamMap, 4066var parameters = member.GetParametersIncludingExtensionParameter(skipExtensionIfStatic: false); 4104var refKinds = anyRef ? refs.ToImmutable() : default(ImmutableArray<RefKind>); 4259ImmutableArray<int> argsToParamsMap, 4276ImmutableArray<TypeWithAnnotations> typeArguments; 4304ImmutableArray<TypeParameterSymbol> typeParameters = leastOverriddenMember.GetTypeParametersIncludingExtension(); 4350var parameterTypes = isExtensionBlockMember 4395static ImmutableArray<TypeWithAnnotations> getAllTypeArguments(TMember member, bool isExtensionBlockMember) 4406var result = property.ContainingType.TypeArgumentsWithAnnotationsNoUseSiteDiagnostics; 4415private ImmutableArray<TypeWithAnnotations> InferMethodTypeArguments<TMember>( 4417ImmutableArray<TypeParameterSymbol> originalTypeParameters, 4425var args = arguments.Arguments.ToImmutable(); 4459var extensionTypeArguments = MethodTypeInferrer.InferTypeArgumentsFromReceiverType(member.ContainingType, args[0], _binder.Compilation, _binder.Conversions, ref useSiteInfo); 4482return default(ImmutableArray<TypeWithAnnotations>); 4488return default(ImmutableArray<TypeWithAnnotations>); 4497ImmutableArray<int> argsToParameters, 4674var conversionsArray = conversions != null ? conversions.ToImmutableAndFree() : default(ImmutableArray<Conversion>);
Binder\Semantics\OverloadResolution\OverloadResolutionResult.cs (23)
102public ImmutableArray<MemberResolutionResult<TMember>> Results 151internal ImmutableArray<TMember> GetAllApplicableMembers() 214ImmutableArray<T> memberGroup, // the T is just a convenience for the caller 233var symbols = StaticCast<Symbol>.From(memberGroup); 603private static void ReportUnsupportedMetadata(Location location, BindingDiagnosticBag diagnostics, ImmutableArray<Symbol> symbols, MemberResolutionResult<TMember> firstUnsupported) 618private static void ReportWrongCallingConvention(Location location, BindingDiagnosticBag diagnostics, ImmutableArray<Symbol> symbols, MemberResolutionResult<TMember> firstSupported, MethodSymbol target) 645ImmutableArray<Symbol> symbols, 664ImmutableArray<Symbol> symbols, 763ImmutableArray<Symbol> symbols, 828ImmutableArray<Symbol> symbols) 848ImmutableArray<Symbol> symbols) 881ImmutableArray<Symbol> symbols) 916ImmutableArray<Symbol> symbols, 933ImmutableArray<ParameterSymbol> parameters = badMember.GetParametersIncludingExtensionParameter(skipExtensionIfStatic: false); 961ImmutableArray<Symbol> symbols, 1124ImmutableArray<Symbol> symbols, 1157var parameters = method.GetParametersIncludingExtensionParameter(skipExtensionIfStatic: false); 1193ImmutableArray<Symbol> symbols, 1212var parameters = method.GetParametersIncludingExtensionParameter(skipExtensionIfStatic: false); 1379ImmutableArray<CustomModifier>.Empty, 1430private bool HadAmbiguousWorseMethods(CSharpCompilation compilation, BindingDiagnosticBag diagnostics, ImmutableArray<Symbol> symbols, Location location, bool isQuery, BoundExpression receiver, string name, bool isExtension) 1496private bool HadAmbiguousBestMethods(CSharpCompilation compilation, BindingDiagnosticBag diagnostics, ImmutableArray<Symbol> symbols, Location location, bool isExtension) 1552internal static DiagnosticInfoWithSymbols CreateAmbiguousCallDiagnosticInfo(CSharpCompilation compilation, Symbol first, Symbol second, ImmutableArray<Symbol> symbols, bool isExtension)
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_Patterns.cs (6)
42ImmutableArray<BoundSwitchSection> switchSections = BindSwitchSections(originalBinder, diagnostics, out BoundSwitchLabel defaultLabel); 43ImmutableArray<LocalSymbol> locals = GetDeclaredLocalsForScope(node); 44ImmutableArray<LocalFunctionSymbol> functions = GetDeclaredLocalFunctionsForScope(node); 70innerLocalFunctions: ImmutableArray<MethodSymbol>.CastUp(functions), 78ref ImmutableArray<BoundSwitchSection> switchSections, 170private ImmutableArray<BoundSwitchSection> BindSwitchSections(
Binder\SwitchBinder.cs (10)
25private ImmutableArray<Diagnostic> _switchGoverningDiagnostics; 26private ImmutableArray<AssemblySymbol> _switchGoverningDependencies; 96private static Dictionary<object, SourceLabelSymbol> BuildLabelsByValue(ImmutableArray<LabelSymbol> labels) 137protected override ImmutableArray<LocalSymbol> BuildLocals() 149protected override ImmutableArray<LocalFunctionSymbol> BuildLocalFunctions() 174protected override ImmutableArray<LabelSymbol> BuildLabels() 351internal override ImmutableArray<LocalSymbol> GetDeclaredLocalsForScope(SyntaxNode scopeDesignator) 361internal override ImmutableArray<LocalFunctionSymbol> GetDeclaredLocalFunctionsForScope(CSharpSyntaxNode scopeDesignator) 469return new BoundBadExpression(node, LookupResultKind.Empty, ImmutableArray<Symbol>.Empty, ImmutableArray.Create(switchGoverningExpression), switchGoverningType ?? CreateErrorType()); 570childBoundNodes: gotoCaseExpressionOpt != null ? ImmutableArray.Create<BoundNode>(gotoCaseExpressionOpt) : ImmutableArray<BoundNode>.Empty,
Binder\SwitchExpressionArmBinder.cs (1)
41ImmutableArray<LocalSymbol> locals = _armScopeBinder.Locals;
Binder\SwitchExpressionBinder.cs (5)
32ImmutableArray<BoundSwitchExpressionArm> switchArms = BindSwitchExpressionArms(node, originalBinder, boundInputExpression, diagnostics); 64ImmutableArray<BoundSwitchExpressionArm> switchArms, 98bool wasAcyclic = TopologicalSort.TryIterativeSort(decisionDag.RootNode, addNonNullSuccessors, out var nodes); 150private TypeSymbol? InferResultType(ImmutableArray<BoundSwitchExpressionArm> switchCases, BindingDiagnosticBag diagnostics) 186private ImmutableArray<BoundSwitchExpressionArm> BindSwitchExpressionArms(SwitchExpressionSyntax node, Binder originalBinder, BoundExpression inputExpression, BindingDiagnosticBag diagnostics)
Binder\UnionMatchingRewriter.cs (1)
136ImmutableArray<BoundPattern> subpatterns = this.VisitList(node.Subpatterns).SelectAsArray(RewritePatternWithUnionMatchingToPropertyPattern);
Binder\UsingStatementBinder.cs (5)
27protected override ImmutableArray<LocalSymbol> BuildLocals() 108ImmutableArray<BoundLocalDeclaration> declarationsOpt = default; 210ImmutableArray<int> argsToParams = default; 318internal override ImmutableArray<LocalSymbol> GetDeclaredLocalsForScope(SyntaxNode scopeDesignator) 328internal 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); 126ImmutableArray<Symbol> candidates = Binder.GetCandidateMembers(typeOrNamespace.NamespaceOrType, name, options, originalBinder: originalBinder); 250internal static WithUsingNamespacesAndTypesBinder Create(ImmutableArray<NamespaceOrTypeAndUsingDirective> namespacesOrTypes, Binder next, bool withImportChainEntry = false) 259private ImmutableArray<NamespaceOrTypeAndUsingDirective> _lazyUsings; 269internal override ImmutableArray<NamespaceOrTypeAndUsingDirective> GetUsings(ConsList<TypeSymbol>? basesBeingResolved) 299internal override ImmutableArray<NamespaceOrTypeAndUsingDirective> GetUsings(ConsList<TypeSymbol>? basesBeingResolved) 324private readonly ImmutableArray<NamespaceOrTypeAndUsingDirective> _usings; 326internal FromNamespacesOrTypes(ImmutableArray<NamespaceOrTypeAndUsingDirective> namespacesOrTypes, Binder next, bool withImportChainEntry) 333internal override ImmutableArray<NamespaceOrTypeAndUsingDirective> GetUsings(ConsList<TypeSymbol>? basesBeingResolved) 340return 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)
50public static UncommonData? CreateIfNeeded(ConstantValue? constantValue, MethodSymbol? method, TypeSymbol? constrainedToType, ImmutableArray<MethodSymbol> originalUserDefinedOperatorsOpt) 69public readonly ImmutableArray<MethodSymbol> OriginalUserDefinedOperatorsOpt; 71private 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; 210var allStates = this.TopologicallySortedNodes;
BoundTree\BoundDynamicObjectCreationExpression.cs (1)
14public override ImmutableArray<int> ArgsToParamsOpt => default;
BoundTree\BoundExpression.cs (6)
427internal ImmutableArray<MethodSymbol> OriginalUserDefinedOperatorsOpt => Data?.OriginalUserDefinedOperatorsOpt ?? default(ImmutableArray<MethodSymbol>); 556ImmutableArray<BoundExpression> newArguments, 557ImmutableArray<RefKind> newRefKinds, 564argumentNamesOpt: default(ImmutableArray<string?>), 567argsToParamsOpt: default(ImmutableArray<int>),
BoundTree\BoundExpressionExtensions.cs (2)
219var originalMethods = ((BoundCall)node).OriginalMethodsOpt; 231var originalIndexers = ((BoundIndexerAccess)node).OriginalIndexersOpt;
BoundTree\BoundListPattern.cs (1)
14internal BoundListPattern WithSubpatterns(ImmutableArray<BoundPattern> subpatterns)
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_Source.cs (2)
34var catchBlocks = tryStatement.CatchBlocks; 87var statements = block.Statements;
BoundTree\BoundNode.cs (3)
368ImmutableArray<BoundNode>.CastUp(collection.Elements.CastArray<BoundExpression>()) == collection.Elements); 556private void AddAll(ImmutableArray<LocalSymbol> locals) 567private void RemoveAll(ImmutableArray<LocalSymbol> locals)
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 (10)
22public ImmutableArray<T> VisitList<T>(ImmutableArray<T> list) where T : BoundNode 32private ImmutableArray<T> DoVisitList<T>(ImmutableArray<T> list) where T : BoundNode 161public ImmutableArray<T> VisitSymbols<T>(ImmutableArray<T> symbols) where T : Symbol? 196protected virtual ImmutableArray<LocalSymbol> VisitLocals(ImmutableArray<LocalSymbol> locals) => locals; 198protected virtual ImmutableArray<MethodSymbol> VisitDeclaredLocalFunctions(ImmutableArray<MethodSymbol> localFunctions) => localFunctions;
BoundTree\BoundTreeWalker.cs (2)
17public void VisitList<T>(ImmutableArray<T> list) where T : BoundNode 41var arguments = call.Arguments;
BoundTree\Constructors.cs (58)
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, 157argsToParamsOpt: default(ImmutableArray<int>), 165public BoundCall Update(ImmutableArray<BoundExpression> arguments) 170public BoundCall Update(BoundExpression? receiverOpt, ThreeState initialBindingReceiverIsSubjectToCloning, MethodSymbol method, ImmutableArray<BoundExpression> arguments) 177return Synthesized(syntax, receiverOpt, initialBindingReceiverIsSubjectToCloning: initialBindingReceiverIsSubjectToCloning, method, ImmutableArray<BoundExpression>.Empty); 190public static BoundCall Synthesized(SyntaxNode syntax, BoundExpression? receiverOpt, ThreeState initialBindingReceiverIsSubjectToCloning, MethodSymbol method, ImmutableArray<BoundExpression> arguments, ImmutableArray<RefKind> argumentRefKindsOpt = default) 223argumentNamesOpt: default(ImmutableArray<string?>), 228argsToParamsOpt: default(ImmutableArray<int>), 237static ImmutableArray<RefKind> getArgumentRefKinds(MethodSymbol method) 239var result = method.ParameterRefKinds; 261: this(syntax, constructor, ImmutableArray.Create<BoundExpression>(arguments), default(ImmutableArray<string?>), default(ImmutableArray<RefKind>), false, default(ImmutableArray<int>), default(BitVector), null, null, constructor.ContainingType) 264public BoundObjectCreationExpression(SyntaxNode syntax, MethodSymbol constructor, ImmutableArray<BoundExpression> arguments) 265: this(syntax, constructor, arguments, default(ImmutableArray<string?>), default(ImmutableArray<RefKind>), false, default(ImmutableArray<int>), default(BitVector), null, null, constructor.ContainingType) 276ImmutableArray<BoundExpression> arguments, 277ImmutableArray<string?> namedArguments, 278ImmutableArray<RefKind> refKinds, 279ImmutableArray<PropertySymbol> originalIndexers) 291argsToParamsOpt: default(ImmutableArray<int>), 302ImmutableArray<BoundExpression> arguments, 303ImmutableArray<string?> argumentNamesOpt, 304ImmutableArray<RefKind> argumentRefKindsOpt, 307ImmutableArray<int> argsToParamsOpt, 317ImmutableArray<BoundExpression> arguments, 318ImmutableArray<string?> argumentNamesOpt, 319ImmutableArray<RefKind> argumentRefKindsOpt, 322ImmutableArray<int> argsToParamsOpt, 421ImmutableArray<MethodSymbol> originalUserDefinedOperatorsOpt, 484public BoundTypeExpression(SyntaxNode syntax, AliasSymbol? aliasOpt, BoundTypeExpression? boundContainingTypeOpt, ImmutableArray<BoundExpression> boundDimensionsOpt, TypeWithAnnotations typeWithAnnotations, bool hasErrors = false) 491: this(syntax, aliasOpt, boundContainingTypeOpt, ImmutableArray<BoundExpression>.Empty, typeWithAnnotations, hasErrors) 505public BoundTypeExpression(SyntaxNode syntax, AliasSymbol? aliasOpt, ImmutableArray<BoundExpression> dimensionsOpt, TypeWithAnnotations typeWithAnnotations, bool hasErrors = false) 540public BoundBadExpression(SyntaxNode syntax, LookupResultKind resultKind, ImmutableArray<Symbol?> symbols, ImmutableArray<BoundExpression> childBoundNodes, TypeSymbol type) 559public static BoundStatementList Synthesized(SyntaxNode syntax, ImmutableArray<BoundStatement> statements) 564public static BoundStatementList Synthesized(SyntaxNode syntax, bool hasErrors, ImmutableArray<BoundStatement> statements) 596public BoundBlock(SyntaxNode syntax, ImmutableArray<LocalSymbol> locals, ImmutableArray<BoundStatement> statements, bool hasErrors = false) 597: this(syntax, locals, ImmutableArray<MethodSymbol>.Empty, hasUnsafeModifier: false, instrumentation: null, statements, hasErrors) 603return new BoundBlock(syntax, ImmutableArray<LocalSymbol>.Empty, ImmutableArray.Create(statement)) 607public static BoundBlock SynthesizedNoLocals(SyntaxNode syntax, ImmutableArray<BoundStatement> statements) 609return new BoundBlock(syntax, ImmutableArray<LocalSymbol>.Empty, statements) { WasCompilerGenerated = true }; 614return new BoundBlock(syntax, ImmutableArray<LocalSymbol>.Empty, statements.AsImmutableOrNull()) { WasCompilerGenerated = true }; 628public 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 (3)
176ImmutableArray<MethodSymbol> originalUserDefinedOperatorsOpt = GetUpdatedArray(node, node.OriginalUserDefinedOperatorsOpt); 307private 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 (82)
44internal readonly ImmutableArray<CustomModifier> RefCustomModifiers; 47internal readonly ImmutableArray<DiagnosticInfo> UseSiteDiagnostics; 48internal readonly ImmutableArray<AssemblySymbol> Dependencies; 55ImmutableArray<CustomModifier> refCustomModifiers, 58ImmutableArray<DiagnosticInfo> useSiteDiagnostics, 59ImmutableArray<AssemblySymbol> dependencies) 180ImmutableArray<TypeWithAnnotations> parameterTypes, 181ImmutableArray<RefKind> parameterRefKinds, 183ImmutableArray<CustomModifier> refCustomModifiers) 254useSiteInfo.AccumulatesDependencies ? useSiteInfo.Dependencies.AsImmutableOrEmpty() : ImmutableArray<AssemblySymbol>.Empty); 411ImmutableArray<CustomModifier> refCustomModifiers, 413ImmutableArray<SyntaxList<AttributeListSyntax>> parameterAttributes, 414ImmutableArray<RefKind> refKinds, 415ImmutableArray<ScopedKind> declaredScopes, 416ImmutableArray<TypeWithAnnotations> types, 417ImmutableArray<string> names, 418ImmutableArray<bool> discardsOpt, 420ImmutableArray<EqualsValueClauseSyntax?> defaultValues, 480public bool HasExplicitReturnType(out RefKind refKind, out ImmutableArray<CustomModifier> refCustomModifiers, out TypeWithAnnotations returnType) 595public abstract bool HasExplicitReturnType(out RefKind refKind, out ImmutableArray<CustomModifier> refCustomModifiers, out TypeWithAnnotations returnType); 677private static TypeWithAnnotations DelegateReturnTypeWithAnnotations(MethodSymbol? invokeMethod, out RefKind refKind, out ImmutableArray<CustomModifier> refCustomModifiers) 690internal (ImmutableArray<RefKind>, ArrayBuilder<ScopedKind>, ImmutableArray<TypeWithAnnotations>, bool) CollectParameterProperties() 732var parameterRefKinds = parameterRefKindsBuilder.ToImmutableAndFree(); 733var parameterTypes = parameterTypesBuilder.ToImmutableAndFree(); 823var returnType = DelegateReturnTypeWithAnnotations(invokeMethod, out RefKind refKind, out ImmutableArray<CustomModifier> refCustomModifiers); 874var lambdaParameters = lambdaSymbol.Parameters; 935ImmutableArray<TypeWithAnnotations> parameterTypes, 936ImmutableArray<RefKind> parameterRefKinds, 938ImmutableArray<CustomModifier> refCustomModifiers) 953var returnType = DelegateReturnTypeWithAnnotations(invokeMethod, out RefKind refKind, out ImmutableArray<CustomModifier> refCustomModifiers); 954ReturnInferenceCacheKey.GetFields(delegateType, IsAsync, out var parameterTypes, out var parameterRefKinds, out _); 958private void ValidateUnsafeParameters(BindingDiagnosticBag diagnostics, ImmutableArray<TypeWithAnnotations> targetParameterTypes) 985ImmutableArray<TypeWithAnnotations> parameterTypes, 986ImmutableArray<RefKind> parameterRefKinds) 988bool hasExplicitReturnType = HasExplicitReturnType(out var refKind, out ImmutableArray<CustomModifier> refCustomModifiers, out var returnType); 1003ImmutableArray<DiagnosticInfo>.Empty, 1004ImmutableArray<AssemblySymbol>.Empty); 1051ImmutableArray<TypeWithAnnotations> parameterTypes, 1052ImmutableArray<RefKind> parameterRefKinds, 1055ImmutableArray<CustomModifier> refCustomModifiers 1090public readonly ImmutableArray<TypeWithAnnotations> ParameterTypes; 1091public readonly ImmutableArray<RefKind> ParameterRefKinds; 1094public static readonly ReturnInferenceCacheKey Empty = new ReturnInferenceCacheKey(ImmutableArray<TypeWithAnnotations>.Empty, ImmutableArray<RefKind>.Empty, null); 1096private ReturnInferenceCacheKey(ImmutableArray<TypeWithAnnotations> parameterTypes, ImmutableArray<RefKind> parameterRefKinds, NamedTypeSymbol? taskLikeReturnTypeOpt) 1145GetFields(delegateType, isAsync, out var parameterTypes, out var parameterRefKinds, out var taskLikeReturnTypeOpt); 1156out ImmutableArray<TypeWithAnnotations> parameterTypes, 1157out ImmutableArray<RefKind> parameterRefKinds, 1162parameterTypes = ImmutableArray<TypeWithAnnotations>.Empty; 1163parameterRefKinds = ImmutableArray<RefKind>.Empty; 1248?? rebind(ReallyInferReturnType(delegateType: null, ImmutableArray<TypeWithAnnotations>.Empty, ImmutableArray<RefKind>.Empty)); 1256ReturnInferenceCacheKey.GetFields(delegateType, IsAsync, out var parameterTypes, out var parameterRefKinds, out _); 1264ImmutableArray<TypeWithAnnotations> parameterTypes, 1265ImmutableArray<RefKind> parameterRefKinds) 1269var refCustomModifiers = inferredReturnType.RefCustomModifiers; 1302ImmutableArray<DiagnosticInfo>.Empty, 1303ImmutableArray<AssemblySymbol>.Empty)) 1443private static FirstAmongEqualsSet<Diagnostic> CreateFirstAmongEqualsSet(ImmutableArray<Diagnostic> bag) 1497private readonly ImmutableArray<CustomModifier> _refCustomModifiers; 1499private readonly ImmutableArray<SyntaxList<AttributeListSyntax>> _parameterAttributes; 1500private readonly ImmutableArray<string> _parameterNames; 1501private readonly ImmutableArray<bool> _parameterIsDiscardOpt; 1502private readonly ImmutableArray<TypeWithAnnotations> _parameterTypesWithAnnotations; 1503private readonly ImmutableArray<RefKind> _parameterRefKinds; 1504private readonly ImmutableArray<ScopedKind> _parameterDeclaredScopes; 1505private readonly ImmutableArray<EqualsValueClauseSyntax?> _defaultValues; 1513ImmutableArray<CustomModifier> refCustomModifiers, 1515ImmutableArray<SyntaxList<AttributeListSyntax>> parameterAttributes, 1516ImmutableArray<string> parameterNames, 1517ImmutableArray<bool> parameterIsDiscardOpt, 1518ImmutableArray<TypeWithAnnotations> parameterTypesWithAnnotations, 1519ImmutableArray<RefKind> parameterRefKinds, 1520ImmutableArray<ScopedKind> parameterDeclaredScopes, 1521ImmutableArray<EqualsValueClauseSyntax?> defaultValues, 1545public override bool HasExplicitReturnType(out RefKind refKind, out ImmutableArray<CustomModifier> refCustomModifiers, out TypeWithAnnotations returnType) 1640var statements = body.Statements;
CodeGen\CodeGenerator_RefSafety.cs (4)
12/// <inheritdoc cref="MightEscapeTemporaryRefs(bool, TypeSymbol, RefKind, ParameterSymbol?, ImmutableArray{ParameterSymbol})"/> 23/// <inheritdoc cref="MightEscapeTemporaryRefs(bool, TypeSymbol, RefKind, ParameterSymbol?, ImmutableArray{ParameterSymbol})"/> 34/// <inheritdoc cref="MightEscapeTemporaryRefs(bool, TypeSymbol, RefKind, ParameterSymbol?, ImmutableArray{ParameterSymbol})"/> 66ImmutableArray<ParameterSymbol> parameters)
CodeGen\CodeGenerator.cs (6)
203dynamicTransformFlags: ImmutableArray<bool>.Empty, 204tupleElementNames: ImmutableArray<string>.Empty, 235out ImmutableArray<int> asyncYieldPoints, 236out ImmutableArray<int> asyncResumePoints, 252asyncYieldPoints = ImmutableArray<int>.Empty; 253asyncResumePoints = ImmutableArray<int>.Empty;
CodeGen\EmitAddress.cs (1)
389private void EmitArrayIndices(ImmutableArray<BoundExpression> indices)
CodeGen\EmitArrayInitializer.cs (21)
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, 173var inits = top.Initializers; 246private ArrayInitializerStyle ShouldEmitBlockInitializer(TypeSymbol elementType, ImmutableArray<BoundExpression> inits) 296private void InitializerCountRecursive(ImmutableArray<BoundExpression> inits, ref int initCount, ref int constInits) 331private ImmutableArray<byte> GetRawData(ImmutableArray<BoundExpression> initializers) 343private void SerializeArrayRecursive(BlobBuilder bw, ImmutableArray<BoundExpression> inits) 367private static bool IsMultidimensionalInitializer(ImmutableArray<BoundExpression> inits) 480ImmutableArray<BoundExpression> initializers = initializer.Initializers; 509ImmutableArray<byte> data = GetRawDataForArrayInit(initializers); 630bool tryEmitAsCachedArrayFromBlob(NamedTypeSymbol spanType, BoundExpression wrappedExpression, int elementCount, ImmutableArray<byte> data, ref ArrayTypeSymbol arrayType, TypeSymbol elementType) 692var initializers = initializer.Initializers; 706ImmutableArray<ConstantValue> constants = initializers.SelectAsArray(static init => init.ConstantValueOpt!); 811private ImmutableArray<byte> GetRawDataForArrayInit(ImmutableArray<BoundExpression> initializers)
CodeGen\EmitConversion.cs (1)
414var parameters = m.Parameters;
CodeGen\EmitExpression.cs (11)
944var sideEffects = sequence.SideEffects; 954private void EmitArguments(ImmutableArray<BoundExpression> arguments, ImmutableArray<ParameterSymbol> parameters, ImmutableArray<RefKind> argRefKindsOpt) 975internal static RefKind GetArgumentRefKind(ImmutableArray<BoundExpression> arguments, ImmutableArray<ParameterSymbol> parameters, ImmutableArray<RefKind> argRefKindsOpt, int i) 1684var arguments = call.Arguments; 2038var arguments = call.Arguments; 2165internal static bool IsSafeToDereferenceReceiverRefAfterEvaluatingArguments(ImmutableArray<BoundExpression> arguments) 2287private 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) 162private void StackAllocInitializerCount(ImmutableArray<BoundExpression> inits, ref int initCount, ref int constInits) 181private void EmitElementStackAllocInitializers(TypeSymbol elementType, ImmutableArray<BoundExpression> inits, bool includeConstants)
CodeGen\EmitStatement.cs (7)
762var declaringReferences = local.DeclaringSyntaxReferences; 794private void EmitStatements(ImmutableArray<BoundStatement> statements) 1139var declaringReferences = local.DeclaringSyntaxReferences; 1792var dynamicTransformFlags = !local.IsCompilerGenerated && local.Type.ContainsDynamic() ? 1794ImmutableArray<bool>.Empty; 1795var tupleElementNames = !local.IsCompilerGenerated && local.Type.ContainsTupleNames() ? 1797ImmutableArray<string>.Empty;
CodeGen\Optimizer.cs (21)
691var locals = node.Locals; 719var sideeffects = node.SideEffects; 763var sideeffects = node.SideEffects; 1185receiver = typeExpression.Update(aliasOpt: null, boundContainingTypeOpt: null, boundDimensionsOpt: ImmutableArray<BoundExpression>.Empty, 1199var rewrittenArguments = VisitArguments(node.Arguments, node.Method.Parameters, node.ArgumentRefKindsOpt); 1266private ImmutableArray<BoundExpression> VisitArguments(ImmutableArray<BoundExpression> arguments, ImmutableArray<ParameterSymbol> parameters, ImmutableArray<RefKind> argRefKindsOpt) 1283private void VisitArgument(ImmutableArray<BoundExpression> arguments, ref ArrayBuilder<BoundExpression> rewrittenArguments, int i, RefKind argRefKind) 1306ImmutableArray<BoundExpression> arguments = node.Arguments; 1307ImmutableArray<RefKind> argRefKindsOpt = node.ArgumentRefKindsOpt; 1330var rewrittenArguments = VisitArguments(node.Arguments, constructor.Parameters, node.ArgumentRefKindsOpt); 1686var catchBlocks = this.VisitList(node.CatchBlocks); 1772var initializers = node.Initializers; 2002private void DeclareLocals(ImmutableArray<LocalSymbol> locals, int stack) 2204ImmutableArray<BoundExpression> arguments = this.VisitList(node.Arguments); 2326receiverOpt = typeExpression.Update(aliasOpt: null, boundContainingTypeOpt: null, boundDimensionsOpt: ImmutableArray<BoundExpression>.Empty, 2340ImmutableArray<BoundExpression> arguments = this.VisitList(node.Arguments); 2457public override ImmutableArray<Location> Locations 2462public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
CommandLine\CSharpCommandLineParser.cs (6)
80ImmutableArray<KeyValuePair<string, string>> pathMap = ImmutableArray<KeyValuePair<string, string>>.Empty; 1457ImmutableArray<string> referencePaths = BuildSearchPaths(sdkDirectory, libPaths, responsePaths); 1752private ImmutableArray<string> BuildSearchPaths(string? sdkDirectoryOpt, List<string> libPaths, List<string>? responsePathsOpt) 1988var 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, SourceHashAlgorithm checksumAlgorithm) 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 (81)
56private ImmutableArray<NamespaceOrTypeAndUsingDirective> _lazyGlobalImports; 71private ConcurrentDictionary<ImportInfo, ImmutableArray<AssemblySymbol>>? _lazyImportInfos; 75private ImmutableArray<Diagnostic> _lazyClsComplianceDiagnostics; 76private ImmutableArray<AssemblySymbol> _lazyClsComplianceDependencies; 167private ImmutableArray<MethodBodyDiagnostics> _methodBodiesInTreeDiagnostics = ImmutableArray<MethodBodyDiagnostics>.Empty; 495var validatedReferences = ValidateReferences<CSharpCompilationReference>(references); 517ImmutableArray<SyntaxTree>.Empty, 537ImmutableArray<MetadataReference> references, 554ImmutableArray<MetadataReference> references, 617private static LanguageVersion CommonLanguageVersion(ImmutableArray<SyntaxTree> syntaxTrees) 903public new ImmutableArray<SyntaxTree> SyntaxTrees 1059syntaxAndDeclarations: syntaxAndDeclarations.WithExternalSyntaxTrees(ImmutableArray<SyntaxTree>.Empty)); 1091var externalSyntaxTrees = syntaxAndDeclarations.ExternalSyntaxTrees; 1244public override ImmutableArray<MetadataReference> DirectiveReferences 1372public override CompilationReference ToMetadataReference(ImmutableArray<string> aliases = default, bool embedInteropTypes = false) 1650internal ImmutableArray<NamespaceOrTypeAndUsingDirective> GlobalImports 1653private ImmutableArray<NamespaceOrTypeAndUsingDirective> BindGlobalImports() 1657var previousSubmissionImports = previousSubmission is object ? Imports.ExpandPreviousSubmissionImports(previousSubmission.GlobalImports, this) : ImmutableArray<NamespaceOrTypeAndUsingDirective>.Empty; 1861ImmutableArray<Symbol>.Empty, 1862ImmutableArray<Location>.Empty 2140var taskCandidates = taskEntryPoints.SelectAsArray(s => (Symbol)s.Candidate); 2141var taskLocations = taskCandidates.SelectAsArray(s => s.GetFirstLocation()); 2534private sealed class InterceptorKeyComparer : IEqualityComparer<(ImmutableArray<byte> ContentHash, int Position)> 2539public bool Equals((ImmutableArray<byte> ContentHash, int Position) x, (ImmutableArray<byte> ContentHash, int Position) y) 2544public int GetHashCode((ImmutableArray<byte> ContentHash, int Position) obj) 2553private ConcurrentDictionary<(ImmutableArray<byte> ContentHash, int Position), OneOrMany<(Location AttributeLocation, MethodSymbol Interceptor)>>? _interceptions; 2555internal void AddInterception(ImmutableArray<byte> contentHash, int position, Location attributeLocation, MethodSymbol interceptor) 2561() => new ConcurrentDictionary<(ImmutableArray<byte> ContentHash, int Position), OneOrMany<(Location AttributeLocation, MethodSymbol Interceptor)>>(comparer: InterceptorKeyComparer.Instance)); 2777ImmutableArray<AssemblySymbol> dependencies = pair.Value; 2883internal void RecordImportDependencies(UsingDirectiveSyntax syntax, ImmutableArray<AssemblySymbol> dependencies) 2988public override ImmutableArray<Diagnostic> GetParseDiagnostics(CancellationToken cancellationToken = default) 2997public override ImmutableArray<Diagnostic> GetDeclarationDiagnostics(CancellationToken cancellationToken = default) 3005public override ImmutableArray<Diagnostic> GetMethodBodyDiagnostics(CancellationToken cancellationToken = default) 3014public override ImmutableArray<Diagnostic> GetDiagnostics(CancellationToken cancellationToken = default) 3019internal ImmutableArray<Diagnostic> GetDiagnostics(CompilationStage stage, bool includeEarlierStages, Predicate<ISymbolInternal>? symbolFilter, CancellationToken cancellationToken) 3048var syntaxTrees = this.SyntaxTrees; 3137ImmutableArray<LoadDirective> loadDirectives; 3201public ImmutableArray<Diagnostic> Diagnostics { get; } 3203public MethodBodyDiagnostics(SyntaxTree tree, TextSpan? span, ImmutableArray<Diagnostic> diagnostics) 3211private ImmutableArray<Diagnostic> GetDiagnosticsForMethodBodiesInTree(SyntaxTree tree, TextSpan? span, CancellationToken cancellationToken) 3217var cachedDiagnostics = _methodBodiesInTreeDiagnostics; 3303var diagnostics = bindingDiagnostics.ToReadOnlyAndFree().Diagnostics; 3308void updateCachedDiagnostics(ImmutableArray<Diagnostic> diagnostics, SyntaxTree tree, TextSpan? span) 3313var cachedDiagnostics = _methodBodiesInTreeDiagnostics; 3324var newDiagnostics = cachedDiagnostics; 3336var originalDiagnostics = ImmutableInterlocked.InterlockedCompareExchange(ref _methodBodiesInTreeDiagnostics, newDiagnostics, cachedDiagnostics); 3440return new ReadOnlyBindingDiagnostic<AssemblySymbol>(result.AsImmutable(), ImmutableArray<AssemblySymbol>.Empty); 3478internal ImmutableArray<Diagnostic> GetDiagnosticsForSyntaxTree( 3756IReadOnlyDictionary<ISymbolInternal, ImmutableArray<ISymbolInternal>> otherSynthesizedMembers, 3757IReadOnlyDictionary<ISymbolInternal, ImmutableArray<ISymbolInternal>> otherDeletedMembers) 3781public bool CheckDuplicateFilePathsAndFree(ImmutableArray<SyntaxTree> syntaxTrees, NamespaceSymbol globalNamespace) 3937ImmutableArray<ModuleSymbol> modules = SourceAssembly.Modules; 3942ImmutableArray<EmbeddedResource> resources; 4073private static bool ChecksumMatches(string bytesText, ImmutableArray<byte> bytes) 4095private static ImmutableArray<byte> MakeChecksumBytes(string bytesText) 4163protected internal override ImmutableArray<SyntaxTree> CommonSyntaxTrees 4254ImmutableArray<ITypeSymbol> parameterTypes, 4255ImmutableArray<RefKind> parameterRefKinds, 4257ImmutableArray<INamedTypeSymbol> callingConventionTypes) 4305var parameterTypesWithAnnotations = parameterTypes.SelectAsArray( 4308var conventionModifiers = internalCallingConvention == CallingConvention.Unmanaged && !callingConventionTypes.IsDefaultOrEmpty 4310: ImmutableArray<CustomModifier>.Empty; 4349ImmutableArray<ITypeSymbol> elementTypes, 4350ImmutableArray<string?> elementNames, 4351ImmutableArray<Location?> elementLocations, 4352ImmutableArray<CodeAnalysis.NullableAnnotation> elementNullableAnnotations) 4376ImmutableArray<string?> elementNames, 4377ImmutableArray<Location?> elementLocations, 4378ImmutableArray<CodeAnalysis.NullableAnnotation> elementNullableAnnotations) 4404ImmutableArray<ITypeSymbol> memberTypes, 4405ImmutableArray<string> memberNames, 4406ImmutableArray<Location> memberLocations, 4407ImmutableArray<bool> memberIsReadOnly, 4408ImmutableArray<CodeAnalysis.NullableAnnotation> memberNullableAnnotations) 4965internal override AnalyzerDriver CreateAnalyzerDriver(ImmutableArray<DiagnosticAnalyzer> analyzers, AnalyzerManager analyzerManager, SeverityFilter severityFilter) 4998var preprocessorSymbols = GetPreprocessorSymbols(); 5013private ImmutableArray<string> GetPreprocessorSymbols() 5019return 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)
169internal abstract BoundExpression GetSpeculativelyBoundExpression(int position, ExpressionSyntax expression, SpeculativeBindingOption bindingOption, out Binder binder, out ImmutableArray<Symbol> crefSymbols); 179internal abstract ImmutableArray<Symbol> GetMemberGroupWorker(CSharpSyntaxNode node, SymbolInfoOptions options, CancellationToken cancellationToken = default(CancellationToken)); 189internal abstract ImmutableArray<IPropertySymbol> GetIndexerGroupWorker(CSharpSyntaxNode node, SymbolInfoOptions options, CancellationToken cancellationToken = default(CancellationToken)); 281protected BoundExpression GetSpeculativelyBoundExpressionWithoutNullability(int position, ExpressionSyntax expression, SpeculativeBindingOption bindingOption, out Binder binder, out ImmutableArray<Symbol> crefSymbols) 288crefSymbols = default(ImmutableArray<Symbol>); 326internal static ImmutableArray<Symbol> BindCref(CrefSyntax crefSyntax, Binder binder) 329var symbols = binder.BindCref(crefSyntax, out unusedAmbiguityWinner, BindingDiagnosticBag.Discarded); 338ImmutableArray<Symbol> symbols = BindCref(crefSyntax, binder); 737ImmutableArray<Symbol> crefSymbols; 1067ImmutableArray<Symbol> crefSymbols; 1100public ImmutableArray<ISymbol> GetMemberGroup(ExpressionSyntax expression, CancellationToken cancellationToken = default(CancellationToken)) 1106: ImmutableArray<ISymbol>.Empty; 1114public ImmutableArray<ISymbol> GetMemberGroup(AttributeSyntax attribute, CancellationToken cancellationToken = default(CancellationToken)) 1120: ImmutableArray<ISymbol>.Empty; 1128public ImmutableArray<ISymbol> GetMemberGroup(ConstructorInitializerSyntax initializer, CancellationToken cancellationToken = default(CancellationToken)) 1134: ImmutableArray<ISymbol>.Empty; 1151public ImmutableArray<IPropertySymbol> GetIndexerGroup(ExpressionSyntax expression, CancellationToken cancellationToken = default(CancellationToken)) 1157: ImmutableArray<IPropertySymbol>.Empty; 1214ImmutableArray<Symbol> crefSymbols; 1429public ImmutableArray<ISymbol> LookupSymbols( 1473public new ImmutableArray<ISymbol> LookupBaseMembers( 1498public ImmutableArray<ISymbol> LookupStaticMembers( 1524public ImmutableArray<ISymbol> LookupNamespacesAndTypes( 1546public new ImmutableArray<ISymbol> LookupLabels( 1573private ImmutableArray<ISymbol> LookupSymbolsInternal( 1601return ImmutableArray<ISymbol>.Empty; 1613return ImmutableArray<ISymbol>.Empty; 1930boundExpr, boundNodeForSyntacticParent, binderOpt, options, out bool isDynamic, out LookupResultKind resultKind, out ImmutableArray<Symbol> unusedMemberGroup); 1937ImmutableArray<Symbol> unusedHighestMemberGroup; 1953ImmutableArray<Symbol> unusedHighestMemberGroup; 1969return SymbolInfoFactory.Create(ImmutableArray<Symbol>.Empty, LookupResultKind.Empty, isDynamic); 2166conversion = Conversion.MakeConditionalExpression(ImmutableArray<Conversion>.Empty); 2283internal ImmutableArray<Symbol> GetMemberGroupForNode( 2292ImmutableArray<Symbol> memberGroup; 2299return ImmutableArray<Symbol>.Empty; 2306internal ImmutableArray<IPropertySymbol> GetIndexerGroupForNode( 2316return ImmutableArray<IPropertySymbol>.Empty; 3232internal abstract ImmutableArray<ISymbol> GetDeclaredSymbols(BaseFieldDeclarationSyntax declarationSyntax, CancellationToken cancellationToken = default(CancellationToken)); 3235ImmutableArray<ParameterSymbol> parameters, 3359out ImmutableArray<Symbol> memberGroup) 3361memberGroup = ImmutableArray<Symbol>.Empty; 3499ImmutableArray<PropertySymbol> originalIndexersOpt = indexerAccess.OriginalIndexersOpt; 3615var candidateSymbols = errorType.CandidateSymbols; 3964private static void GetSymbolsAndResultKind(BoundExpression node, Symbol symbolOpt, ImmutableArray<MethodSymbol> originalCandidates, out OneOrMany<Symbol> symbols, out LookupResultKind resultKind) 3992ref ImmutableArray<Symbol> memberGroup) 4045ref ImmutableArray<Symbol> memberGroup) 4058ImmutableArray<MethodSymbol> candidateConstructors; 4062var instanceConstructors = typeSymbolOpt.IsInterfaceType() && (object)typeSymbolOpt.ComImportCoClass != null ? 4079candidateConstructors = ImmutableArray<MethodSymbol>.Empty; 4106private ImmutableArray<IPropertySymbol> GetIndexerGroupSemanticSymbols(BoundExpression boundNode, Binder binderOpt) 4114return ImmutableArray<IPropertySymbol>.Empty; 4124return ImmutableArray<IPropertySymbol>.Empty; 4127var result = FilterOverriddenOrHiddenIndexers(symbols); 4133private static ImmutableArray<IPropertySymbol> FilterOverriddenOrHiddenIndexers(ArrayBuilder<ISymbol> symbols) 4220private static ImmutableArray<MethodSymbol> FilterOverriddenOrHiddenMethods(ImmutableArray<MethodSymbol> methods) 4263out ImmutableArray<Symbol> memberGroup) 4357ImmutableArray<Symbol> myMethodGroup = memberGroup; 4415out ImmutableArray<Symbol> propertyGroup) 4458ImmutableArray<Symbol> myPropertyGroup = propertyGroup; 4575private static ParameterSymbol FindNamedParameter(ImmutableArray<ParameterSymbol> parameters, string argumentName) 4586internal static ImmutableArray<Symbol> GetReducedAndFilteredMethodGroupSymbols(Binder binder, BoundMethodGroup node) 4591var typeArguments = node.TypeArgumentsOpt; 4599ImmutableArray<MethodSymbol> nonHiddenMethods = FilterOverriddenOrHiddenMethods(node.Methods); 4698ImmutableArray<TypeWithAnnotations> typeArguments, 4724ImmutableArray<TypeWithAnnotations> typeArguments, 4767var methods = call.OriginalMethodsOpt; 5059private ImmutableArray<ISymbol> GetMemberGroupFromNode(SyntaxNode node, CancellationToken cancellationToken) 5073return ImmutableArray<ISymbol>.Empty; 5076protected sealed override ImmutableArray<ISymbol> GetMemberGroupCore(SyntaxNode node, CancellationToken cancellationToken) 5078var methodGroup = this.GetMemberGroupFromNode(node, cancellationToken); 5225protected sealed override ImmutableArray<ISymbol> GetDeclaredSymbolsCore(SyntaxNode declaration, CancellationToken cancellationToken = default(CancellationToken)) 5251: ImmutableArray<ISymbol>.Empty; 5287var checksum = text.GetContentHash(); 5340protected sealed override ImmutableArray<ISymbol> LookupSymbolsCore(int position, INamespaceOrTypeSymbol container, string name, bool includeReducedExtensionMethods) 5345protected sealed override ImmutableArray<ISymbol> LookupBaseMembersCore(int position, string name) 5350protected sealed override ImmutableArray<ISymbol> LookupStaticMembersCore(int position, INamespaceOrTypeSymbol container, string name) 5355protected sealed override ImmutableArray<ISymbol> LookupNamespacesAndTypesCore(int position, INamespaceOrTypeSymbol container, string name) 5360protected sealed override ImmutableArray<ISymbol> LookupLabelsCore(int position, string name) 5466private protected sealed override ImmutableArray<IImportScope> GetImportScopesCore(int position, CancellationToken cancellationToken) 5484xmlNamespaces: 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)
192internal override BoundExpression GetSpeculativelyBoundExpression(int position, ExpressionSyntax expression, SpeculativeBindingOption bindingOption, out Binder binder, out ImmutableArray<Symbol> crefSymbols) 579public sealed override ImmutableArray<Diagnostic> GetSyntaxDiagnostics(TextSpan? span = null, CancellationToken cancellationToken = default(CancellationToken)) 584public sealed override ImmutableArray<Diagnostic> GetDeclarationDiagnostics(TextSpan? span = null, CancellationToken cancellationToken = default(CancellationToken)) 589public sealed override ImmutableArray<Diagnostic> GetMethodBodyDiagnostics(TextSpan? span = null, CancellationToken cancellationToken = default(CancellationToken)) 594public sealed override ImmutableArray<Diagnostic> GetDiagnostics(TextSpan? span = null, CancellationToken cancellationToken = default(CancellationToken)) 830internal override ImmutableArray<ISymbol> GetDeclaredSymbols(BaseFieldDeclarationSyntax declarationSyntax, CancellationToken cancellationToken = default(CancellationToken)) 1174var elements = tupleLiteralType.TupleElements; 1278internal override ImmutableArray<Symbol> GetMemberGroupWorker(CSharpSyntaxNode node, SymbolInfoOptions options, CancellationToken cancellationToken = default(CancellationToken)) 1290internal override ImmutableArray<IPropertySymbol> GetIndexerGroupWorker(CSharpSyntaxNode node, SymbolInfoOptions options, CancellationToken cancellationToken = default(CancellationToken)) 1877private 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)) 470internal override ImmutableArray<Symbol> GetMemberGroupWorker(CSharpSyntaxNode node, SymbolInfoOptions options, CancellationToken cancellationToken = default(CancellationToken)) 475internal override ImmutableArray<IPropertySymbol> GetIndexerGroupWorker(CSharpSyntaxNode node, SymbolInfoOptions options, CancellationToken cancellationToken = default(CancellationToken)) 575internal override BoundExpression GetSpeculativelyBoundExpression(int position, ExpressionSyntax expression, SpeculativeBindingOption bindingOption, out Binder binder, out ImmutableArray<Symbol> crefSymbols)
Compilation\SymbolInfoFactory.cs (2)
20internal static SymbolInfo Create(ImmutableArray<Symbol> symbols, LookupResultKind resultKind, bool isDynamic) 53static ImmutableArray<ISymbol> getPublicSymbols(OneOrMany<Symbol> symbols)
Compilation\SyntaxAndDeclarationManager.cs (25)
28ImmutableArray<SyntaxTree> externalSyntaxTrees, 50ImmutableArray<SyntaxTree> externalSyntaxTrees, 58var loadDirectiveMapBuilder = PooledDictionary<SyntaxTree, ImmutableArray<LoadDirective>>.GetInstance(); 99var newExternalSyntaxTrees = this.ExternalSyntaxTrees.AddRange(trees); 161IDictionary<SyntaxTree, ImmutableArray<LoadDirective>> loadDirectiveMapBuilder, 196IDictionary<SyntaxTree, ImmutableArray<LoadDirective>> loadDirectiveMapBuilder, 307var newExternalSyntaxTrees = this.ExternalSyntaxTrees.RemoveAll(t => trees.Contains(t)); 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; 469var newExternalSyntaxTrees = this.ExternalSyntaxTrees.Replace(oldTree, newTree); 477var syntaxTrees = state.SyntaxTrees; 483ImmutableArray<LoadDirective> oldLoadDirectives; 514ImmutableArray<SyntaxTree> newTrees; 663internal SyntaxAndDeclarationManager WithExternalSyntaxTrees(ImmutableArray<SyntaxTree> trees) 678ImmutableDictionary<SyntaxTree, ImmutableArray<LoadDirective>> loadDirectiveMap, 684ImmutableArray<LoadDirective> loadDirectives; 721var externalSyntaxTrees = this.ExternalSyntaxTrees;
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_RegionAnalysisContext.cs (2)
34var node = new BoundBadStatement(expression, ImmutableArray<BoundNode>.Empty, hasErrors: true); 51var node = new BoundBadStatement(firstStatement, ImmutableArray<BoundNode>.Empty, hasErrors: true);
Compilation\SyntaxTreeSemanticModel.cs (17)
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) 1398var collection = container.GetMembersUnordered(); 1787var collection = name != null ? container.GetMembers(name) : container.GetMembersUnordered(); 1792var namespaces = collection.WhereAsArray(symbol => symbol is NamespaceSymbol); 1952var usingAliases = binder.UsingAliases; 1985var externAliases = binder.ExternAliases; 2010internal override ImmutableArray<ISymbol> GetDeclaredSymbols(BaseFieldDeclarationSyntax declarationSyntax, CancellationToken cancellationToken = default(CancellationToken)) 2228private TypeParameterSymbol GetTypeParameterSymbol(ImmutableArray<TypeParameterSymbol> parameters, TypeParameterSyntax parameter)
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 (23)
230ImmutableArray<SourceNamedTypeSymbol> extensions = containingType.GetExtensionGroupingInfo().GetMergedExtensions((SourceNamedTypeSymbol)symbol); 268foreach (ImmutableArray<SourceNamedTypeSymbol> extensions in extensionGroupingInfo.EnumerateMergedExtensionBlocks()) 318if (!TryGetDocumentationCommentNodes(extension, out DocumentationMode maxDocumentationMode, out ImmutableArray<DocumentationCommentTriviaSyntax> foundDocCommentNodes)) 427if (!TryGetDocumentationCommentNodes(symbolForDocComments, out var maxDocumentationMode, out var docCommentNodes)) 471ImmutableArray<DocumentationCommentTriviaSyntax> docCommentNodes, 473out ImmutableArray<CSharpSyntaxNode> includeElementNodes) 504static ArrayBuilder<XmlElementSyntax>? getMatchingParamTags(string propertyName, ImmutableArray<DocumentationCommentTriviaSyntax> docCommentNodes) 534ImmutableArray<DocumentationCommentTriviaSyntax> docCommentNodes) 540ImmutableArray<CSharpSyntaxNode> includeElementNodes; 630ImmutableArray<DocumentationCommentTriviaSyntax> docCommentNodes, 635out ImmutableArray<CSharpSyntaxNode> includeElementNodes) 715includeElementNodes = default(ImmutableArray<CSharpSyntaxNode>); 730includeElementNodes = _processIncludes ? includeElementNodesBuilder!.ToImmutableAndFree() : default(ImmutableArray<CSharpSyntaxNode>); 753private static ImmutableArray<ParameterSymbol> GetParameters(Symbol symbol) 770return ImmutableArray<ParameterSymbol>.Empty; 776private static ImmutableArray<TypeParameterSymbol> GetTypeParameters(Symbol symbol) 786return ImmutableArray<TypeParameterSymbol>.Empty; 825private bool TryGetDocumentationCommentNodes(Symbol symbol, out DocumentationMode maxDocumentationMode, out ImmutableArray<DocumentationCommentTriviaSyntax> nodes) 828nodes = default(ImmutableArray<DocumentationCommentTriviaSyntax>); 838ImmutableArray<DocumentationCommentTriviaSyntax> triviaList = SourceDocumentationCommentUtils.GetDocumentationCommentTriviaFromSyntaxNode((CSharpSyntaxNode)reference.GetSyntax(), diagnosticBag); 869nodes = ImmutableArray<DocumentationCommentTriviaSyntax>.Empty; 1214ImmutableArray<Symbol> symbols = binder.BindCref(crefSyntax, out ambiguityWinner, diagnostics); 1303ImmutableArray<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, 567ImmutableArray<LocalSymbol>.Empty, 572ImmutableArray<BoundCatchBlock>.Empty, 575ImmutableArray<LocalSymbol>.Empty,
Compiler\MethodCompiler.cs (54)
165var additionalTypes = moduleBeingBuiltOpt.GetAdditionalTopLevelTypes(); 168var embeddedTypes = moduleBeingBuiltOpt.GetEmbeddedTypes(diagnostics); 286out ImmutableArray<SourceSpan> codeCoverageSpans, 315ImmutableArray<EncLambdaInfo>.Empty, 316ImmutableArray<LambdaRuntimeRudeEditInfo>.Empty, 317ImmutableArray<EncClosureInfo>.Empty, 318ImmutableArray<StateMachineStateDebugInfo>.Empty, 325codeCoverageSpans: ImmutableArray<SourceSpan>.Empty, 500var members = containingType.GetMembers(); 663var processedInitializers = new Binder.ProcessedFieldInitializers() { BoundInitializers = ImmutableArray<BoundInitializer>.Empty }; 710private void CompileSynthesizedMethods(ImmutableArray<NamedTypeSymbol> additionalTypes, BindingDiagnosticBag diagnostics) 807ImmutableArray<EncLambdaInfo>.Empty, 808ImmutableArray<LambdaRuntimeRudeEditInfo>.Empty, 809ImmutableArray<EncClosureInfo>.Empty, 817codeCoverageSpans: ImmutableArray<SourceSpan>.Empty, 865var interfaces = sourceTypeSymbol.GetInterfacesToEmit(); 952sourceMethod.SetDiagnostics(ImmutableArray<Diagnostic>.Empty, out diagsWritten); 965var cachedDiagnostics = sourceMethod.Diagnostics; 1013body = new BoundBlock(methodSymbol.GetNonNullSyntaxNode(), ImmutableArray<LocalSymbol>.Empty, ImmutableArray<BoundStatement>.Empty) { WasCompilerGenerated = true }; 1056new BoundBlock(analyzedInitializers.Syntax, ImmutableArray<LocalSymbol>.Empty, analyzedInitializers.Statements), // The block is necessary to establish the right local scope for the analysis 1214ImmutableArray<SourceSpan> codeCoverageSpans; 1251codeCoverageSpans = ImmutableArray<SourceSpan>.Empty; 1267ImmutableArray<BoundStatement> boundStatements; 1275boundStatements = ImmutableArray<BoundStatement>.Empty; 1314out ImmutableArray<SourceSpan> initializerCodeCoverageSpans, 1456exceptionHandlers: ImmutableArray<Cci.ExceptionHandlerRegion>.Empty, 1459localScopes: ImmutableArray<Cci.LocalScope>.Empty, 1462lambdaDebugInfo: ImmutableArray<EncLambdaInfo>.Empty, 1463orderedLambdaRuntimeRudeEdits: ImmutableArray<LambdaRuntimeRudeEditInfo>.Empty, 1464closureDebugInfo: ImmutableArray<EncClosureInfo>.Empty, 1469StateMachineStatesDebugInfo.Create(variableSlotAllocator: null, ImmutableArray<StateMachineStateDebugInfo>.Empty), 1471codeCoverageSpans: ImmutableArray<SourceSpan>.Empty, 1490out ImmutableArray<SourceSpan> codeCoverageSpans, 1504codeCoverageSpans = ImmutableArray<SourceSpan>.Empty; 1627codeCoverageSpans = ImmutableArray<SourceSpan>.Empty; 1641ImmutableArray<EncLambdaInfo> lambdaDebugInfo, 1642ImmutableArray<LambdaRuntimeRudeEditInfo> orderedLambdaRuntimeRudeEdits, 1643ImmutableArray<EncClosureInfo> closureDebugInfo, 1644ImmutableArray<StateMachineStateDebugInfo> stateMachineStateDebugInfos, 1651ImmutableArray<SourceSpan> codeCoverageSpans, 1701codeGen.Generate(out int asyncCatchHandlerOffset, out var asyncYieldPoints, out var asyncResumePoints, out hasStackalloc); 1732var stateMachineHoistedLocalScopes = ((object)kickoffMethod != null) ? 1733builder.GetHoistedLocalScopes() : default(ImmutableArray<StateMachineHoistedLocalScope>); 1740var localVariables = builder.LocalSlotManager.LocalsInOrder(); 1753var stateMachineHoistedLocalSlots = default(ImmutableArray<EncHoistedLocalInfo>); 1754var stateMachineAwaiterSlots = default(ImmutableArray<Cci.ITypeReference>); 1810out ImmutableArray<EncHoistedLocalInfo> hoistedVariableSlots, 1811out ImmutableArray<Cci.ITypeReference> awaiterSlots) 2097ImmutableArray<BoundStatement> statements; 2106statements = ImmutableArray<BoundStatement>.Empty;
Compiler\SynthesizedMetadataCompiler.cs (1)
71var interfaces = sourceTypeSymbol.GetInterfacesToEmit();
CSharpCompilationOptions.cs (14)
42public ImmutableArray<string> Usings { get; private set; } 69ImmutableArray<byte> cryptoPublicKey = default, 119ImmutableArray<byte> cryptoPublicKey, 164ImmutableArray<byte> cryptoPublicKey, 206ImmutableArray<byte> cryptoPublicKey, 285internal override ImmutableArray<string> GetImports() => Usings; 354public new CSharpCompilationOptions WithCryptoPublicKey(ImmutableArray<byte> value) 358value = ImmutableArray<byte>.Empty; 379public CSharpCompilationOptions WithUsings(ImmutableArray<string> usings) 687protected override CompilationOptions CommonWithFeatures(ImmutableArray<string> features) 832protected override CompilationOptions CommonWithCryptoPublicKey(ImmutableArray<byte> cryptoPublicKey) 860ImmutableArray<byte> cryptoPublicKey, 899ImmutableArray<byte> cryptoPublicKey, 943ImmutableArray<byte> cryptoPublicKey,
CSharpExtensions.cs (5)
412internal static bool IsAnyPreprocessorSymbolDefined([NotNullWhen(true)] this SyntaxTree? tree, ImmutableArray<string> conditionalSymbols) 964public static ImmutableArray<ISymbol> GetMemberGroup(this SemanticModel? semanticModel, ExpressionSyntax expression, CancellationToken cancellationToken = default(CancellationToken)) 977public static ImmutableArray<ISymbol> GetMemberGroup(this SemanticModel? semanticModel, AttributeSyntax attribute, CancellationToken cancellationToken = default(CancellationToken)) 990public static ImmutableArray<ISymbol> GetMemberGroup(this SemanticModel? semanticModel, ConstructorInitializerSyntax initializer, CancellationToken cancellationToken = default(CancellationToken)) 1006public 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; 186internal ImmutableArray<ImmutableArray<string>> InterceptorsNamespaces 196ImmutableArray<ImmutableArray<string>> previewNamespaces = Features.TryGetValue(Feature.InterceptorsNamespaces, out var namespaces) && namespaces.Length > 0 198: ImmutableArray<ImmutableArray<string>>.Empty; 203static ImmutableArray<ImmutableArray<string>> makeNamespaces(string namespaces) 205var builder = ArrayBuilder<ImmutableArray<string>>.GetInstance(); 219static 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)
98var oldRootDeclarations = oldRoot.Declarations; 159var cachedReferenceDirectives = _cache.ReferenceDirectives;
Declarations\DeclarationTreeBuilder.cs (22)
125private ImmutableArray<SingleNamespaceOrTypeDeclaration> VisitNamespaceChildren( 136return ImmutableArray<SingleNamespaceOrTypeDeclaration>.Empty; 192var diagnostics = ImmutableArray<Diagnostic>.Empty; 229children: ImmutableArray<SingleTypeDeclaration>.Empty, 230diagnostics: ImmutableArray<Diagnostic>.Empty, 234private static SingleNamespaceOrTypeDeclaration CreateSimpleProgram(GlobalStatementSyntax firstGlobalStatement, bool hasAwaitExpressions, bool isIterator, bool hasReturnWithExpression, ImmutableArray<Diagnostic> diagnostics) 257children: ImmutableArray<SingleTypeDeclaration>.Empty, 305private static ImmutableArray<ReferenceDirective> GetReferenceDirectives(CompilationUnitSyntax compilationUnit) 311return ImmutableArray<ReferenceDirective>.Empty; 324ImmutableArray<SingleTypeDeclaration> children, 345diagnostics: ImmutableArray<Diagnostic>.Empty, 357diagnostics: ImmutableArray<Diagnostic>.Empty); 401var children = VisitNamespaceChildren(compilationUnit, compilationUnit.Members, ((Syntax.InternalSyntax.CompilationUnitSyntax)(compilationUnit.Green)).Members); 434private RootSingleNamespaceDeclaration CreateRootSingleNamespaceDeclaration(CompilationUnitSyntax compilationUnit, ImmutableArray<SingleNamespaceOrTypeDeclaration> children, bool isForScript) 471referenceDirectives: isForScript ? GetReferenceDirectives(compilationUnit) : ImmutableArray<ReferenceDirective>.Empty, 503var children = VisitNamespaceChildren(node, node.Members, ((Syntax.InternalSyntax.BaseNamespaceDeclarationSyntax)node.Green).Members); 518diagnostics: ImmutableArray<Diagnostic>.Empty); 821private ImmutableArray<SingleTypeDeclaration> VisitTypeChildren(TypeDeclarationSyntax node) 825return ImmutableArray<SingleTypeDeclaration>.Empty; 864children: ImmutableArray<SingleTypeDeclaration>.Empty, 902children: ImmutableArray<SingleTypeDeclaration>.Empty,
Declarations\MergedNamespaceDeclaration.cs (10)
20private readonly ImmutableArray<SingleNamespaceDeclaration> _declarations; 21private ImmutableArray<MergedNamespaceOrTypeDeclaration> _lazyChildren; 23private MergedNamespaceDeclaration(ImmutableArray<SingleNamespaceDeclaration> declarations) 29public static MergedNamespaceDeclaration Create(ImmutableArray<SingleNamespaceDeclaration> declarations) 58public ImmutableArray<Location> NameLocations 80public ImmutableArray<SingleNamespaceDeclaration> Declarations 85protected override ImmutableArray<Declaration> GetDeclarationChildren() 90private ImmutableArray<MergedNamespaceOrTypeDeclaration> MakeChildren() 242var declarations = ImmutableCollectionsMarshal.AsImmutableArray(namespaceGroup.Declarations); 308public new ImmutableArray<MergedNamespaceOrTypeDeclaration> Children
Declarations\MergedTypeDeclaration.cs (10)
24private readonly ImmutableArray<SingleTypeDeclaration> _declarations; 25private ImmutableArray<MergedTypeDeclaration> _lazyChildren; 28internal MergedTypeDeclaration(ImmutableArray<SingleTypeDeclaration> declarations) 34public ImmutableArray<SingleTypeDeclaration> Declarations 42public ImmutableArray<SyntaxReference> SyntaxReferences 56public ImmutableArray<SyntaxList<AttributeListSyntax>> GetAttributeDeclarations(QuickAttributes? quickAttributes) 203private ImmutableArray<MergedTypeDeclaration> MakeChildren() 230foreach (var typeGroup in typesGrouped.Values) 239public new ImmutableArray<MergedTypeDeclaration> Children 252protected 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; 86ImmutableArray<SingleTypeDeclaration> children, 87ImmutableArray<Diagnostic> diagnostics, 110public new ImmutableArray<SingleTypeDeclaration> Children 220protected override ImmutableArray<SingleNamespaceOrTypeDeclaration> GetNamespaceOrTypeDeclarationChildren()
DocumentationComments\DocumentationCommentIDVisitor.PartVisitor.cs (1)
74private 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 (7)
56ImmutableArray<LocalSlotDebugInfo> localSlotDebugInfo, 121protected override ImmutableArray<EncLocalInfo> GetLocalSlotMapFromMetadata(StandaloneSignatureHandle handle, EditAndContinueMethodDebugInformation debugInfo) 125var localInfos = _metadataDecoder.GetLocalsOrThrow(handle); 126var result = CreateLocalSlotMap(debugInfo, localInfos); 142private static ImmutableArray<EncLocalInfo> CreateLocalSlotMap( 144ImmutableArray<LocalInfo<TypeSymbol>> slotMetadata) 148var localSlots = methodEncInfo.LocalSlots;
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (45)
30IReadOnlyDictionary<ISymbolInternal, ImmutableArray<ISymbolInternal>> otherSynthesizedMembers, 31IReadOnlyDictionary<ISymbolInternal, ImmutableArray<ISymbolInternal>> otherDeletedMembers) 51otherSynthesizedMembers: SpecializedCollections.EmptyReadOnlyDictionary<ISymbolInternal, ImmutableArray<ISymbolInternal>>(), 52otherDeletedMembers: SpecializedCollections.EmptyReadOnlyDictionary<ISymbolInternal, ImmutableArray<ISymbolInternal>>(), 101protected override bool TryGetMatchingDelegateWithIndexedName(INamedTypeSymbolInternal delegateTemplate, ImmutableArray<AnonymousTypeValue> values, out AnonymousTypeValue match) 116private readonly IReadOnlyDictionary<ISymbolInternal, ImmutableArray<ISymbolInternal>> _otherSynthesizedMembers; 118private readonly IReadOnlyDictionary<ISymbolInternal, ImmutableArray<ISymbolInternal>> _otherDeletedMembers; 129private readonly ConcurrentDictionary<ISymbolInternal, IReadOnlyDictionary<string, ImmutableArray<ISymbolInternal>>> _otherMembers = new(ReferenceEqualityComparer.Instance); 135IReadOnlyDictionary<ISymbolInternal, ImmutableArray<ISymbolInternal>> otherSynthesizedMembers, 136IReadOnlyDictionary<ISymbolInternal, ImmutableArray<ISymbolInternal>> otherDeletedMembers, 171var otherModifiers = VisitCustomModifiers(symbol.ElementTypeWithAnnotations.CustomModifiers); 297var typeArguments = sourceType.GetAllTypeArguments(ref discardedUseSiteInfo); 305var otherTypeParameters = otherDef.GetAllTypeParameters(); 308var otherTypeArguments = typeArguments.SelectAsArray((t, v) => 397var otherModifiers = VisitCustomModifiers(symbol.PointedAtTypeWithAnnotations.CustomModifiers); 411var otherRefCustomModifiers = VisitCustomModifiers(sig.RefCustomModifiers); 414var otherParameterTypes = ImmutableArray<TypeWithAnnotations>.Empty; 415ImmutableArray<ImmutableArray<CustomModifier>> otherParamRefCustomModifiers = default; 420var otherParamRefCustomModifiersBuilder = ArrayBuilder<ImmutableArray<CustomModifier>>.GetInstance(sig.ParameterCount); 456var otherTypeParameters = otherContainer.Kind switch 466private ImmutableArray<CustomModifier> VisitCustomModifiers(ImmutableArray<CustomModifier> modifiers) 500return _otherSynthesizedTypes.AnonymousDelegatesWithIndexedNames.TryGetValue(key, out var otherTypeCandidates) && 504internal bool TryGetMatchingDelegateWithIndexedName(AnonymousTypeManager.AnonymousDelegateTemplateSymbol delegateTemplate, ImmutableArray<AnonymousTypeValue> values, out AnonymousTypeValue match) 566if (otherMembersByName.TryGetValue(sourceMember.MetadataName, out var otherMembers)) 625var typeParameters = method.TypeParameters; 650var typeParameters = type.TypeParameters; 708private static void ValidateFunctionPointerParamOrReturn(TypeWithAnnotations type, RefKind refKind, ImmutableArray<CustomModifier> refCustomModifiers, bool allowOut) 713static bool verifyRefModifiers(ImmutableArray<CustomModifier> modifiers, RefKind refKind, bool allowOut) 791private IReadOnlyDictionary<string, ImmutableArray<ISymbolInternal>> GetAllEmittedMembers(ISymbolInternal symbol) 809if (_otherSynthesizedMembers.TryGetValue(symbol, out var synthesizedMembers)) 814if (_otherDeletedMembers.TryGetValue(symbol, out var deletedMembers)) 876var translatedModifiers = VisitCustomModifiers(symbol.ElementTypeWithAnnotations.CustomModifiers); 897var translatedTypeArguments = type.GetAllTypeArguments(ref discardedUseSiteInfo).SelectAsArray((t, v) => t.WithTypeAndModifiers((TypeSymbol)v.Visit(t.Type), 919var translatedModifiers = VisitCustomModifiers(symbol.PointedAtTypeWithAnnotations.CustomModifiers); 928var translatedRefCustomModifiers = VisitCustomModifiers(sig.RefCustomModifiers); 930var translatedParameterTypes = ImmutableArray<TypeWithAnnotations>.Empty; 931ImmutableArray<ImmutableArray<CustomModifier>> translatedParamRefCustomModifiers = default; 936var translatedParamRefCustomModifiersBuilder = ArrayBuilder<ImmutableArray<CustomModifier>>.GetInstance(sig.ParameterCount); 957private ImmutableArray<CustomModifier> VisitCustomModifiers(ImmutableArray<CustomModifier> modifiers)
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)
75public ImmutableArray<ICustomModifier> ReturnValueCustomModifiers => Underlying.ReturnValueCustomModifiers; 76public ImmutableArray<ICustomModifier> RefCustomModifiers => Underlying.RefCustomModifiers; 79public 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)
184ImmutableArray<Cci.IParameterTypeInformation> Cci.IMethodReference.ExtraParameters 188return ImmutableArray<Cci.IParameterTypeInformation>.Empty; 200ImmutableArray<Cci.IParameterTypeInformation> Cci.ISignature.GetParameters(EmitContext context) 215private ImmutableArray<Cci.IParameterDefinition> EnumerateDefinitionParameters() 226ImmutableArray<Cci.ICustomModifier> Cci.ISignature.ReturnValueCustomModifiers 230return ImmutableArray<Cci.ICustomModifier>.CastUp(AdaptedMethodSymbol.ReturnTypeWithAnnotations.CustomModifiers); 234ImmutableArray<Cci.ICustomModifier> Cci.ISignature.RefCustomModifiers 238return ImmutableArray<Cci.ICustomModifier>.CastUp(AdaptedMethodSymbol.RefCustomModifiers); 509ImmutableArray<Cci.IParameterDefinition> Cci.IMethodDefinition.Parameters 532ImmutableArray<CSharpAttributeData> userDefined = AdaptedMethodSymbol.GetReturnTypeAttributes(); 559ImmutableArray<byte> Cci.IMethodDefinition.ReturnValueMarshallingDescriptor 711internal virtual ImmutableArray<byte> ReturnValueMarshallingDescriptor 716return default(ImmutableArray<byte>);
Emitter\Model\ModuleReference.cs (1)
61ImmutableArray<byte> Cci.IFileReference.GetHashValue(AssemblyHashAlgorithm algorithmId)
Emitter\Model\NamedTypeSymbolAdapter.cs (8)
333var explicitImplementations = method.ExplicitInterfaceImplementations; 388var interfaces = container.GetInterfacesToEmit(); 886ImmutableArray<Cci.ITypeReference> Cci.IGenericTypeInstanceReference.GetGenericArguments(EmitContext context) 892var arguments = AdaptedNamedTypeSymbol.TypeArgumentsWithAnnotationsNoUseSiteDiagnostics; 897var modifiers = arguments[i].CustomModifiers; 900arg = new Cci.ModifiedTypeReference(arg, ImmutableArray<Cci.ICustomModifier>.CastUp(modifiers)); 977internal abstract ImmutableArray<NamedTypeSymbol> GetInterfacesToEmit(); 979protected 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 (38)
29private readonly ImmutableArray<NamedTypeSymbol> _additionalTypes; 31private ImmutableArray<Cci.IFileReference> _lazyFiles; 34private ImmutableArray<Cci.IFileReference> _lazyFilesWithoutManifestResources; 77ImmutableArray<NamedTypeSymbol> additionalTypes) 92public sealed override ImmutableArray<NamedTypeSymbol> GetAdditionalTopLevelTypes() 95internal sealed override ImmutableArray<NamedTypeSymbol> GetEmbeddedTypes(BindingDiagnosticBag diagnostics) 132ImmutableArray<Cci.IFileReference> getFiles(ref ImmutableArray<Cci.IFileReference> lazyFiles) 139var modules = _sourceAssembly.Modules; 178var modules = _sourceAssembly.Modules; 214ImmutableArray<TypedConstant>.Empty, 215ImmutableArray<KeyValuePair<string, TypedConstant>>.Empty); 218internal override SynthesizedAttributeData SynthesizeNullableAttribute(WellKnownMember member, ImmutableArray<TypedConstant> arguments) 227ImmutableArray<KeyValuePair<string, TypedConstant>>.Empty); 233internal override SynthesizedAttributeData SynthesizeNullableContextAttribute(ImmutableArray<TypedConstant> arguments) 241ImmutableArray<KeyValuePair<string, TypedConstant>>.Empty); 247internal override SynthesizedAttributeData SynthesizeNullablePublicOnlyAttribute(ImmutableArray<TypedConstant> arguments) 255ImmutableArray<KeyValuePair<string, TypedConstant>>.Empty); 261internal override SynthesizedAttributeData SynthesizeNativeIntegerAttribute(WellKnownMember member, ImmutableArray<TypedConstant> arguments) 270ImmutableArray<KeyValuePair<string, TypedConstant>>.Empty); 283ImmutableArray<TypedConstant>.Empty, 284ImmutableArray<KeyValuePair<string, TypedConstant>>.Empty); 290internal override SynthesizedAttributeData SynthesizeRefSafetyRulesAttribute(ImmutableArray<TypedConstant> arguments) 298ImmutableArray<KeyValuePair<string, TypedConstant>>.Empty); 304internal override SynthesizedAttributeData TrySynthesizeMemorySafetyRulesAttribute(ImmutableArray<TypedConstant> arguments) 325ImmutableArray<TypedConstant>.Empty, 326ImmutableArray<KeyValuePair<string, TypedConstant>>.Empty); 339ImmutableArray<TypedConstant>.Empty, 340ImmutableArray<KeyValuePair<string, TypedConstant>>.Empty); 353ImmutableArray<TypedConstant>.Empty, 354ImmutableArray<KeyValuePair<string, TypedConstant>>.Empty); 367ImmutableArray<TypedConstant>.Empty, 368ImmutableArray<KeyValuePair<string, TypedConstant>>.Empty); 382ImmutableArray<KeyValuePair<string, TypedConstant>>.Empty); 400ImmutableArray<TypedConstant>.Empty, 401ImmutableArray<KeyValuePair<string, TypedConstant>>.Empty); 414ImmutableArray<TypedConstant>.Empty, 415ImmutableArray<KeyValuePair<string, TypedConstant>>.Empty);
Emitter\Model\PEModuleBuilder.cs (37)
33private readonly ConcurrentDictionary<ImportChain, ImmutableArray<Cci.UsedNamespaceOrType>> _translatedImportsMap = 34new ConcurrentDictionary<ImportChain, ImmutableArray<Cci.UsedNamespaceOrType>>(ReferenceEqualityComparer.Instance); 45private ImmutableArray<Cci.ExportedType> _lazyExportedTypes; 151public sealed override ImmutableArray<Cci.UsedNamespaceOrType> GetImports() => ImmutableArray<Cci.UsedNamespaceOrType>.Empty; 158ImmutableArray<ModuleSymbol> modules = SourceModule.ContainingAssembly.Modules; 220public sealed override IEnumerable<(Cci.ITypeDefinition, ImmutableArray<Cci.DebugSourceDocument>)> GetTypeToDebugDocumentMap(EmitContext context) 658public sealed override ImmutableArray<Cci.ExportedType> GetExportedTypes(EmitContext context) 679private ImmutableArray<Cci.ExportedType> CalculateExportedTypes(EmitContext context) 686var modules = sourceAssembly.Modules; 717private void ReportExportedTypeNameCollisions(ImmutableArray<Cci.ExportedType> exportedTypes, DiagnosticBag diagnostics) 859ImmutableArray<NamedTypeSymbol> nested = type.GetTypeMembers(); // Ordered. 904foreach ((Cci.INestedTypeReference GroupingType, ImmutableArray<Cci.INestedTypeReference> MarkerTypes) item in retargetingType.GetExtensionGroupingAndMarkerTypesForTypeForwarding(context)) 927static void pushNestedTypes(ArrayBuilder<(NamedTypeSymbol type, int parentIndex)> stack, int index, ImmutableArray<NamedTypeSymbol> nested) 941static void pushAndProcessNestedTypes(ArrayBuilder<(NamedTypeSymbol type, int parentIndex)> stack, EmitContext context, int index, ImmutableArray<NamedTypeSymbol> nested, ArrayBuilder<Cci.ExportedType> builder) 1516internal ImmutableArray<Cci.IParameterTypeInformation> Translate(ImmutableArray<ParameterSymbol> @params) 1555private ImmutableArray<Cci.IParameterTypeInformation> TranslateAll(ImmutableArray<ParameterSymbol> @params) 1743var value = flagsBuilder.SelectAsArray((flag, byteType) => new TypedConstant(byteType, TypedConstantKind.Primitive, flag), byteType); 1768internal virtual SynthesizedAttributeData SynthesizeNullableAttribute(WellKnownMember member, ImmutableArray<TypedConstant> arguments) 1788internal virtual SynthesizedAttributeData SynthesizeNullableContextAttribute(ImmutableArray<TypedConstant> arguments) 1821attribute = SynthesizeNativeIntegerAttribute(WellKnownMember.System_Runtime_CompilerServices_NativeIntegerAttribute__ctor, ImmutableArray<TypedConstant>.Empty); 1827var transformFlags = builder.SelectAsArray((flag, constantType) => new TypedConstant(constantType, TypedConstantKind.Primitive, flag), booleanType); 1829var arguments = ImmutableArray.Create(new TypedConstant(boolArray, transformFlags)); 1837internal virtual SynthesizedAttributeData SynthesizeNativeIntegerAttribute(WellKnownMember member, ImmutableArray<TypedConstant> arguments) 1868internal virtual SynthesizedAttributeData SynthesizeRefSafetyRulesAttribute(ImmutableArray<TypedConstant> arguments) 1875internal virtual SynthesizedAttributeData TrySynthesizeMemorySafetyRulesAttribute(ImmutableArray<TypedConstant> arguments) 1888internal virtual SynthesizedAttributeData SynthesizeNullablePublicOnlyAttribute(ImmutableArray<TypedConstant> arguments) 2254public override ImmutableArray<NamedTypeSymbol> GetAdditionalTopLevelTypes() 2256ImmutableArray<NamedTypeSymbol> prepend = []; 2287public sealed override ImmutableArray<NamedTypeSymbol> GetEmbeddedTypes(DiagnosticBag diagnostics) 2291var result = GetEmbeddedTypes(bindingDiagnostics); 2298internal virtual ImmutableArray<NamedTypeSymbol> GetEmbeddedTypes(BindingDiagnosticBag diagnostics) 2303internal bool TryGetTranslatedImports(ImportChain chain, out ImmutableArray<Cci.UsedNamespaceOrType> imports) 2308internal 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)
98ImmutableArray<CSharpAttributeData> userDefined; 113ImmutableArray<CSharpAttributeData> userDefined, 130ImmutableArray<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)
41protected override ImmutableArray<EmbeddedParameter> GetParameters() 46protected override ImmutableArray<EmbeddedTypeParameter> GetTypeParameters() 171protected 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)
69ImmutableArray<AssemblySymbol> refs = TypeManager.ModuleBeingBuilt.SourceModule.GetReferencedAssemblySymbols(); 262return SynthesizedAttributeData.Create(TypeManager.ModuleBeingBuilt.Compilation, ctor, ImmutableArray<TypedConstant>.Empty, ImmutableArray<KeyValuePair<string, TypedConstant>>.Empty); 282ImmutableArray<KeyValuePair<string, TypedConstant>>.Empty);
Emitter\NoPia\EmbeddedTypesManager.cs (11)
165internal override CSharpAttributeData CreateSynthesizedAttribute(WellKnownMember constructor, ImmutableArray<TypedConstant> constructorArguments, ImmutableArray<KeyValuePair<string, TypedConstant>> namedArguments, SyntaxNode syntaxNodeOpt, DiagnosticBag diagnostics) 181ImmutableArray<KeyValuePair<string, TypedConstant>>.Empty); 190ImmutableArray<KeyValuePair<string, TypedConstant>>.Empty); 197internal override CSharpAttributeData CreateSynthesizedAttribute(SpecialMember constructor, ImmutableArray<TypedConstant> constructorArguments, ImmutableArray<KeyValuePair<string, TypedConstant>> namedArguments, SyntaxNode syntaxNodeOpt, DiagnosticBag diagnostics) 208internal override bool TryGetAttributeArguments(CSharpAttributeData attrData, out ImmutableArray<TypedConstant> constructorArguments, out ImmutableArray<KeyValuePair<string, TypedConstant>> namedArguments, SyntaxNode syntaxNodeOpt, DiagnosticBag diagnostics) 241protected override void OnGetTypesCompleted(ImmutableArray<EmbeddedType> types, DiagnosticBag diagnostics) 680internal static ImmutableArray<EmbeddedParameter> EmbedParameters( 682ImmutableArray<ParameterSymbol> underlyingParameters)
Errors\CSDiagnosticInfo.cs (8)
24: this(code, Array.Empty<object>(), ImmutableArray<Symbol>.Empty, ImmutableArray<Location>.Empty) 29: this(code, args, ImmutableArray<Symbol>.Empty, ImmutableArray<Location>.Empty) 33internal CSDiagnosticInfo(ErrorCode code, ImmutableArray<Symbol> symbols, object[] args) 34: this(code, args, symbols, ImmutableArray<Location>.Empty) 38internal 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)
2667internal 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_LocalFunctions.cs (1)
111ImmutableArray<PendingBranch> pendingReturns = RemoveReturns();
FlowAnalysis\AbstractFlowPass_Switch.cs (1)
24var switchSections = node.SwitchSections;
FlowAnalysis\AbstractFlowPass.cs (29)
315protected virtual void EnterParameters(ImmutableArray<ParameterSymbol> parameters) 327ImmutableArray<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, default, false); 1311private void VisitStatements(ImmutableArray<BoundStatement> statements) 1517protected virtual void VisitArguments(ImmutableArray<BoundExpression> arguments, ImmutableArray<RefKind> refKindsOpt, MethodSymbol method, ImmutableArray<int> argsToParamsOpt, bool expanded) 1524private void VisitArgumentsBeforeCall(ImmutableArray<BoundExpression> arguments, ImmutableArray<RefKind> refKindsOpt) 1545private void VisitArgumentsAfterCall(ImmutableArray<BoundExpression> arguments, ImmutableArray<RefKind> refKindsOpt, MethodSymbol? method, ImmutableArray<int> argsToParamsOpt, bool expanded) 1574protected static RefKind GetRefKind(ImmutableArray<RefKind> refKindsOpt, int index) 2088private void VisitCollectionExpression(ImmutableArray<BoundNode> elements) 3186var sideEffects = node.SideEffects; 3567VisitArguments(node.Arguments, default(ImmutableArray<RefKind>), node.Constructor, default, false); 3606private BoundNode VisitObjectOrCollectionInitializerExpression(ImmutableArray<BoundExpression> initializers) 3618var arguments = node.Arguments; 3651VisitArguments(node.Arguments, default(ImmutableArray<RefKind>), node.AddMethod, node.ArgsToParamsOpt, node.Expanded); 3657VisitArguments(node.Arguments, default(ImmutableArray<RefKind>), node.AddMethod, node.ArgsToParamsOpt, node.Expanded); 3665VisitArguments(node.Arguments, default(ImmutableArray<RefKind>), method: null, default, false);
FlowAnalysis\AbstractFlowPass.PendingBranchesCollection.cs (1)
53internal ImmutableArray<PendingBranch> ToImmutable()
FlowAnalysis\AbstractRegionControlFlowPass.cs (1)
39ImmutableArray<PendingBranch> pendingReturns = RemoveReturns();
FlowAnalysis\AbstractRegionDataFlowPass.cs (3)
32protected override ImmutableArray<PendingBranch> Scan(ref bool badRegion) 40var result = base.Scan(ref badRegion); 61private 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)
132protected override ImmutableArray<PendingBranch> Scan(ref bool badRegion) 135var result = base.Scan(ref badRegion); 192ImmutableArray<PendingBranch> returns = Analyze(ref badRegion); 203protected override ImmutableArray<PendingBranch> RemoveReturns() 205var 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 (15)
330protected override ImmutableArray<PendingBranch> Scan(ref bool badRegion) 333ImmutableArray<ParameterSymbol> methodParameters = MethodParameters; 378ImmutableArray<PendingBranch> pendingReturns = base.Scan(ref badRegion); 506out ImmutableArray<FieldSymbol> implicitlyInitializedFieldsOpt, 522(DiagnosticBag compatDiagnostics, var unused) = analyze(strictAnalysis: false); 584(DiagnosticBag, ImmutableArray<FieldSymbol> implicitlyInitializedFieldsOpt) analyze(bool strictAnalysis) 587ImmutableArray<FieldSymbol> implicitlyInitializedFieldsOpt = default; 634ImmutableArray<PendingBranch> returns = Analyze(ref badRegion); 1871private void VisitAttributes(ImmutableArray<(CSharpAttributeData, BoundAttribute)> boundAttributes) 1897protected override void LeaveParameters(ImmutableArray<ParameterSymbol> parameters, SyntaxNode syntax, Location location) 2219var localsOpt = node.Locals; 2252private void DeclareVariables(ImmutableArray<LocalSymbol> locals) 2270private void ReportUnusedVariables(ImmutableArray<LocalSymbol> locals) 2289private void ReportUnusedVariables(ImmutableArray<MethodSymbol> locals) 2430ImmutableArray<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 }; 113private static BoundBlock PrependImplicitInitializations(BoundBlock body, MethodSymbol method, ImmutableArray<FieldSymbol> implicitlyInitializedFields, TypeCompilationState compilationState, BindingDiagnosticBag diagnostics) 172var statements = body.Statements; 179return body.Update(body.Locals, ImmutableArray<MethodSymbol>.Empty, body.HasUnsafeModifier, body.Instrumentation, builder.ToImmutableAndFree()); 216out ImmutableArray<FieldSymbol> implicitlyInitializedFieldsOpt)
FlowAnalysis\NullableWalker_Patterns.cs (4)
202var elements = inputType.TupleElements; 406var originalInputElementSlots = expression is BoundTupleExpression tuple 1092var nodes = node.ReachabilityDecisionDag.TopologicallySortedNodes; 1142var placeholders = placeholderBuilder.ToImmutableAndFree();
FlowAnalysis\NullableWalker.cs (186)
294private static readonly ImmutableArray<BoundKind> s_skippedExpressions = ImmutableArray.Create(BoundKind.ArrayInitialization, 630protected override ImmutableArray<PendingBranch> Scan(ref bool badRegion) 657ImmutableArray<PendingBranch> pendingReturns = base.Scan(ref badRegion); 703var membersWithStateEnforcedByRequiredMembers = constructorEnforcesRequiredMembers 711: ImmutableArray<string>.Empty; 736checkMemberStateOnConstructorExit(method, member, state, thisSlot, exitLocation, membersWithStateEnforcedByRequiredMembers: ImmutableArray<string>.Empty, forcePropertyAnalysis: true); 758void checkMemberStateOnConstructorExit(MethodSymbol constructor, Symbol member, LocalState state, int thisSlot, Location? exitLocation, ImmutableArray<string> membersWithStateEnforcedByRequiredMembers, bool forcePropertyAnalysis) 845var info = new CSDiagnosticInfo(errorCode, new object[] { symbol.Kind.Localize(), symbol.Name }, ImmutableArray<Symbol>.Empty, additionalLocations: symbol.Locations); 917ImmutableArray<Symbol> getMembersNeedingDefaultInitialState() 921return ImmutableArray<Symbol>.Empty; 961static ImmutableArray<Symbol> membersToBeInitialized(NamedTypeSymbol containingType, bool includeAllMembers, bool includeCurrentTypeRequiredMembers, bool includeBaseRequiredMembers) 966=> ImmutableArray<Symbol>.Empty, 999static ImmutableArray<Symbol> getAllTypeAndRequiredMembers(TypeSymbol containingType) 1001var members = containingType.GetMembersUnordered(); 1146void enforceMemberNotNullWhenIfAffected(SyntaxNode? syntaxOpt, bool sense, ImmutableArray<Symbol> members, LocalState state, LocalState otherState) 1162var notNullMembers = sense ? method.NotNullWhenTrueMembers : method.NotNullWhenFalseMembers; 1208private void MakeMembersMaybeNull(MethodSymbol method, ImmutableArray<string> members) 1278ImmutableArray<ParameterSymbol> parameters = method.GetParametersIncludingExtensionParameter(skipExtensionIfStatic: true); 1326ImmutableArray<ParameterSymbol> parameters = method.GetParametersIncludingExtensionParameter(skipExtensionIfStatic: true); 1360private void EnforceParameterNotNullWhenOnExit(SyntaxNode syntax, ImmutableArray<ParameterSymbol> parameters, bool sense, LocalState stateWhen) 1420private void EnforceNotNullIfNotNull(SyntaxNode? syntaxOpt, LocalState state, ImmutableArray<ParameterSymbol> parameters, ImmutableHashSet<string> inputParamNames, NullableFlowState outputState, ParameterSymbol? outputParam) 1929ImmutableArray<PendingBranch> returns = walker.Analyze(ref badRegion, initialState); 2320private void VisitAndUnsplitAll<T>(ImmutableArray<T> nodes) where T : BoundNode 3016var methodParameters = methodSymbol.Parameters; 3017var signatureParameters = (_useDelegateInvokeParameterTypes ? _delegateInvokeMethod! : methodSymbol).Parameters; 3157ImmutableArray<ParameterSymbol> parameters = method.GetParametersIncludingExtensionParameter(skipExtensionIfStatic: true); 3509ImmutableArray<PendingBranch> pendingReturns = RemoveReturns(); 3695private void DeclareLocals(ImmutableArray<LocalSymbol> locals) 4051var allTypeArguments = ((NamedTypeSymbol)collectionFinalType).GetAllTypeArgumentsNoUseSiteDiagnostics(); 4284var arguments = node.Arguments; 4291ImmutableArray<VisitResult> argumentResults = reinferenceResult.Results; 4313ImmutableArray<VisitResult> argumentResults, 4342ImmutableArray<VisitResult> argumentResults, 4382ImmutableArray<BoundExpression> arguments, ImmutableArray<VisitResult> argumentResults, 4409var argumentTypes = argumentResults.SelectAsArray(ar => ar.RValueType); 4475ImmutableArray<BoundExpression> arguments, 4476ImmutableArray<VisitResult> argumentResults, 4586ImmutableArray<VisitResult> argumentResults = default; 4589getSymbolAndParameters(objectInitializer, containingType, out Symbol? symbol, out ImmutableArray<ParameterSymbol> parameters); 4592out ImmutableArray<BoundExpression> arguments, out ImmutableArray<RefKind> refKindsOpt, 4593out ImmutableArray<int> argsToParamsOpt, out BitVector defaultArguments, out bool usesExtensionReceiver, out VisitResult? firstArgumentResult); 4623InitializerCompletionAfterTargetType? setAnalyzedNullability(BoundAssignmentOperator node, BoundObjectInitializerMember objectInitializer, Symbol? updatedSymbol, ImmutableArray<VisitResult> argumentResults, 4649InitializerCompletionAfterTargetType setAnalyzedNullabilityAsContinuation(BoundAssignmentOperator node, ImmutableArray<VisitResult> argumentResults, 4656getSymbolAndParameters(objectInitializer, containingType, out Symbol? symbol, out ImmutableArray<ParameterSymbol> parameters); 4767out ImmutableArray<BoundExpression> arguments, out ImmutableArray<RefKind> refKindsOpt, out ImmutableArray<int> argsToParamsOpt, 4794out Symbol? symbol, out ImmutableArray<ParameterSymbol> parametersOpt) 4829ImmutableArray<VisitResult> argumentResults = default; 4865ImmutableArray<VisitResult> argumentResults, 4890ImmutableArray<VisitResult> argumentResults, 4903static MethodSymbol addMethodAsMemberOfContainingType(BoundCollectionElementInitializer node, TypeSymbol containingType, ref ImmutableArray<VisitResult> argumentResults) 4970var members = ((NamedTypeSymbol)type).GetMembersUnordered(); 5018var arguments = node.Arguments; 5019var argumentTypes = arguments.SelectAsArray((arg, self) => 5021var argumentsWithAnnotations = argumentTypes.SelectAsArray(arg => 5140var placeholders = placeholderBuilder.ToImmutableAndFree(); 5260var placeholders = placeholdersBuilder.ToImmutableAndFree(); 5631var parameters = method.Parameters; 6102static ImmutableArray<NamedTypeSymbol> inheritedInterfaces(TypeSymbol type) => type switch 6106_ => ImmutableArray<NamedTypeSymbol>.Empty, 6931ImmutableArray<VisitResult> results = reinferenceResult.Results; 6966ImmutableArray<BoundExpression> arguments, 6967ImmutableArray<RefKind> refKindsOpt, 6968ImmutableArray<int> argsToParamsOpt, 6985ImmutableArray<ParameterSymbol> parameters = AdjustParametersIfNeeded(method.Parameters, adjustForExtensionBlockMember, method); 7001private static ImmutableArray<BoundExpression> AdjustArgumentsIfNeeded(ImmutableArray<BoundExpression> arguments, bool isExtensionBlockMethod, BoundExpression? receiver) 7012private static ImmutableArray<ParameterSymbol> AdjustParametersIfNeeded(ImmutableArray<ParameterSymbol> parameters, bool isExtensionBlockMember, Symbol member) 7025internal static ImmutableArray<RefKind> AdjustArgumentRefKindsIfNeeded(ImmutableArray<RefKind> argumentRefKindsOpt, bool adjustForExtensionBlockMethod, 7061private static ImmutableArray<int> AdjustArgsToParamsOptIfNeeded(ImmutableArray<int> argsToParamsOpt, bool isExtensionBlockMethod) 7103private void LearnFromEqualsMethod(MethodSymbol method, BoundCall node, TypeWithState receiverType, ImmutableArray<VisitResult> results) 7107var arguments = node.Arguments; 7281public readonly ImmutableArray<BoundExpression> Arguments; 7282public readonly ImmutableArray<VisitResult> Results; 7283public readonly ImmutableArray<int> ArgsToParamsOpt; 7285public CompareExchangeInfo(ImmutableArray<BoundExpression> arguments, ImmutableArray<VisitResult> results, ImmutableArray<int> argsToParamsOpt) 7318var argsToParamsOpt = compareExchangeInfo.ArgsToParamsOpt; 7519protected override void VisitArguments(ImmutableArray<BoundExpression> arguments, ImmutableArray<RefKind> refKindsOpt, MethodSymbol method, ImmutableArray<int> argsToParamsOpt, bool expanded) 7528ImmutableArray<BoundExpression> arguments, 7529ImmutableArray<RefKind> refKindsOpt, 7531ImmutableArray<int> argsToParamsOpt, 7543ImmutableArray<BoundExpression> arguments, 7544ImmutableArray<RefKind> refKindsOpt, 7546ImmutableArray<int> argsToParamsOpt, 7554private delegate (TMember? member, bool returnNotNull) ArgumentsCompletionDelegate<TMember>(ImmutableArray<VisitResult> argumentResults, ImmutableArray<ParameterSymbol> parametersOpt, TMember? member) where TMember : Symbol; 7559private readonly struct ReinferenceResult<TMember>(TMember? member, ImmutableArray<VisitResult> results, 7564public readonly ImmutableArray<VisitResult> Results = results; 7572ImmutableArray<BoundExpression> arguments, 7573ImmutableArray<RefKind> refKindsOpt, 7574ImmutableArray<ParameterSymbol> parametersOpt, 7575ImmutableArray<int> argsToParamsOpt, 7598(ImmutableArray<BoundExpression> argumentsNoConversions, ImmutableArray<Conversion> conversions) = RemoveArgumentConversions(arguments, refKindsOpt); 7601ImmutableArray<VisitResult> results = VisitArgumentsEvaluate(argumentsNoConversions, refKindsOpt, GetParametersAnnotations(arguments, parametersOpt, argsToParamsOpt, expanded), defaultArguments, firstArgumentResult: firstArgumentResult); 7612ImmutableArray<BoundExpression> arguments, 7613ImmutableArray<BoundExpression> argumentsNoConversions, 7614ImmutableArray<Conversion> conversions, 7615ImmutableArray<VisitResult> results, 7616ImmutableArray<RefKind> refKindsOpt, 7617ImmutableArray<ParameterSymbol> parametersOpt, 7618ImmutableArray<int> argsToParamsOpt, 7805ImmutableArray<BoundExpression> arguments, 7806ImmutableArray<BoundExpression> argumentsNoConversions, 7807ImmutableArray<Conversion> conversions, 7808ImmutableArray<RefKind> refKindsOpt, 7809ImmutableArray<int> argsToParamsOpt, 7814return (ImmutableArray<VisitResult> results, ImmutableArray<ParameterSymbol> parametersOpt, TMember? member) => 7827static void expandParamsCollection(ref ImmutableArray<BoundExpression> arguments, ref ImmutableArray<RefKind> refKindsOpt, ImmutableArray<ParameterSymbol> parametersOpt, ref ImmutableArray<int> argsToParamsOpt, ref BitVector defaultArguments) 7841ImmutableArray<BoundExpression> elements; 7988var notNullMembers = method.NotNullMembers; 7989var notNullWhenTrueMembers = method.NotNullWhenTrueMembers; 7990var notNullWhenFalseMembers = method.NotNullWhenFalseMembers; 8025void applyMemberPostConditions(int receiverSlot, TypeSymbol type, ImmutableArray<string> members, ref LocalState state) 8078private ImmutableArray<VisitResult> VisitArgumentsEvaluate( 8079ImmutableArray<BoundExpression> arguments, 8080ImmutableArray<RefKind> refKindsOpt, 8081ImmutableArray<FlowAnalysisAnnotations> parameterAnnotationsOpt, 8089return ImmutableArray<VisitResult>.Empty; 8113private ImmutableArray<FlowAnalysisAnnotations> GetParametersAnnotations(ImmutableArray<BoundExpression> arguments, ImmutableArray<ParameterSymbol> parametersOpt, ImmutableArray<int> argsToParamsOpt, bool expanded) 8115ImmutableArray<FlowAnalysisAnnotations> parameterAnnotationsOpt = default; 8616private (ImmutableArray<BoundExpression> arguments, ImmutableArray<Conversion> conversions) RemoveArgumentConversions( 8617ImmutableArray<BoundExpression> arguments, 8618ImmutableArray<RefKind> refKindsOpt) 8621var conversions = default(ImmutableArray<Conversion>); 8665ImmutableArray<ParameterSymbol> parametersOpt, 8666ImmutableArray<int> argsToParamsOpt, 8699ImmutableArray<BoundExpression> arguments, 8700ImmutableArray<RefKind> argumentRefKindsOpt, 8701ImmutableArray<int> argsToParamsOpt, 8730parameterTypes: out ImmutableArray<TypeWithAnnotations> parameterTypes, 8731parameterRefKinds: out ImmutableArray<RefKind> parameterRefKinds); 8735var typeParameters = definition.GetTypeParametersIncludingExtension(); 8859private ImmutableArray<BoundExpression> GetArgumentsForMethodTypeInference(ImmutableArray<VisitResult> argumentResults, ImmutableArray<BoundExpression> arguments) 9398var arguments = node.Arguments; 9399ImmutableArray<TypeWithState> elementTypes = arguments.SelectAsArray((a, w) => w.VisitRvalueWithState(a), this); 9400ImmutableArray<TypeWithAnnotations> elementTypesWithAnnotations = elementTypes.SelectAsArray(a => a.ToTypeWithAnnotations(compilation)); 9418var locations = tupleOpt.TupleElements.SelectAsArray((element, location) => element.TryGetFirstLocation() ?? location, node.Syntax.Location); 9441ImmutableArray<BoundExpression> values, 9442ImmutableArray<TypeWithState> types, 9443ImmutableArray<int> argsToParamsOpt, 9452var tupleElements = tupleType.TupleElements; 9522var conversions = conversion.UnderlyingConversions; 9523var targetElements = ((NamedTypeSymbol)targetType).TupleElements; 9524var valueElements = valueTuple.TupleElements; 9899static (MethodSymbol invokeSignature, ImmutableArray<ParameterSymbol>) getDelegateOrFunctionPointerInfo(TypeSymbol targetType) 9904_ => (null, ImmutableArray<ParameterSymbol>.Empty), 10641ImmutableArray<MethodSymbol> candidates = toType.UnionFactoryMethods(ref discardedUseSiteInfo); 11085private MethodSymbol CheckMethodGroupReceiverNullability(BoundMethodGroup group, ImmutableArray<ParameterSymbol> parameters, MethodSymbol method, bool invokedAsExtensionMethod) 11488var argumentRefKinds = AdjustArgumentRefKindsIfNeeded(invocation.ArgumentRefKindsOpt, isExtensionBlockMethod, deconstructMethod, argumentCount: n); 11489var argsToParams = AdjustArgsToParamsOptIfNeeded(invocation.ArgsToParamsOpt, isExtensionBlockMethod); 11500var parameters = deconstructMethod.Parameters; 11550private void VisitTupleDeconstructionArguments(ArrayBuilder<DeconstructionVariable> variables, ImmutableArray<(BoundValuePlaceholder? placeholder, BoundExpression? conversion)> deconstructConversionInfo, BoundExpression right, TypeWithState? rightResultOpt) 11553var rightParts = GetDeconstructionRightParts(right, rightResultOpt); 11657var arguments = tuple.Arguments; 11683private ImmutableArray<BoundExpression> GetDeconstructionRightParts(BoundExpression expr, TypeWithState? rightResultOpt) 11712var fields = tupleType.TupleElements; 11751ImmutableArray<VisitResult> results = reinferenceResult.Results; 11944ImmutableArray<VisitResult> results = reinferenceResult.Results; 12151ImmutableArray<ParameterSymbol> parameters, 12152ImmutableArray<BoundExpression> arguments, 12153ImmutableArray<RefKind> refKindsOpt, 12154ImmutableArray<int> argsToParamsOpt, 13053var parameters = logicalOperator.Parameters; 13706VisitArguments(node, receiverType: null, 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 (5)
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) 175var snapshotsArray = EnumerableExtensions.SelectAsArray<KeyValuePair<int, Snapshot>, (int, Snapshot)>(_incrementalSnapshots, (kvp) => (kvp.Key, kvp.Value));
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)
Generated\BoundNodes.xml.Generated.cs (531)
278protected BoundEqualsValue(BoundKind kind, SyntaxNode syntax, ImmutableArray<LocalSymbol> locals, BoundExpression value, bool hasErrors = false) 289public ImmutableArray<LocalSymbol> Locals { get; } 295public BoundFieldEqualsValue(SyntaxNode syntax, FieldSymbol field, ImmutableArray<LocalSymbol> locals, BoundExpression value, bool hasErrors = false) 311public BoundFieldEqualsValue Update(FieldSymbol field, ImmutableArray<LocalSymbol> locals, BoundExpression value) 325public BoundPropertyEqualsValue(SyntaxNode syntax, PropertySymbol property, ImmutableArray<LocalSymbol> locals, BoundExpression value, bool hasErrors = false) 341public BoundPropertyEqualsValue Update(PropertySymbol property, ImmutableArray<LocalSymbol> locals, BoundExpression value) 355public BoundParameterEqualsValue(SyntaxNode syntax, ParameterSymbol parameter, ImmutableArray<LocalSymbol> locals, BoundExpression value, bool hasErrors = false) 371public BoundParameterEqualsValue Update(ParameterSymbol parameter, ImmutableArray<LocalSymbol> locals, BoundExpression value) 986public BoundBadExpression(SyntaxNode syntax, LookupResultKind resultKind, ImmutableArray<Symbol?> symbols, ImmutableArray<BoundExpression> childBoundNodes, TypeSymbol? type, bool hasErrors = false) 1003public ImmutableArray<Symbol?> Symbols { get; } 1004public ImmutableArray<BoundExpression> ChildBoundNodes { get; } 1009public BoundBadExpression Update(LookupResultKind resultKind, ImmutableArray<Symbol?> symbols, ImmutableArray<BoundExpression> childBoundNodes, TypeSymbol? type) 1023public BoundBadStatement(SyntaxNode syntax, ImmutableArray<BoundNode> childBoundNodes, bool hasErrors = false) 1032public ImmutableArray<BoundNode> ChildBoundNodes { get; } 1037public BoundBadStatement Update(ImmutableArray<BoundNode> childBoundNodes) 1079public BoundTypeExpression(SyntaxNode syntax, AliasSymbol? aliasOpt, BoundTypeExpression? boundContainingTypeOpt, ImmutableArray<BoundExpression> boundDimensionsOpt, TypeWithAnnotations typeWithAnnotations, TypeSymbol type, bool hasErrors = false) 1093public ImmutableArray<BoundExpression> BoundDimensionsOpt { get; } 1100public BoundTypeExpression Update(AliasSymbol? aliasOpt, BoundTypeExpression? boundContainingTypeOpt, ImmutableArray<BoundExpression> boundDimensionsOpt, TypeWithAnnotations typeWithAnnotations, TypeSymbol type) 1204public BoundUnaryOperator(SyntaxNode syntax, UnaryOperatorKind operatorKind, BoundExpression operand, ConstantValue? constantValueOpt, MethodSymbol? methodOpt, TypeSymbol? constrainedToTypeOpt, LookupResultKind resultKind, ImmutableArray<MethodSymbol> originalUserDefinedOperatorsOpt, TypeSymbol type, bool hasErrors = false) 1227public ImmutableArray<MethodSymbol> OriginalUserDefinedOperatorsOpt { get; } 1232public BoundUnaryOperator Update(UnaryOperatorKind operatorKind, BoundExpression operand, ConstantValue? constantValueOpt, MethodSymbol? methodOpt, TypeSymbol? constrainedToTypeOpt, LookupResultKind resultKind, ImmutableArray<MethodSymbol> originalUserDefinedOperatorsOpt, TypeSymbol type) 1246public 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) 1275public ImmutableArray<MethodSymbol> OriginalUserDefinedOperatorsOpt { get; } 1280public 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) 1467public BoundFunctionPointerInvocation(SyntaxNode syntax, BoundExpression invokedExpression, ImmutableArray<BoundExpression> arguments, ImmutableArray<RefKind> argumentRefKindsOpt, LookupResultKind resultKind, TypeSymbol type, bool hasErrors = false) 1483public ImmutableArray<BoundExpression> Arguments { get; } 1484public ImmutableArray<RefKind> ArgumentRefKindsOpt { get; } 1490public BoundFunctionPointerInvocation Update(BoundExpression invokedExpression, ImmutableArray<BoundExpression> arguments, ImmutableArray<RefKind> argumentRefKindsOpt, LookupResultKind resultKind, TypeSymbol type) 1758public BoundUserDefinedConditionalLogicalOperator(SyntaxNode syntax, BinaryOperatorKind operatorKind, MethodSymbol logicalOperator, MethodSymbol trueOperator, MethodSymbol falseOperator, BoundValuePlaceholder? trueFalseOperandPlaceholder, BoundExpression? trueFalseOperandConversion, TypeSymbol? constrainedToTypeOpt, LookupResultKind resultKind, ImmutableArray<MethodSymbol> originalUserDefinedOperatorsOpt, BoundExpression left, BoundExpression right, TypeSymbol type, bool hasErrors = false) 1792public ImmutableArray<MethodSymbol> OriginalUserDefinedOperatorsOpt { get; } 1797public BoundUserDefinedConditionalLogicalOperator Update(BinaryOperatorKind operatorKind, MethodSymbol logicalOperator, MethodSymbol trueOperator, MethodSymbol falseOperator, BoundValuePlaceholder? trueFalseOperandPlaceholder, BoundExpression? trueFalseOperandConversion, TypeSymbol? constrainedToTypeOpt, LookupResultKind resultKind, ImmutableArray<MethodSymbol> originalUserDefinedOperatorsOpt, BoundExpression left, BoundExpression right, TypeSymbol type) 1811public 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) 1839public ImmutableArray<MethodSymbol> OriginalUserDefinedOperatorsOpt { get; } 1844public BoundCompoundAssignmentOperator Update(BinaryOperatorSignature @operator, BoundExpression left, BoundExpression right, BoundValuePlaceholder? leftPlaceholder, BoundExpression? leftConversion, BoundValuePlaceholder? finalPlaceholder, BoundExpression? finalConversion, LookupResultKind resultKind, ImmutableArray<MethodSymbol> originalUserDefinedOperatorsOpt, TypeSymbol type) 2082public BoundArrayAccess(SyntaxNode syntax, BoundExpression expression, ImmutableArray<BoundExpression> indices, TypeSymbol type, bool hasErrors = false) 2096public ImmutableArray<BoundExpression> Indices { get; } 2101public BoundArrayAccess Update(BoundExpression expression, ImmutableArray<BoundExpression> indices, TypeSymbol type) 2304public BoundBlockInstrumentation(SyntaxNode syntax, ImmutableArray<LocalSymbol> locals, BoundStatement? prologue, BoundStatement? epilogue, bool hasErrors = false) 2315public ImmutableArray<LocalSymbol> Locals { get; } 2322public BoundBlockInstrumentation Update(ImmutableArray<LocalSymbol> locals, BoundStatement? prologue, BoundStatement? epilogue) 3114public BoundArgListOperator(SyntaxNode syntax, ImmutableArray<BoundExpression> arguments, ImmutableArray<RefKind> argumentRefKindsOpt, TypeSymbol? type, bool hasErrors = false) 3125public ImmutableArray<BoundExpression> Arguments { get; } 3126public ImmutableArray<RefKind> ArgumentRefKindsOpt { get; } 3131public BoundArgListOperator Update(ImmutableArray<BoundExpression> arguments, ImmutableArray<RefKind> argumentRefKindsOpt, TypeSymbol? type) 3355public BoundBlock(SyntaxNode syntax, ImmutableArray<LocalSymbol> locals, ImmutableArray<MethodSymbol> localFunctions, bool hasUnsafeModifier, BoundBlockInstrumentation? instrumentation, ImmutableArray<BoundStatement> statements, bool hasErrors = false) 3369public ImmutableArray<LocalSymbol> Locals { get; } 3370public ImmutableArray<MethodSymbol> LocalFunctions { get; } 3377public BoundBlock Update(ImmutableArray<LocalSymbol> locals, ImmutableArray<MethodSymbol> localFunctions, bool hasUnsafeModifier, BoundBlockInstrumentation? instrumentation, ImmutableArray<BoundStatement> statements) 3391public BoundScope(SyntaxNode syntax, ImmutableArray<LocalSymbol> locals, ImmutableArray<BoundStatement> statements, bool hasErrors = false) 3401public ImmutableArray<LocalSymbol> Locals { get; } 3406public BoundScope Update(ImmutableArray<LocalSymbol> locals, ImmutableArray<BoundStatement> statements) 3420public BoundStateMachineScope(SyntaxNode syntax, ImmutableArray<StateMachineFieldSymbol> fields, BoundStatement statement, bool hasErrors = false) 3431public ImmutableArray<StateMachineFieldSymbol> Fields { get; } 3437public BoundStateMachineScope Update(ImmutableArray<StateMachineFieldSymbol> fields, BoundStatement statement) 3451public BoundLocalDeclaration(SyntaxNode syntax, LocalSymbol localSymbol, BoundTypeExpression? declaredTypeOpt, BoundExpression? initializerOpt, ImmutableArray<BoundExpression> argumentsOpt, bool inferredType, bool hasErrors = false) 3467public ImmutableArray<BoundExpression> ArgumentsOpt { get; } 3473public BoundLocalDeclaration Update(LocalSymbol localSymbol, BoundTypeExpression? declaredTypeOpt, BoundExpression? initializerOpt, ImmutableArray<BoundExpression> argumentsOpt, bool inferredType) 3487protected BoundMultipleLocalDeclarationsBase(BoundKind kind, SyntaxNode syntax, ImmutableArray<BoundLocalDeclaration> localDeclarations, bool hasErrors = false) 3496public ImmutableArray<BoundLocalDeclaration> LocalDeclarations { get; } 3501public BoundMultipleLocalDeclarations(SyntaxNode syntax, ImmutableArray<BoundLocalDeclaration> localDeclarations, bool hasErrors = false) 3513public BoundMultipleLocalDeclarations Update(ImmutableArray<BoundLocalDeclaration> localDeclarations) 3527public BoundUsingLocalDeclarations(SyntaxNode syntax, MethodArgumentInfo? patternDisposeInfoOpt, BoundAwaitableInfo? awaitOpt, ImmutableArray<BoundLocalDeclaration> localDeclarations, bool hasErrors = false) 3543public BoundUsingLocalDeclarations Update(MethodArgumentInfo? patternDisposeInfoOpt, BoundAwaitableInfo? awaitOpt, ImmutableArray<BoundLocalDeclaration> localDeclarations) 3811public BoundSwitchStatement(SyntaxNode syntax, BoundExpression expression, ImmutableArray<LocalSymbol> innerLocals, ImmutableArray<MethodSymbol> innerLocalFunctions, ImmutableArray<BoundSwitchSection> switchSections, BoundDecisionDag reachabilityDecisionDag, BoundSwitchLabel? defaultLabel, LabelSymbol breakLabel, bool hasErrors = false) 3832public ImmutableArray<LocalSymbol> InnerLocals { get; } 3833public ImmutableArray<MethodSymbol> InnerLocalFunctions { get; } 3834public ImmutableArray<BoundSwitchSection> SwitchSections { get; } 3842public BoundSwitchStatement Update(BoundExpression expression, ImmutableArray<LocalSymbol> innerLocals, ImmutableArray<MethodSymbol> innerLocalFunctions, ImmutableArray<BoundSwitchSection> switchSections, BoundDecisionDag reachabilityDecisionDag, BoundSwitchLabel? defaultLabel, LabelSymbol breakLabel) 3856public BoundSwitchDispatch(SyntaxNode syntax, BoundExpression expression, ImmutableArray<(ConstantValue value, LabelSymbol label)> cases, LabelSymbol defaultLabel, LengthBasedStringSwitchData? lengthBasedStringSwitchDataOpt, bool hasErrors = false) 3871public ImmutableArray<(ConstantValue value, LabelSymbol label)> Cases { get; } 3878public BoundSwitchDispatch Update(BoundExpression expression, ImmutableArray<(ConstantValue value, LabelSymbol label)> cases, LabelSymbol defaultLabel, LengthBasedStringSwitchData? lengthBasedStringSwitchDataOpt) 3953protected BoundConditionalLoopStatement(BoundKind kind, SyntaxNode syntax, ImmutableArray<LocalSymbol> locals, BoundExpression condition, BoundStatement body, LabelSymbol breakLabel, LabelSymbol continueLabel, bool hasErrors = false) 3968public ImmutableArray<LocalSymbol> Locals { get; } 3975public BoundDoStatement(SyntaxNode syntax, ImmutableArray<LocalSymbol> locals, BoundExpression condition, BoundStatement body, LabelSymbol breakLabel, LabelSymbol continueLabel, bool hasErrors = false) 3991public BoundDoStatement Update(ImmutableArray<LocalSymbol> locals, BoundExpression condition, BoundStatement body, LabelSymbol breakLabel, LabelSymbol continueLabel) 4005public BoundWhileStatement(SyntaxNode syntax, ImmutableArray<LocalSymbol> locals, BoundExpression condition, BoundStatement body, LabelSymbol breakLabel, LabelSymbol continueLabel, bool hasErrors = false) 4021public BoundWhileStatement Update(ImmutableArray<LocalSymbol> locals, BoundExpression condition, BoundStatement body, LabelSymbol breakLabel, LabelSymbol continueLabel) 4035public BoundForStatement(SyntaxNode syntax, ImmutableArray<LocalSymbol> outerLocals, BoundStatement? initializer, ImmutableArray<LocalSymbol> innerLocals, BoundExpression? condition, BoundStatement? increment, BoundStatement body, LabelSymbol breakLabel, LabelSymbol continueLabel, bool hasErrors = false) 4053public ImmutableArray<LocalSymbol> OuterLocals { get; } 4055public ImmutableArray<LocalSymbol> InnerLocals { get; } 4063public BoundForStatement Update(ImmutableArray<LocalSymbol> outerLocals, BoundStatement? initializer, ImmutableArray<LocalSymbol> innerLocals, BoundExpression? condition, BoundStatement? increment, BoundStatement body, LabelSymbol breakLabel, LabelSymbol continueLabel) 4077public BoundForEachStatement(SyntaxNode syntax, ForEachEnumeratorInfo? enumeratorInfoOpt, BoundValuePlaceholder? elementPlaceholder, BoundExpression? elementConversion, BoundTypeExpression iterationVariableType, ImmutableArray<LocalSymbol> iterationVariables, BoundExpression? iterationErrorExpressionOpt, BoundExpression expression, BoundForEachDeconstructStep? deconstructionOpt, BoundStatement body, LabelSymbol breakLabel, LabelSymbol continueLabel, bool hasErrors = false) 4103public ImmutableArray<LocalSymbol> IterationVariables { get; } 4112public BoundForEachStatement Update(ForEachEnumeratorInfo? enumeratorInfoOpt, BoundValuePlaceholder? elementPlaceholder, BoundExpression? elementConversion, BoundTypeExpression iterationVariableType, ImmutableArray<LocalSymbol> iterationVariables, BoundExpression? iterationErrorExpressionOpt, BoundExpression expression, BoundForEachDeconstructStep? deconstructionOpt, BoundStatement body, LabelSymbol breakLabel, LabelSymbol continueLabel) 4157public BoundUsingStatement(SyntaxNode syntax, ImmutableArray<LocalSymbol> locals, BoundMultipleLocalDeclarations? declarationsOpt, BoundExpression? expressionOpt, BoundStatement body, BoundAwaitableInfo? awaitOpt, MethodArgumentInfo? patternDisposeInfoOpt, bool hasErrors = false) 4172public ImmutableArray<LocalSymbol> Locals { get; } 4182public BoundUsingStatement Update(ImmutableArray<LocalSymbol> locals, BoundMultipleLocalDeclarations? declarationsOpt, BoundExpression? expressionOpt, BoundStatement body, BoundAwaitableInfo? awaitOpt, MethodArgumentInfo? patternDisposeInfoOpt) 4196public BoundFixedStatement(SyntaxNode syntax, ImmutableArray<LocalSymbol> locals, BoundMultipleLocalDeclarations declarations, BoundStatement body, bool hasErrors = false) 4209public ImmutableArray<LocalSymbol> Locals { get; } 4216public BoundFixedStatement Update(ImmutableArray<LocalSymbol> locals, BoundMultipleLocalDeclarations declarations, BoundStatement body) 4261public BoundTryStatement(SyntaxNode syntax, BoundBlock tryBlock, ImmutableArray<BoundCatchBlock> catchBlocks, BoundBlock? finallyBlockOpt, LabelSymbol? finallyLabelOpt, bool preferFaultHandler, bool hasErrors = false) 4276public ImmutableArray<BoundCatchBlock> CatchBlocks { get; } 4284public BoundTryStatement Update(BoundBlock tryBlock, ImmutableArray<BoundCatchBlock> catchBlocks, BoundBlock? finallyBlockOpt, LabelSymbol? finallyLabelOpt, bool preferFaultHandler) 4298public BoundCatchBlock(SyntaxNode syntax, ImmutableArray<LocalSymbol> locals, BoundExpression? exceptionSourceOpt, TypeSymbol? exceptionTypeOpt, BoundStatementList? exceptionFilterPrologueOpt, BoundExpression? exceptionFilterOpt, BoundBlock body, bool isSynthesizedAsyncCatchAll, bool hasErrors = false) 4314public ImmutableArray<LocalSymbol> Locals { get; } 4325public BoundCatchBlock Update(ImmutableArray<LocalSymbol> locals, BoundExpression? exceptionSourceOpt, TypeSymbol? exceptionTypeOpt, BoundStatementList? exceptionFilterPrologueOpt, BoundExpression? exceptionFilterOpt, BoundBlock body, bool isSynthesizedAsyncCatchAll) 4848protected BoundStatementList(BoundKind kind, SyntaxNode syntax, ImmutableArray<BoundStatement> statements, bool hasErrors = false) 4857public BoundStatementList(SyntaxNode syntax, ImmutableArray<BoundStatement> statements, bool hasErrors = false) 4866public ImmutableArray<BoundStatement> Statements { get; } 4871public BoundStatementList Update(ImmutableArray<BoundStatement> statements) 4918protected BoundSwitchExpression(BoundKind kind, SyntaxNode syntax, BoundExpression expression, ImmutableArray<BoundSwitchExpressionArm> switchArms, BoundDecisionDag reachabilityDecisionDag, LabelSymbol? defaultLabel, bool reportedNotExhaustive, TypeSymbol? type, bool hasErrors = false) 4934public ImmutableArray<BoundSwitchExpressionArm> SwitchArms { get; } 4942public BoundSwitchExpressionArm(SyntaxNode syntax, ImmutableArray<LocalSymbol> locals, BoundPattern pattern, bool hasUnionMatching, BoundExpression? whenClause, BoundExpression value, LabelSymbol label, bool hasErrors = false) 4959public ImmutableArray<LocalSymbol> Locals { get; } 4969public BoundSwitchExpressionArm Update(ImmutableArray<LocalSymbol> locals, BoundPattern pattern, bool hasUnionMatching, BoundExpression? whenClause, BoundExpression value, LabelSymbol label) 4983public BoundUnconvertedSwitchExpression(SyntaxNode syntax, BoundExpression expression, ImmutableArray<BoundSwitchExpressionArm> switchArms, BoundDecisionDag reachabilityDecisionDag, LabelSymbol? defaultLabel, bool reportedNotExhaustive, TypeSymbol? type, bool hasErrors = false) 4997public BoundUnconvertedSwitchExpression Update(BoundExpression expression, ImmutableArray<BoundSwitchExpressionArm> switchArms, BoundDecisionDag reachabilityDecisionDag, LabelSymbol? defaultLabel, bool reportedNotExhaustive, TypeSymbol? type) 5011public BoundConvertedSwitchExpression(SyntaxNode syntax, TypeSymbol? naturalTypeOpt, bool wasTargetTyped, BoundExpression expression, ImmutableArray<BoundSwitchExpressionArm> switchArms, BoundDecisionDag reachabilityDecisionDag, LabelSymbol? defaultLabel, bool reportedNotExhaustive, TypeSymbol type, bool hasErrors = false) 5031public BoundConvertedSwitchExpression Update(TypeSymbol? naturalTypeOpt, bool wasTargetTyped, BoundExpression expression, ImmutableArray<BoundSwitchExpressionArm> switchArms, BoundDecisionDag reachabilityDecisionDag, LabelSymbol? defaultLabel, bool reportedNotExhaustive, TypeSymbol type) 5154public BoundWhenDecisionDagNode(SyntaxNode syntax, ImmutableArray<BoundPatternBinding> bindings, BoundExpression? whenExpression, BoundDecisionDagNode whenTrue, BoundDecisionDagNode? whenFalse, bool hasErrors = false) 5167public ImmutableArray<BoundPatternBinding> Bindings { get; } 5175public BoundWhenDecisionDagNode Update(ImmutableArray<BoundPatternBinding> bindings, BoundExpression? whenExpression, BoundDecisionDagNode whenTrue, BoundDecisionDagNode? whenFalse) 5727public BoundSwitchSection(SyntaxNode syntax, ImmutableArray<LocalSymbol> locals, ImmutableArray<BoundSwitchLabel> switchLabels, ImmutableArray<BoundStatement> statements, bool hasErrors = false) 5739public ImmutableArray<LocalSymbol> Locals { get; } 5740public ImmutableArray<BoundSwitchLabel> SwitchLabels { get; } 5745public BoundSwitchSection Update(ImmutableArray<LocalSymbol> locals, ImmutableArray<BoundSwitchLabel> switchLabels, ImmutableArray<BoundStatement> statements) 5836public BoundSequence(SyntaxNode syntax, ImmutableArray<LocalSymbol> locals, ImmutableArray<BoundExpression> sideEffects, BoundExpression value, TypeSymbol type, bool hasErrors = false) 5851public ImmutableArray<LocalSymbol> Locals { get; } 5852public ImmutableArray<BoundExpression> SideEffects { get; } 5858public BoundSequence Update(ImmutableArray<LocalSymbol> locals, ImmutableArray<BoundExpression> sideEffects, BoundExpression value, TypeSymbol type) 5872public BoundSpillSequence(SyntaxNode syntax, ImmutableArray<LocalSymbol> locals, ImmutableArray<BoundStatement> sideEffects, BoundExpression value, TypeSymbol type, bool hasErrors = false) 5887public ImmutableArray<LocalSymbol> Locals { get; } 5888public ImmutableArray<BoundStatement> SideEffects { get; } 5894public BoundSpillSequence Update(ImmutableArray<LocalSymbol> locals, ImmutableArray<BoundStatement> sideEffects, BoundExpression value, TypeSymbol type) 5908public BoundDynamicMemberAccess(SyntaxNode syntax, BoundExpression receiver, ImmutableArray<TypeWithAnnotations> typeArgumentsOpt, string name, bool invoked, bool indexed, TypeSymbol type, bool hasErrors = false) 5925public ImmutableArray<TypeWithAnnotations> TypeArgumentsOpt { get; } 5933public BoundDynamicMemberAccess Update(BoundExpression receiver, ImmutableArray<TypeWithAnnotations> typeArgumentsOpt, string name, bool invoked, bool indexed, TypeSymbol type) 5947protected BoundDynamicInvocableBase(BoundKind kind, SyntaxNode syntax, BoundExpression expression, ImmutableArray<BoundExpression> arguments, TypeSymbol? type, bool hasErrors = false) 5959public ImmutableArray<BoundExpression> Arguments { get; } 5964public BoundDynamicInvocation(SyntaxNode syntax, ImmutableArray<string?> argumentNamesOpt, ImmutableArray<RefKind> argumentRefKindsOpt, ImmutableArray<MethodSymbol> applicableMethods, BoundExpression expression, ImmutableArray<BoundExpression> arguments, TypeSymbol type, bool hasErrors = false) 5979public ImmutableArray<string?> ArgumentNamesOpt { get; } 5980public ImmutableArray<RefKind> ArgumentRefKindsOpt { get; } 5981public ImmutableArray<MethodSymbol> ApplicableMethods { get; } 5986public BoundDynamicInvocation Update(ImmutableArray<string?> argumentNamesOpt, ImmutableArray<RefKind> argumentRefKindsOpt, ImmutableArray<MethodSymbol> applicableMethods, BoundExpression expression, ImmutableArray<BoundExpression> arguments, TypeSymbol type) 6145public 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) 6161public ImmutableArray<TypeWithAnnotations> TypeArgumentsOpt { get; } 6163public ImmutableArray<MethodSymbol> Methods { get; } 6172public BoundMethodGroup Update(ImmutableArray<TypeWithAnnotations> typeArgumentsOpt, string name, ImmutableArray<MethodSymbol> methods, Symbol? lookupSymbolOpt, DiagnosticInfo? lookupError, BoundMethodGroupFlags? flags, FunctionTypeSymbol? functionType, BoundExpression? receiverOpt, LookupResultKind resultKind) 6186public BoundPropertyGroup(SyntaxNode syntax, ImmutableArray<PropertySymbol> properties, BoundExpression? receiverOpt, LookupResultKind resultKind, bool hasErrors = false) 6195public ImmutableArray<PropertySymbol> Properties { get; } 6200public BoundPropertyGroup Update(ImmutableArray<PropertySymbol> properties, BoundExpression? receiverOpt, LookupResultKind resultKind) 6214public 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) 6245public ImmutableArray<BoundExpression> Arguments { get; } 6246public ImmutableArray<string?> ArgumentNamesOpt { get; } 6247public ImmutableArray<RefKind> ArgumentRefKindsOpt { get; } 6251public ImmutableArray<int> ArgsToParamsOpt { get; } 6254public ImmutableArray<MethodSymbol> OriginalMethodsOpt { get; } 6259public 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) 6312public 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) 6332public ImmutableArray<BoundExpression> ConstructorArguments { get; } 6333public ImmutableArray<string?> ConstructorArgumentNamesOpt { get; } 6334public ImmutableArray<int> ConstructorArgumentsToParamsOpt { get; } 6337public ImmutableArray<BoundAssignmentOperator> NamedArguments { get; } 6343public BoundAttribute Update(MethodSymbol? constructor, ImmutableArray<BoundExpression> constructorArguments, ImmutableArray<string?> constructorArgumentNamesOpt, ImmutableArray<int> constructorArgumentsToParamsOpt, bool constructorExpanded, BitVector constructorDefaultArguments, ImmutableArray<BoundAssignmentOperator> namedArguments, LookupResultKind resultKind, TypeSymbol type) 6357public BoundUnconvertedObjectCreationExpression(SyntaxNode syntax, ImmutableArray<BoundExpression> arguments, ImmutableArray<(string Name, Location Location)?> argumentNamesOpt, ImmutableArray<RefKind> argumentRefKindsOpt, InitializerExpressionSyntax? initializerOpt, Binder binder, bool hasErrors = false) 6372public ImmutableArray<BoundExpression> Arguments { get; } 6373public ImmutableArray<(string Name, Location Location)?> ArgumentNamesOpt { get; } 6374public ImmutableArray<RefKind> ArgumentRefKindsOpt { get; } 6381public BoundUnconvertedObjectCreationExpression Update(ImmutableArray<BoundExpression> arguments, ImmutableArray<(string Name, Location Location)?> argumentNamesOpt, ImmutableArray<RefKind> argumentRefKindsOpt, InitializerExpressionSyntax? initializerOpt, Binder binder) 6416public 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) 6439public ImmutableArray<MethodSymbol> ConstructorsGroup { get; } 6440public override ImmutableArray<BoundExpression> Arguments { get; } 6441public override ImmutableArray<string?> ArgumentNamesOpt { get; } 6442public override ImmutableArray<RefKind> ArgumentRefKindsOpt { get; } 6444public override ImmutableArray<int> ArgsToParamsOpt { get; } 6453public 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) 6467protected BoundCollectionExpressionBase(BoundKind kind, SyntaxNode syntax, ImmutableArray<BoundNode> elements, TypeSymbol? type, bool hasErrors = false) 6480public ImmutableArray<BoundNode> Elements { get; } 6485public BoundUnconvertedCollectionExpression(SyntaxNode syntax, BoundUnconvertedWithElement? withElement, ImmutableArray<BoundNode> elements, bool hasErrors = false) 6500public BoundUnconvertedCollectionExpression Update(BoundUnconvertedWithElement? withElement, ImmutableArray<BoundNode> elements) 6514public BoundUnconvertedWithElement(SyntaxNode syntax, ImmutableArray<BoundExpression> arguments, ImmutableArray<(string Name, Location Location)?> argumentNamesOpt, ImmutableArray<RefKind> argumentRefKindsOpt, bool hasErrors = false) 6525public ImmutableArray<BoundExpression> Arguments { get; } 6526public ImmutableArray<(string Name, Location Location)?> ArgumentNamesOpt { get; } 6527public ImmutableArray<RefKind> ArgumentRefKindsOpt { get; } 6532public BoundUnconvertedWithElement Update(ImmutableArray<BoundExpression> arguments, ImmutableArray<(string Name, Location Location)?> argumentNamesOpt, ImmutableArray<RefKind> argumentRefKindsOpt) 6546public BoundCollectionExpression(SyntaxNode syntax, CollectionExpressionTypeKind collectionTypeKind, BoundObjectOrCollectionValuePlaceholder? placeholder, BoundExpression? collectionCreation, MethodSymbol? collectionBuilderMethod, BoundCollectionBuilderElementsPlaceholder? collectionBuilderElementsPlaceholder, bool wasTargetTyped, bool hasWithElement, BoundUnconvertedCollectionExpression unconvertedCollectionExpression, ImmutableArray<BoundNode> elements, TypeSymbol type, bool hasErrors = false) 6581public BoundCollectionExpression Update(CollectionExpressionTypeKind collectionTypeKind, BoundObjectOrCollectionValuePlaceholder? placeholder, BoundExpression? collectionCreation, MethodSymbol? collectionBuilderMethod, BoundCollectionBuilderElementsPlaceholder? collectionBuilderElementsPlaceholder, bool wasTargetTyped, bool hasWithElement, BoundUnconvertedCollectionExpression unconvertedCollectionExpression, ImmutableArray<BoundNode> elements, TypeSymbol type) 6663protected BoundTupleExpression(BoundKind kind, SyntaxNode syntax, ImmutableArray<BoundExpression> arguments, ImmutableArray<string?> argumentNamesOpt, ImmutableArray<bool> inferredNamesOpt, TypeSymbol? type, bool hasErrors = false) 6674public ImmutableArray<BoundExpression> Arguments { get; } 6675public ImmutableArray<string?> ArgumentNamesOpt { get; } 6676public ImmutableArray<bool> InferredNamesOpt { get; } 6681public BoundTupleLiteral(SyntaxNode syntax, ImmutableArray<BoundExpression> arguments, ImmutableArray<string?> argumentNamesOpt, ImmutableArray<bool> inferredNamesOpt, TypeSymbol? type, bool hasErrors = false) 6694public BoundTupleLiteral Update(ImmutableArray<BoundExpression> arguments, ImmutableArray<string?> argumentNamesOpt, ImmutableArray<bool> inferredNamesOpt, TypeSymbol? type) 6708public BoundConvertedTupleLiteral(SyntaxNode syntax, BoundTupleLiteral? sourceTuple, bool wasTargetTyped, ImmutableArray<BoundExpression> arguments, ImmutableArray<string?> argumentNamesOpt, ImmutableArray<bool> inferredNamesOpt, TypeSymbol? type, bool hasErrors = false) 6724public BoundConvertedTupleLiteral Update(BoundTupleLiteral? sourceTuple, bool wasTargetTyped, ImmutableArray<BoundExpression> arguments, ImmutableArray<string?> argumentNamesOpt, ImmutableArray<bool> inferredNamesOpt, TypeSymbol? type) 6738public 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) 6757public override ImmutableArray<BoundExpression> Arguments { get; } 6758public override ImmutableArray<string?> ArgumentNamesOpt { get; } 6759public override ImmutableArray<RefKind> ArgumentRefKindsOpt { get; } 6761public ImmutableArray<MethodSymbol> ApplicableMethods { get; } 6767public BoundDynamicObjectCreationExpression Update(string name, ImmutableArray<BoundExpression> arguments, ImmutableArray<string?> argumentNamesOpt, ImmutableArray<RefKind> argumentRefKindsOpt, BoundObjectInitializerExpressionBase? initializerExpressionOpt, ImmutableArray<MethodSymbol> applicableMethods, bool wasTargetTyped, TypeSymbol type) 6813protected BoundObjectInitializerExpressionBase(BoundKind kind, SyntaxNode syntax, BoundObjectOrCollectionValuePlaceholder placeholder, ImmutableArray<BoundExpression> initializers, TypeSymbol type, bool hasErrors = false) 6827public ImmutableArray<BoundExpression> Initializers { get; } 6832public BoundObjectInitializerExpression(SyntaxNode syntax, BoundObjectOrCollectionValuePlaceholder placeholder, ImmutableArray<BoundExpression> initializers, TypeSymbol type, bool hasErrors = false) 6846public BoundObjectInitializerExpression Update(BoundObjectOrCollectionValuePlaceholder placeholder, ImmutableArray<BoundExpression> initializers, TypeSymbol type) 6860public 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) 6882public ImmutableArray<BoundExpression> Arguments { get; } 6883public ImmutableArray<string?> ArgumentNamesOpt { get; } 6884public ImmutableArray<RefKind> ArgumentRefKindsOpt { get; } 6886public ImmutableArray<int> ArgsToParamsOpt { get; } 6895public 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) 6954public BoundCollectionInitializerExpression(SyntaxNode syntax, BoundObjectOrCollectionValuePlaceholder placeholder, ImmutableArray<BoundExpression> initializers, TypeSymbol type, bool hasErrors = false) 6968public BoundCollectionInitializerExpression Update(BoundObjectOrCollectionValuePlaceholder placeholder, ImmutableArray<BoundExpression> initializers, TypeSymbol type) 6982public 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) 7002public ImmutableArray<BoundExpression> Arguments { get; } 7005public ImmutableArray<int> ArgsToParamsOpt { get; } 7013public BoundCollectionElementInitializer Update(MethodSymbol addMethod, ImmutableArray<BoundExpression> arguments, BoundExpression? implicitReceiverOpt, bool expanded, ImmutableArray<int> argsToParamsOpt, BitVector defaultArguments, bool invokedAsExtensionMethod, LookupResultKind resultKind, TypeSymbol type) 7027public BoundDynamicCollectionElementInitializer(SyntaxNode syntax, ImmutableArray<MethodSymbol> applicableMethods, BoundExpression expression, ImmutableArray<BoundExpression> arguments, TypeSymbol type, bool hasErrors = false) 7040public ImmutableArray<MethodSymbol> ApplicableMethods { get; } 7045public BoundDynamicCollectionElementInitializer Update(ImmutableArray<MethodSymbol> applicableMethods, BoundExpression expression, ImmutableArray<BoundExpression> arguments, TypeSymbol type) 7094public BoundAnonymousObjectCreationExpression(SyntaxNode syntax, MethodSymbol constructor, ImmutableArray<BoundExpression> arguments, ImmutableArray<BoundAnonymousPropertyDeclaration> declarations, TypeSymbol type, bool hasErrors = false) 7110public ImmutableArray<BoundExpression> Arguments { get; } 7111public ImmutableArray<BoundAnonymousPropertyDeclaration> Declarations { get; } 7116public BoundAnonymousObjectCreationExpression Update(MethodSymbol constructor, ImmutableArray<BoundExpression> arguments, ImmutableArray<BoundAnonymousPropertyDeclaration> declarations, TypeSymbol type) 7236public BoundArrayCreation(SyntaxNode syntax, ImmutableArray<BoundExpression> bounds, BoundArrayInitialization? initializerOpt, TypeSymbol type, bool hasErrors = false) 7248public ImmutableArray<BoundExpression> Bounds { get; } 7254public BoundArrayCreation Update(ImmutableArray<BoundExpression> bounds, BoundArrayInitialization? initializerOpt, TypeSymbol type) 7268public BoundArrayInitialization(SyntaxNode syntax, bool isInferred, ImmutableArray<BoundExpression> initializers, bool hasErrors = false) 7280public ImmutableArray<BoundExpression> Initializers { get; } 7285public BoundArrayInitialization Update(bool isInferred, ImmutableArray<BoundExpression> initializers) 7528public 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) 7553public ImmutableArray<BoundExpression> Arguments { get; } 7554public ImmutableArray<string?> ArgumentNamesOpt { get; } 7555public ImmutableArray<RefKind> ArgumentRefKindsOpt { get; } 7558public ImmutableArray<int> ArgsToParamsOpt { get; } 7560public ImmutableArray<PropertySymbol> OriginalIndexersOpt { get; } 7565public 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) 7579public BoundImplicitIndexerAccess(SyntaxNode syntax, BoundExpression receiver, BoundExpression argument, BoundExpression lengthOrCountAccess, BoundImplicitIndexerReceiverPlaceholder receiverPlaceholder, BoundExpression indexerOrSliceAccess, ImmutableArray<BoundImplicitIndexerValuePlaceholder> argumentPlaceholders, TypeSymbol type, bool hasErrors = false) 7609public ImmutableArray<BoundImplicitIndexerValuePlaceholder> ArgumentPlaceholders { get; } 7614public BoundImplicitIndexerAccess Update(BoundExpression receiver, BoundExpression argument, BoundExpression lengthOrCountAccess, BoundImplicitIndexerReceiverPlaceholder receiverPlaceholder, BoundExpression indexerOrSliceAccess, ImmutableArray<BoundImplicitIndexerValuePlaceholder> argumentPlaceholders, TypeSymbol type) 7669public BoundDynamicIndexerAccess(SyntaxNode syntax, BoundExpression receiver, ImmutableArray<BoundExpression> arguments, ImmutableArray<string?> argumentNamesOpt, ImmutableArray<RefKind> argumentRefKindsOpt, ImmutableArray<PropertySymbol> applicableIndexers, TypeSymbol type, bool hasErrors = false) 7687public ImmutableArray<BoundExpression> Arguments { get; } 7688public ImmutableArray<string?> ArgumentNamesOpt { get; } 7689public ImmutableArray<RefKind> ArgumentRefKindsOpt { get; } 7690public ImmutableArray<PropertySymbol> ApplicableIndexers { get; } 7695public BoundDynamicIndexerAccess Update(BoundExpression receiver, ImmutableArray<BoundExpression> arguments, ImmutableArray<string?> argumentNamesOpt, ImmutableArray<RefKind> argumentRefKindsOpt, ImmutableArray<PropertySymbol> applicableIndexers, TypeSymbol type) 7834public BoundTypeOrInstanceInitializers(SyntaxNode syntax, ImmutableArray<BoundStatement> statements, bool hasErrors = false) 7846public new BoundTypeOrInstanceInitializers Update(ImmutableArray<BoundStatement> statements) 7897protected BoundInterpolatedStringBase(BoundKind kind, SyntaxNode syntax, ImmutableArray<BoundExpression> parts, ConstantValue? constantValueOpt, TypeSymbol? type, bool hasErrors = false) 7907public ImmutableArray<BoundExpression> Parts { get; } 7913public BoundUnconvertedInterpolatedString(SyntaxNode syntax, ImmutableArray<BoundExpression> parts, ConstantValue? constantValueOpt, TypeSymbol? type, bool hasErrors = false) 7925public BoundUnconvertedInterpolatedString Update(ImmutableArray<BoundExpression> parts, ConstantValue? constantValueOpt, TypeSymbol? type) 7939public BoundInterpolatedString(SyntaxNode syntax, InterpolatedStringHandlerData? interpolationData, ImmutableArray<BoundExpression> parts, ConstantValue? constantValueOpt, TypeSymbol? type, bool hasErrors = false) 7953public BoundInterpolatedString Update(InterpolatedStringHandlerData? interpolationData, ImmutableArray<BoundExpression> parts, ConstantValue? constantValueOpt, TypeSymbol? type) 8324public BoundRecursivePattern(SyntaxNode syntax, BoundTypeExpression? declaredType, MethodSymbol? deconstructMethod, ImmutableArray<BoundPositionalSubpattern> deconstruction, ImmutableArray<BoundPropertySubpattern> properties, bool isExplicitNotNullTest, UnionMatchingMode unionMatchingMode, Symbol? variable, BoundExpression? variableAccess, TypeSymbol inputType, TypeSymbol narrowedType, bool hasErrors = false) 8345public ImmutableArray<BoundPositionalSubpattern> Deconstruction { get; } 8346public ImmutableArray<BoundPropertySubpattern> Properties { get; } 8353public BoundRecursivePattern Update(BoundTypeExpression? declaredType, MethodSymbol? deconstructMethod, ImmutableArray<BoundPositionalSubpattern> deconstruction, ImmutableArray<BoundPropertySubpattern> properties, bool isExplicitNotNullTest, UnionMatchingMode unionMatchingMode, Symbol? variable, BoundExpression? variableAccess, TypeSymbol inputType, TypeSymbol narrowedType) 8367public 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) 8387public ImmutableArray<BoundPattern> Subpatterns { get; } 8397public BoundListPattern Update(ImmutableArray<BoundPattern> subpatterns, bool hasSlice, BoundExpression? lengthAccess, BoundExpression? indexerAccess, BoundListPatternReceiverPlaceholder? receiverPlaceholder, BoundListPatternIndexPlaceholder? argumentPlaceholder, Symbol? variable, BoundExpression? variableAccess, TypeSymbol inputType, TypeSymbol narrowedType) 8450public BoundITuplePattern(SyntaxNode syntax, MethodSymbol getLengthMethod, MethodSymbol getItemMethod, ImmutableArray<BoundPositionalSubpattern> subpatterns, TypeSymbol inputType, TypeSymbol narrowedType, bool hasErrors = false) 8471public ImmutableArray<BoundPositionalSubpattern> Subpatterns { get; } 8476public BoundITuplePattern Update(MethodSymbol getLengthMethod, MethodSymbol getItemMethod, ImmutableArray<BoundPositionalSubpattern> subpatterns, TypeSymbol inputType, TypeSymbol narrowedType) 8953public BoundConstructorMethodBody(SyntaxNode syntax, ImmutableArray<LocalSymbol> locals, BoundStatement? initializer, BoundBlock? blockBody, BoundBlock? expressionBody, bool hasErrors = false) 8963public ImmutableArray<LocalSymbol> Locals { get; } 8969public BoundConstructorMethodBody Update(ImmutableArray<LocalSymbol> locals, BoundStatement? initializer, BoundBlock? blockBody, BoundBlock? expressionBody) 11110ImmutableArray<LocalSymbol> locals = this.VisitLocals(node.Locals); 11117ImmutableArray<LocalSymbol> locals = this.VisitLocals(node.Locals); 11124ImmutableArray<LocalSymbol> locals = this.VisitLocals(node.Locals); 11219ImmutableArray<Symbol?> symbols = this.VisitSymbols<Symbol?>(node.Symbols); 11220ImmutableArray<BoundExpression> childBoundNodes = this.VisitList(node.ChildBoundNodes); 11226ImmutableArray<BoundNode> childBoundNodes = this.VisitList(node.ChildBoundNodes); 11238ImmutableArray<BoundExpression> boundDimensionsOpt = this.VisitList(node.BoundDimensionsOpt); 11258ImmutableArray<MethodSymbol> originalUserDefinedOperatorsOpt = this.VisitSymbols<MethodSymbol>(node.OriginalUserDefinedOperatorsOpt); 11267ImmutableArray<MethodSymbol> originalUserDefinedOperatorsOpt = this.VisitSymbols<MethodSymbol>(node.OriginalUserDefinedOperatorsOpt); 11312ImmutableArray<BoundExpression> arguments = this.VisitList(node.Arguments); 11369ImmutableArray<MethodSymbol> originalUserDefinedOperatorsOpt = this.VisitSymbols<MethodSymbol>(node.OriginalUserDefinedOperatorsOpt); 11380ImmutableArray<MethodSymbol> originalUserDefinedOperatorsOpt = this.VisitSymbols<MethodSymbol>(node.OriginalUserDefinedOperatorsOpt); 11440ImmutableArray<BoundExpression> indices = this.VisitList(node.Indices); 11482ImmutableArray<LocalSymbol> locals = this.VisitLocals(node.Locals); 11614ImmutableArray<BoundExpression> arguments = this.VisitList(node.Arguments); 11643ImmutableArray<LocalSymbol> locals = this.VisitLocals(node.Locals); 11644ImmutableArray<MethodSymbol> localFunctions = this.VisitDeclaredLocalFunctions(node.LocalFunctions); 11646ImmutableArray<BoundStatement> statements = this.VisitList(node.Statements); 11651ImmutableArray<LocalSymbol> locals = this.VisitLocals(node.Locals); 11652ImmutableArray<BoundStatement> statements = this.VisitList(node.Statements); 11657ImmutableArray<StateMachineFieldSymbol> fields = this.VisitSymbols<StateMachineFieldSymbol>(node.Fields); 11666ImmutableArray<BoundExpression> argumentsOpt = this.VisitList(node.ArgumentsOpt); 11671ImmutableArray<BoundLocalDeclaration> localDeclarations = this.VisitList(node.LocalDeclarations); 11677ImmutableArray<BoundLocalDeclaration> localDeclarations = this.VisitList(node.LocalDeclarations); 11723ImmutableArray<LocalSymbol> innerLocals = this.VisitLocals(node.InnerLocals); 11724ImmutableArray<MethodSymbol> innerLocalFunctions = this.VisitDeclaredLocalFunctions(node.InnerLocalFunctions); 11727ImmutableArray<BoundSwitchSection> switchSections = this.VisitList(node.SwitchSections); 11747ImmutableArray<LocalSymbol> locals = this.VisitLocals(node.Locals); 11756ImmutableArray<LocalSymbol> locals = this.VisitLocals(node.Locals); 11765ImmutableArray<LocalSymbol> outerLocals = this.VisitLocals(node.OuterLocals); 11766ImmutableArray<LocalSymbol> innerLocals = this.VisitLocals(node.InnerLocals); 11777ImmutableArray<LocalSymbol> iterationVariables = this.VisitLocals(node.IterationVariables); 11797ImmutableArray<LocalSymbol> locals = this.VisitLocals(node.Locals); 11806ImmutableArray<LocalSymbol> locals = this.VisitLocals(node.Locals); 11821ImmutableArray<BoundCatchBlock> catchBlocks = this.VisitList(node.CatchBlocks); 11827ImmutableArray<LocalSymbol> locals = this.VisitLocals(node.Locals); 11916ImmutableArray<BoundStatement> statements = this.VisitList(node.Statements); 11927ImmutableArray<LocalSymbol> locals = this.VisitLocals(node.Locals); 11938ImmutableArray<BoundSwitchExpressionArm> switchArms = this.VisitList(node.SwitchArms); 11947ImmutableArray<BoundSwitchExpressionArm> switchArms = this.VisitList(node.SwitchArms); 12078ImmutableArray<LocalSymbol> locals = this.VisitLocals(node.Locals); 12079ImmutableArray<BoundSwitchLabel> switchLabels = this.VisitList(node.SwitchLabels); 12080ImmutableArray<BoundStatement> statements = this.VisitList(node.Statements); 12098ImmutableArray<LocalSymbol> locals = this.VisitLocals(node.Locals); 12099ImmutableArray<BoundExpression> sideEffects = this.VisitList(node.SideEffects); 12106ImmutableArray<LocalSymbol> locals = this.VisitLocals(node.Locals); 12107ImmutableArray<BoundStatement> sideEffects = this.VisitList(node.SideEffects); 12120ImmutableArray<MethodSymbol> applicableMethods = this.VisitSymbols<MethodSymbol>(node.ApplicableMethods); 12122ImmutableArray<BoundExpression> arguments = this.VisitList(node.Arguments); 12156ImmutableArray<MethodSymbol> methods = this.VisitSymbols<MethodSymbol>(node.Methods); 12165ImmutableArray<PropertySymbol> properties = this.VisitSymbols<PropertySymbol>(node.Properties); 12173ImmutableArray<MethodSymbol> originalMethodsOpt = this.VisitSymbols<MethodSymbol>(node.OriginalMethodsOpt); 12175ImmutableArray<BoundExpression> arguments = this.VisitList(node.Arguments); 12190ImmutableArray<BoundExpression> constructorArguments = this.VisitList(node.ConstructorArguments); 12191ImmutableArray<BoundAssignmentOperator> namedArguments = this.VisitList(node.NamedArguments); 12197ImmutableArray<BoundExpression> arguments = this.VisitList(node.Arguments); 12204ImmutableArray<MethodSymbol> constructorsGroup = this.VisitSymbols<MethodSymbol>(node.ConstructorsGroup); 12205ImmutableArray<BoundExpression> arguments = this.VisitList(node.Arguments); 12213ImmutableArray<BoundNode> elements = this.VisitList(node.Elements); 12219ImmutableArray<BoundExpression> arguments = this.VisitList(node.Arguments); 12229ImmutableArray<BoundNode> elements = this.VisitList(node.Elements); 12250ImmutableArray<BoundExpression> arguments = this.VisitList(node.Arguments); 12257ImmutableArray<BoundExpression> arguments = this.VisitList(node.Arguments); 12263ImmutableArray<MethodSymbol> applicableMethods = this.VisitSymbols<MethodSymbol>(node.ApplicableMethods); 12264ImmutableArray<BoundExpression> arguments = this.VisitList(node.Arguments); 12278ImmutableArray<BoundExpression> initializers = this.VisitList(node.Initializers); 12285ImmutableArray<BoundExpression> arguments = this.VisitList(node.Arguments); 12299ImmutableArray<BoundExpression> initializers = this.VisitList(node.Initializers); 12306ImmutableArray<BoundExpression> arguments = this.VisitList(node.Arguments); 12313ImmutableArray<MethodSymbol> applicableMethods = this.VisitSymbols<MethodSymbol>(node.ApplicableMethods); 12315ImmutableArray<BoundExpression> arguments = this.VisitList(node.Arguments); 12327ImmutableArray<BoundExpression> arguments = this.VisitList(node.Arguments); 12328ImmutableArray<BoundAnonymousPropertyDeclaration> declarations = this.VisitList(node.Declarations); 12353ImmutableArray<BoundExpression> bounds = this.VisitList(node.Bounds); 12360ImmutableArray<BoundExpression> initializers = this.VisitList(node.Initializers); 12410ImmutableArray<PropertySymbol> originalIndexersOpt = this.VisitSymbols<PropertySymbol>(node.OriginalIndexersOpt); 12412ImmutableArray<BoundExpression> arguments = this.VisitList(node.Arguments); 12423ImmutableArray<BoundImplicitIndexerValuePlaceholder> argumentPlaceholders = node.ArgumentPlaceholders; 12436ImmutableArray<PropertySymbol> applicableIndexers = this.VisitSymbols<PropertySymbol>(node.ApplicableIndexers); 12438ImmutableArray<BoundExpression> arguments = this.VisitList(node.Arguments); 12468ImmutableArray<BoundStatement> statements = this.VisitList(node.Statements); 12479ImmutableArray<BoundExpression> parts = this.VisitList(node.Parts); 12485ImmutableArray<BoundExpression> parts = this.VisitList(node.Parts); 12556ImmutableArray<BoundPositionalSubpattern> deconstruction = this.VisitList(node.Deconstruction); 12557ImmutableArray<BoundPropertySubpattern> properties = this.VisitList(node.Properties); 12566ImmutableArray<BoundPattern> subpatterns = this.VisitList(node.Subpatterns); 12590ImmutableArray<BoundPositionalSubpattern> subpatterns = this.VisitList(node.Subpatterns); 12682ImmutableArray<LocalSymbol> locals = this.VisitLocals(node.Locals); 12726ImmutableArray<LocalSymbol> locals = GetUpdatedArray(node, node.Locals); 12734ImmutableArray<LocalSymbol> locals = GetUpdatedArray(node, node.Locals); 12742ImmutableArray<LocalSymbol> locals = GetUpdatedArray(node, node.Locals); 12961ImmutableArray<Symbol?> symbols = GetUpdatedArray(node, node.Symbols); 12962ImmutableArray<BoundExpression> childBoundNodes = this.VisitList(node.ChildBoundNodes); 12980ImmutableArray<BoundExpression> boundDimensionsOpt = this.VisitList(node.BoundDimensionsOpt); 13028ImmutableArray<MethodSymbol> originalUserDefinedOperatorsOpt = GetUpdatedArray(node, node.OriginalUserDefinedOperatorsOpt); 13048ImmutableArray<MethodSymbol> originalUserDefinedOperatorsOpt = GetUpdatedArray(node, node.OriginalUserDefinedOperatorsOpt); 13158ImmutableArray<BoundExpression> arguments = this.VisitList(node.Arguments); 13396ImmutableArray<BoundExpression> indices = this.VisitList(node.Indices); 13494ImmutableArray<LocalSymbol> locals = GetUpdatedArray(node, node.Locals); 13818ImmutableArray<BoundExpression> arguments = this.VisitList(node.Arguments); 13856ImmutableArray<LocalSymbol> locals = GetUpdatedArray(node, node.Locals); 13857ImmutableArray<MethodSymbol> localFunctions = GetUpdatedArray(node, node.LocalFunctions); 13859ImmutableArray<BoundStatement> statements = this.VisitList(node.Statements); 13865ImmutableArray<LocalSymbol> locals = GetUpdatedArray(node, node.Locals); 13866ImmutableArray<BoundStatement> statements = this.VisitList(node.Statements); 13872ImmutableArray<StateMachineFieldSymbol> fields = GetUpdatedArray(node, node.Fields); 13882ImmutableArray<BoundExpression> argumentsOpt = this.VisitList(node.ArgumentsOpt); 13896ImmutableArray<LocalSymbol> innerLocals = GetUpdatedArray(node, node.InnerLocals); 13897ImmutableArray<MethodSymbol> innerLocalFunctions = GetUpdatedArray(node, node.InnerLocalFunctions); 13899ImmutableArray<BoundSwitchSection> switchSections = this.VisitList(node.SwitchSections); 13907ImmutableArray<LocalSymbol> locals = GetUpdatedArray(node, node.Locals); 13915ImmutableArray<LocalSymbol> locals = GetUpdatedArray(node, node.Locals); 13923ImmutableArray<LocalSymbol> outerLocals = GetUpdatedArray(node, node.OuterLocals); 13924ImmutableArray<LocalSymbol> innerLocals = GetUpdatedArray(node, node.InnerLocals); 13934ImmutableArray<LocalSymbol> iterationVariables = GetUpdatedArray(node, node.IterationVariables); 13947ImmutableArray<LocalSymbol> locals = GetUpdatedArray(node, node.Locals); 13957ImmutableArray<LocalSymbol> locals = GetUpdatedArray(node, node.Locals); 13965ImmutableArray<LocalSymbol> locals = GetUpdatedArray(node, node.Locals); 14129ImmutableArray<LocalSymbol> locals = GetUpdatedArray(node, node.Locals); 14139ImmutableArray<BoundSwitchExpressionArm> switchArms = this.VisitList(node.SwitchArms); 14159ImmutableArray<BoundSwitchExpressionArm> switchArms = this.VisitList(node.SwitchArms); 14227ImmutableArray<LocalSymbol> locals = GetUpdatedArray(node, node.Locals); 14228ImmutableArray<BoundSwitchLabel> switchLabels = this.VisitList(node.SwitchLabels); 14229ImmutableArray<BoundStatement> statements = this.VisitList(node.Statements); 14252ImmutableArray<LocalSymbol> locals = GetUpdatedArray(node, node.Locals); 14253ImmutableArray<BoundExpression> sideEffects = this.VisitList(node.SideEffects); 14271ImmutableArray<LocalSymbol> locals = GetUpdatedArray(node, node.Locals); 14272ImmutableArray<BoundStatement> sideEffects = this.VisitList(node.SideEffects); 14307ImmutableArray<MethodSymbol> applicableMethods = GetUpdatedArray(node, node.ApplicableMethods); 14309ImmutableArray<BoundExpression> arguments = this.VisitList(node.Arguments); 14394ImmutableArray<MethodSymbol> methods = GetUpdatedArray(node, node.Methods); 14414ImmutableArray<PropertySymbol> properties = GetUpdatedArray(node, node.Properties); 14433ImmutableArray<MethodSymbol> originalMethodsOpt = GetUpdatedArray(node, node.OriginalMethodsOpt); 14435ImmutableArray<BoundExpression> arguments = this.VisitList(node.Arguments); 14472ImmutableArray<BoundExpression> constructorArguments = this.VisitList(node.ConstructorArguments); 14473ImmutableArray<BoundAssignmentOperator> namedArguments = this.VisitList(node.NamedArguments); 14490ImmutableArray<BoundExpression> arguments = this.VisitList(node.Arguments); 14508ImmutableArray<MethodSymbol> constructorsGroup = GetUpdatedArray(node, node.ConstructorsGroup); 14509ImmutableArray<BoundExpression> arguments = this.VisitList(node.Arguments); 14528ImmutableArray<BoundNode> elements = this.VisitList(node.Elements); 14550ImmutableArray<BoundNode> elements = this.VisitList(node.Elements); 14579ImmutableArray<BoundExpression> arguments = this.VisitList(node.Arguments); 14597ImmutableArray<BoundExpression> arguments = this.VisitList(node.Arguments); 14614ImmutableArray<MethodSymbol> applicableMethods = GetUpdatedArray(node, node.ApplicableMethods); 14615ImmutableArray<BoundExpression> arguments = this.VisitList(node.Arguments); 14651ImmutableArray<BoundExpression> initializers = this.VisitList(node.Initializers); 14670ImmutableArray<BoundExpression> arguments = this.VisitList(node.Arguments); 14705ImmutableArray<BoundExpression> initializers = this.VisitList(node.Initializers); 14723ImmutableArray<BoundExpression> arguments = this.VisitList(node.Arguments); 14741ImmutableArray<MethodSymbol> applicableMethods = GetUpdatedArray(node, node.ApplicableMethods); 14743ImmutableArray<BoundExpression> arguments = this.VisitList(node.Arguments); 14773ImmutableArray<BoundExpression> arguments = this.VisitList(node.Arguments); 14774ImmutableArray<BoundAnonymousPropertyDeclaration> declarations = this.VisitList(node.Declarations); 14843ImmutableArray<BoundExpression> bounds = this.VisitList(node.Bounds); 14861ImmutableArray<BoundExpression> initializers = this.VisitList(node.Initializers); 14988ImmutableArray<PropertySymbol> originalIndexersOpt = GetUpdatedArray(node, node.OriginalIndexersOpt); 14990ImmutableArray<BoundExpression> arguments = this.VisitList(node.Arguments); 15025ImmutableArray<PropertySymbol> applicableIndexers = GetUpdatedArray(node, node.ApplicableIndexers); 15027ImmutableArray<BoundExpression> arguments = this.VisitList(node.Arguments); 15118ImmutableArray<BoundExpression> parts = this.VisitList(node.Parts); 15135ImmutableArray<BoundExpression> parts = this.VisitList(node.Parts); 15257ImmutableArray<BoundPositionalSubpattern> deconstruction = this.VisitList(node.Deconstruction); 15258ImmutableArray<BoundPropertySubpattern> properties = this.VisitList(node.Properties); 15268ImmutableArray<BoundPattern> subpatterns = this.VisitList(node.Subpatterns); 15294ImmutableArray<BoundPositionalSubpattern> subpatterns = this.VisitList(node.Subpatterns); 15420ImmutableArray<LocalSymbol> locals = GetUpdatedArray(node, node.Locals);
Lowering\AsyncRewriter\AsyncExceptionHandlerRewriter.cs (5)
213return _F.Try((BoundBlock)finalizedRegion, ImmutableArray<BoundCatchBlock>.Empty, rewrittenFinally); 518var catches = node.CatchBlocks; 527var rewrittenCatches = node.CatchBlocks.SelectAsArray(static (catchBlock, arg) => 639ImmutableArray<LocalSymbol> handlerLocals; 665handlerLocals = 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)
81ImmutableArray<FieldSymbol> nonReusableFieldsForCleanup, 146ImmutableArray<StateMachineFieldSymbol> rootScopeHoistedLocals; 158F.Block(ImmutableArray<LocalSymbol>.Empty, 194var newStatements = bodyBuilder.ToImmutableAndFree(); 218BoundCatchBlock generateExceptionHandling(LocalSymbol exceptionLocal, ImmutableArray<StateMachineFieldSymbol> rootHoistedLocals) 254protected virtual BoundStatement GenerateTopLevelTry(BoundBlock tryBlock, ImmutableArray<BoundCatchBlock> catchBlocks) 266: ImmutableArray<BoundExpression>.Empty)); 269protected virtual BoundStatement GenerateCleanupForExit(ImmutableArray<StateMachineFieldSymbol> rootHoistedLocals) 441typeArgumentsWithAnnotations: ImmutableArray<TypeWithAnnotations>.Empty, 442loweredArguments: ImmutableArray<BoundExpression>.Empty, 443argumentNames: ImmutableArray<string>.Empty, 444refKinds: ImmutableArray<RefKind>.Empty, 676private 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\AsyncRewriter\RuntimeAsyncRewriter.cs (4)
305typeArgumentsWithAnnotations: ImmutableArray<TypeWithAnnotations>.Empty, 306loweredArguments: ImmutableArray<BoundExpression>.Empty, 307argumentNames: ImmutableArray<string?>.Empty, 308refKinds: ImmutableArray<RefKind>.Empty,
Lowering\BoundTreeToDifferentEnclosingContextRewriter.cs (6)
44protected void RewriteLocals(ImmutableArray<LocalSymbol> locals, ArrayBuilder<LocalSymbol> newLocals) 77protected sealed override ImmutableArray<LocalSymbol> VisitLocals(ImmutableArray<LocalSymbol> locals) 107var newLocals = this.VisitLocals(node.Locals); 108var newLocalFunctions = this.VisitDeclaredLocalFunctions(node.LocalFunctions); 109var newStatements = VisitList(node.Statements);
Lowering\ClosureConversion\ClosureConversion.Analysis.cs (1)
541var structCaptures = _slotAllocator != null && environment.IsStruct
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 (29)
118private ImmutableArray<TypeParameterSymbol> _currentTypeParameters; 475var structEnvironments = getStructEnvironments(nestedFunction); 494static ImmutableArray<SynthesizedClosureEnvironment> getStructEnvironments(Analysis.NestedFunction function) 677var frameTypeParameters = ImmutableArray.Create(_currentTypeParameters.SelectAsArray(t => TypeWithAnnotations.Create(t)), 0, frame.Arity); 888ref ImmutableArray<BoundExpression> arguments, 889ref ImmutableArray<RefKind> argRefKinds) 918var typeParameters = ((SynthesizedClosureEnvironment)frameType).ConstructedFromTypeParameters; 920var subst = this.TypeMap.SubstituteTypeParameters(typeParameters); 975private ImmutableArray<TypeWithAnnotations> SubstituteTypeArguments(ImmutableArray<TypeWithAnnotations> typeArguments) 1028ImmutableArray<TypeWithAnnotations> typeArgumentsOpt, 1040var realTypeArguments = ImmutableArray.Create(_currentTypeParameters.SelectAsArray(t => TypeWithAnnotations.Create(t)), 0, totalTypeArgumentCount - originalMethod.Arity); 1048var containerTypeArguments = ImmutableArray.Create(realTypeArguments, 0, containerAsFrame.Arity); 1088var args = VisitList(node.Arguments); 1089var argRefKinds = node.ArgumentRefKindsOpt; 1138locals: ImmutableArray<LocalSymbol>.Empty, 1216var newLocals = VisitLocals(node.Locals); 1218var statements = VisitList(node.Statements); 1246var rewrittenCatchLocals = newLocals.ToImmutableAndFree(); 1353var arguments = default(ImmutableArray<BoundExpression>); 1354var argRefKinds = default(ImmutableArray<RefKind>); 1380ImmutableArray<BoundExpression> arguments = default; 1381ImmutableArray<RefKind> argRefKinds = default; 1453private DebugId GetLambdaId(SyntaxNode syntax, ClosureKind closureKind, int closureOrdinal, ImmutableArray<DebugId> structClosureIds, RuntimeRudeEdit? closureRudeEdit) 1573var oldTypeParameters = _currentTypeParameters; 1665RemapLambdaOrLocalFunction(node.Syntax, node.Symbol, default(ImmutableArray<TypeWithAnnotations>), closureKind, ref referencedMethod, out receiver, out constructedFrame); 1745return new BoundBadExpression(F.Syntax, LookupResultKind.Empty, ImmutableArray<Symbol>.Empty, ImmutableArray.Create<BoundExpression>(node), node.Type);
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (7)
317private BoundExpression Indices(ImmutableArray<BoundExpression> expressions) 333private BoundExpression Expressions(ImmutableArray<BoundExpression> expressions) 358return new BoundBadExpression(node.Syntax, default(LookupResultKind), ImmutableArray<Symbol>.Empty, ImmutableArray.Create<BoundExpression>(node), ExpressionType); 389return new BoundBadExpression(node.Syntax, 0, ImmutableArray<Symbol>.Empty, ImmutableArray.Create<BoundExpression>(node), ExpressionType); 1143return new BoundBadExpression(node.Syntax, default(LookupResultKind), ImmutableArray<Symbol>.Empty, ImmutableArray.Create<BoundExpression>(node), node.Type); 1150return new BoundBadExpression(node.Syntax, default(LookupResultKind), ImmutableArray<Symbol>.Empty, ImmutableArray.Create<BoundExpression>(node), node.Type); 1182return new BoundBadExpression(node.Syntax, default(LookupResultKind), ImmutableArray<Symbol>.Empty, ImmutableArray.Create<BoundExpression>(node), node.Type);
Lowering\ClosureConversion\LambdaCapturedVariable.cs (3)
126var typeArguments = frame.TypeArgumentsWithAnnotationsNoUseSiteDiagnostics; 143public override ImmutableArray<CustomModifier> RefCustomModifiers => ImmutableArray<CustomModifier>.Empty;
Lowering\ClosureConversion\SynthesizedClosureEnvironment.cs (2)
37private ImmutableArray<Symbol> _members; 129public override ImmutableArray<Symbol> GetMembers()
Lowering\ClosureConversion\SynthesizedClosureMethod.cs (9)
20private readonly ImmutableArray<NamedTypeSymbol> _structEnvironments; 27ImmutableArray<SynthesizedClosureEnvironment> structEnvironments, 52ImmutableArray<TypeParameterSymbol> typeParameters; 91var originals = env.ConstructedFromTypeParameters; 92var newArgs = typeMap.SubstituteTypeParameters(originals); 101_structEnvironments = ImmutableArray<NamedTypeSymbol>.CastUp(structEnvironments); 218protected override ImmutableArray<ParameterSymbol> BaseMethodParameters => this.BaseMethod.Parameters; 220protected override ImmutableArray<TypeSymbol> ExtraSynthesizedRefParameters 221=> ImmutableArray<TypeSymbol>.CastUp(_structEnvironments);
Lowering\DiagnosticsPass_ExpressionTrees.cs (9)
309ImmutableArray<BoundExpression> arguments, 310ImmutableArray<RefKind> argumentRefKindsOpt, 311ImmutableArray<string> argumentNamesOpt, 312ImmutableArray<int> argsToParamsOpt, 368static bool hasDefaultArgument(ImmutableArray<BoundExpression> arguments, BitVector defaultArguments) 381static bool hasNamedArgumentOutOfOrder(ImmutableArray<int> argsToParamsOpt) 555VisitCall(node.AddMethod, null, node.Arguments, default(ImmutableArray<RefKind>), default(ImmutableArray<string>), default(ImmutableArray<int>), 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) 368var parameters = op.GetParameters(); 909var leftArguments = leftTuple.Arguments;
Lowering\ExtensionMethodBodyRewriter.cs (2)
143protected override ImmutableArray<MethodSymbol> VisitDeclaredLocalFunctions(ImmutableArray<MethodSymbol> localFunctions)
Lowering\ExtensionMethodReferenceRewriter.cs (4)
93ImmutableArray<MethodSymbol> originalMethodsOpt, 95ImmutableArray<BoundExpression> arguments, 96ImmutableArray<RefKind> argumentRefKinds, 283ImmutableArray<MethodSymbol> originalUserDefinedOperatorsOpt = rewriter.VisitSymbols<MethodSymbol>(node.OriginalUserDefinedOperatorsOpt);
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 (6)
441private ImmutableArray<BoundExpression> MakeStoreLoggerArguments( 554ImmutableArray<BoundExpression> arguments = original.Arguments; 557ImmutableArray<RefKind> argumentRefKindsOpt = NullableWalker.AdjustArgumentRefKindsIfNeeded(original.ArgumentRefKindsOpt, adjustForExtensionBlockMethod, method, arguments.Length); 574private BoundExpression InstrumentCall(BoundExpression invocation, ImmutableArray<BoundExpression> arguments, ImmutableArray<RefKind> refKinds) 632return _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, 287ImmutableArray<BoundCatchBlock>.Empty, 417ImmutableArray<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)
207static bool usedTypeParametersContains(HashSet<TypeParameterSymbol> used, ImmutableArray<TypeParameterSymbol> typeParameters)
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)
75locals: ImmutableArray<LocalSymbol>.Empty,
Lowering\LocalRewriter\LocalRewriter_AssignmentOperator.cs (15)
71var loweredArguments = VisitList(indexerAccess.Arguments); 153ImmutableArray<BoundExpression> loweredArguments, 154ImmutableArray<string?> argumentNames, 155ImmutableArray<RefKind> refKinds, 203ImmutableArray<BoundExpression>.Empty, 204default(ImmutableArray<RefKind>), 206default(ImmutableArray<int>), 218ImmutableArray<BoundExpression> arguments = indexerAccess.Arguments; 301ImmutableArray<BoundExpression> arguments, 302ImmutableArray<RefKind> argumentRefKindsOpt, 304ImmutableArray<int> argsToParamsOpt, 395var sideEffects = storesOpt is null ? [] : storesOpt.ToImmutableAndFree(); 396var argTemps = argTempsBuilder.ToImmutableAndFree(); 456private static ImmutableArray<T> AppendToPossibleNull<T>(ImmutableArray<T> possibleNull, T newElement)
Lowering\LocalRewriter\LocalRewriter_BasePatternSwitchLocalRewriter.cs (4)
42ImmutableArray<SyntaxNode> arms, 73protected (ImmutableArray<BoundStatement> loweredDag, ImmutableDictionary<SyntaxNode, ImmutableArray<BoundStatement>> switchSections) LowerDecisionDag(BoundDecisionDag decisionDag) 75var loweredDag = LowerDecisionDagCore(decisionDag);
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (5)
119ImmutableArray<BoundExpression> parts = CollectBinaryOperatorInterpolatedStringParts(node); 167private static ImmutableArray<BoundExpression> CollectBinaryOperatorInterpolatedStringParts(BoundBinaryOperator node) 871locals: ImmutableArray<LocalSymbol>.Empty, 1415locals: ImmutableArray<LocalSymbol>.Empty, 1983locals: 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; 98private void EmbedIfNeedTo(BoundExpression receiver, ImmutableArray<MethodSymbol> methods, SyntaxNode syntaxNode) 117private void EmbedIfNeedTo(BoundExpression receiver, ImmutableArray<PropertySymbol> properties, SyntaxNode syntaxNode) 139ref ImmutableArray<BoundExpression> arguments, 140ref ImmutableArray<RefKind> argumentRefKindsOpt, 380ImmutableArray<int> argsToParamsOpt = node.ArgsToParamsOpt; 381ImmutableArray<RefKind> argRefKindsOpt = node.ArgumentRefKindsOpt; 382ImmutableArray<BoundExpression> arguments = node.Arguments; 395var rewrittenArguments = VisitArgumentsAndCaptureReceiverIfNeeded( 460ImmutableArray<BoundExpression> rewrittenArguments, 461ImmutableArray<RefKind> argumentRefKinds, 463ImmutableArray<LocalSymbol> temps) 497argumentNamesOpt: default(ImmutableArray<string?>), 502argsToParamsOpt: default(ImmutableArray<int>), 514argumentNamesOpt: default(ImmutableArray<string?>), 519argsToParamsOpt: default(ImmutableArray<int>), 532sideEffects: ImmutableArray<BoundExpression>.Empty, 540private BoundExpression MakeCall(SyntaxNode syntax, BoundExpression? rewrittenReceiver, MethodSymbol method, ImmutableArray<BoundExpression> rewrittenArguments) 548argumentRefKinds: default(ImmutableArray<RefKind>), 665private ImmutableArray<BoundExpression> VisitArgumentsAndCaptureReceiverIfNeeded( 668ImmutableArray<BoundExpression> arguments, 670ImmutableArray<int> argsToParamsOpt, 671ImmutableArray<RefKind> argumentRefKindsOpt, 741ImmutableArray<BoundExpression> rewrittenArguments; 751var parameters = methodOrIndexer.GetParameters(); 768ImmutableArray<BoundInterpolatedStringArgumentPlaceholder> argumentPlaceholders = addInterpolationPlaceholderReplacements( 827ImmutableArray<LocalSymbol>.Empty, 845ImmutableArray<BoundInterpolatedStringArgumentPlaceholder> addInterpolationPlaceholderReplacements( 846ImmutableArray<ParameterSymbol> parameters, 905visitedArgumentsBuilder[argIndex] = _factory.Sequence(ImmutableArray<LocalSymbol>.Empty, ImmutableArray.Create<BoundExpression>(store), local); 924return ImmutableArray<BoundInterpolatedStringArgumentPlaceholder>.Empty; 1060private ImmutableArray<BoundExpression> MakeArguments( 1061ImmutableArray<BoundExpression> rewrittenArguments, 1064ImmutableArray<int> argsToParamsOpt, 1065ref ImmutableArray<RefKind> argumentRefKindsOpt, 1079ImmutableArray<ParameterSymbol> parameters = methodOrIndexer.GetParameters(); 1218private static ImmutableArray<RefKind> GetEffectiveArgumentRefKinds(ImmutableArray<RefKind> argumentRefKindsOpt, ImmutableArray<ParameterSymbol> parameters) 1243static void fillRefKindsBuilder(ImmutableArray<RefKind> argumentRefKindsOpt, ImmutableArray<ParameterSymbol> parameters, [NotNull] ref ArrayBuilder<RefKind>? refKindsBuilder) 1295ImmutableArray<BoundExpression> rewrittenArguments, 1297ImmutableArray<int> argsToParamsOpt, 1342private static ImmutableArray<RefKind> GetRefKindsOrNull(ArrayBuilder<RefKind> refKinds) 1351return default(ImmutableArray<RefKind>); 1402ImmutableArray<int> argsToParamsOpt, 1403ImmutableArray<ParameterSymbol> parameters, 1404ImmutableArray<RefKind> argumentRefKinds, 1405ImmutableArray<BoundExpression> rewrittenArguments, 1526ImmutableArray<BoundExpression>.Empty, 1527default(ImmutableArray<string?>), 1528default(ImmutableArray<RefKind>), 1532argsToParamsOpt: default(ImmutableArray<int>), 1665ImmutableArray<LocalSymbol>.Empty, 1686ImmutableArray<ParameterSymbol> parameters, 1729locals: ImmutableArray<LocalSymbol>.Empty,
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (21)
110var elements = node.Elements; 325var elements = node.Elements; 339var rewrittenElements = elements.SelectAsArray(static (element, rewriter) => rewriter.VisitExpression((BoundExpression)element), this); 423var elements = node.Elements; 493var elements = node.Elements; 511var typeArgs = ImmutableArray.Create(elementType); 639ImmutableArray<BoundNode> elements, 712locals: ImmutableArray<LocalSymbol>.Empty, 828var elements = node.Elements; 961var locals = localsBuilder.SelectAsArray(l => l.LocalSymbol); 1158ImmutableArray<BoundNode> elements, 1163var typeArguments = ImmutableArray.Create(elementType); 1224rewrittenReceiver = _factory.New(constructor, ImmutableArray<BoundExpression>.Empty); 1360var locals = localsBuilder.SelectAsArray(l => l.LocalSymbol); 1380ImmutableArray<BoundNode> elements, 1396ImmutableArray<BoundNode> elements, 1424var statements = builder.SelectAsArray(expr => (BoundStatement)new BoundExpressionStatement(expr.Syntax, expr)); 1429new BoundBlock(iteratorBody.Syntax, locals: ImmutableArray<LocalSymbol>.Empty, statements); 1441private BoundExpression GetKnownLengthExpression(ImmutableArray<BoundNode> elements, int numberIncludingLastSpread, ArrayBuilder<BoundLocal> rewrittenExpressions) 1515var iterationVariables = ImmutableArray.Create(iterationVariable); 1586ImmutableArray<LocalSymbol>.Empty,
Lowering\LocalRewriter\LocalRewriter_CompoundAssignmentOperator.cs (14)
419ImmutableArray<BoundExpression> rewrittenArguments = VisitArgumentsAndCaptureReceiverIfNeeded( 437ImmutableArray<BoundExpression> rewrittenArguments, 442ImmutableArray<int> argsToParamsOpt = indexerAccess.ArgsToParamsOpt; 443ImmutableArray<RefKind> argumentRefKinds = indexerAccess.ArgumentRefKindsOpt; 456argumentNamesOpt: default(ImmutableArray<string?>), 460argsToParamsOpt: default(ImmutableArray<int>), 470private ImmutableArray<BoundExpression> ExtractSideEffectsFromArguments( 471ImmutableArray<BoundExpression> rewrittenArguments, 474ImmutableArray<int> argsToParamsOpt, 475ref ImmutableArray<RefKind> argumentRefKinds, 479ImmutableArray<ParameterSymbol> parameters = indexer.Parameters; 651var arguments = indexerAccess.Arguments; 803var loweredIndices = VisitList(arrayAccess.Indices); 911ImmutableArray<BoundExpression> loweredIndices,
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (5)
106BadExpression(node.Syntax, byteArray, ImmutableArray<BoundExpression>.Empty) : 111result = BadExpression(node.Syntax, node.Type, ImmutableArray<BoundExpression>.Empty); 1024var destElementTypes = rewrittenType.TupleElementTypesWithAnnotations; 1028var srcElementFields = tupleTypeSymbol.TupleElements; 1033var 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; 278private ImmutableArray<BoundExpression> GetRightParts(BoundExpression right, Conversion conversion, 335private ImmutableArray<BoundExpression> AccessTupleFields(BoundExpression expression, ArrayBuilder<LocalSymbol> temps, 341var tupleElementTypes = tupleType.TupleElementTypesWithAnnotations; 361var fields = tupleType.TupleElements; 382private ImmutableArray<BoundExpression> InvokeDeconstructMethod(DeconstructMethodInfo deconstruction, BoundExpression target, 387var outputPlaceholders = deconstruction.OutputPlaceholders; 516internal 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, 380locals: ImmutableArray<LocalSymbol>.Empty, 484helperCall = new BoundBadExpression(fixedInitializer.Syntax, LookupResultKind.NotInvocable, ImmutableArray<Symbol?>.Empty, ImmutableArray<BoundExpression>.Empty, ErrorTypeSymbol.UnknownResultType); 545lengthCall = new BoundBadExpression(fixedInitializer.Syntax, LookupResultKind.NotInvocable, ImmutableArray<Symbol?>.Empty, ImmutableArray.Create<BoundExpression>(factory.Local(pinnedTemp)), ErrorTypeSymbol.UnknownResultType);
Lowering\LocalRewriter\LocalRewriter_ForEachStatement.cs (11)
146ImmutableArray<LocalSymbol> iterationVariables, 264tryBlock: new BoundBlock(forEachSyntax, locals: ImmutableArray<LocalSymbol>.Empty, statements: ImmutableArray.Create(whileLoop)), 265catchBlocks: ImmutableArray<BoundCatchBlock>.Empty, 421locals: ImmutableArray<LocalSymbol>.Empty, 602ImmutableArray<LocalSymbol> iterationVariables, 811ImmutableArray<LocalSymbol> iterationVariables, 837ImmutableArray<LocalSymbol> iterationVariables, 898ImmutableArray<LocalSymbol> iterationVariables, 1047ImmutableArray<LocalSymbol> iterationVariables, 1095ImmutableArray<BoundExpression> dimensionArgument = ImmutableArray.Create( 1149ImmutableArray<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)
45var loweredArguments = VisitList(node.Arguments); 53ImmutableArray<BoundExpression> loweredArguments, 54ImmutableArray<string?> argumentNames, 55ImmutableArray<RefKind> refKinds) 107ImmutableArray<BoundExpression> arguments, 108ImmutableArray<string?> argumentNamesOpt, 109ImmutableArray<RefKind> argumentRefKindsOpt, 111ImmutableArray<int> argsToParamsOpt, 184ImmutableArray<BoundExpression> rewrittenArguments = VisitArgumentsAndCaptureReceiverIfNeeded( 217var sideEffects = storesOpt is null ? [] : storesOpt.ToImmutableAndFree(); 655ImmutableArray<BoundExpression> rewrittenArguments = VisitArgumentsAndCaptureReceiverIfNeeded(
Lowering\LocalRewriter\LocalRewriter_IsOperator.cs (1)
93locals: 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)
155var alternative = _factory.Sequence(ImmutableArray<LocalSymbol>.Empty, ImmutableArray.Create(tmpAssignment, transformedLhsAssignment), tmp);
Lowering\LocalRewriter\LocalRewriter_ObjectCreationExpression.cs (18)
20var loweredArguments = VisitList(node.Arguments); 43ImmutableArray<RefKind> argumentRefKindsOpt = node.ArgumentRefKindsOpt; 45ImmutableArray<BoundExpression> rewrittenArguments = VisitArgumentsAndCaptureReceiverIfNeeded( 68var temps = tempsBuilder.ToImmutableAndFree(); 107ImmutableArray<BoundExpression>.Empty, 204ImmutableArray<BoundExpression> getAnonymousTypeValues(BoundWithExpression withExpr, BoundExpression oldValue, AnonymousTypeManager.AnonymousTypePublicSymbol anonymousType, 252var rewrittenInitializers = MakeObjectOrCollectionInitializersForExpressionTree(initializerExpressionOpt); 293ImmutableArray<LocalSymbol> locals; 355ImmutableArray<BoundExpression>.Empty, 356default(ImmutableArray<string?>), 357default(ImmutableArray<RefKind>), 361argsToParamsOpt: default(ImmutableArray<int>), 394newGuid = new BoundBadExpression(node.Syntax, LookupResultKind.NotCreatable, ImmutableArray<Symbol?>.Empty, ImmutableArray<BoundExpression>.Empty, ErrorTypeSymbol.UnknownResultType); 412callGetTypeFromCLSID = new BoundBadExpression(node.Syntax, LookupResultKind.OverloadResolutionFailure, ImmutableArray<Symbol?>.Empty, ImmutableArray<BoundExpression>.Empty, ErrorTypeSymbol.UnknownResultType); 428rewrittenObjectCreation = new BoundBadExpression(node.Syntax, LookupResultKind.OverloadResolutionFailure, ImmutableArray<Symbol?>.Empty, ImmutableArray<BoundExpression>.Empty, node.Type);
Lowering\LocalRewriter\LocalRewriter_ObjectOrCollectionInitializerExpression.cs (20)
18private static BoundObjectInitializerExpressionBase UpdateInitializers(BoundObjectInitializerExpressionBase initializerExpression, ImmutableArray<BoundExpression> newInitializers) 66private ImmutableArray<BoundExpression> MakeObjectOrCollectionInitializersForExpressionTree(BoundExpression initializerExpression) 84void addCollectionInitializersForExpressionTree(ArrayBuilder<BoundExpression> result, ImmutableArray<BoundExpression> initializers) 127private void AddCollectionInitializers(ArrayBuilder<BoundExpression> result, BoundExpression rewrittenReceiver, ImmutableArray<BoundExpression> initializers) 159var rewrittenArguments = VisitList(initializer.Arguments); 168ImmutableArray<TypeWithAnnotations>.Empty, 170default(ImmutableArray<string?>), 171default(ImmutableArray<RefKind>), 202var argumentRefKindsOpt = default(ImmutableArray<RefKind>); 215ImmutableArray<BoundExpression> rewrittenArguments = VisitArgumentsAndCaptureReceiverIfNeeded( 254var rewrittenArguments = VisitArgumentsAndCaptureReceiverIfNeeded(ref rewrittenReceiver, forceReceiverCapturing: false, node.Arguments, node.MemberSymbol, node.ArgsToParamsOpt, node.ArgumentRefKindsOpt, 287ImmutableArray<BoundExpression> initializers) 338var args = EvaluateSideEffectingArgumentsToTemps( 340memberInit.MemberSymbol?.GetParameterRefKinds() ?? default(ImmutableArray<RefKind>), 443var indices = EvaluateSideEffectingArgumentsToTemps( 621private ImmutableArray<BoundExpression> EvaluateSideEffectingArgumentsToTemps( 622ImmutableArray<BoundExpression> args, 623ImmutableArray<RefKind> paramRefKindsOpt, 717var arguments = rewrittenLeft.Arguments;
Lowering\LocalRewriter\LocalRewriter_PatternSwitchStatement.cs (3)
121(ImmutableArray<BoundStatement> loweredDag, ImmutableDictionary<SyntaxNode, ImmutableArray<BoundStatement>> switchSections) = 151ImmutableArray<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)
186var finalArguments = visitedArguments.ToImmutableAndFree(); 287private (BoundExpression? singleConcatArgument, ImmutableArray<BoundExpression> nestedConcatArguments) SimplifyConcatArgument(BoundExpression argument, [NotNullIfNotNull(nameof(followingArgument))] ref BoundExpression? followingArgument, ref WellKnownConcatRelatedMethods wellKnownConcatOptimizationMethods) 295if (wellKnownConcatOptimizationMethods.IsWellKnownConcatMethod(call, out var concatArguments)) 413public bool IsWellKnownConcatMethod(BoundCall call, out ImmutableArray<BoundExpression> arguments) 463private readonly bool IsConcatNonArray(BoundCall call, ref MethodSymbol? concatMethod, SpecialMember concatSpecialMember, out ImmutableArray<BoundExpression> arguments) 670var typeToStringMembers = type.GetMembers(objectToStringMethod.Name);
Lowering\LocalRewriter\LocalRewriter_StringInterpolation.cs (11)
29private InterpolationHandlerResult RewriteToInterpolatedStringHandlerPattern(InterpolatedStringHandlerData data, ImmutableArray<BoundExpression> parts, SyntaxNode syntax) 127var appendCallsStatements = resultExpressions.SelectAsArray(static (appendCall, @this) => (BoundStatement)@this._factory.ExpressionStatement(appendCall), this); 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; 83var newArguments = builder.ToImmutableAndFree(); 85tuple.Syntax, sourceTuple: null, wasTargetTyped: true, newArguments, ImmutableArray<string?>.Empty, 86ImmutableArray<bool>.Empty, conversion.Type, conversion.HasErrors); 109var destElementTypes = expr.Type.TupleElementTypesWithAnnotations; 112var srcElementFields = boundConversion.Operand.Type.TupleElements; 115var elementConversions = conversion.UnderlyingConversions; 129syntax, sourceTuple: null, wasTargetTyped: true, fieldAccessorsBuilder.ToImmutableAndFree(), ImmutableArray<string?>.Empty, 130ImmutableArray<bool>.Empty, expr.Type, expr.HasErrors); 163var newArguments = builder.ToImmutableAndFree(); 165tuple.Syntax, sourceTuple: null, wasTargetTyped: false, newArguments, ImmutableArray<string?>.Empty, 166ImmutableArray<bool>.Empty, tuple.Type, tuple.HasErrors); 313BoundExpression innerSequence = _factory.Sequence(locals: ImmutableArray<LocalSymbol>.Empty, innerEffects.ToImmutableAndFree(), logicalExpression); 328return _factory.Sequence(ImmutableArray<LocalSymbol>.Empty, outerEffects.ToImmutableAndFree(), 336return _factory.Sequence(ImmutableArray<LocalSymbol>.Empty, outerEffects.ToImmutableAndFree(), 345_factory.Sequence(ImmutableArray<LocalSymbol>.Empty, outerEffects.ToImmutableAndFree(), 451var types = expr.Type.GetNullableUnderlyingType().TupleElementTypesWithAnnotations; 453var underlyingConversions = tupleConversion.UnderlyingConversions; 466argumentNamesOpt: ImmutableArray<string?>.Empty, 467inferredNamesOpt: ImmutableArray<bool>.Empty, 495ImmutableArray<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 (1)
710ImmutableArray<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\LocalRewriter.cs (10)
97out ImmutableArray<SourceSpan> codeCoverageSpans, 170codeCoverageSpans = codeCoverageInstrumenter?.DynamicAnalysisSpans ?? ImmutableArray<SourceSpan>.Empty; 177codeCoverageSpans = ImmutableArray<SourceSpan>.Empty; 394var typeParameters = localFunction.TypeParameters; 601private static BoundExpression BadExpression(SyntaxNode syntax, TypeSymbol resultType, ImmutableArray<BoundExpression> children) 603return new BoundBadExpression(syntax, LookupResultKind.NotReferencable, ImmutableArray<Symbol?>.Empty, children, resultType); 725var locals = block.Locals; 757ImmutableArray<BoundStatement> originalStatements = node.Statements; 788ImmutableArray<BoundStatement> rewrittenStatements; 793rewrittenStatements = 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; 829var cases = node.Cases.Sort(new CasesComparer(input.Type)); 978private void LowerWhenClauses(ImmutableArray<BoundDecisionDagNode> sortedNodes) 1185void 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\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)
98var loweredArguments = ImmutableArray.Create(loweredOperand); 112return MakeDynamicOperation(binderConstruction, null, RefKind.None, loweredArguments, default(ImmutableArray<RefKind>), null, resultType); 130var loweredArguments = ImmutableArray.Create(loweredOperand); 148return MakeDynamicOperation(binderConstruction, null, RefKind.None, loweredArguments, default(ImmutableArray<RefKind>), null, resultType); 173var loweredArguments = ImmutableArray.Create<BoundExpression>(loweredLeft, loweredRight); 191return MakeDynamicOperation(binderConstruction, null, RefKind.None, loweredArguments, default(ImmutableArray<RefKind>), null, resultType); 197ImmutableArray<TypeWithAnnotations> typeArgumentsWithAnnotations, 198ImmutableArray<BoundExpression> loweredArguments, 199ImmutableArray<string?> argumentNames, 200ImmutableArray<RefKind> refKinds, 271var loweredArguments = ImmutableArray<BoundExpression>.Empty; 293return MakeDynamicOperation(binderConstruction, loweredReceiver, RefKind.None, loweredArguments, default(ImmutableArray<RefKind>), loweredHandler, resultType); 298ImmutableArray<BoundExpression> loweredArguments, 299ImmutableArray<string?> argumentNames, 300ImmutableArray<RefKind> refKinds, 336ImmutableArray<BoundExpression> loweredArguments, 337ImmutableArray<string?> argumentNames, 338ImmutableArray<RefKind> refKinds) 373var loweredArguments = ImmutableArray<BoundExpression>.Empty; 392return MakeDynamicOperation(binderConstruction, loweredReceiver, RefKind.None, loweredArguments, default(ImmutableArray<RefKind>), null, resultType); 415var loweredArguments = ImmutableArray<BoundExpression>.Empty; 433return MakeDynamicOperation(binderConstruction, loweredReceiver, RefKind.None, loweredArguments, default(ImmutableArray<RefKind>), loweredRight, AssemblySymbol.DynamicType); 438ImmutableArray<BoundExpression> loweredArguments, 439ImmutableArray<string?> argumentNames, 440ImmutableArray<RefKind> refKinds) 464ImmutableArray<BoundExpression> loweredArguments, 465ImmutableArray<string?> argumentNames, 466ImmutableArray<RefKind> refKinds, 517return MakeDynamicOperation(binderConstruction, loweredReceiver, RefKind.None, ImmutableArray<BoundExpression>.Empty, default(ImmutableArray<RefKind>), null, resultType); 561ImmutableArray<BoundExpression> loweredArguments, 562ImmutableArray<string?> argumentNames = default(ImmutableArray<string?>), 563ImmutableArray<RefKind> refKinds = default(ImmutableArray<RefKind>), 603ImmutableArray<BoundExpression> loweredArguments, 604ImmutableArray<RefKind> refKinds, 641ImmutableArray<LocalSymbol> temps = MakeTempsForDiscardArguments(ref loweredArguments); 648var callSiteArguments = GetCallSiteArguments(callSiteFieldAccess, loweredReceiver, loweredArguments, loweredRight); 671private ImmutableArray<LocalSymbol> MakeTempsForDiscardArguments(ref ImmutableArray<BoundExpression> loweredArguments) 677return ImmutableArray<LocalSymbol>.Empty; 722ImmutableArray<BoundExpression> loweredArguments, 723ImmutableArray<RefKind> refKinds, 874private static ImmutableArray<BoundExpression> GetCallSiteArguments(BoundExpression callSiteFieldAccess, BoundExpression? receiver, ImmutableArray<BoundExpression> arguments, BoundExpression? right) 897private TypeSymbol[] MakeCallSiteDelegateSignature(TypeSymbol callSiteType, BoundExpression? receiver, ImmutableArray<BoundExpression> arguments, BoundExpression? right, TypeSymbol resultType)
Lowering\MethodToClassRewriter.cs (7)
100var rewrittenArguments = (ImmutableArray<BoundExpression>)this.VisitList(node.Arguments); 144var typeArgs = methodBeingCalled.TypeArgumentsWithAnnotations; 357ImmutableArray<BoundExpression> arguments = (ImmutableArray<BoundExpression>)this.VisitList(node.Arguments); 399ImmutableArray<TypeParameterSymbol> typeParameters; 402typeParameters = 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; 584private ImmutableArray<BoundExpression> VisitExpressionList( 586ImmutableArray<BoundExpression> args, 587ImmutableArray<RefKind> refKinds = default(ImmutableArray<RefKind>), 599var newList = VisitList(args); 712var locals = node.Locals; 784var newArgs = VisitExpressionList(ref builder, node.Arguments); 794var indices = this.VisitExpressionList(ref indicesBuilder, node.Indices); 821ImmutableArray<BoundExpression> bounds; 841var initializers = this.VisitExpressionList(ref builder, node.Initializers); 905var indices = this.VisitExpressionList(ref leftBuilder, arrayAccess.Indices, forceSpill: true); 952var indices = this.VisitExpressionList(ref leftBuilder, arrayAccess.Indices, forceSpill: true); 1033var arguments = this.VisitExpressionList(ref builder, node.Arguments, node.ArgumentRefKindsOpt); 1099var arguments = this.VisitExpressionList(ref builder, node.Arguments, node.ArgumentRefKindsOpt); 1430var arguments = this.VisitExpressionList(ref builder, node.Arguments, node.ArgumentRefKindsOpt); 1469var sideEffects = VisitExpressionList(ref builder, node.SideEffects, forceSpill: valueBuilder != null, sideEffectsOnly: true); 1501private void PromoteAndAddLocals(BoundSpillSequenceBuilder builder, ImmutableArray<LocalSymbol> locals)
Lowering\StateMachineRewriter\CapturedSymbol.cs (2)
69public readonly ImmutableArray<THoistedSymbolType> HoistedSymbols; 71public CapturedToExpressionSymbolReplacement(BoundExpression replacement, ImmutableArray<THoistedSymbolType> hoistedSymbols, bool isReusable)
Lowering\StateMachineRewriter\IteratorAndAsyncCaptureWalker.cs (2)
208protected override ImmutableArray<PendingBranch> Scan(ref bool badRegion) 394private void AddVariables(ImmutableArray<LocalSymbol> locals)
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (9)
109ImmutableArray<FieldSymbol> nonReusableFieldsForCleanup, 301private BoundStatement PossibleIteratorScope(ImmutableArray<LocalSymbol> locals, Func<BoundStatement> wrapped) 407internal BoundBlock MakeStateMachineScope(ImmutableArray<StateMachineFieldSymbol> hoistedLocals, BoundStatement statement) 415internal static bool TryUnwrapBoundStateMachineScope(ref BoundStatement statement, out ImmutableArray<StateMachineFieldSymbol> hoistedLocals) 420var rewrittenStatements = rewrittenBlock.Statements; 430hoistedLocals = ImmutableArray<StateMachineFieldSymbol>.Empty; 562var statements = VisitList(node.Statements); 584ImmutableArray<LocalSymbol> newLocals; 752ImmutableArray<BoundCatchBlock> catchBlocks = this.VisitList(node.CatchBlocks);
Lowering\StateMachineRewriter\RefInitializationHoister.cs (1)
110return _factory.Sequence(ImmutableArray<LocalSymbol>.Empty, sideEffects.ToImmutableAndFree(), last);
Lowering\StateMachineRewriter\StateMachineFieldSymbol.cs (2)
68public override ImmutableArray<CustomModifier> RefCustomModifiers => ImmutableArray<CustomModifier>.Empty;
Lowering\StateMachineRewriter\StateMachineRewriter.cs (4)
31protected ImmutableArray<FieldSymbol> nonReusableFieldsForCleanup; 125return new BoundBadStatement(F.Syntax, ImmutableArray<BoundNode>.Empty, hasErrors: true); 143out ImmutableArray<FieldSymbol> nonReusableFieldsForCleanup, 345var 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)
52public override ImmutableArray<CustomModifier> RefCustomModifiers 57public override ImmutableArray<ParameterSymbol> Parameters 100public override ImmutableArray<PropertySymbol> ExplicitInterfaceImplementations 110public override ImmutableArray<Location> Locations 112get { return ImmutableArray<Location>.Empty; } 115public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 117get { return ImmutableArray<SyntaxReference>.Empty; }
Lowering\SynthesizedMethodBaseSymbol.cs (22)
30private ImmutableArray<TypeParameterSymbol> _typeParameters; 31private ImmutableArray<ParameterSymbol> _parameters; 61protected void AssignTypeMapAndTypeParameters(TypeMap typeMap, ImmutableArray<TypeParameterSymbol> typeParameters) 76public sealed override ImmutableArray<TypeParameterSymbol> TypeParameters 81public sealed override ImmutableArray<ImmutableArray<TypeWithAnnotations>> GetTypeParameterConstraintTypes() 82=> ImmutableArray<ImmutableArray<TypeWithAnnotations>>.Empty; 84public sealed override ImmutableArray<TypeParameterConstraintKind> GetTypeParameterConstraintKinds() 85=> ImmutableArray<TypeParameterConstraintKind>.Empty; 92public sealed override ImmutableArray<ParameterSymbol> Parameters 104protected virtual ImmutableArray<TypeSymbol> ExtraSynthesizedRefParameters 106get { return default(ImmutableArray<TypeSymbol>); } 109protected virtual ImmutableArray<ParameterSymbol> BaseMethodParameters 114private ImmutableArray<ParameterSymbol> MakeParameters() 118var parameters = this.BaseMethodParameters; 136var extraSynthed = ExtraSynthesizedRefParameters; 153public sealed override ImmutableArray<CSharpAttributeData> GetAttributes() 158: ImmutableArray<CSharpAttributeData>.Empty; 161public sealed override ImmutableArray<CSharpAttributeData> GetReturnTypeAttributes() 164return InheritsBaseMethodAttributes ? BaseMethod.GetReturnTypeAttributes() : ImmutableArray<CSharpAttributeData>.Empty; 200public sealed override ImmutableArray<CustomModifier> RefCustomModifiers
Lowering\SyntheticBoundNodeFactory.cs (67)
246return new BoundBadExpression(Syntax, LookupResultKind.Empty, ImmutableArray<Symbol?>.Empty, ImmutableArray<BoundExpression>.Empty, type, hasErrors: true); 458return Block(ImmutableArray<BoundStatement>.Empty); 461public BoundBlock Block(ImmutableArray<BoundStatement> statements) 463return Block(ImmutableArray<LocalSymbol>.Empty, statements); 471public BoundBlock Block(ImmutableArray<LocalSymbol> locals, params BoundStatement[] statements) 476public BoundBlock Block(ImmutableArray<LocalSymbol> locals, ImmutableArray<BoundStatement> statements) 481public BoundBlock Block(ImmutableArray<LocalSymbol> locals, ImmutableArray<LocalFunctionSymbol> localFunctions, params BoundStatement[] statements) 486public BoundBlock Block(ImmutableArray<LocalSymbol> locals, ImmutableArray<LocalFunctionSymbol> localFunctions, ImmutableArray<BoundStatement> statements) 488return Block(locals, ImmutableArray<MethodSymbol>.CastUp(localFunctions), statements); 491public BoundBlock Block(ImmutableArray<LocalSymbol> locals, ImmutableArray<MethodSymbol> localFunctions, ImmutableArray<BoundStatement> statements) 503return StatementList(ImmutableArray<BoundStatement>.Empty); 506public BoundStatementList StatementList(ImmutableArray<BoundStatement> statements) 551statements.Add(Try(Block(statement), ImmutableArray<BoundCatchBlock>.Empty, Block(instrumentation.Epilogue))); 774public BoundObjectCreationExpression New(NamedTypeSymbol type, ImmutableArray<BoundExpression> args) 780public BoundObjectCreationExpression New(MethodSymbol ctor, ImmutableArray<BoundExpression> args) 783public BoundObjectCreationExpression New(MethodSymbol constructor, ImmutableArray<BoundExpression> arguments, ImmutableArray<RefKind> argumentRefKinds) 798public BoundObjectCreationExpression New(WellKnownMember wm, ImmutableArray<BoundExpression> args) 823return new BoundBadExpression(Syntax, default(LookupResultKind), ImmutableArray<Symbol?>.Empty, args.AsImmutable(), receiver); 829public BoundExpression StaticCall(MethodSymbol method, ImmutableArray<BoundExpression> args) 840public BoundExpression StaticCall(WellKnownMember method, ImmutableArray<TypeSymbol> typeArgs, params BoundExpression[] args) 860return Call(receiver, method, ImmutableArray<BoundExpression>.Empty); 881public BoundCall Call(BoundExpression? receiver, MethodSymbol method, ImmutableArray<BoundExpression> args, bool useStrictArgumentRefKinds = false) 887argumentNamesOpt: default(ImmutableArray<string?>), argumentRefKindsOpt: ArgumentRefKindsFromParameterRefKinds(method, useStrictArgumentRefKinds), isDelegateCall: false, expanded: false, 888invokedAsExtensionMethod: false, argsToParamsOpt: default(ImmutableArray<int>), defaultArguments: default(BitVector), resultKind: LookupResultKind.Viable, 893public static ImmutableArray<RefKind> ArgumentRefKindsFromParameterRefKinds(MethodSymbol method, bool useStrictArgumentRefKinds) 895var result = method.ParameterRefKinds; 923public BoundCall Call(BoundExpression? receiver, MethodSymbol method, ImmutableArray<RefKind> refKinds, ImmutableArray<BoundExpression> args) 928argumentNamesOpt: default(ImmutableArray<String?>), argumentRefKindsOpt: refKinds, isDelegateCall: false, expanded: false, invokedAsExtensionMethod: false, 929argsToParamsOpt: ImmutableArray<int>.Empty, defaultArguments: default(BitVector), resultKind: LookupResultKind.Viable, type: method.ReturnType) 955return If(condition, ImmutableArray<LocalSymbol>.Empty, thenClause, elseClauseOpt); 963public BoundStatement If(BoundExpression condition, ImmutableArray<LocalSymbol> locals, BoundStatement thenClause, BoundStatement? elseClauseOpt = null) 1031return MakeSequence(ImmutableArray<LocalSymbol>.Empty, parts); 1034public BoundExpression MakeSequence(ImmutableArray<LocalSymbol> locals, params BoundExpression[] parts) 1060return new BoundSequence(Syntax, ImmutableArray<LocalSymbol>.Empty, sideEffects.AsImmutableOrNull(), result, resultType) { WasCompilerGenerated = true }; 1063public BoundExpression Sequence(ImmutableArray<LocalSymbol> locals, ImmutableArray<BoundExpression> sideEffects, BoundExpression result) 1072public BoundSpillSequence SpillSequence(ImmutableArray<LocalSymbol> locals, ImmutableArray<BoundStatement> sideEffects, BoundExpression result) 1083public readonly ImmutableArray<int> Values; 1084public readonly ImmutableArray<BoundStatement> Statements; 1086public SyntheticSwitchSection(ImmutableArray<int> values, ImmutableArray<BoundStatement> statements) 1096public SyntheticSwitchSection SwitchSection(ImmutableArray<int> values, params BoundStatement[] statements) 1102public BoundStatement Switch(BoundExpression ex, ImmutableArray<SyntheticSwitchSection> sections) 1141private static void CheckSwitchSections(ImmutableArray<SyntheticSwitchSection> sections) 1207ImmutableArray<BoundExpression> firstElementIndices = ArrayBuilder<BoundExpression>.GetInstance(rank, Literal(0)).ToImmutableAndFree(); 1216public BoundArrayAccess ArrayAccess(BoundExpression array, ImmutableArray<BoundExpression> indices) 1318public ImmutableArray<BoundExpression> TypeOfs(ImmutableArray<TypeWithAnnotations> typeArguments, TypeSymbol systemType) 1550public BoundExpression ArrayOrEmpty(TypeSymbol elementType, ImmutableArray<BoundExpression> elements) 1565public BoundExpression Array(TypeSymbol elementType, ImmutableArray<BoundExpression> elements) 1596ImmutableArray<BoundCatchBlock> catchBlocks, 1603internal ImmutableArray<BoundCatchBlock> CatchBlocks( 1621return new BoundCatchBlock(Syntax, ImmutableArray<LocalSymbol>.Empty, source, source.Type, exceptionFilterPrologueOpt: null, exceptionFilterOpt: null, body: block, isSynthesizedAsyncCatchAll: false); 1626return new BoundTryStatement(Syntax, tryBlock, ImmutableArray<BoundCatchBlock>.Empty, faultBlock, finallyLabelOpt: null, preferFaultHandler: true); 1745internal ImmutableArray<BoundExpression> MakeTempsForDiscardArguments(ImmutableArray<BoundExpression> arguments, ArrayBuilder<LocalSymbol> builder) 1863locals: ImmutableArray<LocalSymbol>.Empty,
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\CSharpOperationFactory.cs (121)
318ImmutableArray<IOperation> children = GetIOperationChildren(boundNode); 344public ImmutableArray<TOperation> CreateFromArray<TBoundNode, TOperation>(ImmutableArray<TBoundNode> boundNodes) where TBoundNode : BoundNode where TOperation : class, IOperation 348return ImmutableArray<TOperation>.Empty; 380internal ImmutableArray<IOperation> GetIOperationChildren(IBoundNodeWithIOperationChildren boundNodeWithChildren) 382var children = boundNodeWithChildren.Children; 385return ImmutableArray<IOperation>.Empty; 403internal ImmutableArray<IVariableDeclaratorOperation> CreateVariableDeclarator(BoundNode declaration, SyntaxNode declarationSyntax) 457ImmutableArray<IOperation> children = CreateFromArray<BoundNode, IOperation>(((IBoundInvalidNode)boundCall).InvalidNodeChildren); 464ImmutableArray<IArgumentOperation> arguments = DeriveArguments(boundCall); 487ImmutableArray<IOperation> children = CreateFromArray<BoundNode, IOperation>(((IBoundInvalidNode)boundFunctionPointerInvocation).InvalidNodeChildren); 492var arguments = DeriveArguments(boundFunctionPointerInvocation); 518var namedArguments = CreateFromArray<BoundAssignmentOperator, IOperation>(boundAttribute.NamedArguments); 527internal ImmutableArray<IOperation> CreateIgnoredDimensions(BoundNode declaration) 540var declarations = ((BoundMultipleLocalDeclarationsBase)declaration).LocalDeclarations; 541ImmutableArray<BoundExpression> dimensions; 550dimensions = ImmutableArray<BoundExpression>.Empty; 622var arguments = ImmutableArray<IArgumentOperation>.Empty; 640var children = CreateFromArray<BoundNode, IOperation>(((IBoundInvalidNode)boundIndexerAccess).InvalidNodeChildren); 644ImmutableArray<IArgumentOperation> arguments = DeriveArguments(boundIndexerAccess); 704ImmutableArray<IOperation> initializers = GetAnonymousObjectCreationInitializers(boundAnonymousObjectCreationExpression.Arguments, boundAnonymousObjectCreationExpression.Declarations, syntax, type, isImplicit); 720var children = CreateFromArray<BoundNode, IOperation>(((IBoundInvalidNode)boundObjectCreationExpression).InvalidNodeChildren); 728ImmutableArray<IOperation> initializers = GetAnonymousObjectCreationInitializers( 730declarations: ImmutableArray<BoundAnonymousPropertyDeclaration>.Empty, 737ImmutableArray<IArgumentOperation> arguments = DeriveArguments(boundObjectCreationExpression); 765ImmutableArray<IOperation> arguments = CreateFromArray<BoundExpression, IOperation>(boundDynamicObjectCreationExpression.Arguments); 766ImmutableArray<string?> argumentNames = boundDynamicObjectCreationExpression.ArgumentNamesOpt.NullToEmpty(); 767ImmutableArray<RefKind> argumentRefKinds = boundDynamicObjectCreationExpression.ArgumentRefKindsOpt.NullToEmpty(); 779return CreateBoundDynamicMemberAccessOperation(implicitReceiver, typeArgumentsOpt: ImmutableArray<TypeSymbol>.Empty, memberName: "Add", 794ImmutableArray<IOperation> arguments = CreateFromArray<BoundExpression, IOperation>(boundDynamicInvocation.Arguments); 795ImmutableArray<string?> argumentNames = boundDynamicInvocation.ArgumentNamesOpt.NullToEmpty(); 796ImmutableArray<RefKind> argumentRefKinds = boundDynamicInvocation.ArgumentRefKindsOpt.NullToEmpty(); 818internal ImmutableArray<IOperation> CreateBoundDynamicIndexerAccessArguments(BoundExpression indexer) 837ImmutableArray<IOperation> arguments = CreateBoundDynamicIndexerAccessArguments(boundDynamicIndexerAccess); 838ImmutableArray<string?> argumentNames = boundDynamicIndexerAccess.ArgumentNamesOpt.NullToEmpty(); 839ImmutableArray<RefKind> argumentRefKinds = boundDynamicIndexerAccess.ArgumentRefKindsOpt.NullToEmpty(); 848ImmutableArray<IOperation> initializers = CreateFromArray<BoundExpression, IOperation>(BoundObjectCreationExpression.GetChildInitializers(boundObjectInitializerExpression)); 857ImmutableArray<IOperation> initializers = CreateFromArray<BoundExpression, IOperation>(BoundObjectCreationExpression.GetChildInitializers(boundCollectionInitializerExpression)); 876ImmutableArray<IOperation> arguments = CreateBoundDynamicIndexerAccessArguments(boundObjectInitializerMember); 877ImmutableArray<string?> argumentNames = boundObjectInitializerMember.ArgumentNamesOpt.NullToEmpty(); 878ImmutableArray<RefKind> argumentRefKinds = boundObjectInitializerMember.ArgumentRefKindsOpt.NullToEmpty(); 894ImmutableArray<IArgumentOperation> arguments; 904var children = CreateFromArray<BoundNode, IOperation>(((IBoundInvalidNode)boundObjectInitializerMember).InvalidNodeChildren); 912arguments = ImmutableArray<IArgumentOperation>.Empty; 929ImmutableArray<ITypeSymbol> typeArguments = ImmutableArray<ITypeSymbol>.Empty; 942ImmutableArray<IArgumentOperation> arguments = DeriveArguments(boundCollectionElementInitializer); 950var children = CreateFromArray<BoundNode, IOperation>(((IBoundInvalidNode)boundCollectionElementInitializer).InvalidNodeChildren); 966ImmutableArray<TypeSymbol> typeArgumentsOpt, 979ImmutableArray<ITypeSymbol> typeArguments = ImmutableArray<ITypeSymbol>.Empty; 992ImmutableArray<IOperation> arguments = CreateFromArray<BoundExpression, IOperation>(boundCollectionElementInitializer.Arguments); 996return new DynamicInvocationOperation(operation, arguments, argumentNames: ImmutableArray<string?>.Empty, argumentRefKinds: ImmutableArray<RefKind>.Empty, _semanticModel, syntax, type, isImplicit); 1246ImmutableArray<IOperation> dimensionSizes = CreateFromArray<BoundExpression, IOperation>(boundArrayCreation.Bounds); 1257ImmutableArray<IOperation> elementValues = CreateFromArray<BoundExpression, IOperation>(boundArrayInitialization.Initializers); 1293static ImmutableArray<IOperation> getConstructArguments( 1307: ImmutableArray<IOperation>.CastUp(@this.DeriveArguments(collectionCreation)); 1316: ImmutableArray<IOperation>.CastUp(@this.DeriveArguments(collectionCreation)); 1484var children = CreateFromArray<BoundExpression, IOperation>(boundBadExpression.ChildBoundNodes); 1693ImmutableArray<IOperation> indices = CreateFromArray<BoundExpression, IOperation>(boundArrayAccess.Indices); 1792ImmutableArray<IFieldSymbol> initializedFields = ImmutableArray.Create<IFieldSymbol>(boundFieldEqualsValue.Field.GetPublicSymbol()); 1801ImmutableArray<IPropertySymbol> initializedProperties = ImmutableArray.Create<IPropertySymbol>(boundPropertyEqualsValue.Property.GetPublicSymbol()); 1819ImmutableArray<IOperation> operations = CreateFromArray<BoundStatement, IOperation>(boundBlock.Statements); 1820ImmutableArray<ILocalSymbol> locals = boundBlock.Locals.GetPublicSymbols(); 1914ImmutableArray<ILocalSymbol> locals = boundWhileStatement.Locals.GetPublicSymbols(); 1932ImmutableArray<ILocalSymbol> locals = boundDoStatement.Locals.GetPublicSymbols(); 1940ImmutableArray<IOperation> before = CreateFromArray<BoundStatement, IOperation>(ToStatements(boundForStatement.Initializer)); 1942ImmutableArray<IOperation> atLoopBottom = CreateFromArray<BoundStatement, IOperation>(ToStatements(boundForStatement.Increment)); 1944ImmutableArray<ILocalSymbol> locals = boundForStatement.OuterLocals.GetPublicSymbols(); 1945ImmutableArray<ILocalSymbol> conditionLocals = boundForStatement.InnerLocals.GetPublicSymbols(); 1998ImmutableArray<IArgumentOperation> createArgumentOperations(MethodArgumentInfo? info) 2006return ImmutableArray<IArgumentOperation>.Empty; 2008var args = DeriveArguments( 2035return new VariableDeclaratorOperation(local.GetPublicSymbol(), initializer: null, ignoredArguments: ImmutableArray<IOperation>.Empty, semanticModel: _semanticModel, syntax: declaratorSyntax, isImplicit: false); 2047var nextVariables = ImmutableArray<IOperation>.Empty; 2051ImmutableArray<ILocalSymbol> locals = boundForEachStatement.IterationVariables.GetPublicSymbols(); 2064ImmutableArray<ICatchClauseOperation> catches = CreateFromArray<BoundCatchBlock, ICatchClauseOperation>(boundTryStatement.CatchBlocks); 2079ImmutableArray<ILocalSymbol> locals = boundCatchBlock.Locals.GetPublicSymbols(); 2089ImmutableArray<ILocalSymbol> locals = boundFixedStatement.Locals.GetPublicSymbols(); 2101ImmutableArray<ILocalSymbol> locals = boundUsingStatement.Locals.GetPublicSymbols(); 2161var children = CreateFromArray<BoundNode, IOperation>(boundBadStatement.ChildBoundNodes); 2207ImmutableArray<IVariableDeclaratorOperation> declarators = CreateVariableDeclarator(boundLocalDeclaration, varDeclaration); 2208ImmutableArray<IOperation> ignoredDimensions = CreateIgnoredDimensions(boundLocalDeclaration); 2227ImmutableArray<IVariableDeclaratorOperation> declarators = CreateVariableDeclarator(boundMultipleLocalDeclarations, declarationSyntax); 2228ImmutableArray<IOperation> ignoredDimensions = CreateIgnoredDimensions(boundMultipleLocalDeclarations); 2316ImmutableArray<IOperation> elements = CreateFromArray<BoundExpression, IOperation>(boundTupleExpression.Arguments); 2320private IInterpolatedStringOperation CreateBoundInterpolatedStringExpressionOperation(BoundInterpolatedString boundInterpolatedString, ImmutableArray<(bool IsLiteral, bool HasAlignment, bool HasFormat)>? positionInfo = null) 2329ImmutableArray<IInterpolatedStringContentOperation> parts = CreateBoundInterpolatedStringContentOperation(boundInterpolatedString.Parts, positionInfo); 2337internal ImmutableArray<IInterpolatedStringContentOperation> CreateBoundInterpolatedStringContentOperation(ImmutableArray<BoundExpression> parts, ImmutableArray<(bool IsLiteral, bool HasAlignment, bool HasFormat)>? positionInfo) 2341ImmutableArray<IInterpolatedStringContentOperation> createNonHandlerInterpolatedStringContent() 2359ImmutableArray<IInterpolatedStringContentOperation> createHandlerInterpolatedStringContent(ImmutableArray<(bool IsLiteral, bool HasAlignment, bool HasFormat)> positionInfo) 2443static (BoundExpression Value, BoundExpression? Alignment, BoundExpression? Format) getCallInfo(ImmutableArray<BoundExpression> arguments, ImmutableArray<string?> argumentNamesOpt, (bool IsLiteral, bool HasAlignment, bool HasFormat) currentPosition) 2511var parts = interpolatedString.Parts.SelectAsArray( 2555return new InvalidOperation(ImmutableArray<IOperation>.Empty, _semanticModel, syntax, type, placeholder.ConstantValueOpt, isImplicit); 2622ImmutableArray<IPatternOperation> deconstructionSubpatterns = boundRecursivePattern.Deconstruction is { IsDefault: false } deconstructions 2624: ImmutableArray<IPatternOperation>.Empty; 2625ImmutableArray<IPropertySubpatternOperation> propertySubpatterns = boundRecursivePattern.Properties is { IsDefault: false } properties 2627: ImmutableArray<IPropertySubpatternOperation>.Empty; 2643ImmutableArray<IPatternOperation> deconstructionSubpatterns = boundITuplePattern.Subpatterns is { IsDefault: false } subpatterns 2645: ImmutableArray<IPatternOperation>.Empty; 2651propertySubpatterns: ImmutableArray<IPropertySubpatternOperation>.Empty, 2753ImmutableArray<ISwitchCaseOperation> cases = CreateFromArray<BoundSwitchSection, ISwitchCaseOperation>(boundSwitchStatement.SwitchSections); 2754ImmutableArray<ILocalSymbol> locals = boundSwitchStatement.InnerLocals.GetPublicSymbols(); 2763ImmutableArray<ICaseClauseOperation> clauses = CreateFromArray<BoundSwitchLabel, ICaseClauseOperation>(boundSwitchSection.SwitchLabels); 2764ImmutableArray<IOperation> body = CreateFromArray<BoundStatement, IOperation>(boundSwitchSection.Statements); 2765ImmutableArray<ILocalSymbol> locals = boundSwitchSection.Locals.GetPublicSymbols(); 2773ImmutableArray<ISwitchExpressionArmOperation> arms = CreateFromArray<BoundSwitchExpressionArm, ISwitchExpressionArmOperation>(boundSwitchExpression.SwitchArms); 2927var reference = OperationFactory.CreateInvalidOperation(_semanticModel, subpatternSyntax, ImmutableArray<IOperation>.Empty, isImplicit: true); 2949matchedType: previousType, deconstructSymbol: null, deconstructionSubpatterns: ImmutableArray<IPatternOperation>.Empty, 2973reference = new PropertyReferenceOperation(property.GetPublicSymbol(), constrainedToType: null, ImmutableArray<IArgumentOperation>.Empty, 2981reference = OperationFactory.CreateInvalidOperation(_semanticModel, nameSyntax, ImmutableArray<IOperation>.Empty, isImplicit: false); 3006private ImmutableArray<IArgumentOperation> CreateDisposeArguments(MethodArgumentInfo patternDisposeInfo) 3013return ImmutableArray<IArgumentOperation>.Empty; 3016var args = DeriveArguments(
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\roslyn\src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (1)
92builder.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_Minimal.cs (2)
33var boundSymbols = SemanticModelOpt.LookupNamespacesAndTypes(PositionOpt, name: aliasName); 78var symbols = ShouldRestrictMinimallyQualifyLookupToNamespacesAndTypes()
SymbolDisplay\SymbolDisplayVisitor.Members.cs (6)
578AddTypeArguments(symbol, default(ImmutableArray<ImmutableArray<CustomModifier>>)); 593var conventionTypes = symbol.UnmanagedCallingConventionTypes; 984private void AddParametersIfNeeded(bool hasThisParameter, bool isVarargs, ImmutableArray<IParameterSymbol> parameters) 1052private void AddExplicitInterfaceIfNeeded<T>(ImmutableArray<T> implementedMembers) where T : ISymbol 1068private void AddCustomModifiersIfNeeded(ImmutableArray<CustomModifier> customModifiers, bool leadingSpace = false, bool trailingSpace = true)
SymbolDisplay\SymbolDisplayVisitor.Types.cs (9)
478private ImmutableArray<ImmutableArray<CustomModifier>> GetTypeArgumentsModifiers(NamedTypeSymbol? underlyingTypeSymbol) 562ImmutableArray<ImmutableArray<CustomModifier>> modifiers = GetTypeArgumentsModifiers(underlyingTypeSymbol); 592ImmutableArray<IFieldSymbol> elements = symbol.TupleElements; 825private void AddTypeArguments(ISymbol owner, ImmutableArray<ImmutableArray<CustomModifier>> modifiers) 827ImmutableArray<ITypeSymbol> typeArguments; 888private 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)
51private readonly ImmutableArray<Location> _locations; // NOTE: can be empty for the "global" alias. 56protected AliasSymbol(string aliasName, Symbol containingSymbol, ImmutableArray<Location> locations, bool isExtern) 71return new AliasSymbolFromResolvedTarget(globalNamespace, "global", globalNamespace, ImmutableArray<Location>.Empty, isExtern: false); 119public override ImmutableArray<Location> Locations 127public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 436internal AliasSymbolFromResolvedTarget(NamespaceOrTypeSymbol target, string aliasName, Symbol containingSymbol, ImmutableArray<Location> locations, bool isExtern)
Symbols\AnonymousTypes\AnonymousTypeDescriptor.cs (7)
22public readonly ImmutableArray<AnonymousTypeField> Fields; 33public AnonymousTypeDescriptor(ImmutableArray<AnonymousTypeField> fields, Location location) 40internal static string ComputeKey<T>(ImmutableArray<T> fields, Func<T, string> getName) 102internal AnonymousTypeDescriptor WithNewFieldsTypes(ImmutableArray<TypeWithAnnotations> newFieldTypes) 107var newFields = Fields.ZipAsArray(newFieldTypes, static (field, type) => field.WithType(type)); 113var oldFieldTypes = Fields.SelectAsArray(f => f.TypeWithAnnotations); 114var newFieldTypes = map.SubstituteTypes(oldFieldTypes);
Symbols\AnonymousTypes\AnonymousTypeManager.cs (3)
67internal static ImmutableArray<TypeWithAnnotations> GetAnonymousTypeFieldTypes(NamedTypeSymbol type) 71var fields = anonymous.TypeDescriptor.Fields; 79public static NamedTypeSymbol ConstructAnonymousTypeSymbol(NamedTypeSymbol type, ImmutableArray<TypeWithAnnotations> newFieldTypes)
Symbols\AnonymousTypes\AnonymousTypeManager.Templates.cs (13)
191var fields = typeDescr.Fields; 213var typeArguments = typeArgumentsBuilder.ToImmutableAndFree(); 221var genericFieldTypes = IndexedTypeParameterSymbol.Take(nTypeArguments); 271var typeParameters = GetReferencedTypeParameters(typeDescr); 296var fields = typeDescr.Fields; 333static SynthesizedDelegateKey getTemplateKey(AnonymousTypeDescriptor typeDescr, ImmutableArray<TypeParameterSymbol> typeParameters) 345private static ImmutableArray<TypeParameterSymbol> GetReferencedTypeParameters(AnonymousTypeDescriptor typeDescr) 353ImmutableArray<TypeParameterSymbol> typeParameters; 356typeParameters = ImmutableArray<TypeParameterSymbol>.Empty; 438var typeArguments = typeDescr.Fields.SelectAsArray(f => f.Type); 646internal ImmutableSegmentedDictionary<AnonymousDelegateWithIndexedNamePartialKey, ImmutableArray<AnonymousTypeValue>> GetAnonymousDelegatesWithIndexedNames() 667internal ImmutableArray<NamedTypeSymbol> GetAllCreatedTemplates() 709internal static ImmutableArray<MethodSymbol> GetAnonymousTypeHiddenMethods(NamedTypeSymbol type)
Symbols\AnonymousTypes\PublicSymbols\AnonymousManager.TypeOrDelegatePublicSymbol.cs (22)
54internal sealed override ImmutableArray<Symbol> GetEarlyAttributeDecodingMembers() 59internal sealed override ImmutableArray<Symbol> GetEarlyAttributeDecodingMembers(string name) 101public sealed override ImmutableArray<TypeParameterSymbol> TypeParameters 103get { return ImmutableArray<TypeParameterSymbol>.Empty; } 106internal sealed override ImmutableArray<TypeWithAnnotations> TypeArgumentsWithAnnotationsNoUseSiteDiagnostics 108get { return ImmutableArray<TypeWithAnnotations>.Empty; } 145internal sealed override ImmutableArray<NamedTypeSymbol> CandidateClosedSubtypeDefinitions => []; 147public sealed override ImmutableArray<NamedTypeSymbol> GetTypeMembers() 149return ImmutableArray<NamedTypeSymbol>.Empty; 152public sealed override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name) 154return ImmutableArray<NamedTypeSymbol>.Empty; 157public sealed override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name, int arity) 159return ImmutableArray<NamedTypeSymbol>.Empty; 167internal sealed override ImmutableArray<NamedTypeSymbol> InterfacesNoUseSiteDiagnostics(ConsList<TypeSymbol> basesBeingResolved) 169return ImmutableArray<NamedTypeSymbol>.Empty; 172internal sealed override ImmutableArray<NamedTypeSymbol> GetInterfacesToEmit() 186public sealed override ImmutableArray<Location> Locations 191public abstract override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 261internal sealed override ImmutableArray<string> GetAppliedConditionalSymbols() 263return ImmutableArray<string>.Empty; 276internal sealed override ImmutableArray<NamedTypeSymbol> GetDeclaredInterfaces(ConsList<TypeSymbol> basesBeingResolved) 278return 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 (9)
23private readonly ImmutableArray<Symbol> _members; 26internal readonly ImmutableArray<AnonymousTypePropertySymbol> Properties; 36var fields = typeDescr.Fields; 37var properties = fields.SelectAsArray((field, i, type) => new AnonymousTypePropertySymbol(type, field, i), this); 71var oldFieldTypes = TypeDescriptor.Fields.SelectAsArray(f => f.TypeWithAnnotations); 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 (17)
19private readonly ImmutableArray<Symbol> _members; 54var typeParams = containingType.TypeParameters; 74private static ImmutableArray<TypeParameterSymbol> CreateTypeParameters(AnonymousDelegateTemplateSymbol containingType, int parameterCount, bool returnsVoid, bool hasParamsArray) 120ImmutableArray<AnonymousTypeField> fields) 122var typeParams = containingType.TypeParameters; 159internal AnonymousDelegateTemplateSymbol(AnonymousTypeManager manager, AnonymousTypeDescriptor typeDescr, ImmutableArray<TypeParameterSymbol> typeParametersToSubstitute) 172TypeParameters = ImmutableArray<TypeParameterSymbol>.Empty; 194ImmutableArray<AnonymousTypeField> fields, 216private static ImmutableArray<Symbol> CreateMembers(MethodSymbol constructor, MethodSymbol invokeMethod) 235internal override ImmutableArray<NamedTypeSymbol> CandidateClosedSubtypeDefinitions => []; 237public override ImmutableArray<Symbol> GetMembers() => _members; 239public override ImmutableArray<Symbol> GetMembers(string name) => GetMembers().WhereAsArray((member, name) => member.Name == name, name); 243internal override ImmutableArray<NamedTypeSymbol> GetInterfacesToEmit() => ImmutableArray<NamedTypeSymbol>.Empty; 245internal override ImmutableArray<NamedTypeSymbol> InterfacesNoUseSiteDiagnostics(ConsList<TypeSymbol>? basesBeingResolved = null) => ImmutableArray<NamedTypeSymbol>.Empty; 249public 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; 120public override ImmutableArray<Location> Locations 122get { return ImmutableArray<Location>.Empty; } 125public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 129return 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 143public override ImmutableArray<ParameterSymbol> Parameters 145get { return ImmutableArray<ParameterSymbol>.Empty; } 153public override ImmutableArray<CustomModifier> RefCustomModifiers 155get { return ImmutableArray<CustomModifier>.Empty; } 163public override ImmutableArray<PropertySymbol> ExplicitInterfaceImplementations 165get { 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 (13)
26private readonly ImmutableArray<TypeParameterSymbol> _typeParameters; 27private readonly ImmutableArray<Symbol> _members; 31internal readonly ImmutableArray<MethodSymbol> SpecialMembers; 34internal readonly ImmutableArray<AnonymousTypePropertySymbol> Properties; 95var properties = Properties.SelectAsArray(p => new AnonymousTypeKeyField(p.Name, isKey: false, ignoreCase: false)); 110internal override ImmutableArray<NamedTypeSymbol> CandidateClosedSubtypeDefinitions => []; 112public override ImmutableArray<Symbol> GetMembers() 130public override ImmutableArray<Symbol> GetMembers(string name) 142internal override ImmutableArray<NamedTypeSymbol> InterfacesNoUseSiteDiagnostics(ConsList<TypeSymbol> basesBeingResolved) 144return ImmutableArray<NamedTypeSymbol>.Empty; 147internal override ImmutableArray<NamedTypeSymbol> GetInterfacesToEmit() 149return ImmutableArray<NamedTypeSymbol>.Empty; 154public 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)
132internal sealed override ImmutableArray<Symbol> GetEarlyAttributeDecodingMembers() 137internal sealed override ImmutableArray<Symbol> GetEarlyAttributeDecodingMembers(string name) 196public sealed override ImmutableArray<NamedTypeSymbol> GetTypeMembers() 198return ImmutableArray<NamedTypeSymbol>.Empty; 201public sealed override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name) 203return ImmutableArray<NamedTypeSymbol>.Empty; 206public sealed override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name, int arity) 208return ImmutableArray<NamedTypeSymbol>.Empty; 221public sealed override ImmutableArray<Location> Locations 223get { return ImmutableArray<Location>.Empty; } 226public sealed override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 228get { return ImmutableArray<SyntaxReference>.Empty; } 248internal sealed override ImmutableArray<NamedTypeSymbol> GetDeclaredInterfaces(ConsList<TypeSymbol> basesBeingResolved) 250return ImmutableArray<NamedTypeSymbol>.Empty; 261internal sealed override ImmutableArray<TypeWithAnnotations> TypeArgumentsWithAnnotationsNoUseSiteDiagnostics 316internal sealed override ImmutableArray<string> GetAppliedConditionalSymbols() 318return 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 (41)
47return CreateMDArray(declaringAssembly, elementTypeWithAnnotations, rank, default(ImmutableArray<int>), default(ImmutableArray<int>)); 53ImmutableArray<int> sizes, 54ImmutableArray<int> lowerBounds, 70ImmutableArray<int> sizes, 71ImmutableArray<int> lowerBounds) 86ImmutableArray<NamedTypeSymbol> constructedInterfaces) 105private static ImmutableArray<NamedTypeSymbol> GetSZArrayInterfaces( 150public virtual ImmutableArray<int> Sizes 154return ImmutableArray<int>.Empty; 163public virtual ImmutableArray<int> LowerBounds 167return default(ImmutableArray<int>); 178var thisLowerBounds = this.LowerBounds; 185var otherLowerBounds = other.LowerBounds; 262public override ImmutableArray<Symbol> GetMembers() 264return ImmutableArray<Symbol>.Empty; 267public override ImmutableArray<Symbol> GetMembers(string name) 269return ImmutableArray<Symbol>.Empty; 272public override ImmutableArray<NamedTypeSymbol> GetTypeMembers() 274return ImmutableArray<NamedTypeSymbol>.Empty; 277public override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name) 279return ImmutableArray<NamedTypeSymbol>.Empty; 282public override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name, int arity) 284return ImmutableArray<NamedTypeSymbol>.Empty; 311public override ImmutableArray<Location> Locations 315return ImmutableArray<Location>.Empty; 319public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 323return ImmutableArray<SyntaxReference>.Empty; 392internal override bool ApplyNullableTransforms(byte defaultTransformFlag, ImmutableArray<byte> transforms, ref int position, out TypeSymbol result) 510private readonly ImmutableArray<NamedTypeSymbol> _interfaces; 515ImmutableArray<NamedTypeSymbol> constructedInterfaces) 524var newInterfaces = _interfaces.SelectAsArray((i, t) => i.OriginalDefinition.Construct(t), newElementType.Type); 549internal override ImmutableArray<NamedTypeSymbol> InterfacesNoUseSiteDiagnostics(ConsList<TypeSymbol>? basesBeingResolved = null) 596internal sealed override ImmutableArray<NamedTypeSymbol> InterfacesNoUseSiteDiagnostics(ConsList<TypeSymbol>? basesBeingResolved = null) 598return ImmutableArray<NamedTypeSymbol>.Empty; 628private readonly ImmutableArray<int> _sizes; 629private readonly ImmutableArray<int> _lowerBounds; 634ImmutableArray<int> sizes, 635ImmutableArray<int> lowerBounds, 650public override ImmutableArray<int> Sizes 658public override ImmutableArray<int> LowerBounds
Symbols\AssemblySymbol.cs (10)
184public abstract ImmutableArray<ModuleSymbol> Modules { get; } 286public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 290return ImmutableArray<SyntaxReference>.Empty; 561internal abstract ImmutableArray<AssemblySymbol> GetNoPiaResolutionAssemblies(); 562internal abstract void SetNoPiaResolutionAssemblies(ImmutableArray<AssemblySymbol> assemblies); 569internal abstract ImmutableArray<AssemblySymbol> GetLinkedReferencedAssemblies(); 570internal abstract void SetLinkedReferencedAssemblies(ImmutableArray<AssemblySymbol> assemblies); 572IEnumerable<ImmutableArray<byte>> IAssemblySymbolInternal.GetInternalsVisibleToPublicKeys(string simpleName) 575internal abstract IEnumerable<ImmutableArray<byte>> GetInternalsVisibleToPublicKeys(string simpleName); 1104internal abstract ImmutableArray<byte> PublicKey { get; }
Symbols\Attributes\AttributeData.cs (5)
343var ctorArgs = this.CommonConstructorArguments; 511var namedArgs = this.CommonNamedArguments; 555var members = permissionSetType.GetMembers(propName); 790internal static int IndexOfAttribute(this ImmutableArray<CSharpAttributeData> attributes, AttributeDescription description) 806var 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)
22public override ImmutableArray<MetadataReference> GetUsedAssemblyReferences(CancellationToken cancellationToken = default) 28return ImmutableArray<MetadataReference>.Empty; 32ImmutableDictionary<MetadataReference, ImmutableArray<MetadataReference>> mergedAssemblyReferencesMap = GetBoundReferenceManager().MergedAssemblyReferencesMap; 41mergedAssemblyReferencesMap.TryGetValue(reference, out ImmutableArray<MetadataReference> merged))
Symbols\Compilation_WellKnownMembers.cs (25)
253var members = declaringType.GetMembers(descriptor.Name); 257internal static Symbol? GetRuntimeMember(ImmutableArray<Symbol> members, in MemberDescriptor descriptor, SignatureComparer<MethodSymbol, FieldSymbol, PropertySymbol, TypeSymbol, ParameterSymbol> comparer, AssemblySymbol? accessWithinOpt) 396ImmutableArray<TypedConstant> arguments = default, 397ImmutableArray<KeyValuePair<WellKnownMember, TypedConstant>> namedArguments = default, 411arguments = ImmutableArray<TypedConstant>.Empty; 414ImmutableArray<KeyValuePair<string, TypedConstant>> namedStringArguments; 417namedStringArguments = ImmutableArray<KeyValuePair<string, TypedConstant>>.Empty; 458arguments: ImmutableArray<TypedConstant>.Empty, 459namedArguments: ImmutableArray<KeyValuePair<string, TypedConstant>>.Empty); 830var transformFlags = DynamicTransformsEncoder.Encode(type, refKindOpt, customModifiersCount, booleanType); 832var arguments = ImmutableArray.Create(new TypedConstant(boolArray, transformFlags)); 844var names = TupleNamesEncoder.Encode(type, stringType); 849var args = ImmutableArray.Create(new TypedConstant(stringArray, names)); 857var arguments = ImmutableArray.Create( 859var namedArguments = ImmutableArray.Create( 867public static ImmutableArray<string?> Encode(TypeSymbol type) 880public static ImmutableArray<TypedConstant> Encode(TypeSymbol type, TypeSymbol stringType) 890var names = namesBuilder.SelectAsArray((name, constantType) => 931internal static ImmutableArray<TypedConstant> Encode(TypeSymbol type, RefKind refKind, int customModifiersCount, TypeSymbol booleanType) 938var result = flagsBuilder.SelectAsArray((flag, constantType) => new TypedConstant(constantType, TypedConstantKind.Primitive, flag), booleanType); 943internal static ImmutableArray<bool> Encode(TypeSymbol type, RefKind refKind, int customModifiersCount) 950internal static ImmutableArray<bool> EncodeWithoutCustomModifierFlags(TypeSymbol type, RefKind refKind) 1052void handle(RefKind refKind, ImmutableArray<CustomModifier> customModifiers, TypeWithAnnotations twa) 1173protected override ImmutableArray<ParameterSymbol> GetParameters(MethodSymbol method) 1178protected 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; 609ImmutableArray<Location> elementLocations, 767var array = type.OriginalDefinition.InterfacesNoUseSiteDiagnostics(basesBeingResolved); 899ImmutableArray<TypeParameterSymbol> typeParameters, 900ImmutableArray<TypeWithAnnotations> typeArguments, 1086ImmutableArray<TypeWithAnnotations> originalConstraintTypes = typeParameter.ConstraintTypesWithDefinitionUseSiteDiagnostics(ref useSiteInfo); 1439private static bool IsReferenceType(TypeParameterSymbol typeParameter, ImmutableArray<TypeWithAnnotations> constraintTypes) 1444private static bool IsValueType(TypeParameterSymbol typeParameter, ImmutableArray<TypeWithAnnotations> constraintTypes) 1455private 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)
24public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences => ImmutableArray<SyntaxReference>.Empty; 33public override ImmutableArray<Location> Locations => ImmutableArray<Location>.Empty;
Symbols\DynamicTypeSymbol.cs (15)
71public override ImmutableArray<Location> Locations 75return ImmutableArray<Location>.Empty; 79public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 83return ImmutableArray<SyntaxReference>.Empty; 89internal override ImmutableArray<NamedTypeSymbol> InterfacesNoUseSiteDiagnostics(ConsList<TypeSymbol>? basesBeingResolved) 91return ImmutableArray<NamedTypeSymbol>.Empty; 133public override ImmutableArray<Symbol> GetMembers() 135return ImmutableArray<Symbol>.Empty; 138public override ImmutableArray<Symbol> GetMembers(string name) 140return ImmutableArray<Symbol>.Empty; 143public override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name) 145return ImmutableArray<NamedTypeSymbol>.Empty; 148public override ImmutableArray<NamedTypeSymbol> GetTypeMembers() 150return ImmutableArray<NamedTypeSymbol>.Empty; 221internal override bool ApplyNullableTransforms(byte defaultTransformFlag, ImmutableArray<byte> transforms, ref int position, out TypeSymbol result)
Symbols\ErrorMethodSymbol.cs (16)
93public override ImmutableArray<Location> Locations 95get { return ImmutableArray<Location>.Empty; } 98public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 102return ImmutableArray<SyntaxReference>.Empty; 121public override ImmutableArray<CustomModifier> RefCustomModifiers 123get { return ImmutableArray<CustomModifier>.Empty; } 131public override ImmutableArray<MethodSymbol> ExplicitInterfaceImplementations 133get { return ImmutableArray<MethodSymbol>.Empty; } 145public override ImmutableArray<ParameterSymbol> Parameters 147get { return ImmutableArray<ParameterSymbol>.Empty; } 150public override ImmutableArray<TypeParameterSymbol> TypeParameters 152get { return ImmutableArray<TypeParameterSymbol>.Empty; } 155public override ImmutableArray<TypeWithAnnotations> TypeArgumentsWithAnnotations 157get { return ImmutableArray<TypeWithAnnotations>.Empty; } 256internal sealed override ImmutableArray<string> GetAppliedConditionalSymbols() 258return ImmutableArray<string>.Empty;
Symbols\ErrorPropertySymbol.cs (10)
63public override ImmutableArray<Location> Locations { get { return ImmutableArray<Location>.Empty; } } 65public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences { get { return ImmutableArray<SyntaxReference>.Empty; } } 89public override ImmutableArray<ParameterSymbol> Parameters { get { return ImmutableArray<ParameterSymbol>.Empty; } } 95public override ImmutableArray<PropertySymbol> ExplicitInterfaceImplementations { get { return ImmutableArray<PropertySymbol>.Empty; } } 97public override ImmutableArray<CustomModifier> RefCustomModifiers { get { return ImmutableArray<CustomModifier>.Empty; } }
Symbols\ErrorTypeSymbol.cs (43)
25private ImmutableArray<TypeParameterSymbol> _lazyTypeParameters; 55public virtual ImmutableArray<Symbol> CandidateSymbols 59return ImmutableArray<Symbol>.Empty; 146internal sealed override ImmutableArray<NamedTypeSymbol> CandidateClosedSubtypeDefinitions => []; 153public override ImmutableArray<Symbol> GetMembers() 157var result = MakeSynthesizedTupleMembers(ImmutableArray<Symbol>.Empty); 162return ImmutableArray<Symbol>.Empty; 170public override ImmutableArray<Symbol> GetMembers(string name) 180internal override ImmutableArray<Symbol> GetEarlyAttributeDecodingMembers() 185internal override ImmutableArray<Symbol> GetEarlyAttributeDecodingMembers(string name) 195public override ImmutableArray<NamedTypeSymbol> GetTypeMembers() 197return ImmutableArray<NamedTypeSymbol>.Empty; 206public override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name) 208return ImmutableArray<NamedTypeSymbol>.Empty; 217public override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name, int arity) 219return ImmutableArray<NamedTypeSymbol>.Empty; 265public override ImmutableArray<Location> Locations 269return ImmutableArray<Location>.Empty; 273public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 277return ImmutableArray<SyntaxReference>.Empty; 310internal override ImmutableArray<TypeWithAnnotations> TypeArgumentsWithAnnotationsNoUseSiteDiagnostics 322public override ImmutableArray<TypeParameterSymbol> TypeParameters 330default(ImmutableArray<TypeParameterSymbol>)); 336private ImmutableArray<TypeParameterSymbol> GetTypeParameters() 341return ImmutableArray<TypeParameterSymbol>.Empty; 461internal override ImmutableArray<NamedTypeSymbol> InterfacesNoUseSiteDiagnostics(ConsList<TypeSymbol>? basesBeingResolved) 463return ImmutableArray<NamedTypeSymbol>.Empty; 466internal override ImmutableArray<NamedTypeSymbol> GetInterfacesToEmit() 468return ImmutableArray<NamedTypeSymbol>.Empty; 476internal override ImmutableArray<NamedTypeSymbol> GetDeclaredInterfaces(ConsList<TypeSymbol> basesBeingResolved) 478return ImmutableArray<NamedTypeSymbol>.Empty; 481protected override NamedTypeSymbol ConstructCore(ImmutableArray<TypeWithAnnotations> typeArguments, bool unbound) 538internal sealed override ImmutableArray<string> GetAppliedConditionalSymbols() 540return ImmutableArray<string>.Empty; 641public override ImmutableArray<Location> Locations 646public override ImmutableArray<Symbol> CandidateSymbols 674private readonly ImmutableArray<TypeWithAnnotations> _typeArgumentsWithAnnotations; 677public ConstructedErrorTypeSymbol(ErrorTypeSymbol constructedFrom, ImmutableArray<TypeWithAnnotations> typeArgumentsWithAnnotations, TupleExtraData? tupleData = null) : 690public override ImmutableArray<TypeParameterSymbol> TypeParameters 695internal override ImmutableArray<TypeWithAnnotations> TypeArgumentsWithAnnotationsNoUseSiteDiagnostics 719private readonly ImmutableArray<TypeParameterSymbol> _typeParameters; 729public override ImmutableArray<TypeParameterSymbol> TypeParameters 734internal 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)
110/// Returns an empty <see cref="ImmutableArray&lt;AttributeData&gt;"/> if 116public ImmutableArray<CSharpAttributeData> GetFieldAttributes() 119ImmutableArray<CSharpAttributeData>.Empty : 230public 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\Extensions\ReceiverParameterSymbol.cs (1)
32internal override ImmutableArray<int> InterpolatedStringHandlerArgumentIndexes
Symbols\Extensions\RewrittenLambdaOrLocalFunctionSymbol.cs (2)
38protected override ImmutableArray<ParameterSymbol> MakeParameters() 40return ImmutableArray<ParameterSymbol>.CastUp(_originalMethod.Parameters.SelectAsArray(static (p, @this) => new RewrittenMethodParameterSymbol(@this, p), this));
Symbols\Extensions\RewrittenMethodSymbol.cs (13)
16private readonly ImmutableArray<TypeParameterSymbol> _typeParameters; 17private ImmutableArray<ParameterSymbol> _lazyParameters; 19protected RewrittenMethodSymbol(MethodSymbol originalMethod, TypeMap typeMap, ImmutableArray<TypeParameterSymbol> typeParametersToAlphaRename) 32public sealed override ImmutableArray<TypeParameterSymbol> TypeParameters 37public sealed override ImmutableArray<TypeWithAnnotations> TypeArgumentsWithAnnotations 78public sealed override ImmutableArray<MethodSymbol> ExplicitInterfaceImplementations => ImmutableArray<MethodSymbol>.Empty; 85public sealed override ImmutableArray<CustomModifier> RefCustomModifiers 90public sealed override ImmutableArray<CSharpAttributeData> GetAttributes() 95public sealed override ImmutableArray<CSharpAttributeData> GetReturnTypeAttributes() 105public sealed override ImmutableArray<ParameterSymbol> Parameters 117protected abstract ImmutableArray<ParameterSymbol> MakeParameters(); 155public override ImmutableArray<CustomModifier> RefCustomModifiers
Symbols\Extensions\RewrittenParameterSymbol.cs (1)
24internal override ImmutableArray<int> InterpolatedStringHandlerArgumentIndexes => throw ExceptionUtilities.Unreachable();
Symbols\Extensions\SourceExtensionImplementationMethodSymbol.cs (4)
120protected override ImmutableArray<ParameterSymbol> MakeParameters() 122var sourceParameters = _originalMethod.Parameters; 215internal sealed override ImmutableArray<int> InterpolatedStringHandlerArgumentIndexes 219var originalIndexes = this._underlyingParameter.InterpolatedStringHandlerArgumentIndexes;
Symbols\Extensions\SynthesizedExtensionMarker.cs (1)
60protected override (TypeWithAnnotations ReturnType, ImmutableArray<ParameterSymbol> Parameters) MakeParametersAndBindReturnType(BindingDiagnosticBag diagnostics)
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 (66)
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, 508var refCustomModifiers = arg.ParamRefCustomModifiers.IsDefault ? getCustomModifierArrayForRefKind(refKind, arg.Comp) : arg.ParamRefCustomModifiers[i]; 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; } 73public override ImmutableArray<Location> Locations => ImmutableArray<Location>.Empty; 74public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences => ImmutableArray<SyntaxReference>.Empty; 93internal override ImmutableArray<int> InterpolatedStringHandlerArgumentIndexes => ImmutableArray<int>.Empty;
Symbols\FunctionPointers\FunctionPointerTypeSymbol.cs (28)
35ImmutableArray<CustomModifier> refCustomModifiers, 37ImmutableArray<TypeWithAnnotations> parameterTypes, 38ImmutableArray<ImmutableArray<CustomModifier>> parameterRefCustomModifiers, 39ImmutableArray<RefKind> parameterRefKinds, 48ImmutableArray<CustomModifier> callingConventionModifiers, 51ImmutableArray<TypeWithAnnotations> parameterTypes, 52ImmutableArray<RefKind> parameterRefKinds, 56public static FunctionPointerTypeSymbol CreateFromMetadata(ModuleSymbol containingModule, Cci.CallingConvention callingConvention, ImmutableArray<ParamInfo<TypeSymbol>> retAndParamTypes) 62ImmutableArray<TypeWithAnnotations> substitutedParameterTypes, 63ImmutableArray<CustomModifier> refCustomModifiers, 64ImmutableArray<ImmutableArray<CustomModifier>> paramRefCustomModifiers) 81public override ImmutableArray<Location> Locations => ImmutableArray<Location>.Empty; 82public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences => ImmutableArray<SyntaxReference>.Empty; 93public override ImmutableArray<Symbol> GetMembers() => ImmutableArray<Symbol>.Empty; 94public override ImmutableArray<Symbol> GetMembers(string name) => ImmutableArray<Symbol>.Empty; 95public override ImmutableArray<NamedTypeSymbol> GetTypeMembers() => ImmutableArray<NamedTypeSymbol>.Empty; 96public override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name) => ImmutableArray<NamedTypeSymbol>.Empty; 98internal override ImmutableArray<NamedTypeSymbol> InterfacesNoUseSiteDiagnostics(ConsList<TypeSymbol>? basesBeingResolved = null) => ImmutableArray<NamedTypeSymbol>.Empty; 136internal 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)
112public override ImmutableArray<Location> Locations
Symbols\MemberSignatureComparer.cs (14)
502var explicitInterfaceImplementations1 = member1.GetExplicitInterfaceImplementations(); 503var explicitInterfaceImplementations2 = member2.GetExplicitInterfaceImplementations(); 555ImmutableArray<CustomModifier> refCustomModifiers1; 560ImmutableArray<CustomModifier> refCustomModifiers2; 604var typeParameters = member.GetMemberTypeParameters(); 613public static bool HaveSameConstraints(ImmutableArray<TypeParameterSymbol> typeParameters1, TypeMap? typeMap1, ImmutableArray<TypeParameterSymbol> typeParameters2, TypeMap? typeMap2, TypeCompareKind typeComparison) 652var constraintTypes1 = typeParameter1.ConstraintTypesNoUseSiteDiagnostics; 653var constraintTypes2 = typeParameter2.ConstraintTypesNoUseSiteDiagnostics; 723private static void SubstituteConstraintTypes(ImmutableArray<TypeWithAnnotations> types, TypeMap? typeMap, HashSet<TypeSymbol> result) 829private static bool HaveSameCustomModifiers(ImmutableArray<CustomModifier> customModifiers1, TypeMap? typeMap1, ImmutableArray<CustomModifier> customModifiers2, TypeMap? typeMap2) 835private static ImmutableArray<CustomModifier> SubstituteModifiers(TypeMap? typeMap, ImmutableArray<CustomModifier> customModifiers)
Symbols\MemberSymbolExtensions.cs (18)
28var @params = member.GetParameters(); 35internal static ImmutableArray<ParameterSymbol> GetParameters(this Symbol member) 44return ImmutableArray<ParameterSymbol>.Empty; 53internal static ImmutableArray<TypeWithAnnotations> GetParameterTypes(this Symbol member) 62return ImmutableArray<TypeWithAnnotations>.Empty; 131internal static ImmutableArray<TypeParameterSymbol> GetTypeParametersIncludingExtension<TMember>(this TMember member) where TMember : Symbol 151internal static Dictionary<TypeParameterSymbol, int>? MakeAdjustedTypeParameterOrdinalsIfNeeded<TMember>(this TMember member, ImmutableArray<TypeParameterSymbol> originalTypeParameters) 181internal static ImmutableArray<ParameterSymbol> GetParametersIncludingExtensionParameter(this Symbol symbol, bool skipExtensionIfStatic) 205internal static TMember ConstructIncludingExtension<TMember>(this TMember member, ImmutableArray<TypeWithAnnotations> typeArguments) where TMember : Symbol 248internal static Symbol? GetReducedAndFilteredSymbol(this Symbol member, ImmutableArray<TypeWithAnnotations> typeArguments, TypeSymbol receiverType, CSharpCompilation compilation, bool checkFullyInferred) 323internal static ImmutableArray<RefKind> GetParameterRefKinds(this Symbol member) 332return default(ImmutableArray<RefKind>); 568internal static ImmutableArray<TypeParameterSymbol> GetMemberTypeParameters(this Symbol symbol) 580return ImmutableArray<TypeParameterSymbol>.Empty; 586internal static ImmutableArray<TypeSymbol> GetMemberTypeArgumentsNoUseSiteDiagnostics(this Symbol symbol) 598return ImmutableArray<TypeSymbol>.Empty; 873internal static ImmutableArray<Symbol> GetExplicitInterfaceImplementations(this Symbol member) 884return ImmutableArray<Symbol>.Empty;
Symbols\MergedNamespaceSymbol.cs (13)
35private readonly ImmutableArray<NamespaceSymbol> _namespacesToMerge; 49private ImmutableArray<Symbol> _allMembers; 66ImmutableArray<NamespaceSymbol> namespacesToMerge, 89private MergedNamespaceSymbol(NamespaceExtent extent, NamespaceSymbol containingNamespace, ImmutableArray<NamespaceSymbol> namespacesToMerge, string nameOpt) 133private ImmutableArray<Symbol> SlowGetChildrenOfName(ReadOnlyMemory<char> name) 206public override ImmutableArray<NamespaceSymbol> ConstituentNamespaces 214public override ImmutableArray<Symbol> GetMembers() 227public override ImmutableArray<Symbol> GetMembers(ReadOnlyMemory<char> name) 232internal sealed override ImmutableArray<NamedTypeSymbol> GetTypeMembersUnordered() 237public sealed override ImmutableArray<NamedTypeSymbol> GetTypeMembers() 242public override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name) 275public override ImmutableArray<Location> Locations 285public 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 (4)
76var typeParameters = _methodContextOpt.TypeParameters; 199var assemblies = this.moduleSymbol.GetReferencedAssemblies(); 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) 181var 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 (14)
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() 149ImmutableArray<CSharpAttributeData> loadAndFilterAttributes() 227internal override ImmutableArray<AssemblySymbol> GetNoPiaResolutionAssemblies() 232internal override void SetNoPiaResolutionAssemblies(ImmutableArray<AssemblySymbol> assemblies) 237internal override void SetLinkedReferencedAssemblies(ImmutableArray<AssemblySymbol> assemblies) 242internal override ImmutableArray<AssemblySymbol> GetLinkedReferencedAssemblies() 247internal override ImmutableArray<byte> PublicKey 266internal override IEnumerable<ImmutableArray<byte>> GetInternalsVisibleToPublicKeys(string simpleName)
Symbols\Metadata\PE\PEEventSymbol.cs (9)
34private ImmutableArray<CSharpAttributeData> _lazyCustomAttributes; 347public override ImmutableArray<Location> Locations 355public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 359return ImmutableArray<SyntaxReference>.Empty; 363public override ImmutableArray<CSharpAttributeData> GetAttributes() 374ImmutableArray<CSharpAttributeData> attributes = loadAndFilterAttributes(containingPEModuleSymbol, out var hasRequiresUnsafeAttribute); 387ImmutableArray<CSharpAttributeData> loadAndFilterAttributes(PEModuleSymbol containingModule, out bool hasRequiresUnsafeAttribute) 421public override ImmutableArray<EventSymbol> ExplicitInterfaceImplementations 428return ImmutableArray<EventSymbol>.Empty;
Symbols\Metadata\PE\PEFieldSymbol.cs (12)
142private ImmutableArray<CSharpAttributeData> _lazyCustomAttributes; 154private ImmutableArray<CustomModifier> _lazyRefCustomModifiers; 277internal override ImmutableArray<byte> MarshallingDescriptor 283return default(ImmutableArray<byte>); 334ImmutableArray<CustomModifier> customModifiersArray = CSharpCustomModifier.Convert(fieldInfo.CustomModifiers); 408public override ImmutableArray<CustomModifier> RefCustomModifiers 536public override ImmutableArray<Location> Locations 544public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 548return ImmutableArray<SyntaxReference>.Empty; 602public override ImmutableArray<CSharpAttributeData> GetAttributes() 606var attributes = loadAndFilterAttributes(out var hasRequiredMemberAttribute, out var hasRequiresUnsafeAttribute); 613ImmutableArray<CSharpAttributeData> loadAndFilterAttributes(out bool hasRequiredMemberAttribute, out bool hasRequiresUnsafeAttribute)
Symbols\Metadata\PE\PEMethodSymbol.cs (64)
35public readonly ImmutableArray<ParameterSymbol> Parameters; 38public SignatureData(SignatureHeader header, ImmutableArray<ParameterSymbol> parameters, PEParameterSymbol returnParam) 307/// <see cref="ImmutableArray{T}.Empty"/>. In this case, again, no race has occurred, and the consuming code can simply trust the empty value.</item> 324public ImmutableArray<CSharpAttributeData> _lazyCustomAttributes; 325public ImmutableArray<string> _lazyConditionalAttributeSymbols; 329public ImmutableArray<string> _lazyNotNullMembers; 330public ImmutableArray<string> _lazyNotNullMembersWhenTrue; 331public ImmutableArray<string> _lazyNotNullMembersWhenFalse; 367retVal._lazyCustomAttributes = ImmutableArray<CSharpAttributeData>.Empty; 372retVal._lazyConditionalAttributeSymbols = ImmutableArray<string>.Empty; 382retVal._lazyNotNullMembers = ImmutableArray<string>.Empty; 383retVal._lazyNotNullMembersWhenTrue = ImmutableArray<string>.Empty; 384retVal._lazyNotNullMembersWhenFalse = ImmutableArray<string>.Empty; 403private ImmutableArray<TypeParameterSymbol> _lazyTypeParameters; 405private ImmutableArray<MethodSymbol> _lazyExplicitMethodImplementations; 499internal override ImmutableArray<byte> ReturnValueMarshallingDescriptor => ReturnTypeParameter.MarshallingDescriptor; 632var unused = this.ExplicitInterfaceImplementations; 645var unused = this.ExplicitInterfaceImplementations; 680public override ImmutableArray<ParameterSymbol> Parameters => Signature.Parameters; 716internal override ImmutableArray<string> NotNullMembers 728return ImmutableArray<string>.Empty; 732var result = uncommonFields._lazyNotNullMembers; 733return result.IsDefault ? ImmutableArray<string>.Empty : result; 741var memberNotNull = module.GetMemberNotNullAttributeValues(_handle); 765internal override ImmutableArray<string> NotNullWhenTrueMembers 777return ImmutableArray<string>.Empty; 781var result = uncommonFields._lazyNotNullMembersWhenTrue; 782return result.IsDefault ? ImmutableArray<string>.Empty : result; 787internal override ImmutableArray<string> NotNullWhenFalseMembers 799return ImmutableArray<string>.Empty; 803var result = uncommonFields._lazyNotNullMembersWhenFalse; 804return result.IsDefault ? ImmutableArray<string>.Empty : result; 809public override ImmutableArray<CustomModifier> RefCustomModifiers => Signature.ReturnParam.RefCustomModifiers; 874ImmutableArray<TypeParameterSymbol>.Empty); 878ImmutableArray<ParameterSymbol> @params; 900@params = ImmutableArray<ParameterSymbol>.Empty; 937public override ImmutableArray<TypeParameterSymbol> TypeParameters 942var typeParams = EnsureTypeParametersAreLoaded(ref diagnosticInfo); 952private ImmutableArray<TypeParameterSymbol> EnsureTypeParametersAreLoaded(ref DiagnosticInfo diagnosticInfo) 954var typeParams = _lazyTypeParameters; 963private ImmutableArray<TypeParameterSymbol> LoadTypeParameters(ref DiagnosticInfo diagnosticInfo) 972return ImmutableArray<TypeParameterSymbol>.Empty; 988return ImmutableArray<TypeParameterSymbol>.Empty; 992public override ImmutableArray<TypeWithAnnotations> TypeArgumentsWithAnnotations => IsGenericMethod ? GetTypeParametersAsTypeArguments() : ImmutableArray<TypeWithAnnotations>.Empty; 1018public override ImmutableArray<Location> Locations => _containingType.ContainingPEModule.MetadataLocation.Cast<MetadataLocation, Location>(); 1020public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences => ImmutableArray<SyntaxReference>.Empty; 1022public override ImmutableArray<CSharpAttributeData> GetAttributes() 1026var attributeData = loadAndFilterAttributes(out var isExtensionMethod, out var isReadOnly, out var hasRequiresUnsafeAttribute); 1046return ImmutableArray<CSharpAttributeData>.Empty; 1050var attributeData = uncommonFields._lazyCustomAttributes; 1052? InterlockedOperations.Initialize(ref uncommonFields._lazyCustomAttributes, ImmutableArray<CSharpAttributeData>.Empty) 1056ImmutableArray<CSharpAttributeData> loadAndFilterAttributes(out bool isExtensionMethod, out bool isReadOnly, out bool hasRequiresUnsafeAttribute) 1113public override ImmutableArray<CSharpAttributeData> GetReturnTypeAttributes() => Signature.ReturnParam.GetAttributes(); 1152var parameters = this.Parameters; 1372public override ImmutableArray<MethodSymbol> ExplicitInterfaceImplementations 1376var explicitInterfaceImplementations = _lazyExplicitMethodImplementations; 1388var explicitlyOverriddenMethods = new MetadataDecoder(moduleSymbol, _containingType).GetExplicitlyOverriddenMethods(_containingType.Handle, _handle, this.ContainingType); 1648internal override ImmutableArray<string> GetAppliedConditionalSymbols() 1652var result = _containingType.ContainingPEModule.Module.GetConditionalAttributeValues(_handle); 1666return ImmutableArray<string>.Empty; 1670var result = uncommonFields._lazyConditionalAttributeSymbols; 1672? InterlockedOperations.Initialize(ref uncommonFields._lazyConditionalAttributeSymbols, ImmutableArray<string>.Empty)
Symbols\Metadata\PE\PEModuleSymbol.cs (16)
79internal readonly ImmutableArray<MetadataLocation> MetadataLocation; 86private ImmutableArray<CSharpAttributeData> _lazyCustomAttributes; 91private ImmutableArray<CSharpAttributeData> _lazyAssemblyAttributes; 244public override ImmutableArray<Location> Locations 252public override ImmutableArray<CSharpAttributeData> GetAttributes() 261internal ImmutableArray<CSharpAttributeData> GetAssemblyAttributes() 300(moduleAssemblyAttributesBuilder != null) ? moduleAssemblyAttributesBuilder.ToImmutableAndFree() : ImmutableArray<CSharpAttributeData>.Empty, 301default(ImmutableArray<CSharpAttributeData>)); 306internal void LoadCustomAttributes(EntityHandle token, ref ImmutableArray<CSharpAttributeData> customAttributes) 308var loaded = GetCustomAttributesForToken(token); 329internal ImmutableArray<CSharpAttributeData> GetCustomAttributesForToken(EntityHandle token) 364Dictionary<ReadOnlyMemory<char>, ImmutableArray<PENamedTypeSymbol>> typesDict) 368foreach (var types in typesDict.Values) 418internal override ImmutableArray<byte> GetHash(AssemblyHashAlgorithm algorithmId) 556ImmutableArray<CSharpAttributeData> assemblyAttributes = GetAssemblyAttributes(); 569ImmutableArray<CSharpAttributeData> assemblyAttributes = GetAssemblyAttributes();
Symbols\Metadata\PE\PENamedTypeSymbol.cs (78)
33private static readonly Dictionary<ReadOnlyMemory<char>, ImmutableArray<PENamedTypeSymbol>> s_emptyNestedTypes = 34new Dictionary<ReadOnlyMemory<char>, ImmutableArray<PENamedTypeSymbol>>(EmptyReadOnlyMemoryOfCharComparer.Instance); 55private ImmutableArray<Symbol> _lazyMembersInDeclarationOrder; 61private Dictionary<string, ImmutableArray<Symbol>> _lazyMembersByName; 67private Dictionary<ReadOnlyMemory<char>, ImmutableArray<PENamedTypeSymbol>> _lazyNestedTypes; 77private ImmutableArray<NamedTypeSymbol> _lazyInterfaces = default(ImmutableArray<NamedTypeSymbol>); 79private ImmutableArray<NamedTypeSymbol> _lazyDeclaredInterfaces = default(ImmutableArray<NamedTypeSymbol>); 135internal ImmutableArray<PEFieldSymbol> lazyInstanceEnumFields; 139internal ImmutableArray<CSharpAttributeData> lazyCustomAttributes; 140internal ImmutableArray<string> lazyConditionalAttributeSymbols; 156internal ImmutableArray<NamedTypeSymbol> lazyCandidateClosedSubtypeDefinitions = default; 158internal ImmutableArray<byte> lazyFilePathChecksum = default; 524ImmutableArray<TypeParameterSymbol> combinedTypeParameters = @this.TypeParameters.Concat(method.TypeParameters); 735internal override ImmutableArray<NamedTypeSymbol> InterfacesNoUseSiteDiagnostics(ConsList<TypeSymbol> basesBeingResolved = null) 739ImmutableInterlocked.InterlockedCompareExchange(ref _lazyInterfaces, MakeAcyclicInterfaces(), default(ImmutableArray<NamedTypeSymbol>)); 745internal override ImmutableArray<NamedTypeSymbol> GetInterfacesToEmit() 782internal override ImmutableArray<NamedTypeSymbol> GetDeclaredInterfaces(ConsList<TypeSymbol> basesBeingResolved) 786ImmutableInterlocked.InterlockedCompareExchange(ref _lazyDeclaredInterfaces, MakeDeclaredInterfaces(), default(ImmutableArray<NamedTypeSymbol>)); 814private ImmutableArray<NamedTypeSymbol> MakeDeclaredInterfaces() 842return ImmutableArray<NamedTypeSymbol>.Empty; 951public override ImmutableArray<CSharpAttributeData> GetAttributes() 956return ImmutableArray<CSharpAttributeData>.Empty; 961ImmutableArray<CSharpAttributeData> loadedCustomAttributes = loadAndFilterAttributes(out var hasRequiredMembers, out var isClosed); 980ImmutableArray<CSharpAttributeData> loadAndFilterAttributes(out bool hasRequiredMembers, out bool isClosed) 1221internal sealed override ImmutableArray<NamedTypeSymbol> CandidateClosedSubtypeDefinitions 1236ImmutableArray<NamedTypeSymbol> findClosedSubtypes() 1348public override ImmutableArray<Symbol> GetMembers() 1402ImmutableArray<Symbol> staticFields = GetMembers(); 1512ImmutableArray<Symbol> members = GetMembers(); 1615internal override ImmutableArray<Symbol> GetEarlyAttributeDecodingMembers() 1620internal override ImmutableArray<Symbol> GetEarlyAttributeDecodingMembers(string name) 1843foreach (var typeArray in _lazyNestedTypes.Values) 1872var peMembers = members.ToImmutableAndFree(); 1879var membersInDeclarationOrder = members.ToImmutable(); 1908Dictionary<string, ImmutableArray<Symbol>> membersDict = GroupByName(members); 1941internal override ImmutableArray<Symbol> GetSimpleNonTypeMembers(string name) 1945ImmutableArray<Symbol> m; 1948m = ImmutableArray<Symbol>.Empty; 1954public override ImmutableArray<Symbol> GetMembers(string name) 1958ImmutableArray<Symbol> m; 1961m = ImmutableArray<Symbol>.Empty; 1965ImmutableArray<PENamedTypeSymbol> t; 1983var candidates = this.GetMembers(FixedFieldImplementationType.FixedElementFieldName); 1993internal override ImmutableArray<NamedTypeSymbol> GetTypeMembersUnordered() 1998public override ImmutableArray<NamedTypeSymbol> GetTypeMembers() 2004private ImmutableArray<NamedTypeSymbol> GetMemberTypesPrivate() 2010foreach (var typeArray in _lazyNestedTypes.Values) 2046public override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name) 2050ImmutableArray<PENamedTypeSymbol> t; 2057return ImmutableArray<NamedTypeSymbol>.Empty; 2060public override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name, int arity) 2065public override ImmutableArray<Location> Locations 2073public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 2077return ImmutableArray<SyntaxReference>.Empty; 2111internal override ImmutableArray<TypeWithAnnotations> TypeArgumentsWithAnnotationsNoUseSiteDiagnostics 2115return ImmutableArray<TypeWithAnnotations>.Empty; 2119public override ImmutableArray<TypeParameterSymbol> TypeParameters 2123return ImmutableArray<TypeParameterSymbol>.Empty; 2364private ImmutableArray<NamedTypeSymbol> MakeAcyclicInterfaces() 2366var declaredInterfaces = GetDeclaredInterfaces(null); 2393ImmutableArray<TypeDefinitionHandle> nestedTypeDefs; 2432ImmutableArray<TypeDefinitionHandle> markerTypeDefs; 2694private static Dictionary<string, ImmutableArray<Symbol>> GroupByName(ArrayBuilder<Symbol> symbols) 2699private static Dictionary<ReadOnlyMemory<char>, ImmutableArray<PENamedTypeSymbol>> GroupByName(ArrayBuilder<PENamedTypeSymbol> symbols) 3000internal override ImmutableArray<string> GetAppliedConditionalSymbols() 3005return ImmutableArray<string>.Empty; 3010ImmutableArray<string> conditionalSymbols = this.ContainingPEModule.Module.GetConditionalAttributeValues(_handle); 3012ImmutableInterlocked.InterlockedCompareExchange(ref uncommon.lazyConditionalAttributeSymbols, conditionalSymbols, default(ImmutableArray<string>)); 3069private static int GetIndexOfFirstMember(ImmutableArray<Symbol> members, SymbolKind kind) 3086private static IEnumerable<TSymbol> GetMembers<TSymbol>(ImmutableArray<Symbol> members, SymbolKind kind, int offset = -1) 3245private ImmutableArray<TypeParameterSymbol> _lazyTypeParameters; 3269_lazyTypeParameters = ImmutableArray<TypeParameterSymbol>.Empty; 3303internal override ImmutableArray<TypeWithAnnotations> TypeArgumentsWithAnnotationsNoUseSiteDiagnostics 3312public override ImmutableArray<TypeParameterSymbol> TypeParameters 3383var containingTypeParameters = container.GetAllTypeParameters(); 3397var nestedTypeParameters = nestedType.TypeParameters;
Symbols\Metadata\PE\PENamespaceSymbol.cs (19)
35protected Dictionary<ReadOnlyMemory<char>, ImmutableArray<PENamedTypeSymbol>>? lazyTypes; 47private ImmutableArray<PENamedTypeSymbol> _lazyFlattenedTypes; 52private ImmutableArray<Symbol> _lazyFlattenedNamespacesAndTypes; 66public sealed override ImmutableArray<Symbol> GetMembers() 76ImmutableArray<Symbol> calculateMembers() 78var memberTypes = GetMemberTypesPrivate(); 95private ImmutableArray<NamedTypeSymbol> GetMemberTypesPrivate() 101var flattened = lazyTypes.Flatten(); 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 (32)
160private ImmutableArray<CSharpAttributeData> _lazyCustomAttributes; 174private static readonly ImmutableArray<int> s_defaultStringHandlerAttributeIndexes = ImmutableArray.Create(int.MinValue); 175private ImmutableArray<int> _lazyInterpolatedStringHandlerAttributeIndexes = s_defaultStringHandlerAttributeIndexes; 186private ImmutableArray<CSharpAttributeData> _lazyHiddenAttributes; 271_lazyCustomAttributes = ImmutableArray<CSharpAttributeData>.Empty; 272_lazyHiddenAttributes = ImmutableArray<CSharpAttributeData>.Empty; 400ImmutableArray<ModifierInfo<TypeSymbol>> refCustomModifiers, 404ImmutableArray<ModifierInfo<TypeSymbol>> customModifiers, 439private readonly ImmutableArray<CustomModifier> _refCustomModifiers; 446ImmutableArray<ModifierInfo<TypeSymbol>> refCustomModifiers, 461public override ImmutableArray<CustomModifier> RefCustomModifiers 840internal override ImmutableArray<int> InterpolatedStringHandlerArgumentIndexes 845ImmutableArray<int> indexes = _lazyInterpolatedStringHandlerAttributeIndexes; 856ImmutableArray<int> indexes = _lazyInterpolatedStringHandlerAttributeIndexes; 864ImmutableArray<int> indexes = _lazyInterpolatedStringHandlerAttributeIndexes; 869var initialized = ImmutableInterlocked.InterlockedCompareExchange(ref _lazyInterpolatedStringHandlerAttributeIndexes, value: indexes, comparand: s_defaultStringHandlerAttributeIndexes); 874private ImmutableArray<int> DecodeInterpolatedStringHandlerArgumentAttribute() 880return ImmutableArray<int>.Empty; 896return ImmutableArray<int>.Empty; 900var parameters = ContainingSymbol.GetParameters(); 961public override ImmutableArray<CustomModifier> RefCustomModifiers 965return ImmutableArray<CustomModifier>.Empty; 998internal override ImmutableArray<byte> MarshallingDescriptor 1004return default(ImmutableArray<byte>); 1067public override ImmutableArray<Location> Locations 1075public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 1079return ImmutableArray<SyntaxReference>.Empty; 1091public override ImmutableArray<CSharpAttributeData> GetAttributes() 1095var attributes = loadAndFilterAttributes(out var hiddenAttributes, out var isParamArray, out var isParamCollection); 1124ImmutableArray<CSharpAttributeData> loadAndFilterAttributes(out ImmutableArray<CSharpAttributeData> hiddenAttributes, out bool isParamArray, out bool isParamCollection)
Symbols\Metadata\PE\PEPropertySymbol.cs (23)
34private readonly ImmutableArray<ParameterSymbol> _parameters; 188/// <see cref="ImmutableArray{T}.Empty"/>. In this case, again, no race has occurred, and the consuming code can simply trust the empty value.</item> 202public ImmutableArray<CSharpAttributeData> _lazyCustomAttributes; 298var typeCustomModifiers = CSharpCustomModifier.Convert(returnInfo.CustomModifiers); 390retVal._lazyCustomAttributes = ImmutableArray<CSharpAttributeData>.Empty; 699public override ImmutableArray<ParameterSymbol> Parameters 749public override ImmutableArray<CustomModifier> RefCustomModifiers 751get { return ImmutableArray<CustomModifier>.Empty; } 773public override ImmutableArray<Location> Locations 781public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 785return ImmutableArray<SyntaxReference>.Empty; 789public override ImmutableArray<CSharpAttributeData> GetAttributes() 793var attributes = loadAndFilterAttributes(out var hasRequiredMemberAttribute, out var hasRequiresUnsafeAttribute); 807return ImmutableArray<CSharpAttributeData>.Empty; 811var result = uncommonFields._lazyCustomAttributes; 814result = ImmutableArray<CSharpAttributeData>.Empty; 821ImmutableArray<CSharpAttributeData> loadAndFilterAttributes(out bool hasRequiredMemberAttribute, out bool hasRequiresUnsafeAttribute) 879public override ImmutableArray<PropertySymbol> ExplicitInterfaceImplementations 886return ImmutableArray<PropertySymbol>.Empty; 973private static ImmutableArray<ParameterSymbol> GetParameters( 986return ImmutableArray<ParameterSymbol>.Empty; 1165private readonly ImmutableArray<CustomModifier> _refCustomModifiers; 1183public 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() 649ImmutableArray<CSharpAttributeData> loadAndFilterAttributes() 676var 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\MetadataOrSourceOrRetargetingAssemblySymbol.cs (2)
42IEnumerable<ImmutableArray<byte>> publicKeys = potentialGiverOfAccess.GetInternalsVisibleToPublicKeys(this.Name); 53foreach (var key in publicKeys)
Symbols\MethodSymbol.cs (23)
113internal virtual ImmutableArray<string> NotNullMembers => ImmutableArray<string>.Empty; 115internal virtual ImmutableArray<string> NotNullWhenTrueMembers => ImmutableArray<string>.Empty; 117internal virtual ImmutableArray<string> NotNullWhenFalseMembers => ImmutableArray<string>.Empty; 272public abstract ImmutableArray<TypeWithAnnotations> TypeArgumentsWithAnnotations { get; } 278public abstract ImmutableArray<TypeParameterSymbol> TypeParameters { get; } 280internal ImmutableArray<TypeWithAnnotations> GetTypeParametersAsTypeArguments() 335public abstract ImmutableArray<ParameterSymbol> Parameters { get; } 391public abstract ImmutableArray<MethodSymbol> ExplicitInterfaceImplementations { get; } 396public abstract ImmutableArray<CustomModifier> RefCustomModifiers { get; } 402public virtual ImmutableArray<CSharpAttributeData> GetReturnTypeAttributes() 409return ImmutableArray<CSharpAttributeData>.Empty; 541ImmutableArray<string> conditionalSymbols = this.GetAppliedConditionalSymbols(); 568internal abstract ImmutableArray<string> GetAppliedConditionalSymbols(); 869public MethodSymbol Construct(ImmutableArray<TypeSymbol> typeArguments) 874internal MethodSymbol Construct(ImmutableArray<TypeWithAnnotations> typeArguments) 915internal ImmutableArray<TypeWithAnnotations> ParameterTypesWithAnnotations 928internal ImmutableArray<RefKind> ParameterRefKinds 942internal virtual ImmutableArray<NamedTypeSymbol> UnmanagedCallingConventionTypes => ImmutableArray<NamedTypeSymbol>.Empty; 1249ImmutableArray<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)
30private ImmutableArray<ModuleSymbol> _lazyModules; 70internal override ImmutableArray<byte> PublicKey 75public override ImmutableArray<ModuleSymbol> Modules 117public override ImmutableArray<Location> Locations 121return ImmutableArray<Location>.Empty; 125internal override void SetLinkedReferencedAssemblies(ImmutableArray<AssemblySymbol> assemblies) 130internal override ImmutableArray<AssemblySymbol> GetLinkedReferencedAssemblies() 132return ImmutableArray<AssemblySymbol>.Empty; 135internal override void SetNoPiaResolutionAssemblies(ImmutableArray<AssemblySymbol> assemblies) 140internal override ImmutableArray<AssemblySymbol> GetNoPiaResolutionAssemblies() 142return ImmutableArray<AssemblySymbol>.Empty; 193internal override IEnumerable<ImmutableArray<byte>> GetInternalsVisibleToPublicKeys(string simpleName) 195return SpecializedCollections.EmptyEnumerable<ImmutableArray<byte>>();
Symbols\MissingMetadataTypeSymbol.cs (1)
246var namespaces = MetadataHelpers.SplitQualifiedName(_namespaceName);
Symbols\MissingModuleSymbol.cs (6)
123public override ImmutableArray<Location> Locations 127return ImmutableArray<Location>.Empty; 154internal override ImmutableArray<AssemblyIdentity> GetReferencedAssemblies() 156return ImmutableArray<AssemblyIdentity>.Empty; 159internal override ImmutableArray<AssemblySymbol> GetReferencedAssemblySymbols() 161return 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; 203public ImmutableArray<AssemblyIdentity> ReferencedAssemblies 219internal abstract ImmutableArray<AssemblyIdentity> GetReferencedAssemblies(); // TODO: Remove this method and make ReferencedAssemblies property abstract instead. 226public ImmutableArray<AssemblySymbol> ReferencedAssemblySymbols 243internal abstract ImmutableArray<AssemblySymbol> GetReferencedAssemblySymbols(); // TODO: Remove this method and make ReferencedAssemblySymbols property abstract instead. 247var referencedAssemblies = GetReferencedAssemblySymbols(); 334internal virtual ImmutableArray<byte> GetHash(AssemblyHashAlgorithm algorithmId)
Symbols\NamedTypeSymbol.cs (87)
43public ImmutableArray<MethodSymbol> _lazyFactoryMethods; 44public ImmutableArray<TypeSymbol> _lazyCaseTypes; 48public ImmutableArray<MethodSymbol> _lazyTryGetValueMethods; 49public ImmutableArray<TypeUnionValueSet.CaseInfo> _lazyTypeUnionValueSetCases; 55public ImmutableArray<NamedTypeSymbol> _lazyMemberProviderInterfaceAllInterfaces; 63/// using <see cref="RoslynImmutableInterlocked.VolatileRead{T}(ref readonly ImmutableArray{T})"/> API 67public ImmutableArray<NamedTypeSymbol> _lazySubtypes; 68public ImmutableArray<TypeUnionValueSet.CaseInfo> _lazyTypeUnionValueSetCases; 107public abstract ImmutableArray<TypeParameterSymbol> TypeParameters { get; } 114internal abstract ImmutableArray<TypeWithAnnotations> TypeArgumentsWithAnnotationsNoUseSiteDiagnostics { get; } 116internal ImmutableArray<TypeWithAnnotations> TypeArgumentsWithDefinitionUseSiteDiagnostics(ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 118var result = TypeArgumentsWithAnnotationsNoUseSiteDiagnostics; 228var methods = GetMembers(WellKnownMemberNames.DelegateInvokeName); 255ImmutableArray<Symbol> candidates = GetSimpleNonTypeMembers(name); 262internal static void AddOperators(ArrayBuilder<MethodSymbol> operators, ImmutableArray<Symbol> candidates) 287public ImmutableArray<MethodSymbol> InstanceConstructors 298public ImmutableArray<MethodSymbol> StaticConstructors 309public ImmutableArray<MethodSymbol> Constructors 317private ImmutableArray<MethodSymbol> GetConstructors(bool includeInstance, bool includeStatic) 321ImmutableArray<Symbol> instanceCandidates = includeInstance 323: ImmutableArray<Symbol>.Empty; 324ImmutableArray<Symbol> staticCandidates = includeStatic 326: ImmutableArray<Symbol>.Empty; 330return ImmutableArray<MethodSymbol>.Empty; 359public ImmutableArray<PropertySymbol> Indexers 363ImmutableArray<Symbol> candidates = GetSimpleNonTypeMembers(WellKnownMemberNames.Indexer); 367return ImmutableArray<PropertySymbol>.Empty; 398var members = nameOpt == null 492var candidates = name is null || alternativeName is not null 755internal bool TryGetClosedSubtypes(out ImmutableArray<NamedTypeSymbol> subtypes, CancellationToken cancellationToken = default) 765ImmutableArray<NamedTypeSymbol> lazySubtypes = RoslynImmutableInterlocked.VolatileRead(in lazyClosedClassData._lazySubtypes); 778(bool, ImmutableArray<NamedTypeSymbol>) calculateClosedSubtypes(CancellationToken cancellationToken) 780var candidateSubtypes = CandidateClosedSubtypeDefinitions; 796static bool tryGetSpeakableSubtypes(NamedTypeSymbol @this, ImmutableArray<NamedTypeSymbol> candidateSubtypes, ArrayBuilder<NamedTypeSymbol> resultBuilder, HashSet<TypeParameterSymbol> baseTypeTypeParameters, CancellationToken cancellationToken) 820internal ImmutableArray<TypeUnionValueSet.CaseInfo> ClosedClassTypeUnionValueSetCases() 823ImmutableArray<TypeUnionValueSet.CaseInfo> lazyTypeUnionValueSetCases = lazyClosedClassData._lazyTypeUnionValueSetCases; 841internal abstract ImmutableArray<NamedTypeSymbol> CandidateClosedSubtypeDefinitions { get; } 964public abstract override ImmutableArray<Symbol> GetMembers(); 971public abstract override ImmutableArray<Symbol> GetMembers(string name); 980internal virtual ImmutableArray<Symbol> GetSimpleNonTypeMembers(string name) 990public abstract override ImmutableArray<NamedTypeSymbol> GetTypeMembers(); 998public abstract override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name, int arity); 1058internal abstract ImmutableArray<Symbol> GetEarlyAttributeDecodingMembers(); 1068internal abstract ImmutableArray<Symbol> GetEarlyAttributeDecodingMembers(string name); 1083internal abstract ImmutableArray<NamedTypeSymbol> GetDeclaredInterfaces(ConsList<TypeSymbol> basesBeingResolved); 1190var typeArguments = this.TypeArgumentsWithAnnotationsNoUseSiteDiagnostics; 1191var otherTypeArguments = other.TypeArgumentsWithAnnotationsNoUseSiteDiagnostics; 1219var elementNames = TupleElementNames; 1220var otherElementNames = other.TupleElementNames; 1238internal override bool ApplyNullableTransforms(byte defaultTransformFlag, ImmutableArray<byte> transforms, ref int position, out TypeSymbol result) 1299internal NamedTypeSymbol WithTypeArguments(ImmutableArray<TypeWithAnnotations> allTypeArguments) 1360var typeParameters = definition.TypeParameters; 1363var typeArgumentsA = typeA.TypeArgumentsWithAnnotationsNoUseSiteDiagnostics; 1364var typeArgumentsB = typeB.TypeArgumentsWithAnnotationsNoUseSiteDiagnostics; 1429public NamedTypeSymbol Construct(ImmutableArray<TypeSymbol> typeArguments) 1481private NamedTypeSymbol ConstructWithoutModifiers(ImmutableArray<TypeSymbol> typeArguments, bool unbound) 1483ImmutableArray<TypeWithAnnotations> modifiedArguments; 1487modifiedArguments = default(ImmutableArray<TypeWithAnnotations>); 1497internal NamedTypeSymbol Construct(ImmutableArray<TypeWithAnnotations> typeArguments) 1502internal NamedTypeSymbol Construct(ImmutableArray<TypeWithAnnotations> typeArguments, bool unbound) 1539protected virtual NamedTypeSymbol ConstructCore(ImmutableArray<TypeWithAnnotations> typeArguments, bool unbound) 1594internal ImmutableArray<TypeWithAnnotations> GetAllTypeArguments(ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1631internal ImmutableArray<TypeWithAnnotations> GetTypeParametersAsTypeArguments() 1892internal abstract ImmutableArray<string> GetAppliedConditionalSymbols(); 1957internal ImmutableArray<TypeSymbol> UnionCaseTypesNoUseSiteDiagnostics 1966internal ImmutableArray<TypeSymbol> UnionCaseTypes(ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1974ImmutableArray<TypeSymbol> lazyCaseTypes = lazyUnionData._lazyCaseTypes; 1990ImmutableArray<TypeSymbol> definitionCaseTypes = this.OriginalDefinition.UnionCaseTypes(ref useSiteInfo); 2025internal ImmutableArray<TypeUnionValueSet.CaseInfo> UnionTypeUnionValueSetCases() 2028ImmutableArray<TypeUnionValueSet.CaseInfo> lazyTypeUnionValueSetCases = lazyUnionData._lazyTypeUnionValueSetCases; 2047internal ImmutableArray<MethodSymbol> UnionFactoryMethods(ref CompoundUseSiteInfo<AssemblySymbol> membersInterfaceForDefinitionInterfacesUseSiteInfo) 2052ImmutableArray<MethodSymbol> lazyFactoryMethods = lazyUnionData._lazyFactoryMethods; 2066ImmutableArray<MethodSymbol> definitionFactoryMethods = this.OriginalDefinition.UnionFactoryMethods(ref membersInterfaceForDefinitionInterfacesUseSiteInfo); 2141ImmutableArray<NamedTypeSymbol> memberProviderInterfaceAllInterfaces = GetMemberProviderInterfaceAllInterfacesForDefinition(); 2230private void AddUseSiteInfoForCachedUnionFactoryMethodsResult(ImmutableArray<NamedTypeSymbol> memberProviderInterfaceAllInterfaces, ref CompoundUseSiteInfo<AssemblySymbol> membersInterfaceForDefinitionInterfacesUseSiteInfo) 2288internal ImmutableArray<NamedTypeSymbol> GetMemberProviderInterfaceAllInterfacesForDefinition() 2296ImmutableArray<NamedTypeSymbol> lazyAllInterfaces = lazyUnionData._lazyMemberProviderInterfaceAllInterfaces; 2313static ImmutableArray<NamedTypeSymbol> makeAllInterfaces(NamedTypeSymbol memberProviderInterface) 2318var interfaces = memberProviderInterface.GetInterfacesToEmit(); 2332ImmutableArray<NamedTypeSymbol> baseInterfaces = @interface.OriginalDefinition.GetInterfacesToEmit(); 2547ImmutableArray<NamedTypeSymbol> memberProviderInterfaceAllInterfaces = GetMemberProviderInterfaceAllInterfacesForDefinition(); 2707ImmutableArray<MethodSymbol> tryGetValueMethods = this.UnionTryGetValueMethods(); 2746internal ImmutableArray<MethodSymbol> UnionTryGetValueMethods() 2749ImmutableArray<MethodSymbol> lazyTryGetValueMethods = lazyUnionData._lazyTryGetValueMethods; 2760ImmutableArray<MethodSymbol> definitionTryGetValueMethods = this.OriginalDefinition.UnionTryGetValueMethods(); 2970ImmutableArray<ISymbolInternal> INamedTypeSymbolInternal.GetMembers() 2973ImmutableArray<ISymbolInternal> INamedTypeSymbolInternal.GetMembers(string name)
Symbols\NamespaceOrTypeSymbol.cs (10)
111public abstract ImmutableArray<Symbol> GetMembers(); 119internal virtual ImmutableArray<Symbol> GetMembersUnordered() 132public abstract ImmutableArray<Symbol> GetMembers(string name); 140internal virtual ImmutableArray<NamedTypeSymbol> GetTypeMembersUnordered() 153public abstract ImmutableArray<NamedTypeSymbol> GetTypeMembers(); 161public ImmutableArray<NamedTypeSymbol> GetTypeMembers(string name) 170public ImmutableArray<NamedTypeSymbol> GetTypeMembers(string name, int arity) 174public abstract ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name); 177public virtual ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name, int arity) 270ImmutableArray<NamedTypeSymbol> namespaceOrTypeMembers;
Symbols\NamespaceSymbol.cs (9)
24private ImmutableArray<NamedTypeSymbol> _lazyTypesMightContainExtensions; 83public virtual ImmutableArray<NamespaceSymbol> ConstituentNamespaces 231var types = this.GetTypeMembers(TypeSymbol.ImplicitTypeName); 254internal NamespaceSymbol? LookupNestedNamespace(ImmutableArray<ReadOnlyMemory<char>> names) 285public abstract ImmutableArray<Symbol> GetMembers(ReadOnlyMemory<char> name); 287public sealed override ImmutableArray<Symbol> GetMembers(string name) 317private ImmutableArray<NamedTypeSymbol> TypesMightContainExtensions 321var typesWithExtensionMethods = this._lazyTypesMightContainExtensions; 351var typesWithExtensionMethods = this.TypesMightContainExtensions;
Symbols\NativeIntegerTypeSymbol.cs (43)
27private ImmutableArray<NamedTypeSymbol> _lazyInterfaces; 28private ImmutableArray<Symbol> _lazyMembers; 40public override ImmutableArray<TypeParameterSymbol> TypeParameters => ImmutableArray<TypeParameterSymbol>.Empty; 46internal override ImmutableArray<TypeWithAnnotations> TypeArgumentsWithAnnotationsNoUseSiteDiagnostics => ImmutableArray<TypeWithAnnotations>.Empty; 60internal override ImmutableArray<NamedTypeSymbol> CandidateClosedSubtypeDefinitions => []; 75public override ImmutableArray<Symbol> GetMembers() 83ImmutableArray<Symbol> makeMembers(ImmutableArray<Symbol> underlyingMembers) 146public override ImmutableArray<Symbol> GetMembers(string name) => GetMembers().WhereAsArray((member, name) => member.Name == name, name); 148public override ImmutableArray<NamedTypeSymbol> GetTypeMembers() => ImmutableArray<NamedTypeSymbol>.Empty; 150public override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name) => ImmutableArray<NamedTypeSymbol>.Empty; 152public override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name, int arity) => ImmutableArray<NamedTypeSymbol>.Empty; 156internal override ImmutableArray<NamedTypeSymbol> GetDeclaredInterfaces(ConsList<TypeSymbol> basesBeingResolved) => GetInterfaces(basesBeingResolved); 158internal override ImmutableArray<Symbol> GetEarlyAttributeDecodingMembers() => throw ExceptionUtilities.Unreachable(); 160internal override ImmutableArray<Symbol> GetEarlyAttributeDecodingMembers(string name) => throw ExceptionUtilities.Unreachable(); 164internal override ImmutableArray<NamedTypeSymbol> GetInterfacesToEmit() => throw ExceptionUtilities.Unreachable(); 166internal override ImmutableArray<NamedTypeSymbol> InterfacesNoUseSiteDiagnostics(ConsList<TypeSymbol>? basesBeingResolved = null) => GetInterfaces(basesBeingResolved); 228private ImmutableArray<NamedTypeSymbol> GetInterfaces(ConsList<TypeSymbol>? basesBeingResolved) 232var interfaces = _underlyingType.InterfacesNoUseSiteDiagnostics(basesBeingResolved).SelectAsArray((type, map) => map.SubstituteNamedType(type), GetTypeMap()); 334internal override ImmutableArray<CustomModifier> SubstituteCustomModifiers(ImmutableArray<CustomModifier> customModifiers) 348private ImmutableArray<ParameterSymbol> _lazyParameters; 365public override ImmutableArray<TypeWithAnnotations> TypeArgumentsWithAnnotations => ImmutableArray<TypeWithAnnotations>.Empty; 367public override ImmutableArray<TypeParameterSymbol> TypeParameters => ImmutableArray<TypeParameterSymbol>.Empty; 373public override ImmutableArray<ParameterSymbol> Parameters 379var parameters = UnderlyingMethod.Parameters.SelectAsArray((p, m) => (ParameterSymbol)new NativeIntegerParameterSymbol(m._container, m, p), this); 400public override ImmutableArray<MethodSymbol> ExplicitInterfaceImplementations => ImmutableArray<MethodSymbol>.Empty; 402public override ImmutableArray<CustomModifier> RefCustomModifiers => UnderlyingMethod.RefCustomModifiers; 465public override ImmutableArray<CustomModifier> RefCustomModifiers => _underlyingParameter.RefCustomModifiers; 475internal override ImmutableArray<int> InterpolatedStringHandlerArgumentIndexes => _underlyingParameter.InterpolatedStringHandlerArgumentIndexes; 521public override ImmutableArray<CustomModifier> RefCustomModifiers => UnderlyingProperty.RefCustomModifiers; 523public override ImmutableArray<ParameterSymbol> Parameters => ImmutableArray<ParameterSymbol>.Empty; 529public 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)
70public abstract ImmutableArray<CustomModifier> RefCustomModifiers { get; } 431internal abstract ImmutableArray<int> InterpolatedStringHandlerArgumentIndexes { get; }
Symbols\PlaceholderTypeArgumentSymbol.cs (2)
20public static ImmutableArray<TypeWithAnnotations> CreateTypeArguments(ImmutableArray<TypeParameterSymbol> typeParameters)
Symbols\PointerTypeSymbol.cs (17)
88internal override ImmutableArray<NamedTypeSymbol> InterfacesNoUseSiteDiagnostics(ConsList<TypeSymbol>? basesBeingResolved) 91return ImmutableArray<NamedTypeSymbol>.Empty; 133public override ImmutableArray<Symbol> GetMembers() 135return ImmutableArray<Symbol>.Empty; 138public override ImmutableArray<Symbol> GetMembers(string name) 140return ImmutableArray<Symbol>.Empty; 143public override ImmutableArray<NamedTypeSymbol> GetTypeMembers() 145return ImmutableArray<NamedTypeSymbol>.Empty; 148public override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name) 150return ImmutableArray<NamedTypeSymbol>.Empty; 153public override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name, int arity) 155return ImmutableArray<NamedTypeSymbol>.Empty; 182public override ImmutableArray<Location> Locations 186return ImmutableArray<Location>.Empty; 190public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 194return ImmutableArray<SyntaxReference>.Empty; 254internal override bool ApplyNullableTransforms(byte defaultTransformFlag, ImmutableArray<byte> transforms, ref int position, out TypeSymbol result)
Symbols\PropertyOrEventSymbolExtensions.cs (1)
40ImmutableArray<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 321public 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 (3)
57ImmutableArray<INamedTypeSymbol> IAssemblySymbol.GetForwardedTypes() 86ImmutableArray<byte> publicKey = (assemblyWantingAccess is AssemblySymbol assemblyWantingAccessAssemblySymbol) 90foreach (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)
21private ImmutableArray<ITypeSymbol> _lazyTypeArguments; 22private ImmutableArray<IParameterSymbol> _lazyParameters; 101ImmutableArray<ITypeSymbol> IMethodSymbol.TypeArguments 112ImmutableArray<CodeAnalysis.NullableAnnotation> IMethodSymbol.TypeArgumentNullableAnnotations => 115ImmutableArray<ITypeParameterSymbol> IMethodSymbol.TypeParameters 123ImmutableArray<IParameterSymbol> IMethodSymbol.Parameters 224ImmutableArray<IMethodSymbol> IMethodSymbol.ExplicitInterfaceImplementations 264ImmutableArray<CustomModifier> IMethodSymbol.ReturnTypeCustomModifiers 272ImmutableArray<CustomModifier> IMethodSymbol.RefCustomModifiers 280ImmutableArray<AttributeData> IMethodSymbol.GetReturnTypeAttributes() 287ImmutableArray<INamedTypeSymbol> IMethodSymbol.UnmanagedCallingConventionTypes => _underlying.UnmanagedCallingConventionTypes.SelectAsArray(t => t.GetPublicSymbol()); 294IMethodSymbol 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)
20protected static ImmutableArray<TypeWithAnnotations> ConstructTypeArguments(ITypeSymbol[] typeArguments) 32protected static ImmutableArray<TypeWithAnnotations> ConstructTypeArguments(ImmutableArray<ITypeSymbol> typeArguments, ImmutableArray<CodeAnalysis.NullableAnnotation> typeArgumentNullableAnnotations) 105ImmutableArray<Location> ISymbol.Locations 113ImmutableArray<SyntaxReference> ISymbol.DeclaringSyntaxReferences 121ImmutableArray<AttributeData> ISymbol.GetAttributes() 170ImmutableArray<SymbolDisplayPart> ISymbol.ToDisplayParts(SymbolDisplayFormat format) 180ImmutableArray<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 (8)
16private ImmutableArray<INamedTypeSymbol> _allInterfaces = default; 103ImmutableArray<INamedTypeSymbol> ITypeSymbol.Interfaces 111ImmutableArray<INamedTypeSymbol> ITypeSymbol.AllInterfaces 180ImmutableArray<SymbolDisplayPart> ITypeSymbol.ToDisplayParts(CodeAnalysis.NullableFlowState topLevelNullability, SymbolDisplayFormat format) 190ImmutableArray<SymbolDisplayPart> ITypeSymbol.ToMinimalDisplayParts(SemanticModel semanticModel, CodeAnalysis.NullableFlowState topLevelNullability, int position, SymbolDisplayFormat format) 207ImmutableArray<ITypeSymbol> ITypeSymbol.UnionCaseTypes 213return ImmutableArray<ITypeSymbol>.Empty; 229var isComplete = namedType.TryGetClosedSubtypes(out var subtypes, cancellationToken);
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)
27private readonly ImmutableArray<TypeParameterSymbol> _typeParameters; 28private readonly ImmutableArray<TypeWithAnnotations> _typeArguments; 29private ImmutableArray<ParameterSymbol> _lazyParameters; 158var typeArgs = MethodTypeInferrer.InferTypeArgumentsFromFirstArgument( 175var typeParams = method.TypeParameters; 176var typeArgsForConstraintsCheck = typeArgs; 230ImmutableArray<TypeWithAnnotations> typeArgsForConstruct = typeArgs; 287public override ImmutableArray<TypeParameterSymbol> TypeParameters 292public override ImmutableArray<TypeWithAnnotations> TypeArgumentsWithAnnotations 352internal override ImmutableArray<string> GetAppliedConditionalSymbols() 362public override ImmutableArray<Location> Locations 367public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 460public override ImmutableArray<CSharpAttributeData> GetAttributes() 508public override ImmutableArray<CustomModifier> RefCustomModifiers 523public override ImmutableArray<ParameterSymbol> Parameters 546public override ImmutableArray<MethodSymbol> ExplicitInterfaceImplementations 548get { return ImmutableArray<MethodSymbol>.Empty; } 561private ImmutableArray<ParameterSymbol> MakeParameters() 563var reducedFromParameters = _reducedFrom.Parameters; 569return ImmutableArray<ParameterSymbol>.Empty; 650public override ImmutableArray<CustomModifier> RefCustomModifiers 682internal override ImmutableArray<int> InterpolatedStringHandlerArgumentIndexes => throw ExceptionUtilities.Unreachable();
Symbols\ReferenceManager.cs (41)
141protected override ImmutableArray<AssemblySymbol> GetNoPiaResolutionAssemblies(AssemblySymbol candidateAssembly) 148return ImmutableArray<AssemblySymbol>.Empty; 261var peReferences = assembly.AssemblyReferences.SelectAsArray(MapAssemblyIdentityToResolvedSymbol, referencedAssembliesByIdentity); 267var unifiedAssemblies = this.UnifiedAssemblies.WhereAsArray( 322private void InitializeAssemblyReuseData(AssemblySymbol assemblySymbol, ImmutableArray<AssemblySymbol> referencedAssemblies, ImmutableArray<UnifiedAssembly<AssemblySymbol>> unifiedAssemblies) 331var assemblyModules = assemblySymbol.Modules; 332var referencedModulesReferences = this.ReferencedModulesReferences; 351ImmutableArray<MetadataReference> boundReferenceDirectives; 352ImmutableArray<AssemblyData> referencedAssemblies; 353ImmutableArray<PEModule> modules; // To make sure the modules are not collected ahead of time. 354ImmutableArray<MetadataReference> explicitReferences; 356ImmutableArray<ResolvedReference> referenceMap = ResolveMetadataReferences( 367var explicitAssemblyData = referencedAssemblies.Insert(0, assemblyBeingBuiltData); 372ImmutableArray<MetadataReference> implicitlyResolvedReferences; 373ImmutableArray<ResolvedReference> implicitlyResolvedReferenceMap; 374ImmutableArray<AssemblyData> allAssemblyData; 400var references = explicitReferences.AddRange(implicitlyResolvedReferences); 404ImmutableArray<ImmutableArray<string>> aliasesOfReferencedAssemblies; 405Dictionary<MetadataReference, ImmutableArray<MetadataReference>>? mergedAssemblyReferencesMapOpt; 463ImmutableArray<ModuleReferences<AssemblySymbol>> moduleReferences; 539ImmutableArray<AssemblyData> assemblies, 566var noPiaResolutionAssemblies = sourceAssembly.Modules[0].GetReferencedAssemblySymbols(); 618private static void UpdateSymbolCacheNoLock(List<int> newSymbols, ImmutableArray<AssemblyData> assemblies, BoundInputAssembly[] bindingResult) 648ImmutableArray<ModuleSymbol> modules = retargetingAssemblySymbol.Modules; 654ImmutableArray<AssemblyIdentity> referencedAssemblies = 660ImmutableArray<AssemblySymbol> underlyingReferencedAssemblySymbols = 726ImmutableArray<ModuleSymbol> modules = portableExecutableAssemblySymbol.Modules; 761ImmutableArray<PEModule> modules, 765out ImmutableArray<ModuleReferences<AssemblySymbol>> moduleReferences) 767var moduleSymbols = sourceAssembly.Modules; 864private ImmutableArray<AssemblySymbol> _assemblies; 866private readonly ImmutableArray<AssemblyIdentity> _referencedAssemblies; 871ImmutableArray<AssemblyIdentity> referencedAssemblies, 892public override ImmutableArray<AssemblySymbol> AvailableSymbols 914public override ImmutableArray<AssemblyIdentity> AssemblyReferences 1093private static ImmutableArray<AssemblyIdentity> GetReferencedAssemblies(CSharpCompilation compilation) 1096var modules = compilation.Assembly.Modules; 1099var sourceReferencedAssemblies = modules[0].GetReferencedAssemblies(); 1100var 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) 225public override ImmutableArray<CSharpAttributeData> GetAttributes() 243internal override ImmutableArray<AssemblySymbol> GetNoPiaResolutionAssemblies() 248internal override void SetNoPiaResolutionAssemblies(ImmutableArray<AssemblySymbol> assemblies) 253internal override void SetLinkedReferencedAssemblies(ImmutableArray<AssemblySymbol> assemblies) 258internal 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; 147public override ImmutableArray<CustomModifier> RefCustomModifiers 155public override ImmutableArray<ParameterSymbol> Parameters 168private ImmutableArray<ParameterSymbol> RetargetParameters() 170var list = _underlyingMethod.Parameters; 175return ImmutableArray<ParameterSymbol>.Empty; 215public override ImmutableArray<CSharpAttributeData> GetAttributes() 226public override ImmutableArray<CSharpAttributeData> GetReturnTypeAttributes() 304public override ImmutableArray<MethodSymbol> ExplicitInterfaceImplementations 313default(ImmutableArray<MethodSymbol>)); 319private ImmutableArray<MethodSymbol> RetargetExplicitInterfaceImplementations() 321var 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 (35)
35private ImmutableArray<TypeParameterSymbol> _lazyTypeParameters; 38private ImmutableArray<NamedTypeSymbol> _lazyInterfaces = default(ImmutableArray<NamedTypeSymbol>); 41private ImmutableArray<NamedTypeSymbol> _lazyDeclaredInterfaces; 43private ImmutableArray<CSharpAttributeData> _lazyCustomAttributes; 48private ImmutableArray<(Cci.INestedTypeReference GroupingType, ImmutableArray<Cci.INestedTypeReference> MarkerTypes)> _lazyExtensionGroupingAndMarkerTypesForTypeForwarding; 72public override ImmutableArray<TypeParameterSymbol> TypeParameters 80_lazyTypeParameters = ImmutableArray<TypeParameterSymbol>.Empty; 85this.RetargetingTranslator.Retarget(_underlyingType.TypeParameters), default(ImmutableArray<TypeParameterSymbol>)); 93internal override ImmutableArray<TypeWithAnnotations> TypeArgumentsWithAnnotationsNoUseSiteDiagnostics 161internal override ImmutableArray<NamedTypeSymbol> CandidateClosedSubtypeDefinitions => this.RetargetingTranslator.Retarget(_underlyingType.CandidateClosedSubtypeDefinitions); 163public override ImmutableArray<Symbol> GetMembers() 168internal override ImmutableArray<Symbol> GetMembersUnordered() 173public override ImmutableArray<Symbol> GetMembers(string name) 227internal override ImmutableArray<Symbol> GetEarlyAttributeDecodingMembers() 232internal override ImmutableArray<Symbol> GetEarlyAttributeDecodingMembers(string name) 237internal override ImmutableArray<NamedTypeSymbol> GetTypeMembersUnordered() 242public override ImmutableArray<NamedTypeSymbol> GetTypeMembers() 247public override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name) 252public override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name, int arity) 265public override ImmutableArray<CSharpAttributeData> GetAttributes() 346internal override ImmutableArray<NamedTypeSymbol> InterfacesNoUseSiteDiagnostics(ConsList<TypeSymbol> basesBeingResolved) 350var declaredInterfaces = GetDeclaredInterfaces(basesBeingResolved); 357ImmutableArray<NamedTypeSymbol> result = declaredInterfaces 360ImmutableInterlocked.InterlockedCompareExchange(ref _lazyInterfaces, result, default(ImmutableArray<NamedTypeSymbol>)); 366internal override ImmutableArray<NamedTypeSymbol> GetInterfacesToEmit() 383internal override ImmutableArray<NamedTypeSymbol> GetDeclaredInterfaces(ConsList<TypeSymbol> basesBeingResolved) 387var underlyingBaseInterfaces = _underlyingType.GetDeclaredInterfaces(basesBeingResolved); 388var result = this.RetargetingTranslator.Retarget(underlyingBaseInterfaces); 389ImmutableInterlocked.InterlockedCompareExchange(ref _lazyDeclaredInterfaces, result, default(ImmutableArray<NamedTypeSymbol>)); 493internal ImmutableArray<(Cci.INestedTypeReference GroupingType, ImmutableArray<Cci.INestedTypeReference> MarkerTypes)> GetExtensionGroupingAndMarkerTypesForTypeForwarding(EmitContext context) 497var builder = ArrayBuilder<(Cci.INestedTypeReference GroupingType, ImmutableArray<Cci.INestedTypeReference> MarkerTypes)>.GetInstance(); 500ImmutableArray<INestedTypeDefinition> groupingTypes = ((SourceMemberContainerTypeSymbol)_underlyingType).GetExtensionGroupingInfo().GetGroupingTypes();
Symbols\Retargeting\RetargetingNamespaceSymbol.cs (15)
42private ImmutableArray<NamedTypeSymbol> _lazyTypeMembers; 78public override ImmutableArray<Symbol> GetMembers() 83private ImmutableArray<Symbol> RetargetMembers(ImmutableArray<Symbol> underlyingMembers) 101internal override ImmutableArray<Symbol> GetMembersUnordered() 106public override ImmutableArray<Symbol> GetMembers(ReadOnlyMemory<char> name) 111internal override ImmutableArray<NamedTypeSymbol> GetTypeMembersUnordered() 116public override ImmutableArray<NamedTypeSymbol> GetTypeMembers() 120var typeMembers = RetargetTypeMembers(_underlyingNamespace.GetTypeMembers()); 127private ImmutableArray<NamedTypeSymbol> RetargetTypeMembers(ImmutableArray<NamedTypeSymbol> underlyingMembers) 146public override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name) 151public override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name, int arity) 164public override ImmutableArray<Location> Locations 172public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
Symbols\Retargeting\RetargetingParameterSymbol.cs (6)
21private ImmutableArray<CustomModifier> _lazyRefCustomModifiers; 26private ImmutableArray<CSharpAttributeData> _lazyCustomAttributes; 56public sealed override ImmutableArray<CustomModifier> RefCustomModifiers 66public sealed override ImmutableArray<CSharpAttributeData> GetAttributes() 116internal override ImmutableArray<byte> MarshallingDescriptor 138internal sealed override ImmutableArray<int> InterpolatedStringHandlerArgumentIndexes => _underlyingParameter.InterpolatedStringHandlerArgumentIndexes;
Symbols\Retargeting\RetargetingPropertySymbol.cs (15)
26private ImmutableArray<PropertySymbol> _lazyExplicitInterfaceImplementations; 27private ImmutableArray<ParameterSymbol> _lazyParameters; 28private ImmutableArray<CustomModifier> _lazyRefCustomModifiers; 33private ImmutableArray<CSharpAttributeData> _lazyCustomAttributes; 81public override ImmutableArray<CustomModifier> RefCustomModifiers 89public override ImmutableArray<ParameterSymbol> Parameters 95ImmutableInterlocked.InterlockedCompareExchange(ref _lazyParameters, this.RetargetParameters(), default(ImmutableArray<ParameterSymbol>)); 102private ImmutableArray<ParameterSymbol> RetargetParameters() 104var list = _underlyingProperty.Parameters; 109return ImmutableArray<ParameterSymbol>.Empty; 152public override ImmutableArray<PropertySymbol> ExplicitInterfaceImplementations 161default(ImmutableArray<PropertySymbol>)); 167private ImmutableArray<PropertySymbol> RetargetExplicitInterfaceImplementations() 169var impls = _underlyingProperty.ExplicitInterfaceImplementations; 217public override ImmutableArray<CSharpAttributeData> GetAttributes()
Symbols\Retargeting\RetargetingSymbolTranslator.cs (49)
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) 1002var targetParams = method.Parameters.SelectAsArray( 1027ImmutableArray<MethodSymbol>.Empty); 1076var targetParams = property.Parameters.SelectAsArray( 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)
38private ImmutableArray<CSharpAttributeData> _lazyCustomAttributes; 65public override ImmutableArray<CSharpAttributeData> GetAttributes() 86internal override ImmutableArray<TypeWithAnnotations> GetConstraintTypes(ConsList<TypeParameterSymbol> inProgress) 99internal 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; } } 129internal override ImmutableArray<string> GetAppliedConditionalSymbols() { throw ExceptionUtilities.Unreachable(); } 131public override ImmutableArray<TypeWithAnnotations> TypeArgumentsWithAnnotations { get { throw ExceptionUtilities.Unreachable(); } } 139public override ImmutableArray<Location> Locations { get { throw ExceptionUtilities.Unreachable(); } } 141public 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; } } 101public override ImmutableArray<Location> Locations { get { throw ExceptionUtilities.Unreachable(); } } 103public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences { get { throw ExceptionUtilities.Unreachable(); } } 109internal 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)
117public static ImmutableArray<T> SubstituteExplicitInterfaceImplementations<T>(ImmutableArray<T> unsubstitutedExplicitInterfaceImplementations, TypeMap map) where T : Symbol 433ImmutableArray<ParameterSymbol> implementedMemberParameters = implementedMember.GetParameters(); 434ImmutableArray<ParameterSymbol> collisionCandidateParameters = collisionCandidateMember.GetParameters();
Symbols\Source\ExtensionGroupingInfo.cs (22)
24private readonly ImmutableArray<ExtensionGroupingType> _groupingTypes; 72ImmutableArray<NamedTypeSymbol> typeMembers = container.GetTypeMembers(""); 103public ImmutableArray<Cci.INestedTypeDefinition> GetGroupingTypes() 105return ImmutableArray<Cci.INestedTypeDefinition>.CastUp(_groupingTypes); 194internal ImmutableArray<SourceNamedTypeSymbol> GetMergedExtensions(SourceNamedTypeSymbol extension) 203internal IEnumerable<ImmutableArray<SourceNamedTypeSymbol>> EnumerateMergedExtensionBlocks() 264ImmutableArray<TypeParameterSymbol> typeParams1 = extension1.TypeParameters; 265ImmutableArray<TypeParameterSymbol> typeParams2 = extension2.TypeParameters; 321static bool hasSameAttributes(ImmutableArray<CSharpAttributeData> attributes1, ImmutableArray<CSharpAttributeData> attributes2) 382ImmutableArray<TypeWithAnnotations> constraintTypes1 = typeParameter1.ConstraintTypesNoUseSiteDiagnostics; 383ImmutableArray<TypeWithAnnotations> constraintTypes2 = typeParameter2.ConstraintTypesNoUseSiteDiagnostics; 414static void substituteConstraintTypes(ImmutableArray<TypeWithAnnotations> types, TypeMap? typeMap, HashSet<TypeWithAnnotations> result) 437foreach (ImmutableArray<SourceNamedTypeSymbol> mergedBlocks in EnumerateMergedExtensionBlocks()) 685public readonly ImmutableArray<ExtensionMarkerType> ExtensionMarkerTypes; 686private ImmutableArray<ExtensionGroupingTypeTypeParameter> _lazyTypeParameters; 715var typeParameters = ExtensionMarkerTypes[0].UnderlyingExtensions[0].Arity != 0 ? 802static SynthesizedAttributeData? synthesizeDefaultMemberAttributeIfNeeded(ImmutableArray<ExtensionMarkerType> extensionMarkerTypes) 816static PropertySymbol? tryGetFirstIndexer(ImmutableArray<ExtensionMarkerType> extensionMarkerTypes) 885public readonly ImmutableArray<SourceNamedTypeSymbol> UnderlyingExtensions; 886private ImmutableArray<InheritedTypeParameter> _lazyTypeParameters; 911var typeParameters = UnderlyingExtensions[0].Arity != 0 ?
Symbols\Source\FieldSymbolWithAttributesAndModifiers.cs (3)
78public sealed override ImmutableArray<CSharpAttributeData> GetAttributes() 319internal 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)
40public override ImmutableArray<CustomModifier> RefCustomModifiers 42get { return ImmutableArray<CustomModifier>.Empty; }
Symbols\Source\LambdaSymbol.cs (25)
22private readonly ImmutableArray<ParameterSymbol> _parameters; 24private ImmutableArray<CustomModifier> _refCustomModifiers; 49ImmutableArray<TypeWithAnnotations> parameterTypes, 50ImmutableArray<RefKind> parameterRefKinds, 52ImmutableArray<CustomModifier> refCustomModifiers, 155public override ImmutableArray<CustomModifier> RefCustomModifiers 193public override ImmutableArray<MethodSymbol> ExplicitInterfaceImplementations 195get { return ImmutableArray<MethodSymbol>.Empty; } 203public override ImmutableArray<TypeWithAnnotations> TypeArgumentsWithAnnotations 205get { return ImmutableArray<TypeWithAnnotations>.Empty; } 208public override ImmutableArray<TypeParameterSymbol> TypeParameters 210get { return ImmutableArray<TypeParameterSymbol>.Empty; } 218public override ImmutableArray<ParameterSymbol> Parameters 235public override ImmutableArray<Location> Locations 262public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 337private ImmutableArray<ParameterSymbol> MakeParameters( 340ImmutableArray<TypeWithAnnotations> parameterTypes, 341ImmutableArray<RefKind> parameterRefKinds) 388var result = builder.ToImmutableAndFree(); 433public override ImmutableArray<ImmutableArray<TypeWithAnnotations>> GetTypeParameterConstraintTypes() => ImmutableArray<ImmutableArray<TypeWithAnnotations>>.Empty; 435public override ImmutableArray<TypeParameterConstraintKind> GetTypeParameterConstraintKinds() => ImmutableArray<TypeParameterConstraintKind>.Empty;
Symbols\Source\LocalFunctionSymbol.cs (21)
22private readonly ImmutableArray<SourceMethodTypeParameterSymbol> _typeParameters; 25private ImmutableArray<ParameterSymbol> _lazyParameters; 28private ImmutableArray<ImmutableArray<TypeWithAnnotations>> _lazyTypeParameterConstraintTypes; 29private ImmutableArray<TypeParameterConstraintKind> _lazyTypeParameterConstraintKinds; 31private ImmutableArray<CustomModifier> _lazyRefCustomModifiers; 78_typeParameters = ImmutableArray<SourceMethodTypeParameterSymbol>.Empty; 201public override ImmutableArray<ParameterSymbol> Parameters 222var parameters = ParameterHelpers.MakeParameters( 343public override ImmutableArray<TypeWithAnnotations> TypeArgumentsWithAnnotations => GetTypeParametersAsTypeArguments(); 345public override ImmutableArray<TypeParameterSymbol> TypeParameters 368public override ImmutableArray<MethodSymbol> ExplicitInterfaceImplementations => ImmutableArray<MethodSymbol>.Empty; 370public override ImmutableArray<Location> Locations => ImmutableArray.Create(Syntax.Identifier.GetLocation()); 376public override ImmutableArray<CustomModifier> RefCustomModifiers 458private ImmutableArray<SourceMethodTypeParameterSymbol> MakeTypeParameters(BindingDiagnosticBag diagnostics) 519public override ImmutableArray<ImmutableArray<TypeWithAnnotations>> GetTypeParameterConstraintTypes() 530var constraints = this.MakeTypeParameterConstraintTypes( 551public override ImmutableArray<TypeParameterConstraintKind> GetTypeParameterConstraintKinds() 556var constraints = this.MakeTypeParameterConstraintKinds(
Symbols\Source\ParameterHelpers.cs (30)
20public static ImmutableArray<SourceParameterSymbol> MakeParameters( 115public static ImmutableArray<FunctionPointerParameterSymbol> MakeFunctionPointerParameters( 142ImmutableArray<CustomModifier> customModifiers = refKind switch 147_ => ImmutableArray<CustomModifier>.Empty 166private static ImmutableArray<TParameterSymbol> MakeParameters<TParameterSyntax, TParameterSymbol, TOwningSymbol>( 206ImmutableArray<TParameterSymbol> parameters = builder.ToImmutableAndFree(); 211var typeParameters = (object?)methodOwner != null ? 215ImmutableArray<ParameterSymbol> parametersForNameConflict = parameters.Cast<TParameterSymbol, ParameterSymbol>(); 327internal static void EnsureRefKindAttributesExist(PEModuleBuilder moduleBuilder, ImmutableArray<ParameterSymbol> parameters) 332internal static void EnsureRefKindAttributesExist(CSharpCompilation? compilation, ImmutableArray<ParameterSymbol> parameters, BindingDiagnosticBag diagnostics, bool modifyCompilation) 344private static void EnsureRefKindAttributesExist(CSharpCompilation compilation, ImmutableArray<ParameterSymbol> parameters, BindingDiagnosticBag? diagnostics, bool modifyCompilation, PEModuleBuilder? moduleBuilder) 373internal static void EnsureParamCollectionAttributeExists(PEModuleBuilder moduleBuilder, ImmutableArray<ParameterSymbol> parameters) 381internal static void EnsureParamCollectionAttributeExists(CSharpCompilation compilation, ImmutableArray<ParameterSymbol> parameters, BindingDiagnosticBag diagnostics, bool modifyCompilation) 389internal static void EnsureNativeIntegerAttributeExists(PEModuleBuilder moduleBuilder, ImmutableArray<ParameterSymbol> parameters) 395internal static void EnsureNativeIntegerAttributeExists(CSharpCompilation? compilation, ImmutableArray<ParameterSymbol> parameters, BindingDiagnosticBag diagnostics, bool modifyCompilation) 412private static void EnsureNativeIntegerAttributeExists(CSharpCompilation compilation, ImmutableArray<ParameterSymbol> parameters, BindingDiagnosticBag? diagnostics, bool modifyCompilation, PEModuleBuilder? moduleBuilder) 457internal static void EnsureScopedRefAttributeExists(PEModuleBuilder moduleBuilder, ImmutableArray<ParameterSymbol> parameters) 462internal static void EnsureScopedRefAttributeExists(CSharpCompilation? compilation, ImmutableArray<ParameterSymbol> parameters, BindingDiagnosticBag diagnostics, bool modifyCompilation) 474private static void EnsureScopedRefAttributeExists(CSharpCompilation compilation, ImmutableArray<ParameterSymbol> parameters, BindingDiagnosticBag? diagnostics, bool modifyCompilation, PEModuleBuilder? moduleBuilder) 492internal static void EnsureNullableAttributeExists(PEModuleBuilder moduleBuilder, Symbol container, ImmutableArray<ParameterSymbol> parameters) 497internal static void EnsureNullableAttributeExists(CSharpCompilation? compilation, Symbol container, ImmutableArray<ParameterSymbol> parameters, BindingDiagnosticBag? diagnostics, bool modifyCompilation) 509private static void EnsureNullableAttributeExists(CSharpCompilation compilation, Symbol container, ImmutableArray<ParameterSymbol> parameters, BindingDiagnosticBag? diagnostics, bool modifyCompilation, PEModuleBuilder? moduleBuilder) 530internal static void CheckUnderspecifiedGenericExtension(Symbol extensionMember, ImmutableArray<ParameterSymbol> parameters, BindingDiagnosticBag diagnostics) 552static void reportUnusedExtensionTypeParameters(Symbol extensionMember, ImmutableArray<ParameterSymbol> parameters, BindingDiagnosticBag diagnostics, NamedTypeSymbol extension, ParameterSymbol extensionParameter, PooledHashSet<TypeParameterSymbol> usedTypeParameters) 1200internal static ImmutableArray<CustomModifier> ConditionallyCreateInModifiers(RefKind refKind, bool addRefReadOnlyModifier, Binder binder, BindingDiagnosticBag diagnostics, SyntaxNode syntax) 1208return ImmutableArray<CustomModifier>.Empty; 1212internal static ImmutableArray<CustomModifier> CreateInModifiers(Binder binder, BindingDiagnosticBag diagnostics, SyntaxNode syntax) 1218private static ImmutableArray<CustomModifier> CreateRefReadonlyParameterModifiers(Binder binder, BindingDiagnosticBag diagnostics, SyntaxNode syntax) 1224internal static ImmutableArray<CustomModifier> CreateOutModifiers(Binder binder, BindingDiagnosticBag diagnostics, SyntaxNode syntax) 1229private static ImmutableArray<CustomModifier> CreateModifiers(WellKnownType modifier, Binder binder, BindingDiagnosticBag diagnostics, SyntaxNode syntax)
Symbols\Source\SourceAssemblySymbol.cs (42)
61private readonly ImmutableArray<ModuleSymbol> _modules; 114private ImmutableArray<Diagnostic> _unusedFieldWarnings; 120ImmutableArray<PEModule> netModules) 560internal override ImmutableArray<byte> PublicKey 565public override ImmutableArray<ModuleSymbol> Modules 574public override ImmutableArray<Location> Locations 1063ImmutableArray<NamespaceSymbol> constituent = mergedNs.ConstituentNamespaces; 1191ImmutableArray<CSharpAttributeData> appliedSourceAttributes = this.GetSourceAttributesBag().Attributes; 1281private ImmutableArray<CSharpAttributeData> GetNetModuleAttributes(out ImmutableArray<string> netModuleNames) 1305netModuleNames = ImmutableArray<string>.Empty; 1306return ImmutableArray<CSharpAttributeData>.Empty; 1314ImmutableArray<CSharpAttributeData> attributesFromNetModules, 1315ImmutableArray<string> netModuleNames, 1373ImmutableArray<string> netModuleNames; 1374ImmutableArray<CSharpAttributeData> attributesFromNetModules = GetNetModuleAttributes(out netModuleNames); 1470ImmutableArray<string> netModuleNames; 1471ImmutableArray<CSharpAttributeData> attributesFromNetModules = GetNetModuleAttributes(out netModuleNames); 1484WellKnownAttributeData limitedDecodeWellKnownAttributes(ImmutableArray<CSharpAttributeData> attributesFromNetModules, 1485ImmutableArray<string> netModuleNames, QuickAttributes attributeMatches) 1551internal ImmutableArray<SyntaxList<AttributeListSyntax>> GetAttributeDeclarations() 1554var declarations = DeclaringCompilation.MergedRootDeclaration.Declarations; 1596public sealed override ImmutableArray<CSharpAttributeData> GetAttributes() 1598var attributes = this.GetSourceAttributesBag().Attributes; 1599var netmoduleAttributes = this.GetNetModuleAttributesBag().Attributes; 1853internal override ImmutableArray<AssemblySymbol> GetNoPiaResolutionAssemblies() 1858internal override void SetNoPiaResolutionAssemblies(ImmutableArray<AssemblySymbol> assemblies) 1863internal override ImmutableArray<AssemblySymbol> GetLinkedReferencedAssemblies() 1867return default(ImmutableArray<AssemblySymbol>); 1870internal override void SetLinkedReferencedAssemblies(ImmutableArray<AssemblySymbol> assemblies) 1998ImmutableArray<TypedConstant>.Empty, 2060private static bool ContainsExtensions(ImmutableArray<ModuleSymbol> modules) 2122internal override IEnumerable<ImmutableArray<byte>> GetInternalsVisibleToPublicKeys(string simpleName) 2131return SpecializedCollections.EmptyEnumerable<ImmutableArray<byte>>(); 2133ConcurrentDictionary<ImmutableArray<byte>, Tuple<Location, string>> result = null; 2137return (result != null) ? result.Keys : SpecializedCollections.EmptyEnumerable<ImmutableArray<byte>>(); 2197private ConcurrentDictionary<string, ConcurrentDictionary<ImmutableArray<byte>, Tuple<Location, string>>> _lazyInternalsVisibleToMap; 2275ref ConcurrentDictionary<string, ConcurrentDictionary<ImmutableArray<byte>, Tuple<Location, string>>> lazyInternalsVisibleToMap) 2309new ConcurrentDictionary<string, ConcurrentDictionary<ImmutableArray<byte>, Tuple<Location, String>>>(StringComparer.OrdinalIgnoreCase), null); 2329ConcurrentDictionary<ImmutableArray<byte>, Tuple<Location, string>> keys = null; 2336keys = new ConcurrentDictionary<ImmutableArray<byte>, Tuple<Location, String>>(); 2686internal ImmutableArray<Diagnostic> GetUnusedFieldWarnings(CancellationToken cancellationToken)
Symbols\Source\SourceClonedParameterSymbol.cs (6)
37public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 43return ImmutableArray<SyntaxReference>.Empty; 112public override ImmutableArray<Location> Locations 117public override ImmutableArray<CSharpAttributeData> GetAttributes() 127public override ImmutableArray<CustomModifier> RefCustomModifiers 162internal override ImmutableArray<int> InterpolatedStringHandlerArgumentIndexes => throw ExceptionUtilities.Unreachable();
Symbols\Source\SourceComplexParameterSymbol.cs (21)
142internal override ImmutableArray<int> InterpolatedStringHandlerArgumentIndexes 353ImmutableArray<LocalSymbol>.Empty, 481ImmutableArray<ParameterSymbol> implParameters = this.ContainingSymbol.GetPartialImplementationPart()?.GetParameters() ?? default; 497ImmutableArray<ParameterSymbol> defParameters = this.ContainingSymbol.GetPartialDefinitionPart()?.GetParameters() ?? default; 614public ImmutableArray<(CSharpAttributeData, BoundAttribute)> BindParameterAttributes() 683var constructorArguments = attributeData.CommonConstructorArguments; 719var parameters = containingSymbol.GetParameters(); 910var arguments = attribute.CommonConstructorArguments; 1311ImmutableArray<ParameterSymbol> containingSymbolParameters = ContainingSymbol.GetParameters(); 1314ImmutableArray<int> parameterOrdinals; 1445internal override void PostDecodeWellKnownAttributes(ImmutableArray<CSharpAttributeData> boundAttributes, ImmutableArray<AttributeSyntax> allAttributeSyntaxNodes, BindingDiagnosticBag diagnostics, AttributeLocation symbolPart, WellKnownAttributeData decodedData) 1529var attributes = GetAttributes(); 1572public abstract override ImmutableArray<CustomModifier> RefCustomModifiers { get; } 1648if (!binder.HasCollectionExpressionApplicableAddMethod(syntax, Type, out ImmutableArray<MethodSymbol> addMethods, diagnostics)) 1698var collectionBuilderMethods = binder.GetCollectionBuilderMethods( 1776public override ImmutableArray<CustomModifier> RefCustomModifiers => ImmutableArray<CustomModifier>.Empty; 1781private readonly ImmutableArray<CustomModifier> _refCustomModifiers; 1789ImmutableArray<CustomModifier> refCustomModifiers, 1808public override ImmutableArray<CustomModifier> RefCustomModifiers => _refCustomModifiers;
Symbols\Source\SourceConstructorSymbolBase.cs (11)
20protected ImmutableArray<ParameterSymbol> _lazyParameters; 131public sealed override ImmutableArray<ParameterSymbol> Parameters 140public sealed override ImmutableArray<TypeParameterSymbol> TypeParameters 142get { return ImmutableArray<TypeParameterSymbol>.Empty; } 145public sealed override ImmutableArray<ImmutableArray<TypeWithAnnotations>> GetTypeParameterConstraintTypes() 146=> ImmutableArray<ImmutableArray<TypeWithAnnotations>>.Empty; 148public sealed override ImmutableArray<TypeParameterConstraintKind> GetTypeParameterConstraintKinds() 149=> ImmutableArray<TypeParameterConstraintKind>.Empty; 160public sealed override ImmutableArray<CustomModifier> RefCustomModifiers => [];
Symbols\Source\SourceCustomEventSymbol.cs (3)
24private readonly ImmutableArray<EventSymbol> _explicitInterfaceImplementations; 169ImmutableArray<EventSymbol>.Empty : 210public 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 (18)
21private ImmutableArray<ParameterSymbol> _parameters; 41protected void InitializeParameters(ImmutableArray<ParameterSymbol> parameters) 137public sealed override ImmutableArray<ParameterSymbol> Parameters 150public override ImmutableArray<TypeParameterSymbol> TypeParameters 154return ImmutableArray<TypeParameterSymbol>.Empty; 158public override ImmutableArray<ImmutableArray<TypeWithAnnotations>> GetTypeParameterConstraintTypes() 159=> ImmutableArray<ImmutableArray<TypeWithAnnotations>>.Empty; 161public override ImmutableArray<TypeParameterConstraintKind> GetTypeParameterConstraintKinds() 162=> ImmutableArray<TypeParameterConstraintKind>.Empty; 254public override ImmutableArray<CustomModifier> RefCustomModifiers => []; 261private readonly ImmutableArray<CustomModifier> _refCustomModifiers; 273var parameters = ParameterHelpers.MakeParameters( 295_refCustomModifiers = ImmutableArray<CustomModifier>.Empty; 352public override ImmutableArray<CustomModifier> RefCustomModifiers => _refCustomModifiers; 392public override ImmutableArray<CustomModifier> RefCustomModifiers => []; 427public override ImmutableArray<CustomModifier> RefCustomModifiers => _invoke.RefCustomModifiers;
Symbols\Source\SourceDestructorSymbol.cs (11)
109public override ImmutableArray<ParameterSymbol> Parameters 111get { return ImmutableArray<ParameterSymbol>.Empty; } 114public override ImmutableArray<TypeParameterSymbol> TypeParameters 116get { return ImmutableArray<TypeParameterSymbol>.Empty; } 119public override ImmutableArray<ImmutableArray<TypeWithAnnotations>> GetTypeParameterConstraintTypes() 120=> ImmutableArray<ImmutableArray<TypeWithAnnotations>>.Empty; 122public override ImmutableArray<TypeParameterConstraintKind> GetTypeParameterConstraintKinds() 123=> ImmutableArray<TypeParameterConstraintKind>.Empty; 134public override ImmutableArray<CustomModifier> RefCustomModifiers => [];
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)
95public abstract override ImmutableArray<EventSymbol> ExplicitInterfaceImplementations { get; } 120public sealed override ImmutableArray<Location> Locations 131public sealed override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 260public sealed override ImmutableArray<CSharpAttributeData> GetAttributes() 783ImmutableArray<EventSymbol> explicitInterfaceImplementations = this.ExplicitInterfaceImplementations;
Symbols\Source\SourceFieldLikeEventSymbol.cs (2)
206public override ImmutableArray<EventSymbol> ExplicitInterfaceImplementations 208get { 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 (3)
219public override ImmutableArray<Symbol> GetMembers() 224public override ImmutableArray<Symbol> GetMembers(string name) 229ImmutableArray<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)
512public override ImmutableArray<Location> Locations 522public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (13)
229var info = new CSDiagnosticInfo(ErrorCode.ERR_MixingWinRTEventWithRegular, args, ImmutableArray<Symbol>.Empty, ImmutableArray.Create<Location>(this.GetFirstLocation())); 775var overriddenMembers = overriddenOrHiddenMembers.OverriddenMembers; 780var hiddenMembers = overriddenOrHiddenMembers.HiddenMembers; 805var parameterTypes = overridingMemberIsMethod 1294var baseParameters = baseMethod.Parameters; 1295var overrideParameters = overrideMethod.Parameters; 1419var parameters = method.Parameters; 1498var baseParameters = baseMethod.Parameters; 1499var overrideParameters = overrideMethod.Parameters; 1549var baseParameters = baseMethod.Parameters; 1550var overrideParameters = overrideMethod.Parameters; 1634var hiddenMembers = overriddenOrHiddenMembers.HiddenMembers; 2005internal sealed override ImmutableArray<NamedTypeSymbol> GetInterfacesToEmit()
Symbols\Source\SourceMemberContainerSymbol.cs (214)
188private ImmutableArray<DiagnosticInfo> _managedKindUseSiteDiagnostics; 189private ImmutableArray<AssemblySymbol> _managedKindUseSiteDependencies; 198private ImmutableArray<SynthesizedSimpleProgramEntryPointSymbol> _lazySimpleProgramEntryPoints; 205private Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>>? _lazyMembersDictionary; 206private Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>>? _lazyEarlyAttributeDecodingMembersDictionary; 208private static readonly Dictionary<ReadOnlyMemory<char>, ImmutableArray<NamedTypeSymbol>> s_emptyTypeMembers = 209new Dictionary<ReadOnlyMemory<char>, ImmutableArray<NamedTypeSymbol>>(EmptyReadOnlyMemoryOfCharComparer.Instance); 211private Dictionary<ReadOnlyMemory<char>, ImmutableArray<NamedTypeSymbol>>? _lazyTypeMembers; 212private ImmutableArray<Symbol> _lazyMembersFlattened; 223private ImmutableArray<NamedTypeSymbol> _lazyClosedSubtypeCandidates; 621var tmp = this.TypeArgumentsWithAnnotationsNoUseSiteDiagnostics; // force type arguments 677ImmutableArray<Symbol> members = this.GetMembersUnordered(); 860ImmutableInterlocked.InterlockedInitialize(ref _managedKindUseSiteDiagnostics, managedKindUseSiteInfo.Diagnostics?.ToImmutableArray() ?? ImmutableArray<DiagnosticInfo>.Empty); 861ImmutableInterlocked.InterlockedInitialize(ref _managedKindUseSiteDependencies, managedKindUseSiteInfo.Dependencies?.ToImmutableArray() ?? ImmutableArray<AssemblySymbol>.Empty); 867ImmutableArray<DiagnosticInfo> useSiteDiagnostics = _managedKindUseSiteDiagnostics; 876ImmutableArray<AssemblySymbol> useSiteDependencies = _managedKindUseSiteDependencies; 904internal sealed override ImmutableArray<NamedTypeSymbol> CandidateClosedSubtypeDefinitions 920ImmutableArray<NamedTypeSymbol> findClosedSubtypes() 937var nestedTypes = namedType.GetTypeMembers(); 945var members = namespaceOrType.GetMembers(); 1103public sealed override ImmutableArray<Location> Locations 1104=> ImmutableArray<Location>.CastUp(declaration.NameLocations.ToImmutable()); 1109public ImmutableArray<SyntaxReference> SyntaxReferences 1117public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 1128var declarations = declaration.Declarations; 1163internal readonly ImmutableArray<Symbol> NonTypeMembers; 1164internal readonly ImmutableArray<ImmutableArray<FieldOrPropertyInitializer>> StaticInitializers; 1165internal readonly ImmutableArray<ImmutableArray<FieldOrPropertyInitializer>> InstanceInitializers; 1172ImmutableArray<Symbol> nonTypeMembers, 1173ImmutableArray<ImmutableArray<FieldOrPropertyInitializer>> staticInitializers, 1174ImmutableArray<ImmutableArray<FieldOrPropertyInitializer>> instanceInitializers, 1198internal ImmutableArray<ImmutableArray<FieldOrPropertyInitializer>> StaticInitializers 1203internal ImmutableArray<ImmutableArray<FieldOrPropertyInitializer>> InstanceInitializers 1256var allInitializers = isStatic ? membersAndInitializers.StaticInitializers : membersAndInitializers.InstanceInitializers; 1282static bool findInitializer(ImmutableArray<ImmutableArray<FieldOrPropertyInitializer>> initializers, int position, SyntaxTree tree, 1286foreach (var group in initializers) 1311static int getGroupLength(ImmutableArray<FieldOrPropertyInitializer> initializers) 1322static int getPrecedingInitializersLength(ImmutableArray<FieldOrPropertyInitializer> initializers, int index) 1333static int getInitializersLength(ImmutableArray<ImmutableArray<FieldOrPropertyInitializer>> initializers) 1336foreach (var group in initializers) 1359private static int IndexOfInitializerContainingPosition(ImmutableArray<FieldOrPropertyInitializer> initializers, int position) 1389internal override ImmutableArray<NamedTypeSymbol> GetTypeMembersUnordered() 1394public override ImmutableArray<NamedTypeSymbol> GetTypeMembers() 1399public override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name) 1401ImmutableArray<NamedTypeSymbol> members; 1407return ImmutableArray<NamedTypeSymbol>.Empty; 1410public override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name, int arity) 1415private Dictionary<ReadOnlyMemory<char>, ImmutableArray<NamedTypeSymbol>> GetTypeMembersDictionary() 1433private Dictionary<ReadOnlyMemory<char>, ImmutableArray<NamedTypeSymbol>> MakeTypeMembers(BindingDiagnosticBag diagnostics) 1588internal override ImmutableArray<Symbol> GetMembersUnordered() 1590var result = _lazyMembersFlattened; 1602public override ImmutableArray<Symbol> GetMembers() 1610var allMembers = this.GetMembersUnordered(); 1624public sealed override ImmutableArray<Symbol> GetMembers(string name) 1626ImmutableArray<Symbol> members; 1632return ImmutableArray<Symbol>.Empty; 1643internal override ImmutableArray<Symbol> GetSimpleNonTypeMembers(string name) 1650return ImmutableArray<Symbol>.Empty; 1693internal override ImmutableArray<Symbol> GetEarlyAttributeDecodingMembers() 1705internal override ImmutableArray<Symbol> GetEarlyAttributeDecodingMembers(string name) 1707ImmutableArray<Symbol> result; 1708return GetEarlyAttributeDecodingMembersDictionary().TryGetValue(name.AsMemory(), out result) ? result : ImmutableArray<Symbol>.Empty; 1711private Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> GetEarlyAttributeDecodingMembersDictionary() 1715if (Volatile.Read(ref _lazyMembersDictionary) is Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> result) 1725Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> membersByName; 1748private static Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> ToNameKeyedDictionary(ImmutableArray<Symbol> symbols) 1752return new Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>>(1, ReadOnlyMemoryOfCharComparer.Instance) 1760return new Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>>(ReadOnlyMemoryOfCharComparer.Instance); 1773var dictionary = new Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>>(accumulator.Count, ReadOnlyMemoryOfCharComparer.Instance); 1899protected Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> GetMembersByName() 1909private Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> GetMembersByNameSlow() 2012var interfaces = GetInterfacesToEmit(); 2173Dictionary<ReadOnlyMemory<char>, ImmutableArray<NamedTypeSymbol>>? typesByName, 2174Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> membersByName, 2223Symbol? lastSym = typesByName?.TryGetValue(name, out var types) == true ? types.FirstOrDefault() : null; 2431BindingDiagnosticBag diagnostics, Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> membersByName) 2440foreach (var members in membersByName.Values) 2500Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> membersByName, 2570Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> membersByName, 2571Dictionary<ReadOnlyMemory<char>, ImmutableArray<NamedTypeSymbol>>? typesByName, 2572ImmutableArray<Symbol> membersUnordered, 2587Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>>? membersByName; 2588ImmutableArray<Symbol> membersUnordered; 2599static (Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>>? membersByName, ImmutableArray<Symbol> membersUnordered) mergeMembersInGroup(IGrouping<string, NamedTypeSymbol> grouping) 2601Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>>? membersByName = null; 2602ImmutableArray<Symbol> membersUnordered = []; 2609Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> membersByNameToMerge = ((SourceMemberContainerTypeSymbol)extension).GetMembersByName(); 2629membersByName = new Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>>(membersByName, ReadOnlyMemoryOfCharComparer.Instance); 2644if (membersByName.TryGetValue(pair.Key, out var members)) 2659static ImmutableArray<Symbol> concatMembers(ImmutableArray<Symbol> existingMembers, NamedTypeSymbol extension, ImmutableArray<Symbol> newMembers, ref ImmutableArray<Symbol> membersUnordered) 2728Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> membersByName, 2729ImmutableArray<Symbol> membersUnordered, 2801foreach (var valuesByName in GetMembersByName().Values) 2858foreach (var valuesByName in GetMembersByName().Values) 2880Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> membersByName, 2922Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> membersByName, 2961Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> membersByName, 2964if (membersByName.TryGetValue(operatorName1.AsMemory(), out ImmutableArray<Symbol> candidates)) 3288private Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> MakeAllMembers() 3290Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> membersByName; 3312Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> membersByName, 3313Dictionary<ReadOnlyMemory<char>, ImmutableArray<NamedTypeSymbol>> typesByName) 3315foreach ((ReadOnlyMemory<char> name, ImmutableArray<NamedTypeSymbol> types) in typesByName) 3317ImmutableArray<Symbol> typesAsSymbols = StaticCast<Symbol>.From(types); 3319ImmutableArray<Symbol> membersForName; 3394public readonly ImmutableArray<Symbol> NonTypeMembersWithPartialImplementations; 3395public readonly ImmutableArray<ImmutableArray<FieldOrPropertyInitializer>> StaticInitializers; 3396public readonly ImmutableArray<ImmutableArray<FieldOrPropertyInitializer>> InstanceInitializers; 3403private ImmutableArray<Symbol> _lazyNonTypeMembers; 3412ImmutableArray<Symbol> nonTypeMembersWithPartialImplementations, 3413ImmutableArray<ImmutableArray<FieldOrPropertyInitializer>> staticInitializers, 3414ImmutableArray<ImmutableArray<FieldOrPropertyInitializer>> instanceInitializers, 3440public static void AssertInitializers(ImmutableArray<ImmutableArray<FieldOrPropertyInitializer>> initializers, CSharpCompilation compilation) 3448foreach (ImmutableArray<FieldOrPropertyInitializer> group in initializers) 3472public ImmutableArray<Symbol> GetNonTypeMembers(SourceMemberContainerTypeSymbol container) 3500var nonTypeMembers = NonTypeMembers?.ToImmutableAndFree() ?? declaredMembers.GetNonTypeMembers(container); 3502var instanceInitializers = InstanceInitializersForPositionalMembers is null 3515ImmutableArray<ImmutableArray<FieldOrPropertyInitializer>> mergeInitializers() 3543ArrayBuilder<ImmutableArray<FieldOrPropertyInitializer>> groupsBuilder; 3550var declaredInitializers = declaredMembers.InstanceInitializers[insertAt]; 3560groupsBuilder = ArrayBuilder<ImmutableArray<FieldOrPropertyInitializer>>.GetInstance(groupCount); 3570groupsBuilder = ArrayBuilder<ImmutableArray<FieldOrPropertyInitializer>>.GetInstance(groupCount + 1); 3577var result = groupsBuilder.ToImmutableAndFree(); 3603var declaredNonTypeMembers = declaredMembers.GetNonTypeMembers(container); 3634internal static ImmutableArray<ImmutableArray<FieldOrPropertyInitializer>> ToReadOnlyAndFree(ArrayBuilder<ArrayBuilder<FieldOrPropertyInitializer>> initializers) 3639return ImmutableArray<ImmutableArray<FieldOrPropertyInitializer>>.Empty; 3642var builder = ArrayBuilder<ImmutableArray<FieldOrPropertyInitializer>>.GetInstance(initializers.Count); 3752private void MergePartialMembersAndInitializeNonTypeMembers(ImmutableArray<Symbol> nonTypeMembersWithPartialImplementations, ref ImmutableArray<Symbol> nonTypeMembers) 3798internal ImmutableArray<SynthesizedSimpleProgramEntryPointSymbol> GetSimpleProgramEntryPoints() 3804var simpleProgramEntryPoints = buildSimpleProgramEntryPoint(diagnostics); 3817ImmutableArray<SynthesizedSimpleProgramEntryPointSymbol> buildSimpleProgramEntryPoint(BindingDiagnosticBag diagnostics) 3822return ImmutableArray<SynthesizedSimpleProgramEntryPointSymbol>.Empty; 3846return ImmutableArray<SynthesizedSimpleProgramEntryPointSymbol>.Empty; 3880ImmutableArray<Symbol> nonTypeMembersToCheck; 3926internal ImmutableArray<Symbol> GetMembersToMatchAgainstDeclarationSpan() 3944internal ImmutableArray<Symbol> GetCandidateMembersForLookup(string name) 3954ImmutableArray<Symbol> nonTypeMembersToCheck; 3977ImmutableArray<Symbol> types = GetTypeMembers(name).Cast<NamedTypeSymbol, Symbol>(); 4548Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> membersByName, 4569foreach (var symbol in membersByName.TryGetValue(accessorName.AsMemory(), out var members) ? members : []) 4599Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> membersByName, 4608foreach (var symbol in membersByName.TryGetValue(accessorName.AsMemory(), out var members) ? members : []) 4653private static bool ParametersMatchPropertyAccessor(PropertySymbol propertySymbol, bool getNotSet, ImmutableArray<ParameterSymbol> methodParams) 4655var propertyParams = propertySymbol.Parameters; 4684private static bool ParametersMatchEventAccessor(EventSymbol eventSymbol, ImmutableArray<ParameterSymbol> methodParams) 4756private static void CheckInterfaceMembers(ImmutableArray<Symbol> nonTypeMembers, BindingDiagnosticBag diagnostics) 4811private void CheckExtensionMembers(ImmutableArray<Symbol> members, LanguageVersion languageVersion, BindingDiagnosticBag diagnostics) 4943var simpleProgramEntryPoints = GetSimpleProgramEntryPoints(); 5117var existingOrAddedMembers = addProperties(ctor.Parameters); 5168void addDeconstruct(SynthesizedPrimaryConstructor ctor, ImmutableArray<Symbol> positionalMembers) 5177ImmutableArray<TypeParameterSymbol>.Empty, 5179ImmutableArray<CustomModifier>.Empty, 5188ImmutableArray<CustomModifier>.Empty, 5189ImmutableArray<MethodSymbol>.Empty); 5224ImmutableArray<TypeParameterSymbol>.Empty, 5227ImmutableArray<CustomModifier>.Empty, 5236ImmutableArray<CustomModifier>.Empty, 5237ImmutableArray<MethodSymbol>.Empty); 5277ImmutableArray<TypeParameterSymbol>.Empty, 5280ImmutableArray<CustomModifier>.Empty, 5288refCustomModifiers: ImmutableArray<CustomModifier>.Empty, 5289explicitInterfaceImplementations: ImmutableArray<MethodSymbol>.Empty); 5337ImmutableArray<TypeParameterSymbol>.Empty, 5338ImmutableArray<ParameterSymbol>.Empty, 5343refCustomModifiers: ImmutableArray<CustomModifier>.Empty, 5344explicitInterfaceImplementations: ImmutableArray<MethodSymbol>.Empty); 5406ImmutableArray<Symbol> addProperties(ImmutableArray<ParameterSymbol> recordParameters) 5417ImmutableArray<ParameterSymbol>.Empty, 5420ImmutableArray<CustomModifier>.Empty, 5422ImmutableArray<PropertySymbol>.Empty); 5511ImmutableArray<TypeParameterSymbol>.Empty, 5512ImmutableArray<ParameterSymbol>.Empty, 5517ImmutableArray<CustomModifier>.Empty, 5518ImmutableArray<MethodSymbol>.Empty); 5543ImmutableArray<ParameterSymbol>.Empty, 5546ImmutableArray<CustomModifier>.Empty, 5548ImmutableArray<PropertySymbol>.Empty); 5604ImmutableArray<TypeParameterSymbol>.Empty, 5607ImmutableArray<CustomModifier>.Empty, 5616ImmutableArray<CustomModifier>.Empty, 5617ImmutableArray<MethodSymbol>.Empty); 5750static bool hasNonConstantInitializer(ImmutableArray<ImmutableArray<FieldOrPropertyInitializer>> initializers) 6341public static readonly SynthesizedExplicitImplementations Empty = new SynthesizedExplicitImplementations(ImmutableArray<SynthesizedExplicitImplementationForwardingMethod>.Empty, 6342ImmutableArray<(MethodSymbol Body, MethodSymbol Implemented)>.Empty); 6344public readonly ImmutableArray<SynthesizedExplicitImplementationForwardingMethod> ForwardingMethods; 6345public readonly ImmutableArray<(MethodSymbol Body, MethodSymbol Implemented)> MethodImpls; 6348ImmutableArray<SynthesizedExplicitImplementationForwardingMethod> forwardingMethods, 6349ImmutableArray<(MethodSymbol Body, MethodSymbol Implemented)> methodImpls) 6356ImmutableArray<SynthesizedExplicitImplementationForwardingMethod> forwardingMethods, 6357ImmutableArray<(MethodSymbol Body, MethodSymbol Implemented)> methodImpls)
Symbols\Source\SourceMemberFieldSymbol.cs (2)
159internal override void PostDecodeWellKnownAttributes(ImmutableArray<CSharpAttributeData> boundAttributes, ImmutableArray<AttributeSyntax> allAttributeSyntaxNodes, BindingDiagnosticBag diagnostics, AttributeLocation symbolPart, WellKnownAttributeData decodedData)
Symbols\Source\SourceMemberMethodSymbol.cs (10)
319private ImmutableArray<Diagnostic> _cachedDiagnostics; 320internal ImmutableArray<Diagnostic> Diagnostics 325internal ImmutableArray<Diagnostic> SetDiagnostics(ImmutableArray<Diagnostic> newSet, out bool diagsWritten) 350protected void CheckEffectiveAccessibility(TypeWithAnnotations returnType, ImmutableArray<ParameterSymbol> parameters, BindingDiagnosticBag diagnostics) 393protected void CheckFileTypeUsage(TypeWithAnnotations returnType, ImmutableArray<ParameterSymbol> parameters, BindingDiagnosticBag diagnostics) 817public override ImmutableArray<Location> Locations 831public sealed override ImmutableArray<TypeWithAnnotations> TypeArgumentsWithAnnotations 865public override ImmutableArray<MethodSymbol> ExplicitInterfaceImplementations 869return ImmutableArray<MethodSymbol>.Empty;
Symbols\Source\SourceMethodSymbol.cs (4)
25public abstract ImmutableArray<ImmutableArray<TypeWithAnnotations>> GetTypeParameterConstraintTypes(); 31public abstract ImmutableArray<TypeParameterConstraintKind> GetTypeParameterConstraintKinds(); 65var parameters = this.GetParametersIncludingExtensionParameter(skipExtensionIfStatic: true);
Symbols\Source\SourceMethodSymbolWithAttributes.cs (21)
100public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 104return (this.syntaxReferenceOpt == null) ? ImmutableArray<SyntaxReference>.Empty : ImmutableArray.Create(this.syntaxReferenceOpt); 316public override ImmutableArray<CSharpAttributeData> GetAttributes() 325public override ImmutableArray<CSharpAttributeData> GetReturnTypeAttributes() 401public ImmutableArray<(CSharpAttributeData, BoundAttribute)> BindMethodAttributes() 503internal sealed override ImmutableArray<string> GetAppliedConditionalSymbols() 506return data != null ? data.ConditionalSymbols : ImmutableArray<string>.Empty; 680internal override ImmutableArray<string> NotNullMembers => 681GetDecodedWellKnownAttributeData()?.NotNullMembers ?? ImmutableArray<string>.Empty; 683internal override ImmutableArray<string> NotNullWhenTrueMembers => 684GetDecodedWellKnownAttributeData()?.NotNullWhenTrueMembers ?? ImmutableArray<string>.Empty; 686internal override ImmutableArray<string> NotNullWhenFalseMembers => 687GetDecodedWellKnownAttributeData()?.NotNullWhenFalseMembers ?? ImmutableArray<string>.Empty; 1009var constructorArguments = arguments.Attribute.CommonConstructorArguments; 1043var interceptorsNamespaces = ((CSharpParseOptions)attributeNameSyntax.SyntaxTree.Options).InterceptorsNamespaces; 1126static bool isDeclaredInNamespace(ArrayBuilder<string> thisNamespaceNames, ImmutableArray<string> namespaceSegments) 1180var interceptorsNamespaces = ((CSharpParseOptions)attributeSyntax.SyntaxTree.Options).InterceptorsNamespaces; 1229var syntaxTrees = DeclaringCompilation.SyntaxTrees; 1326static bool isDeclaredInNamespace(ArrayBuilder<string> thisNamespaceNames, ImmutableArray<string> namespaceSegments) 1475internal override void PostDecodeWellKnownAttributes(ImmutableArray<CSharpAttributeData> boundAttributes, ImmutableArray<AttributeSyntax> allAttributeSyntaxNodes, BindingDiagnosticBag diagnostics, AttributeLocation symbolPart, WellKnownAttributeData decodedData)
Symbols\Source\SourceModuleSymbol.cs (14)
34private ImmutableArray<AssemblySymbol> _lazyAssembliesToEmbedTypesFrom; 45private ImmutableArray<Location> _locations; 128internal ImmutableArray<AssemblySymbol> GetAssembliesToEmbedTypesFrom() 145default(ImmutableArray<AssemblySymbol>)); 375ImmutableArray<ImmutableArray<string>> interceptorsNamespaces = ((CSharpParseOptions)location.SourceTree.Options).InterceptorsNamespaces; 376foreach (ImmutableArray<string> namespaceParts in interceptorsNamespaces) 432public override ImmutableArray<Location> Locations 539var mergedAttributes = ((SourceAssemblySymbol)this.ContainingAssembly).GetAttributeDeclarations(); 558public sealed override ImmutableArray<CSharpAttributeData> GetAttributes() 680var version = ImmutableArray.Create(new TypedConstant(compilation.GetSpecialType(SpecialType.System_Int32), TypedConstantKind.Primitive, 11)); 686var version = ImmutableArray.Create(new TypedConstant(compilation.GetSpecialType(SpecialType.System_Int32), TypedConstantKind.Primitive, CSharpCompilationOptions.UpdatedMemorySafetyRulesVersion)); 692var includesInternals = ImmutableArray.Create( 775var attributesDeclarations = ((SourceAssemblySymbol)ContainingAssembly).GetAttributeDeclarations();
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; 448var baseInterfacesRO = baseInterfaces.ToImmutableAndFree(); 470return new Tuple<NamedTypeSymbol, ImmutableArray<NamedTypeSymbol>>(baseType, baseInterfacesRO); 493private Tuple<NamedTypeSymbol, ImmutableArray<NamedTypeSymbol>> MakeOneDeclaredBases(ConsList<TypeSymbol> newBasesBeingResolved, SingleTypeDeclaration decl, BindingDiagnosticBag diagnostics) 683return new Tuple<NamedTypeSymbol, ImmutableArray<NamedTypeSymbol>>(localBase, localInterfaces.ToImmutableAndFree()); 719private ImmutableArray<NamedTypeSymbol> MakeAcyclicInterfaces(ConsList<TypeSymbol> basesBeingResolved, BindingDiagnosticBag diagnostics) 726return ImmutableArray<NamedTypeSymbol>.Empty; 729var declaredInterfaces = GetDeclaredInterfaces(basesBeingResolved: basesBeingResolved);
Symbols\Source\SourceNamedTypeSymbol_Extension.cs (15)
111ImmutableArray<TypeWithAnnotations> typeConstraints = typeParameter.GetConstraintTypes(ConsList<TypeParameterSymbol>.Empty); 157static void AppendClrType(TypeSymbol type, ImmutableArray<CustomModifier> modifiers, StringBuilder builder) 323var parameters = signature.Parameters; 344static void appendModifiers(ImmutableArray<CustomModifier> customModifiers, StringBuilder builder) 508ImmutableArray<string?> elementNames = namedType.TupleElementNames; 509ImmutableArray<TypeWithAnnotations> tupleElementTypes = namedType.TupleElementTypesWithAnnotations; 575ImmutableArray<TypeWithAnnotations> typeArguments = namedType.TypeArgumentsWithAnnotationsNoUseSiteDiagnostics; 664ImmutableArray<TypeWithAnnotations> contraintTypes = typeParam.ConstraintTypesNoUseSiteDiagnostics; 723ImmutableArray<ParameterSymbol> parameters = signature.Parameters; 762static void appendCallingConventionTypes(ImmutableArray<NamedTypeSymbol> callingConventionTypes, StringBuilder builder) 785static void appendAttributes(ImmutableArray<CSharpAttributeData> attributes, StringBuilder builder) 1230ImmutableArray<TypeWithAnnotations> typeArguments = MethodTypeInferrer.InferTypeArgumentsFromReceiverType(extension, receiverValue, compilation, conversions, ref discardedUseSiteInfo); 1237ImmutableArray<TypeWithAnnotations> typeArgsForConstruct = fillNotInferredTypeArguments(extension, typeArguments, out wasExtensionFullyInferred); 1252static ImmutableArray<TypeWithAnnotations> fillNotInferredTypeArguments(NamedTypeSymbol extension, ImmutableArray<TypeWithAnnotations> typeArgs, out bool wasFullyInferred)
Symbols\Source\SourceNamedTypeSymbol.cs (54)
144private ImmutableArray<TypeParameterSymbol> MakeTypeParameters(BindingDiagnosticBag diagnostics) 148return ImmutableArray<TypeParameterSymbol>.Empty; 273internal ImmutableArray<TypeWithAnnotations> GetTypeParameterConstraintTypes(int ordinal) 275var constraintTypes = GetTypeParameterConstraintTypes(); 276return (constraintTypes.Length > 0) ? constraintTypes[ordinal] : ImmutableArray<TypeWithAnnotations>.Empty; 279private ImmutableArray<ImmutableArray<TypeWithAnnotations>> GetTypeParameterConstraintTypes() 304var constraintKinds = GetTypeParameterConstraintKinds(); 308private ImmutableArray<TypeParameterConstraintKind> GetTypeParameterConstraintKinds() 321private ImmutableArray<ImmutableArray<TypeWithAnnotations>> MakeTypeParameterConstraintTypes(BindingDiagnosticBag diagnostics) 323var typeParameters = this.TypeParameters; 324var results = ImmutableArray<TypeParameterConstraintClause>.Empty; 330ArrayBuilder<ImmutableArray<TypeParameterConstraintClause>> otherPartialClauses = null; 344ImmutableArray<TypeParameterConstraintClause> constraints; 372(otherPartialClauses ??= ArrayBuilder<ImmutableArray<TypeParameterConstraintClause>>.GetInstance()).Add(constraints); 380results = ImmutableArray<TypeParameterConstraintClause>.Empty; 402private ImmutableArray<TypeParameterConstraintKind> MakeTypeParameterConstraintKinds() 404var typeParameters = this.TypeParameters; 405var results = ImmutableArray<TypeParameterConstraintClause>.Empty; 411ArrayBuilder<ImmutableArray<TypeParameterConstraintClause>> otherPartialClauses = null; 425ImmutableArray<TypeParameterConstraintClause> constraints; 454(otherPartialClauses ??= ArrayBuilder<ImmutableArray<TypeParameterConstraintClause>>.GetInstance()).Add(constraints); 463results = ImmutableArray<TypeParameterConstraintClause>.Empty; 498private ImmutableArray<TypeParameterConstraintClause> MergeConstraintTypesForPartialDeclarations(ImmutableArray<TypeParameterConstraintClause> constraintClauses, 499ArrayBuilder<ImmutableArray<TypeParameterConstraintClause>> otherPartialClauses, 508var typeParameters = TypeParameters; 517ImmutableArray<TypeWithAnnotations> originalConstraintTypes = constraint.ConstraintTypes; 524foreach (ImmutableArray<TypeParameterConstraintClause> otherPartialConstraints in otherPartialClauses) 566static bool mergeConstraints(ImmutableArray<TypeWithAnnotations> originalConstraintTypes, 636static SmallDictionary<TypeWithAnnotations, int> toDictionary(ImmutableArray<TypeWithAnnotations> constraintTypes, IEqualityComparer<TypeWithAnnotations> comparer) 652private ImmutableArray<TypeParameterConstraintClause> MergeConstraintKindsForPartialDeclarations(ImmutableArray<TypeParameterConstraintClause> constraintClauses, 653ArrayBuilder<ImmutableArray<TypeParameterConstraintClause>> otherPartialClauses) 661var typeParameters = TypeParameters; 671ImmutableArray<TypeWithAnnotations> originalConstraintTypes = constraint.ConstraintTypes; 673foreach (ImmutableArray<TypeParameterConstraintClause> otherPartialConstraints in otherPartialClauses) 704static void mergeConstraints(ref TypeParameterConstraintKind mergedKind, ImmutableArray<TypeWithAnnotations> originalConstraintTypes, TypeParameterConstraintClause clause) 745internal sealed override ImmutableArray<TypeWithAnnotations> TypeArgumentsWithAnnotationsNoUseSiteDiagnostics 753public override ImmutableArray<TypeParameterSymbol> TypeParameters 786internal ImmutableArray<SyntaxList<AttributeListSyntax>> GetAttributeDeclarations(QuickAttributes? quickAttributes = null) 867public sealed override ImmutableArray<CSharpAttributeData> GetAttributes() 1291ImmutableArray<SyntaxList<AttributeListSyntax>> attributeLists = GetAttributeDeclarations(QuickAttributes.TypeIdentifier); 1630internal override ImmutableArray<string> GetAppliedConditionalSymbols() 1633return data != null ? data.ConditionalSymbols : ImmutableArray<string>.Empty; 1636internal override void PostDecodeWellKnownAttributes(ImmutableArray<CSharpAttributeData> boundAttributes, ImmutableArray<AttributeSyntax> allAttributeSyntaxNodes, BindingDiagnosticBag diagnostics, AttributeLocation symbolPart, WellKnownAttributeData decodedData) 1667var initializers = this.StaticInitializers; 1670foreach (var initializerGroup in initializers) 1686foreach (var initializerGroup in initializers) 1807ImmutableArray<KeyValuePair<WellKnownMember, TypedConstant>> namedArguments;
Symbols\Source\SourceNamespaceSymbol_Completion.cs (1)
55var members = this.GetMembers();
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; 877static PooledHashSet<NamespaceOrTypeSymbol> getOrCreateUniqueUsings(ref PooledHashSet<NamespaceOrTypeSymbol>? uniqueUsings, ImmutableArray<NamespaceOrTypeAndUsingDirective> globalUsingNamespacesOrTypes) 888static PooledHashSet<NamespaceOrTypeSymbol> getOrCreateUniqueGlobalUsingsNotInTree(ref PooledHashSet<NamespaceOrTypeSymbol>? uniqueUsings, ImmutableArray<NamespaceOrTypeAndUsingDirective> globalUsingNamespacesOrTypes, SyntaxTree tree) 899static ArrayBuilder<NamespaceOrTypeAndUsingDirective> getOrCreateUsingsBuilder(ref ArrayBuilder<NamespaceOrTypeAndUsingDirective>? usings, ImmutableArray<NamespaceOrTypeAndUsingDirective> globalUsingNamespacesOrTypes) 1112public static readonly ExternAliasesAndDiagnostics Empty = new ExternAliasesAndDiagnostics() { ExternAliases = ImmutableArray<AliasAndExternAliasDirective>.Empty, Diagnostics = ImmutableArray<Diagnostic>.Empty }; 1114public ImmutableArray<AliasAndExternAliasDirective> ExternAliases { get; init; } 1115public ImmutableArray<Diagnostic> Diagnostics { get; init; } 1123UsingAliases = ImmutableArray<AliasAndUsingDirective>.Empty, 1125UsingNamespacesOrTypes = ImmutableArray<NamespaceOrTypeAndUsingDirective>.Empty, 1129public ImmutableArray<AliasAndUsingDirective> UsingAliases { get; init; } 1131public ImmutableArray<NamespaceOrTypeAndUsingDirective> UsingNamespacesOrTypes { get; init; } 1149UsingNamespacesOrTypes = ImmutableArray<NamespaceOrTypeAndUsingDirective>.Empty, 1150Diagnostics = ImmutableArray<Diagnostic>.Empty, 1155public ImmutableArray<NamespaceOrTypeAndUsingDirective> UsingNamespacesOrTypes { get; init; } 1156public ImmutableArray<Diagnostic> Diagnostics { get; init; } 1167ImmutableArray<AliasAndExternAliasDirective>.Empty),
Symbols\Source\SourceNamespaceSymbol.cs (30)
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; 141var members = StaticCast<Symbol>.From(this.GetNameToMembersMap().Flatten(null)); // don't sort. 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() 183var members = this.GetNameToTypeMembersMap().Flatten(); 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) 331var types = constituent.GetTypeMembers(symbol.Name, arity); 440foreach (var array in _nameToMembersMap.Values)
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; 180public sealed override ImmutableArray<ParameterSymbol> Parameters 206public sealed override ImmutableArray<MethodSymbol> ExplicitInterfaceImplementations 215public sealed override ImmutableArray<CustomModifier> RefCustomModifiers
Symbols\Source\SourceOrdinaryMethodSymbol.cs (27)
115private (TypeWithAnnotations ReturnType, ImmutableArray<ParameterSymbol> Parameters, ImmutableArray<TypeParameterConstraintClause> DeclaredConstraintsForOverrideOrImplementation) MakeParametersAndBindReturnType(BindingDiagnosticBag diagnostics) 127ImmutableArray<ParameterSymbol> parameters = ParameterHelpers.MakeParameters( 157ImmutableArray<TypeParameterConstraintClause> declaredConstraints = default; 189static void forceMethodTypeParameters(TypeWithAnnotations type, SourceOrdinaryMethodSymbol method, ImmutableArray<TypeParameterConstraintClause> declaredConstraints) 627var typeParameters1 = definition.TypeParameters; 635var typeParameters2 = implementation.TypeParameters; 636var indexedTypeParameters = IndexedTypeParameterSymbol.Take(arity); 1009public sealed override ImmutableArray<TypeParameterSymbol> TypeParameters 1010=> ImmutableArray<TypeParameterSymbol>.Empty; 1012public sealed override ImmutableArray<ImmutableArray<TypeWithAnnotations>> GetTypeParameterConstraintTypes() 1013=> ImmutableArray<ImmutableArray<TypeWithAnnotations>>.Empty; 1015public sealed override ImmutableArray<TypeParameterConstraintKind> GetTypeParameterConstraintKinds() 1016=> ImmutableArray<TypeParameterConstraintKind>.Empty; 1060var typeParameters = MakeTypeParameters(syntax, diagnostics); 1090public sealed override ImmutableArray<TypeParameterSymbol> TypeParameters 1099public sealed override ImmutableArray<ImmutableArray<TypeWithAnnotations>> GetTypeParameterConstraintTypes() 1111var constraints = this.MakeTypeParameterConstraintTypes( 1129public sealed override ImmutableArray<TypeParameterConstraintKind> GetTypeParameterConstraintKinds() 1138var constraints = this.MakeTypeParameterConstraintKinds( 1162private ImmutableArray<TypeParameterSymbol> MakeTypeParameters(MethodDeclarationSyntax syntax, BindingDiagnosticBag diagnostics) 1166return ImmutableArray<TypeParameterSymbol>.Empty; 1231var syntaxRefs = ImmutableArray.Create(parameter.GetReference()); 1232var locations = ImmutableArray.Create(location);
Symbols\Source\SourceOrdinaryMethodSymbolBase.cs (1)
80public 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)
135internal abstract ParameterSymbol WithCustomModifiersAndParams(TypeSymbol newType, ImmutableArray<CustomModifier> newCustomModifiers, ImmutableArray<CustomModifier> newRefCustomModifiers, bool newIsParams);
Symbols\Source\SourcePropertyAccessorSymbol.cs (26)
21private ImmutableArray<ParameterSymbol> _lazyParameters; 23private ImmutableArray<CustomModifier> _lazyRefCustomModifiers; 24private ImmutableArray<MethodSymbol> _lazyExplicitInterfaceImplementations; 156internal sealed override ImmutableArray<string> NotNullMembers 159internal sealed override ImmutableArray<string> NotNullWhenTrueMembers 162internal sealed override ImmutableArray<string> NotNullWhenFalseMembers 293_lazyRefCustomModifiers = ImmutableArray<CustomModifier>.Empty; 295var explicitInterfaceImplementations = ExplicitInterfaceImplementations; 353public sealed override ImmutableArray<ParameterSymbol> Parameters 362public sealed override ImmutableArray<TypeParameterSymbol> TypeParameters 364get { return ImmutableArray<TypeParameterSymbol>.Empty; } 367public sealed override ImmutableArray<ImmutableArray<TypeWithAnnotations>> GetTypeParameterConstraintTypes() 368=> ImmutableArray<ImmutableArray<TypeWithAnnotations>>.Empty; 370public sealed override ImmutableArray<TypeParameterConstraintKind> GetTypeParameterConstraintKinds() 371=> ImmutableArray<TypeParameterConstraintKind>.Empty; 422var modifiers = ImmutableArray.Create<CustomModifier>( 439public sealed override ImmutableArray<CustomModifier> RefCustomModifiers 646public sealed override ImmutableArray<MethodSymbol> ExplicitInterfaceImplementations 653ImmutableArray<MethodSymbol> explicitInterfaceImplementations; 657explicitInterfaceImplementations = ImmutableArray<MethodSymbol>.Empty; 666? ImmutableArray<MethodSymbol>.Empty 806private ImmutableArray<ParameterSymbol> ComputeParameters() 809var propertyParameters = _property.Parameters; 815return ImmutableArray<ParameterSymbol>.Empty;
Symbols\Source\SourcePropertyClonedParameterSymbolForAccessors.cs (3)
25internal override ParameterSymbol WithCustomModifiersAndParams(TypeSymbol newType, ImmutableArray<CustomModifier> newCustomModifiers, ImmutableArray<CustomModifier> newRefCustomModifiers, bool newIsParams) 32internal override ImmutableArray<int> InterpolatedStringHandlerArgumentIndexes => _originalParam.InterpolatedStringHandlerArgumentIndexes;
Symbols\Source\SourcePropertySymbol.cs (6)
563protected override (TypeWithAnnotations Type, ImmutableArray<ParameterSymbol> Parameters) MakeParametersAndBindType(BindingDiagnosticBag diagnostics) 618private static ImmutableArray<ParameterSymbol> MakeParameters( 623return ImmutableArray<ParameterSymbol>.Empty; 632var parameters = ParameterHelpers.MakeParameters( 659private ImmutableArray<ParameterSymbol> ComputeParameters(Binder binder, CSharpSyntaxNode syntax, BindingDiagnosticBag diagnostics) 662var parameters = MakeParameters(binder, this, parameterSyntaxOpt, diagnostics, addRefReadOnlyModifier: IsVirtual || IsAbstract);
Symbols\Source\SourcePropertySymbolBase.cs (26)
52private ImmutableArray<CustomModifier> _lazyRefCustomModifiers; 58private ImmutableArray<PropertySymbol> _lazyExplicitInterfaceImplementations; 63private ImmutableArray<ParameterSymbol> _lazyParameters; 123_lazyExplicitInterfaceImplementations = ImmutableArray<PropertySymbol>.Empty; 207_lazyRefCustomModifiers = ImmutableArray<CustomModifier>.Empty; 252_lazyRefCustomModifiers = _refKind != RefKind.None ? overriddenOrImplementedProperty.RefCustomModifiers : ImmutableArray<CustomModifier>.Empty; 281ImmutableArray<PropertySymbol>.Empty : 289internal sealed override ImmutableArray<string> NotNullMembers => 290GetDecodedWellKnownAttributeData()?.NotNullMembers ?? ImmutableArray<string>.Empty; 292internal sealed override ImmutableArray<string> NotNullWhenTrueMembers => 293GetDecodedWellKnownAttributeData()?.NotNullWhenTrueMembers ?? ImmutableArray<string>.Empty; 295internal sealed override ImmutableArray<string> NotNullWhenFalseMembers => 296GetDecodedWellKnownAttributeData()?.NotNullWhenFalseMembers ?? ImmutableArray<string>.Empty; 551public override ImmutableArray<Location> Locations 559public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 671public sealed override ImmutableArray<ParameterSymbol> Parameters 683public sealed override ImmutableArray<PropertySymbol> ExplicitInterfaceImplementations 700public sealed override ImmutableArray<CustomModifier> RefCustomModifiers 1395public sealed override ImmutableArray<CSharpAttributeData> GetAttributes() 1748internal ImmutableArray<SourceAttributeData> MemberNotNullAttributeIfExists 1751internal ImmutableArray<SourceAttributeData> MemberNotNullWhenAttributeIfExists 1761private ImmutableArray<SourceAttributeData> FindAttributes(AttributeDescription attributeDescription) 1764internal override void PostDecodeWellKnownAttributes(ImmutableArray<CSharpAttributeData> boundAttributes, ImmutableArray<AttributeSyntax> allAttributeSyntaxNodes, BindingDiagnosticBag diagnostics, AttributeLocation symbolPart, WellKnownAttributeData decodedData) 1849var parameters = this.Parameters; 1963protected 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; } 128internal override ImmutableArray<int> InterpolatedStringHandlerArgumentIndexes => ImmutableArray<int>.Empty;
Symbols\Source\SourceTypeParameterSymbol.cs (35)
26private readonly ImmutableArray<SyntaxReference> _syntaxRefs; 27private readonly ImmutableArray<Location> _locations; 35protected SourceTypeParameterSymbol(string name, int ordinal, ImmutableArray<Location> locations, ImmutableArray<SyntaxReference> syntaxRefs) 45public override ImmutableArray<Location> Locations 53public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 61internal ImmutableArray<SyntaxReference> SyntaxReferences 93internal override ImmutableArray<TypeWithAnnotations> GetConstraintTypes(ConsList<TypeParameterSymbol> inProgress) 96return (bounds != null) ? bounds.ConstraintTypes : ImmutableArray<TypeWithAnnotations>.Empty; 99internal override ImmutableArray<NamedTypeSymbol> GetInterfaces(ConsList<TypeParameterSymbol> inProgress) 102return (bounds != null) ? bounds.Interfaces : ImmutableArray<NamedTypeSymbol>.Empty; 117internal ImmutableArray<SyntaxList<AttributeListSyntax>> MergedAttributeDeclarationSyntaxLists 167public sealed override ImmutableArray<CSharpAttributeData> GetAttributes() 217protected abstract ImmutableArray<TypeParameterSymbol> ContainerTypeParameters 257var constraintTypes = this.ConstraintTypesNoUseSiteDiagnostics; 364var constraintTypes = this.ConstraintTypesNoUseSiteDiagnostics; 455public SourceTypeTypeParameterSymbol(SourceNamedTypeSymbol owner, string name, int ordinal, VarianceKind varianceKind, ImmutableArray<Location> locations, ImmutableArray<SyntaxReference> syntaxRefs) 574protected override ImmutableArray<TypeParameterSymbol> ContainerTypeParameters 581var constraintTypes = _owner.GetTypeParameterConstraintTypes(this.Ordinal); 598protected SourceMethodTypeParameterSymbol(string name, int ordinal, ImmutableArray<Location> locations, ImmutableArray<SyntaxReference> syntaxRefs) 641protected sealed override ImmutableArray<TypeParameterSymbol> ContainerTypeParameters 653public SourceNotOverridingMethodTypeParameterSymbol(SourceMethodSymbol owner, string name, int ordinal, ImmutableArray<Location> locations, ImmutableArray<SyntaxReference> syntaxRefs) 757var constraints = _owner.GetTypeParameterConstraintTypes(); 758var constraintTypes = constraints.IsEmpty ? ImmutableArray<TypeWithAnnotations>.Empty : constraints[Ordinal]; 770var constraintKinds = _owner.GetTypeParameterConstraintKinds(); 816var overriddenTypeParameters = overriddenMethod.TypeParameters; 817var overridingTypeParameters = _overridingMethod.TypeParameters; 876var explicitImplementations = overridingMethod.ExplicitInterfaceImplementations; 895public SourceOverridingMethodTypeParameterSymbol(OverriddenMethodTypeParameterMapBase map, string name, int ordinal, ImmutableArray<Location> locations, ImmutableArray<SyntaxReference> syntaxRefs) 1004var constraintTypes = map.SubstituteTypes(typeParameter.ConstraintTypesNoUseSiteDiagnostics);
Symbols\Source\SourceUserDefinedConversionSymbol.cs (1)
129protected override (TypeWithAnnotations ReturnType, ImmutableArray<ParameterSymbol> Parameters) MakeParametersAndBindReturnType(BindingDiagnosticBag diagnostics)
Symbols\Source\SourceUserDefinedOperatorSymbol.cs (1)
131protected override (TypeWithAnnotations ReturnType, ImmutableArray<ParameterSymbol> Parameters) MakeParametersAndBindReturnType(BindingDiagnosticBag diagnostics)
Symbols\Source\SourceUserDefinedOperatorSymbolBase.cs (11)
310protected (TypeWithAnnotations ReturnType, ImmutableArray<ParameterSymbol> Parameters) MakeParametersAndBindReturnType(BaseMethodDeclarationSyntax declarationSyntax, TypeSyntax returnTypeSyntax, BindingDiagnosticBag diagnostics) 313ImmutableArray<ParameterSymbol> parameters; 381protected abstract (TypeWithAnnotations ReturnType, ImmutableArray<ParameterSymbol> Parameters) MakeParametersAndBindReturnType(BindingDiagnosticBag diagnostics); 998public sealed override ImmutableArray<TypeParameterSymbol> TypeParameters 1000get { return ImmutableArray<TypeParameterSymbol>.Empty; } 1003public sealed override ImmutableArray<ImmutableArray<TypeWithAnnotations>> GetTypeParameterConstraintTypes() 1004=> ImmutableArray<ImmutableArray<TypeWithAnnotations>>.Empty; 1006public sealed override ImmutableArray<TypeParameterConstraintKind> GetTypeParameterConstraintKinds() 1007=> 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\SynthesizedSourceOrdinaryMethodSymbol.cs (9)
34protected abstract (TypeWithAnnotations ReturnType, ImmutableArray<ParameterSymbol> Parameters) MakeParametersAndBindReturnType(BindingDiagnosticBag diagnostics); 42public sealed override ImmutableArray<TypeParameterSymbol> TypeParameters => ImmutableArray<TypeParameterSymbol>.Empty; 44public sealed override ImmutableArray<ImmutableArray<TypeWithAnnotations>> GetTypeParameterConstraintTypes() => ImmutableArray<ImmutableArray<TypeWithAnnotations>>.Empty; 46public sealed override ImmutableArray<TypeParameterConstraintKind> GetTypeParameterConstraintKinds() => ImmutableArray<TypeParameterConstraintKind>.Empty;
Symbols\Source\ThisParameterSymbol.cs (8)
18public sealed override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 20get { return ImmutableArray<SyntaxReference>.Empty; } 93public sealed override ImmutableArray<CustomModifier> RefCustomModifiers 95get { return ImmutableArray<CustomModifier>.Empty; } 129internal sealed override ImmutableArray<int> InterpolatedStringHandlerArgumentIndexes => ImmutableArray<int>.Empty; 176public override ImmutableArray<Location> Locations 178get { 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)
75ImmutableArray<TypeWithAnnotations>.Empty); 79ImmutableArray<TypeWithAnnotations>.Empty); 83ImmutableArray<TypeWithAnnotations> constraintTypes) 103ImmutableArray<TypeWithAnnotations> constraintTypes) 129public readonly ImmutableArray<TypeWithAnnotations> ConstraintTypes; 132ImmutableArray<TypeParameterSymbol> typeParameters, 133ImmutableArray<TypeParameterConstraintClause> constraintClauses) 146static bool isValueType(TypeParameterSymbol thisTypeParameter, ImmutableArray<TypeParameterConstraintClause> constraintClauses, SmallDictionary<TypeParameterSymbol, bool> isValueTypeMap, ConsList<TypeParameterSymbol> inProgress) 197ImmutableArray<TypeParameterSymbol> typeParameters, 198ImmutableArray<TypeParameterConstraintClause> constraintClauses) 211static 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)
55public override ImmutableArray<CSharpAttributeData> GetAttributes() 93private ImmutableArray<EventSymbol> _lazyExplicitInterfaceImplementations; 97public override ImmutableArray<EventSymbol> ExplicitInterfaceImplementations 106default(ImmutableArray<EventSymbol>));
Symbols\SubstitutedFieldSymbol.cs (2)
77public override ImmutableArray<CSharpAttributeData> GetAttributes() 110public override ImmutableArray<CustomModifier> RefCustomModifiers =>
Symbols\SubstitutedMethodSymbol.cs (19)
31private ImmutableArray<ParameterSymbol> _lazyParameters; 33private ImmutableArray<TypeParameterSymbol> _lazyTypeParameters; 36private ImmutableArray<MethodSymbol> _lazyExplicitInterfaceImplementations; 93public sealed override ImmutableArray<TypeParameterSymbol> TypeParameters 109ImmutableArray<TypeParameterSymbol> typeParameters; 123ImmutableInterlocked.InterlockedCompareExchange(ref _lazyTypeParameters, typeParameters, default(ImmutableArray<TypeParameterSymbol>)); 135public override ImmutableArray<TypeWithAnnotations> TypeArgumentsWithAnnotations 211public sealed override ImmutableArray<CSharpAttributeData> GetAttributes() 216public override ImmutableArray<CSharpAttributeData> GetReturnTypeAttributes() 248public sealed override ImmutableArray<CustomModifier> RefCustomModifiers 256public sealed override ImmutableArray<ParameterSymbol> Parameters 274public sealed override ImmutableArray<MethodSymbol> ExplicitInterfaceImplementations 280return ImmutableArray<MethodSymbol>.Empty; 288default(ImmutableArray<MethodSymbol>)); 346private ImmutableArray<ParameterSymbol> SubstituteParameters() 348var unsubstitutedParameters = OriginalDefinition.Parameters; 353return ImmutableArray<ParameterSymbol>.Empty; 423var typeArguments = method.TypeArgumentsWithAnnotations; 424var typeParameters = method.OriginalDefinition.TypeParameters;
Symbols\SubstitutedNamedTypeSymbol.cs (31)
41private ImmutableArray<TypeParameterSymbol> _lazyTypeParameters; 53private ConcurrentCache<string, ImmutableArray<Symbol>> _lazyMembersByNameCache; 55private ImmutableArray<Symbol> _lazyMembers; 93public sealed override ImmutableArray<TypeParameterSymbol> TypeParameters 109ImmutableArray<TypeParameterSymbol> typeParameters; 122ImmutableInterlocked.InterlockedCompareExchange(ref _lazyTypeParameters, typeParameters, default(ImmutableArray<TypeParameterSymbol>)); 154internal sealed override ImmutableArray<NamedTypeSymbol> GetDeclaredInterfaces(ConsList<TypeSymbol> basesBeingResolved) 156return _unbound ? ImmutableArray<NamedTypeSymbol>.Empty : Map.SubstituteNamedTypes(OriginalDefinition.GetDeclaredInterfaces(basesBeingResolved)); 179internal sealed override ImmutableArray<NamedTypeSymbol> InterfacesNoUseSiteDiagnostics(ConsList<TypeSymbol> basesBeingResolved) 181return _unbound ? ImmutableArray<NamedTypeSymbol>.Empty : Map.SubstituteNamedTypes(OriginalDefinition.InterfacesNoUseSiteDiagnostics(basesBeingResolved)); 184internal override ImmutableArray<NamedTypeSymbol> GetInterfacesToEmit() 209public sealed override ImmutableArray<CSharpAttributeData> GetAttributes() 214internal sealed override ImmutableArray<NamedTypeSymbol> GetTypeMembersUnordered() 219public sealed override ImmutableArray<NamedTypeSymbol> GetTypeMembers() 224public sealed override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name) 229public sealed override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name, int arity) 238internal sealed override ImmutableArray<NamedTypeSymbol> CandidateClosedSubtypeDefinitions => OriginalDefinition.CandidateClosedSubtypeDefinitions; 240public sealed override ImmutableArray<Symbol> GetMembers() 270var result = builder.ToImmutableAndFree(); 279var existingMembers = builder.ToImmutableAndFree(); 296internal sealed override ImmutableArray<Symbol> GetMembersUnordered() 323public sealed override ImmutableArray<Symbol> GetMembers(string name) 327ImmutableArray<Symbol> result; 337private ImmutableArray<Symbol> GetMembersWorker(string name) 341var result = GetMembers().WhereAsArray((m, name) => m.Name == name, name); 346var originalMembers = OriginalDefinition.GetMembers(name); 358var substitutedMembers = builder.ToImmutableAndFree(); 362void cacheResult(ImmutableArray<Symbol> result) 368(_lazyMembersByNameCache = new ConcurrentCache<string, ImmutableArray<Symbol>>(8)); 396internal override ImmutableArray<Symbol> GetEarlyAttributeDecodingMembers() 403internal override ImmutableArray<Symbol> GetEarlyAttributeDecodingMembers(string name)
Symbols\SubstitutedParameterSymbol.cs (2)
75internal override ImmutableArray<int> InterpolatedStringHandlerArgumentIndexes => _underlyingParameter.InterpolatedStringHandlerArgumentIndexes; 81public override ImmutableArray<CustomModifier> RefCustomModifiers
Symbols\SubstitutedPropertySymbol.cs (10)
18private ImmutableArray<ParameterSymbol> _lazyParameters; 64public override ImmutableArray<CSharpAttributeData> GetAttributes() 69public override ImmutableArray<CustomModifier> RefCustomModifiers 74public override ImmutableArray<ParameterSymbol> Parameters 80ImmutableInterlocked.InterlockedCompareExchange(ref _lazyParameters, SubstituteParameters(), default(ImmutableArray<ParameterSymbol>)); 111private ImmutableArray<PropertySymbol> _lazyExplicitInterfaceImplementations; 115public override ImmutableArray<PropertySymbol> ExplicitInterfaceImplementations 124default(ImmutableArray<PropertySymbol>)); 150private ImmutableArray<ParameterSymbol> SubstituteParameters() 152var unsubstitutedParameters = OriginalDefinition.Parameters;
Symbols\SubstitutedTypeParameterSymbol.cs (2)
106internal override ImmutableArray<TypeWithAnnotations> GetConstraintTypes(ConsList<TypeParameterSymbol> inProgress) 177internal override ImmutableArray<NamedTypeSymbol> GetInterfaces(ConsList<TypeParameterSymbol> inProgress)
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; 264internal virtual void PostDecodeWellKnownAttributes(ImmutableArray<CSharpAttributeData> boundAttributes, ImmutableArray<AttributeSyntax> allAttributeSyntaxNodes, BindingDiagnosticBag diagnostics, AttributeLocation symbolPart, WellKnownAttributeData decodedData) 316ImmutableArray<Binder> binders; 318ImmutableArray<AttributeSyntax> attributesToBind = this.GetAttributesToBind(attributesSyntaxLists, symbolPart, diagnostics, compilation, attributeMatchesOpt, binderOpt, out binders); 322ImmutableArray<CSharpAttributeData> boundAttributes; 353ImmutableArray<NamedTypeSymbol> boundAttributeTypes = attributeTypesBuilder.AsImmutableOrNull(); 397boundAttributes = ImmutableArray<CSharpAttributeData>.Empty; 429Binder.CheckRequiredMembersInObjectInitializer(ctor, ImmutableArray<BoundExpression>.CastUp(boundAttribute.NamedArguments), boundAttribute.Syntax, diagnostics); 447void removeObsoleteDiagnosticsForForwardedTypes(ImmutableArray<CSharpAttributeData> boundAttributes, ImmutableArray<AttributeSyntax> attributesToBind, ref BindingDiagnosticBag diagnostics) 545protected ImmutableArray<(CSharpAttributeData, BoundAttribute)> BindAttributes(OneOrMany<SyntaxList<AttributeListSyntax>> attributeDeclarations, Binder? rootBinder) 567private void RecordPresenceOfBadAttributes(ImmutableArray<CSharpAttributeData> boundAttributes) 589private ImmutableArray<AttributeSyntax> GetAttributesToBind( 596out ImmutableArray<Binder> binders) 663binders = ImmutableArray<Binder>.Empty; 664return ImmutableArray<AttributeSyntax>.Empty; 778ImmutableArray<Binder> binders, 779ImmutableArray<NamedTypeSymbol> boundAttributeTypes, 780ImmutableArray<AttributeSyntax> attributesToBind, 826private void EarlyDecodeWellKnownAttributeTypes(ImmutableArray<NamedTypeSymbol> attributeTypes, ImmutableArray<AttributeSyntax> attributeSyntaxList) 850ImmutableArray<Binder> binders, 851ImmutableArray<AttributeSyntax> attributeSyntaxList, 852ImmutableArray<CSharpAttributeData> boundAttributes,
Symbols\Symbol.cs (17)
316ImmutableArray<Location> ISymbolInternal.Locations => this.Locations; 416public abstract ImmutableArray<Location> Locations { get; } 423var locations = this.Locations; 487public abstract ImmutableArray<SyntaxReference> DeclaringSyntaxReferences { get; } 493internal static ImmutableArray<SyntaxReference> GetDeclaringSyntaxReferenceHelper<TNode>(ImmutableArray<Location> locations) 498return ImmutableArray<SyntaxReference>.Empty; 944var declaringReferences = this.DeclaringSyntaxReferences; 1263internal bool DeriveUseSiteInfoFromParameters(ref UseSiteInfo<AssemblySymbol> result, ImmutableArray<ParameterSymbol> parameters) 1286internal bool DeriveUseSiteInfoFromCustomModifiers(ref UseSiteInfo<AssemblySymbol> result, ImmutableArray<CustomModifier> customModifiers, AllowedRequiredModifierType allowedRequiredModifierType) 1349internal static bool GetUnificationUseSiteDiagnosticRecursive<T>(ref DiagnosticInfo result, ImmutableArray<T> types, Symbol owner, ref HashSet<TypeSymbol> checkedTypes) where T : TypeSymbol 1362internal static bool GetUnificationUseSiteDiagnosticRecursive(ref DiagnosticInfo result, ImmutableArray<TypeWithAnnotations> types, Symbol owner, ref HashSet<TypeSymbol> checkedTypes) 1375internal static bool GetUnificationUseSiteDiagnosticRecursive(ref DiagnosticInfo result, ImmutableArray<CustomModifier> modifiers, Symbol owner, ref HashSet<TypeSymbol> checkedTypes) 1388internal static bool GetUnificationUseSiteDiagnosticRecursive(ref DiagnosticInfo result, ImmutableArray<ParameterSymbol> parameters, Symbol owner, ref HashSet<TypeSymbol> checkedTypes) 1402internal static bool GetUnificationUseSiteDiagnosticRecursive(ref DiagnosticInfo result, ImmutableArray<TypeParameterSymbol> typeParameters, Symbol owner, ref HashSet<TypeSymbol> checkedTypes) 1481public ImmutableArray<SymbolDisplayPart> ToDisplayParts(SymbolDisplayFormat format = null) 1494public ImmutableArray<SymbolDisplayPart> ToMinimalDisplayParts(
Symbols\SymbolDistinguisher.cs (2)
29private ImmutableArray<string> _lazyDescriptions; 163ImmutableArray<SyntaxReference> syntaxReferences = unwrappedSymbol.DeclaringSyntaxReferences;
Symbols\SymbolExtensions.cs (34)
34public static NamedTypeSymbol ConstructIfGeneric(this NamedTypeSymbol type, ImmutableArray<TypeWithAnnotations> typeArguments) 229public static bool IsContainingSymbolOfAllTypeParameters(this Symbol containingSymbol, ImmutableArray<TypeSymbol> types) 476out ImmutableArray<CustomModifier> refCustomModifiers) 484refCustomModifiers = ImmutableArray<CustomModifier>.Empty; 502refCustomModifiers = ImmutableArray<CustomModifier>.Empty; 508refCustomModifiers = ImmutableArray<CustomModifier>.Empty; 519refCustomModifiers = ImmutableArray<CustomModifier>.Empty; 681private static ImmutableArray<TISymbol> GetPublicSymbols<TISymbol>(this ImmutableArray<Symbol> symbols) 692internal static ImmutableArray<ISymbol> GetPublicSymbols(this ImmutableArray<Symbol> symbols) 697internal static ImmutableArray<IPropertySymbol> GetPublicSymbols(this ImmutableArray<PropertySymbol> symbols) 702internal static ImmutableArray<ITypeSymbol> GetPublicSymbols(this ImmutableArray<TypeSymbol> symbols) 707internal static ImmutableArray<INamedTypeSymbol> GetPublicSymbols(this ImmutableArray<NamedTypeSymbol> symbols) 712internal static ImmutableArray<ILocalSymbol> GetPublicSymbols(this ImmutableArray<LocalSymbol> symbols) 717internal static ImmutableArray<IEventSymbol> GetPublicSymbols(this ImmutableArray<EventSymbol> symbols) 722internal static ImmutableArray<ITypeParameterSymbol> GetPublicSymbols(this ImmutableArray<TypeParameterSymbol> symbols) 727internal static ImmutableArray<IParameterSymbol> GetPublicSymbols(this ImmutableArray<ParameterSymbol> symbols) 732internal static ImmutableArray<IMethodSymbol> GetPublicSymbols(this ImmutableArray<MethodSymbol> symbols) 737internal static ImmutableArray<IAssemblySymbol> GetPublicSymbols(this ImmutableArray<AssemblySymbol> symbols) 742internal static ImmutableArray<IFieldSymbol> GetPublicSymbols(this ImmutableArray<FieldSymbol> symbols) 747internal static ImmutableArray<INamespaceSymbol> GetPublicSymbols(this ImmutableArray<NamespaceSymbol> symbols) 837internal static ImmutableArray<TypeWithAnnotations> GetAllTypeArgumentsNoUseSiteDiagnostics(this NamedTypeSymbol symbol)
Symbols\Synthesized\GeneratedLabelSymbol.cs (2)
47public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 51return ImmutableArray<SyntaxReference>.Empty;
Symbols\Synthesized\GeneratedNames.cs (1)
551internal 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 (26)
20private readonly ImmutableArray<NamedTypeSymbol> _interfaces; 21private readonly ImmutableArray<Symbol> _members; 30var typeArgs = containingType.TypeArgumentsWithAnnotationsNoUseSiteDiagnostics; 131public override ImmutableArray<TypeParameterSymbol> TypeParameters => ImmutableArray<TypeParameterSymbol>.Empty; 163public override ImmutableArray<Location> Locations => ImmutableArray<Location>.Empty; 165public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences => ImmutableArray<SyntaxReference>.Empty; 173internal override ImmutableArray<TypeWithAnnotations> TypeArgumentsWithAnnotationsNoUseSiteDiagnostics => GetTypeParametersAsTypeArguments(); 185internal override ImmutableArray<NamedTypeSymbol> CandidateClosedSubtypeDefinitions => []; 223public override ImmutableArray<Symbol> GetMembers() => _members; 225public override ImmutableArray<Symbol> GetMembers(string name) => GetMembers().WhereAsArray(static (m, name) => m.Name == name, name); 227public override ImmutableArray<NamedTypeSymbol> GetTypeMembers() => ImmutableArray<NamedTypeSymbol>.Empty; 229public override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name, int arity) => ImmutableArray<NamedTypeSymbol>.Empty; 231public override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name) => ImmutableArray<NamedTypeSymbol>.Empty; 237internal override ImmutableArray<string> GetAppliedConditionalSymbols() => ImmutableArray<string>.Empty; 243internal override ImmutableArray<NamedTypeSymbol> GetDeclaredInterfaces(ConsList<TypeSymbol> basesBeingResolved) => _interfaces; 245internal override ImmutableArray<Symbol> GetEarlyAttributeDecodingMembers() => throw ExceptionUtilities.Unreachable(); 247internal override ImmutableArray<Symbol> GetEarlyAttributeDecodingMembers(string name) => throw ExceptionUtilities.Unreachable(); 251internal override ImmutableArray<NamedTypeSymbol> GetInterfacesToEmit() => _interfaces; 282internal override ImmutableArray<NamedTypeSymbol> InterfacesNoUseSiteDiagnostics(ConsList<TypeSymbol>? basesBeingResolved = null) => _interfaces;
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListProperty.cs (6)
38public override ImmutableArray<CustomModifier> RefCustomModifiers => ImmutableArray<CustomModifier>.Empty; 40public override ImmutableArray<ParameterSymbol> Parameters { get; } 48public override ImmutableArray<PropertySymbol> ExplicitInterfaceImplementations => ImmutableArray.Create(_interfaceProperty); 52public override ImmutableArray<Location> Locations => _containingType.Locations; 54public 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 (23)
259private readonly ImmutableArray<NamedTypeSymbol> _interfaces; 260private readonly ImmutableArray<Symbol> _members; 275var typeArgs = TypeArgumentsWithAnnotationsNoUseSiteDiagnostics; 851public override ImmutableArray<TypeParameterSymbol> TypeParameters { get; } 883public override ImmutableArray<Location> Locations => ImmutableArray<Location>.Empty; 885public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences => ImmutableArray<SyntaxReference>.Empty; 893internal override ImmutableArray<TypeWithAnnotations> TypeArgumentsWithAnnotationsNoUseSiteDiagnostics => GetTypeParametersAsTypeArguments(); 905internal override ImmutableArray<NamedTypeSymbol> CandidateClosedSubtypeDefinitions => []; 943public override ImmutableArray<Symbol> GetMembers() => _members; 945public override ImmutableArray<Symbol> GetMembers(string name) => GetMembers().WhereAsArray(static (m, name) => m.Name == name, name); 947public override ImmutableArray<NamedTypeSymbol> GetTypeMembers() 950: ImmutableArray<NamedTypeSymbol>.Empty; 952public override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name, int arity) 955public override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name) 962internal override ImmutableArray<string> GetAppliedConditionalSymbols() => ImmutableArray<string>.Empty; 968internal override ImmutableArray<NamedTypeSymbol> GetDeclaredInterfaces(ConsList<TypeSymbol> basesBeingResolved) => _interfaces; 970internal override ImmutableArray<Symbol> GetEarlyAttributeDecodingMembers() => throw ExceptionUtilities.Unreachable(); 972internal override ImmutableArray<Symbol> GetEarlyAttributeDecodingMembers(string name) => throw ExceptionUtilities.Unreachable(); 976internal override ImmutableArray<NamedTypeSymbol> GetInterfacesToEmit() => _interfaces; 1019internal override ImmutableArray<NamedTypeSymbol> InterfacesNoUseSiteDiagnostics(ConsList<TypeSymbol>? basesBeingResolved = null) => _interfaces;
Symbols\Synthesized\Records\SynthesizedPrimaryConstructor.cs (2)
162internal override void PostDecodeWellKnownAttributes(ImmutableArray<CSharpAttributeData> boundAttributes, ImmutableArray<AttributeSyntax> allAttributeSyntaxNodes, BindingDiagnosticBag diagnostics, AttributeLocation symbolPart, WellKnownAttributeData decodedData)
Symbols\Synthesized\Records\SynthesizedPrimaryConstructorParameterBackingFieldSymbol.cs (3)
45public override ImmutableArray<Location> Locations 52public 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)
55public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences => ImmutableArray<SyntaxReference>.Empty; 83protected override (TypeWithAnnotations Type, ImmutableArray<ParameterSymbol> Parameters) MakeParametersAndBindType(BindingDiagnosticBag diagnostics) 86ImmutableArray<ParameterSymbol>.Empty); 171public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences => ImmutableArray<SyntaxReference>.Empty;
Symbols\Synthesized\Records\SynthesizedRecordEqualityOperatorBase.cs (1)
66protected 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)
27protected override (TypeWithAnnotations ReturnType, ImmutableArray<ParameterSymbol> Parameters)
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)
97protected override (TypeWithAnnotations Type, ImmutableArray<ParameterSymbol> Parameters) MakeParametersAndBindType(BindingDiagnosticBag diagnostics) 100ImmutableArray<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)
56public override ImmutableArray<CustomModifier> RefCustomModifiers 60return ImmutableArray<CustomModifier>.Empty; // since RefKind is always None.
Symbols\Synthesized\SynthesizedBackingFieldSymbol.cs (6)
66public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 67=> ImmutableArray<SyntaxReference>.Empty; 119public override ImmutableArray<Location> Locations 129public override ImmutableArray<CustomModifier> RefCustomModifiers => _property.RefCustomModifiers; 275internal override void PostDecodeWellKnownAttributes(ImmutableArray<CSharpAttributeData> boundAttributes, ImmutableArray<AttributeSyntax> allAttributeSyntaxNodes, BindingDiagnosticBag diagnostics, AttributeLocation symbolPart, WellKnownAttributeData decodedData)
Symbols\Synthesized\SynthesizedCollectionBuilderProjectedMethodSymbol.cs (9)
38private ImmutableArray<ParameterSymbol> _lazyParameters; 42public override ImmutableArray<CSharpAttributeData> GetAttributes() 47public override ImmutableArray<CustomModifier> RefCustomModifiers => this.UnderlyingMethod.RefCustomModifiers; 86public override ImmutableArray<TypeWithAnnotations> TypeArgumentsWithAnnotations => []; 87public override ImmutableArray<TypeParameterSymbol> TypeParameters => []; 90public override ImmutableArray<ParameterSymbol> Parameters 97var parameters = this.UnderlyingMethod.Parameters; 112public override ImmutableArray<MethodSymbol> ExplicitInterfaceImplementations => throw ExceptionUtilities.Unreachable(); 137internal override ImmutableArray<int> InterpolatedStringHandlerArgumentIndexes => this.UnderlyingParameter.InterpolatedStringHandlerArgumentIndexes;
Symbols\Synthesized\SynthesizedContainer.cs (30)
24private readonly ImmutableArray<TypeParameterSymbol> _typeParameters; 25private readonly ImmutableArray<TypeParameterSymbol> _constructedFromTypeParameters; 27protected SynthesizedContainer(string name, ImmutableArray<TypeParameterSymbol> typeParametersToAlphaRename) 40_typeParameters = ImmutableArray<TypeParameterSymbol>.Empty; 78internal ImmutableArray<TypeParameterSymbol> ConstructedFromTypeParameters => _constructedFromTypeParameters; 80public sealed override ImmutableArray<TypeParameterSymbol> TypeParameters => _typeParameters; 84public override ImmutableArray<Location> Locations => ImmutableArray<Location>.Empty; 86public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences => ImmutableArray<SyntaxReference>.Empty; 96internal override ImmutableArray<TypeWithAnnotations> TypeArgumentsWithAnnotationsNoUseSiteDiagnostics 113internal sealed override ImmutableArray<NamedTypeSymbol> CandidateClosedSubtypeDefinitions => []; 121public override ImmutableArray<Symbol> GetMembers() 124return (object)constructor == null ? ImmutableArray<Symbol>.Empty : ImmutableArray.Create(constructor); 127public override ImmutableArray<Symbol> GetMembers(string name) 130return ((object)ctor != null && name == ctor.Name) ? ImmutableArray.Create<Symbol>(ctor) : ImmutableArray<Symbol>.Empty; 146internal override ImmutableArray<Symbol> GetEarlyAttributeDecodingMembers() => this.GetMembersUnordered(); 148internal override ImmutableArray<Symbol> GetEarlyAttributeDecodingMembers(string name) => this.GetMembers(name); 150public override ImmutableArray<NamedTypeSymbol> GetTypeMembers() => ImmutableArray<NamedTypeSymbol>.Empty; 152public override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name) => ImmutableArray<NamedTypeSymbol>.Empty; 154public override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name, int arity) => ImmutableArray<NamedTypeSymbol>.Empty; 164internal override ImmutableArray<NamedTypeSymbol> InterfacesNoUseSiteDiagnostics(ConsList<TypeSymbol> basesBeingResolved) => ImmutableArray<NamedTypeSymbol>.Empty; 166internal override ImmutableArray<NamedTypeSymbol> GetInterfacesToEmit() => CalculateInterfacesToEmit(); 172internal override ImmutableArray<NamedTypeSymbol> GetDeclaredInterfaces(ConsList<TypeSymbol> basesBeingResolved) => InterfacesNoUseSiteDiagnostics(basesBeingResolved); 195internal sealed override ImmutableArray<string> GetAppliedConditionalSymbols() => ImmutableArray<string>.Empty;
Symbols\Synthesized\SynthesizedDelegateSymbol.cs (14)
15private readonly ImmutableArray<ParameterSymbol> _parameters; 25public override ImmutableArray<ParameterSymbol> Parameters 168public override ImmutableArray<CustomModifier> RefCustomModifiers { get; } 176public override ImmutableArray<TypeWithAnnotations> TypeArgumentsWithAnnotations 178get { return ImmutableArray<TypeWithAnnotations>.Empty; } 181public override ImmutableArray<TypeParameterSymbol> TypeParameters 183get { return ImmutableArray<TypeParameterSymbol>.Empty; } 186public override ImmutableArray<ParameterSymbol> Parameters { get; } 188public override ImmutableArray<MethodSymbol> ExplicitInterfaceImplementations 190get { return ImmutableArray<MethodSymbol>.Empty; } 198internal override ImmutableArray<string> GetAppliedConditionalSymbols() 200return ImmutableArray<string>.Empty; 218public override ImmutableArray<Location> Locations 220get { return ImmutableArray<Location>.Empty; }
Symbols\Synthesized\SynthesizedEmbeddedAttributePropertySymbol.cs (12)
28public override ImmutableArray<CustomModifier> RefCustomModifiers => []; 34public override ImmutableArray<Location> Locations => []; 35public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences => []; 36public override ImmutableArray<PropertySymbol> ExplicitInterfaceImplementations => []; 37public override ImmutableArray<ParameterSymbol> Parameters => []; 91public override ImmutableArray<CustomModifier> RefCustomModifiers => []; 95public override ImmutableArray<TypeWithAnnotations> TypeArgumentsWithAnnotations => []; 96public override ImmutableArray<TypeParameterSymbol> TypeParameters => []; 97public override ImmutableArray<ParameterSymbol> Parameters => []; 98public override ImmutableArray<MethodSymbol> ExplicitInterfaceImplementations => []; 99public override ImmutableArray<Location> Locations => []; 115internal override ImmutableArray<string> GetAppliedConditionalSymbols() => [];
Symbols\Synthesized\SynthesizedEmbeddedAttributeSymbol.cs (35)
53public new abstract ImmutableArray<MethodSymbol> Constructors { get; } 57public override ImmutableArray<TypeParameterSymbol> TypeParameters => ImmutableArray<TypeParameterSymbol>.Empty; 75internal sealed override ImmutableArray<NamedTypeSymbol> CandidateClosedSubtypeDefinitions => []; 89public override ImmutableArray<Location> Locations => ImmutableArray<Location>.Empty; 91public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences => ImmutableArray<SyntaxReference>.Empty; 103internal override ImmutableArray<TypeWithAnnotations> TypeArgumentsWithAnnotationsNoUseSiteDiagnostics => ImmutableArray<TypeWithAnnotations>.Empty; 156public override ImmutableArray<Symbol> GetMembers() => Constructors.CastArray<Symbol>(); 158public override ImmutableArray<Symbol> GetMembers(string name) => name == WellKnownMemberNames.InstanceConstructorName ? Constructors.CastArray<Symbol>() : ImmutableArray<Symbol>.Empty; 160public override ImmutableArray<NamedTypeSymbol> GetTypeMembers() => ImmutableArray<NamedTypeSymbol>.Empty; 162public override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name) => ImmutableArray<NamedTypeSymbol>.Empty; 164public override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name, int arity) => ImmutableArray<NamedTypeSymbol>.Empty; 166internal override ImmutableArray<string> GetAppliedConditionalSymbols() => ImmutableArray<string>.Empty; 172internal override ImmutableArray<NamedTypeSymbol> GetDeclaredInterfaces(ConsList<TypeSymbol> basesBeingResolved) => ImmutableArray<NamedTypeSymbol>.Empty; 174internal override ImmutableArray<Symbol> GetEarlyAttributeDecodingMembers() => GetMembers(); 176internal override ImmutableArray<Symbol> GetEarlyAttributeDecodingMembers(string name) => GetMembers(name); 180internal override ImmutableArray<NamedTypeSymbol> GetInterfacesToEmit() => ImmutableArray<NamedTypeSymbol>.Empty; 184internal override ImmutableArray<NamedTypeSymbol> InterfacesNoUseSiteDiagnostics(ConsList<TypeSymbol> basesBeingResolved = null) => ImmutableArray<NamedTypeSymbol>.Empty; 247private readonly ImmutableArray<MethodSymbol> _constructors; 256_constructors = ImmutableArray.Create<MethodSymbol>(new SynthesizedEmbeddedAttributeConstructorSymbol(this, m => ImmutableArray<ParameterSymbol>.Empty)); 259public override ImmutableArray<MethodSymbol> Constructors => _constructors; 264private readonly ImmutableArray<ParameterSymbol> _parameters; 268Func<MethodSymbol, ImmutableArray<ParameterSymbol>> getParameters) : 274public override ImmutableArray<ParameterSymbol> Parameters => _parameters;
Symbols\Synthesized\SynthesizedEmbeddedExtensionMarkerNameAttributeSymbol.cs (7)
15private readonly ImmutableArray<MethodSymbol> _constructors; 39ImmutableArray<ParameterSymbol> getConstructorParameters(MethodSymbol ctor) 44void getConstructorBody(SyntheticBoundNodeFactory f, ArrayBuilder<BoundStatement> statements, ImmutableArray<ParameterSymbol> parameters) 53public override ImmutableArray<MethodSymbol> Constructors => _constructors; 68public override ImmutableArray<Symbol> GetMembers() 71public override ImmutableArray<Symbol> GetMembers(string name) 77WellKnownMemberNames.InstanceConstructorName => ImmutableArray<Symbol>.CastUp(_constructors),
Symbols\Synthesized\SynthesizedEmbeddedLifetimeAnnotationAttributeSymbol.cs (3)
12private readonly ImmutableArray<MethodSymbol> _constructors; 24getParameters: m => ImmutableArray<ParameterSymbol>.Empty, 28public override ImmutableArray<MethodSymbol> Constructors => _constructors;
Symbols\Synthesized\SynthesizedEmbeddedMemorySafetyRulesAttributeSymbol.cs (7)
29private readonly ImmutableArray<FieldSymbol> _fields; 30private readonly ImmutableArray<PropertySymbol> _properties; 31private readonly ImmutableArray<MethodSymbol> _constructors; 74public override ImmutableArray<MethodSymbol> Constructors => _constructors; 81private void GenerateConstructorBody(SyntheticBoundNodeFactory factory, ArrayBuilder<BoundStatement> statements, ImmutableArray<ParameterSymbol> parameters) 113public override ImmutableArray<Symbol> GetMembers() 118public override ImmutableArray<Symbol> GetMembers(string name)
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 (38)
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; } 222public override ImmutableArray<MethodSymbol> ExplicitInterfaceImplementations 224get { return ImmutableArray<MethodSymbol>.Empty; } 279internal sealed override ImmutableArray<string> GetAppliedConditionalSymbols() 281return ImmutableArray<string>.Empty; 302ImmutableArray<BoundExpression>.Empty, 303default(ImmutableArray<string>), 304default(ImmutableArray<RefKind>), 308argsToParamsOpt: default(ImmutableArray<int>), 345private readonly ImmutableArray<ParameterSymbol> _parameters; 362var arguments = Parameters.SelectAsArray((p, s) => (BoundExpression)new BoundParameter(s, p, p.Type), _userMainReturnTypeSyntax); 371argumentNamesOpt: default(ImmutableArray<string>), 372argumentRefKindsOpt: default(ImmutableArray<RefKind>), 376argsToParamsOpt: default(ImmutableArray<int>), 397argumentNamesOpt: default(ImmutableArray<string>), 398argumentRefKindsOpt: default(ImmutableArray<RefKind>), 402argsToParamsOpt: default(ImmutableArray<int>), 430public override ImmutableArray<ParameterSymbol> Parameters => _parameters; 442locals: ImmutableArray<LocalSymbol>.Empty, 465locals: ImmutableArray<LocalSymbol>.Empty, 496public override ImmutableArray<ParameterSymbol> Parameters => ImmutableArray<ParameterSymbol>.Empty; 537locals: ImmutableArray<LocalSymbol>.Empty, 538statements: ImmutableArray<BoundStatement>.Empty, 573private readonly ImmutableArray<ParameterSymbol> _parameters; 592public override ImmutableArray<ParameterSymbol> Parameters 632argumentNamesOpt: default(ImmutableArray<string>), 633argumentRefKindsOpt: default(ImmutableArray<RefKind>), 635argsToParamsOpt: default(ImmutableArray<int>),
Symbols\Synthesized\SynthesizedEnumValueFieldSymbol.cs (2)
33public 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)
160public override ImmutableArray<Location> Locations 162get { return ImmutableArray<Location>.Empty; } 165public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 169return 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) 150internal sealed override ImmutableArray<string> GetAppliedConditionalSymbols() 152return ImmutableArray<string>.Empty; 160public override ImmutableArray<TypeParameterSymbol> TypeParameters 167return ImmutableArray<TypeParameterSymbol>.Empty; 174public override ImmutableArray<ParameterSymbol> Parameters 181return ImmutableArray<ParameterSymbol>.Empty; 193public override ImmutableArray<Location> Locations 195get { return ImmutableArray<Location>.Empty; } 198public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 202return ImmutableArray<SyntaxReference>.Empty; 223public override ImmutableArray<CustomModifier> RefCustomModifiers 225get { return ImmutableArray<CustomModifier>.Empty; } 228public override ImmutableArray<TypeWithAnnotations> TypeArgumentsWithAnnotations 230get { return ImmutableArray<TypeWithAnnotations>.Empty; } 334public override ImmutableArray<MethodSymbol> ExplicitInterfaceImplementations 336get { return ImmutableArray<MethodSymbol>.Empty; }
Symbols\Synthesized\SynthesizedHotReloadExceptionConstructorSymbol.cs (2)
12private readonly ImmutableArray<ParameterSymbol> _parameters; 24public override ImmutableArray<ParameterSymbol> Parameters => _parameters;
Symbols\Synthesized\SynthesizedHotReloadExceptionSymbol.cs (17)
35private readonly ImmutableArray<Symbol> _members; 64public override ImmutableArray<Symbol> GetMembers() 67public override ImmutableArray<Symbol> GetMembers(string name) 82public override ImmutableArray<NamedTypeSymbol> GetTypeMembers() => []; 83public override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name) => []; 84public override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name, int arity) => []; 97public override ImmutableArray<TypeParameterSymbol> TypeParameters => []; 104internal override ImmutableArray<NamedTypeSymbol> CandidateClosedSubtypeDefinitions => []; 109public override ImmutableArray<Location> Locations => []; 110public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences => []; 120internal override ImmutableArray<TypeWithAnnotations> TypeArgumentsWithAnnotationsNoUseSiteDiagnostics => []; 142internal override ImmutableArray<string> GetAppliedConditionalSymbols() => []; 145internal override ImmutableArray<NamedTypeSymbol> GetDeclaredInterfaces(ConsList<TypeSymbol> basesBeingResolved) => []; 146internal override ImmutableArray<Symbol> GetEarlyAttributeDecodingMembers() => GetMembers(); 147internal override ImmutableArray<Symbol> GetEarlyAttributeDecodingMembers(string name) => GetMembers(name); 148internal override ImmutableArray<NamedTypeSymbol> GetInterfacesToEmit() => []; 150internal 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)
34f.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 (36)
29private readonly ImmutableArray<FieldSymbol> _fields; 48public override ImmutableArray<TypeParameterSymbol> TypeParameters { get; } 80public override ImmutableArray<Location> Locations => ImmutableArray<Location>.Empty; 82public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences => ImmutableArray<SyntaxReference>.Empty; 90internal override ImmutableArray<TypeWithAnnotations> TypeArgumentsWithAnnotationsNoUseSiteDiagnostics => GetTypeParametersAsTypeArguments(); 100internal override ImmutableArray<NamedTypeSymbol> CandidateClosedSubtypeDefinitions => []; 144public override ImmutableArray<Symbol> GetMembers() => ImmutableArray<Symbol>.CastUp(_fields); 146public override ImmutableArray<Symbol> GetMembers(string name) => GetMembers().WhereAsArray(m => m.Name == name); 148public override ImmutableArray<NamedTypeSymbol> GetTypeMembers() => ImmutableArray<NamedTypeSymbol>.Empty; 150public override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name, int arity) => ImmutableArray<NamedTypeSymbol>.Empty; 152public override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name) => ImmutableArray<NamedTypeSymbol>.Empty; 158internal override ImmutableArray<string> GetAppliedConditionalSymbols() => ImmutableArray<string>.Empty; 164internal override ImmutableArray<NamedTypeSymbol> GetDeclaredInterfaces(ConsList<TypeSymbol> basesBeingResolved) => ImmutableArray<NamedTypeSymbol>.Empty; 166internal override ImmutableArray<Symbol> GetEarlyAttributeDecodingMembers() => throw ExceptionUtilities.Unreachable(); 168internal override ImmutableArray<Symbol> GetEarlyAttributeDecodingMembers(string name) => throw ExceptionUtilities.Unreachable(); 172internal override ImmutableArray<NamedTypeSymbol> GetInterfacesToEmit() => ImmutableArray<NamedTypeSymbol>.Empty; 197internal override ImmutableArray<NamedTypeSymbol> InterfacesNoUseSiteDiagnostics(ConsList<TypeSymbol>? basesBeingResolved = null) => ImmutableArray<NamedTypeSymbol>.Empty; 214namedArguments: ImmutableArray<KeyValuePair<string, TypedConstant>>.Empty)); 252public override ImmutableArray<Location> Locations => ImmutableArray<Location>.Empty; 254public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences => ImmutableArray<SyntaxReference>.Empty; 264internal override ImmutableArray<TypeWithAnnotations> GetConstraintTypes(ConsList<TypeParameterSymbol> inProgress) => ImmutableArray<TypeWithAnnotations>.Empty; 270internal 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 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\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)
20private readonly ImmutableArray<ParameterSymbol> _parameters; 241public override ImmutableArray<TypeWithAnnotations> TypeArgumentsWithAnnotations 245return ImmutableArray<TypeWithAnnotations>.Empty; 249public override ImmutableArray<TypeParameterSymbol> TypeParameters 253return ImmutableArray<TypeParameterSymbol>.Empty; 257public override ImmutableArray<ParameterSymbol> Parameters 265public override ImmutableArray<MethodSymbol> ExplicitInterfaceImplementations 269return ImmutableArray<MethodSymbol>.Empty; 278public override ImmutableArray<CustomModifier> RefCustomModifiers 282return ImmutableArray<CustomModifier>.Empty; 294internal override ImmutableArray<string> GetAppliedConditionalSymbols() 296return ImmutableArray<string>.Empty; 331public override ImmutableArray<Location> Locations 335return ImmutableArray<Location>.Empty; 339public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 343return ImmutableArray<SyntaxReference>.Empty; 509public override ImmutableArray<CustomModifier> RefCustomModifiers 511get { return ImmutableArray<CustomModifier>.Empty; }
Symbols\Synthesized\SynthesizedLambdaCacheFieldSymbol.cs (2)
40public 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\SynthesizedMethodSymbol.cs (2)
21public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 25return ImmutableArray<SyntaxReference>.Empty;
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; } 133public override ImmutableArray<Location> Locations 135get { return ImmutableArray<Location>.Empty; } 138public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 142return ImmutableArray<SyntaxReference>.Empty; 221internal override ImmutableArray<int> InterpolatedStringHandlerArgumentIndexes => ImmutableArray<int>.Empty; 265ImmutableArray<CustomModifier> refCustomModifiers = default, 300internal static ImmutableArray<ParameterSymbol> DeriveParameters(MethodSymbol sourceMethod, MethodSymbol destinationMethod) 323public override ImmutableArray<CustomModifier> RefCustomModifiers 325get { return ImmutableArray<CustomModifier>.Empty; } 340private readonly ImmutableArray<CustomModifier> _refCustomModifiers; 356ImmutableArray<CustomModifier> refCustomModifiers, 376public override ImmutableArray<CustomModifier> RefCustomModifiers 381public override ImmutableArray<CSharpAttributeData> GetAttributes() 383return _baseParameterForAttributes?.GetAttributes() ?? ImmutableArray<CSharpAttributeData>.Empty;
Symbols\Synthesized\SynthesizedPrivateImplementationDetailsType.cs (31)
41public override ImmutableArray<TypeParameterSymbol> TypeParameters => ImmutableArray<TypeParameterSymbol>.Empty; 69public override ImmutableArray<Location> Locations => ImmutableArray<Location>.Empty; 71public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences => ImmutableArray<SyntaxReference>.Empty; 79internal override ImmutableArray<TypeWithAnnotations> TypeArgumentsWithAnnotationsNoUseSiteDiagnostics => ImmutableArray<TypeWithAnnotations>.Empty; 89internal override ImmutableArray<NamedTypeSymbol> CandidateClosedSubtypeDefinitions => []; 127public override ImmutableArray<Symbol> GetMembers() => ImmutableArray<Symbol>.Empty; 129public override ImmutableArray<Symbol> GetMembers(string name) => ImmutableArray<Symbol>.Empty; 131public override ImmutableArray<NamedTypeSymbol> GetTypeMembers() => ImmutableArray<NamedTypeSymbol>.Empty; 133public override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name, int arity) => ImmutableArray<NamedTypeSymbol>.Empty; 135public override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name) => ImmutableArray<NamedTypeSymbol>.Empty; 147internal override ImmutableArray<string> GetAppliedConditionalSymbols() => ImmutableArray<string>.Empty; 156internal override ImmutableArray<NamedTypeSymbol> GetDeclaredInterfaces(ConsList<TypeSymbol> basesBeingResolved) => ImmutableArray<NamedTypeSymbol>.Empty; 158internal override ImmutableArray<Symbol> GetEarlyAttributeDecodingMembers() => ImmutableArray<Symbol>.Empty; 160internal override ImmutableArray<Symbol> GetEarlyAttributeDecodingMembers(string name) => ImmutableArray<Symbol>.Empty; 170internal override ImmutableArray<NamedTypeSymbol> GetInterfacesToEmit() => ImmutableArray<NamedTypeSymbol>.Empty; 195internal 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(); 136public override ImmutableArray<TypeParameterSymbol> TypeParameters 140return ImmutableArray<TypeParameterSymbol>.Empty; 163public override ImmutableArray<ParameterSymbol> Parameters 185public override ImmutableArray<CustomModifier> RefCustomModifiers 189return ImmutableArray<CustomModifier>.Empty; 218public override ImmutableArray<ImmutableArray<TypeWithAnnotations>> GetTypeParameterConstraintTypes() 219=> ImmutableArray<ImmutableArray<TypeWithAnnotations>>.Empty; 221public override ImmutableArray<TypeParameterConstraintKind> GetTypeParameterConstraintKinds() 222=> 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; 151public override ImmutableArray<CustomModifier> RefCustomModifiers 155return ImmutableArray<CustomModifier>.Empty; 159public override ImmutableArray<TypeWithAnnotations> TypeArgumentsWithAnnotations 163return ImmutableArray<TypeWithAnnotations>.Empty; 285public override ImmutableArray<MethodSymbol> ExplicitInterfaceImplementations 289return ImmutableArray<MethodSymbol>.Empty; 374internal override ImmutableArray<string> GetAppliedConditionalSymbols() 376return ImmutableArray<string>.Empty; 388internal bool ShouldEmit(ImmutableArray<BoundInitializer> boundInitializersOpt = default) 400private bool CalculateShouldEmit(ImmutableArray<BoundInitializer> boundInitializersOpt = default)
Symbols\Synthesized\SynthesizedSubmissionConstructor.cs (2)
14private readonly ImmutableArray<ParameterSymbol> _parameters; 32public override ImmutableArray<ParameterSymbol> Parameters
Symbols\Synthesized\SynthesizedTypeParameterSymbol.cs (2)
72public override ImmutableArray<CSharpAttributeData> GetAttributes() 79return ImmutableArray<CSharpAttributeData>.Empty;
Symbols\Synthesized\SynthesizedUnionCtor.cs (2)
30public override ImmutableArray<ParameterSymbol> Parameters { get; } 32public override ImmutableArray<Location> Locations { get; }
Symbols\Synthesized\SynthesizedUnionValuePropertySymbol.cs (2)
73protected override (TypeWithAnnotations Type, ImmutableArray<ParameterSymbol> Parameters) MakeParametersAndBindType(BindingDiagnosticBag diagnostics) 76ImmutableArray<ParameterSymbol>.Empty);
Symbols\Synthesized\TypeSubstitutedLocalSymbol.cs (2)
70public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 83public 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 : 161public override ImmutableArray<CustomModifier> RefCustomModifiers => ImmutableArray<CustomModifier>.Empty;
Symbols\Tuples\TupleFieldSymbol.cs (9)
30private readonly ImmutableArray<Location> _locations; 41ImmutableArray<Location> locations, 129public sealed override ImmutableArray<CustomModifier> RefCustomModifiers => _underlyingField.RefCustomModifiers; 136public override ImmutableArray<CSharpAttributeData> GetAttributes() 177public sealed override ImmutableArray<Location> Locations 185public sealed override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 190ImmutableArray<SyntaxReference>.Empty : 261ImmutableArray<Location> locations, 327public override ImmutableArray<CSharpAttributeData> GetAttributes()
Symbols\Tuples\TupleTypeSymbol.cs (64)
34ImmutableArray<TypeWithAnnotations> elementTypesWithAnnotations, 35ImmutableArray<Location?> elementLocations, 36ImmutableArray<string?> elementNames, 40ImmutableArray<bool> errorPositions, 63var locations = locationOpt is null ? ImmutableArray<Location>.Empty : ImmutableArray.Create(locationOpt); 76static NamedTypeSymbol getTupleUnderlyingType(ImmutableArray<TypeWithAnnotations> elementTypes, CSharpSyntaxNode? syntax, CSharpCompilation compilation, BindingDiagnosticBag? diagnostics) 104ImmutableArray<string?> elementNames = default, 105ImmutableArray<bool> errorPositions = default, 106ImmutableArray<Location?> elementLocations = default, 107ImmutableArray<Location> locations = default) 129internal NamedTypeSymbol WithElementTypes(ImmutableArray<TypeWithAnnotations> newElementTypes) 163internal NamedTypeSymbol WithElementNames(ImmutableArray<string?> newElementNames, 164ImmutableArray<Location?> newElementLocations, 165ImmutableArray<bool> errorPositions, 166ImmutableArray<Location> locations) 234private static NamedTypeSymbol ConstructTupleUnderlyingType(NamedTypeSymbol firstTupleType, NamedTypeSymbol? chainedTupleTypeOpt, ImmutableArray<TypeWithAnnotations> elementTypes) 246var chainedTypes = ImmutableArray.Create(elementTypes, (loop - 1) * (ValueTupleRestPosition - 1), ValueTupleRestPosition - 1).Add(TypeWithAnnotations.Create(currentSymbol)); 282var sourceNames = literal.ArgumentNamesOpt; 288ImmutableArray<bool> inferredNames = literal.InferredNamesOpt; 290ImmutableArray<string> destinationNames = destination.TupleElementNames; 524var members = type.GetMembers(relativeDescriptor.Name); 556public sealed override ImmutableArray<string?> TupleElementNames 559private ImmutableArray<bool> TupleErrorPositions 562private ImmutableArray<Location?> TupleElementLocations 565public sealed override ImmutableArray<TypeWithAnnotations> TupleElementTypesWithAnnotations 568public sealed override ImmutableArray<FieldSymbol> TupleElements 576protected ArrayBuilder<Symbol> MakeSynthesizedTupleMembers(ImmutableArray<Symbol> currentMembers, HashSet<Symbol>? replacedFields = null) 581var elementTypes = TupleElementTypesWithAnnotations; 593var elementNames = TupleElementNames; 594var elementLocations = TupleData!.ElementLocations; 632ImmutableArray<Location> locations = getElementLocations(in elementLocations, tupleFieldIndex); 677var errorPositions = TupleErrorPositions; 805static void collectTargetTupleFields(int arity, ImmutableArray<Symbol> members, ArrayBuilder<FieldSymbol?> fieldsForElements) 816static Symbol? getWellKnownMemberInType(ImmutableArray<Symbol> members, WellKnownMember relativeMember) 825static ImmutableArray<Symbol> getOriginalFields(ImmutableArray<Symbol> members) 848static ImmutableArray<Location> getElementLocations(in ImmutableArray<Location?> elementLocations, int tupleFieldIndex) 852return ImmutableArray<Location>.Empty; 856return elementLocation == null ? ImmutableArray<Location>.Empty : ImmutableArray.Create(elementLocation); 863ImmutableArray<string?> names1 = TupleElementNames; 864ImmutableArray<string?> names2 = other.TupleElementNames; 865ImmutableArray<string?> mergedNames; 895internal ImmutableArray<string?> ElementNames { get; } 901internal ImmutableArray<Location?> ElementLocations { get; } 908internal ImmutableArray<bool> ErrorPositions { get; } 910internal ImmutableArray<Location> Locations { get; } 915private ImmutableArray<TypeWithAnnotations> _lazyElementTypes; 917private ImmutableArray<FieldSymbol> _lazyDefaultElementFields; 933Locations = ImmutableArray<Location>.Empty; 936internal TupleExtraData(NamedTypeSymbol underlyingType, ImmutableArray<string?> elementNames, 937ImmutableArray<Location?> elementLocations, ImmutableArray<bool> errorPositions, ImmutableArray<Location> locations) 958static bool areEqual<T>(ImmutableArray<T> one, ImmutableArray<T> other) 974public ImmutableArray<TypeWithAnnotations> TupleElementTypesWithAnnotations(NamedTypeSymbol tuple) 984static ImmutableArray<TypeWithAnnotations> collectTupleElementTypesWithAnnotations(NamedTypeSymbol tuple) 986ImmutableArray<TypeWithAnnotations> elementTypes; 991var extensionTupleElementTypes = tuple.TypeArgumentsWithAnnotationsNoUseSiteDiagnostics[ValueTupleRestPosition - 1].Type.TupleElementTypesWithAnnotations; 1006public ImmutableArray<FieldSymbol> TupleElements(NamedTypeSymbol tuple) 1016ImmutableArray<FieldSymbol> collectTupleElementFields(NamedTypeSymbol tuple) 1060var members = TupleUnderlyingType.GetMembers();
Symbols\TypedConstantExtensions.cs (2)
84var members = constant.Type!.GetMembers(); 163var members = constant.Type!.GetMembers();
Symbols\TypeMap.cs (21)
25internal static ImmutableArray<TypeWithAnnotations> TypeParametersAsTypeSymbolsWithAnnotations(ImmutableArray<TypeParameterSymbol> typeParameters) 30internal static ImmutableArray<TypeWithAnnotations> TypeParametersAsTypeSymbolsWithIgnoredAnnotations(ImmutableArray<TypeParameterSymbol> typeParameters) 35internal static ImmutableArray<TypeSymbol> AsTypeSymbols(ImmutableArray<TypeWithAnnotations> typesOpt) 41internal TypeMap(ImmutableArray<TypeParameterSymbol> from, ImmutableArray<TypeWithAnnotations> to, bool allowAlpha = false) 49internal TypeMap(ImmutableArray<TypeParameterSymbol> from, ImmutableArray<TypeParameterSymbol> to, bool allowAlpha = false) 69internal TypeMap(NamedTypeSymbol containingType, ImmutableArray<TypeParameterSymbol> typeParameters, ImmutableArray<TypeWithAnnotations> typeArguments) 102internal TypeMap WithAlphaRename(ImmutableArray<TypeParameterSymbol> oldTypeParameters, Symbol newOwner, bool propagateAttributes, out ImmutableArray<TypeParameterSymbol> newTypeParameters) 106newTypeParameters = ImmutableArray<TypeParameterSymbol>.Empty; 139internal TypeMap WithAlphaRename(NamedTypeSymbol oldOwner, NamedTypeSymbol newOwner, out ImmutableArray<TypeParameterSymbol> newTypeParameters) 145internal TypeMap WithAlphaRename(MethodSymbol oldOwner, Symbol newOwner, bool propagateAttributes, out ImmutableArray<TypeParameterSymbol> newTypeParameters) 151internal static ImmutableArray<TypeParameterSymbol> ConcatMethodTypeParameters(MethodSymbol oldOwner, MethodSymbol stopAt) 171var currentParameters = oldOwner.OriginalDefinition.TypeParameters; 194private 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)
83internal ImmutableArray<TypeWithAnnotations> ConstraintTypesNoUseSiteDiagnostics 92internal ImmutableArray<TypeWithAnnotations> ConstraintTypesWithDefinitionUseSiteDiagnostics(ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 94var result = ConstraintTypesNoUseSiteDiagnostics; 144public sealed override ImmutableArray<Symbol> GetMembers() 146return ImmutableArray<Symbol>.Empty; 150public sealed override ImmutableArray<Symbol> GetMembers(string name) 152return ImmutableArray<Symbol>.Empty; 156public sealed override ImmutableArray<NamedTypeSymbol> GetTypeMembers() 158return ImmutableArray<NamedTypeSymbol>.Empty; 162public sealed override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name) 164return ImmutableArray<NamedTypeSymbol>.Empty; 168public sealed override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name, int arity) 170return ImmutableArray<NamedTypeSymbol>.Empty; 243internal sealed override ImmutableArray<NamedTypeSymbol> InterfacesNoUseSiteDiagnostics(ConsList<TypeSymbol> basesBeingResolved = null) 245return ImmutableArray<NamedTypeSymbol>.Empty; 248protected sealed override ImmutableArray<NamedTypeSymbol> GetAllInterfaces() 250return ImmutableArray<NamedTypeSymbol>.Empty; 285internal ImmutableArray<NamedTypeSymbol> EffectiveInterfacesNoUseSiteDiagnostics 294internal ImmutableArray<NamedTypeSymbol> EffectiveInterfacesWithDefinitionUseSiteDiagnostics(ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 296var result = EffectiveInterfacesNoUseSiteDiagnostics; 336internal ImmutableArray<NamedTypeSymbol> AllEffectiveInterfacesNoUseSiteDiagnostics 344internal ImmutableArray<NamedTypeSymbol> AllEffectiveInterfacesWithDefinitionUseSiteDiagnostics(ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 346var result = AllEffectiveInterfacesNoUseSiteDiagnostics; 375protected static void EnsureAllConstraintsAreResolved(ImmutableArray<TypeParameterSymbol> typeParameters) 380var unused = typeParameter.GetConstraintTypes(ConsList<TypeParameterSymbol>.Empty); 384internal abstract ImmutableArray<TypeWithAnnotations> GetConstraintTypes(ConsList<TypeParameterSymbol> inProgress); 386internal abstract ImmutableArray<NamedTypeSymbol> GetInterfaces(ConsList<TypeParameterSymbol> inProgress); 437internal static bool CalculateIsReferenceTypeFromConstraintTypes(ImmutableArray<TypeWithAnnotations> constraintTypes) 449internal static bool? IsNotNullableFromConstraintTypes(ImmutableArray<TypeWithAnnotations> constraintTypes) 507internal static bool CalculateIsValueTypeFromConstraintTypes(ImmutableArray<TypeWithAnnotations> constraintTypes) 556ImmutableArray<TypeWithAnnotations> constraintTypes = this.ConstraintTypesNoUseSiteDiagnostics; 686internal override bool ApplyNullableTransforms(byte defaultTransformFlag, ImmutableArray<byte> transforms, ref int position, out TypeSymbol result)
Symbols\TypeSymbol.cs (26)
50internal ImmutableArray<NamedTypeSymbol> allInterfaces; 110var interfaces = (baseType.TypeKind == TypeKind.TypeParameter) ? ((TypeParameterSymbol)baseType).EffectiveInterfacesNoUseSiteDiagnostics : baseType.InterfacesNoUseSiteDiagnostics(); 193internal abstract ImmutableArray<NamedTypeSymbol> InterfacesNoUseSiteDiagnostics(ConsList<TypeSymbol> basesBeingResolved = null); 205internal ImmutableArray<NamedTypeSymbol> AllInterfacesNoUseSiteDiagnostics 213internal ImmutableArray<NamedTypeSymbol> AllInterfacesWithDefinitionUseSiteDiagnostics(ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 215var result = AllInterfacesNoUseSiteDiagnostics; 319protected virtual ImmutableArray<NamedTypeSymbol> GetAllInterfaces() 324return ImmutableArray<NamedTypeSymbol>.Empty; 339protected ImmutableArray<NamedTypeSymbol> MakeAllInterfaces() 346var interfaces = (baseType.TypeKind == TypeKind.TypeParameter) ? ((TypeParameterSymbol)baseType).EffectiveInterfacesNoUseSiteDiagnostics : baseType.InterfacesNoUseSiteDiagnostics(); 360ImmutableArray<NamedTypeSymbol> baseInterfaces = @interface.InterfacesNoUseSiteDiagnostics(); 417private static MultiDictionary<NamedTypeSymbol, NamedTypeSymbol> MakeInterfacesAndTheirBaseInterfaces(ImmutableArray<NamedTypeSymbol> declaredInterfaces) 580public virtual ImmutableArray<TypeWithAnnotations> TupleElementTypesWithAnnotations => default(ImmutableArray<TypeWithAnnotations>); 585public virtual ImmutableArray<string> TupleElementNames => default(ImmutableArray<string>); 591public virtual ImmutableArray<FieldSymbol> TupleElements => default(ImmutableArray<FieldSymbol>); 635internal abstract bool ApplyNullableTransforms(byte defaultTransformFlag, ImmutableArray<byte> transforms, ref int position, out TypeSymbol result); 672public ImmutableArray<SymbolDisplayPart> ToDisplayParts(CodeAnalysis.NullableFlowState topLevelNullability, SymbolDisplayFormat format = null) 686public ImmutableArray<SymbolDisplayPart> ToMinimalDisplayParts( 1159ImmutableArray<NamedTypeSymbol> allInterfaces = implementingType.AllInterfacesWithDefinitionUseSiteDiagnostics(ref useSiteInfo); 1266ImmutableArray<NamedTypeSymbol> allInterfaces, 2126var typeParameters1 = interfaceMethod.TypeParameters; 2127var typeParameters2 = implicitImpl.TypeParameters; 2128var indexedTypeParameters = IndexedTypeParameterSymbol.Take(arity);
Symbols\TypeSymbolExtensions.cs (16)
120var constraintTypes = ((TypeParameterSymbol)type).ConstraintTypesNoUseSiteDiagnostics; 457internal static ImmutableArray<NamedTypeSymbol> GetAllInterfacesOrEffectiveInterfaces(this TypeSymbol type) 471return ImmutableArray<NamedTypeSymbol>.Empty; 614public static ImmutableArray<ParameterSymbol> DelegateParameters(this TypeSymbol type) 619return default(ImmutableArray<ParameterSymbol>); 624public static ImmutableArray<ParameterSymbol> DelegateOrFunctionPointerParameters(this TypeSymbol type) 637public static bool TryGetElementTypesWithAnnotationsIfTupleType(this TypeSymbol type, out ImmutableArray<TypeWithAnnotations> elementTypes) 646elementTypes = default(ImmutableArray<TypeWithAnnotations>); 905var fields = anonymous.TypeDescriptor.Fields; 936var typeArguments = ((NamedTypeSymbol)current).TypeArgumentsWithAnnotationsNoUseSiteDiagnostics; 1698var typeArguments = type.TypeArgumentsWithAnnotationsNoUseSiteDiagnostics; 1699var typeParameters = type.OriginalDefinition.TypeParameters; 1769internal static ImmutableArray<TypeParameterSymbol> GetAllTypeParameters(this NamedTypeSymbol type) 2072var typeParameters = originalDefinition.GetAllTypeParameters(); 2131var paramTypes = ImmutableArray<TypeWithAnnotations>.Empty;
Symbols\TypeUnification.cs (3)
184var nt1Arguments = nt1.TypeArgumentsWithAnnotationsNoUseSiteDiagnostics; 185var nt2Arguments = nt2.TypeArgumentsWithAnnotationsNoUseSiteDiagnostics; 298var 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)
239private static void CheckParametersVarianceSafety(ImmutableArray<ParameterSymbol> parameters, Symbol context, BindingDiagnosticBag diagnostics) 261private static void CheckTypeParametersVarianceSafety(ImmutableArray<TypeParameterSymbol> typeParameters, MethodSymbol context, BindingDiagnosticBag diagnostics) 488var syntaxRefs = symbol.DeclaringSyntaxReferences;
Symbols\Wrapped\WrappedEventSymbol.cs (2)
72public override ImmutableArray<Location> Locations 80public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
Symbols\Wrapped\WrappedFieldSymbol.cs (3)
117internal override ImmutableArray<byte> MarshallingDescriptor 186public override ImmutableArray<Location> Locations 194public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
Symbols\Wrapped\WrappedMethodSymbol.cs (7)
95public override ImmutableArray<Location> Locations 103public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 232internal override ImmutableArray<string> GetAppliedConditionalSymbols() 322internal sealed override ImmutableArray<string> NotNullMembers => UnderlyingMethod.NotNullMembers; 324internal sealed override ImmutableArray<string> NotNullWhenTrueMembers => UnderlyingMethod.NotNullWhenTrueMembers; 326internal sealed override ImmutableArray<string> NotNullWhenFalseMembers => UnderlyingMethod.NotNullWhenFalseMembers; 336internal override ImmutableArray<byte> ReturnValueMarshallingDescriptor
Symbols\Wrapped\WrappedNamedTypeSymbol.cs (3)
129public override ImmutableArray<Location> Locations 142public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 249internal 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() 121public override ImmutableArray<CustomModifier> RefCustomModifiers
Symbols\Wrapped\WrappedPropertySymbol.cs (2)
94public override ImmutableArray<Location> Locations 102public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
Symbols\Wrapped\WrappedTypeParameterSymbol.cs (3)
146public override ImmutableArray<Location> Locations 154public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 180public override ImmutableArray<CSharpAttributeData> GetAttributes()
Syntax\CSharpSyntaxTree.cs (3)
36private ImmutableArray<int> _preprocessorStateChangePositions; 41private ImmutableArray<InternalSyntax.DirectiveStack> _preprocessorStates; 170internal 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)
56private readonly ImmutableArray<byte> _checksum; 64internal 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\TypeUnionValueSet.cs (9)
26private readonly ImmutableArray<CaseInfo> _typesInUnion; 62ImmutableArray<CaseInfo> typesInUnion, 68Debug.Assert(!typesInUnion.Any(t => t.CaseType is NamedTypeSymbol { IsClosed: true } closedType && closedType.TryGetClosedSubtypes(out var subtypes) && subtypes is not [])); 75internal static TypeUnionValueSet AllValues(ImmutableArray<CaseInfo> typesInUnion, ConversionsBase conversions) 80internal static TypeUnionValueSet FromTypeMatch(ImmutableArray<CaseInfo> typesInUnion, TypeSymbol type, ConversionsBase conversions, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 91private static bool AnyTypeFromUnionMightMatch(ImmutableArray<CaseInfo> typesInUnion, TypeSymbol type, ConversionsBase conversions, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 112internal static TypeUnionValueSet FromNullMatch(ImmutableArray<CaseInfo> typesInUnion, ConversionsBase conversions) 117internal static TypeUnionValueSet FromNonNullMatch(ImmutableArray<CaseInfo> typesInUnion, ConversionsBase conversions) 188&& effectiveClosedBase.TryGetClosedSubtypes(out var derivedTypes)
Utilities\ValueSetFactory.ClosedClassTypeUnionValueSetFactory.cs (4)
27if (possibleClosedClass is not NamedTypeSymbol namedType || !namedType.TryGetClosedSubtypes(out var subtypes) || subtypes.IsEmpty) 36private static void ExpandClosedSubtypesCore(ImmutableArray<NamedTypeSymbol> subtypes, NamedTypeSymbol originalBase, ArrayBuilder<TypeUnionValueSet.CaseInfo> builder, HashSet<TypeSymbol> setBuilder) 41if (!subtype.TryGetClosedSubtypes(out var innerSubtypes) || innerSubtypes.IsEmpty) 62private ImmutableArray<TypeUnionValueSet.CaseInfo> ClosedSubtypes()
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;
Utilities\ValueSetFactory.UnionTypeTypeUnionValueSetFactory.cs (1)
24private ImmutableArray<TypeUnionValueSet.CaseInfo> AdjustedTypesInUnion()
Microsoft.CodeAnalysis.CSharp.Analyzers (2)
MetaAnalyzers\CSharpSemanticModelGetDeclaredSymbolAlwaysReturnsNullAnalyzer.cs (1)
43public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(DiagnosticDescriptor, FieldDiagnosticDescriptor);
MetaAnalyzers\CSharpSymbolIsBannedInAnalyzersAnalyzer.cs (1)
19protected override ImmutableArray<SyntaxKind> BaseTypeSyntaxKinds => ImmutableArray.Create(SyntaxKind.BaseList);
Microsoft.CodeAnalysis.CSharp.CodeStyle (174)
src\roslyn\src\Analyzers\CSharp\Analyzers\AddRequiredParentheses\CSharpAddRequiredExpressionParenthesesDiagnosticAnalyzer.cs (2)
20private static readonly ImmutableArray<SyntaxKind> s_kinds = 46protected override ImmutableArray<SyntaxKind> GetSyntaxNodeKinds()
src\roslyn\src\Analyzers\CSharp\Analyzers\AddRequiredParentheses\CSharpAddRequiredPatternParenthesesDiagnosticAnalyzer.cs (2)
20private static readonly ImmutableArray<SyntaxKind> s_kinds = [SyntaxKind.AndPattern, SyntaxKind.OrPattern]; 22protected override ImmutableArray<SyntaxKind> GetSyntaxNodeKinds()
src\roslyn\src\Analyzers\CSharp\Analyzers\ForEachCast\CSharpForEachCastDiagnosticAnalyzer.cs (1)
23protected override ImmutableArray<SyntaxKind> GetSyntaxKinds()
src\roslyn\src\Analyzers\CSharp\Analyzers\InlineDeclaration\CSharpInlineDeclarationDiagnosticAnalyzer.cs (1)
229var allLocations = ImmutableArray.Create(
src\roslyn\src\Analyzers\CSharp\Analyzers\InvokeDelegateWithConditionalAccess\InvokeDelegateWithConditionalAccessAnalyzer.cs (1)
171ImmutableArray<Location> additionalLocations,
src\roslyn\src\Analyzers\CSharp\Analyzers\MakeLocalFunctionStatic\MakeLocalFunctionStaticHelper.cs (1)
43public static bool CanMakeLocalFunctionStaticByRefactoringCaptures(LocalFunctionStatementSyntax localFunction, SemanticModel semanticModel, out ImmutableArray<ISymbol> captures)
src\roslyn\src\Analyzers\CSharp\Analyzers\MatchFolderAndNamespace\CSharpMatchFolderAndNamespaceDiagnosticAnalyzer.cs (1)
36protected override ImmutableArray<SyntaxKind> GetSyntaxKindsToAnalyze()
src\roslyn\src\Analyzers\CSharp\Analyzers\NamingStyle\CSharpNamingStyleDiagnosticAnalyzer.cs (1)
17protected override ImmutableArray<SyntaxKind> SupportedSyntaxKinds { get; } =
src\roslyn\src\Analyzers\CSharp\Analyzers\NewLines\EmbeddedStatementPlacement\EmbeddedStatementPlacementDiagnosticAnalyzer.cs (1)
78var additionalLocations = ImmutableArray.Create(statement.GetLocation());
src\roslyn\src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryCast\CSharpRemoveUnnecessaryCastDiagnosticAnalyzer.cs (1)
22protected override ImmutableArray<SyntaxKind> SyntaxKindsOfInterest { get; } =
src\roslyn\src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryImports\CSharpRemoveUnnecessaryImportsDiagnosticAnalyzer.cs (3)
40protected override ImmutableArray<SyntaxNode> MergeImports(ImmutableArray<UsingDirectiveSyntax> unnecessaryImports) 41=> ImmutableArray<SyntaxNode>.CastUp(unnecessaryImports);
src\roslyn\src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryNullableDirective\CSharpRemoveUnnecessaryNullableDirectiveDiagnosticAnalyzer.cs (6)
74private static ImmutableArray<TextSpan> AnalyzeCodeBlock(CodeBlockAnalysisContext context, int positionOfFirstReducingNullableDirective) 81private ImmutableArray<Diagnostic> AnalyzeSemanticModel(SemanticModelAnalysisContext context, int positionOfFirstReducingNullableDirective, TextSpanMutableIntervalTree? codeBlockIntervalTree, TextSpanMutableIntervalTree? possibleNullableImpactIntervalTree) 213public bool TryReportNullableImpactingSpans(TextSpan span, ImmutableArray<TextSpan> nullableImpactingSpans) 217private bool TryProceedOrReportNullableImpactingSpans(TextSpan span, ImmutableArray<TextSpan>? nullableImpactingSpans) 279var nullableImpactingSpans = CSharpRemoveUnnecessaryNullableDirectiveDiagnosticAnalyzer.AnalyzeCodeBlock(context, syntaxTreeState.PositionOfFirstReducingNullableDirective.Value); 307var diagnostics = _analyzer.AnalyzeSemanticModel(context, positionOfFirstReducingNullableDirective, syntaxTreeState.IntervalTree, syntaxTreeState.PossibleNullableImpactIntervalTree);
src\roslyn\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\roslyn\src\Analyzers\CSharp\Analyzers\RemoveUnnecessarySuppressions\UnnecessaryNullableWarningSuppressionsUtilities.cs (4)
38var semanticDiagnostics = semanticModel.GetDiagnostics(postfixUnary.Span, cancellationToken); 154var typeDeclarationDiagnostics = updatedSemanticModel.GetDiagnostics(typeDeclaration.Span, cancellationToken); 166Func<SyntaxNode, ImmutableArray<Diagnostic>> computeDiagnostics) 171var diagnostics = computeDiagnostics(rewrittenAncestor);
src\roslyn\src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryUnsafeModifier\UnnecessaryUnsafeModifierUtilities.cs (2)
30var semanticDiagnostics = semanticModel.GetDiagnostics(declaration.Span, cancellationToken); 114var updatedDiagnostics = updatedSemanticModel.GetDiagnostics(newNode.Span, cancellationToken);
src\roslyn\src\Analyzers\CSharp\Analyzers\RemoveUnreachableCode\CSharpRemoveUnreachableCodeDiagnosticAnalyzer.cs (5)
58var diagnostics = semanticModel.GetDiagnostics(context.FilterSpan, cancellationToken); 119var additionalLocations = ImmutableArray.Create(firstStatementLocation); 129var sections = RemoveUnreachableCodeHelpers.GetSubsequentUnreachableSections(firstUnreachableStatement); 130foreach (var section in sections) 138var additionalUnnecessaryLocations = ImmutableArray.Create(location);
src\roslyn\src\Analyzers\CSharp\Analyzers\RemoveUnreachableCode\RemoveUnreachableCodeHelpers.cs (8)
13public static ImmutableArray<ImmutableArray<StatementSyntax>> GetSubsequentUnreachableSections(StatementSyntax firstUnreachableStatement) 15ImmutableArray<StatementSyntax> siblingStatements; 56var sections = ArrayBuilder<ImmutableArray<StatementSyntax>>.GetInstance(); 81var section = currentSection.ToImmutableAndFree(); 91var lastSection = currentSection.ToImmutableAndFree(); 97private static void AddIfNonEmpty(ArrayBuilder<ImmutableArray<StatementSyntax>> sections, ImmutableArray<StatementSyntax> lastSection)
src\roslyn\src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForArrayDiagnosticAnalyzer.cs (7)
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( 175var matches = initializer.Parent switch 208var locations = ImmutableArray.Create(expression.GetLocation()); 217var additionalUnnecessaryLocations = ImmutableArray.Create(
src\roslyn\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( 220is nameof(ImmutableArray<>.Builder.ToImmutable) 221or nameof(ImmutableArray<>.Builder.MoveToImmutable) 222or nameof(ImmutableArray<>.Builder.ToArray) 252ImmutableArray<CollectionMatch<SyntaxNode>> Matches,
src\roslyn\src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForCreateDiagnosticAnalyzer.cs (2)
48var locations = ImmutableArray.Create(invocationExpression.GetLocation()); 59var additionalUnnecessaryLocations = ImmutableArray.Create(
src\roslyn\src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForFluentDiagnosticAnalyzer.cs (4)
41private static readonly ImmutableArray<string> s_suffixes = 56nameof(ImmutableArray<>), 467ImmutableArray<CollectionMatch<ArgumentSyntax>> PreMatches, 468ImmutableArray<CollectionMatch<ArgumentSyntax>> PostMatches,
src\roslyn\src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForNewDiagnosticAnalyzer.cs (2)
90var locations = ImmutableArray.Create(objectCreationExpression.GetLocation()); 101var additionalUnnecessaryLocations = ImmutableArray.Create(
src\roslyn\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\roslyn\src\Analyzers\CSharp\Analyzers\UseCollectionExpression\UseCollectionExpressionHelpers.cs (2)
605var elements = initializer.Expressions.GetWithSeparators().SelectAsArray( 747public static ImmutableArray<CollectionMatch<StatementSyntax>> TryGetMatches<TArrayCreationExpressionSyntax>(
src\roslyn\src\Analyzers\CSharp\Analyzers\UseCollectionInitializer\CSharpUseCollectionInitializerAnalyzer.cs (1)
290var addMethods = this.GetAddMethods(cancellationToken);
src\roslyn\src\Analyzers\CSharp\Analyzers\UseCollectionInitializer\CSharpUseCollectionInitializerDiagnosticAnalyzer.cs (2)
54ImmutableArray<CollectionMatch<SyntaxNode>> preMatches, 67static IEnumerable<CollectionElementSyntax> GetMatchElements(ImmutableArray<CollectionMatch<SyntaxNode>> preMatches)
src\roslyn\src\Analyzers\CSharp\Analyzers\UseCompoundAssignment\Utilities.cs (1)
11public static readonly ImmutableArray<(SyntaxKind, SyntaxKind, SyntaxKind)> Kinds =
src\roslyn\src\Analyzers\CSharp\Analyzers\UseDeconstruction\CSharpUseDeconstructionDiagnosticAnalyzer.cs (3)
93out ImmutableArray<MemberAccessExpressionSyntax> memberAccessExpressions, 123out ImmutableArray<MemberAccessExpressionSyntax> memberAccessExpressions, 142out ImmutableArray<MemberAccessExpressionSyntax> memberAccessExpressions,
src\roslyn\src\Analyzers\CSharp\Analyzers\UseExpressionBody\Helpers\UseExpressionBodyHelper.cs (2)
22public abstract ImmutableArray<SyntaxKind> SyntaxKinds { get; } 35public static readonly ImmutableArray<UseExpressionBodyHelper> Helpers =
src\roslyn\src\Analyzers\CSharp\Analyzers\UseExpressionBody\Helpers\UseExpressionBodyHelper`1.cs (2)
34ImmutableArray<SyntaxKind> syntaxKinds) : UseExpressionBodyHelper 42public override ImmutableArray<SyntaxKind> SyntaxKinds { get; } = syntaxKinds;
src\roslyn\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\roslyn\src\Analyzers\CSharp\Analyzers\UseLabeledJumpStatements\CSharpUseLabeledJumpStatementsHelpers.cs (3)
34out ImmutableArray<GotoStatementSyntax> gotos) 84out ImmutableArray<GotoStatementSyntax> gotos) 136out ImmutableArray<GotoStatementSyntax> gotos)
src\roslyn\src\Analyzers\CSharp\Analyzers\UseLabeledJumpStatements\FlagJumpPattern.cs (3)
22public required ImmutableArray<IfStatementSyntax> GuardStatements { get; init; } 25public required ImmutableArray<(ExpressionStatementSyntax Assignment, BreakStatementSyntax Break)> AssignmentAndBreakSites { get; init; } 29public required ImmutableArray<ExpressionStatementSyntax> ResetStatements { get; init; }
src\roslyn\src\Analyzers\CSharp\Analyzers\UseLocalFunction\CSharpUseLocalFunctionDiagnosticAnalyzer.cs (4)
127if (!CanReplaceAnonymousWithLocalFunction(semanticModel, expressionType, local, container, anonymousFunction, out var referenceLocations, cancellationToken)) 138var additionalLocations = ImmutableArray.Create( 243AnonymousFunctionExpressionSyntax anonymousFunction, out ImmutableArray<Location> referenceLocations, CancellationToken cancellationToken) 423var typeParams = localEnclosingSymbol.GetTypeParameters();
src\roslyn\src\Analyzers\CSharp\Analyzers\UseNameofInNullableAttribute\CSharpUseNameofInNullableAttributeDiagnosticAnalyzer.cs (1)
96var symbols = semanticModel.LookupSymbols(argument.Expression.SpanStart, name: stringValue);
src\roslyn\src\Analyzers\CSharp\Analyzers\UseNullPropagation\CSharpUseNullPropagationDiagnosticAnalyzer.cs (1)
72out ImmutableArray<StatementSyntax> trueStatements)
src\roslyn\src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpAsAndNullCheckDiagnosticAnalyzer.cs (1)
262var additionalLocations = ImmutableArray.Create(
src\roslyn\src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpIsAndCastCheckDiagnosticAnalyzer.cs (1)
147var additionalLocations = ImmutableArray.Create(
src\roslyn\src\Analyzers\CSharp\Analyzers\UsePrimaryConstructor\CSharpUsePrimaryConstructorDiagnosticAnalyzer.cs (2)
347var constructors = namedType.InstanceConstructors; 574var symbols = semanticModel.LookupSymbols(operation.Syntax.SpanStart, name: parameter.Name);
src\roslyn\src\Analyzers\CSharp\Analyzers\UseSimpleUsingStatement\UseSimpleUsingStatementDiagnosticAnalyzer.cs (1)
170private static bool DeclaredLocalCausesCollision(Dictionary<string, ArrayBuilder<ISymbol>> symbolNameToExistingSymbol, ImmutableArray<ILocalSymbol> locals)
src\roslyn\src\Analyzers\CSharp\Analyzers\UseTupleSwap\CSharpUseTupleSwapDiagnosticAnalyzer.cs (1)
113var additionalLocations = ImmutableArray.Create(
src\roslyn\src\Analyzers\CSharp\Analyzers\UseUtf8StringLiteral\UseUtf8StringLiteralDiagnosticAnalyzer.cs (5)
90var elements = arrayCreationOperation.Initializer.ElementValues; 117private void ReportParameterArrayDiagnostic(OperationAnalysisContext context, SyntaxNode syntaxNode, ImmutableArray<IOperation> elements, NotificationOption2 notificationOption, ArrayCreationOperationLocation operationLocation) 140var additionalLocations = ImmutableArray.Create(syntaxNode.GetLocation()); 149internal static bool TryConvertToUtf8String(StringBuilder? builder, ImmutableArray<IOperation> arrayCreationElements) 192private static bool TryGetNextRune(ImmutableArray<IOperation> arrayCreationElements, int startIndex, out Rune rune, out int bytesConsumed)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeStyle\CSharpCodeStyleOptions.cs (3)
18private static readonly ImmutableArray<IOption2>.Builder s_editorConfigOptionsBuilder = ImmutableArray.CreateBuilder<IOption2>(); 157private static readonly ImmutableArray<SyntaxKind> s_preferredModifierOrderDefault = 316internal static readonly ImmutableArray<IOption2> EditorConfigOptions = s_editorConfigOptionsBuilder.ToImmutable();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ArgumentSyntaxExtensions.cs (2)
53var symbols = symbolInfo.GetBestOrAllSymbols(); 60var parameters = symbol.GetParameters();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\AttributeArgumentSyntaxExtensions.cs (2)
39var symbols = semanticModel.GetSymbolInfo(invocableExpression, cancellationToken).GetBestOrAllSymbols(); 45var parameters = symbol.GetParameters();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\BlockSyntaxExtensions.cs (3)
66var leadingDirectives = statement.GetLeadingTrivia().WhereAsArray(IsAnyCodeDirective); 67var closeBraceLeadingDirectives = block.CloseBraceToken.LeadingTrivia.WhereAsArray(IsAnyCodeDirective); 82var conditionalDirectives = firstDirective.GetMatchingConditionalDirectives(cancellationToken);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\DirectiveSyntaxExtensions.cs (2)
50public static ImmutableArray<DirectiveTriviaSyntax> GetMatchingConditionalDirectives(this DirectiveTriviaSyntax directive, CancellationToken cancellationToken) 55if (directiveConditionalMap.TryGetValue(directive, out var result))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
950var typeArguments = tupleType.GetTypeArguments();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.cs (1)
17private static readonly ConditionalWeakTable<MemberDeclarationSyntax, Dictionary<string, ImmutableArray<SyntaxToken>>> s_declarationCache = new();
src\roslyn\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\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (5)
559var directives = ((DirectiveTriviaSyntax)structure).GetMatchingConditionalDirectives(cancellationToken); 644public static ImmutableArray<SyntaxTrivia> GetLeadingBlankLines<TSyntaxNode>(this TSyntaxNode node) where TSyntaxNode : SyntaxNode 650public static TSyntaxNode GetNodeWithoutLeadingBlankLines<TSyntaxNode>(this TSyntaxNode node, out ImmutableArray<SyntaxTrivia> strippedTrivia) where TSyntaxNode : SyntaxNode 653public static ImmutableArray<SyntaxTrivia> GetLeadingBannerAndPreprocessorDirectives<TSyntaxNode>(this TSyntaxNode node) where TSyntaxNode : SyntaxNode 659public static TSyntaxNode GetNodeWithoutLeadingBannerAndPreprocessorDirectives<TSyntaxNode>(this TSyntaxNode node, out ImmutableArray<SyntaxTrivia> strippedTrivia) where TSyntaxNode : SyntaxNode
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\CSharpFormattingOptions2.cs (3)
17private static readonly ImmutableArray<IOption2>.Builder s_editorConfigOptionsBuilder = ImmutableArray.CreateBuilder<IOption2>(); 282internal static readonly ImmutableArray<IOption2> EditorConfigOptions = s_editorConfigOptionsBuilder.ToImmutable(); 287internal static readonly ImmutableArray<IOption2> UndocumentedOptions = [CollectionExpressionWrappingLength];
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\CSharpFormatEngine.cs (1)
18ImmutableArray<AbstractFormattingRule> formattingRules,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Helpers\RemoveUnnecessaryImports\CSharpUnnecessaryImportsProvider.cs (2)
23public override ImmutableArray<UsingDirectiveSyntax> GetUnnecessaryImports( 30var diagnostics = model.GetDiagnostics(cancellationToken: cancellationToken);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Indentation\CSharpSmartTokenFormatter.cs (4)
24private readonly ImmutableArray<AbstractFormattingRule> _formattingRules; 31ImmutableArray<AbstractFormattingRule> formattingRules, 50var smartTokenformattingRules = _formattingRules; 105ImmutableArray<AbstractFormattingRule> smartTokenFormattingRules = [new SmartTokenFormattingRule(), .. _formattingRules];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SelectedMembers\CSharpSelectedMembers.cs (1)
28protected override ImmutableArray<(SyntaxNode declarator, SyntaxToken identifier)> GetDeclaratorsAndIdentifiers(MemberDeclarationSyntax member)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SemanticFacts\CSharpSemanticFacts.cs (8)
206public ImmutableArray<IMethodSymbol> GetDeconstructionAssignmentMethods(SemanticModel semanticModel, SyntaxNode node) 218public ImmutableArray<IMethodSymbol> GetDeconstructionForEachMethods(SemanticModel semanticModel, SyntaxNode node) 279public ImmutableArray<ISymbol> GetBestOrAllSymbols(SemanticModel semanticModel, SyntaxNode? node, SyntaxToken token, CancellationToken cancellationToken) 292static ImmutableArray<ISymbol> GetCallingConventionSymbols(SemanticModel model, FunctionPointerUnmanagedCallingConventionSyntax syntax) 305private ImmutableArray<ISymbol> GetSymbolInfo(SemanticModel semanticModel, SyntaxNode node, SyntaxToken token, CancellationToken cancellationToken) 355var symbols = GetOrderCandidates(); 392ImmutableArray<ISymbol> GetOrderCandidates() 434public ImmutableArray<IMethodSymbol> GetLocalFunctionSymbols(Compilation compilation, ISymbol symbol, CancellationToken cancellationToken)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
1286public ImmutableArray<SyntaxNode> GetMatchingConditionalDirectives(SyntaxNode directive, CancellationToken cancellationToken)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (4)
912Func<TConditionalOrSwitchExpression, ImmutableArray<ExpressionSyntax>> getArmExpressions, 1113var parameters = op.GetParameters(); 1623var originalParameters = originalMethodSymbol.Parameters; 1624var rewrittenParameters = rewrittenMethodSymbol.Parameters;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\CSharpLightweightOverloadResolution.cs (2)
18public IMethodSymbol? RefineOverload(SymbolInfo symbolInfo, ImmutableArray<IMethodSymbol> candidates) 21public (IMethodSymbol? method, int parameterIndex) RefineOverloadAndPickParameter(SymbolInfo symbolInfo, ImmutableArray<IMethodSymbol> candidates)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\SpeculationAnalyzer.cs (2)
588protected override ImmutableArray<ArgumentSyntax> GetArguments(ExpressionSyntax expression) 890out ImmutableArray<ILocalSymbol> localVariables)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\TypeStyle\CSharpUseImplicitTypeHelper.cs (1)
209var memberGroup = semanticModel.GetMemberGroup(invocationExpression.Expression, cancellationToken);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\UsingsAndExternAliasesOrganizer.cs (1)
127initialList[0] = initialList[0].GetNodeWithoutLeadingBannerAndPreprocessorDirectives(out var leadingTrivia);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (454)
src\cef93d2425d77fca\CSharpAddParenthesesAroundConditionalExpressionInInterpolatedStringCodeFixProvider.cs (1)
31public override ImmutableArray<string> FixableDiagnosticIds => [CS8361];
src\roslyn\src\Analyzers\CSharp\CodeFixes\AddAnonymousTypeMemberName\CSharpAddAnonymousTypeMemberNameCodeFixProvider.cs (1)
28public override ImmutableArray<string> FixableDiagnosticIds { get; }
src\roslyn\src\Analyzers\CSharp\CodeFixes\AddBraces\CSharpAddBracesCodeFixProvider.cs (2)
22public override ImmutableArray<string> FixableDiagnosticIds 31Document document, ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\CSharp\CodeFixes\AddExplicitCast\CSharpAddExplicitCastCodeFixProvider.cs (1)
38public override ImmutableArray<string> FixableDiagnosticIds => [CS0266, CS1503];
src\roslyn\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\roslyn\src\Analyzers\CSharp\CodeFixes\AddObsoleteAttribute\CSharpAddObsoleteAttributeCodeFixProvider.cs (1)
21public override ImmutableArray<string> FixableDiagnosticIds { get; } =
src\roslyn\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\roslyn\src\Analyzers\CSharp\CodeFixes\AliasAmbiguousType\CSharpAliasAmbiguousTypeCodeFixProvider.cs (1)
25public override ImmutableArray<string> FixableDiagnosticIds
src\roslyn\src\Analyzers\CSharp\CodeFixes\AssignOutParameters\AbstractAssignOutParametersCodeFixProvider.cs (11)
25public sealed override ImmutableArray<string> FixableDiagnosticIds { get; } = 94private static async Task<MultiDictionary<SyntaxNode, (SyntaxNode exprOrStatement, ImmutableArray<IParameterSymbol>)>> GetUnassignedParametersAsync( 95Document document, ImmutableArray<Diagnostic> diagnostics, CancellationToken cancellationToken) 100var containersAndLocations = 104var result = new MultiDictionary<SyntaxNode, (SyntaxNode exprOrStatement, ImmutableArray<IParameterSymbol>)>(); 112var outParameters = parameterList.Parameters 120var unassignedParameters = outParameters.WhereAsArray( 134Document document, ImmutableArray<Diagnostic> diagnostics, 149MultiDictionary<SyntaxNode, (SyntaxNode exprOrStatement, ImmutableArray<IParameterSymbol> unassignedParameters)>.ValueSet values, 152protected static ImmutableArray<SyntaxNode> GenerateAssignmentStatements( 153SyntaxGenerator generator, ImmutableArray<IParameterSymbol> unassignedParameters)
src\roslyn\src\Analyzers\CSharp\CodeFixes\AssignOutParameters\AssignOutParametersAboveReturnCodeFixProvider.cs (3)
33MultiDictionary<SyntaxNode, (SyntaxNode exprOrStatement, ImmutableArray<IParameterSymbol> unassignedParameters)>.ValueSet values, 38var statements = GenerateAssignmentStatements(editor.Generator, unassignedParameters); 44SyntaxEditor editor, SyntaxNode exprOrStatement, ImmutableArray<SyntaxNode> statements)
src\roslyn\src\Analyzers\CSharp\CodeFixes\AssignOutParameters\AssignOutParametersAtStartCodeFixProvider.cs (2)
52MultiDictionary<SyntaxNode, (SyntaxNode exprOrStatement, ImmutableArray<IParameterSymbol> unassignedParameters)>.ValueSet values, 56var unassignedParameters =
src\roslyn\src\Analyzers\CSharp\CodeFixes\ConvertNamespace\ConvertNamespaceCodeFixProvider.cs (2)
28public override ImmutableArray<string> FixableDiagnosticIds 47Document document, ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\CSharp\CodeFixes\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionCodeFixProvider.cs (2)
32public override ImmutableArray<string> FixableDiagnosticIds 41Document document, ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\CSharp\CodeFixes\ConvertToAsync\CSharpConvertToAsyncMethodCodeFixProvider.cs (1)
30public override ImmutableArray<string> FixableDiagnosticIds => [CS4008];
src\roslyn\src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordEngine.cs (20)
54var positionalParameterInfos = PositionalParameterInfo.GetPropertiesForPositionalParameters( 82ImmutableArray<PositionalParameterInfo> positionalParameterInfos, 105var expectedFields = type 138var defaults = positionalParameterInfos.SelectAsArray(info => (EqualsValueClauseSyntax?)null); 178var expressions = ConvertToRecordHelpers 182var expressionStatementsToRemove = expressions 316var inheritedPositionalParams = PositionalParameterInfo 337(ConstructorDeclarationSyntax? constructor, ImmutableArray<IPropertySymbol> propertiesToAssign) TryFindPrimaryConstructor() 339var propertiesToAssign = positionalParameterInfos.SelectAsArray(info => info.Symbol); 367constructorOperation, propertiesToAssign, constructorSymbol.Parameters, out var orderedPropertiesToAssign)) 477ImmutableArray<IPropertySymbol> positionalParameters, 513var expressions = ConvertToRecordHelpers.GetAssignmentValuesFromObjectCreation( 518var expressionIndices = expressions.SelectAsArray( 578ImmutableArray<PositionalParameterInfo> propertyResults, 582var classTrivia = typeDeclaration.GetLeadingTrivia().Where(trivia => !trivia.IsWhitespace()).AsImmutable(); 584var propertyNonDocComments = propertyResults 754ImmutableArray<PositionalParameterInfo> propertyResults, 777var paramContent = ImmutableArray<XmlNodeSyntax>.Empty; 795var tokens = text.TextTokens.SelectAsArray(token =>
src\roslyn\src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordHelpers.cs (23)
26ImmutableArray<IFieldSymbol> expectedComparedFields) 59var actualFields = GetEqualizedFields(methodBodyOperation, methodSymbol); 78ImmutableArray<IFieldSymbol> expectedHashedFields) 92var actualMembers = members 184ImmutableArray<IPropertySymbol> properties, 185ImmutableArray<IParameterSymbol> parameters, 186out ImmutableArray<IPropertySymbol> orderedProperties) 228ImmutableArray<IFieldSymbol> fields, 256var assignedUnderlyingFields = assignmentValues.Keys.SelectAsArray(UnwrapPropertyToField); 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, 492private static ImmutableArray<IFieldSymbol> GetEqualizedFields( 503var bodyOps = body.Operations; 956ImmutableArray<IOperation> bodyOps, 1069: ImmutableArray<IOperation>.Empty))
src\roslyn\src\Analyzers\CSharp\CodeFixes\ConvertToRecord\CSharpConvertToRecordCodeFixProvider.cs (1)
26public override ImmutableArray<string> FixableDiagnosticIds
src\roslyn\src\Analyzers\CSharp\CodeFixes\ConvertToRecord\PositionalParameterInfo.cs (5)
35public static ImmutableArray<PositionalParameterInfo> GetPropertiesForPositionalParameters( 36ImmutableArray<PropertyDeclarationSyntax> properties, 44var symbols = properties.SelectAsArray(p => semanticModel.GetRequiredDeclaredSymbol(p, cancellationToken)); 47var inheritedProperties = GetInheritedPositionalParams(type, cancellationToken); 74public static ImmutableArray<IPropertySymbol> GetInheritedPositionalParams(
src\roslyn\src\Analyzers\CSharp\CodeFixes\DisambiguateSameVariable\CSharpDisambiguateSameVariableCodeFixProvider.cs (2)
35public override ImmutableArray<string> FixableDiagnosticIds { get; } = [CS1717, CS1718]; 133Document document, ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\CSharp\CodeFixes\DocumentationComments\CSharpAddDocCommentNodesCodeFixProvider.cs (2)
30public override ImmutableArray<string> FixableDiagnosticIds { get; } = [CS1573]; 59protected override ImmutableArray<string> GetParameterNames(MemberDeclarationSyntax member)
src\roslyn\src\Analyzers\CSharp\CodeFixes\DocumentationComments\CSharpRemoveDocCommentNodeCodeFixProvider.cs (1)
36public override ImmutableArray<string> FixableDiagnosticIds { get; } = [CS1571, CS1572, CS1710];
src\roslyn\src\Analyzers\CSharp\CodeFixes\FixIncorrectConstraint\CSharpFixIncorrectConstraintCodeFixProvider.cs (2)
28public override ImmutableArray<string> FixableDiagnosticIds => [CS9010, CS9011]; 75Document document, ImmutableArray<Diagnostic> diagnostics,
src\roslyn\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) 126protected override async Task FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken)
src\roslyn\src\Analyzers\CSharp\CodeFixes\GenerateConstructor\CSharpGenerateConstructorService.cs (6)
45out ImmutableArray<Argument<ExpressionSyntax>> arguments, 69private static ImmutableArray<Argument<ExpressionSyntax>> GetArguments(SeparatedSyntaxList<ArgumentSyntax> arguments) 72private static ImmutableArray<Argument<ExpressionSyntax>> GetArguments(SeparatedSyntaxList<AttributeArgumentSyntax> arguments) 83out ImmutableArray<Argument<ExpressionSyntax>> arguments, 115out ImmutableArray<Argument<ExpressionSyntax>> arguments, 150out ImmutableArray<Argument<ExpressionSyntax>> arguments,
src\roslyn\src\Analyzers\CSharp\CodeFixes\GenerateConstructor\GenerateConstructorCodeFixProvider.cs (2)
38public override ImmutableArray<string> FixableDiagnosticIds => GenerateConstructorDiagnosticIds.AllDiagnosticIds; 40protected override Task<ImmutableArray<CodeAction>> GetCodeActionsAsync(
src\roslyn\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\roslyn\src\Analyzers\CSharp\CodeFixes\GenerateDefaultConstructors\CSharpGenerateDefaultConstructorsCodeFixProvider.cs (1)
25public override ImmutableArray<string> FixableDiagnosticIds { get; } =
src\roslyn\src\Analyzers\CSharp\CodeFixes\GenerateEnumMember\GenerateEnumMemberCodeFixProvider.cs (2)
28public override ImmutableArray<string> FixableDiagnosticIds { get; } = 31protected override Task<ImmutableArray<CodeAction>> GetCodeActionsAsync(Document document, SyntaxNode node, CancellationToken cancellationToken)
src\roslyn\src\Analyzers\CSharp\CodeFixes\GenerateMethod\GenerateConversionCodeFixProvider.cs (2)
29public override ImmutableArray<string> FixableDiagnosticIds 57protected override Task<ImmutableArray<CodeAction>> GetCodeActionsAsync(
src\roslyn\src\Analyzers\CSharp\CodeFixes\GenerateMethod\GenerateDeconstructMethodCodeFixProvider.cs (2)
29public sealed override ImmutableArray<string> FixableDiagnosticIds => [CS8129]; 99var codeActions = await service.GenerateDeconstructMethodAsync(document, target, (INamedTypeSymbol)type, cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\CSharp\CodeFixes\GenerateMethod\GenerateMethodCodeFixProvider.cs (3)
38public static readonly ImmutableArray<string> FixableDiagnosticIds = 50public override ImmutableArray<string> FixableDiagnosticIds { get; } = 80protected override Task<ImmutableArray<CodeAction>> GetCodeActionsAsync(
src\roslyn\src\Analyzers\CSharp\CodeFixes\GenerateParameterizedMember\CSharpGenerateDeconstructMethodService.cs (3)
38public override ImmutableArray<IParameterSymbol> TryMakeParameters(SemanticModel semanticModel, SyntaxNode target, CancellationToken cancellationToken) 44var namesBuilder = positionalPattern.Subpatterns.SelectAsArray(sub => 47var names = NameGenerator.EnsureUniqueness(namesBuilder);
src\roslyn\src\Analyzers\CSharp\CodeFixes\GenerateParameterizedMember\CSharpGenerateParameterizedMemberService.cs (7)
28protected override ImmutableArray<ParameterName> DetermineParameterNames(CancellationToken cancellationToken) 48protected override ImmutableArray<ITypeParameterSymbol> GetCapturedTypeParameters(CancellationToken cancellationToken) 61protected override ImmutableArray<ITypeParameterSymbol> GenerateTypeParameters(CancellationToken cancellationToken) 124protected override ImmutableArray<RefKind> DetermineParameterModifiers(CancellationToken cancellationToken) 127protected override ImmutableArray<ITypeSymbol> DetermineParameterTypes(CancellationToken cancellationToken) 133protected override ImmutableArray<bool> DetermineParameterOptionality(CancellationToken cancellationToken) 145protected override ImmutableArray<ITypeSymbol> DetermineTypeArguments(CancellationToken cancellationToken)
src\roslyn\src\Analyzers\CSharp\CodeFixes\GenerateVariable\CSharpGenerateVariableCodeFixProvider.cs (2)
33public override ImmutableArray<string> FixableDiagnosticIds 47protected override async Task<ImmutableArray<CodeAction>> GetCodeActionsAsync(
src\roslyn\src\Analyzers\CSharp\CodeFixes\HiddenExplicitCast\CSharpHiddenExplicitCastCodeFixProvider.cs (2)
27public override ImmutableArray<string> FixableDiagnosticIds => [IDEDiagnosticIds.HiddenExplicitCastDiagnosticId]; 37ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\CSharp\CodeFixes\HideBase\HideBaseCodeFixProvider.cs (2)
30public override ImmutableArray<string> FixableDiagnosticIds => [CS0108]; 59Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken)
src\roslyn\src\Analyzers\CSharp\CodeFixes\ImplementInterface\CSharpImplementInterfaceCodeFixProvider.cs (1)
25public sealed override ImmutableArray<string> FixableDiagnosticIds { get; }
src\roslyn\src\Analyzers\CSharp\CodeFixes\ImplementInterface\CSharpImplementInterfaceService.cs (1)
52out ImmutableArray<INamedTypeSymbol> interfaceTypes)
src\roslyn\src\Analyzers\CSharp\CodeFixes\InlineDeclaration\CSharpInlineDeclarationCodeFixProvider.cs (3)
36public override ImmutableArray<string> FixableDiagnosticIds 45Document document, ImmutableArray<Diagnostic> diagnostics, 64var originalNodes = diagnostics.SelectAsArray(diagnostic => FindDiagnosticNodes(diagnostic, cancellationToken));
src\roslyn\src\Analyzers\CSharp\CodeFixes\InvokeDelegateWithConditionalAccess\InvokeDelegateWithConditionalAccessCodeFixProvider.cs (2)
31public override ImmutableArray<string> FixableDiagnosticIds { get; } = [IDEDiagnosticIds.InvokeDelegateWithConditionalAccessId]; 44Document document, ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\CSharp\CodeFixes\Iterator\CSharpAddYieldCodeFixProvider.cs (4)
40public override ImmutableArray<string> FixableDiagnosticIds 64var typeArguments = methodReturnType.GetAllTypeArguments(); 160var leftArguments = typeArgument.GetTypeArguments(); 161var rightArguments = returnExpressionType.GetTypeArguments();
src\roslyn\src\Analyzers\CSharp\CodeFixes\Iterator\CSharpChangeToIEnumerableCodeFixProvider.cs (1)
34public override ImmutableArray<string> FixableDiagnosticIds => [CS1624];
src\roslyn\src\Analyzers\CSharp\CodeFixes\MakeAnonymousFunctionStatic\CSharpMakeAnonymousFunctionStaticCodeFixProvider.cs (2)
24public override ImmutableArray<string> FixableDiagnosticIds { get; } = 36protected override async Task FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken)
src\roslyn\src\Analyzers\CSharp\CodeFixes\MakeLocalFunctionStatic\MakeLocalFunctionStaticCodeFixHelper.cs (6)
29ImmutableArray<ISymbol> captures, 41ImmutableArray<ISymbol> captures, 87var parameterAndCapturedSymbols = CreateParameterSymbols(captures.WhereAsArray(c => !c.IsThisParameter())); 101var newArguments = parameterAndCapturedSymbols.SelectAsArray( 207private static ImmutableArray<(IParameterSymbol symbol, ISymbol capture)> CreateParameterSymbols(ImmutableArray<ISymbol> captures)
src\roslyn\src\Analyzers\CSharp\CodeFixes\MakeLocalFunctionStatic\MakeLocalFunctionStaticCodeFixProvider.cs (3)
22public override ImmutableArray<string> FixableDiagnosticIds { get; } = 31Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken) 33var localFunctions = diagnostics.SelectAsArray(d => d.AdditionalLocations[0].FindNode(getInnermostNodeForTie: true, cancellationToken));
src\roslyn\src\Analyzers\CSharp\CodeFixes\MakeLocalFunctionStatic\PassInCapturedVariablesAsArgumentsCodeFixProvider.cs (6)
29public override ImmutableArray<string> FixableDiagnosticIds { get; } = [CS8421]; 50protected override Task FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken) 62ImmutableArray<Diagnostic> diagnostics, 63Func<Document, LocalFunctionStatementSyntax, ImmutableArray<ISymbol>, Task> fixer, 74var localFunctions = diagnostics 87if (MakeLocalFunctionStaticHelper.CanMakeLocalFunctionStaticByRefactoringCaptures(localFunction, semanticModel, out var captures))
src\roslyn\src\Analyzers\CSharp\CodeFixes\MakeMemberRequired\CSharpMakeMemberRequiredCodeFixProvider.cs (2)
29public override ImmutableArray<string> FixableDiagnosticIds { get; } = [CS8618]; 109protected override async Task FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken)
src\roslyn\src\Analyzers\CSharp\CodeFixes\MakeMemberStatic\CSharpMakeMemberStaticCodeFixProvider.cs (1)
21public override ImmutableArray<string> FixableDiagnosticIds { get; } = ["CS0708"];
src\roslyn\src\Analyzers\CSharp\CodeFixes\MakeMethodAsynchronous\CSharpMakeMethodAsynchronousCodeFixProvider.cs (1)
37public override ImmutableArray<string> FixableDiagnosticIds { get; } =
src\roslyn\src\Analyzers\CSharp\CodeFixes\MakeMethodSynchronous\CSharpMakeMethodSynchronousCodeFixProvider.cs (1)
26public override ImmutableArray<string> FixableDiagnosticIds { get; } = [
src\roslyn\src\Analyzers\CSharp\CodeFixes\MakeRefStruct\MakeRefStructCodeFixProvider.cs (1)
26public override ImmutableArray<string> FixableDiagnosticIds
src\roslyn\src\Analyzers\CSharp\CodeFixes\MakeStatementAsynchronous\CSharpMakeStatementAsynchronousCodeFixProvider.cs (2)
30public sealed override ImmutableArray<string> FixableDiagnosticIds => ["CS8414", "CS8418"]; 48Document document, ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\CSharp\CodeFixes\MakeStructFieldsWritable\CSharpMakeStructFieldsWritableCodeFixProvider.cs (2)
25public override ImmutableArray<string> FixableDiagnosticIds 35ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\CSharp\CodeFixes\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyCodeFixProvider.cs (2)
26public override ImmutableArray<string> FixableDiagnosticIds { get; } = 36ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\CSharp\CodeFixes\MakeStructReadOnly\CSharpMakeStructReadOnlyCodeFixProvider.cs (2)
24public override ImmutableArray<string> FixableDiagnosticIds { get; } = 34ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\CSharp\CodeFixes\MakeTypeAbstract\CSharpMakeTypeAbstractCodeFixProvider.cs (1)
19public override ImmutableArray<string> FixableDiagnosticIds { get; } =
src\roslyn\src\Analyzers\CSharp\CodeFixes\MakeTypePartial\CSharpMakeTypePartialCodeFixProvider.cs (1)
21public override ImmutableArray<string> FixableDiagnosticIds { get; } = [CS0260];
src\roslyn\src\Analyzers\CSharp\CodeFixes\MisplacedUsingDirectives\MisplacedUsingDirectivesCodeFixProvider.cs (11)
49public override ImmutableArray<string> FixableDiagnosticIds => [IDEDiagnosticIds.MoveMisplacedUsingDirectivesDiagnosticId]; 98var allUsingDirectives = GetAllUsingDirectives(compilationUnit); 106private static ImmutableArray<UsingDirectiveSyntax> GetAllUsingDirectives(CompilationUnitSyntax compilationUnit) 143var allUsingDirectives = GetAllUsingDirectives(compilationUnit); 171Document document, CompilationUnitSyntax compilationUnit, ImmutableArray<UsingDirectiveSyntax> allUsingDirectives, CancellationToken cancellationToken) 254private static (BaseNamespaceDeclarationSyntax namespaceWithoutUsings, ImmutableArray<UsingDirectiveSyntax> usingsFromNamespace) RemoveUsingsFromNamespace( 267var allUsings = usings.Concat(usingsFromNamespaces).ToImmutableArray(); 288ImmutableArray<UsingDirectiveSyntax> usingsToAdd) 420private static (CompilationUnitSyntax compilationUnitWithoutHeader, ImmutableArray<SyntaxTrivia> header) RemoveFileHeader( 423var fileHeader = bannerService.GetFileBanner(syntaxRoot); 436private static CompilationUnitSyntax AddFileHeader(CompilationUnitSyntax compilationUnit, ImmutableArray<SyntaxTrivia> fileHeader)
src\roslyn\src\Analyzers\CSharp\CodeFixes\NewLines\ArrowExpressionClausePlacement\ArrowExpressionClausePlacementCodeFixProvider.cs (2)
27public override ImmutableArray<string> FixableDiagnosticIds 43Document document, ImmutableArray<Diagnostic> diagnostics, CancellationToken cancellationToken)
src\roslyn\src\Analyzers\CSharp\CodeFixes\NewLines\ConditionalExpressionPlacement\ConditionalExpressionPlacementCodeFixProvider.cs (2)
27public override ImmutableArray<string> FixableDiagnosticIds 43Document document, ImmutableArray<Diagnostic> diagnostics, CancellationToken cancellationToken)
src\roslyn\src\Analyzers\CSharp\CodeFixes\NewLines\ConsecutiveBracePlacement\ConsecutiveBracePlacementCodeFixProvider.cs (2)
28public override ImmutableArray<string> FixableDiagnosticIds 46public static async Task<Document> FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, CancellationToken cancellationToken)
src\roslyn\src\Analyzers\CSharp\CodeFixes\NewLines\ConstructorInitializerPlacement\ConstructorInitializerPlacementCodeFixProvider.cs (2)
27public override ImmutableArray<string> FixableDiagnosticIds 43Document document, ImmutableArray<Diagnostic> diagnostics, CancellationToken cancellationToken)
src\roslyn\src\Analyzers\CSharp\CodeFixes\NewLines\EmbeddedStatementPlacement\EmbeddedStatementPlacementCodeFixProvider.cs (2)
30public override ImmutableArray<string> FixableDiagnosticIds 45public static async Task<Document> FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, CancellationToken cancellationToken)
src\roslyn\src\Analyzers\CSharp\CodeFixes\Nullable\CSharpDeclareAsNullableCodeFixProvider.cs (2)
40public sealed override ImmutableArray<string> FixableDiagnosticIds => ["CS8603", "CS8600", "CS8625", "CS8618"]; 75ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\CSharp\CodeFixes\OrderModifiers\CSharpOrderModifiersCodeFixProvider.cs (1)
27protected override ImmutableArray<string> FixableCompilerErrorIds { get; } = [CS0267];
src\roslyn\src\Analyzers\CSharp\CodeFixes\RemoveAsyncModifier\CSharpRemoveAsyncModifierCodeFixProvider.cs (1)
26public override ImmutableArray<string> FixableDiagnosticIds { get; } = [
src\roslyn\src\Analyzers\CSharp\CodeFixes\RemoveConfusingSuppression\CSharpRemoveConfusingSuppressionCodeFixProvider.cs (3)
30public override ImmutableArray<string> FixableDiagnosticIds 36var diagnostics = context.Diagnostics; 55Document document, ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\CSharp\CodeFixes\RemoveInKeyword\RemoveInKeywordCodeFixProvider.cs (1)
31public override ImmutableArray<string> FixableDiagnosticIds => [CS1615];
src\roslyn\src\Analyzers\CSharp\CodeFixes\RemoveNewModifier\RemoveNewModifierCodeFixProvider.cs (1)
29public override ImmutableArray<string> FixableDiagnosticIds => [CS0109];
src\roslyn\src\Analyzers\CSharp\CodeFixes\RemoveUnneccessaryUnsafeModifier\CSharpRemoveUnnecessaryUnsafeModifierCodeFixProvider.cs (2)
28public override ImmutableArray<string> FixableDiagnosticIds => [IDEDiagnosticIds.RemoveUnnecessaryUnsafeModifier]; 39private static async Task<Document> FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, CancellationToken cancellationToken)
src\roslyn\src\Analyzers\CSharp\CodeFixes\RemoveUnnecessaryCast\CSharpRemoveUnnecessaryCastCodeFixProvider.cs (3)
28public sealed override ImmutableArray<string> FixableDiagnosticIds { get; } = 37Document document, ImmutableArray<Diagnostic> diagnostics, 40var castNodes = diagnostics.SelectAsArray(
src\roslyn\src\Analyzers\CSharp\CodeFixes\RemoveUnnecessaryDiscardDesignation\CSharpRemoveUnnecessaryDiscardDesignationCodeFixProvider.cs (2)
25public override ImmutableArray<string> FixableDiagnosticIds 34Document document, ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\CSharp\CodeFixes\RemoveUnnecessaryLambdaExpression\CSharpRemoveUnnecessaryLambdaExpressionCodeFixProvider.cs (2)
31public override ImmutableArray<string> FixableDiagnosticIds 40Document document, ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\CSharp\CodeFixes\RemoveUnnecessaryNullableDirective\CSharpRemoveUnnecessaryNullableDirectiveCodeFixProvider.cs (2)
28public override ImmutableArray<string> FixableDiagnosticIds 47ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\CSharp\CodeFixes\RemoveUnnecessarySuppressions\CSharpRemoveUnnecessaryNullableWarningSuppressionsCodeFixProvider.cs (2)
29public override ImmutableArray<string> FixableDiagnosticIds => [IDEDiagnosticIds.RemoveUnnecessaryNullableWarningSuppression]; 40private static async Task<Document> FixSingleDocumentAsync(Document document, ImmutableArray<Diagnostic> diagnostics, CancellationToken cancellationToken)
src\roslyn\src\Analyzers\CSharp\CodeFixes\RemoveUnreachableCode\CSharpRemoveUnreachableCodeCodeFixProvider.cs (4)
24public override ImmutableArray<string> FixableDiagnosticIds { get; } = 50ImmutableArray<Diagnostic> diagnostics, 65var sections = RemoveUnreachableCodeHelpers.GetSubsequentUnreachableSections(firstUnreachableStatement); 66foreach (var section in sections)
src\roslyn\src\Analyzers\CSharp\CodeFixes\RemoveUnusedLocalFunction\CSharpRemoveUnusedLocalFunctionCodeFixProvider.cs (2)
28public sealed override ImmutableArray<string> FixableDiagnosticIds 36protected override async Task FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken)
src\roslyn\src\Analyzers\CSharp\CodeFixes\ReplaceDefaultLiteral\CSharpReplaceDefaultLiteralCodeFixProvider.cs (1)
30public override ImmutableArray<string> FixableDiagnosticIds { get; } = [CS8313, CS8505];
src\roslyn\src\Analyzers\CSharp\CodeFixes\SimplifyLinqExpression\CSharpSimplifyLinqTypeCheckAndCastCodeFixProvider.cs (2)
27public override ImmutableArray<string> FixableDiagnosticIds 37ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\CSharp\CodeFixes\SimplifyPropertyAccessor\CSharpSimplifyPropertyAccessorCodeFixProvider.cs (2)
28public override ImmutableArray<string> FixableDiagnosticIds { get; } 36protected override async Task FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken)
src\roslyn\src\Analyzers\CSharp\CodeFixes\SimplifyPropertyPattern\CSharpSimplifyPropertyPatternCodeFixProvider.cs (3)
29public override ImmutableArray<string> FixableDiagnosticIds { get; } = 38Document document, ImmutableArray<Diagnostic> diagnostics, 43var subpatterns = diagnostics.Select(d => (SubpatternSyntax)d.AdditionalLocations[0].FindNode(cancellationToken))
src\roslyn\src\Analyzers\CSharp\CodeFixes\TransposeRecordKeyword\CSharpTransposeRecordKeywordCodeFixProvider.cs (2)
27public override ImmutableArray<string> FixableDiagnosticIds => [CS9012]; 94Document document, ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\CSharp\CodeFixes\UnsealClass\CSharpUnsealClassCodeFixProvider.cs (1)
21public override ImmutableArray<string> FixableDiagnosticIds { get; } = [CS0509];
src\roslyn\src\Analyzers\CSharp\CodeFixes\UpdateProjectToAllowUnsafe\CSharpUpdateProjectToAllowUnsafeCodeFixProvider.cs (1)
21public override ImmutableArray<string> FixableDiagnosticIds { get; } =
src\roslyn\src\Analyzers\CSharp\CodeFixes\UpgradeProject\CSharpUpgradeProjectCodeFixProvider.cs (3)
19public override ImmutableArray<string> FixableDiagnosticIds { get; } = 66public override string SuggestedVersion(ImmutableArray<Diagnostic> diagnostics) 69private static LanguageVersion RequiredVersion(ImmutableArray<Diagnostic> diagnostics)
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseAutoProperty\CSharpUseAutoPropertyCodeFixProvider.cs (2)
64ImmutableArray<ReferencedSymbol> fieldLocations, 220protected override ImmutableArray<AbstractFormattingRule> GetFormattingRules(
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpCollectionExpressionRewriter.cs (9)
38ImmutableArray<CollectionMatch<TMatchNode>> preMatches, 39ImmutableArray<CollectionMatch<TMatchNode>> postMatches, 350ImmutableArray<CollectionMatch<TMatchNode>> matches, 509var expressions = ConvertExpressions(expressionStatement.Expression, expr => IndentNode(expressionStatement, expr, preferredIndentation)); 813bool CheckForMultiLine(ImmutableArray<CollectionMatch<TMatchNode>> matches) 868var expressions = ConvertExpressions(expression, indent); 872static ImmutableArray<ExpressionSyntax> ConvertExpressions( 888static ImmutableArray<ExpressionSyntax> ConvertAssignment( 894static ImmutableArray<ExpressionSyntax> ConvertInvocation(
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForArrayCodeFixProvider.cs (3)
32public override ImmutableArray<string> FixableDiagnosticIds { get; } = [IDEDiagnosticIds.UseCollectionExpressionForArrayDiagnosticId]; 66var matches = GetMatches(semanticModel, arrayCreationExpression, expressionType); 99ImmutableArray<CollectionMatch<StatementSyntax>> GetMatches(
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForBuilderCodeFixProvider.cs (1)
35public override ImmutableArray<string> FixableDiagnosticIds { get; } = [IDEDiagnosticIds.UseCollectionExpressionForBuilderDiagnosticId];
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForCreateCodeFixProvider.cs (2)
33public override ImmutableArray<string> FixableDiagnosticIds { get; } = [IDEDiagnosticIds.UseCollectionExpressionForCreateDiagnosticId]; 66var matches = expressions.SelectAsArray(e => new CollectionMatch<ExpressionSyntax>(e, useSpread, UseKeyValue: false));
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForEmptyCodeFixProvider.cs (1)
31public override ImmutableArray<string> FixableDiagnosticIds { get; } = [IDEDiagnosticIds.UseCollectionExpressionForEmptyDiagnosticId];
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForFluentCodeFixProvider.cs (7)
41public override ImmutableArray<string> FixableDiagnosticIds { get; } = [IDEDiagnosticIds.UseCollectionExpressionForFluentDiagnosticId]; 71var allMatches = analysisResult.PreMatches.Concat(analysisResult.PostMatches); 89var preMatches = CreateMatches(dummyObjectCreation.ArgumentList.Arguments, analysisResult.PreMatches, index: 0); 90var postMatches = CreateMatches(dummyObjectCreation.ArgumentList.Arguments, analysisResult.PostMatches, index: preMatches.Length); 103static ImmutableArray<CollectionMatch<ExpressionSyntax>> CreateMatches( 105ImmutableArray<CollectionMatch<ArgumentSyntax>> matches, 142ImmutableArray<CollectionMatch<ArgumentSyntax>> matches,
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForNewCodeFixProvider.cs (2)
34public override ImmutableArray<string> FixableDiagnosticIds { get; } = [IDEDiagnosticIds.UseCollectionExpressionForNewDiagnosticId]; 67var matches = expressions.SelectAsArray(e => new CollectionMatch<ExpressionSyntax>(e, useSpread, UseKeyValue: false));
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForStackAllocCodeFixProvider.cs (3)
28public override ImmutableArray<string> FixableDiagnosticIds { get; } = [IDEDiagnosticIds.UseCollectionExpressionForStackAllocDiagnosticId]; 42var matches = GetMatches(); 72ImmutableArray<CollectionMatch<StatementSyntax>> GetMatches()
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseCollectionInitializer\CSharpUseCollectionInitializerCodeFixProvider_CollectionExpression.cs (2)
23ImmutableArray<CollectionMatch<SyntaxNode>> preMatches, 24ImmutableArray<CollectionMatch<SyntaxNode>> postMatches,
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseCollectionInitializer\CSharpUseCollectionInitializerCodeFixProvider_CollectionInitializer.cs (1)
26ImmutableArray<CollectionMatch<SyntaxNode>> matches)
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseCollectionInitializer\CSharpUseCollectionInitializerCodeFixProvider.cs (2)
41ImmutableArray<CollectionMatch<SyntaxNode>> preMatches, 42ImmutableArray<CollectionMatch<SyntaxNode>> postMatches,
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseCompoundAssignment\CSharpUseCompoundCoalesceAssignmentCodeFixProvider.cs (2)
31public override ImmutableArray<string> FixableDiagnosticIds { get; } = 40Document document, ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseDeconstruction\CSharpUseDeconstructionCodeFixProvider.cs (4)
28public override ImmutableArray<string> FixableDiagnosticIds 37Document document, ImmutableArray<Diagnostic> diagnostics, 40var nodesToProcess = diagnostics.SelectAsArray(d => d.Location.FindToken(cancellationToken).GetRequiredParent()); 68ImmutableArray<MemberAccessExpressionSyntax> memberAccessExpressions = default;
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseDefaultLiteral\CSharpUseDefaultLiteralCodeFixProvider.cs (3)
25public override ImmutableArray<string> FixableDiagnosticIds { get; } 34Document document, ImmutableArray<Diagnostic> diagnostics, 51var originalNodes = diagnostics.SelectAsArray(
src\roslyn\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\roslyn\src\Analyzers\CSharp\CodeFixes\UseExplicitTypeForConst\UseExplicitTypeForConstCodeFixProvider.cs (1)
26public override ImmutableArray<string> FixableDiagnosticIds { get; } = [CS0822];
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseExpressionBody\UseExpressionBodyCodeFixProvider.cs (3)
27private static readonly ImmutableArray<UseExpressionBodyHelper> s_helpers = UseExpressionBodyHelper.Helpers; 29public sealed override ImmutableArray<string> FixableDiagnosticIds { get; } = s_helpers.SelectAsArray(h => h.DiagnosticId); 53Document document, ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseExpressionBodyForLambda\UseExpressionBodyForLambdaCodeFixProvider.cs (1)
24public override ImmutableArray<string> FixableDiagnosticIds { get; } = [IDEDiagnosticIds.UseExpressionBodyForLambdaExpressionsDiagnosticId];
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseImplicitlyTypedLambdaExpression\CSharpUseImplicitObjectCreationCodeFixProvider.cs (3)
30public override ImmutableArray<string> FixableDiagnosticIds 39Document document, ImmutableArray<Diagnostic> diagnostics, 43var nodes = diagnostics
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseImplicitObjectCreation\CSharpUseImplicitObjectCreationCodeFixProvider.cs (3)
34public override ImmutableArray<string> FixableDiagnosticIds 46Document document, ImmutableArray<Diagnostic> diagnostics, 50var nodes = diagnostics
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseImplicitOrExplicitType\UseExplicitTypeCodeFixProvider.cs (3)
34public override ImmutableArray<string> FixableDiagnosticIds 49Document document, ImmutableArray<Diagnostic> diagnostics, 189var elements = ((INamedTypeSymbol)typeSymbol).TupleElements;
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseImplicitOrExplicitType\UseImplicitTypeCodeFixProvider.cs (2)
25public override ImmutableArray<string> FixableDiagnosticIds 40Document document, ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseIndexOrRangeOperator\CSharpUseIndexOperatorCodeFixProvider.cs (2)
26public override ImmutableArray<string> FixableDiagnosticIds { get; } = 35Document document, ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseIndexOrRangeOperator\CSharpUseRangeOperatorCodeFixProvider.cs (3)
36public override ImmutableArray<string> FixableDiagnosticIds { get; } = 45Document document, ImmutableArray<Diagnostic> diagnostics, 48var invocationNodes = diagnostics
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseInterpolatedVerbatimString\CSharpUseInterpolatedVerbatimStringCodeFixProvider.cs (2)
25public override ImmutableArray<string> FixableDiagnosticIds => ["CS8401"]; 35Document document, ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseIsNullCheck\CSharpUseIsNullCheckForCastAndEqualityOperatorCodeFixProvider.cs (2)
30public override ImmutableArray<string> FixableDiagnosticIds 49Document document, ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseIsNullCheck\CSharpUseNullCheckOverTypeCheckCodeFixProvider.cs (2)
28public override ImmutableArray<string> FixableDiagnosticIds 37Document document, ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseLabeledJumpStatements\CSharpUseLabeledJumpStatementsCodeFixProvider.cs (4)
29public override ImmutableArray<string> FixableDiagnosticIds { get; } 50gotoStatement, semanticModel, cancellationToken, out var loop, out var labelDeclaration, out var gotos)) 75ImmutableArray<GotoStatementSyntax> gotos, 122ImmutableArray<GotoStatementSyntax> gotos,
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseLocalFunction\CSharpUseLocalFunctionCodeFixProvider.cs (5)
41public override ImmutableArray<string> FixableDiagnosticIds 53Document document, ImmutableArray<Diagnostic> diagnostics, 143var capturedVariables = dataFlow.Captured.Remove(localSymbol); 182ImmutableArray<ExpressionSyntax> references) 252var uniqueNames = NameGenerator.EnsureUniqueness([.. parameterNames], [.. isFixed]);
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseNameofInAttribute\CSharpUseNameofInAttributeCodeFixProvider.cs (2)
24public override ImmutableArray<string> FixableDiagnosticIds { get; } = [IDEDiagnosticIds.UseNameofInAttributeDiagnosticId]; 36ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseObjectInitializer\CSharpUseObjectInitializerCodeFixProvider.cs (3)
53ImmutableArray<ObjectInitializerMatch> matches) 63ImmutableArray<ObjectInitializerMatch> matches) 73ImmutableArray<ObjectInitializerMatch> matches)
src\roslyn\src\Analyzers\CSharp\CodeFixes\UsePatternCombinators\CSharpUsePatternCombinatorsCodeFixProvider.cs (2)
48public override ImmutableArray<string> FixableDiagnosticIds 71Document document, ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\CSharp\CodeFixes\UsePatternMatching\CSharpAsAndMemberAccessCodeFixProvider.cs (2)
30public override ImmutableArray<string> FixableDiagnosticIds 39Document document, ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\CSharp\CodeFixes\UsePatternMatching\CSharpAsAndNullCheckCodeFixProvider.cs (2)
30public override ImmutableArray<string> FixableDiagnosticIds 39Document document, ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\CSharp\CodeFixes\UsePatternMatching\CSharpIsAndCastCheckCodeFixProvider.cs (4)
27public override ImmutableArray<string> FixableDiagnosticIds 36Document document, ImmutableArray<Diagnostic> diagnostics, 64var trivia = localDeclaration.GetLeadingTrivia().Concat(localDeclaration.GetTrailingTrivia()) 83ImmutableArray<SyntaxTrivia> trivia,
src\roslyn\src\Analyzers\CSharp\CodeFixes\UsePatternMatching\CSharpUseNotPatternCodeFixProvider.cs (2)
25public override ImmutableArray<string> FixableDiagnosticIds 34Document document, ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\CSharp\CodeFixes\UsePrimaryConstructor\CSharpUsePrimaryConstructorCodeFixProvider.cs (4)
46public override ImmutableArray<string> FixableDiagnosticIds 187var triviaToMove = GetLeadingCommentTrivia(firstMember); 200ImmutableArray<SyntaxTrivia> GetLeadingCommentTrivia(MemberDeclarationSyntax firstMember) 202var leadingTrivia = firstMember.GetLeadingTrivia().ToImmutableArray();
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseSimpleUsingStatement\UseSimpleUsingStatementCodeFixProvider.cs (5)
34public override ImmutableArray<string> FixableDiagnosticIds { get; } = 43Document document, ImmutableArray<Diagnostic> diagnostics, 76var expandedUsing = Expand(usingStatement); 99ImmutableArray<StatementSyntax> expandedUsingStatements) 113private static ImmutableArray<StatementSyntax> Expand(UsingStatementSyntax usingStatement)
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseSystemThreadingLock\CSharpUseSystemThreadingLockCodeFixProvider.cs (1)
29public override ImmutableArray<string> FixableDiagnosticIds { get; }
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseThrowExpression\UseThrowExpressionCodeFixProvider.cs (2)
27public override ImmutableArray<string> FixableDiagnosticIds 39Document document, ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseTupleSwap\CSharpUseTupleSwapCodeFixProvider.cs (2)
27public override ImmutableArray<string> FixableDiagnosticIds { get; } 36Document document, ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseUnboundGenericTypeInNameOf\CSharpUseUnboundGenericTypeInNameOfCodeFixProvider.cs (2)
30public override ImmutableArray<string> FixableDiagnosticIds { get; } 39Document document, ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseUtf8StringLiteral\UseUtf8StringLiteralCodeFixProvider.cs (2)
33public override ImmutableArray<string> FixableDiagnosticIds { get; } = 42Document document, ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeFixesAndRefactorings\CSharpFixAllSpanMappingService.cs (4)
24protected override async Task<ImmutableDictionary<Document, ImmutableArray<TextSpan>>> GetFixAllSpansIfWithinGlobalStatementAsync( 30return ImmutableDictionary<Document, ImmutableArray<TextSpan>>.Empty; 43return ImmutableDictionary<Document, ImmutableArray<TextSpan>>.Empty; 48return ImmutableDictionary<Document, ImmutableArray<TextSpan>>.Empty
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\AttributeGenerator.cs (1)
21ImmutableArray<AttributeData> attributes,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ConstructorGenerator.cs (3)
92var thisArguments = CodeGenerationConstructorInfo.GetThisConstructorArgumentsOpt(constructor); 94var arguments = !thisArguments.IsDefault ? thisArguments : CodeGenerationConstructorInfo.GetBaseConstructorArgumentsOpt(constructor); 104private static ArgumentListSyntax GenerateArgumentList(ImmutableArray<SyntaxNode> arguments)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (1)
551var newContainingStatement = containingStatement.GetNodeWithoutLeadingBannerAndPreprocessorDirectives(out var strippedTrivia);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\EventGenerator.cs (1)
150var attributes = @event.GetAttributes();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\MethodGenerator.cs (1)
124var parameters = method.Parameters.SelectAsArray(static (p, destination) => FilterAttributes(p, destination), destination);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\NamedTypeGenerator.cs (2)
84var members = GetMembers(namedType).WhereAsArray(s => s.Kind != SymbolKind.Property || PropertyGenerator.CanBeGenerated((IPropertySymbol)s)); 107ImmutableArray<ISymbol> members,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ParameterGenerator.cs (7)
20ImmutableArray<IParameterSymbol> parameterDefinitions, 24var parameters = GetParameters(parameterDefinitions, isExplicit, info); 30ImmutableArray<IParameterSymbol> parameterDefinitions, 36var parameters = GetParameters(parameterDefinitions, isExplicit, info); 41internal static ImmutableArray<ParameterSyntax> GetParameters( 42ImmutableArray<IParameterSymbol> parameterDefinitions, 121var attributes = parameter.GetAttributes();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\PropertyGenerator.cs (1)
149var attributes = property.GetAttributes();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\TypeParameterGenerator.cs (1)
19ImmutableArray<ITypeParameterSymbol> typeParameters, CSharpCodeGenerationContextInfo info)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Editing\CSharpImportAdder.cs (3)
44ImmutableArray<INamespaceSymbol> namespaceSymbols, 101ImmutableArray<INamespaceSymbol> namespaceSymbols) 108private void AddImportedMembers(ImmutableArray<INamespaceSymbol> namespaceSymbols)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
1034var symbols = semanticModelOpt.LookupName(nameToken, cancellationToken);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeParameterSymbolExtensions.cs (1)
19this ImmutableArray<ITypeParameterSymbol> typeParameters)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeSymbolExtensions.TypeSyntaxGeneratorVisitor.cs (1)
168var parameters = symbol.Signature.Parameters.Select(p => (p.Type, RefKindModifiers: CSharpSyntaxGeneratorInternal.GetParameterModifiers(p)))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\SemanticModelExtensions.cs (11)
35public static ImmutableArray<ParameterName> GenerateParameterNames( 44public static ImmutableArray<ParameterName> GenerateParameterNames( 53public static ImmutableArray<ParameterName> GenerateParameterNames( 62var isFixed = reservedNames.Select(s => true).Concat( 65var parameterNames = reservedNames.Concat( 71public static ImmutableArray<ParameterName> GenerateNames(IList<string> reservedNames, ImmutableArray<bool> isFixed, ImmutableArray<string> parameterNames) 76public static ImmutableArray<ParameterName> GenerateParameterNames( 85var isFixed = reservedNames.Select(s => true).Concat( 88var parameterNames = reservedNames.Concat(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\TypeSyntaxExtensions.cs (1)
44var symbols = semanticModelOpt.LookupName(nameToken, cancellationToken);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\WithElementSyntaxExtensions.cs (4)
17public static ImmutableArray<IMethodSymbol> GetCreationMethods( 31var result = TryGetInterfaceItems() ?? 37ImmutableArray<IMethodSymbol>? TryGetInterfaceItems() 62ImmutableArray<IMethodSymbol>? TryGetCollectionBuilderItems()
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Formatting\CSharpSyntaxFormattingService.cs (8)
73public ImmutableArray<TextChange> GetFormattingChangesOnTypedCharacter( 81var formattingRules = GetFormattingRules(document, caretPosition, token); 93var changes = FormatRange(document, indentationOptions, token, formattingRules, cancellationToken); 186ParsedDocument document, IndentationOptions options, SyntaxToken token, ImmutableArray<AbstractFormattingRule> formattingRules, CancellationToken cancellationToken) 192private static ImmutableArray<TextChange> FormatRange( 196ImmutableArray<AbstractFormattingRule> formattingRules, 322private ImmutableArray<AbstractFormattingRule> GetFormattingRules(ParsedDocument document, int position, SyntaxToken tokenBeforeCaret) 337public ImmutableArray<TextChange> GetFormattingChangesOnPaste(ParsedDocument document, TextSpan textSpan, SyntaxFormattingOptions options, CancellationToken cancellationToken)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpAddImportsService.cs (2)
34protected override ImmutableArray<SyntaxNode> GetGlobalImports( 40var importScopes = semanticModel.GetImportScopes(contextLocation?.SpanStart ?? 0, cancellationToken);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpSemanticFactsService.cs (1)
37var visibleSymbols = semanticModel.LookupSymbols(location.SpanStart);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpSymbolDeclarationService.cs (1)
18public ImmutableArray<SyntaxReference> GetDeclarations(ISymbol symbol)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpSyntaxFactsService.cs (1)
116public Task<ImmutableArray<SyntaxNode>> GetSelectedFieldsAndPropertiesAsync(SyntaxTree tree, TextSpan textSpan, bool allowPartialSelection, CancellationToken cancellationToken)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (38)
111var allSymbols = symbolInfo.GetAllSymbols(); 364var parentTypes = InferTypes(tupleExpression); 724ImmutableArray<ImmutableArray<IParameterSymbol>> parameterizedSymbols, 740ImmutableArray<ImmutableArray<IParameterSymbol>> parameterizedSymbols, 744using var _1 = ArrayBuilder<ImmutableArray<IParameterSymbol>>.GetInstance(out var parameterListsWithMatchingCount); 745using var _2 = ArrayBuilder<ImmutableArray<IParameterSymbol>>.GetInstance(out var parameterListsWithoutMatchingCount); 748foreach (var parameterList in parameterizedSymbols) 775ImmutableArray<ImmutableArray<IParameterSymbol>> parameterizedSymbols, 793foreach (var parameterSet in parameterizedSymbols) 837var outerTypes = InferTypes(arrayCreationExpression); 861var currentTypes = InferTypes(arrayType); 1022var parentTypes = InferTypes(binop); 1036var parentTypes = InferTypes(binop); 1338var variableTypes = GetTypes(forEachStatementSyntax.Type).ToImmutableArray(); 1389var addMethodSymbols = SemanticModel.GetCollectionInitializerSymbolInfo(initializerExpression).GetAllSymbols(); 1407var addMethodSymbols = SemanticModel.GetCollectionInitializerSymbolInfo(expressionOpt).GetAllSymbols(); 1442var arrayTypes = this.InferTypes(implicitArray); 1498var addMethodSymbols = SemanticModel.GetCollectionInitializerSymbolInfo(expressionOpt).GetAllSymbols(); 1660var elementTypes = elementTypesBuilder.ToImmutableAndFree(); 1670private static ImmutableArray<NullableAnnotation> GetNullableAnnotations(ImmutableArray<ITypeSymbol> elementTypes) 1695var types = InferTypes(anonymousFunction); 1719var types = InferTypes(anonymousObject); 1997var types = InferTypes(prefixUnaryExpression); 2043var types = InferTypes(awaitExpression); 2277var laterUsageInference = InferTypeBasedOnLaterUsage(symbol, variableDeclaration); 2285private ImmutableArray<TypeInferenceInfo> InferTypeBasedOnLaterUsage(ISymbol symbol, SyntaxNode afterNode) 2306var inferredDescendantTypes = InferTypes(descendant, filterUnusable: true); 2326var elementNames = parenthesizedVariableDesignation.Variables.SelectAsArray(v => ((SingleVariableDesignationSyntax)v).Identifier.ValueText); 2327var elementTypes = parenthesizedVariableDesignation.Variables.SelectAsArray(v => 2332var inferredFutureUsage = InferTypeBasedOnLaterUsage(symbol, afterNode: left.Parent); 2361if (!TryGetTupleTypesAndNames(tuple.Arguments, out var elementTypes, out var elementNames)) 2372out ImmutableArray<ITypeSymbol> elementTypes, 2373out ImmutableArray<string> elementNames)
Microsoft.CodeAnalysis.CSharp.Features (977)
AddImport\CSharpAddImportCodeFixProvider.cs (2)
159public static ImmutableArray<string> FixableDiagnosticIds = [ 194public override ImmutableArray<string> FixableDiagnosticIds => AddImportDiagnosticIds.FixableDiagnosticIds;
AddImport\CSharpAddImportFeatureService.cs (1)
583var aliases = metadataReference.Properties.Aliases;
AddImport\CSharpAddMissingImportsFeatureService.cs (2)
22protected sealed override ImmutableArray<string> FixableDiagnosticIds => AddImportDiagnosticIds.FixableDiagnosticIds; 24protected 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 (9)
30protected abstract ImmutableArray<AbstractFormattingRule> GetBraceFormattingIndentationRulesAfterReturn(IndentationOptions options); 181static ImmutableArray<TextChange> GetMergedChanges(TextChange? newLineEdit, ImmutableArray<TextChange> formattingChanges, SourceText formattedText) 194var newRanges = TextChangeRangeExtensions.Merge( 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 (22)
41private static readonly ImmutableArray<SyntaxKind> _declarationKinds = 56private static readonly ImmutableArray<SyntaxKind> _declarationAndInvocableKinds = 67private static readonly ImmutableArray<SyntaxKind> _updatableAncestorKinds = 84private static readonly ImmutableArray<SyntaxKind> _updatableNodeKinds = 193var matchKinds = restrictToDeclarations 310var updatedLeadingTrivia = UpdateParamTagsInLeadingTrivia( 735var newArguments = PermuteArguments(declarationSymbol, [.. arguments.Select(a => UnifiedArgumentSyntax.Create(a))], 740var newArgumentsWithTrivia = TransferLeadingWhitespaceTrivia( 752var newArguments = PermuteArguments( 759var newArgumentsWithTrivia = TransferLeadingWhitespaceTrivia( 766private ImmutableArray<T> TransferLeadingWhitespaceTrivia<T, U>(IEnumerable<T> newArguments, SeparatedSyntaxList<U> oldArguments) 784private ImmutableArray<SyntaxTrivia> UpdateParamTagsInLeadingTrivia( 799var permutedParamNodes = VerifyAndPermuteParamNodes(paramNodes, declarationSymbol, updatedSignature); 806private ImmutableArray<SyntaxNode> VerifyAndPermuteParamNodes(IEnumerable<XmlElementSyntax> paramNodes, ISymbol declarationSymbol, SignatureChange updatedSignature) 809var originalParameters = updatedSignature.OriginalConfiguration.ToListOfParameters(); 810var reorderedParameters = updatedSignature.UpdatedConfiguration.ToListOfParameters(); 812var declaredParameters = GetParameters(declarationSymbol); 866public override async Task<ImmutableArray<ISymbol>> DetermineCascadedSymbolsFromDelegateInvokeAsync( 897var convertedMethodGroups = convertedMethodNodes 905protected override ImmutableArray<AbstractFormattingRule> GetFormattingRules(Document document) 940protected override ImmutableArray<IParameterSymbol> GetParameters(ISymbol declarationSymbol) 942var declaredParameters = declarationSymbol.GetParameters();
CodeFixes\GenerateType\GenerateTypeCodeFixProvider.cs (2)
37public override ImmutableArray<string> FixableDiagnosticIds 57protected override Task<ImmutableArray<CodeAction>> GetCodeActionsAsync(
CodeLens\CSharpCodeLensMemberFinder.cs (1)
27public async Task<ImmutableArray<CodeLensMember>> GetCodeLensMembersAsync(Document document, CancellationToken cancellationToken)
CodeRefactorings\ConvertLocalFunctionToMethod\CSharpConvertLocalFunctionToMethodCodeRefactoringProvider.cs (18)
80var captures = dataFlow.CapturedInside.Except(dataFlow.VariablesDeclared).Except(declaredSymbol.Parameters).ToImmutableArray(); 85var capturesAsParameters = captures.SelectAsArray( 96var typeParameters = CreateFinalTypeParameterList(semanticModel, localFunction, declaredSymbol, captures); 107var parameters = declaredSymbol.Parameters; 108var finalParameterList = CreateFinalParameterList(parameters, capturesAsParameters); 135var additionalTypeParameters = typeParameters.Except(declaredSymbol.TypeParameters).ToImmutableArray(); 137var additionalTypeArguments = additionalTypeParameters.SelectAsArray(p => (TypeSyntax)p.Name.ToIdentifierName()); 230var reservedNames = GetReservedNames(node, semanticModel, cancellationToken); 231var parameterNames = GenerateUniqueParameterNames(parameters, reservedNames); 252private static ImmutableArray<ITypeParameterSymbol> CreateFinalTypeParameterList( 256ImmutableArray<ISymbol> captures) 277private static ImmutableArray<IParameterSymbol> CreateFinalParameterList( 278ImmutableArray<IParameterSymbol> parameters, ImmutableArray<IParameterSymbol> capturesAsParameters) 293private static ImmutableArray<string> GenerateUniqueParameterNames(ImmutableArray<IParameterSymbol> parameters, ImmutableArray<string> reservedNames) 296private static ImmutableArray<string> GetReservedNames(SyntaxNode node, SemanticModel semanticModel, CancellationToken cancellationToken)
CodeRefactorings\EnableNullable\EnableNullableCodeRefactoringProvider.cs (1)
72var updatedDocumentRoots = await ProducerConsumer<(DocumentId documentId, SyntaxNode newRoot)>.RunParallelAsync(
CodeRefactorings\EnableNullable\EnableNullableCodeRefactoringProvider.FixAllProvider.cs (1)
65protected override async Task<ImmutableArray<CodeActionOperation>> ComputeOperationsAsync(IProgress<CodeAnalysisProgress> progress, CancellationToken cancellationToken)
CodeRefactorings\ExtractClass\CSharpExtractClassCodeRefactoringProvider.cs (2)
41var relaventNodes = await context.GetRelevantNodesAsync<ClassDeclarationSyntax>().ConfigureAwait(false); 45protected override Task<ImmutableArray<SyntaxNode>> GetSelectedNodesAsync(CodeRefactoringContext context)
CodeRefactorings\InlineTemporary\InlineTemporaryCodeRefactoringProvider.cs (3)
82var references = await GetReferenceLocationsAsync(document, variableDeclarator, cancellationToken).ConfigureAwait(false); 148var allReferences = await GetReferenceLocationsAsync(document, declarator, cancellationToken).ConfigureAwait(false); 329private 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 (2)
18internal static async Task<ImmutableArray<SyntaxNode>> GetSelectedDeclarationsOrVariablesAsync(CodeRefactoringContext context) 55var members = await CSharpSelectedMembers.Instance.GetSelectedMembersAsync(tree, span, allowPartialSelection: true, cancellationToken).ConfigureAwait(false);
CodeRefactorings\PullMemberUp\CSharpPullMemberUpCodeRefactoringProvider.cs (1)
28protected override Task<ImmutableArray<SyntaxNode>> GetSelectedNodesAsync(CodeRefactoringContext context)
CodeRefactorings\SyncNamespace\CSharpChangeNamespaceService.cs (12)
45protected override async Task<ImmutableArray<(DocumentId, SyntaxNode)>> GetValidContainersFromAllLinkedDocumentsAsync( 72if (!IsSupportedLinkedDocument(document, out var allDocumentIds)) 114ImmutableArray<string> newNamespaceParts, 211ImmutableArray<string> newNamespaceParts, 240ImmutableArray<string> declaredNamespaceParts, 241ImmutableArray<string> targetNamespaceParts) 318private static CompilationUnitSyntax MoveMembersFromGlobalToNamespace(CompilationUnitSyntax compilationUnit, ImmutableArray<string> targetNamespaceParts) 370var namespaceDecls = node.AncestorsAndSelf().OfType<BaseNamespaceDeclarationSyntax>().ToImmutableArray(); 420private static NameSyntax CreateNamespaceAsQualifiedName(ImmutableArray<string> namespaceParts, string? aliasQualifier, int index) 433private static ExpressionSyntax CreateNamespaceAsMemberAccess(ImmutableArray<string> namespaceParts, string? aliasQualifier, int index) 458private static (ImmutableArray<SyntaxTrivia> openingTrivia, ImmutableArray<SyntaxTrivia> closingTrivia)
CodeRefactorings\SyncNamespace\CSharpSyncNamespaceCodeRefactoringProvider.cs (1)
34var namespaceDecls = compilationUnit.DescendantNodes(n => n is CompilationUnitSyntax or BaseNamespaceDeclarationSyntax)
CodeRefactorings\UseRecursivePatterns\UseRecursivePatternsCodeRefactoringProvider.cs (9)
44protected override ImmutableArray<RefactorAllScope> SupportedRefactorAllScopes => AllRefactorAllScopes; 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 (9)
91protected override async Task<(SyntaxToken, SemanticModel?, ImmutableArray<ISymbol>)> GetSymbolsAsync( 111var symbols = GetSymbols(token, semanticModel, cancellationToken) 166private static ImmutableArray<ISymbol> GetSymbols( 181private static ImmutableArray<ISymbol> GetUnqualifiedSymbols( 212private static ImmutableArray<ISymbol> GetQualifiedSymbols( 230SemanticModel semanticModel, ImmutableArray<ISymbol> symbols, SyntaxToken token, int position) 289var parameters = symbol.GetParameters(); 343var commitRules = ImmutableArray<CharacterSetModificationRule>.Empty;
Completion\CompletionProviders\CSharpSuggestionModeCompletionProvider.cs (1)
182var inferredTypeInfo = typeInferrer.GetTypeInferenceInfo(semanticModel, position, cancellationToken: cancellationToken);
Completion\CompletionProviders\DeclarationName\DeclarationNameCompletionProvider.cs (2)
31private ImmutableArray<Lazy<IDeclarationNameRecommender, OrderableMetadata>> Recommenders { get; } = [.. ExtensionOrderer.Order(recommenders)]; 76var names = await recommender.Value.ProvideRecommendedNamesAsync(
Completion\CompletionProviders\DeclarationName\DeclarationNameInfo.cs (13)
22ImmutableArray<SymbolKindOrTypeKind> possibleSymbolKinds, 29private static readonly ImmutableArray<SymbolKindOrTypeKind> s_parameterSyntaxKind = 32private static readonly ImmutableArray<SymbolKindOrTypeKind> s_propertySyntaxKind = 41public ImmutableArray<SymbolKindOrTypeKind> PossibleSymbolKinds { get => field.NullToEmpty(); } = possibleSymbolKinds; 291Func<DeclarationModifiers, ImmutableArray<SymbolKindOrTypeKind>> possibleDeclarationComputer, 325Func<DeclarationModifiers, ImmutableArray<SymbolKindOrTypeKind>> possibleDeclarationComputer, 336Func<DeclarationModifiers, ImmutableArray<SymbolKindOrTypeKind>> possibleDeclarationComputer, 359Func<DeclarationModifiers, ImmutableArray<SymbolKindOrTypeKind>> possibleDeclarationComputer, 366var possibleDeclarations = possibleDeclarationComputer(declarationModifiers); 425? (Func<DeclarationModifiers, ImmutableArray<SymbolKindOrTypeKind>>) 596private static ImmutableArray<SymbolKindOrTypeKind> GetPossibleMemberDeclarations(DeclarationModifiers modifiers) 603var possibleTypes = ImmutableArray.Create( 623private static ImmutableArray<SymbolKindOrTypeKind> GetPossibleLocalDeclarations(DeclarationModifiers modifiers)
Completion\CompletionProviders\DeclarationName\DeclarationNameRecommender.cs (16)
35public async Task<ImmutableArray<(string name, Glyph glyph)>> ProvideRecommendedNamesAsync( 48var names = GetBaseNames(context.SemanticModel, nameInfo).NullToEmpty(); 63private ImmutableArray<ImmutableArray<string>> GetBaseNames(SemanticModel semanticModel, NameDeclarationInfo nameInfo) 75var baseNames = NameGenerator.GetBaseNames(type, plural); 80using var result = TemporaryArray<ImmutableArray<string>>.Empty; 91var returnTypeBaseNames = NameGenerator.GetBaseNames(unwrappedReturnType, returnTypePlural); 94foreach (var baseName in returnTypeBaseNames) 226ImmutableArray<ImmutableArray<string>> baseNames, 233var rules = namingStyleOptions.Rules.NamingRules.AddRange(FallbackNamingRules.CompletionFallbackRules); 235var supplementaryRules = FallbackNamingRules.CompletionSupplementaryRules; 248ImmutableArray<NamingRule> rules, 257foreach (var baseName in baseNames) 311var overloads = GetOverloads(namedType, baseMethod); 332static ImmutableArray<IMethodSymbol> GetOverloads(INamedTypeSymbol namedType, BaseMethodDeclarationSyntax baseMethod)
Completion\CompletionProviders\DeclarationName\DeclarationNameRecommender.NameGenerator.cs (13)
12using Words = System.Collections.Immutable.ImmutableArray<string>; 23internal static ImmutableArray<Words> GetBaseNames(ITypeSymbol type, bool pluralize) 28var result = GetInterleavedPatterns(parts, baseName, pluralize); 33internal static ImmutableArray<Words> GetBaseNames(IAliasSymbol alias) 45var result = GetInterleavedPatterns(breaks, name, pluralize: false); 49private static ImmutableArray<Words> GetInterleavedPatterns( 52using var result = TemporaryArray<Words>.Empty; 68private static Words GetLongestBackwardSubsequence(int length, in TemporaryArray<TextSpan> breaks, string baseName, bool pluralize) 75private static Words GetLongestForwardSubsequence(int length, in TemporaryArray<TextSpan> breaks, string baseName, bool pluralize) 78private 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 (2)
89var infos = typeInferenceService.GetTypeInferenceInfo(semanticModel, position, cancellationToken); 249var additionalFilterTexts = ImmutableArray.Create(staticSymbol.Name);
Completion\CompletionProviders\ExplicitInterfaceMemberCompletionProvider.cs (2)
63var members = implementInterfaceService.ImplementInterfaceMember( 107var items = await state.GetItemsAsync().ConfigureAwait(false);
Completion\CompletionProviders\ExplicitInterfaceMemberCompletionProvider.ItemGetter.cs (4)
60public override async Task<ImmutableArray<CompletionItem>> GetItemsAsync() 126var items = symbol.GetMembers() 147var members = implementInterfaceService.ImplementInterfaceMember( 247private void AddParameters(ImmutableArray<IParameterSymbol> parameters, StringBuilder builder, SemanticModel semanticModel)
Completion\CompletionProviders\ExplicitInterfaceTypeCompletionProvider.cs (2)
64protected override Task<ImmutableArray<SymbolAndSelectionInfo>> GetSymbolsAsync( 150ImmutableArray<SymbolAndSelectionInfo> symbols,
Completion\CompletionProviders\FileBasedPrograms\IncludeAppDirectiveCompletionProvider.cs (1)
64var items = await fileSystemHelper.GetItemsAsync(contentDirectory, context.CancellationToken).ConfigureAwait(false);
Completion\CompletionProviders\FileBasedPrograms\ProjectAppDirectiveCompletionProvider.cs (1)
58var items = await fileSystemHelper.GetItemsAsync(contentDirectory, context.CancellationToken).ConfigureAwait(false);
Completion\CompletionProviders\FileBasedPrograms\RefAppDirectiveCompletionProvider.cs (1)
52var items = await fileSystemHelper.GetItemsAsync(contentDirectory, context.CancellationToken).ConfigureAwait(false);
Completion\CompletionProviders\FunctionPointerUnmanagedCallingConventionCompletionProvider.cs (1)
41private static readonly ImmutableArray<string> s_predefinedCallingConventions = ["Cdecl", "Fastcall", "Thiscall", "Stdcall"];
Completion\CompletionProviders\NamedParameterCompletionProvider.cs (10)
77var unspecifiedParameters = parameterLists 120private static bool IsValid(ImmutableArray<IParameterSymbol> parameterList, ISet<string> existingNamedParameters) 133private static IEnumerable<ImmutableArray<IParameterSymbol>>? GetParameterLists( 146private static IEnumerable<ImmutableArray<IParameterSymbol>>? GetObjectCreationExpressionParameterLists( 163private static IEnumerable<ImmutableArray<IParameterSymbol>>? GetElementAccessExpressionParameterLists( 184private static IEnumerable<ImmutableArray<IParameterSymbol>>? GetConstructorInitializerParameterLists( 202private static IEnumerable<ImmutableArray<IParameterSymbol>>? GetPrimaryConstructorParameterLists( 221private static IEnumerable<ImmutableArray<IParameterSymbol>>? GetInvocationExpressionParameterLists( 247private static IEnumerable<ImmutableArray<IParameterSymbol>> GetWithElementParameterLists( 252var creationMethods = withElement.GetCreationMethods(semanticModel, cancellationToken);
Completion\CompletionProviders\ObjectCreationCompletionProvider.cs (3)
64protected override async Task<ImmutableArray<SymbolAndSelectionInfo>> GetSymbolsAsync( 67var result = await base.GetSymbolsAsync(completionContext, context, position, options, cancellationToken).ConfigureAwait(false); 119protected override CompletionItemRules GetCompletionItemRules(ImmutableArray<SymbolAndSelectionInfo> symbols)
Completion\CompletionProviders\OperatorsAndIndexer\UnnamedSymbolCompletionProvider_Conversions.cs (7)
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); 123var allChanges = builder.ToImmutable(); 147var symbols = await SymbolCompletionItem.GetSymbolsAsync(item, document, cancellationToken).ConfigureAwait(false); 162var symbols = await SymbolCompletionItem.GetSymbolsAsync(item, document, cancellationToken).ConfigureAwait(false);
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 (3)
35private readonly ImmutableArray<KeyValuePair<string, string>> OperatorProperties = 41private static readonly ImmutableArray<(string name, OperatorPosition position)> s_operatorInfo = 95var opCharacters = ImmutableArray.CreateRange(filterCharacters);
Completion\CompletionProviders\OperatorsAndIndexer\UnnamedSymbolCompletionProvider.cs (1)
122CompletionContext context, int position, SemanticModel semanticModel, ImmutableArray<ISymbol> unnamedSymbols, CancellationToken cancellationToken)
Completion\CompletionProviders\OverrideCompletionProvider.cs (3)
191public override ImmutableArray<ISymbol> FilterOverrides(ImmutableArray<ISymbol> members, ITypeSymbol? returnType) 198var filteredMembers = members.WhereAsArray(m =>
Completion\CompletionProviders\PartialTypeCompletionProvider.cs (1)
75protected override ImmutableArray<KeyValuePair<string, string>> GetProperties(INamedTypeSymbol symbol, CSharpSyntaxContext context)
Completion\CompletionProviders\PropertySubPatternCompletionProvider.cs (5)
71var members = GetCandidatePropertiesAndFields(document, semanticModel, position, type); 124var members = GetCandidatePropertiesAndFields(document, semanticModel, position, type); 125var matches = members.WhereAsArray(m => m.Name == name); 139static ImmutableArray<ISymbol> GetCandidatePropertiesAndFields(Document document, SemanticModel semanticModel, int position, ITypeSymbol? type) 141var members = semanticModel.LookupSymbols(position, type);
Completion\CompletionProviders\SnippetCompletionProvider.cs (2)
98private static async Task<ImmutableArray<CompletionItem>> GetSnippetsForDocumentAsync( 163private 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 (2)
59var inferredTypes = typeInferrer.InferTypes(semanticModel, context.TargetToken.Parent!.SpanStart, cancellationToken) 91private static void AddItems(ImmutableArray<INamedTypeSymbol> inferredTypes, int index, CompletionContext context, int spanStart)
Completion\CompletionProviders\XmlDocCommentCompletionProvider.cs (4)
40private static readonly ImmutableArray<string> s_keywordNames; 343protected override ImmutableArray<string> GetKeywordNames() 388protected override ImmutableArray<IParameterSymbol> GetParameters(ISymbol declarationSymbol) 390var declaredParameters = declarationSymbol.GetParameters();
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)
27public ImmutableArray<RecommendedKeyword> RecommendKeywords(int position, CSharpSyntaxContext context, CancellationToken cancellationToken)
ConvertAnonymousType\CSharpConvertAnonymousTypeToTupleCodeRefactoringProvider.cs (1)
42var originalSeparators = declarators.GetSeparators().ToImmutableArray();
ConvertIfToSwitch\CSharpConvertIfToSwitchCodeRefactoringProvider.Rewriting.cs (1)
31ExpressionSyntax target, ImmutableArray<AnalyzedSwitchSection> sections, Feature feature)
ConvertLinq\ConvertForEachToLinqQuery\DefaultConverter.cs (1)
93private static BlockSyntax WrapWithBlockIfNecessary(ImmutableArray<StatementSyntax> statements)
ConvertNamespace\ConvertNamespaceCodeRefactoringProvider.cs (2)
32protected override ImmutableArray<RefactorAllScope> SupportedRefactorAllScopes 89ImmutableArray<TextSpan> fixAllSpans,
ConvertPrimaryToRegularConstructor\ConvertPrimaryToRegularConstructorCodeRefactoringProvider.cs (1)
94var parameters = parameterList.Parameters.SelectAsArray(p => semanticModel.GetRequiredDeclaredSymbol(p, cancellationToken));
ConvertProgram\ConvertProgramTransform_ProgramMain.cs (1)
120private static ImmutableArray<StatementSyntax> GenerateProgramMainStatements(
ConvertProgram\ConvertProgramTransform_TopLevelStatements.cs (3)
107var globalStatements = GetGlobalStatements( 128var fileBanner = root.GetFirstToken() == namespaceDeclaration.GetFirstToken() 194private static ImmutableArray<GlobalStatementSyntax> GetGlobalStatements(
ConvertProgram\ConvertToProgramMainCodeFixProvider.cs (2)
29public override ImmutableArray<string> FixableDiagnosticIds 46Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken)
ConvertProgram\ConvertToTopLevelStatementsCodeFixProvider.cs (2)
28public override ImmutableArray<string> FixableDiagnosticIds 45Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken)
ConvertToExtension\ConvertToExtensionCodeRefactoringProvider.cs (8)
51ImmutableArray<ITypeParameterSymbol> MethodTypeParameters) 121private static ImmutableDictionary<ExtensionMethodInfo, ImmutableArray<ExtensionMethodInfo>> GetAllExtensionMethods( 195ImmutableDictionary<ExtensionMethodInfo, ImmutableArray<ExtensionMethodInfo>> allExtensionMethods, 220ImmutableDictionary<ExtensionMethodInfo, ImmutableArray<ExtensionMethodInfo>> allExtensionMethods, 242void ConvertAndReplaceExtensions(ImmutableArray<ExtensionMethodInfo> extensionMethods) 255ExtensionBlockDeclarationSyntax CreateExtension(ImmutableArray<ExtensionMethodInfo> group) 266var typeParameters = firstExtensionInfo.MethodTypeParameters.CastArray<ITypeParameterSymbol>(); 286firstExtensionInfo.ExtensionMethod.GetNodeWithoutLeadingBlankLines(out var leadingBlankLines);
ConvertToExtension\ConvertToExtensionFixAllProvider.cs (2)
31Optional<ImmutableArray<TextSpan>> refactorAllSpans) 60SyntaxNode root, Optional<ImmutableArray<TextSpan>> fixAllSpans)
ConvertToExtension\ExtensionMethodEqualityComparer.cs (2)
38private bool AttributesMatch(ImmutableArray<AttributeData> attributes1, ImmutableArray<AttributeData> attributes2)
ConvertToRawString\ConvertStringToRawStringCodeRefactoringProvider.cs (3)
41private static readonly ImmutableArray<IConvertStringProvider> s_convertStringProviders = 44protected override ImmutableArray<RefactorAllScope> SupportedRefactorAllScopes => AllRefactorAllScopes; 144ImmutableArray<TextSpan> fixAllSpans,
Copilot\CSharpCopilotCodeFixProvider.cs (2)
50public sealed override ImmutableArray<string> FixableDiagnosticIds => [CopilotDiagnosticId]; 69var promptTitles = await copilotService.GetAvailablePromptTitlesAsync(document, cancellationToken).ConfigureAwait(false);
Copilot\CSharpCopilotCodeFixProvider.DocumentChangeCodeAction.cs (1)
28internal sealed override ImmutableArray<CodeAction> AdditionalPreviewFlavors { get; } = [dismissChangesCodeAction];
Copilot\CSharpCopilotProposalAdjusterService.cs (2)
43var closeBraceDiagnostics = newDiagnostics.WhereAsArray(d => d.Id == CS1513 && d.Location.SourceSpan.Start >= lastChangeEndPos); 48var insertCloseBraceTextChanges = closeBraceDiagnostics.SelectAsArray(
Copilot\CSharpImplementNotImplementedExceptionFixProvider.cs (5)
37public override ImmutableArray<string> FixableDiagnosticIds { get; } 84Document document, ImmutableArray<Diagnostic> diagnostics, 87var memberReferencesBuilder = ImmutableDictionary.CreateBuilder<SyntaxNode, ImmutableArray<ReferencedSymbol>>(); 103var references = await SymbolFinder.FindReferencesAsync(memberSymbol, document.Project.Solution, searchOptions, cancellationToken).ConfigureAwait(false); 167public override ImmutableArray<string> Tags { get; } = [WellKnownTags.Copilot];
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);
DocumentationComments\DocCommentConverter.cs (1)
85var commentLines = AbstractMetadataAsSourceService.DocCommentFormatter.Format(_formattingService, docComment);
DocumentHighlighting\CSharpDocumentHighlightsService.cs (1)
34protected override async Task<ImmutableArray<Location>> GetAdditionalReferencesAsync(
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (6)
563protected override IEnumerable<SequenceEdit> GetSyntaxSequenceEdits(ImmutableArray<SyntaxNode> oldNodes, ImmutableArray<SyntaxNode> newNodes) 981var syntaxRefs = type.DeclaringSyntaxReferences; 986protected override SyntaxNode? GetSymbolDeclarationSyntax(ISymbol symbol, Func<ImmutableArray<SyntaxReference>, SyntaxReference?> selector, CancellationToken cancellationToken) 1567var oldParameters = oldMethod.Parameters; 1568var newParameters = newMethod.Parameters;
EditAndContinue\DeclarationBody\CopyConstructorDeclarationBody.cs (1)
47public override ImmutableArray<ISymbol> GetCapturedVariables(SemanticModel model)
EditAndContinue\DeclarationBody\CSharpLambdaBody.cs (1)
36public override ImmutableArray<ISymbol> GetCapturedVariables(SemanticModel model)
EditAndContinue\DeclarationBody\FieldWithInitializerDeclarationBody.cs (1)
35public override ImmutableArray<ISymbol> GetCapturedVariables(SemanticModel model)
EditAndContinue\DeclarationBody\OrdinaryInstanceConstructorWithExplicitInitializerDeclarationBody.cs (1)
37public override ImmutableArray<ISymbol> GetCapturedVariables(SemanticModel model)
EditAndContinue\DeclarationBody\OrdinaryInstanceConstructorWithImplicitInitializerDeclarationBody.cs (1)
31public override ImmutableArray<ISymbol> GetCapturedVariables(SemanticModel model)
EditAndContinue\DeclarationBody\PrimaryConstructorWithExplicitInitializerDeclarationBody.cs (1)
45public override ImmutableArray<ISymbol> GetCapturedVariables(SemanticModel model)
EditAndContinue\DeclarationBody\PrimaryConstructorWithImplicitInitializerDeclarationBody.cs (1)
45public override ImmutableArray<ISymbol> GetCapturedVariables(SemanticModel model)
EditAndContinue\DeclarationBody\PropertyOrIndexerAccessorDeclarationBody.cs (1)
77public sealed override ImmutableArray<ISymbol> GetCapturedVariables(SemanticModel model)
EditAndContinue\DeclarationBody\TopLevelCodeDeclarationBody.cs (1)
31public override ImmutableArray<ISymbol> GetCapturedVariables(SemanticModel model)
EditAndContinue\SyntaxComparer.cs (5)
1621private static ImmutableArray<T> CreateArrayForDistanceCalculation<T>(IEnumerable<T>? enumerable) 1651public static IEnumerable<SequenceEdit> GetSequenceEdits(ImmutableArray<SyntaxNode> oldNodes, ImmutableArray<SyntaxNode> newNodes) 1663public static IEnumerable<SequenceEdit> GetSequenceEdits(ImmutableArray<SyntaxToken> oldTokens, ImmutableArray<SyntaxToken> newTokens)
EncapsulateField\CSharpEncapsulateFieldService.cs (2)
123protected override async Task<ImmutableArray<IFieldSymbol>> GetFieldsAsync(Document document, TextSpan span, CancellationToken cancellationToken) 133var declarations = fields.SelectAsArray(CanEncapsulate, f => f.Declaration);
ExternalAccess\Pythia\Api\IPythiaDeclarationNameRecommenderImplmentation.cs (1)
17Task<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 (2)
26public async Task<ImmutableArray<(string name, Glyph glyph)>> ProvideRecommendedNamesAsync( 37var result = await _lazyImplementation.Value.ProvideRecommendationsAsync(context, cancellationToken).ConfigureAwait(false);
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) 286var statements = _statementsOrMemberOrAccessorToInsert.CastArray<StatementSyntax>();
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.cs (25)
82public override OperationStatus<ImmutableArray<SyntaxNode>> GetNewMethodStatements(SyntaxNode insertionPointNode, CancellationToken cancellationToken) 84var statements = CreateMethodBody(insertionPointNode, cancellationToken); 92var statements = CreateMethodBody(insertionPointNode, cancellationToken); 122var statementsToInsert = await CreateStatementsOrInitializerToInsertAtCallSiteAsync( 135private async Task<ImmutableArray<SyntaxNode>> CreateStatementsOrInitializerToInsertAtCallSiteAsync( 153var statements = AddSplitOrMoveDeclarationOutStatementsToCallSite(cancellationToken); 167private ImmutableArray<StatementSyntax> AddComplexFlowControlProcessingStatements(ImmutableArray<StatementSyntax> statements) 407private ImmutableArray<StatementSyntax> CreateMethodBody( 410var statements = GetInitialStatementsForMethodDefinitions(); 426private ImmutableArray<StatementSyntax> ConvertComplexControlFlowStatements(ImmutableArray<StatementSyntax> statements) 540private ImmutableArray<StatementSyntax> WrapInCheckStatementIfNeeded(ImmutableArray<StatementSyntax> statements) 551private static ImmutableArray<StatementSyntax> CleanupCode(ImmutableArray<StatementSyntax> statements) 560private static OperationStatus CheckActiveStatements(ImmutableArray<StatementSyntax> statements) 584private ImmutableArray<StatementSyntax> MoveDeclarationOutFromMethodDefinition( 585ImmutableArray<StatementSyntax> statements, CancellationToken cancellationToken) 780private ImmutableArray<StatementSyntax> SplitOrMoveDeclarationIntoMethodDefinition( 782ImmutableArray<StatementSyntax> statements, 788var declStatements = CreateDeclarationStatements(AnalyzerResult.GetVariablesToSplitOrMoveIntoMethodDefinition(), cancellationToken); 871ImmutableArray<VariableInfo> variableInfos, 885ImmutableArray<VariableInfo> variableInfos, 1158var namingRules = Options.NamingStyle.Rules.NamingRules;
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.ExpressionCodeGenerator.cs (1)
87protected override ImmutableArray<StatementSyntax> GetInitialStatementsForMethodDefinitions()
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.MultipleStatementsCodeGenerator.cs (1)
33protected override ImmutableArray<StatementSyntax> GetInitialStatementsForMethodDefinitions()
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.SingleStatementCodeGenerator.cs (1)
30protected override ImmutableArray<StatementSyntax> GetInitialStatementsForMethodDefinitions()
ExtractMethod\CSharpMethodExtractor.PostProcessor.cs (11)
36public static ImmutableArray<StatementSyntax> RemoveRedundantBlock(ImmutableArray<StatementSyntax> statements) 54private static ImmutableArray<StatementSyntax> RemoveRedundantBlock(BlockSyntax block) 82public ImmutableArray<StatementSyntax> MergeDeclarationStatements(ImmutableArray<StatementSyntax> statements) 92private ImmutableArray<StatementSyntax> MergeDeclarationStatementsWorker(ImmutableArray<StatementSyntax> statements) 227public static ImmutableArray<StatementSyntax> RemoveInitializedDeclarationAndReturnPattern(ImmutableArray<StatementSyntax> statements) 266public static ImmutableArray<StatementSyntax> RemoveDeclarationAssignmentPattern(ImmutableArray<StatementSyntax> statements)
ExtractMethod\CSharpSelectionResult.cs (4)
133public override bool ContainsUnsupportedExitPointsStatements(ImmutableArray<SyntaxNode> exitPoints) 136public override ImmutableArray<StatementSyntax> GetOuterReturnStatements(SyntaxNode commonRoot, ImmutableArray<SyntaxNode> exitPoints) 140ImmutableArray<StatementSyntax> returnStatements, CancellationToken cancellationToken)
FullyQualify\CSharpFullyQualifyCodeFixProvider.cs (1)
50public override ImmutableArray<string> FixableDiagnosticIds { get; } =
GenerateEqualsAndGetHashCodeFromMembers\CSharpGenerateEqualsAndGetHashCodeService.cs (2)
25protected override bool TryWrapWithUnchecked(ImmutableArray<SyntaxNode> statements, out ImmutableArray<SyntaxNode> wrappedStatements)
GenerateType\CSharpGenerateTypeService.cs (2)
433var memberGroup = semanticModel.GetMemberGroup(expression, cancellationToken); 466protected override ImmutableArray<ITypeParameterSymbol> GetTypeParameters(
Highlighting\KeywordHighlighters\ConditionalPreprocessorHighlighter.cs (1)
25var conditionals = directive.GetMatchingConditionalDirectives(cancellationToken);
ImplementInterface\AbstractChangeImplementationCodeRefactoringProvider.cs (3)
73var implementations = member.ExplicitOrImplicitInterfaceImplementations(); 85var interfaceTypes = directlyImplementedMembers.SelectMany(kvp => kvp.Value).Select( 190private MemberImplementationMap GetImplementedMembers(INamedTypeSymbol containingType, ImmutableArray<INamedTypeSymbol> interfaceTypes)
ImplementInterface\CSharpImplementExplicitlyCodeRefactoringProvider.cs (1)
52var references = await SymbolFinder.FindReferencesAsync(
ImplementInterface\CSharpImplementImplicitlyCodeRefactoringProvider.cs (2)
35var memberInterfaceImplementations = member.ExplicitInterfaceImplementations(); 38var containingTypeInterfaces = member.ContainingType.AllInterfaces;
InheritanceMargin\CSharpInheritanceMarginService.cs (1)
28protected override ImmutableArray<SyntaxNode> GetMembers(IEnumerable<SyntaxNode> nodesToSearch)
InitializeParameter\CSharpInitializeMemberFromPrimaryConstructorParameterCodeRefactoringProvider_Update.cs (2)
26ImmutableArray<IParameterSymbol> parameters, 27ImmutableArray<ISymbol> fieldsOrProperties,
InitializeParameter\CSharpInitializeMemberFromPrimaryConstructorParameterCodeRefactoringProvider.cs (6)
67var rules = await document.GetNamingRulesAsync(cancellationToken).ConfigureAwait(false); 94var parameterWords = parameterNameParts.BaseNameParts; 163var parameters = GetParametersWithoutAssociatedMembers(); 190ImmutableArray<IParameterSymbol> GetParametersWithoutAssociatedMembers() 212var parameterNameParts = IdentifierNameParts.CreateIdentifierNameParts(parameter, rules).BaseNameParts; 238var parameterNameParts = IdentifierNameParts.CreateIdentifierNameParts(parameter, rules).BaseNameParts;
IntroduceVariable\CSharpIntroduceLocalForExpressionCodeRefactoringProvider.cs (1)
102var localTypesAndDesignations = tupleType.TupleElements.SelectAsArray((field, index, _) =>
LanguageServices\CSharpStructuralTypeDisplayService.cs (1)
32protected override ImmutableArray<SymbolDisplayPart> GetNormalAnonymousTypeParts(
LanguageServices\CSharpSymbolDisplayService.SymbolDescriptionBuilder.cs (10)
98protected override Task<ImmutableArray<SymbolDisplayPart>> GetInitializerSourcePartsAsync( 118protected override ImmutableArray<SymbolDisplayPart> ToMinimalDisplayParts(ISymbol symbol, SemanticModel semanticModel, int position, SymbolDisplayFormat format) 120var displayParts = CodeAnalysis.CSharp.SymbolDisplay.ToMinimalDisplayParts(symbol, semanticModel, position, format); 124protected override ImmutableArray<SymbolDisplayPart> WrapConstraints(ISymbol symbol, ImmutableArray<SymbolDisplayPart> displayParts) 126var typeParameter = symbol.GetTypeParameters(); 264private async Task<ImmutableArray<SymbolDisplayPart>> GetInitializerSourcePartsAsync( 292private async Task<ImmutableArray<SymbolDisplayPart>> GetInitializerSourcePartsAsync( 304private async Task<ImmutableArray<SymbolDisplayPart>> GetInitializerSourcePartsAsync( 330private async Task<ImmutableArray<SymbolDisplayPart>> GetInitializerSourcePartsAsync(
LineSeparators\CSharpLineSeparatorService.cs (1)
33public 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 (4)
49protected override async Task<ImmutableArray<RoslynNavigationBarItem>> GetItemsInCurrentProcessAsync( 62private static ImmutableArray<RoslynNavigationBarItem> GetMembersInTypes( 216static ImmutableArray<RoslynNavigationBarItem> CreateLocalFunctionMembers( 235var childItems = CreateLocalFunctionMembers(solution, localFunction, semanticModel, cancellationToken);
Options\CSharpEditorConfigOptionsEnumerator.cs (1)
21public IEnumerable<(string feature, ImmutableArray<IOption2> options)> GetOptions(bool includeUnsupported)
Organizing\Organizers\MemberDeclarationsOrganizer.cs (2)
84var blankLines = originalNodeAtThatIndex.GetLeadingBlankLines(); 98var banner = originalList[0].GetLeadingBannerAndPreprocessorDirectives();
Organizing\Organizers\ModifiersOrganizer.Comparer.cs (1)
36private static readonly ImmutableArray<Func<SyntaxToken, IComparable>> s_comparers =
QuickInfo\CSharpSemanticQuickInfoProvider.cs (5)
89protected override ImmutableArray<TaggedText> GetInterceptorDisplayParts( 141var typeArguments = GetInterceptorTypeArguments(resolvedMethod); 157private static ImmutableArray<ITypeSymbol> GetInterceptorTypeArguments(IMethodSymbol resolvedMethod) 363var declarationCode = symbol.DeclaringSyntaxReferences.SelectAsArray(reference => 370var additionalContext = OnTheFlyDocsUtilities.GetAdditionalOnTheFlyDocsContext(solution, symbol);
QuickInfo\CSharpSyntacticQuickInfoProvider.cs (3)
84var spans = ImmutableArray.Create(TextSpan.FromBounds(spanStart, spanEnd)); 142var matchingDirectives = directiveTrivia.GetMatchingConditionalDirectives(cancellationToken); 143var matchesBefore = matchingDirectives
QuickInfo\OnTheFlyDocsUtilities.cs (3)
14public static ImmutableArray<OnTheFlyDocsRelevantFileInfo?> GetAdditionalOnTheFlyDocsContext(Solution solution, ISymbol symbol) 16var parameterStrings = symbol.GetParameters().SelectAsArray(parameter => GetOnTheFlyDocsRelevantFileInfo(parameter.Type)); 17var typeArgumentStrings = symbol.GetTypeArguments().SelectAsArray(GetOnTheFlyDocsRelevantFileInfo);
RemoveUnusedVariable\CSharpRemoveUnusedVariableCodeFixProvider.cs (1)
28public sealed override ImmutableArray<string> FixableDiagnosticIds
ReplacePropertyWithMethods\CSharpReplacePropertyWithMethodsService.cs (2)
35public override async Task<ImmutableArray<SyntaxNode>> GetReplacementMembersAsync( 59private static ImmutableArray<SyntaxNode> ConvertPropertyToMembers(
SignatureHelp\AbstractGenericNameSignatureHelpProvider.cs (4)
25public override ImmutableArray<char> TriggerCharacters => ['<', ',']; 27public override ImmutableArray<char> RetriggerCharacters => ['>']; 70var symbols = isBaseAccess 82var accessibleSymbols = symbols
SignatureHelp\AttributeSignatureHelpProvider.cs (3)
35public override ImmutableArray<char> TriggerCharacters => ['(', ',']; 37public override ImmutableArray<char> RetriggerCharacters => [')']; 92var accessibleConstructors = attributeType.InstanceConstructors
SignatureHelp\ConstructorInitializerSignatureHelpProvider.cs (4)
33public override ImmutableArray<char> TriggerCharacters => ['(', ',']; 35public override ImmutableArray<char> RetriggerCharacters => [')']; 84var constructors = type.InstanceConstructors 100var items = constructors.SelectAsArray(m => Convert(m, constructorInitializer.ArgumentList.OpenParenToken, semanticModel, structuralTypeDisplayService, documentationCommentFormattingService));
SignatureHelp\ElementAccessExpressionSignatureHelpProvider.cs (7)
31private static readonly ImmutableArray<char> s_triggerCharacters = ['[', ',']; 39public override ImmutableArray<char> TriggerCharacters => s_triggerCharacters; 41public override ImmutableArray<char> RetriggerCharacters => [']']; 80if (!TryGetIndexers(position, semanticModel, expression, cancellationToken, out var indexers, out var expressionType) && 92var accessibleIndexers = indexers.WhereAsArray( 180out ImmutableArray<IPropertySymbol> indexers, out ITypeSymbol? expressionType) 196out ImmutableArray<IPropertySymbol> indexers, out ITypeSymbol? expressionType)
SignatureHelp\InitializerExpressionSignatureHelpProvider.cs (3)
30public override ImmutableArray<char> TriggerCharacters => ['{', ',']; 32public override ImmutableArray<char> RetriggerCharacters => ['}']; 61var addMethods = await CommonSignatureHelpUtilities.GetCollectionInitializerAddMethodsAsync(
SignatureHelp\InvocationExpressionSignatureHelpProvider.cs (3)
33public override ImmutableArray<char> TriggerCharacters => ['(', ',']; 35public override ImmutableArray<char> RetriggerCharacters => [')']; 79var methods = semanticModel
SignatureHelp\InvocationExpressionSignatureHelpProviderBase_MethodGroup.cs (5)
20internal virtual Task<(ImmutableArray<SignatureHelpItem> items, int? selectedItemIndex)> GetMethodGroupItemsAndSelectionAsync( 21ImmutableArray<IMethodSymbol> accessibleMethods, 29var items = accessibleMethods.SelectAsArray(method => ConvertMethodGroupMethod( 35private static ImmutableArray<IMethodSymbol> GetAccessibleMethods( 78var accessibleMethods = methodGroup.Where(m => m.IsAccessibleWithin(within, throughType: throughType)).ToImmutableArrayOrEmpty();
SignatureHelp\ObjectCreationExpressionSignatureHelpProvider_DelegateType.cs (1)
15private static ImmutableArray<SignatureHelpItem> ConvertDelegateTypeConstructor(
SignatureHelp\ObjectCreationExpressionSignatureHelpProvider.cs (5)
26public override ImmutableArray<char> TriggerCharacters => ['(', ',']; 28public override ImmutableArray<char> RetriggerCharacters => [')']; 74var methods = type.InstanceConstructors 90var items = methods.SelectAsArray(c => 118var items = ConvertDelegateTypeConstructor(objectCreationExpression, invokeMethod, semanticModel, structuralTypeDisplayService, position);
SignatureHelp\PrimaryConstructorBaseTypeSignatureHelpProvider.cs (3)
39public override ImmutableArray<char> TriggerCharacters => ['(', ',']; 41public override ImmutableArray<char> RetriggerCharacters => [')']; 88var accessibleConstructors = baseType.InstanceConstructors
SignatureHelp\SignatureHelpUtilities.cs (1)
100internal static bool IsTriggerParenOrComma<TSyntaxNode>(SyntaxToken token, ImmutableArray<char> triggerCharacters) where TSyntaxNode : SyntaxNode
SignatureHelp\TupleConstructionSignatureHelpProvider.cs (9)
102public override ImmutableArray<char> TriggerCharacters => ['(', ',']; 104public override ImmutableArray<char> RetriggerCharacters => [')']; 134var inferredTypes = typeInferrer.InferTypes(semanticModel, targetExpression!.SpanStart, cancellationToken); 152var prefixParts = SpecializedCollections.SingletonEnumerable(new SymbolDisplayPart(SymbolDisplayPartKind.Punctuation, null, "(")).ToTaggedText(); 153var suffixParts = SpecializedCollections.SingletonEnumerable(new SymbolDisplayPart(SymbolDisplayPartKind.Punctuation, null, ")")).ToTaggedText(); 154var separatorParts = GetSeparatorParts().ToTaggedText(); 164private static SignatureHelpItem Convert(INamedTypeSymbol tupleType, ImmutableArray<TaggedText> prefixParts, ImmutableArray<TaggedText> suffixParts, 165ImmutableArray<TaggedText> separatorParts, SemanticModel semanticModel, int position)
SignatureHelp\WithElementSignatureHelpProvider.cs (4)
26public override ImmutableArray<char> TriggerCharacters { get; } = ['(', ',']; 27public override ImmutableArray<char> RetriggerCharacters { get; } = [')']; 67var creationMethods = withElement 87var items = creationMethods.SelectAsArray(c => c.MethodKind == MethodKind.Constructor
Snippets\AbstractCSharpAutoPropertySnippetProvider.cs (1)
78protected override ValueTask<ImmutableArray<SnippetPlaceholder>> GetPlaceHolderLocationsListAsync(
Snippets\AbstractCSharpForLoopSnippetProvider.cs (1)
111protected override ValueTask<ImmutableArray<SnippetPlaceholder>> GetPlaceHolderLocationsListAsync(
Snippets\CSharpForEachLoopSnippetProvider.cs (1)
114protected override ValueTask<ImmutableArray<SnippetPlaceholder>> GetPlaceHolderLocationsListAsync(
Snippets\CSharpLockSnippetProvider.cs (1)
28protected override ValueTask<ImmutableArray<SnippetPlaceholder>> GetPlaceHolderLocationsListAsync(
Snippets\CSharpUsingSnippetProvider.cs (1)
28protected override ValueTask<ImmutableArray<SnippetPlaceholder>> GetPlaceHolderLocationsListAsync(
SolutionExplorer\CSharpSolutionExplorerSymbolTreeItemProvider.cs (4)
390protected override ImmutableArray<LocalFunctionStatementSyntax> GetMemberDeclarationMembers(MemberDeclarationSyntax memberDeclaration) 393protected override ImmutableArray<LocalFunctionStatementSyntax> GetMemberStatementMembers(LocalFunctionStatementSyntax memberDeclaration) 415private static ImmutableArray<LocalFunctionStatementSyntax> GetLocalFunctions(SyntaxNode node) 417var localFunctions = node.DescendantNodes(descendIntoChildren: (n) =>
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\cef93d2425d77fca\CSharpAddParenthesesAroundConditionalExpressionInInterpolatedStringCodeFixProvider.cs (1)
31public override ImmutableArray<string> FixableDiagnosticIds => [CS8361];
src\roslyn\src\Analyzers\CSharp\Analyzers\AddRequiredParentheses\CSharpAddRequiredExpressionParenthesesDiagnosticAnalyzer.cs (2)
20private static readonly ImmutableArray<SyntaxKind> s_kinds = 46protected override ImmutableArray<SyntaxKind> GetSyntaxNodeKinds()
src\roslyn\src\Analyzers\CSharp\Analyzers\AddRequiredParentheses\CSharpAddRequiredPatternParenthesesDiagnosticAnalyzer.cs (2)
20private static readonly ImmutableArray<SyntaxKind> s_kinds = [SyntaxKind.AndPattern, SyntaxKind.OrPattern]; 22protected override ImmutableArray<SyntaxKind> GetSyntaxNodeKinds()
src\roslyn\src\Analyzers\CSharp\Analyzers\ForEachCast\CSharpForEachCastDiagnosticAnalyzer.cs (1)
23protected override ImmutableArray<SyntaxKind> GetSyntaxKinds()
src\roslyn\src\Analyzers\CSharp\Analyzers\InlineDeclaration\CSharpInlineDeclarationDiagnosticAnalyzer.cs (1)
229var allLocations = ImmutableArray.Create(
src\roslyn\src\Analyzers\CSharp\Analyzers\InvokeDelegateWithConditionalAccess\InvokeDelegateWithConditionalAccessAnalyzer.cs (1)
171ImmutableArray<Location> additionalLocations,
src\roslyn\src\Analyzers\CSharp\Analyzers\MakeLocalFunctionStatic\MakeLocalFunctionStaticHelper.cs (1)
43public static bool CanMakeLocalFunctionStaticByRefactoringCaptures(LocalFunctionStatementSyntax localFunction, SemanticModel semanticModel, out ImmutableArray<ISymbol> captures)
src\roslyn\src\Analyzers\CSharp\Analyzers\MatchFolderAndNamespace\CSharpMatchFolderAndNamespaceDiagnosticAnalyzer.cs (1)
36protected override ImmutableArray<SyntaxKind> GetSyntaxKindsToAnalyze()
src\roslyn\src\Analyzers\CSharp\Analyzers\NamingStyle\CSharpNamingStyleDiagnosticAnalyzer.cs (1)
17protected override ImmutableArray<SyntaxKind> SupportedSyntaxKinds { get; } =
src\roslyn\src\Analyzers\CSharp\Analyzers\NewLines\EmbeddedStatementPlacement\EmbeddedStatementPlacementDiagnosticAnalyzer.cs (1)
78var additionalLocations = ImmutableArray.Create(statement.GetLocation());
src\roslyn\src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryCast\CSharpRemoveUnnecessaryCastDiagnosticAnalyzer.cs (1)
22protected override ImmutableArray<SyntaxKind> SyntaxKindsOfInterest { get; } =
src\roslyn\src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryImports\CSharpRemoveUnnecessaryImportsDiagnosticAnalyzer.cs (3)
40protected override ImmutableArray<SyntaxNode> MergeImports(ImmutableArray<UsingDirectiveSyntax> unnecessaryImports) 41=> ImmutableArray<SyntaxNode>.CastUp(unnecessaryImports);
src\roslyn\src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryNullableDirective\CSharpRemoveUnnecessaryNullableDirectiveDiagnosticAnalyzer.cs (6)
74private static ImmutableArray<TextSpan> AnalyzeCodeBlock(CodeBlockAnalysisContext context, int positionOfFirstReducingNullableDirective) 81private ImmutableArray<Diagnostic> AnalyzeSemanticModel(SemanticModelAnalysisContext context, int positionOfFirstReducingNullableDirective, TextSpanMutableIntervalTree? codeBlockIntervalTree, TextSpanMutableIntervalTree? possibleNullableImpactIntervalTree) 213public bool TryReportNullableImpactingSpans(TextSpan span, ImmutableArray<TextSpan> nullableImpactingSpans) 217private bool TryProceedOrReportNullableImpactingSpans(TextSpan span, ImmutableArray<TextSpan>? nullableImpactingSpans) 279var nullableImpactingSpans = CSharpRemoveUnnecessaryNullableDirectiveDiagnosticAnalyzer.AnalyzeCodeBlock(context, syntaxTreeState.PositionOfFirstReducingNullableDirective.Value); 307var diagnostics = _analyzer.AnalyzeSemanticModel(context, positionOfFirstReducingNullableDirective, syntaxTreeState.IntervalTree, syntaxTreeState.PossibleNullableImpactIntervalTree);
src\roslyn\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\roslyn\src\Analyzers\CSharp\Analyzers\RemoveUnnecessarySuppressions\UnnecessaryNullableWarningSuppressionsUtilities.cs (4)
38var semanticDiagnostics = semanticModel.GetDiagnostics(postfixUnary.Span, cancellationToken); 154var typeDeclarationDiagnostics = updatedSemanticModel.GetDiagnostics(typeDeclaration.Span, cancellationToken); 166Func<SyntaxNode, ImmutableArray<Diagnostic>> computeDiagnostics) 171var diagnostics = computeDiagnostics(rewrittenAncestor);
src\roslyn\src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryUnsafeModifier\UnnecessaryUnsafeModifierUtilities.cs (2)
30var semanticDiagnostics = semanticModel.GetDiagnostics(declaration.Span, cancellationToken); 114var updatedDiagnostics = updatedSemanticModel.GetDiagnostics(newNode.Span, cancellationToken);
src\roslyn\src\Analyzers\CSharp\Analyzers\RemoveUnreachableCode\CSharpRemoveUnreachableCodeDiagnosticAnalyzer.cs (5)
58var diagnostics = semanticModel.GetDiagnostics(context.FilterSpan, cancellationToken); 119var additionalLocations = ImmutableArray.Create(firstStatementLocation); 129var sections = RemoveUnreachableCodeHelpers.GetSubsequentUnreachableSections(firstUnreachableStatement); 130foreach (var section in sections) 138var additionalUnnecessaryLocations = ImmutableArray.Create(location);
src\roslyn\src\Analyzers\CSharp\Analyzers\RemoveUnreachableCode\RemoveUnreachableCodeHelpers.cs (8)
13public static ImmutableArray<ImmutableArray<StatementSyntax>> GetSubsequentUnreachableSections(StatementSyntax firstUnreachableStatement) 15ImmutableArray<StatementSyntax> siblingStatements; 56var sections = ArrayBuilder<ImmutableArray<StatementSyntax>>.GetInstance(); 81var section = currentSection.ToImmutableAndFree(); 91var lastSection = currentSection.ToImmutableAndFree(); 97private static void AddIfNonEmpty(ArrayBuilder<ImmutableArray<StatementSyntax>> sections, ImmutableArray<StatementSyntax> lastSection)
src\roslyn\src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForArrayDiagnosticAnalyzer.cs (7)
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( 175var matches = initializer.Parent switch 208var locations = ImmutableArray.Create(expression.GetLocation()); 217var additionalUnnecessaryLocations = ImmutableArray.Create(
src\roslyn\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( 220is nameof(ImmutableArray<>.Builder.ToImmutable) 221or nameof(ImmutableArray<>.Builder.MoveToImmutable) 222or nameof(ImmutableArray<>.Builder.ToArray) 252ImmutableArray<CollectionMatch<SyntaxNode>> Matches,
src\roslyn\src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForCreateDiagnosticAnalyzer.cs (2)
48var locations = ImmutableArray.Create(invocationExpression.GetLocation()); 59var additionalUnnecessaryLocations = ImmutableArray.Create(
src\roslyn\src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForFluentDiagnosticAnalyzer.cs (4)
41private static readonly ImmutableArray<string> s_suffixes = 56nameof(ImmutableArray<>), 467ImmutableArray<CollectionMatch<ArgumentSyntax>> PreMatches, 468ImmutableArray<CollectionMatch<ArgumentSyntax>> PostMatches,
src\roslyn\src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForNewDiagnosticAnalyzer.cs (2)
90var locations = ImmutableArray.Create(objectCreationExpression.GetLocation()); 101var additionalUnnecessaryLocations = ImmutableArray.Create(
src\roslyn\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\roslyn\src\Analyzers\CSharp\Analyzers\UseCollectionExpression\UseCollectionExpressionHelpers.cs (2)
605var elements = initializer.Expressions.GetWithSeparators().SelectAsArray( 747public static ImmutableArray<CollectionMatch<StatementSyntax>> TryGetMatches<TArrayCreationExpressionSyntax>(
src\roslyn\src\Analyzers\CSharp\Analyzers\UseCollectionInitializer\CSharpUseCollectionInitializerAnalyzer.cs (1)
290var addMethods = this.GetAddMethods(cancellationToken);
src\roslyn\src\Analyzers\CSharp\Analyzers\UseCollectionInitializer\CSharpUseCollectionInitializerDiagnosticAnalyzer.cs (2)
54ImmutableArray<CollectionMatch<SyntaxNode>> preMatches, 67static IEnumerable<CollectionElementSyntax> GetMatchElements(ImmutableArray<CollectionMatch<SyntaxNode>> preMatches)
src\roslyn\src\Analyzers\CSharp\Analyzers\UseCompoundAssignment\Utilities.cs (1)
11public static readonly ImmutableArray<(SyntaxKind, SyntaxKind, SyntaxKind)> Kinds =
src\roslyn\src\Analyzers\CSharp\Analyzers\UseDeconstruction\CSharpUseDeconstructionDiagnosticAnalyzer.cs (3)
93out ImmutableArray<MemberAccessExpressionSyntax> memberAccessExpressions, 123out ImmutableArray<MemberAccessExpressionSyntax> memberAccessExpressions, 142out ImmutableArray<MemberAccessExpressionSyntax> memberAccessExpressions,
src\roslyn\src\Analyzers\CSharp\Analyzers\UseExpressionBody\Helpers\UseExpressionBodyHelper.cs (2)
22public abstract ImmutableArray<SyntaxKind> SyntaxKinds { get; } 35public static readonly ImmutableArray<UseExpressionBodyHelper> Helpers =
src\roslyn\src\Analyzers\CSharp\Analyzers\UseExpressionBody\Helpers\UseExpressionBodyHelper`1.cs (2)
34ImmutableArray<SyntaxKind> syntaxKinds) : UseExpressionBodyHelper 42public override ImmutableArray<SyntaxKind> SyntaxKinds { get; } = syntaxKinds;
src\roslyn\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\roslyn\src\Analyzers\CSharp\Analyzers\UseLabeledJumpStatements\CSharpUseLabeledJumpStatementsHelpers.cs (3)
34out ImmutableArray<GotoStatementSyntax> gotos) 84out ImmutableArray<GotoStatementSyntax> gotos) 136out ImmutableArray<GotoStatementSyntax> gotos)
src\roslyn\src\Analyzers\CSharp\Analyzers\UseLabeledJumpStatements\FlagJumpPattern.cs (3)
22public required ImmutableArray<IfStatementSyntax> GuardStatements { get; init; } 25public required ImmutableArray<(ExpressionStatementSyntax Assignment, BreakStatementSyntax Break)> AssignmentAndBreakSites { get; init; } 29public required ImmutableArray<ExpressionStatementSyntax> ResetStatements { get; init; }
src\roslyn\src\Analyzers\CSharp\Analyzers\UseLocalFunction\CSharpUseLocalFunctionDiagnosticAnalyzer.cs (4)
127if (!CanReplaceAnonymousWithLocalFunction(semanticModel, expressionType, local, container, anonymousFunction, out var referenceLocations, cancellationToken)) 138var additionalLocations = ImmutableArray.Create( 243AnonymousFunctionExpressionSyntax anonymousFunction, out ImmutableArray<Location> referenceLocations, CancellationToken cancellationToken) 423var typeParams = localEnclosingSymbol.GetTypeParameters();
src\roslyn\src\Analyzers\CSharp\Analyzers\UseNameofInNullableAttribute\CSharpUseNameofInNullableAttributeDiagnosticAnalyzer.cs (1)
96var symbols = semanticModel.LookupSymbols(argument.Expression.SpanStart, name: stringValue);
src\roslyn\src\Analyzers\CSharp\Analyzers\UseNullPropagation\CSharpUseNullPropagationDiagnosticAnalyzer.cs (1)
72out ImmutableArray<StatementSyntax> trueStatements)
src\roslyn\src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpAsAndNullCheckDiagnosticAnalyzer.cs (1)
262var additionalLocations = ImmutableArray.Create(
src\roslyn\src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpIsAndCastCheckDiagnosticAnalyzer.cs (1)
147var additionalLocations = ImmutableArray.Create(
src\roslyn\src\Analyzers\CSharp\Analyzers\UsePrimaryConstructor\CSharpUsePrimaryConstructorDiagnosticAnalyzer.cs (2)
347var constructors = namedType.InstanceConstructors; 574var symbols = semanticModel.LookupSymbols(operation.Syntax.SpanStart, name: parameter.Name);
src\roslyn\src\Analyzers\CSharp\Analyzers\UseSimpleUsingStatement\UseSimpleUsingStatementDiagnosticAnalyzer.cs (1)
170private static bool DeclaredLocalCausesCollision(Dictionary<string, ArrayBuilder<ISymbol>> symbolNameToExistingSymbol, ImmutableArray<ILocalSymbol> locals)
src\roslyn\src\Analyzers\CSharp\Analyzers\UseTupleSwap\CSharpUseTupleSwapDiagnosticAnalyzer.cs (1)
113var additionalLocations = ImmutableArray.Create(
src\roslyn\src\Analyzers\CSharp\Analyzers\UseUtf8StringLiteral\UseUtf8StringLiteralDiagnosticAnalyzer.cs (5)
90var elements = arrayCreationOperation.Initializer.ElementValues; 117private void ReportParameterArrayDiagnostic(OperationAnalysisContext context, SyntaxNode syntaxNode, ImmutableArray<IOperation> elements, NotificationOption2 notificationOption, ArrayCreationOperationLocation operationLocation) 140var additionalLocations = ImmutableArray.Create(syntaxNode.GetLocation()); 149internal static bool TryConvertToUtf8String(StringBuilder? builder, ImmutableArray<IOperation> arrayCreationElements) 192private static bool TryGetNextRune(ImmutableArray<IOperation> arrayCreationElements, int startIndex, out Rune rune, out int bytesConsumed)
src\roslyn\src\Analyzers\CSharp\CodeFixes\AddAnonymousTypeMemberName\CSharpAddAnonymousTypeMemberNameCodeFixProvider.cs (1)
28public override ImmutableArray<string> FixableDiagnosticIds { get; }
src\roslyn\src\Analyzers\CSharp\CodeFixes\AddBraces\CSharpAddBracesCodeFixProvider.cs (2)
22public override ImmutableArray<string> FixableDiagnosticIds 31Document document, ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\CSharp\CodeFixes\AddExplicitCast\CSharpAddExplicitCastCodeFixProvider.cs (1)
38public override ImmutableArray<string> FixableDiagnosticIds => [CS0266, CS1503];
src\roslyn\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\roslyn\src\Analyzers\CSharp\CodeFixes\AddObsoleteAttribute\CSharpAddObsoleteAttributeCodeFixProvider.cs (1)
21public override ImmutableArray<string> FixableDiagnosticIds { get; } =
src\roslyn\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\roslyn\src\Analyzers\CSharp\CodeFixes\AliasAmbiguousType\CSharpAliasAmbiguousTypeCodeFixProvider.cs (1)
25public override ImmutableArray<string> FixableDiagnosticIds
src\roslyn\src\Analyzers\CSharp\CodeFixes\AssignOutParameters\AbstractAssignOutParametersCodeFixProvider.cs (11)
25public sealed override ImmutableArray<string> FixableDiagnosticIds { get; } = 94private static async Task<MultiDictionary<SyntaxNode, (SyntaxNode exprOrStatement, ImmutableArray<IParameterSymbol>)>> GetUnassignedParametersAsync( 95Document document, ImmutableArray<Diagnostic> diagnostics, CancellationToken cancellationToken) 100var containersAndLocations = 104var result = new MultiDictionary<SyntaxNode, (SyntaxNode exprOrStatement, ImmutableArray<IParameterSymbol>)>(); 112var outParameters = parameterList.Parameters 120var unassignedParameters = outParameters.WhereAsArray( 134Document document, ImmutableArray<Diagnostic> diagnostics, 149MultiDictionary<SyntaxNode, (SyntaxNode exprOrStatement, ImmutableArray<IParameterSymbol> unassignedParameters)>.ValueSet values, 152protected static ImmutableArray<SyntaxNode> GenerateAssignmentStatements( 153SyntaxGenerator generator, ImmutableArray<IParameterSymbol> unassignedParameters)
src\roslyn\src\Analyzers\CSharp\CodeFixes\AssignOutParameters\AssignOutParametersAboveReturnCodeFixProvider.cs (3)
33MultiDictionary<SyntaxNode, (SyntaxNode exprOrStatement, ImmutableArray<IParameterSymbol> unassignedParameters)>.ValueSet values, 38var statements = GenerateAssignmentStatements(editor.Generator, unassignedParameters); 44SyntaxEditor editor, SyntaxNode exprOrStatement, ImmutableArray<SyntaxNode> statements)
src\roslyn\src\Analyzers\CSharp\CodeFixes\AssignOutParameters\AssignOutParametersAtStartCodeFixProvider.cs (2)
52MultiDictionary<SyntaxNode, (SyntaxNode exprOrStatement, ImmutableArray<IParameterSymbol> unassignedParameters)>.ValueSet values, 56var unassignedParameters =
src\roslyn\src\Analyzers\CSharp\CodeFixes\ConvertNamespace\ConvertNamespaceCodeFixProvider.cs (2)
28public override ImmutableArray<string> FixableDiagnosticIds 47Document document, ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\CSharp\CodeFixes\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionCodeFixProvider.cs (2)
32public override ImmutableArray<string> FixableDiagnosticIds 41Document document, ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\CSharp\CodeFixes\ConvertToAsync\CSharpConvertToAsyncMethodCodeFixProvider.cs (1)
30public override ImmutableArray<string> FixableDiagnosticIds => [CS4008];
src\roslyn\src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordEngine.cs (20)
54var positionalParameterInfos = PositionalParameterInfo.GetPropertiesForPositionalParameters( 82ImmutableArray<PositionalParameterInfo> positionalParameterInfos, 105var expectedFields = type 138var defaults = positionalParameterInfos.SelectAsArray(info => (EqualsValueClauseSyntax?)null); 178var expressions = ConvertToRecordHelpers 182var expressionStatementsToRemove = expressions 316var inheritedPositionalParams = PositionalParameterInfo 337(ConstructorDeclarationSyntax? constructor, ImmutableArray<IPropertySymbol> propertiesToAssign) TryFindPrimaryConstructor() 339var propertiesToAssign = positionalParameterInfos.SelectAsArray(info => info.Symbol); 367constructorOperation, propertiesToAssign, constructorSymbol.Parameters, out var orderedPropertiesToAssign)) 477ImmutableArray<IPropertySymbol> positionalParameters, 513var expressions = ConvertToRecordHelpers.GetAssignmentValuesFromObjectCreation( 518var expressionIndices = expressions.SelectAsArray( 578ImmutableArray<PositionalParameterInfo> propertyResults, 582var classTrivia = typeDeclaration.GetLeadingTrivia().Where(trivia => !trivia.IsWhitespace()).AsImmutable(); 584var propertyNonDocComments = propertyResults 754ImmutableArray<PositionalParameterInfo> propertyResults, 777var paramContent = ImmutableArray<XmlNodeSyntax>.Empty; 795var tokens = text.TextTokens.SelectAsArray(token =>
src\roslyn\src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordHelpers.cs (23)
26ImmutableArray<IFieldSymbol> expectedComparedFields) 59var actualFields = GetEqualizedFields(methodBodyOperation, methodSymbol); 78ImmutableArray<IFieldSymbol> expectedHashedFields) 92var actualMembers = members 184ImmutableArray<IPropertySymbol> properties, 185ImmutableArray<IParameterSymbol> parameters, 186out ImmutableArray<IPropertySymbol> orderedProperties) 228ImmutableArray<IFieldSymbol> fields, 256var assignedUnderlyingFields = assignmentValues.Keys.SelectAsArray(UnwrapPropertyToField); 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, 492private static ImmutableArray<IFieldSymbol> GetEqualizedFields( 503var bodyOps = body.Operations; 956ImmutableArray<IOperation> bodyOps, 1069: ImmutableArray<IOperation>.Empty))
src\roslyn\src\Analyzers\CSharp\CodeFixes\ConvertToRecord\CSharpConvertToRecordCodeFixProvider.cs (1)
26public override ImmutableArray<string> FixableDiagnosticIds
src\roslyn\src\Analyzers\CSharp\CodeFixes\ConvertToRecord\PositionalParameterInfo.cs (5)
35public static ImmutableArray<PositionalParameterInfo> GetPropertiesForPositionalParameters( 36ImmutableArray<PropertyDeclarationSyntax> properties, 44var symbols = properties.SelectAsArray(p => semanticModel.GetRequiredDeclaredSymbol(p, cancellationToken)); 47var inheritedProperties = GetInheritedPositionalParams(type, cancellationToken); 74public static ImmutableArray<IPropertySymbol> GetInheritedPositionalParams(
src\roslyn\src\Analyzers\CSharp\CodeFixes\DisambiguateSameVariable\CSharpDisambiguateSameVariableCodeFixProvider.cs (2)
35public override ImmutableArray<string> FixableDiagnosticIds { get; } = [CS1717, CS1718]; 133Document document, ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\CSharp\CodeFixes\DocumentationComments\CSharpAddDocCommentNodesCodeFixProvider.cs (2)
30public override ImmutableArray<string> FixableDiagnosticIds { get; } = [CS1573]; 59protected override ImmutableArray<string> GetParameterNames(MemberDeclarationSyntax member)
src\roslyn\src\Analyzers\CSharp\CodeFixes\DocumentationComments\CSharpRemoveDocCommentNodeCodeFixProvider.cs (1)
36public override ImmutableArray<string> FixableDiagnosticIds { get; } = [CS1571, CS1572, CS1710];
src\roslyn\src\Analyzers\CSharp\CodeFixes\FixIncorrectConstraint\CSharpFixIncorrectConstraintCodeFixProvider.cs (2)
28public override ImmutableArray<string> FixableDiagnosticIds => [CS9010, CS9011]; 75Document document, ImmutableArray<Diagnostic> diagnostics,
src\roslyn\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) 126protected override async Task FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken)
src\roslyn\src\Analyzers\CSharp\CodeFixes\GenerateConstructor\CSharpGenerateConstructorService.cs (6)
45out ImmutableArray<Argument<ExpressionSyntax>> arguments, 69private static ImmutableArray<Argument<ExpressionSyntax>> GetArguments(SeparatedSyntaxList<ArgumentSyntax> arguments) 72private static ImmutableArray<Argument<ExpressionSyntax>> GetArguments(SeparatedSyntaxList<AttributeArgumentSyntax> arguments) 83out ImmutableArray<Argument<ExpressionSyntax>> arguments, 115out ImmutableArray<Argument<ExpressionSyntax>> arguments, 150out ImmutableArray<Argument<ExpressionSyntax>> arguments,
src\roslyn\src\Analyzers\CSharp\CodeFixes\GenerateConstructor\GenerateConstructorCodeFixProvider.cs (2)
38public override ImmutableArray<string> FixableDiagnosticIds => GenerateConstructorDiagnosticIds.AllDiagnosticIds; 40protected override Task<ImmutableArray<CodeAction>> GetCodeActionsAsync(
src\roslyn\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\roslyn\src\Analyzers\CSharp\CodeFixes\GenerateDefaultConstructors\CSharpGenerateDefaultConstructorsCodeFixProvider.cs (1)
25public override ImmutableArray<string> FixableDiagnosticIds { get; } =
src\roslyn\src\Analyzers\CSharp\CodeFixes\GenerateEnumMember\GenerateEnumMemberCodeFixProvider.cs (2)
28public override ImmutableArray<string> FixableDiagnosticIds { get; } = 31protected override Task<ImmutableArray<CodeAction>> GetCodeActionsAsync(Document document, SyntaxNode node, CancellationToken cancellationToken)
src\roslyn\src\Analyzers\CSharp\CodeFixes\GenerateMethod\GenerateConversionCodeFixProvider.cs (2)
29public override ImmutableArray<string> FixableDiagnosticIds 57protected override Task<ImmutableArray<CodeAction>> GetCodeActionsAsync(
src\roslyn\src\Analyzers\CSharp\CodeFixes\GenerateMethod\GenerateDeconstructMethodCodeFixProvider.cs (2)
29public sealed override ImmutableArray<string> FixableDiagnosticIds => [CS8129]; 99var codeActions = await service.GenerateDeconstructMethodAsync(document, target, (INamedTypeSymbol)type, cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\CSharp\CodeFixes\GenerateMethod\GenerateMethodCodeFixProvider.cs (3)
38public static readonly ImmutableArray<string> FixableDiagnosticIds = 50public override ImmutableArray<string> FixableDiagnosticIds { get; } = 80protected override Task<ImmutableArray<CodeAction>> GetCodeActionsAsync(
src\roslyn\src\Analyzers\CSharp\CodeFixes\GenerateParameterizedMember\CSharpGenerateDeconstructMethodService.cs (3)
38public override ImmutableArray<IParameterSymbol> TryMakeParameters(SemanticModel semanticModel, SyntaxNode target, CancellationToken cancellationToken) 44var namesBuilder = positionalPattern.Subpatterns.SelectAsArray(sub => 47var names = NameGenerator.EnsureUniqueness(namesBuilder);
src\roslyn\src\Analyzers\CSharp\CodeFixes\GenerateParameterizedMember\CSharpGenerateParameterizedMemberService.cs (7)
28protected override ImmutableArray<ParameterName> DetermineParameterNames(CancellationToken cancellationToken) 48protected override ImmutableArray<ITypeParameterSymbol> GetCapturedTypeParameters(CancellationToken cancellationToken) 61protected override ImmutableArray<ITypeParameterSymbol> GenerateTypeParameters(CancellationToken cancellationToken) 124protected override ImmutableArray<RefKind> DetermineParameterModifiers(CancellationToken cancellationToken) 127protected override ImmutableArray<ITypeSymbol> DetermineParameterTypes(CancellationToken cancellationToken) 133protected override ImmutableArray<bool> DetermineParameterOptionality(CancellationToken cancellationToken) 145protected override ImmutableArray<ITypeSymbol> DetermineTypeArguments(CancellationToken cancellationToken)
src\roslyn\src\Analyzers\CSharp\CodeFixes\GenerateVariable\CSharpGenerateVariableCodeFixProvider.cs (2)
33public override ImmutableArray<string> FixableDiagnosticIds 47protected override async Task<ImmutableArray<CodeAction>> GetCodeActionsAsync(
src\roslyn\src\Analyzers\CSharp\CodeFixes\HiddenExplicitCast\CSharpHiddenExplicitCastCodeFixProvider.cs (2)
27public override ImmutableArray<string> FixableDiagnosticIds => [IDEDiagnosticIds.HiddenExplicitCastDiagnosticId]; 37ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\CSharp\CodeFixes\HideBase\HideBaseCodeFixProvider.cs (2)
30public override ImmutableArray<string> FixableDiagnosticIds => [CS0108]; 59Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken)
src\roslyn\src\Analyzers\CSharp\CodeFixes\ImplementInterface\CSharpImplementInterfaceCodeFixProvider.cs (1)
25public sealed override ImmutableArray<string> FixableDiagnosticIds { get; }
src\roslyn\src\Analyzers\CSharp\CodeFixes\ImplementInterface\CSharpImplementInterfaceService.cs (1)
52out ImmutableArray<INamedTypeSymbol> interfaceTypes)
src\roslyn\src\Analyzers\CSharp\CodeFixes\InlineDeclaration\CSharpInlineDeclarationCodeFixProvider.cs (3)
36public override ImmutableArray<string> FixableDiagnosticIds 45Document document, ImmutableArray<Diagnostic> diagnostics, 64var originalNodes = diagnostics.SelectAsArray(diagnostic => FindDiagnosticNodes(diagnostic, cancellationToken));
src\roslyn\src\Analyzers\CSharp\CodeFixes\InvokeDelegateWithConditionalAccess\InvokeDelegateWithConditionalAccessCodeFixProvider.cs (2)
31public override ImmutableArray<string> FixableDiagnosticIds { get; } = [IDEDiagnosticIds.InvokeDelegateWithConditionalAccessId]; 44Document document, ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\CSharp\CodeFixes\Iterator\CSharpAddYieldCodeFixProvider.cs (4)
40public override ImmutableArray<string> FixableDiagnosticIds 64var typeArguments = methodReturnType.GetAllTypeArguments(); 160var leftArguments = typeArgument.GetTypeArguments(); 161var rightArguments = returnExpressionType.GetTypeArguments();
src\roslyn\src\Analyzers\CSharp\CodeFixes\Iterator\CSharpChangeToIEnumerableCodeFixProvider.cs (1)
34public override ImmutableArray<string> FixableDiagnosticIds => [CS1624];
src\roslyn\src\Analyzers\CSharp\CodeFixes\MakeAnonymousFunctionStatic\CSharpMakeAnonymousFunctionStaticCodeFixProvider.cs (2)
24public override ImmutableArray<string> FixableDiagnosticIds { get; } = 36protected override async Task FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken)
src\roslyn\src\Analyzers\CSharp\CodeFixes\MakeLocalFunctionStatic\MakeLocalFunctionStaticCodeFixHelper.cs (6)
29ImmutableArray<ISymbol> captures, 41ImmutableArray<ISymbol> captures, 87var parameterAndCapturedSymbols = CreateParameterSymbols(captures.WhereAsArray(c => !c.IsThisParameter())); 101var newArguments = parameterAndCapturedSymbols.SelectAsArray( 207private static ImmutableArray<(IParameterSymbol symbol, ISymbol capture)> CreateParameterSymbols(ImmutableArray<ISymbol> captures)
src\roslyn\src\Analyzers\CSharp\CodeFixes\MakeLocalFunctionStatic\MakeLocalFunctionStaticCodeFixProvider.cs (3)
22public override ImmutableArray<string> FixableDiagnosticIds { get; } = 31Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken) 33var localFunctions = diagnostics.SelectAsArray(d => d.AdditionalLocations[0].FindNode(getInnermostNodeForTie: true, cancellationToken));
src\roslyn\src\Analyzers\CSharp\CodeFixes\MakeLocalFunctionStatic\PassInCapturedVariablesAsArgumentsCodeFixProvider.cs (6)
29public override ImmutableArray<string> FixableDiagnosticIds { get; } = [CS8421]; 50protected override Task FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken) 62ImmutableArray<Diagnostic> diagnostics, 63Func<Document, LocalFunctionStatementSyntax, ImmutableArray<ISymbol>, Task> fixer, 74var localFunctions = diagnostics 87if (MakeLocalFunctionStaticHelper.CanMakeLocalFunctionStaticByRefactoringCaptures(localFunction, semanticModel, out var captures))
src\roslyn\src\Analyzers\CSharp\CodeFixes\MakeMemberRequired\CSharpMakeMemberRequiredCodeFixProvider.cs (2)
29public override ImmutableArray<string> FixableDiagnosticIds { get; } = [CS8618]; 109protected override async Task FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken)
src\roslyn\src\Analyzers\CSharp\CodeFixes\MakeMemberStatic\CSharpMakeMemberStaticCodeFixProvider.cs (1)
21public override ImmutableArray<string> FixableDiagnosticIds { get; } = ["CS0708"];
src\roslyn\src\Analyzers\CSharp\CodeFixes\MakeMethodAsynchronous\CSharpMakeMethodAsynchronousCodeFixProvider.cs (1)
37public override ImmutableArray<string> FixableDiagnosticIds { get; } =
src\roslyn\src\Analyzers\CSharp\CodeFixes\MakeMethodSynchronous\CSharpMakeMethodSynchronousCodeFixProvider.cs (1)
26public override ImmutableArray<string> FixableDiagnosticIds { get; } = [
src\roslyn\src\Analyzers\CSharp\CodeFixes\MakeRefStruct\MakeRefStructCodeFixProvider.cs (1)
26public override ImmutableArray<string> FixableDiagnosticIds
src\roslyn\src\Analyzers\CSharp\CodeFixes\MakeStatementAsynchronous\CSharpMakeStatementAsynchronousCodeFixProvider.cs (2)
30public sealed override ImmutableArray<string> FixableDiagnosticIds => ["CS8414", "CS8418"]; 48Document document, ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\CSharp\CodeFixes\MakeStructFieldsWritable\CSharpMakeStructFieldsWritableCodeFixProvider.cs (2)
25public override ImmutableArray<string> FixableDiagnosticIds 35ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\CSharp\CodeFixes\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyCodeFixProvider.cs (2)
26public override ImmutableArray<string> FixableDiagnosticIds { get; } = 36ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\CSharp\CodeFixes\MakeStructReadOnly\CSharpMakeStructReadOnlyCodeFixProvider.cs (2)
24public override ImmutableArray<string> FixableDiagnosticIds { get; } = 34ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\CSharp\CodeFixes\MakeTypeAbstract\CSharpMakeTypeAbstractCodeFixProvider.cs (1)
19public override ImmutableArray<string> FixableDiagnosticIds { get; } =
src\roslyn\src\Analyzers\CSharp\CodeFixes\MakeTypePartial\CSharpMakeTypePartialCodeFixProvider.cs (1)
21public override ImmutableArray<string> FixableDiagnosticIds { get; } = [CS0260];
src\roslyn\src\Analyzers\CSharp\CodeFixes\MisplacedUsingDirectives\MisplacedUsingDirectivesCodeFixProvider.cs (11)
49public override ImmutableArray<string> FixableDiagnosticIds => [IDEDiagnosticIds.MoveMisplacedUsingDirectivesDiagnosticId]; 98var allUsingDirectives = GetAllUsingDirectives(compilationUnit); 106private static ImmutableArray<UsingDirectiveSyntax> GetAllUsingDirectives(CompilationUnitSyntax compilationUnit) 143var allUsingDirectives = GetAllUsingDirectives(compilationUnit); 171Document document, CompilationUnitSyntax compilationUnit, ImmutableArray<UsingDirectiveSyntax> allUsingDirectives, CancellationToken cancellationToken) 254private static (BaseNamespaceDeclarationSyntax namespaceWithoutUsings, ImmutableArray<UsingDirectiveSyntax> usingsFromNamespace) RemoveUsingsFromNamespace( 267var allUsings = usings.Concat(usingsFromNamespaces).ToImmutableArray(); 288ImmutableArray<UsingDirectiveSyntax> usingsToAdd) 420private static (CompilationUnitSyntax compilationUnitWithoutHeader, ImmutableArray<SyntaxTrivia> header) RemoveFileHeader( 423var fileHeader = bannerService.GetFileBanner(syntaxRoot); 436private static CompilationUnitSyntax AddFileHeader(CompilationUnitSyntax compilationUnit, ImmutableArray<SyntaxTrivia> fileHeader)
src\roslyn\src\Analyzers\CSharp\CodeFixes\NewLines\ArrowExpressionClausePlacement\ArrowExpressionClausePlacementCodeFixProvider.cs (2)
27public override ImmutableArray<string> FixableDiagnosticIds 43Document document, ImmutableArray<Diagnostic> diagnostics, CancellationToken cancellationToken)
src\roslyn\src\Analyzers\CSharp\CodeFixes\NewLines\ConditionalExpressionPlacement\ConditionalExpressionPlacementCodeFixProvider.cs (2)
27public override ImmutableArray<string> FixableDiagnosticIds 43Document document, ImmutableArray<Diagnostic> diagnostics, CancellationToken cancellationToken)
src\roslyn\src\Analyzers\CSharp\CodeFixes\NewLines\ConsecutiveBracePlacement\ConsecutiveBracePlacementCodeFixProvider.cs (2)
28public override ImmutableArray<string> FixableDiagnosticIds 46public static async Task<Document> FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, CancellationToken cancellationToken)
src\roslyn\src\Analyzers\CSharp\CodeFixes\NewLines\ConstructorInitializerPlacement\ConstructorInitializerPlacementCodeFixProvider.cs (2)
27public override ImmutableArray<string> FixableDiagnosticIds 43Document document, ImmutableArray<Diagnostic> diagnostics, CancellationToken cancellationToken)
src\roslyn\src\Analyzers\CSharp\CodeFixes\NewLines\EmbeddedStatementPlacement\EmbeddedStatementPlacementCodeFixProvider.cs (2)
30public override ImmutableArray<string> FixableDiagnosticIds 45public static async Task<Document> FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, CancellationToken cancellationToken)
src\roslyn\src\Analyzers\CSharp\CodeFixes\Nullable\CSharpDeclareAsNullableCodeFixProvider.cs (2)
40public sealed override ImmutableArray<string> FixableDiagnosticIds => ["CS8603", "CS8600", "CS8625", "CS8618"]; 75ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\CSharp\CodeFixes\OrderModifiers\CSharpOrderModifiersCodeFixProvider.cs (1)
27protected override ImmutableArray<string> FixableCompilerErrorIds { get; } = [CS0267];
src\roslyn\src\Analyzers\CSharp\CodeFixes\RemoveAsyncModifier\CSharpRemoveAsyncModifierCodeFixProvider.cs (1)
26public override ImmutableArray<string> FixableDiagnosticIds { get; } = [
src\roslyn\src\Analyzers\CSharp\CodeFixes\RemoveConfusingSuppression\CSharpRemoveConfusingSuppressionCodeFixProvider.cs (3)
30public override ImmutableArray<string> FixableDiagnosticIds 36var diagnostics = context.Diagnostics; 55Document document, ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\CSharp\CodeFixes\RemoveInKeyword\RemoveInKeywordCodeFixProvider.cs (1)
31public override ImmutableArray<string> FixableDiagnosticIds => [CS1615];
src\roslyn\src\Analyzers\CSharp\CodeFixes\RemoveNewModifier\RemoveNewModifierCodeFixProvider.cs (1)
29public override ImmutableArray<string> FixableDiagnosticIds => [CS0109];
src\roslyn\src\Analyzers\CSharp\CodeFixes\RemoveUnneccessaryUnsafeModifier\CSharpRemoveUnnecessaryUnsafeModifierCodeFixProvider.cs (2)
28public override ImmutableArray<string> FixableDiagnosticIds => [IDEDiagnosticIds.RemoveUnnecessaryUnsafeModifier]; 39private static async Task<Document> FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, CancellationToken cancellationToken)
src\roslyn\src\Analyzers\CSharp\CodeFixes\RemoveUnnecessaryCast\CSharpRemoveUnnecessaryCastCodeFixProvider.cs (3)
28public sealed override ImmutableArray<string> FixableDiagnosticIds { get; } = 37Document document, ImmutableArray<Diagnostic> diagnostics, 40var castNodes = diagnostics.SelectAsArray(
src\roslyn\src\Analyzers\CSharp\CodeFixes\RemoveUnnecessaryDiscardDesignation\CSharpRemoveUnnecessaryDiscardDesignationCodeFixProvider.cs (2)
25public override ImmutableArray<string> FixableDiagnosticIds 34Document document, ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\CSharp\CodeFixes\RemoveUnnecessaryLambdaExpression\CSharpRemoveUnnecessaryLambdaExpressionCodeFixProvider.cs (2)
31public override ImmutableArray<string> FixableDiagnosticIds 40Document document, ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\CSharp\CodeFixes\RemoveUnnecessaryNullableDirective\CSharpRemoveUnnecessaryNullableDirectiveCodeFixProvider.cs (2)
28public override ImmutableArray<string> FixableDiagnosticIds 47ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\CSharp\CodeFixes\RemoveUnnecessarySuppressions\CSharpRemoveUnnecessaryNullableWarningSuppressionsCodeFixProvider.cs (2)
29public override ImmutableArray<string> FixableDiagnosticIds => [IDEDiagnosticIds.RemoveUnnecessaryNullableWarningSuppression]; 40private static async Task<Document> FixSingleDocumentAsync(Document document, ImmutableArray<Diagnostic> diagnostics, CancellationToken cancellationToken)
src\roslyn\src\Analyzers\CSharp\CodeFixes\RemoveUnreachableCode\CSharpRemoveUnreachableCodeCodeFixProvider.cs (4)
24public override ImmutableArray<string> FixableDiagnosticIds { get; } = 50ImmutableArray<Diagnostic> diagnostics, 65var sections = RemoveUnreachableCodeHelpers.GetSubsequentUnreachableSections(firstUnreachableStatement); 66foreach (var section in sections)
src\roslyn\src\Analyzers\CSharp\CodeFixes\RemoveUnusedLocalFunction\CSharpRemoveUnusedLocalFunctionCodeFixProvider.cs (2)
28public sealed override ImmutableArray<string> FixableDiagnosticIds 36protected override async Task FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken)
src\roslyn\src\Analyzers\CSharp\CodeFixes\ReplaceDefaultLiteral\CSharpReplaceDefaultLiteralCodeFixProvider.cs (1)
30public override ImmutableArray<string> FixableDiagnosticIds { get; } = [CS8313, CS8505];
src\roslyn\src\Analyzers\CSharp\CodeFixes\SimplifyLinqExpression\CSharpSimplifyLinqTypeCheckAndCastCodeFixProvider.cs (2)
27public override ImmutableArray<string> FixableDiagnosticIds 37ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\CSharp\CodeFixes\SimplifyPropertyAccessor\CSharpSimplifyPropertyAccessorCodeFixProvider.cs (2)
28public override ImmutableArray<string> FixableDiagnosticIds { get; } 36protected override async Task FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken)
src\roslyn\src\Analyzers\CSharp\CodeFixes\SimplifyPropertyPattern\CSharpSimplifyPropertyPatternCodeFixProvider.cs (3)
29public override ImmutableArray<string> FixableDiagnosticIds { get; } = 38Document document, ImmutableArray<Diagnostic> diagnostics, 43var subpatterns = diagnostics.Select(d => (SubpatternSyntax)d.AdditionalLocations[0].FindNode(cancellationToken))
src\roslyn\src\Analyzers\CSharp\CodeFixes\TransposeRecordKeyword\CSharpTransposeRecordKeywordCodeFixProvider.cs (2)
27public override ImmutableArray<string> FixableDiagnosticIds => [CS9012]; 94Document document, ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\CSharp\CodeFixes\UnsealClass\CSharpUnsealClassCodeFixProvider.cs (1)
21public override ImmutableArray<string> FixableDiagnosticIds { get; } = [CS0509];
src\roslyn\src\Analyzers\CSharp\CodeFixes\UpdateProjectToAllowUnsafe\CSharpUpdateProjectToAllowUnsafeCodeFixProvider.cs (1)
21public override ImmutableArray<string> FixableDiagnosticIds { get; } =
src\roslyn\src\Analyzers\CSharp\CodeFixes\UpgradeProject\CSharpUpgradeProjectCodeFixProvider.cs (3)
19public override ImmutableArray<string> FixableDiagnosticIds { get; } = 66public override string SuggestedVersion(ImmutableArray<Diagnostic> diagnostics) 69private static LanguageVersion RequiredVersion(ImmutableArray<Diagnostic> diagnostics)
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseAutoProperty\CSharpUseAutoPropertyCodeFixProvider.cs (2)
64ImmutableArray<ReferencedSymbol> fieldLocations, 220protected override ImmutableArray<AbstractFormattingRule> GetFormattingRules(
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpCollectionExpressionRewriter.cs (9)
38ImmutableArray<CollectionMatch<TMatchNode>> preMatches, 39ImmutableArray<CollectionMatch<TMatchNode>> postMatches, 350ImmutableArray<CollectionMatch<TMatchNode>> matches, 509var expressions = ConvertExpressions(expressionStatement.Expression, expr => IndentNode(expressionStatement, expr, preferredIndentation)); 813bool CheckForMultiLine(ImmutableArray<CollectionMatch<TMatchNode>> matches) 868var expressions = ConvertExpressions(expression, indent); 872static ImmutableArray<ExpressionSyntax> ConvertExpressions( 888static ImmutableArray<ExpressionSyntax> ConvertAssignment( 894static ImmutableArray<ExpressionSyntax> ConvertInvocation(
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForArrayCodeFixProvider.cs (3)
32public override ImmutableArray<string> FixableDiagnosticIds { get; } = [IDEDiagnosticIds.UseCollectionExpressionForArrayDiagnosticId]; 66var matches = GetMatches(semanticModel, arrayCreationExpression, expressionType); 99ImmutableArray<CollectionMatch<StatementSyntax>> GetMatches(
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForBuilderCodeFixProvider.cs (1)
35public override ImmutableArray<string> FixableDiagnosticIds { get; } = [IDEDiagnosticIds.UseCollectionExpressionForBuilderDiagnosticId];
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForCreateCodeFixProvider.cs (2)
33public override ImmutableArray<string> FixableDiagnosticIds { get; } = [IDEDiagnosticIds.UseCollectionExpressionForCreateDiagnosticId]; 66var matches = expressions.SelectAsArray(e => new CollectionMatch<ExpressionSyntax>(e, useSpread, UseKeyValue: false));
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForEmptyCodeFixProvider.cs (1)
31public override ImmutableArray<string> FixableDiagnosticIds { get; } = [IDEDiagnosticIds.UseCollectionExpressionForEmptyDiagnosticId];
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForFluentCodeFixProvider.cs (7)
41public override ImmutableArray<string> FixableDiagnosticIds { get; } = [IDEDiagnosticIds.UseCollectionExpressionForFluentDiagnosticId]; 71var allMatches = analysisResult.PreMatches.Concat(analysisResult.PostMatches); 89var preMatches = CreateMatches(dummyObjectCreation.ArgumentList.Arguments, analysisResult.PreMatches, index: 0); 90var postMatches = CreateMatches(dummyObjectCreation.ArgumentList.Arguments, analysisResult.PostMatches, index: preMatches.Length); 103static ImmutableArray<CollectionMatch<ExpressionSyntax>> CreateMatches( 105ImmutableArray<CollectionMatch<ArgumentSyntax>> matches, 142ImmutableArray<CollectionMatch<ArgumentSyntax>> matches,
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForNewCodeFixProvider.cs (2)
34public override ImmutableArray<string> FixableDiagnosticIds { get; } = [IDEDiagnosticIds.UseCollectionExpressionForNewDiagnosticId]; 67var matches = expressions.SelectAsArray(e => new CollectionMatch<ExpressionSyntax>(e, useSpread, UseKeyValue: false));
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForStackAllocCodeFixProvider.cs (3)
28public override ImmutableArray<string> FixableDiagnosticIds { get; } = [IDEDiagnosticIds.UseCollectionExpressionForStackAllocDiagnosticId]; 42var matches = GetMatches(); 72ImmutableArray<CollectionMatch<StatementSyntax>> GetMatches()
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseCollectionInitializer\CSharpUseCollectionInitializerCodeFixProvider_CollectionExpression.cs (2)
23ImmutableArray<CollectionMatch<SyntaxNode>> preMatches, 24ImmutableArray<CollectionMatch<SyntaxNode>> postMatches,
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseCollectionInitializer\CSharpUseCollectionInitializerCodeFixProvider_CollectionInitializer.cs (1)
26ImmutableArray<CollectionMatch<SyntaxNode>> matches)
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseCollectionInitializer\CSharpUseCollectionInitializerCodeFixProvider.cs (2)
41ImmutableArray<CollectionMatch<SyntaxNode>> preMatches, 42ImmutableArray<CollectionMatch<SyntaxNode>> postMatches,
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseCompoundAssignment\CSharpUseCompoundCoalesceAssignmentCodeFixProvider.cs (2)
31public override ImmutableArray<string> FixableDiagnosticIds { get; } = 40Document document, ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseDeconstruction\CSharpUseDeconstructionCodeFixProvider.cs (4)
28public override ImmutableArray<string> FixableDiagnosticIds 37Document document, ImmutableArray<Diagnostic> diagnostics, 40var nodesToProcess = diagnostics.SelectAsArray(d => d.Location.FindToken(cancellationToken).GetRequiredParent()); 68ImmutableArray<MemberAccessExpressionSyntax> memberAccessExpressions = default;
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseDefaultLiteral\CSharpUseDefaultLiteralCodeFixProvider.cs (3)
25public override ImmutableArray<string> FixableDiagnosticIds { get; } 34Document document, ImmutableArray<Diagnostic> diagnostics, 51var originalNodes = diagnostics.SelectAsArray(
src\roslyn\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\roslyn\src\Analyzers\CSharp\CodeFixes\UseExplicitTypeForConst\UseExplicitTypeForConstCodeFixProvider.cs (1)
26public override ImmutableArray<string> FixableDiagnosticIds { get; } = [CS0822];
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseExpressionBody\UseExpressionBodyCodeFixProvider.cs (3)
27private static readonly ImmutableArray<UseExpressionBodyHelper> s_helpers = UseExpressionBodyHelper.Helpers; 29public sealed override ImmutableArray<string> FixableDiagnosticIds { get; } = s_helpers.SelectAsArray(h => h.DiagnosticId); 53Document document, ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseExpressionBodyForLambda\UseExpressionBodyForLambdaCodeFixProvider.cs (1)
24public override ImmutableArray<string> FixableDiagnosticIds { get; } = [IDEDiagnosticIds.UseExpressionBodyForLambdaExpressionsDiagnosticId];
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseImplicitlyTypedLambdaExpression\CSharpUseImplicitObjectCreationCodeFixProvider.cs (3)
30public override ImmutableArray<string> FixableDiagnosticIds 39Document document, ImmutableArray<Diagnostic> diagnostics, 43var nodes = diagnostics
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseImplicitObjectCreation\CSharpUseImplicitObjectCreationCodeFixProvider.cs (3)
34public override ImmutableArray<string> FixableDiagnosticIds 46Document document, ImmutableArray<Diagnostic> diagnostics, 50var nodes = diagnostics
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseImplicitOrExplicitType\UseExplicitTypeCodeFixProvider.cs (3)
34public override ImmutableArray<string> FixableDiagnosticIds 49Document document, ImmutableArray<Diagnostic> diagnostics, 189var elements = ((INamedTypeSymbol)typeSymbol).TupleElements;
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseImplicitOrExplicitType\UseImplicitTypeCodeFixProvider.cs (2)
25public override ImmutableArray<string> FixableDiagnosticIds 40Document document, ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseIndexOrRangeOperator\CSharpUseIndexOperatorCodeFixProvider.cs (2)
26public override ImmutableArray<string> FixableDiagnosticIds { get; } = 35Document document, ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseIndexOrRangeOperator\CSharpUseRangeOperatorCodeFixProvider.cs (3)
36public override ImmutableArray<string> FixableDiagnosticIds { get; } = 45Document document, ImmutableArray<Diagnostic> diagnostics, 48var invocationNodes = diagnostics
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseInterpolatedVerbatimString\CSharpUseInterpolatedVerbatimStringCodeFixProvider.cs (2)
25public override ImmutableArray<string> FixableDiagnosticIds => ["CS8401"]; 35Document document, ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseIsNullCheck\CSharpUseIsNullCheckForCastAndEqualityOperatorCodeFixProvider.cs (2)
30public override ImmutableArray<string> FixableDiagnosticIds 49Document document, ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseIsNullCheck\CSharpUseNullCheckOverTypeCheckCodeFixProvider.cs (2)
28public override ImmutableArray<string> FixableDiagnosticIds 37Document document, ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseLabeledJumpStatements\CSharpUseLabeledJumpStatementsCodeFixProvider.cs (4)
29public override ImmutableArray<string> FixableDiagnosticIds { get; } 50gotoStatement, semanticModel, cancellationToken, out var loop, out var labelDeclaration, out var gotos)) 75ImmutableArray<GotoStatementSyntax> gotos, 122ImmutableArray<GotoStatementSyntax> gotos,
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseLocalFunction\CSharpUseLocalFunctionCodeFixProvider.cs (5)
41public override ImmutableArray<string> FixableDiagnosticIds 53Document document, ImmutableArray<Diagnostic> diagnostics, 143var capturedVariables = dataFlow.Captured.Remove(localSymbol); 182ImmutableArray<ExpressionSyntax> references) 252var uniqueNames = NameGenerator.EnsureUniqueness([.. parameterNames], [.. isFixed]);
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseNameofInAttribute\CSharpUseNameofInAttributeCodeFixProvider.cs (2)
24public override ImmutableArray<string> FixableDiagnosticIds { get; } = [IDEDiagnosticIds.UseNameofInAttributeDiagnosticId]; 36ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseObjectInitializer\CSharpUseObjectInitializerCodeFixProvider.cs (3)
53ImmutableArray<ObjectInitializerMatch> matches) 63ImmutableArray<ObjectInitializerMatch> matches) 73ImmutableArray<ObjectInitializerMatch> matches)
src\roslyn\src\Analyzers\CSharp\CodeFixes\UsePatternCombinators\CSharpUsePatternCombinatorsCodeFixProvider.cs (2)
48public override ImmutableArray<string> FixableDiagnosticIds 71Document document, ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\CSharp\CodeFixes\UsePatternMatching\CSharpAsAndMemberAccessCodeFixProvider.cs (2)
30public override ImmutableArray<string> FixableDiagnosticIds 39Document document, ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\CSharp\CodeFixes\UsePatternMatching\CSharpAsAndNullCheckCodeFixProvider.cs (2)
30public override ImmutableArray<string> FixableDiagnosticIds 39Document document, ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\CSharp\CodeFixes\UsePatternMatching\CSharpIsAndCastCheckCodeFixProvider.cs (4)
27public override ImmutableArray<string> FixableDiagnosticIds 36Document document, ImmutableArray<Diagnostic> diagnostics, 64var trivia = localDeclaration.GetLeadingTrivia().Concat(localDeclaration.GetTrailingTrivia()) 83ImmutableArray<SyntaxTrivia> trivia,
src\roslyn\src\Analyzers\CSharp\CodeFixes\UsePatternMatching\CSharpUseNotPatternCodeFixProvider.cs (2)
25public override ImmutableArray<string> FixableDiagnosticIds 34Document document, ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\CSharp\CodeFixes\UsePrimaryConstructor\CSharpUsePrimaryConstructorCodeFixProvider.cs (4)
46public override ImmutableArray<string> FixableDiagnosticIds 187var triviaToMove = GetLeadingCommentTrivia(firstMember); 200ImmutableArray<SyntaxTrivia> GetLeadingCommentTrivia(MemberDeclarationSyntax firstMember) 202var leadingTrivia = firstMember.GetLeadingTrivia().ToImmutableArray();
src\roslyn\src\Analyzers\CSharp\CodeFixes\UsePrimaryConstructor\CSharpUsePrimaryConstructorFixAllProvider.cs (1)
38private static async Task<Solution?> FixAllContextsHelperAsync(FixAllContext originalContext, ImmutableArray<FixAllContext> contexts)
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseSimpleUsingStatement\UseSimpleUsingStatementCodeFixProvider.cs (5)
34public override ImmutableArray<string> FixableDiagnosticIds { get; } = 43Document document, ImmutableArray<Diagnostic> diagnostics, 76var expandedUsing = Expand(usingStatement); 99ImmutableArray<StatementSyntax> expandedUsingStatements) 113private static ImmutableArray<StatementSyntax> Expand(UsingStatementSyntax usingStatement)
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseSystemThreadingLock\CSharpUseSystemThreadingLockCodeFixProvider.cs (1)
29public override ImmutableArray<string> FixableDiagnosticIds { get; }
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseSystemThreadingLock\CSharpUseSystemThreadingLockFixAllProvider.cs (1)
30private static async Task<Solution?> FixAllContextsHelperAsync(FixAllContext originalContext, ImmutableArray<FixAllContext> contexts)
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseThrowExpression\UseThrowExpressionCodeFixProvider.cs (2)
27public override ImmutableArray<string> FixableDiagnosticIds 39Document document, ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseTupleSwap\CSharpUseTupleSwapCodeFixProvider.cs (2)
27public override ImmutableArray<string> FixableDiagnosticIds { get; } 36Document document, ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseUnboundGenericTypeInNameOf\CSharpUseUnboundGenericTypeInNameOfCodeFixProvider.cs (2)
30public override ImmutableArray<string> FixableDiagnosticIds { get; } 39Document document, ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseUtf8StringLiteral\UseUtf8StringLiteralCodeFixProvider.cs (2)
33public override ImmutableArray<string> FixableDiagnosticIds { get; } = 42Document document, ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (1)
92builder.Add(new DeclarationInfo(name, ImmutableArray<SyntaxNode>.Empty, declaredSymbol));
StringIndentation\CSharpStringIndentationService.cs (1)
28public async Task<ImmutableArray<StringIndentationRegion>> GetStringIndentationRegionsAsync(
Structure\CSharpBlockStructureProvider.cs (4)
15private static ImmutableDictionary<Type, ImmutableArray<AbstractSyntaxStructureProvider>> CreateDefaultNodeProviderMap() 17var builder = ImmutableDictionary.CreateBuilder<Type, ImmutableArray<AbstractSyntaxStructureProvider>>(); 62private static ImmutableDictionary<int, ImmutableArray<AbstractSyntaxStructureProvider>> CreateDefaultTriviaProviderMap() 64var builder = ImmutableDictionary.CreateBuilder<int, ImmutableArray<AbstractSyntaxStructureProvider>>();
Structure\CSharpBlockStructureService.cs (1)
31protected override ImmutableArray<BlockStructureProvider> GetBuiltInProviders()
Structure\Providers\ArrowExpressionClauseStructureProvider.cs (1)
47var matchingDirectives = directive.GetMatchingConditionalDirectives(cancellationToken);
Structure\Providers\FileScopedNamespaceDeclarationStructureProvider.cs (1)
28var externsAndUsings = Enumerable.Union<SyntaxNode>(fileScopedNamespaceDeclaration.Externs, fileScopedNamespaceDeclaration.Usings).ToImmutableArray();
TaskList\CSharpTaskListService.cs (1)
30ImmutableArray<TaskListItemDescriptor> commentDescriptors,
UseExpressionBody\UseExpressionBodyCodeRefactoringProvider.cs (7)
35private static readonly ImmutableArray<UseExpressionBodyHelper> _helpers = UseExpressionBodyHelper.Helpers; 43ImmutableArray<UseExpressionBodyHelper> helpers) 48ImmutableArray<UseExpressionBodyHelper> helpers) 58protected override ImmutableArray<RefactorAllScope> SupportedRefactorAllScopes => AllRefactorAllScopes; 189ImmutableArray<TextSpan> fixAllSpans, 205ImmutableArray<TextSpan> fixAllSpans, 238ImmutableArray<SyntaxNode> declarationsToFix,
UseExpressionBodyForLambda\UseExpressionBodyForLambdaCodeRefactoringProvider.cs (9)
86var codeActions = await computationTask.ConfigureAwait(false); 90private static async Task<ImmutableArray<CodeAction>> ComputeOpposingRefactoringsWhenAnalyzerActiveAsync( 121var useBlockRefactorings = await ComputeRefactoringsAsync( 124var whenOnSingleLineRefactorings = await ComputeRefactoringsAsync( 136var whenPossibleRefactorings = await ComputeRefactoringsAsync( 146private static async Task<ImmutableArray<CodeAction>> ComputeAllRefactoringsWhenAnalyzerInactiveAsync( 153var toExpressionBodyRefactorings = await ComputeRefactoringsAsync( 156var toBlockBodyRefactorings = await ComputeRefactoringsAsync( 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 37Document document, ImmutableArray<Diagnostic> diagnostics,
UsePatternMatching\CSharpIsAndCastCheckWithoutNameDiagnosticAnalyzer.cs (1)
205var diagnostics = updatedSemanticModel.GetDiagnostics(currentNode.Span, cancellationToken);
Wrapping\CSharpWrappingCodeRefactoringProvider.cs (1)
22private static readonly ImmutableArray<ISyntaxWrapper> s_wrappers =
Microsoft.CodeAnalysis.CSharp.NetAnalyzers (24)
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\CSharpOverrideEqualsOnOverloadingOperatorEquals.Fixer.cs (1)
18public override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create("CS0660");
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\CSharpOverrideGetHashCodeOnOverridingEquals.Fixer.cs (1)
18public override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create("CS0659");
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\CSharpStaticHolderTypes.Fixer.cs (1)
24public sealed override ImmutableArray<string> FixableDiagnosticIds { get; } =
Microsoft.CodeQuality.Analyzers\QualityGuidelines\CSharpAvoidDuplicateElementInitializationFixer.cs (1)
24public sealed override ImmutableArray<string> FixableDiagnosticIds { get; } =
Microsoft.CodeQuality.Analyzers\QualityGuidelines\CSharpDoNotInitializeUnnecessarily.Fixer.cs (1)
22public sealed override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(DoNotInitializeUnnecessarilyAnalyzer.RuleId);
Microsoft.NetCore.Analyzers\InteropServices\CSharpDisableRuntimeMarshalling.FixAllProvider.cs (1)
26protected override async Task<Document?> FixAllAsync(FixAllContext fixAllContext, Document document, ImmutableArray<Diagnostic> diagnostics)
Microsoft.NetCore.Analyzers\InteropServices\CSharpDisableRuntimeMarshalling.Fixer.cs (1)
23public override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(DisableRuntimeMarshallingAnalyzer.MethodUsesRuntimeMarshallingEvenWhenMarshallingDisabledId);
Microsoft.NetCore.Analyzers\Performance\CSharpCollapseMultiplePathOperations.Fixer.cs (1)
22public override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(CollapseMultiplePathOperationsAnalyzer.RuleId);
Microsoft.NetCore.Analyzers\Performance\CSharpPreferDictionaryTryMethodsOverContainsKeyGuardFixer.cs (2)
355ImmutableArray<SyntaxNode> dictionaryAccessors, 378public ImmutableArray<SyntaxNode> DictionaryAccessors { get; }
Microsoft.NetCore.Analyzers\Performance\CSharpUseStringMethodCharOverloadWithSingleCharacters.Fixer.cs (1)
61protected override ImmutableArray<SyntaxNode> GetArguments(SyntaxNode argumentListNode)
Microsoft.NetCore.Analyzers\Runtime\CSharpAvoidRedundantRegexIsMatchBeforeMatch.Fixer.cs (1)
46public sealed override ImmutableArray<string> FixableDiagnosticIds { get; } =
Microsoft.NetCore.Analyzers\Runtime\CSharpDetectPreviewFeatureAnalyzer.cs (5)
32ImmutableArray<SyntaxReference> fieldOrEventReferences = fieldOrEventSymbol.DeclaringSyntaxReferences; 82ImmutableArray<SyntaxReference> methodSymbolDeclaringReferences = methodSymbol.DeclaringSyntaxReferences; 116ImmutableArray<SyntaxReference> methodOrPropertySymbolDeclaringReferences = methodOrPropertySymbol.DeclaringSyntaxReferences; 191ImmutableArray<SyntaxReference> typeSymbolDeclaringReferences = typeOrMethodSymbol.DeclaringSyntaxReferences; 254ImmutableArray<SyntaxReference> typeSymbolDeclaringReferences = typeSymbol.DeclaringSyntaxReferences;
Microsoft.NetCore.Analyzers\Runtime\CSharpDoNotUseStackallocInLoops.cs (1)
20private static readonly ImmutableArray<SyntaxKind> s_stackallocKinds = ImmutableArray.Create(SyntaxKind.StackAllocArrayCreationExpression);
Microsoft.NetCore.Analyzers\Runtime\CSharpForwardCancellationTokenToInvocations.Analyzer.cs (1)
34protected override bool ArgumentsImplicitOrNamed(INamedTypeSymbol cancellationTokenType, ImmutableArray<IArgumentOperation> arguments)
Microsoft.NetCore.Analyzers\Runtime\CSharpForwardCancellationTokenToInvocations.Fixer.cs (3)
54out ImmutableArray<ArgumentSyntax> arguments) 64arguments = ImmutableArray<ArgumentSyntax>.Empty; 73protected override IEnumerable<SyntaxNode> GetExpressions(ImmutableArray<ArgumentSyntax> newArguments)
Microsoft.NetCore.Analyzers\Runtime\CSharpPreferStreamAsyncMemoryOverloads.Fixer.cs (1)
25var args = invocation.Arguments;
Microsoft.NetCore.Analyzers\Usage\CSharpUseVolatileReadWriteFixer.cs (1)
17protected override ImmutableArray<SyntaxNode> GetArguments(SyntaxNode invocationSyntax)
Microsoft.CodeAnalysis.CSharp.Scripting (1)
CSharpScriptCompiler.cs (1)
42var references = script.GetReferencesForCompilation(MessageProvider.Instance, diagnostics);
Microsoft.CodeAnalysis.CSharp.Workspaces (269)
CaseCorrection\CSharpCaseCorrectionService.cs (1)
29ImmutableArray<TextSpan> spans,
Classification\SyntaxClassification\CSharpSyntaxClassificationService.cs (3)
30private readonly ImmutableArray<ISyntaxClassifier> _defaultClassifiers = 41public override ImmutableArray<ISyntaxClassifier> GetDefaultSyntaxClassifiers() 47public 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\DocCommentCodeBlockClassifier.cs (1)
31public override ImmutableArray<Type> SyntaxNodeTypes { get; } = [typeof(XmlElementSyntax)];
Classification\SyntaxClassification\FunctionPointerUnmanagedCallingConventionClassifier.cs (1)
18public override ImmutableArray<Type> SyntaxNodeTypes { get; } = [typeof(FunctionPointerUnmanagedCallingConventionSyntax)];
Classification\SyntaxClassification\NameSyntaxClassifier.cs (1)
35public 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)
1216internal override ImmutableArray<SyntaxNode> GetTypeInheritance(SyntaxNode declaration) 1219: ImmutableArray<SyntaxNode>.Empty; 1258private static ImmutableArray<SyntaxNode> Flatten(IEnumerable<SyntaxNode> declarations) 1780ImmutableArray<ISymbol> explicitInterfaceImplementations, 1818private 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)
44private static ImmutableArray<string> GetInheritanceNames(StringTable stringTable, BaseListSyntax? baseList) 618UsingDirectiveSyntax usingDirectiveNode, out ImmutableArray<(string aliasName, string name)> aliases) 654SyntaxNode? node, ImmutableArray<string>? typeParameterNames,
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)
Recommendations\CSharpRecommendationServiceRunner.cs (20)
72private ImmutableArray<ISymbol> GetSymbolsForCurrentContext() 246private ImmutableArray<ISymbol> GetSymbolsForGlobalStatementContext() 262var symbols = _context.SemanticModel.LookupSymbols(token.SpanStart); 267private ImmutableArray<ISymbol> GetSymbolsForTypeArgumentOfConstraintClause() 275var symbols = enclosingSymbol != null 279return ImmutableArray<ISymbol>.CastUp(symbols); 297private ImmutableArray<ISymbol> GetSymbolsForLabelContext() 300var allLabels = _context.SemanticModel.LookupLabels(token.SpanStart); 334private ImmutableArray<ISymbol> GetSymbolsForTypeOrNamespaceContext() 337var symbols = semanticModel.LookupNamespacesAndTypes(_context.LeftToken.SpanStart); 360private ImmutableArray<ISymbol> GetSymbolsForExpressionOrStatementContext() 386ImmutableArray<ISymbol> symbols; 570private static ImmutableArray<ISymbol> FilterOutUncapturableParameters(ImmutableArray<ISymbol> symbols, SyntaxNode contextNode) 614var symbols = _context.SemanticModel.LookupNamespacesAndTypes( 688var symbols = namespaceOrType 905var symbols = GetMemberSymbols(containerSymbol, position: originalExpression.SpanStart, excludeInstance, useBaseReferenceAccessibility, unwrapNullable, isForDereference); 907var namedSymbols = symbols.WhereAsArray( 913var unnamedSymbols = _context.IsNameOfContext || excludeInstance 955private ImmutableArray<ISymbol> GetUnnamedSymbols(ExpressionSyntax originalExpression)
Rename\CSharpRenameRewriterLanguageService.cs (6)
53private readonly ImmutableArray<string> _possibleNameConflicts; 346var symbols = RenameUtilities.GetSymbolsTouchingPosition(token.Span.Start, _semanticModel, _solution.Services, _cancellationToken); 752var locals = enclosingMemberDeclaration.GetLocalDeclarationMap()[token.ValueText]; 780public override async Task<ImmutableArray<Location>> ComputeDeclarationConflictsAsync( 947public override async Task<ImmutableArray<Location>> ComputeImplicitReferenceConflictsAsync( 992public override ImmutableArray<Location> ComputePossibleImplicitUsageConflicts(
Serialization\CSharpOptionsSerializationService.cs (2)
54var usings = reader.ReadArray(static r => r.ReadString()); 70var preprocessorSymbolNames = reader.ReadArray(static r => r.ReadString());
Simplification\CSharpSimplificationService.cs (3)
31private static readonly ImmutableArray<AbstractReducer> s_reducers = 177protected override ImmutableArray<NodeOrTokenToReduce> GetNodesAndTokensToReduce(SyntaxNode root, Func<SyntaxNodeOrToken, bool> isNodeOrTokenOutsideSimplifySpans) 188var diagnostics = model.GetDiagnostics(cancellationToken: cancellationToken);
Simplification\CSharpSimplificationService.Expander.cs (1)
740var typeArguments = method.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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeStyle\CSharpCodeStyleOptions.cs (3)
18private static readonly ImmutableArray<IOption2>.Builder s_editorConfigOptionsBuilder = ImmutableArray.CreateBuilder<IOption2>(); 157private static readonly ImmutableArray<SyntaxKind> s_preferredModifierOrderDefault = 316internal static readonly ImmutableArray<IOption2> EditorConfigOptions = s_editorConfigOptionsBuilder.ToImmutable();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ArgumentSyntaxExtensions.cs (2)
53var symbols = symbolInfo.GetBestOrAllSymbols(); 60var parameters = symbol.GetParameters();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\AttributeArgumentSyntaxExtensions.cs (2)
39var symbols = semanticModel.GetSymbolInfo(invocableExpression, cancellationToken).GetBestOrAllSymbols(); 45var parameters = symbol.GetParameters();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\BlockSyntaxExtensions.cs (3)
66var leadingDirectives = statement.GetLeadingTrivia().WhereAsArray(IsAnyCodeDirective); 67var closeBraceLeadingDirectives = block.CloseBraceToken.LeadingTrivia.WhereAsArray(IsAnyCodeDirective); 82var conditionalDirectives = firstDirective.GetMatchingConditionalDirectives(cancellationToken);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\DirectiveSyntaxExtensions.cs (2)
50public static ImmutableArray<DirectiveTriviaSyntax> GetMatchingConditionalDirectives(this DirectiveTriviaSyntax directive, CancellationToken cancellationToken) 55if (directiveConditionalMap.TryGetValue(directive, out var result))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
950var typeArguments = tupleType.GetTypeArguments();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.cs (1)
17private static readonly ConditionalWeakTable<MemberDeclarationSyntax, Dictionary<string, ImmutableArray<SyntaxToken>>> s_declarationCache = new();
src\roslyn\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\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (5)
559var directives = ((DirectiveTriviaSyntax)structure).GetMatchingConditionalDirectives(cancellationToken); 644public static ImmutableArray<SyntaxTrivia> GetLeadingBlankLines<TSyntaxNode>(this TSyntaxNode node) where TSyntaxNode : SyntaxNode 650public static TSyntaxNode GetNodeWithoutLeadingBlankLines<TSyntaxNode>(this TSyntaxNode node, out ImmutableArray<SyntaxTrivia> strippedTrivia) where TSyntaxNode : SyntaxNode 653public static ImmutableArray<SyntaxTrivia> GetLeadingBannerAndPreprocessorDirectives<TSyntaxNode>(this TSyntaxNode node) where TSyntaxNode : SyntaxNode 659public static TSyntaxNode GetNodeWithoutLeadingBannerAndPreprocessorDirectives<TSyntaxNode>(this TSyntaxNode node, out ImmutableArray<SyntaxTrivia> strippedTrivia) where TSyntaxNode : SyntaxNode
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\CSharpFormattingOptions2.cs (3)
17private static readonly ImmutableArray<IOption2>.Builder s_editorConfigOptionsBuilder = ImmutableArray.CreateBuilder<IOption2>(); 282internal static readonly ImmutableArray<IOption2> EditorConfigOptions = s_editorConfigOptionsBuilder.ToImmutable(); 287internal static readonly ImmutableArray<IOption2> UndocumentedOptions = [CollectionExpressionWrappingLength];
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\CSharpFormatEngine.cs (1)
18ImmutableArray<AbstractFormattingRule> formattingRules,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Helpers\RemoveUnnecessaryImports\CSharpUnnecessaryImportsProvider.cs (2)
23public override ImmutableArray<UsingDirectiveSyntax> GetUnnecessaryImports( 30var diagnostics = model.GetDiagnostics(cancellationToken: cancellationToken);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Indentation\CSharpSmartTokenFormatter.cs (4)
24private readonly ImmutableArray<AbstractFormattingRule> _formattingRules; 31ImmutableArray<AbstractFormattingRule> formattingRules, 50var smartTokenformattingRules = _formattingRules; 105ImmutableArray<AbstractFormattingRule> smartTokenFormattingRules = [new SmartTokenFormattingRule(), .. _formattingRules];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SelectedMembers\CSharpSelectedMembers.cs (1)
28protected override ImmutableArray<(SyntaxNode declarator, SyntaxToken identifier)> GetDeclaratorsAndIdentifiers(MemberDeclarationSyntax member)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SemanticFacts\CSharpSemanticFacts.cs (9)
206public ImmutableArray<IMethodSymbol> GetDeconstructionAssignmentMethods(SemanticModel semanticModel, SyntaxNode node) 218public ImmutableArray<IMethodSymbol> GetDeconstructionForEachMethods(SemanticModel semanticModel, SyntaxNode node) 279public ImmutableArray<ISymbol> GetBestOrAllSymbols(SemanticModel semanticModel, SyntaxNode? node, SyntaxToken token, CancellationToken cancellationToken) 292static ImmutableArray<ISymbol> GetCallingConventionSymbols(SemanticModel model, FunctionPointerUnmanagedCallingConventionSyntax syntax) 305private ImmutableArray<ISymbol> GetSymbolInfo(SemanticModel semanticModel, SyntaxNode node, SyntaxToken token, CancellationToken cancellationToken) 355var symbols = GetOrderCandidates(); 392ImmutableArray<ISymbol> GetOrderCandidates() 434public ImmutableArray<IMethodSymbol> GetLocalFunctionSymbols(Compilation compilation, ISymbol symbol, CancellationToken cancellationToken) 522var contentHash = await document.GetContentHashAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
1286public ImmutableArray<SyntaxNode> GetMatchingConditionalDirectives(SyntaxNode directive, CancellationToken cancellationToken)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (4)
912Func<TConditionalOrSwitchExpression, ImmutableArray<ExpressionSyntax>> getArmExpressions, 1113var parameters = op.GetParameters(); 1623var originalParameters = originalMethodSymbol.Parameters; 1624var rewrittenParameters = rewrittenMethodSymbol.Parameters;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\CSharpLightweightOverloadResolution.cs (2)
18public IMethodSymbol? RefineOverload(SymbolInfo symbolInfo, ImmutableArray<IMethodSymbol> candidates) 21public (IMethodSymbol? method, int parameterIndex) RefineOverloadAndPickParameter(SymbolInfo symbolInfo, ImmutableArray<IMethodSymbol> candidates)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\SpeculationAnalyzer.cs (2)
588protected override ImmutableArray<ArgumentSyntax> GetArguments(ExpressionSyntax expression) 890out ImmutableArray<ILocalSymbol> localVariables)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\TypeStyle\CSharpUseImplicitTypeHelper.cs (1)
209var memberGroup = semanticModel.GetMemberGroup(invocationExpression.Expression, cancellationToken);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\UsingsAndExternAliasesOrganizer.cs (1)
127initialList[0] = initialList[0].GetNodeWithoutLeadingBannerAndPreprocessorDirectives(out var leadingTrivia);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeFixesAndRefactorings\CSharpFixAllSpanMappingService.cs (4)
24protected override async Task<ImmutableDictionary<Document, ImmutableArray<TextSpan>>> GetFixAllSpansIfWithinGlobalStatementAsync( 30return ImmutableDictionary<Document, ImmutableArray<TextSpan>>.Empty; 43return ImmutableDictionary<Document, ImmutableArray<TextSpan>>.Empty; 48return ImmutableDictionary<Document, ImmutableArray<TextSpan>>.Empty
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\AttributeGenerator.cs (1)
21ImmutableArray<AttributeData> attributes,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ConstructorGenerator.cs (3)
92var thisArguments = CodeGenerationConstructorInfo.GetThisConstructorArgumentsOpt(constructor); 94var arguments = !thisArguments.IsDefault ? thisArguments : CodeGenerationConstructorInfo.GetBaseConstructorArgumentsOpt(constructor); 104private static ArgumentListSyntax GenerateArgumentList(ImmutableArray<SyntaxNode> arguments)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (1)
551var newContainingStatement = containingStatement.GetNodeWithoutLeadingBannerAndPreprocessorDirectives(out var strippedTrivia);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\EventGenerator.cs (1)
150var attributes = @event.GetAttributes();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\MethodGenerator.cs (1)
124var parameters = method.Parameters.SelectAsArray(static (p, destination) => FilterAttributes(p, destination), destination);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\NamedTypeGenerator.cs (2)
84var members = GetMembers(namedType).WhereAsArray(s => s.Kind != SymbolKind.Property || PropertyGenerator.CanBeGenerated((IPropertySymbol)s)); 107ImmutableArray<ISymbol> members,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ParameterGenerator.cs (7)
20ImmutableArray<IParameterSymbol> parameterDefinitions, 24var parameters = GetParameters(parameterDefinitions, isExplicit, info); 30ImmutableArray<IParameterSymbol> parameterDefinitions, 36var parameters = GetParameters(parameterDefinitions, isExplicit, info); 41internal static ImmutableArray<ParameterSyntax> GetParameters( 42ImmutableArray<IParameterSymbol> parameterDefinitions, 121var attributes = parameter.GetAttributes();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\PropertyGenerator.cs (1)
149var attributes = property.GetAttributes();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\TypeParameterGenerator.cs (1)
19ImmutableArray<ITypeParameterSymbol> typeParameters, CSharpCodeGenerationContextInfo info)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Editing\CSharpImportAdder.cs (3)
44ImmutableArray<INamespaceSymbol> namespaceSymbols, 101ImmutableArray<INamespaceSymbol> namespaceSymbols) 108private void AddImportedMembers(ImmutableArray<INamespaceSymbol> namespaceSymbols)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
1034var symbols = semanticModelOpt.LookupName(nameToken, cancellationToken);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeParameterSymbolExtensions.cs (1)
19this ImmutableArray<ITypeParameterSymbol> typeParameters)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeSymbolExtensions.TypeSyntaxGeneratorVisitor.cs (1)
168var parameters = symbol.Signature.Parameters.Select(p => (p.Type, RefKindModifiers: CSharpSyntaxGeneratorInternal.GetParameterModifiers(p)))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\SemanticModelExtensions.cs (11)
35public static ImmutableArray<ParameterName> GenerateParameterNames( 44public static ImmutableArray<ParameterName> GenerateParameterNames( 53public static ImmutableArray<ParameterName> GenerateParameterNames( 62var isFixed = reservedNames.Select(s => true).Concat( 65var parameterNames = reservedNames.Concat( 71public static ImmutableArray<ParameterName> GenerateNames(IList<string> reservedNames, ImmutableArray<bool> isFixed, ImmutableArray<string> parameterNames) 76public static ImmutableArray<ParameterName> GenerateParameterNames( 85var isFixed = reservedNames.Select(s => true).Concat( 88var parameterNames = reservedNames.Concat(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\TypeSyntaxExtensions.cs (1)
44var symbols = semanticModelOpt.LookupName(nameToken, cancellationToken);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\WithElementSyntaxExtensions.cs (4)
17public static ImmutableArray<IMethodSymbol> GetCreationMethods( 31var result = TryGetInterfaceItems() ?? 37ImmutableArray<IMethodSymbol>? TryGetInterfaceItems() 62ImmutableArray<IMethodSymbol>? TryGetCollectionBuilderItems()
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Formatting\CSharpSyntaxFormattingService.cs (8)
73public ImmutableArray<TextChange> GetFormattingChangesOnTypedCharacter( 81var formattingRules = GetFormattingRules(document, caretPosition, token); 93var changes = FormatRange(document, indentationOptions, token, formattingRules, cancellationToken); 186ParsedDocument document, IndentationOptions options, SyntaxToken token, ImmutableArray<AbstractFormattingRule> formattingRules, CancellationToken cancellationToken) 192private static ImmutableArray<TextChange> FormatRange( 196ImmutableArray<AbstractFormattingRule> formattingRules, 322private ImmutableArray<AbstractFormattingRule> GetFormattingRules(ParsedDocument document, int position, SyntaxToken tokenBeforeCaret) 337public ImmutableArray<TextChange> GetFormattingChangesOnPaste(ParsedDocument document, TextSpan textSpan, SyntaxFormattingOptions options, CancellationToken cancellationToken)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpAddImportsService.cs (2)
34protected override ImmutableArray<SyntaxNode> GetGlobalImports( 40var importScopes = semanticModel.GetImportScopes(contextLocation?.SpanStart ?? 0, cancellationToken);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpSemanticFactsService.cs (1)
37var visibleSymbols = semanticModel.LookupSymbols(location.SpanStart);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpSymbolDeclarationService.cs (1)
18public ImmutableArray<SyntaxReference> GetDeclarations(ISymbol symbol)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpSyntaxFactsService.cs (1)
116public Task<ImmutableArray<SyntaxNode>> GetSelectedFieldsAndPropertiesAsync(SyntaxTree tree, TextSpan textSpan, bool allowPartialSelection, CancellationToken cancellationToken)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (38)
111var allSymbols = symbolInfo.GetAllSymbols(); 364var parentTypes = InferTypes(tupleExpression); 724ImmutableArray<ImmutableArray<IParameterSymbol>> parameterizedSymbols, 740ImmutableArray<ImmutableArray<IParameterSymbol>> parameterizedSymbols, 744using var _1 = ArrayBuilder<ImmutableArray<IParameterSymbol>>.GetInstance(out var parameterListsWithMatchingCount); 745using var _2 = ArrayBuilder<ImmutableArray<IParameterSymbol>>.GetInstance(out var parameterListsWithoutMatchingCount); 748foreach (var parameterList in parameterizedSymbols) 775ImmutableArray<ImmutableArray<IParameterSymbol>> parameterizedSymbols, 793foreach (var parameterSet in parameterizedSymbols) 837var outerTypes = InferTypes(arrayCreationExpression); 861var currentTypes = InferTypes(arrayType); 1022var parentTypes = InferTypes(binop); 1036var parentTypes = InferTypes(binop); 1338var variableTypes = GetTypes(forEachStatementSyntax.Type).ToImmutableArray(); 1389var addMethodSymbols = SemanticModel.GetCollectionInitializerSymbolInfo(initializerExpression).GetAllSymbols(); 1407var addMethodSymbols = SemanticModel.GetCollectionInitializerSymbolInfo(expressionOpt).GetAllSymbols(); 1442var arrayTypes = this.InferTypes(implicitArray); 1498var addMethodSymbols = SemanticModel.GetCollectionInitializerSymbolInfo(expressionOpt).GetAllSymbols(); 1660var elementTypes = elementTypesBuilder.ToImmutableAndFree(); 1670private static ImmutableArray<NullableAnnotation> GetNullableAnnotations(ImmutableArray<ITypeSymbol> elementTypes) 1695var types = InferTypes(anonymousFunction); 1719var types = InferTypes(anonymousObject); 1997var types = InferTypes(prefixUnaryExpression); 2043var types = InferTypes(awaitExpression); 2277var laterUsageInference = InferTypeBasedOnLaterUsage(symbol, variableDeclaration); 2285private ImmutableArray<TypeInferenceInfo> InferTypeBasedOnLaterUsage(ISymbol symbol, SyntaxNode afterNode) 2306var inferredDescendantTypes = InferTypes(descendant, filterUnusable: true); 2326var elementNames = parenthesizedVariableDesignation.Variables.SelectAsArray(v => ((SingleVariableDesignationSyntax)v).Identifier.ValueText); 2327var elementTypes = parenthesizedVariableDesignation.Variables.SelectAsArray(v => 2332var inferredFutureUsage = InferTypeBasedOnLaterUsage(symbol, afterNode: left.Parent); 2361if (!TryGetTupleTypesAndNames(tuple.Arguments, out var elementTypes, out var elementNames)) 2372out ImmutableArray<ITypeSymbol> elementTypes, 2373out ImmutableArray<string> elementNames)
SyncedSource\FileBasedPrograms\FileLevelDirectiveHelpers.cs (6)
38public static ImmutableArray<CSharpDirective> FindDirectives(SourceFile sourceFile, bool reportAllErrors, ErrorReporter errorReporter, bool checkDuplicates = true) 88ImmutableArray<CSharpDirective>.Builder? builder, 696public static ImmutableArray<(string Extension, string ItemType)> DefaultMapping 747public IncludeOrExclude WithDeterminedItemType(ErrorReporter reportError, ImmutableArray<(string Extension, string ItemType)> mapping) 831public static ImmutableArray<(string Extension, string ItemType)> ParseMapping( 1000public static ErrorReporter CreateCollectingReporter(out ImmutableArray<SimpleDiagnostic>.Builder builder)
SyncedSource\FileBasedPrograms\VirtualProjectBuilder.cs (23)
40private (ImmutableArray<CSharpDirective> Original, ImmutableArray<CSharpDirective> Evaluated)? _evaluatedDirectives; 141var directives = FileLevelDirectiveHelpers.FindDirectives(sourceFile, reportAllErrors: false, ErrorReporters.IgnoringReporter); 213private async ValueTask<ImmutableArray<CSharpDirective>> EvaluateDirectivesAsync( 215ImmutableArray<CSharpDirective> directives, 225ImmutableArray<(string Extension, string ItemType)> mapping = default; 269internal async ValueTask<ImmutableArray<(string Extension, string ItemType)>> GetItemMappingAsync(IProjectInstance project, ErrorReporter reportError) 296ImmutableArray<CSharpDirective> evaluatedDirectives) 300public ImmutableArray<CSharpDirective> EvaluatedDirectives { get; } = evaluatedDirectives; 306ImmutableArray<CSharpDirective> directives = default, 313ImmutableArray<CSharpDirective> evaluatedDirectives; 315var directivesOriginal = directives; 346var directivesForEvaluation = DeduplicateSdkDirectives(directives); 355var fileEvaluatedDirectives = await EvaluateDirectivesAsync(project, directivesForEvaluation, reportError).ConfigureAwait(false); 393var compileItems = await project.GetItemMetadataValuesAsync("Compile", ["FullPath"]).ConfigureAwait(false); 394foreach (var compileItem in compileItems) 433ImmutableArray<CSharpDirective> DeduplicateSdkDirectives(ImmutableArray<CSharpDirective> directives) 469ImmutableArray<CSharpDirective> directives, 516ImmutableArray<CSharpDirective> directives, 554ImmutableArray<CSharpDirective> directives, 584ImmutableArray<CSharpDirective> directives, 591ImmutableArray<ExplicitProjectItem> explicitProjectItems = default)
Workspace\LanguageServices\CSharpCompilationFactoryService.cs (2)
56GeneratorDriver ICompilationFactoryService.CreateGeneratorDriver(ParseOptions parseOptions, ImmutableArray<ISourceGenerator> generators, AnalyzerConfigOptionsProvider optionsProvider, ImmutableArray<AdditionalText> additionalTexts, string? generatedFilesBaseDirectory)
Microsoft.CodeAnalysis.Extensions.Package (308)
Compilation\CompilationExtensions.cs (4)
29public static ImmutableArray<Compilation> GetReferencedCompilations(this Compilation compilation) 48public static ImmutableArray<IAssemblySymbol> GetReferencedAssemblySymbols(this Compilation compilation, bool excludePreviousSubmissions = false) 52var referencedAssemblySymbols = compilation.Assembly.Modules.First().ReferencedAssemblySymbols; 193=> compilation.GetTypeByMetadataName(typeof(ImmutableArray<>).FullName!);
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\Hash.cs (3)
120internal static int CombineValues<T>(ImmutableArray<T> values, int maxItemsToHash = int.MaxValue) 171internal static int CombineValues(ImmutableArray<string> values, StringComparer stringComparer, int maxItemsToHash = int.MaxValue) 252internal static int GetFNVHashCode(ImmutableArray<byte> data)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (2)
20private static ImmutableArray<string> s_lazyNumerals; 25var numerals = s_lazyNumerals;
src\roslyn\src\Dependencies\Collections\Extensions\FixedSizeArrayBuilder.cs (5)
19/// A bare-bones array builder, focused on the case of producing <see cref="ImmutableArray{T}"/>s where the final array 37/// The builder will be moved to an array (see <see cref="MoveToArray"/>) or <see cref="ImmutableArray{T}"/> (see <see 70public void AddRange(ImmutableArray<T> values) 116/// Moves the underlying buffer out of control of this type, into the returned <see cref="ImmutableArray{T}"/>. It 122public ImmutableArray<T> MoveToImmutable()
src\roslyn\src\Dependencies\Collections\Extensions\ICollectionExtensions.cs (1)
76public static void AddRange<T>(this ICollection<T> collection, ImmutableArray<T> values)
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (26)
60public static ImmutableArray<T> ToImmutableArrayOrEmpty<T>(this IEnumerable<T>? items) 67if (items is ImmutableArray<T> array) 82if (items is ImmutableArray<T> array) 271/// <seealso cref="Microsoft.CodeAnalysis.ImmutableArrayExtensions.HasDuplicates{TItem, TValue}(ImmutableArray{TItem}, Func{TItem, TValue}, IEqualityComparer{TValue})"/> 376public static ImmutableArray<T> WhereAsArray<T>(this IEnumerable<T> values, Func<T, bool> predicate) 390public static ImmutableArray<T> WhereAsArray<T, TArg>(this IEnumerable<T> values, Func<T, TArg, bool> predicate, TArg arg) 407public static ImmutableArray<TResult> SelectAsArray<TSource, TResult>(this IEnumerable<TSource>? source, Func<TSource, TResult> selector) 417public static ImmutableArray<TResult> SelectAsArray<TItem, TResult>(this IEnumerable<TItem>? source, Func<TItem, bool> predicate, Func<TItem, TResult> selector) 431public static ImmutableArray<TResult> SelectAsArray<TSource, TResult>(this IEnumerable<TSource>? source, Func<TSource, int, TResult> selector) 446public static ImmutableArray<TResult> SelectAsArray<TSource, TResult, TArg>(this IEnumerable<TSource>? source, Func<TSource, TArg, TResult> selector, TArg arg) 449return ImmutableArray<TResult>.Empty; 461public static ImmutableArray<TResult> SelectAsArray<TSource, TResult>(this IReadOnlyCollection<TSource>? source, Func<TSource, TResult> selector) 473public static ImmutableArray<TResult> SelectAsArray<TSource, TResult, TArg>(this IReadOnlyCollection<TSource>? source, Func<TSource, TArg, TResult> selector, TArg arg) 485public static ImmutableArray<TResult> SelectManyAsArray<TSource, TResult>(this IEnumerable<TSource>? source, Func<TSource, IEnumerable<TResult>> selector) 496public static ImmutableArray<TResult> SelectManyAsArray<TItem, TArg, TResult>(this IEnumerable<TItem>? source, Func<TItem, TArg, IEnumerable<TResult>> selector, TArg arg) 507public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, IEnumerable<TResult>> selector) 520public static ImmutableArray<TResult> SelectManyAsArray<TItem, TArg, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, TArg, IEnumerable<TResult>> selector, TArg arg) 533public static ImmutableArray<TResult> SelectManyAsArray<TSource, TResult>(this IEnumerable<TSource>? source, Func<TSource, OneOrMany<TResult>> selector) 547public static async ValueTask<ImmutableArray<TResult>> SelectAsArrayAsync<TItem, TResult>(this IEnumerable<TItem> source, Func<TItem, ValueTask<TResult>> selector) 561public static async ValueTask<ImmutableArray<TResult>> SelectAsArrayAsync<TItem, TResult>(this IEnumerable<TItem> source, Func<TItem, CancellationToken, ValueTask<TResult>> selector, CancellationToken cancellationToken) 575public static async ValueTask<ImmutableArray<TResult>> SelectAsArrayAsync<TItem, TArg, TResult>(this IEnumerable<TItem> source, Func<TItem, TArg, CancellationToken, ValueTask<TResult>> selector, TArg arg, CancellationToken cancellationToken) 586public 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) 764internal static Dictionary<K, ImmutableArray<T>> ToMultiDictionary<K, T>(this IEnumerable<T> data, Func<T, K> keySelector, IEqualityComparer<K>? comparer = null) 767var dictionary = new Dictionary<K, ImmutableArray<T>>(comparer); 834/// Methods that are available on both <see cref="IEnumerable{T}"/> and <see cref="ImmutableArray{T}"/> are defined in System.Linq namespace 835/// to avoid accidental boxing of <see cref="ImmutableArray{T}"/>. The boxing would occur if the file calling these methods didn't have <c>using System.Linq</c>.
src\roslyn\src\Dependencies\Collections\Extensions\IListExtensions.cs (1)
31/// <seealso cref="ImmutableArrayExtensions.HasDuplicates{TItem, TValue}(System.Collections.Immutable.ImmutableArray{TItem}, Func{TItem, TValue}, IEqualityComparer{TValue})"/>
src\roslyn\src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (156)
24/// The collection of extension methods for the <see cref="ImmutableArray{T}"/> type 36public static ImmutableArray<T> AsImmutable<T>(this IEnumerable<T> items) 48public static ImmutableArray<T> AsImmutableOrEmpty<T>(this IEnumerable<T>? items) 52return ImmutableArray<T>.Empty; 65public static ImmutableArray<T> AsImmutableOrNull<T>(this IEnumerable<T>? items) 81public static ImmutableArray<T> AsImmutable<T>(this T[] items) 94public static ImmutableArray<T> AsImmutableOrNull<T>(this T[]? items) 110public static ImmutableArray<T> AsImmutableOrEmpty<T>(this T[]? items) 114return ImmutableArray<T>.Empty; 125public static ImmutableArray<byte> ToImmutable(this MemoryStream stream) 138public static ImmutableArray<TResult> SelectAsArray<TItem, TResult>(this ImmutableArray<TItem> items, Func<TItem, TResult> map) 153public static ImmutableArray<TResult> SelectAsArray<TItem, TArg, TResult>(this ImmutableArray<TItem> items, Func<TItem, TArg, TResult> map, TArg arg) 168public static ImmutableArray<TResult> SelectAsArray<TItem, TArg, TResult>(this ImmutableArray<TItem> items, Func<TItem, int, TArg, TResult> map, TArg arg) 198public static ImmutableArray<TResult> SelectAsArray<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, bool> predicate, Func<TItem, TResult> selector) 224public static ImmutableArray<TResult> SelectAsArray<TItem, TArg, TResult>(this ImmutableArray<TItem> array, Func<TItem, TArg, bool> predicate, Func<TItem, TArg, TResult> selector, TArg arg) 247public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, IEnumerable<TResult>> selector) 267public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, ImmutableArray<TResult>> selector) 287public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, OneOrMany<TResult>> selector) 308public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, bool> predicate, Func<TItem, IEnumerable<TResult>> selector) 332public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, bool> predicate, Func<TItem, ImmutableArray<TResult>> selector) 356public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, bool> predicate, Func<TItem, OneOrMany<TResult>> selector) 381public static ImmutableArray<TResult> SelectManyAsArray<TItem, TArg, TResult>(this ImmutableArray<TItem> array, Func<TItem, TArg, bool> predicate, Func<TItem, TArg, OneOrMany<TResult>> selector, TArg arg) 399public static async ValueTask<ImmutableArray<TResult>> SelectAsArrayAsync<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, CancellationToken, ValueTask<TResult>> selector, CancellationToken cancellationToken) 414public static async ValueTask<ImmutableArray<TResult>> SelectAsArrayAsync<TItem, TArg, TResult>(this ImmutableArray<TItem> array, Func<TItem, TArg, CancellationToken, ValueTask<TResult>> selector, TArg arg, CancellationToken cancellationToken) 426public static ValueTask<ImmutableArray<TResult>> SelectManyAsArrayAsync<TItem, TArg, TResult>(this ImmutableArray<TItem> source, Func<TItem, TArg, CancellationToken, ValueTask<ImmutableArray<TResult>>> selector, TArg arg, CancellationToken cancellationToken) 429return new ValueTask<ImmutableArray<TResult>>([]); 436async ValueTask<ImmutableArray<TResult>> CreateTaskAsync() 453public static ImmutableArray<TResult> ZipAsArray<T1, T2, TResult>(this ImmutableArray<T1> self, ImmutableArray<T2> other, Func<T1, T2, TResult> map) 473public static ImmutableArray<TResult> ZipAsArray<T1, T2, TArg, TResult>(this ImmutableArray<T1> self, ImmutableArray<T2> other, TArg arg, Func<T1, T2, int, TArg, TResult> map) 493public static ImmutableArray<T> WhereAsArray<T>(this ImmutableArray<T> array, Func<T, bool> predicate) 501public static ImmutableArray<T> WhereAsArray<T, TArg>(this ImmutableArray<T> array, Func<T, TArg, bool> predicate, TArg arg) 504private static ImmutableArray<T> WhereAsArrayImpl<T, TArg>(ImmutableArray<T> array, Func<T, bool>? predicateWithoutArg, Func<T, TArg, bool>? predicateWithArg, TArg arg) 569return ImmutableArray<T>.Empty; 573public static async Task<bool> AnyAsync<T>(this ImmutableArray<T> array, Func<T, Task<bool>> predicateAsync) 584public static async Task<bool> AnyAsync<T, TArg>(this ImmutableArray<T> array, Func<T, TArg, Task<bool>> predicateAsync, TArg arg) 595public static async ValueTask<T?> FirstOrDefaultAsync<T>(this ImmutableArray<T> array, Func<T, Task<bool>> predicateAsync) 610public static ImmutableArray<TBase> Cast<TDerived, TBase>(this ImmutableArray<TDerived> items) 613return ImmutableArray<TBase>.CastUp(items); 624public static bool SetEquals<T>(this ImmutableArray<T> array1, ImmutableArray<T> array2, IEqualityComparer<T> comparer) 665public static ImmutableArray<T> NullToEmpty<T>(this ImmutableArray<T> array) 667return array.IsDefault ? ImmutableArray<T>.Empty : array; 673public static ImmutableArray<T> NullToEmpty<T>(this ImmutableArray<T>? array) 676null or { IsDefault: true } => ImmutableArray<T>.Empty, 682internal static ImmutableArray<T> ConditionallyDeOrder<T>(this ImmutableArray<T> array) 699internal static ImmutableArray<TValue> Flatten<TKey, TValue>( 700this Dictionary<TKey, ImmutableArray<TValue>> dictionary, 723internal static ImmutableArray<T> AddRange<T>(this ImmutableArray<T> self, in TemporaryArray<T> items) 751internal static bool HasDuplicates<T>(this ImmutableArray<T> array) 754internal static bool HasDuplicates<T>(this ImmutableArray<T> array, IEqualityComparer<T> comparer) 757public static bool HasDuplicates<TItem, TValue>(this ImmutableArray<TItem> array, Func<TItem, TValue> selector) 769internal static bool HasDuplicates<TItem, TValue>(this ImmutableArray<TItem> array, Func<TItem, TValue> selector, IEqualityComparer<TValue> comparer) 826(Dictionary<TKey, object> dictionary, Dictionary<TKey, ImmutableArray<TNamespaceOrTypeSymbol>> result) 837static ImmutableArray<TNamespaceOrTypeSymbol> createMembers(object value) 848return ImmutableArray<TNamespaceOrTypeSymbol>.CastUp(builder.ToDowncastedImmutableAndFree<TNamedTypeSymbol>()); 855: ImmutableArray<TNamespaceOrTypeSymbol>.CastUp(ImmutableArray.Create((TNamedTypeSymbol)symbol)); 860internal static Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>> GetTypesFromMemberMap<TKey, TNamespaceOrTypeSymbol, TNamedTypeSymbol> 861(Dictionary<TKey, ImmutableArray<TNamespaceOrTypeSymbol>> map, IEqualityComparer<TKey> comparer) 872var dictionary = new Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>>(capacity, comparer); 876var namedTypes = getOrCreateNamedTypes(entry.Value); 883static ImmutableArray<TNamedTypeSymbol> getOrCreateNamedTypes(ImmutableArray<TNamespaceOrTypeSymbol> members) 890var membersAsNamedTypes = members.As<TNamedTypeSymbol>(); 903return ImmutableArray<TNamedTypeSymbol>.Empty; 917internal static int IndexOf<T>(this ImmutableArray<T> array, T item, IEqualityComparer<T> comparer) 920internal static bool IsSorted<T>(this ImmutableArray<T> array, Comparison<T> comparison) 923internal static bool IsSorted<T>(this ImmutableArray<T> array, IComparer<T>? comparer = null) 938public static bool IsSubsetOf<TElement>(this ImmutableArray<TElement> array, ImmutableArray<TElement> other) 983/// Extension methods that are available on both <see cref="IEnumerable{T}"/> and <see cref="ImmutableArray{T}"/> in System.Linq namespace 984/// are defined in System.Linq namespace to avoid accidental boxing of <see cref="ImmutableArray{T}"/>. 990/// Variant of <see cref="System.Linq.ImmutableArrayExtensions.FirstOrDefault{T}(ImmutableArray{T}, Func{T, bool})"/> 992public static TValue? FirstOrDefault<TValue, TArg>(this ImmutableArray<TValue> array, Func<TValue, TArg, bool> predicate, TArg arg) 1004/// Variant of <see cref="System.Linq.ImmutableArrayExtensions.Single{T}(ImmutableArray{T}, Func{T, bool})"/> 1006public static TValue Single<TValue, TArg>(this ImmutableArray<TValue> array, Func<TValue, TArg, bool> predicate, TArg arg) 1033/// Variant of <see cref="System.Linq.ImmutableArrayExtensions.SequenceEqual{TDerived, TBase}(ImmutableArray{TBase}, ImmutableArray{TDerived}, Func{TBase, TBase, bool})"/>. 1035public static bool SequenceEqual<TElement, TArg>(this ImmutableArray<TElement> array1, ImmutableArray<TElement> array2, TArg arg, Func<TElement, TElement, TArg, bool> predicate) 1066/// Specialization of <see cref="System.Linq.Enumerable.Count{TSource}(IEnumerable{TSource}, Func{TSource, bool})"/> for <see cref="ImmutableArray{T}"/>. 1068public static int Count<T>(this ImmutableArray<T> items, Func<T, bool> predicate) 1084/// Specialization of <see cref="System.Linq.Enumerable.Sum(IEnumerable{int})"/> for <see cref="ImmutableArray{T}"/>. 1086public static int Sum<T>(this ImmutableArray<T> items, Func<T, int> selector) 1096/// Variation of <see cref="System.Linq.Enumerable.Sum(IEnumerable{int})"/> for <see cref="ImmutableArray{T}"/>. 1098public static int Sum<T>(this ImmutableArray<T> items, Func<T, int, int> selector) 1108/// Specialization of <see cref="System.Linq.Enumerable.Concat{TSource}(IEnumerable{TSource}, IEnumerable{TSource})"/> for <see cref="ImmutableArray{T}"/>. 1110public static ImmutableArray<T> Concat<T>(this ImmutableArray<T> first, ImmutableArray<T> second) 1116public static ImmutableArray<T> Concat<T>(this ImmutableArray<T> first, T second) 1122public static ImmutableArray<T> Concat<T>(this ImmutableArray<T> first, ImmutableArray<T> second, ImmutableArray<T> third) 1136public static ImmutableArray<T> Concat<T>(this ImmutableArray<T> first, ImmutableArray<T> second, ImmutableArray<T> third, ImmutableArray<T> fourth) 1152public static ImmutableArray<T> Concat<T>(this ImmutableArray<T> first, ImmutableArray<T> second, ImmutableArray<T> third, ImmutableArray<T> fourth, ImmutableArray<T> fifth) 1168public static ImmutableArray<T> Concat<T>(this ImmutableArray<T> first, ImmutableArray<T> second, ImmutableArray<T> third, ImmutableArray<T> fourth, ImmutableArray<T> fifth, ImmutableArray<T> sixth) 1188public static ImmutableArray<T> Distinct<T>(this ImmutableArray<T> array, IEqualityComparer<T>? comparer = null) 1207var result = (builder.Count == array.Length) ? array : builder.ToImmutable(); 1213/// Variant of <see cref="System.Linq.ImmutableArrayExtensions.Any{T}(ImmutableArray{T}, Func{T, bool})"/>. 1215public static bool Any<T, TArg>(this ImmutableArray<T> array, Func<T, TArg, bool> predicate, TArg arg) 1227/// Variant of <see cref="System.Linq.ImmutableArrayExtensions.All{T}(ImmutableArray{T}, Func{T, bool})"/>. 1229public static bool All<T, TArg>(this ImmutableArray<T> array, Func<T, TArg, bool> predicate, TArg arg) 1248/// Methods that are available on both <see cref="IEnumerable{T}"/> and <see cref="ImmutableArray{T}"/> in System.Collections.Immutable namespace 1249/// are defined in System.Collections.Immutable namespace to avoid accidental boxing of <see cref="ImmutableArray{T}"/>. 1255/// Variant of <see cref="System.Collections.Immutable.ImmutableArray{T}.Contains(T, IEqualityComparer{T})"/> 1257public static bool Contains<T>(this ImmutableArray<T> array, Func<T, bool> predicate) 1261/// Variant of <see cref="System.Collections.Immutable.ImmutableArray.BinarySearch{T}(ImmutableArray{T}, T, IComparer{T}?)"/> 1264public static int BinarySearch<TElement, TValue>(this ImmutableArray<TElement> array, TValue value, Func<TElement, TValue, int> comparer)
src\roslyn\src\Dependencies\Collections\Internal\HashHelpers.cs (1)
40private static readonly ImmutableArray<int> s_primes = ImmutableArray.Create(
src\roslyn\src\Dependencies\Collections\OneOrMany.cs (8)
28public static readonly OneOrMany<T> Empty = new OneOrMany<T>(ImmutableArray<T>.Empty); 31private readonly ImmutableArray<T> _many; 39public OneOrMany(ImmutableArray<T> many) 167: new OneOrMany<T>(ImmutableArray<T>.CastUp(from._many)); 185public ImmutableArray<T> ToImmutable() 206public bool SequenceEqual(ImmutableArray<T> other, IEqualityComparer<T>? comparer = null) 278public static OneOrMany<T> Create<T>(ImmutableArray<T> many) 281public static bool SequenceEqual<T>(this ImmutableArray<T> array, OneOrMany<T> other, IEqualityComparer<T>? comparer = null)
src\roslyn\src\Dependencies\Collections\RoslynImmutableInterlocked.cs (5)
618public static ImmutableArray<T> VolatileRead<T>(ref readonly ImmutableArray<T> location) 620var value = location; 635public static void VolatileWrite<T>(ref ImmutableArray<T> location, ImmutableArray<T> value)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
23/// the scenarios where <see cref="ImmutableArray{T}"/> is applicable, and
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.List.cs (1)
20public static readonly IReadOnlyList<T> Instance = ImmutableArray<T>.Empty;
src\roslyn\src\Dependencies\Collections\TemporaryArray`1.cs (6)
24/// <see cref="ImmutableArray{T}"/>. 179public void AddRange(ImmutableArray<T> items) 299/// Create an <see cref="ImmutableArray{T}"/> with the elements currently held in the temporary array, and clear 302public ImmutableArray<T> ToImmutableAndClear() 310var result = _count switch 3120 => ImmutableArray<T>.Empty,
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilder.cs (27)
61private readonly ImmutableArray<T>.Builder _builder; 83public ImmutableArray<T> ToImmutable() 91public ImmutableArray<T> ToImmutableAndClear() 93ImmutableArray<T> result; 96result = ImmutableArray<T>.Empty; 393public ImmutableArray<T> ToImmutableOrNull() 406public ImmutableArray<U> ToDowncastedImmutable<U>() 411return ImmutableArray<U>.Empty; 423public ImmutableArray<U> ToDowncastedImmutableAndFree<U>() where U : T 425var result = ToDowncastedImmutable<U>(); 433public ImmutableArray<T> ToImmutableAndFree() 437ImmutableArray<T> result; 440result = ImmutableArray<T>.Empty; 613internal Dictionary<K, ImmutableArray<T>> ToDictionary<K>(Func<T, K> keySelector, IEqualityComparer<K>? comparer = null) 618var dictionary1 = new Dictionary<K, ImmutableArray<T>>(1, comparer); 626return new Dictionary<K, ImmutableArray<T>>(comparer); 645var dictionary = new Dictionary<K, ImmutableArray<T>>(accumulator.Count, comparer); 684public void AddRange(ImmutableArray<T> items) 689public void AddRange<U>(ImmutableArray<U> items, Func<U, T> selector) 697public void AddRange(ImmutableArray<T> items, int length) 702public void AddRange(ImmutableArray<T> items, int start, int length) 712public void AddRange<S>(ImmutableArray<S> items) where S : class, T 714AddRange(ImmutableArray<T>.CastUp(items)); 806public ImmutableArray<S> SelectDistinct<S>(Func<T, S> selector) 878public ImmutableArray<TResult> SelectAsArray<TResult>(Func<T, TResult> map) 914public ImmutableArray<TResult> SelectAsArray<TArg, TResult>(Func<T, TArg, TResult> map, TArg arg) 950public ImmutableArray<TResult> SelectAsArrayWithIndex<TArg, TResult>(Func<T, int, TArg, TResult> map, TArg arg)
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilderExtensions.cs (1)
16public static ImmutableArray<T> ToImmutableOrEmptyAndFree<T>(this ArrayBuilder<T>? builder)
Symbols\IMethodSymbolExtensions.cs (1)
49public static ImmutableArray<IMethodSymbol> GetAllMethodSymbolsOfPartialParts(this IMethodSymbol method)
Symbols\INamedTypeSymbolExtensions.cs (25)
44public static ImmutableArray<ITypeParameterSymbol> GetAllTypeParameters(this INamedTypeSymbol? symbol) 50public static ImmutableArray<ITypeSymbol> GetAllTypeArguments(this INamedTypeSymbol? symbol) 190public static ImmutableArray<(INamedTypeSymbol type, ImmutableArray<ISymbol> members)> GetAllUnimplementedMembers( 208static ImmutableArray<ISymbol> GetImplicitlyImplementableMembers(INamedTypeSymbol type, ISymbol within) 260public static ImmutableArray<(INamedTypeSymbol type, ImmutableArray<ISymbol> members)> GetAllUnimplementedMembersInThis( 278public static ImmutableArray<(INamedTypeSymbol type, ImmutableArray<ISymbol> members)> GetAllUnimplementedMembersInThis( 281Func<INamedTypeSymbol, ISymbol, ImmutableArray<ISymbol>> interfaceMemberGetter, 297public static ImmutableArray<(INamedTypeSymbol type, ImmutableArray<ISymbol> members)> GetAllUnimplementedExplicitMembers( 311private static ImmutableArray<ISymbol> GetExplicitlyImplementableMembers(INamedTypeSymbol type, ISymbol within) 338private static ImmutableArray<(INamedTypeSymbol type, ImmutableArray<ISymbol> members)> GetAllUnimplementedMembers( 343Func<INamedTypeSymbol, ISymbol, ImmutableArray<ISymbol>> interfaceMemberGetter, 367var typesToImplement = GetTypesToImplement(classOrStructType, interfacesOrAbstractClasses, allowReimplementation, cancellationToken); 372private static ImmutableArray<INamedTypeSymbol> GetTypesToImplement( 383private static ImmutableArray<INamedTypeSymbol> GetAbstractClassesToImplement( 389private static ImmutableArray<INamedTypeSymbol> GetInterfacesToImplement( 404var alreadyImplementedInterfaces = baseType == null || allowReimplementation 413private static ImmutableArray<ISymbol> GetUnimplementedMembers( 418Func<INamedTypeSymbol, ISymbol, ImmutableArray<ISymbol>> interfaceMemberGetter, 528private static ImmutableArray<ISymbol> GetMembers(INamedTypeSymbol type, ISymbol within) 541public static ImmutableArray<ISymbol> GetOverridableMembers(
Symbols\ISymbolExtensions.cs (12)
141public static ImmutableArray<ISymbol> ExplicitInterfaceImplementations(this ISymbol symbol) 144IEventSymbol @event => ImmutableArray<ISymbol>.CastUp(@event.ExplicitInterfaceImplementations), 145IMethodSymbol method => ImmutableArray<ISymbol>.CastUp(method.ExplicitInterfaceImplementations), 146IPropertySymbol property => ImmutableArray<ISymbol>.CastUp(property.ExplicitInterfaceImplementations), 150public static ImmutableArray<ISymbol> ExplicitOrImplicitInterfaceImplementations(this ISymbol symbol) 175public static ImmutableArray<ISymbol> ImplicitInterfaceImplementations(this ISymbol symbol) 423public static ImmutableArray<IParameterSymbol> GetParameters(this ISymbol? symbol) 431public static ImmutableArray<ITypeParameterSymbol> GetTypeParameters(this ISymbol? symbol) 439public static ImmutableArray<ITypeParameterSymbol> GetAllTypeParameters(this ISymbol? symbol) 452public static ImmutableArray<ITypeSymbol> GetTypeArguments(this ISymbol? symbol) 460public static ImmutableArray<ITypeSymbol> GetAllTypeArguments(this ISymbol symbol) 705var potentialGetAwaiters = semanticModel.LookupSymbols(position,
Symbols\ITypeSymbolExtensions.cs (6)
43public static ImmutableArray<INamedTypeSymbol> GetAllInterfacesIncludingThis(this ITypeSymbol type) 45var allInterfaces = type.AllInterfaces; 446public static ImmutableArray<T> GetAccessibleMembersInThisAndBaseTypes<T>(this ITypeSymbol? containingType, ISymbol within) where T : class, ISymbol 456public static ImmutableArray<T> GetAccessibleMembersInThisAndBaseTypes<T>(this ITypeSymbol? containingType, string memberName, ISymbol within) where T : class, ISymbol 593var allTypeArgs1 = n1.GetAllTypeArguments(); 594var allTypeArgs2 = n2.GetAllTypeArguments();
Symbols\ITypeSymbolExtensions.SubstituteTypesVisitor.cs (1)
72var allTypeArguments = symbol.GetAllTypeArguments();
Symbols\SignatureComparer.cs (4)
108ImmutableArray<IParameterSymbol> parameters1, 109ImmutableArray<IParameterSymbol> parameters2) 118ImmutableArray<IParameterSymbol> parameters1, 119ImmutableArray<IParameterSymbol> parameters2,
Symbols\SymbolEquivalenceComparer.cs (2)
43private readonly ImmutableArray<EquivalenceVisitor> _equivalenceVisitors; 44private readonly ImmutableArray<GetHashCodeVisitor> _getHashCodeVisitors;
Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (8)
76internal 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)
Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (1)
109private static int CombineHashCodes<T>(ImmutableArray<T> array, int currentHash, Func<int, T, int> func)
Microsoft.CodeAnalysis.ExternalAccess.Extensions (3)
Internal\ExtensionMessageHandlerFactory.cs (3)
20public ImmutableArray<IExtensionMessageHandlerWrapper<Document>> CreateDocumentMessageHandlers( 28public ImmutableArray<IExtensionMessageHandlerWrapper<Solution>> CreateWorkspaceMessageHandlers( 36private static ImmutableArray<IExtensionMessageHandlerWrapper<TArgument>> CreateWorkspaceHandlers<TArgument>(
Microsoft.CodeAnalysis.ExternalAccess.HotReload (34)
Api\HotReloadMSBuildWorkspace.cs (6)
32public HotReloadMSBuildWorkspace(ILogger logger, Func<string, (ImmutableArray<MSB.Execution.ProjectInstance> instances, MSB.Evaluation.Project? project)> getBuildProjects) 56public async ValueTask<Solution> UpdateProjectGraphAsync(ImmutableArray<string> projectPaths, CancellationToken cancellationToken) 62var projectInfos = await _loader.LoadInfosAsync( 73internal Solution UpdateSolution(ImmutableArray<ProjectInfo> projectInfos) 135ImmutableArray<DocumentInfo> MapDocuments(ProjectId mappedProjectId, IReadOnlyList<DocumentInfo> documents) 160var documentIds = updatedSolution.GetDocumentIdsWithFilePath(path);
Api\HotReloadMSBuildWorkspace.ProjectFileInfoProvider.cs (4)
18Func<string, (ImmutableArray<MSB.Execution.ProjectInstance> instances, MSB.Evaluation.Project? project)> getBuildProjects, 22public Task<ImmutableArray<ProjectFileInfo>> LoadProjectFileInfosAsync(string projectPath, DiagnosticReportingOptions reportingOptions, CancellationToken cancellationToken) 29return Task.FromResult(ImmutableArray<ProjectFileInfo>.Empty); 43public Task<ImmutableArray<string>> GetProjectOutputPathsAsync(string projectPath, CancellationToken cancellationToken)
Api\HotReloadService.cs (24)
17private sealed class DebuggerService(Func<ValueTask<ImmutableArray<string>>> capabilitiesProvider) : IManagedHotReloadService 19public ValueTask<ImmutableArray<ManagedActiveStatementDebugInfo>> GetActiveStatementsAsync(CancellationToken cancellationToken) 20=> ValueTask.FromResult(ImmutableArray<ManagedActiveStatementDebugInfo>.Empty); 25public ValueTask<ImmutableArray<string>> GetCapabilitiesAsync(CancellationToken cancellationToken) 36public readonly ImmutableArray<byte> ILDelta; 37public readonly ImmutableArray<byte> MetadataDelta; 38public readonly ImmutableArray<byte> PdbDelta; 39public readonly ImmutableArray<int> UpdatedTypes; 40public readonly ImmutableArray<string> RequiredCapabilities; 45ImmutableArray<byte> ilDelta, 46ImmutableArray<byte> metadataDelta, 47ImmutableArray<byte> pdbDelta, 48ImmutableArray<int> updatedTypes, 49ImmutableArray<string> requiredCapabilities) 99public required ImmutableArray<Diagnostic> PersistentDiagnostics { get; init; } 105public required ImmutableArray<(ProjectId project, ImmutableArray<Diagnostic> diagnostics)> TransientDiagnostics { get; init; } 111public required ImmutableArray<Update> ProjectUpdates { get; init; } 116public required ImmutableDictionary<ProjectId, ImmutableArray<ProjectId>> ProjectsToRestart { get; init; } 121public required ImmutableArray<ProjectId> ProjectsToRebuild { get; init; } 126public required ImmutableArray<ProjectId> ProjectsToRedeploy { get; init; } 130(_, _, _) => ValueTask.FromResult(ImmutableArray<ActiveStatementSpan>.Empty); 133private readonly Func<ValueTask<ImmutableArray<string>>> _capabilitiesProvider; 136public HotReloadService(SolutionServices services, Func<ValueTask<ImmutableArray<string>>> capabilitiesProvider)
Microsoft.CodeAnalysis.ExternalAccess.OmniSharp (34)
CodeActions\OmniSharpCodeFixContextFactory.cs (2)
20ImmutableArray<Diagnostic> diagnostics, 21Action<CodeAction, ImmutableArray<Diagnostic>> registerCodeFix,
ExtractClass\IOmniSharpExtractClassOptionsService.cs (3)
11OmniSharpExtractClassOptions? GetExtractClassOptions(Document document, INamedTypeSymbol originalType, ImmutableArray<ISymbol> selectedMembers); 19public ImmutableArray<OmniSharpExtractClassMemberAnalysisResult> MemberAnalysisResults { get; } 25ImmutableArray<OmniSharpExtractClassMemberAnalysisResult> memberAnalysisResults)
ExtractInterface\IOmniSharpExtractInterfaceOptionsService.cs (2)
27public ImmutableArray<ISymbol> IncludedMembers { get; } 32public 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) 22var result = await service.GetNavigableItemsAsync(document, position, cancellationToken).ConfigureAwait(false);
InlineHints\OmniSharpInlineHintsService.cs (7)
17public static async Task<ImmutableArray<OmniSharpInlineHint>> GetInlineHintsAsync(Document document, TextSpan textSpan, OmniSharpInlineHintsOptions options, CancellationToken cancellationToken) 22var hints = await service.GetInlineHintsAsync(document, textSpan, roslynOptions, displayAllOverride: false, cancellationToken).ConfigureAwait(false); 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)
27ImmutableArray<ISymbol> selectedMembers,
Internal\ExtractInterface\OmniSharpExtractInterfaceOptionsService.cs (2)
24ImmutableArray<ISymbol> extractableMembers, 26ImmutableArray<string> conflictingTypeNames,
Internal\PickMembers\OmniSharpPickMembersService.cs (2)
27public PickMembersResult PickMembers(string title, ImmutableArray<ISymbol> members, ImmutableArray<PickMembersOption> options = default, bool selectAll = true)
NavigateTo\OmniSharpNavigateToSearchResult.cs (1)
17ImmutableArray<TextSpan> NameMatchSpans,
NavigateTo\OmniSharpNavigateToSearchService.cs (1)
39public async Task AddResultsAsync(ImmutableArray<INavigateToSearchResult> results, Document? activeDocument, 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,
Rename\OmniSharpRenamer.cs (1)
25var nonConflictSymbolsKeys = nonConflictSymbols is null ? default : nonConflictSymbols.SelectAsArray(s => s.GetSymbolKey(cancellationToken));
Structure\OmniSharpBlockStructure.cs (2)
13public ImmutableArray<OmniSharpBlockSpan> Spans { get; } 15public OmniSharpBlockStructure(ImmutableArray<OmniSharpBlockSpan> spans)
Microsoft.CodeAnalysis.ExternalAccess.RazorCompiler (1)
GeneratorExtensions.cs (1)
35public static ImmutableArray<(string Key, string Value)> GetHostOutputs(this GeneratorRunResult runResult) => runResult.HostOutputs.ToImmutableArray().SelectAsArray(a => (a.Key, a.Value.ToString() ?? ""));
Microsoft.CodeAnalysis.Features (3642)
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 (1)
35private ImmutableArray<(IParameterSymbol parameter, ISymbol fieldOrPropert)> MissingParameters => constructorCandidate.MissingParametersAndMembers;
AddConstructorParametersFromMembers\AddConstructorParametersFromMembersCodeRefactoringProvider.ConstructorCandidate.cs (1)
13ImmutableArray<(IParameterSymbol parameter, ISymbol fieldOrProperty)> MissingParametersAndMembers);
AddConstructorParametersFromMembers\AddConstructorParametersFromMembersCodeRefactoringProvider.cs (6)
45var actions = GetGroupedActions(result.Value); 74private static ImmutableArray<CodeAction> GetGroupedActions(AddConstructorParameterResult result) 132static bool CanHaveRequiredParameters(ImmutableArray<IParameterSymbol> parameters) 138var missingOptionalParameters = constructorCandidate.MissingParametersAndMembers.SelectAsArray( 153public async Task<ImmutableArray<IntentProcessorResult>> ComputeIntentAsync( 164var actions = addConstructorParametersResult.Value.RequiredParameterActions.Concat(addConstructorParametersResult.Value.OptionalParameterActions);
AddConstructorParametersFromMembers\AddConstructorParametersFromMembersCodeRefactoringProvider.State.cs (11)
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( 80ImmutableArray<(IParameterSymbol parameter, ISymbol fieldOrProperty)> parametersForSelectedMembers, 99private static async Task<bool> IsApplicableConstructorAsync(IMethodSymbol constructor, Document document, ImmutableArray<string> parameterNamesForSelectedMembers, CancellationToken cancellationToken) 101var constructorParams = constructor.Parameters; 119private static bool SelectedMembersAlreadyExistAsParameters(ImmutableArray<string> parameterNamesForSelectedMembers, ImmutableArray<IParameterSymbol> constructorParams)
AddFileBanner\AbstractAddFileBannerCodeRefactoringProvider.cs (8)
30protected sealed override ImmutableArray<RefactorAllScope> SupportedRefactorAllScopes { get; } 76var siblingBanner = await TryGetBannerAsync(siblingDocument, siblingRoot, cancellationToken).ConfigureAwait(false); 94var banner = bannerService.GetFileBanner(root); 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\AbstractAddFileBannerNewDocumentFormattingProvider.cs (1)
46var fileBanner = bannerService.GetFileBanner(hintSyntaxRoot);
AddFileBanner\AddFileBannerHelpers.cs (4)
28var sourceBanner = bannerService.GetFileBanner(fromRoot); 34var destinationBanner = bannerService.GetFileBanner(destinationRoot); 48private static ImmutableArray<SyntaxTrivia> UpdateEmbeddedFileNames( 51ImmutableArray<SyntaxTrivia> banner,
AddImport\AbstractAddImportCodeFixProvider.cs (4)
55var diagnostics = context.Diagnostics; 66var packageSources = installerService?.IsEnabled(document.Project.Id) == true 78var fixesForDiagnostic = await addImportService.GetFixesForDiagnosticsAsync( 84var codeActions = addImportService.GetCodeActionsForFixes(document, fixes, installerService, MaxResults);
AddImport\AbstractAddImportFeatureService.cs (37)
65public async Task<ImmutableArray<AddImportFixData>> GetFixesAsync( 68ImmutableArray<PackageSource> packageSources, CancellationToken cancellationToken) 73var result = await client.TryInvokeAsync<IRemoteMissingImportDiscoveryService, ImmutableArray<AddImportFixData>>( 89private async Task<ImmutableArray<AddImportFixData>> GetFixesInCurrentProcessAsync( 92ImmutableArray<PackageSource> packageSources, CancellationToken cancellationToken) 108var allSymbolReferences = await FindResultsAsync( 133private async Task<ImmutableArray<Reference>> FindResultsAsync( 141ImmutableArray<PackageSource> packageSources, 154var exactReferences = await FindResultsAsync(projectToAssembly, referenceToCompilation, project, maxResults, finder, exact: true, cancellationToken).ConfigureAwait(false); 164var fuzzyReferences = await FindResultsAsync(projectToAssembly, referenceToCompilation, project, maxResults, finder, exact: false, cancellationToken).ConfigureAwait(false); 171private async Task<ImmutableArray<Reference>> FindResultsAsync( 236await ProducerConsumer<ImmutableArray<SymbolReference>>.RunParallelAsync( 244var references = await finder.FindInSourceSymbolsInProjectAsync( 277var newReferences = GetUnreferencedMetadataReferences(project, seenReferences); 287await ProducerConsumer<ImmutableArray<SymbolReference>>.RunParallelAsync( 301var references = await finder.FindInMetadataSymbolsAsync( 323private static ImmutableArray<(Project, PortableExecutableReference)> GetUnreferencedMetadataReferences( 353IAsyncEnumerable<ImmutableArray<SymbolReference>> reader, 356await foreach (var symbolReferences in reader.ConfigureAwait(false)) 476private static void AddRange(ConcurrentQueue<Reference> allSymbolReferences, ImmutableArray<SymbolReference> proposedReferences) 491public async Task<ImmutableArray<(Diagnostic Diagnostic, ImmutableArray<AddImportFixData> Fixes)>> GetFixesForDiagnosticsAsync( 492Document document, TextSpan span, ImmutableArray<Diagnostic> diagnostics, int maxResultsPerDiagnostic, 494ImmutableArray<PackageSource> packageSources, CancellationToken cancellationToken) 499var result = new FixedSizeArrayBuilder<(Diagnostic, ImmutableArray<AddImportFixData>)>(diagnostics.Length); 503var fixes = await GetFixesAsync( 514public async Task<ImmutableArray<AddImportFixData>> GetUniqueFixesAsync( 515Document document, TextSpan span, ImmutableArray<string> diagnosticIds, 517ImmutableArray<PackageSource> packageSources, CancellationToken cancellationToken) 522var result = await client.TryInvokeAsync<IRemoteMissingImportDiscoveryService, ImmutableArray<AddImportFixData>>( 538private async Task<ImmutableArray<AddImportFixData>> GetUniqueFixesAsyncInCurrentProcessAsync( 541ImmutableArray<string> diagnosticIds, 544ImmutableArray<PackageSource> packageSources, 550var diagnostics = semanticModel.GetDiagnostics(span, cancellationToken) 562var fixesForDiagnostics = await getFixesForDiagnosticsTask.ConfigureAwait(false); 579public ImmutableArray<CodeAction> GetCodeActionsForFixes( 580Document 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)
25public sealed override ImmutableArray<string> Tags { get; } 37private readonly ImmutableArray<TextChange> _textChanges; 42ImmutableArray<string> additionalTags)
AddImport\CodeActions\AssemblyReferenceCodeAction.cs (2)
36protected override Task<ImmutableArray<CodeActionOperation>> ComputeOperationsAsync(IProgress<CodeAnalysisProgress> progress, CancellationToken cancellationToken) 39private async Task<ImmutableArray<CodeActionOperation>> ComputeOperationsAsync(bool isPreview, CancellationToken cancellationToken)
AddImport\CodeActions\InstallWithPackageManagerCodeAction.cs (1)
25protected 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)
22Task<ImmutableArray<AddImportFixData>> GetFixesAsync( 25ImmutableArray<PackageSource> packageSources, CancellationToken cancellationToken); 31Task<ImmutableArray<(Diagnostic Diagnostic, ImmutableArray<AddImportFixData> Fixes)>> GetFixesForDiagnosticsAsync( 32Document document, TextSpan span, ImmutableArray<Diagnostic> diagnostics, int maxResultsPerDiagnostic, 34ImmutableArray<PackageSource> packageSources, CancellationToken cancellationToken); 40ImmutableArray<CodeAction> GetCodeActionsForFixes( 41Document document, ImmutableArray<AddImportFixData> fixes, 47/// ImmutableArray{PackageSource}, CancellationToken)"/> except it only returns fix data when there is a single 50Task<ImmutableArray<AddImportFixData>> GetUniqueFixesAsync( 51Document document, TextSpan span, ImmutableArray<string> diagnosticIds, 53ImmutableArray<PackageSource> packageSources, CancellationToken cancellationToken);
AddImport\PackageSourceHelper.cs (1)
17public static IEnumerable<(string sourceName, string sourceUrl)> GetPackageSources(ImmutableArray<PackageSource> packageSources)
AddImport\References\AssemblyReference.cs (1)
29var textChanges = await GetTextChangesAsync(document, node, cleanDocument, 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 (6)
30protected abstract ImmutableArray<string> GetTags(Document document); 48private async Task<ImmutableArray<TextChange>> GetTextChangesAsync( 91var tags = GetTags(document); 109var textChanges = await GetTextChangesAsync( 118Document document, ImmutableArray<TextChange> textChanges, 119string description, ImmutableArray<string> tags, CodeActionPriority priority);
AddImport\Remote\IRemoteMissingImportDiscoveryService.cs (8)
19ValueTask<ImmutableArray<PackageResult>> FindPackagesAsync(RemoteServiceCallbackId callbackId, string source, TypeQuery typeQuery, NamespaceQuery namespaceQuery, CancellationToken cancellationToken); 20ValueTask<ImmutableArray<PackageWithAssemblyResult>> FindPackagesWithAssemblyAsync(RemoteServiceCallbackId callbackId, string source, string name, CancellationToken cancellationToken); 21ValueTask<ImmutableArray<ReferenceAssemblyResult>> FindReferenceAssembliesAsync(RemoteServiceCallbackId callbackId, TypeQuery typeQuery, NamespaceQuery namespaceQuery, CancellationToken cancellationToken); 24ValueTask<ImmutableArray<AddImportFixData>> GetFixesAsync( 26AddImportOptions options, ImmutableArray<PackageSource> packageSources, CancellationToken cancellationToken); 28ValueTask<ImmutableArray<AddImportFixData>> GetUniqueFixesAsync( 29Checksum solutionChecksum, RemoteServiceCallbackId callbackId, DocumentId id, TextSpan span, ImmutableArray<string> diagnosticIds, 30AddImportOptions 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 (2)
24protected override async Task<ImmutableArray<ISymbol>> FindDeclarationsAsync( 27var declarations = await DeclarationFinder.FindAllDeclarationsWithNormalQueryAsync(
AddImport\SearchScopes\MetadataSymbolsSearchScope.cs (2)
35protected override async Task<ImmutableArray<ISymbol>> FindDeclarationsAsync( 43var declarations = await info.FindAsync(
AddImport\SearchScopes\SearchScope.cs (5)
34protected abstract Task<ImmutableArray<ISymbol>> FindDeclarationsAsync(SymbolFilter filter, SearchQuery query, CancellationToken cancellationToken); 38public async Task<ImmutableArray<SymbolResult<ISymbol>>> FindDeclarationsAsync( 52var symbols = await FindDeclarationsAsync(filter, query, cancellationToken).ConfigureAwait(false); 63var symbols = await FindDeclarationsAsync(filter, query, cancellationToken).ConfigureAwait(false); 73var symbols = await FindDeclarationsAsync(filter, query, cancellationToken).ConfigureAwait(false);
AddImport\SearchScopes\SourceSymbolsProjectSearchScope.cs (2)
29protected override async Task<ImmutableArray<ISymbol>> FindDeclarationsAsync( 45var declarations = await info.FindAsync(
AddImport\SymbolReferenceFinder_PackageAssemblySearch.cs (2)
136var results = await _symbolSearchService.FindReferenceAssembliesAsync( 165var results = await _symbolSearchService.FindPackagesAsync(
AddImport\SymbolReferenceFinder.cs (48)
39private readonly ImmutableArray<PackageSource> _packageSources; 56ImmutableArray<PackageSource> packageSources, 94internal Task<ImmutableArray<SymbolReference>> FindInAllSymbolsInStartingProjectAsync(bool exact, CancellationToken cancellationToken) 97internal Task<ImmutableArray<SymbolReference>> FindInSourceSymbolsInProjectAsync(ConcurrentDictionary<Project, AsyncLazy<IAssemblySymbol?>> projectToAssembly, Project project, bool exact, CancellationToken cancellationToken) 100internal Task<ImmutableArray<SymbolReference>> FindInMetadataSymbolsAsync(IAssemblySymbol assembly, Project assemblyProject, PortableExecutableReference metadataReference, bool exact, CancellationToken cancellationToken) 103private async Task<ImmutableArray<SymbolReference>> DoAsync(SearchScope searchScope, CancellationToken cancellationToken) 114using var _1 = ArrayBuilder<Task<ImmutableArray<SymbolReference>>>.GetInstance(out var tasks); 142var taskResult = await task.ConfigureAwait(false); 149private ImmutableArray<SymbolReference> DeDupeAndSortReferences(ImmutableArray<SymbolReference> allReferences) 175private async Task<ImmutableArray<SymbolReference>> GetReferencesForMatchingTypesAsync( 193var symbols = await searchScope.FindDeclarationsAsync(name, nameNode, SymbolFilter.Type, cancellationToken).ConfigureAwait(false); 198var attributeSymbols = await searchScope.FindDeclarationsAsync( 205var typeSymbols = OfType<ITypeSymbol>(symbols); 211var accessibleTypeSymbols = typeSymbols.WhereAsArray( 219var typesContainedDirectlyInNamespaces = accessibleTypeSymbols.WhereAsArray(s => s.Symbol.ContainingSymbol is INamespaceSymbol); 220var typesContainedDirectlyInTypes = accessibleTypeSymbols.WhereAsArray(s => s.Symbol.ContainingType != null); 222var namespaceReferences = GetNamespaceSymbolReferences(searchScope, 225var typeReferences = typesContainedDirectlyInTypes.SelectAsArray( 260private async Task<ImmutableArray<SymbolReference>> GetReferencesForMatchingNamespacesAsync( 271var symbols = await searchScope.FindDeclarationsAsync(name, nameNode, SymbolFilter.Namespace, cancellationToken).ConfigureAwait(false); 272var namespaceSymbols = OfType<INamespaceSymbol>(symbols); 273var containingNamespaceSymbols = OfType<INamespaceSymbol>(symbols).SelectAsArray(s => s.WithSymbol(s.Symbol.ContainingNamespace)); 287private async Task<ImmutableArray<SymbolReference>> GetReferencesForMatchingFieldsAndPropertiesAsync( 316var symbolResults = await searchScope.FindDeclarationsAsync( 320var namedTypeSymbols = OfType<INamedTypeSymbol>(symbolResults); 322var namespaceResults = 351private async Task<ImmutableArray<SymbolReference>> GetReferencesForMatchingExtensionMembersAsync( 370var symbols = await searchScope.FindDeclarationsAsync( 373var classicExtensionMethods = OfType<IMethodSymbol>(symbols) 376var modernExtensionMembers = symbols 381var allExtensionNamespaces = classicExtensionNamespaces.Concat(modernExtensionNamespaces).ToImmutableArray(); 408private ImmutableArray<SymbolResult<IMethodSymbol>> GetViableExtensionMethodsWorker( 409ImmutableArray<SymbolResult<IMethodSymbol>> methodSymbols) 421private async Task<ImmutableArray<SymbolReference>> GetReferencesForCollectionInitializerMethodsAsync( 442private async Task<ImmutableArray<SymbolReference>> GetReferencesForQueryPatternsAsync( 466private async Task<ImmutableArray<SymbolReference>> GetReferencesForGetAwaiterAsync( 488private async Task<ImmutableArray<SymbolReference>> GetReferencesForGetEnumeratorAsync( 510private async Task<ImmutableArray<SymbolReference>> GetReferencesForGetAsyncEnumeratorAsync( 532private async Task<ImmutableArray<SymbolReference>> GetReferencesForDeconstructAsync( 554private async Task<ImmutableArray<SymbolReference>> GetReferencesForExtensionMethodAsync( 560var symbols = await searchScope.FindDeclarationsAsync( 566var methodSymbols = OfType<IMethodSymbol>(symbols); 567var namespaceSymbols = methodSymbols.SelectAsArray( 641private ImmutableArray<SymbolReference> GetNamespaceSymbolReferences( 642SearchScope scope, ImmutableArray<SymbolResult<INamespaceSymbol>> namespaces) 658private static ImmutableArray<SymbolResult<T>> OfType<T>(ImmutableArray<SymbolResult<ISymbol>> symbols) where T : ISymbol
AddMissingReference\AbstractAddMissingReferenceCodeFixProvider.cs (4)
37var addPackageCodeActions = await GetAddPackagesCodeActionsAsync(context, assemblyNames).ConfigureAwait(false); 38var addReferenceCodeActions = await GetAddReferencesCodeActionsAsync(context, uniqueIdentities).ConfigureAwait(false); 44private static async Task<ImmutableArray<CodeAction>> GetAddReferencesCodeActionsAsync(CodeFixContext context, ISet<AssemblyIdentity> uniqueIdentities) 65var assemblyIds = compilation.GetUnreferencedAssemblyIdentities(diagnostic);
AddMissingReference\AddMissingReferenceCodeAction.cs (2)
27public override ImmutableArray<string> Tags => RequiresNonDocumentChangeTags; 73protected override Task<ImmutableArray<CodeActionOperation>> ComputeOperationsAsync(
AddPackage\AbstractAddPackageCodeFixProvider.cs (5)
29protected async Task<ImmutableArray<CodeAction>> GetAddPackagesCodeActionsAsync( 57var sortedPackages = await FindMatchingPackagesAsync( 72private static async Task<ImmutableArray<PackageWithAssemblyResult>> FindMatchingPackagesAsync( 83var packagesWithAssembly = await searchService.FindPackagesWithAssemblyAsync( 90var sortedPackages = result.ToImmutableArray().Sort();
AddPackage\AbstractAddSpecificPackageCodeFixProvider.cs (1)
38var addPackageCodeActions = await GetAddPackagesCodeActionsAsync(context, assemblyNames).ConfigureAwait(false);
AddPackage\InstallPackageDirectlyCodeAction.cs (1)
33protected 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)
22protected override Task<ImmutableArray<CodeActionOperation>> ComputeOperationsAsync(
AddPackage\ParentInstallPackageCodeAction.cs (5)
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( 86var installedVersions = installerService.GetInstalledVersions(fixData.PackageName).NullToEmpty();
BraceCompletion\IBraceCompletionService.cs (2)
73internal readonly struct BraceCompletionResult(ImmutableArray<TextChange> textChanges, LinePosition caretLocation) 79public ImmutableArray<TextChange> TextChanges { get; } = textChanges;
BraceMatching\AbstractDirectiveTriviaBraceMatcher.cs (2)
25protected abstract ImmutableArray<TDirectiveTriviaSyntax> GetMatchingConditionalDirectives(TDirectiveTriviaSyntax directive, CancellationToken cancellationToken); 47var matchingDirectives = GetMatchingConditionalDirectives(directive, cancellationToken);
BraceMatching\BraceMatchingService.cs (1)
22private readonly ImmutableArray<Lazy<IBraceMatcher, LanguageMetadata>> _braceMatchers = [.. braceMatchers];
CallHierarchy\AbstractCallHierarchyService.cs (13)
29var searchDescriptors = await CreateSearchDescriptorsAsync(symbol, project, cancellationToken).ConfigureAwait(false); 39public async Task<ImmutableArray<CallHierarchySearchResult>> SearchIncomingCallsAsync( 63public async Task<ImmutableArray<CallHierarchySearchResult>> SearchOutgoingCallsAsync( 92private static async Task<ImmutableArray<CallHierarchySearchDescriptor>> CreateSearchDescriptorsAsync( 169private async Task<ImmutableArray<CallHierarchySearchResult>> SearchCallersAsync( 179private async Task<ImmutableArray<CallHierarchySearchResult>> SearchCallsToOverridesAsync( 198private async Task<ImmutableArray<CallHierarchySearchResult>> SearchImplementationsAsync( 208private async Task<ImmutableArray<CallHierarchySearchResult>> SearchOverridesAsync( 218private async Task<ImmutableArray<CallHierarchySearchResult>> SearchOutgoingCallsAsync( 233var operationRoots = await GetOperationRootsAsync(syntaxReference, semanticModel, cancellationToken).ConfigureAwait(false); 272private async Task<ImmutableArray<CallHierarchySearchResult>> CreateCallerResultsAsync( 305private async Task<ImmutableArray<CallHierarchySearchResult>> CreateSourceDeclarationResultsAsync( 341private async Task<ImmutableArray<IOperation>> GetOperationRootsAsync(
CallHierarchy\CallHierarchyItemDescriptor.cs (1)
15ImmutableArray<CallHierarchySearchDescriptor> SupportedSearchDescriptors);
CallHierarchy\CallHierarchyItemSearchResult.cs (1)
11ImmutableArray<Location> ReferenceLocations);
CallHierarchy\ICallHierarchyService.cs (2)
16Task<ImmutableArray<CallHierarchySearchResult>> SearchIncomingCallsAsync( 22Task<ImmutableArray<CallHierarchySearchResult>> SearchOutgoingCallsAsync(
ChangeSignature\AbstractChangeSignatureCodeRefactoringProvider.cs (1)
31var actions = await service.GetChangeSignatureCodeActionAsync(document, span, cancellationToken).ConfigureAwait(false);
ChangeSignature\AbstractChangeSignatureService.cs (30)
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( 259var symbols = await FindChangeSignatureReferencesAsync( 418var changedDocuments = await ProducerConsumer<(DocumentId documentId, SyntaxNode newRoot)>.RunParallelAsync( 470protected ImmutableArray<IUnifiedArgumentSyntax> PermuteArguments( 472ImmutableArray<IUnifiedArgumentSyntax> arguments, 477var declarationParameters = GetParameters(declarationSymbol); 478var declarationParametersToPermute = GetParametersToPermute(arguments, declarationParameters, isReducedExtensionMethod); 583var realParameters = GetParameters(declarationSymbol); 586var originalConfigurationParameters = updatedSignature.OriginalConfiguration.ToListOfParameters(); 587var updatedConfigurationParameters = updatedSignature.UpdatedConfiguration.ToListOfParameters(); 591var originalConfigurationParametersWithExtraParameters = originalConfigurationParameters.AddRange(bonusParameters.Select(p => new ExistingParameter(p))); 592var updatedConfigurationParametersWithExtraParameters = updatedConfigurationParameters.AddRange(bonusParameters.Select(p => new ExistingParameter(p))); 602private static ImmutableArray<IParameterSymbol> GetParametersToPermute( 603ImmutableArray<IUnifiedArgumentSyntax> arguments, 604ImmutableArray<IParameterSymbol> originalParameters, 680protected (ImmutableArray<T> parameters, ImmutableArray<SyntaxToken> separators) UpdateDeclarationBase<T>( 685var originalParameters = updatedSignature.OriginalConfiguration.ToListOfParameters(); 686var reorderedParameters = updatedSignature.UpdatedConfiguration.ToListOfParameters(); 746protected ImmutableArray<SyntaxToken> GetSeparators<T>(SeparatedSyntaxList<T> arguments, int numSeparatorsToSkip) where T : SyntaxNode 779var updatedParameters = signaturePermutation.UpdatedConfiguration.ToListOfParameters(); 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 (2)
40protected override async ValueTask<ImmutableArray<ISymbol>> DetermineCascadedSymbolsAsync( 58var cascaded = await changeSignatureService.DetermineCascadedSymbolsFromDelegateInvokeAsync(
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 (8)
27var originalParameterList = originalConfiguration.ToListOfParameters(); 28var updatedParameterList = updatedConfiguration.ToListOfParameters(); 62var originalListOfParameters = OriginalConfiguration.ToListOfParameters(); 63var updatedListOfParameters = UpdatedConfiguration.ToListOfParameters(); 105private static bool AnyParametersReordered(ImmutableArray<Parameter> originalListOfParameters, ImmutableArray<Parameter> updatedListOfParameters) 107var originalListWithoutRemovedOrAdded = originalListOfParameters.WhereAsArray(updatedListOfParameters.Contains); 108var updatedListWithoutRemovedOrAdded = updatedListOfParameters.WhereAsArray(originalListOfParameters.Contains);
ClassifiedSpansAndHighlightSpan.cs (2)
11ImmutableArray<ClassifiedSpan> classifiedSpans, 16public readonly ImmutableArray<ClassifiedSpan> ClassifiedSpans = classifiedSpans;
ClassifiedSpansAndHighlightSpanFactory.cs (3)
63var classifiedSpans = await GetClassifiedSpansAsync( 68private static async Task<ImmutableArray<ClassifiedSpan>> GetClassifiedSpansAsync( 73var result = await ClassifierHelper.GetClassifiedSpansAsync(
CodeFixes\AbstractConfigurationActionWithNestedActions.cs (1)
17protected AbstractConfigurationActionWithNestedActions(ImmutableArray<CodeAction> nestedActions, string title)
CodeFixes\CodeFixCollection.cs (8)
18ImmutableArray<CodeFix> fixes, 20ImmutableArray<FixAllScope> supportedScopes, 21ImmutableArray<Diagnostic> diagnostics) 25public ImmutableArray<CodeFix> Fixes { get; } = fixes.NullToEmpty(); 31public ImmutableArray<FixAllScope> SupportedScopes { get; } = supportedScopes.NullToEmpty(); 36public ImmutableArray<Diagnostic> Diagnostics { get; } = ThrowIfDefaultOrEmpty(diagnostics); 38private static ImmutableArray<Diagnostic> ThrowIfDefaultOrEmpty(ImmutableArray<Diagnostic> diagnostics)
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)
29private static readonly ImmutableArray<bool> s_boolValues = [true, false]; 55public Task<ImmutableArray<CodeFix>> GetFixesAsync(TextDocument document, TextSpan span, IEnumerable<Diagnostic> diagnostics, CancellationToken cancellationToken) 58public Task<ImmutableArray<CodeFix>> GetFixesAsync(Project project, IEnumerable<Diagnostic> diagnostics, CancellationToken cancellationToken) 61private static ImmutableArray<CodeFix> GetConfigurations(Project project, IEnumerable<Diagnostic> diagnostics) 67var 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)
12private sealed class TopLevelConfigureSeverityCodeAction(Diagnostic diagnostic, ImmutableArray<CodeAction> nestedActions) : AbstractConfigurationActionWithNestedActions(nestedActions, string.Format(FeaturesResources.Configure_0_severity, diagnostic.Id))
CodeFixes\FixAllOccurrences\IFixMultipleOccurrencesService.cs (2)
20ImmutableDictionary<Document, ImmutableArray<Diagnostic>> diagnosticsToFix, 35ImmutableDictionary<Project, ImmutableArray<Diagnostic>> diagnosticsToFix,
CodeFixes\ICodeFixProviderFactory.cs (1)
14ImmutableArray<CodeFixProvider> GetFixers();
CodeFixes\Service\CodeFixService.cs (53)
42private readonly ImmutableArray<Lazy<CodeFixProvider, CodeChangeProviderMetadata>> _fixers; 43private readonly Lazy<ImmutableDictionary<string, ImmutableArray<Lazy<CodeFixProvider, CodeChangeProviderMetadata>>>> _fixersPerLanguageMap; 45private readonly ConditionalWeakTable<IReadOnlyList<AnalyzerReference>, ImmutableDictionary<DiagnosticId, ImmutableArray<CodeFixProvider>>> _projectFixersMap = new(); 48private readonly Lazy<ImmutableDictionary<LanguageKind, Lazy<ImmutableArray<IConfigurationFixProvider>>>> _configurationProvidersMap; 49private readonly ImmutableArray<Lazy<IErrorLoggerService>> _errorLoggers; 51private ImmutableDictionary<LanguageKind, Lazy<ImmutableDictionary<DiagnosticId, ImmutableArray<CodeFixProvider>>>>? _lazyWorkspaceFixersMap; 54private ImmutableDictionary<CodeFixProvider, ImmutableArray<DiagnosticId>> _fixerToFixableIdsMap = ImmutableDictionary<CodeFixProvider, ImmutableArray<DiagnosticId>>.Empty; 86using var _ = PooledDictionary<DiagnosticId, ImmutableArray<CodeFixProvider>>.GetInstance(out var builder); 100ImmutableArray<DiagnosticData> allDiagnostics; 116var copilotDiagnostics = await GetCopilotDiagnosticsAsync(document, range, priority, cancellationToken).ConfigureAwait(false); 192ImmutableArray<DiagnosticData> diagnostics; 205var copilotDiagnostics = await GetCopilotDiagnosticsAsync(document, range, priority, cancellationToken).ConfigureAwait(false); 248private static async Task<ImmutableArray<DiagnosticData>> GetCopilotDiagnosticsAsync( 261SourceText text, ImmutableArray<DiagnosticData> diagnostics) 290ImmutableArray<DiagnosticData> diagnostics; 359private bool TryPopulateWorkspaceFixersMap(TextDocument document, Dictionary<DiagnosticId, ImmutableArray<CodeFixProvider>> fixerMap) 374var filteredFixers = ProjectCodeFixProvider.FilterExtensions(document, fixers, GetExtensionInfo); 444using var _1 = PooledDictionary<DiagnosticId, ImmutableArray<CodeFixProvider>>.GetInstance(out var fixerMap); 469if (hasAnyProjectFixer && projectFixersMap.TryGetValue(diagnosticId, out var projectFixers)) 475if (hasAnySharedFixer && fixerMap.TryGetValue(diagnosticId, out var workspaceFixers)) 493var allFixers = fixerToRangesAndDiagnostics.Keys.ToImmutableArray(); 586ImmutableArray<CodeFixProvider> fixers, 656private static async Task<ImmutableArray<CodeFix>> GetCodeFixesAsync( 658ImmutableArray<Diagnostic> diagnostics, 694static ImmutableArray<Diagnostic> FilterApplicableDiagnostics( 695ImmutableArray<Diagnostic> applicableDiagnostics, 761var fixes = await provider.GetFixesAsync(document, diagnosticsSpan, dxs, cancellationToken).ConfigureAwait(false); 778Func<ImmutableArray<Diagnostic>, Task<ImmutableArray<CodeFix>>> getFixes, 784var allDiagnostics = await diagnosticsWithSameSpan 787var diagnostics = allDiagnostics.WhereAsArray(hasFix); 794var fixes = await extensionManager.PerformFunctionAsync(fixer, 806var supportedScopes = ImmutableArray<FixAllScope>.Empty; 862private ImmutableArray<DiagnosticId> GetFixableDiagnosticIds(CodeFixProvider fixer, IExtensionManager? extensionManager) 889private static ImmutableArray<string> GetAndTestFixableDiagnosticIds(CodeFixProvider codeFixProvider) 891var ids = codeFixProvider.FixableDiagnosticIds; 903private ImmutableDictionary<LanguageKind, Lazy<ImmutableDictionary<DiagnosticId, ImmutableArray<CodeFixProvider>>>> GetFixerPerLanguageMap( 906var fixerMap = ImmutableDictionary.Create<LanguageKind, Lazy<ImmutableDictionary<DiagnosticId, ImmutableArray<CodeFixProvider>>>>(); 910var lazyMap = new Lazy<ImmutableDictionary<DiagnosticId, ImmutableArray<CodeFixProvider>>>(() => 941private static ImmutableDictionary<LanguageKind, Lazy<ImmutableArray<IConfigurationFixProvider>>> GetConfigurationProvidersPerLanguageMap( 946var configurationFixerMap = ImmutableDictionary.CreateBuilder<LanguageKind, Lazy<ImmutableArray<IConfigurationFixProvider>>>(); 949var lazyConfigurationFixers = new Lazy<ImmutableArray<IConfigurationFixProvider>>(() => GetConfigurationFixProviders(lazyFixers)); 955static ImmutableArray<IConfigurationFixProvider> GetConfigurationFixProviders(ImmutableArray<Lazy<IConfigurationFixProvider, CodeChangeProviderMetadata>> languageKindAndFixers) 993private ImmutableDictionary<DiagnosticId, ImmutableArray<CodeFixProvider>> GetProjectFixers(TextDocument document) 997? ImmutableDictionary<DiagnosticId, ImmutableArray<CodeFixProvider>>.Empty 1001private ImmutableDictionary<DiagnosticId, ImmutableArray<CodeFixProvider>> ComputeProjectFixers(TextDocument document) 1006var codeFixProviders = ProjectCodeFixProvider.GetExtensions(document, GetExtensionInfo); 1009var fixableIds = this.GetFixableDiagnosticIds(fixer, extensionManager); 1024var kinds = EnumArrayConverter.FromStringArray<TextDocumentKind>(attribute.DocumentKinds); 1035ImmutableArray<CodeFixProvider> allFixers,
CodeFixes\Service\CodeFixService.FixAllDiagnosticProvider.cs (6)
40private ImmutableArray<DiagnosticData> Filter(ImmutableArray<DiagnosticData> diagnostics) 46var diagnostics = Filter(await service.GetDiagnosticsForIdsAsync( 55var diagnostics = Filter(await service.GetDiagnosticsForSpanAsync( 66var diagnostics = Filter(await service.GetDiagnosticsForIdsAsync( 75var diagnostics = Filter(await service.GetProjectDiagnosticsForIdsAsync(
CodeFixes\Service\CodeFixService.FixAllPredefinedDiagnosticProvider.cs (2)
17private readonly ImmutableArray<Diagnostic> _diagnostics; 19public FixAllPredefinedDiagnosticProvider(ImmutableArray<Diagnostic> diagnostics)
CodeFixes\Service\CodeFixService.ProjectCodeFixProvider.cs (2)
15protected override ImmutableArray<string> GetLanguages(ExportCodeFixProviderAttribute exportAttribute) 18protected override bool TryGetExtensionsFromReference(AnalyzerReference reference, out ImmutableArray<CodeFixProvider> extensions)
CodeFixes\Service\ICodeFixService.cs (2)
37public static Task<ImmutableArray<CodeFixCollection>> GetFixesAsync(this ICodeFixService service, TextDocument document, TextSpan range, CancellationToken cancellationToken) 40public static Task<ImmutableArray<CodeFixCollection>> GetFixesAsync(this ICodeFixService service, TextDocument document, TextSpan textSpan, CodeActionRequestPriority? priority, CancellationToken cancellationToken)
CodeFixes\Suppression\AbstractSuppressionBatchFixAllProvider.cs (17)
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, 92var source = documentsAndDiagnosticsToFixMap.WhereAsArray(static (kvp, _) => !kvp.Value.IsDefaultOrEmpty, arg: false); 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)
33protected sealed override async Task<ImmutableArray<CodeActionOperation>> ComputeOperationsAsync(
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.cs (8)
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); 156private async Task<ImmutableArray<CodeFix>> GetSuppressionsAsync( 169public async Task<ImmutableArray<CodeFix>> GetFixesAsync( 185private async Task<ImmutableArray<CodeFix>> GetSuppressionsAsync( 307var decls = analyzerDriverService.ComputeDeclarationsInSpan(semanticModel, span, cancellationToken);
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 (6)
29ImmutableArray<IPragmaBasedCodeAction> pragmaActions, 30ImmutableArray<Diagnostic> pragmaDiagnostics, 44ImmutableArray<IPragmaBasedCodeAction> pragmaActions, 45ImmutableArray<Diagnostic> diagnostics, 88var newSuppressionFixes = await suppressionFixProvider.GetFixesAsync(currentDocument, currentDiagnosticSpan, [diagnostic], cancellationToken).ConfigureAwait(false); 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 (2)
27Document document, ImmutableArray<Diagnostic> diagnostics, 37var pragmaSuppressions = await _suppressionFixProvider.GetPragmaSuppressionsAsync(
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.RemoveSuppressionCodeAction.BatchFixer.cs (9)
35Document document, ImmutableArray<Diagnostic> diagnostics, 46var removeSuppressionFixes = await _suppressionFixProvider.GetFixesAsync( 85Project project, ImmutableArray<Diagnostic> diagnostics, 91var removeSuppressionFixes = await _suppressionFixProvider.GetFixesAsync( 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)
16public static readonly ImmutableArray<string> SynthesizedExternalSourceDiagnosticCustomTags = [SynthesizedExternalSourceDiagnosticTag]; 83public static bool HasCustomTag(ImmutableArray<string> customTags, string tagToFind)
CodeFixes\Suppression\TopLevelSuppressionCodeAction.cs (2)
10internal sealed class TopLevelSuppressionCodeAction(Diagnostic diagnostic, ImmutableArray<NestedSuppressionCodeAction> nestedActions) : AbstractConfigurationActionWithNestedActions(ImmutableArray<CodeAction>.CastUp(nestedActions), string.Format(FeaturesResources.Suppress_0, diagnostic.Id))
CodeFixes\Suppression\WrapperCodeFixProvider.cs (7)
17private readonly ImmutableArray<string> _originalDiagnosticIds = [.. diagnosticIds.Distinct()]; 20public override ImmutableArray<string> FixableDiagnosticIds => _originalDiagnosticIds; 26var documentDiagnostics = diagnostics.WhereAsArray(d => d.Location.IsInSource); 29var suppressionFixes = await SuppressionFixProvider.GetFixesAsync(context.Document, context.Span, documentDiagnostics, context.CancellationToken).ConfigureAwait(false); 33var projectDiagnostics = diagnostics.WhereAsArray(d => !d.Location.IsInSource); 36var suppressionFixes = await SuppressionFixProvider.GetFixesAsync(context.Document.Project, projectDiagnostics, context.CancellationToken).ConfigureAwait(false); 41private static void RegisterSuppressionFixes(CodeFixContext context, ImmutableArray<CodeFix> suppressionFixes)
CodeFixesAndRefactorings\AbstractFixAllCodeAction.cs (1)
68protected sealed override Task<ImmutableArray<CodeActionOperation>> ComputeOperationsAsync(
CodeFixesAndRefactorings\AbstractFixAllGetFixesService.cs (5)
37public async Task<ImmutableArray<CodeActionOperation>> GetFixAllOperationsAsync( 50private async Task<ImmutableArray<CodeActionOperation>> GetFixAllOperationsAsync( 63var operations = await codeAction.GetOperationsAsync( 200private static ImmutableArray<CodeActionOperation> GetNewFixAllOperations(ImmutableArray<CodeActionOperation> operations, Solution newSolution, CancellationToken cancellationToken)
CodeFixesAndRefactorings\IFixAllGetFixesService.cs (1)
19Task<ImmutableArray<CodeActionOperation>> GetFixAllOperationsAsync(IRefactorOrFixAllContext fixAllContext, bool showPreviewChangesDialog);
CodeLens\CodeLensFindReferenceProgress.cs (1)
49public ImmutableArray<Location> Locations => [.. _locations];
CodeLens\CodeLensReferencesService.cs (6)
198public async Task<ImmutableArray<ReferenceLocationDescriptorAndDocument>?> FindReferenceLocationsAsync(Solution solution, DocumentId documentId, SyntaxNode syntaxNode, CancellationToken cancellationToken) 213public async Task<ImmutableArray<ReferenceLocationDescriptor>> MapReferenceLocationsAsync(Solution solution, ImmutableArray<ReferenceLocationDescriptorAndDocument> referenceLocations, ClassificationOptions classificationOptions, CancellationToken cancellationToken) 241var mappedSpans = results.GetValueOrDefault(); 370public Task<ImmutableArray<ReferenceMethodDescriptor>?> FindReferenceMethodsAsync(Solution solution, DocumentId documentId, SyntaxNode syntaxNode, CancellationToken cancellationToken) 399var parts = declaredSymbol.ToDisplayParts(MethodDisplayFormat);
CodeLens\ICodeLensMemberFinder.cs (1)
18Task<ImmutableArray<CodeLensMember>> GetCodeLensMembersAsync(Document document, CancellationToken cancellationToken);
CodeLens\ICodeLensReferencesService.cs (4)
29Task<ImmutableArray<ReferenceLocationDescriptorAndDocument>?> FindReferenceLocationsAsync(Solution solution, DocumentId documentId, SyntaxNode? syntaxNode, CancellationToken cancellationToken); 34Task<ImmutableArray<ReferenceLocationDescriptor>> MapReferenceLocationsAsync(Solution solution, ImmutableArray<ReferenceLocationDescriptorAndDocument> referenceLocations, ClassificationOptions classificationOptions, CancellationToken cancellationToken); 39Task<ImmutableArray<ReferenceMethodDescriptor>?> FindReferenceMethodsAsync(Solution solution, DocumentId documentId, SyntaxNode? syntaxNode, CancellationToken cancellationToken);
CodeLens\IRemoteCodeLensReferencesService.cs (2)
15ValueTask<ImmutableArray<ReferenceLocationDescriptorAndDocument>?> FindReferenceLocationsAsync(Checksum solutionChecksum, DocumentId documentId, TextSpan textSpan, CancellationToken cancellationToken); 16ValueTask<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 (11)
29protected abstract ImmutableArray<string> FixableDiagnosticIds { get; } 31protected abstract ImmutableArray<AbstractFormattingRule> GetFormatRules(SourceText text); 33public async Task<ImmutableArray<AddImportFixData>> AnalyzeAsync( 43var packageSources = ImmutableArray<PackageSource>.Empty; 58var unambiguousFixes = await addImportFeatureService.GetUniqueFixesAsync( 65var usableFixes = unambiguousFixes.WhereAsArray(fixData => fixData.Kind == AddImportFixKind.ProjectSymbol); 72ImmutableArray<AddImportFixData> fixes, 89var codeActions = addImportService.GetCodeActionsForFixes( 201var operations = await codeAction.GetOperationsAsync( 221var textChanges = await textDiffingService.GetTextChangesAsync(
CodeRefactorings\AddMissingImports\AbstractAddMissingImportsRefactoringProvider.cs (1)
39var fixData = await addMissingImportsService.AnalyzeAsync(
CodeRefactorings\AddMissingImports\IAddMissingImportsFeatureService.cs (3)
23Task<ImmutableArray<AddImportFixData>> AnalyzeAsync(Document document, TextSpan textSpan, bool cleanupDocument, CancellationToken cancellationToken); 30Task<Document> AddMissingImportsAsync(Document document, ImmutableArray<AddImportFixData> analysisResult, IProgress<CodeAnalysisProgress> progressTracker, CancellationToken cancellationToken); 48var analysisResult = await service.AnalyzeAsync(document, textSpan, cleanupDocument, cancellationToken).ConfigureAwait(false);
CodeRefactorings\CodeRefactoring.cs (2)
27public ImmutableArray<(CodeAction action, TextSpan? applicableToSpan)> CodeActions { get; } 33ImmutableArray<(CodeAction, TextSpan?)> actions,
CodeRefactorings\CodeRefactoringService.cs (12)
33private readonly Lazy<ImmutableDictionary<ProviderKey, Lazy<ImmutableArray<CodeRefactoringProvider>>>> _lazyLanguageDocumentToProvidersMap = 39new Lazy<ImmutableArray<CodeRefactoringProvider>>(() => [.. ExtensionOrderer.Order(grp).Select(lz => lz.Value)]))))); 74private ImmutableDictionary<ProviderKey, Lazy<ImmutableArray<CodeRefactoringProvider>>> LanguageDocumentToProvidersMap 82var allRefactorings = ImmutableArray<CodeRefactoringProvider>.Empty; 104static ImmutableArray<CodeRefactoringProvider> GetProjectRefactorings(TextDocument document) 115var kinds = EnumArrayConverter.FromStringArray<TextDocumentKind>(attribute.DocumentKinds); 180public async Task<ImmutableArray<CodeRefactoring>> GetRefactoringsAsync( 191var orderedProviders = GetProviders(document).WhereAsArray(p => priority == null || p.RequestPriority == priority); 193var pairs = await ProducerConsumer<(CodeRefactoringProvider provider, CodeRefactoring codeRefactoring)>.RunParallelAsync( 288protected override ImmutableArray<string> GetLanguages(ExportCodeRefactoringProviderAttribute exportAttribute) 291protected override bool TryGetExtensionsFromReference(AnalyzerReference reference, out ImmutableArray<CodeRefactoringProvider> extensions)
CodeRefactorings\ExtractMethod\AbstractExtractMethodCodeRefactoringProvider.cs (2)
49var actions = await GetCodeActionsAsync(document, textSpan, extractOptions, cancellationToken).ConfigureAwait(false); 53private static async Task<ImmutableArray<CodeAction>> GetCodeActionsAsync(
CodeRefactorings\ICodeRefactoringProviderFactory.cs (1)
11ImmutableArray<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 (7)
30public abstract Task<ImmutableArray<CodeAction>> GetRefactoringAsync(Document document, TextSpan textSpan, CancellationToken cancellationToken); 48public override async Task<ImmutableArray<CodeAction>> GetRefactoringAsync( 63var suggestedFileNames = GetSuggestedFileNames(semanticDocument, typeDeclaration, includeComplexFileNames: false); 80private ImmutableArray<CodeAction> CreateActions( 101var suggestedFileNames = GetSuggestedFileNames( 184var typeNameParts = GetTypeNamePartsForNestedTypeNode(typeNode).ToImmutableArray(); 212private ImmutableArray<string> GetSuggestedFileNames(
CodeRefactorings\MoveType\AbstractMoveTypeService.Editor.cs (1)
34public virtual async Task<ImmutableArray<CodeActionOperation>> GetOperationsAsync()
CodeRefactorings\MoveType\AbstractMoveTypeService.MoveTypeCodeAction.cs (1)
50protected override async Task<ImmutableArray<CodeActionOperation>> ComputeOperationsAsync(
CodeRefactorings\MoveType\AbstractMoveTypeService.MoveTypeEditor.cs (1)
94var movedImports = rootWithMovedType.DescendantNodes()
CodeRefactorings\MoveType\AbstractMoveTypeService.MoveTypeNamespaceScopeEditor.cs (4)
52var itemsBefore = childNodes.Take(index).ToImmutableArray(); 53var itemsAfter = childNodes.Skip(index + 1).ToImmutableArray(); 97private static ImmutableArray<SyntaxNode> WithElasticTrivia(ImmutableArray<SyntaxNode> syntaxNodes)
CodeRefactorings\MoveType\AbstractMoveTypeService.RenameFileEditor.cs (1)
24public override async Task<ImmutableArray<CodeActionOperation>> GetOperationsAsync()
CodeRefactorings\MoveType\IMoveTypeService.cs (1)
16Task<ImmutableArray<CodeAction>> GetRefactoringAsync(Document document, TextSpan textSpan, CancellationToken cancellationToken);
CodeRefactorings\MoveType\MoveTypeCodeRefactoringProvider.cs (1)
28var actions = await service.GetRefactoringAsync(document, textSpan, cancellationToken).ConfigureAwait(false);
CodeRefactorings\SyncNamespace\AbstractChangeNamespaceService.cs (44)
60public abstract bool TryGetReplacementReferenceSyntax(SyntaxNode reference, ImmutableArray<string> newNamespaceParts, ISyntaxFactsService syntaxFacts, [NotNullWhen(returnValue: true)] out SyntaxNode? old, [NotNullWhen(returnValue: true)] out SyntaxNode? @new); 90TCompilationUnitSyntax root, ImmutableArray<string> declaredNamespaceParts, ImmutableArray<string> targetNamespaceParts); 107protected abstract Task<ImmutableArray<(DocumentId id, SyntaxNode container)>> GetValidContainersFromAllLinkedDocumentsAsync(Document document, SyntaxNode container, CancellationToken cancellationToken); 112protected static bool IsGlobalNamespace(ImmutableArray<string> parts) 122var applicableContainers = await GetValidContainersFromAllLinkedDocumentsAsync(document, container, cancellationToken).ConfigureAwait(false); 137var originalNamespaceDeclarations = await GetTopLevelNamespacesAsync(document, cancellationToken).ConfigureAwait(false); 162var namespaces = await GetTopLevelNamespacesAsync(document, cancellationToken).ConfigureAwait(false); 171static async Task<ImmutableArray<SyntaxNode>> GetTopLevelNamespacesAsync(Document document, CancellationToken cancellationToken) 203var containersFromAllDocuments = await GetValidContainersFromAllLinkedDocumentsAsync(document, container, cancellationToken).ConfigureAwait(false); 223var documentIds = containersFromAllDocuments.SelectAsArray(pair => pair.id); 269protected async Task<ImmutableArray<(DocumentId, SyntaxNode)>> TryGetApplicableContainersFromAllDocumentsAsync( 271ImmutableArray<DocumentId> ids, 280var documents = ids.SelectAsArray(solution.GetRequiredDocument); 312protected static async Task<Solution> AnnotateContainersAsync(Solution solution, ImmutableArray<(DocumentId, SyntaxNode)> containers, CancellationToken cancellationToken) 347protected static bool IsSupportedLinkedDocument(Document document, out ImmutableArray<DocumentId> allDocumentIds) 350var linkedDocumentIds = document.GetLinkedDocumentIds(); 367private async Task<ImmutableArray<ISymbol>> GetDeclaredSymbolsInContainerAsync( 385private static ImmutableArray<string> GetNamespaceParts(string @namespace) 388private static ImmutableArray<string> GetAllNamespaceImportsForDeclaringDocument(string oldNamespace, string newNamespace) 390var parts = GetNamespaceParts(oldNamespace); 402private static ImmutableArray<SyntaxNode> CreateImports(Document document, ImmutableArray<string> names, bool withFormatterAnnotation) 428private async Task<(Solution, ImmutableArray<DocumentId>)> ChangeNamespaceInSingleDocumentAsync( 441var declaredSymbols = await GetDeclaredSymbolsInContainerAsync(document, container, cancellationToken).ConfigureAwait(false); 473var refLocationsInSolution = refLocationsInOtherDocuments 487var fixedDocuments = await ProducerConsumer<(DocumentId documentId, SyntaxNode newRoot)>.RunParallelAsync( 506private static async Task<ImmutableArray<LocationForAffectedSymbol>> FindReferenceLocationsForSymbolAsync( 511var referencedSymbols = await FindReferencesAsync(symbol, document, cancellationToken).ConfigureAwait(false); 529var referencedMethodSymbols = await FindReferencesAsync(methodSymbol, document, cancellationToken).ConfigureAwait(false); 540private static async Task<ImmutableArray<ReferencedSymbol>> FindReferencesAsync(ISymbol symbol, Document document, CancellationToken cancellationToken) 579ImmutableArray<SyntaxNode> containersToAddImports; 581var oldNamespaceParts = GetNamespaceParts(oldNamespace); 582var newNamespaceParts = GetNamespaceParts(newNamespace); 602var namesToImport = GetAllNamespaceImportsForDeclaringDocument(oldNamespace, newNamespace); 685var newNamespaceParts = GetNamespaceParts(newNamespace); 729private static async Task<(Document, ImmutableArray<SyntaxNode>)> FixReferencesAsync( 734ImmutableArray<string> newNamespaceParts, 802ImmutableArray<DocumentId> ids, 803ImmutableArray<string> names, 819var changedDocuments = await ProducerConsumer<(DocumentId documentId, SyntaxNode newRoot)>.RunParallelAsync( 857ImmutableArray<SyntaxNode> containers, 858ImmutableArray<string> names, 871var imports = CreateImports(document, names, withFormatterAnnotation: true);
CodeRefactorings\SyncNamespace\AbstractSyncNamespaceCodeRefactoringProvider.MoveFileCodeAction.cs (14)
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) 59var parts = state.RelativeDeclaredNamespace.Length == 0 68var candidateFolders = FindCandidateFolders(projectRootFolder, parts, []); 77private static ImmutableArray<ImmutableArray<string>> FindCandidateFolders( 79ImmutableArray<string> parts, 80ImmutableArray<string> currentFolder) 97var builder = ArrayBuilder<ImmutableArray<string>>.GetInstance(); 102var newParts = index >= parts.Length 105var newCurrentFolder = currentFolder.Add(matchingFolderInfo.Name); 115var defaultPathBasedOnCurrentFolder = currentFolder.AddRange(parts);
CodeRefactorings\SyncNamespace\AbstractSyncNamespaceCodeRefactoringProvider.State.cs (2)
172var linkedIds = document.GetLinkedDocumentIds(); 173var documents = linkedIds.SelectAsArray(solution.GetRequiredDocument).Add(document);
CodeRefactorings\SyncNamespace\SyncNamespaceDocumentsNotInSolutionException.cs (2)
11internal sealed class SyncNamespaceDocumentsNotInSolutionException(ImmutableArray<DocumentId> documentIds) : Exception 13private readonly ImmutableArray<DocumentId> _documentIds = documentIds;
Common\AbstractProjectExtensionProvider.cs (20)
21public sealed 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 (5)
16public static ImmutableArray<Glyph> GetGlyphs(this ImmutableArray<string> tags) 19public static ImmutableArray<Glyph> GetGlyphs(this ReadOnlySpan<string> tags) 33public static Glyph GetFirstGlyph(this ImmutableArray<string> tags) 229public static Accessibility GetAccessibility(ImmutableArray<string> tags)
Common\GlyphTags.cs (1)
12public static ImmutableArray<string> GetTags(Glyph glyph)
Common\TaggedText.cs (4)
88public static ImmutableArray<TaggedText> ToTaggedText( 109public static ImmutableArray<(string tag, string text)> ToTagsAndText(this ImmutableArray<SymbolDisplayPart> displayParts) 130public static string JoinText(this ImmutableArray<TaggedText> values)
Completion\CharacterSetModificationRule.cs (3)
22public ImmutableArray<char> Characters { get; } 24private CharacterSetModificationRule(CharacterSetModificationKind kind, ImmutableArray<char> characters) 35public static CharacterSetModificationRule Create(CharacterSetModificationKind kind, ImmutableArray<char> characters)
Completion\CommonCompletionItem.cs (5)
32ImmutableArray<SymbolDisplayPart> description = default, 36ImmutableArray<KeyValuePair<string, string>> properties = default, 37ImmutableArray<string> tags = default, 90private static string EncodeDescription(ImmutableArray<(string tag, string text)> description) 114var 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 (4)
94if (!sections.TryGetValue(SymbolDescriptionGroups.MainDescription, out var mainDescriptionTexts)) 126if (sections.TryGetValue(SymbolDescriptionGroups.AwaitableUsageText, out var parts)) 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 (10)
28public ImmutableArray<TextChange> TextChanges { get; } 52TextChange textChange, ImmutableArray<TextChange> textChanges, int? newPosition, bool includesCommitCharacter) 58TextChange textChange, ImmutableArray<TextChange> textChanges, int? newPosition, bool includesCommitCharacter, ImmutableDictionary<string, string> properties) 64TextChange textChange, ImmutableArray<TextChange> textChanges, TextSpan? newSelection, bool includesCommitCharacter, ImmutableDictionary<string, string> properties) 86/// are multiple entries, <see cref="Create(TextChange, ImmutableArray{TextChange}, int?, bool)"/> must be called instead, 91ImmutableArray<TextChange> textChanges, 114ImmutableArray<TextChange> textChanges, 123ImmutableArray<TextChange> textChanges, 133ImmutableArray<TextChange> textChanges, 150public CompletionChange WithTextChanges(ImmutableArray<TextChange> textChanges)
Completion\CompletionDescription.cs (4)
25public ImmutableArray<TaggedText> TaggedParts { get; } 27private CompletionDescription(ImmutableArray<TaggedText> taggedParts) 34public static CompletionDescription Create(ImmutableArray<TaggedText> taggedParts) 46public CompletionDescription WithTaggedParts(ImmutableArray<TaggedText> taggedParts)
Completion\CompletionItem.cs (22)
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, 322ImmutableArray<string> tags, 348Optional<ImmutableArray<KeyValuePair<string, string>>> properties = default, 349Optional<ImmutableArray<string>> tags = default, 355Optional<ImmutableArray<string>> additionalFilterTexts = default) 362var newProperties = properties.HasValue ? properties.Value : _properties; 363var newTags = tags.HasValue ? tags.Value : Tags; 368var newAdditionalFilterTexts = additionalFilterTexts.HasValue ? additionalFilterTexts.Value.NullToEmpty() : AdditionalFilterTexts; 456internal CompletionItem WithProperties(ImmutableArray<KeyValuePair<string, string>> properties) 468public CompletionItem WithTags(ImmutableArray<string> tags) 506internal 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, 104ImmutableArray<CharacterSetModificationRule> filterCharacterRules, 105ImmutableArray<CharacterSetModificationRule> commitCharacterRules, 126ImmutableArray<CharacterSetModificationRule> filterCharacterRules = default, 127ImmutableArray<CharacterSetModificationRule> commitCharacterRules = default, 159ImmutableArray<CharacterSetModificationRule> filterCharacterRules, 160ImmutableArray<CharacterSetModificationRule> commitCharacterRules, 170Optional<ImmutableArray<CharacterSetModificationRule>> filterRules = default, 171Optional<ImmutableArray<CharacterSetModificationRule>> commitRules = default, 177var newFilterRules = filterRules.HasValue ? filterRules.Value : FilterCharacterRules; 178var newCommitRules = commitRules.HasValue ? commitRules.Value : CommitCharacterRules; 205public CompletionItemRules WithFilterCharacterRules(ImmutableArray<CharacterSetModificationRule> filterCharacterRules) 217public CompletionItemRules WithCommitCharacterRules(ImmutableArray<CharacterSetModificationRule> commitCharacterRules)
Completion\CompletionList.cs (4)
19private readonly Lazy<ImmutableArray<CompletionItem>> _lazyItems; 26public ImmutableArray<CompletionItem> Items => _lazyItems.Value; 104ImmutableArray<CompletionItem> items, 159public 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_GetCompletions.cs (15)
85var triggeredProviders = GetTriggeredProviders(document, providers, caretPosition, options, trigger, roles, text); 87var additionalAugmentingProviders = await GetAugmentingProvidersAsync(document, triggeredProviders, caretPosition, trigger, options, cancellationToken).ConfigureAwait(false); 96var triggeredContexts = await ComputeNonEmptyCompletionContextsAsync( 105var exclusiveContexts = triggeredContexts.WhereAsArray(t => t.IsExclusive); 112var expandedContexts = triggeredContexts.WhereAsArray(static t => t.Provider.IsExpandItemProvider); 123var augmentingProviders = providers.Except(triggeredProviders).ToImmutableArray(); 125var augmentingContexts = await ComputeNonEmptyCompletionContextsAsync( 133var allContexts = triggeredContexts.Concat(augmentingContexts) 138ImmutableArray<CompletionProvider> GetTriggeredProviders( 148var triggeredProviders = providers.Where(p => p.ShouldTriggerCompletion(document.Project.Services, text, caretPosition, trigger, options, passThroughOptions)).ToImmutableArrayOrEmpty(); 161static async Task<ImmutableArray<CompletionProvider>> GetAugmentingProvidersAsync( 162Document document, ImmutableArray<CompletionProvider> triggeredProviders, int caretPosition, CompletionTrigger trigger, CompletionOptions options, CancellationToken cancellationToken) 240private static async Task<ImmutableArray<CompletionContext>> ComputeNonEmptyCompletionContextsAsync( 243ImmutableArray<CompletionProvider> providers, 262ImmutableArray<CompletionContext> completionContexts,
Completion\CompletionService.cs (6)
59protected virtual ImmutableArray<CompletionProvider> GetBuiltInProviders() 276public virtual ImmutableArray<CompletionItem> FilterItems( 278ImmutableArray<CompletionItem> items, 307var filteredItems = FilterItems(document, matchResults.SelectAsArray(item => item.CompletionItem), filterText); 401public ImmutableArray<CompletionProvider> GetImportedAndBuiltInProviders(ImmutableHashSet<string> roles) 404public ImmutableArray<CompletionProvider> GetProjectProviders(Project project)
Completion\CompletionService.ProviderManager.cs (15)
30private readonly Dictionary<ImmutableHashSet<string>, ImmutableArray<CompletionProvider>> _rolesToProviders; 39_rolesToProviders = new Dictionary<ImmutableHashSet<string>, ImmutableArray<CompletionProvider>>(this); 97public ImmutableArray<CompletionProvider> GetCachedProjectCompletionProvidersOrQueueLoadInBackground(Project? project, CompletionOptions options) 114if (ProjectCompletionProvider.TryGetCachedExtensions(project.AnalyzerReferences, out var providers)) 121private ImmutableArray<CompletionProvider> GetImportedAndBuiltInProviders(ImmutableHashSet<string>? roles) 127if (!_rolesToProviders.TryGetValue(roles, out var providers)) 136ImmutableArray<CompletionProvider> GetImportedAndBuiltInProvidersWorker(ImmutableHashSet<string> roles) 170var allCompletionProviders = FilterProviders(GetImportedAndBuiltInProviders(roles), trigger, options); 171var projectCompletionProviders = FilterProviders(GetCachedProjectCompletionProvidersOrQueueLoadInBackground(project, options), trigger, options); 175private ImmutableArray<CompletionProvider> FilterProviders( 176ImmutableArray<CompletionProvider> providers, 260protected override ImmutableArray<string> GetLanguages(ExportCompletionProviderAttribute exportAttribute) 263protected override bool TryGetExtensionsFromReference(AnalyzerReference reference, out ImmutableArray<CompletionProvider> extensions) 284public ImmutableArray<CompletionProvider> GetImportedAndBuiltInProviders(ImmutableHashSet<string> roles) 289public ImmutableArray<CompletionProvider> GetProjectProviders(Project project)
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)
31private ImmutableArray<IEmbeddedLanguage> _languageProviders; 58protected ImmutableArray<IEmbeddedLanguage> GetLanguageProviders(Host.LanguageServices? languageServices)
Completion\Providers\AbstractAwaitCompletionProvider.cs (6)
115var properties = builder.ToImmutableAndClear(); 127var properties = builder.ToImmutableAndClear(); 151ImmutableArray<KeyValuePair<string, string>> completionProperties, string displayText, string filterText, string tooltip, bool isComplexTextEdit, bool appendConfigureAwait) 153var description = appendConfigureAwait 202var addImportsChanges = returnTypeChange == null 244var allChanges = builder.ToImmutable();
Completion\Providers\AbstractContextVariableArgumentProvider.cs (1)
32var symbols = context.SemanticModel.LookupSymbols(context.Position);
Completion\Providers\AbstractCrefCompletionProvider.cs (2)
28var bestSymbols = symbols.WhereAsArray(s => s.Kind == kind && s.Name == name); 32protected abstract Task<(SyntaxToken, SemanticModel?, ImmutableArray<ISymbol>)> GetSymbolsAsync(
Completion\Providers\AbstractDocCommentCompletionProvider.cs (13)
26private static readonly ImmutableArray<string> s_listTagNames = [ListHeaderElementName, TermElementName, ItemElementName, DescriptionElementName]; 27private static readonly ImmutableArray<string> s_listHeaderTagNames = [TermElementName, DescriptionElementName]; 28private static readonly ImmutableArray<string> s_nestedTagNames = [CElementName, CodeElementName, ParaElementName, ListElementName, BElementName, EmElementName, IElementName, StrongElementName, TtElementName]; 29private static readonly ImmutableArray<string> s_topLevelRepeatableTagNames = [ExceptionElementName, IncludeElementName, PermissionElementName]; 30private static readonly ImmutableArray<string> s_topLevelSingleUseTagNames = [SummaryElementName, RemarksElementName, ExampleElementName, CompletionListElementName]; 48private static readonly ImmutableArray<(string elementName, string attributeName, string text)> s_attributeMap = 68private static readonly ImmutableArray<string> s_listTypeValues = ["bullet", "number", "table"]; 104protected abstract ImmutableArray<string> GetKeywordNames(); 109protected abstract ImmutableArray<IParameterSymbol> GetParameters(ISymbol symbol); 225protected ImmutableArray<CompletionItem> GetTopLevelItems(ISymbol? symbol, TSyntax syntax) 273private IEnumerable<CompletionItem> GetParameterItems<TSymbol>(ImmutableArray<TSymbol> symbols, TSyntax syntax, string tagName) where TSymbol : ISymbol 355protected static readonly ImmutableArray<CharacterSetModificationRule> FilterRules = [CharacterSetModificationRule.Create(CharacterSetModificationKind.Add, '!', '-', '[')]; 359var commitRules = defaultRules.CommitCharacterRules;
Completion\Providers\AbstractInternalsVisibleToCompletionProvider.cs (1)
295private static string GetPublicKeyAsHexString(ImmutableArray<byte> publicKey)
Completion\Providers\AbstractKeywordCompletionProvider.cs (6)
26private readonly ImmutableArray<IKeywordRecommender<TContext>> _keywordRecommenders; 28protected AbstractKeywordCompletionProvider(ImmutableArray<IKeywordRecommender<TContext>> keywordRecommenders) 45private async Task<ImmutableArray<CompletionItem>> RecommendCompletionItemsAsync(Document document, CompletionContext context, CancellationToken cancellationToken) 49var keywords = await RecommendKeywordsAsync(document, position, syntaxContext, cancellationToken).ConfigureAwait(false); 53private async Task<ImmutableArray<RecommendedKeyword>> RecommendKeywordsAsync( 67var keywords = recommender.RecommendKeywords(position, context, cancellationToken);
Completion\Providers\AbstractMemberInsertingCompletionProvider.cs (4)
23private static readonly ImmutableArray<CharacterSetModificationRule> s_commitRules = [CharacterSetModificationRule.Create(CharacterSetModificationKind.Replace, '(')]; 25private static readonly ImmutableArray<CharacterSetModificationRule> s_filterRules = [CharacterSetModificationRule.Create(CharacterSetModificationKind.Remove, '(')]; 54var changesArray = changes.ToImmutableArray(); 132var 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 (3)
18public abstract ImmutableArray<ISymbol> FilterOverrides(ImmutableArray<ISymbol> members, ITypeSymbol? returnType); 24var items = await state.GetItemsAsync().ConfigureAwait(false);
Completion\Providers\AbstractOverrideCompletionProvider.ItemGetter.cs (4)
46public override async Task<ImmutableArray<CompletionItem>> GetItemsAsync() 59!TryDetermineOverridableMembers(semanticModel, startToken, seenAccessibility, out var overridableMembers)) 92out ImmutableArray<ISymbol> overridableMembers) 101var result = containingType.GetOverridableMembers(CancellationToken);
Completion\Providers\AbstractPartialTypeCompletionProvider.cs (1)
75protected abstract ImmutableArray<KeyValuePair<string, string>> GetProperties(INamedTypeSymbol symbol, TSyntaxContext context);
Completion\Providers\AbstractRecommendationServiceBasedCompletionProvider.cs (8)
26protected abstract CompletionItemRules GetCompletionItemRules(ImmutableArray<SymbolAndSelectionInfo> symbols, TSyntaxContext context); 33protected sealed override async Task<ImmutableArray<SymbolAndSelectionInfo>> GetSymbolsAsync( 164ImmutableArray<SymbolAndSelectionInfo> symbols, 238var relatedDocumentIds = document.Project.Solution.GetRelatedDocumentIds(document.Id); 256var symbols = await TryGetSymbolsForContextAsync(completionContext: null, context, options, cancellationToken).ConfigureAwait(false); 260var bestSymbols = symbols.WhereAsArray(s => SymbolMatches(s, name, kind, isGeneric)); 306protected override ImmutableArray<ImmutableArray<SymbolAndSelectionInfo>> DeduplicateSymbols(
Completion\Providers\AbstractSymbolCompletionProvider.cs (30)
31protected abstract Task<ImmutableArray<SymbolAndSelectionInfo>> GetSymbolsAsync( 43ImmutableArray<SymbolAndSelectionInfo> symbols, 147private ImmutableArray<CompletionItem> CreateItems( 149ImmutableArray<SymbolAndSelectionInfo> symbols, 152ImmutableArray<ProjectId> totalProjects) 188var symbolLists = DeduplicateSymbols(symbolGroup.Value); 190foreach (var symbolList in symbolLists) 196void CreateAndAddItem(ImmutableArray<SymbolAndSelectionInfo> symbolList, bool doNotMerge) 235protected virtual ImmutableArray<ImmutableArray<SymbolAndSelectionInfo>> DeduplicateSymbols( 261ImmutableArray<SymbolAndSelectionInfo> symbolList, 278ImmutableArray<SymbolAndSelectionInfo> symbols, 280ImmutableArray<ProjectId> totalProjects) 303ImmutableArray<SymbolAndSelectionInfo> symbols, 358var regularItems = await GetItemsAsync(completionContext, syntaxContext, document, position, options, cancellationToken).ConfigureAwait(false); 368private async Task<ImmutableArray<CompletionItem>> GetItemsAsync( 376var relatedDocumentIds = document.GetLinkedDocumentIds(); 380var itemsForCurrentDocument = await GetSymbolsAsync(completionContext, syntaxContext, position, options, cancellationToken).ConfigureAwait(false); 389var contextAndSymbolLists = await GetPerContextSymbolsAsync(completionContext, document, options, documentIdToIndex.Keys, cancellationToken).ConfigureAwait(false); 397var totalProjects = contextAndSymbolLists.SelectAsArray(t => t.documentId.ProjectId); 399var items = CreateItems( 415ImmutableArray<(DocumentId documentId, TSyntaxContext syntaxContext, ImmutableArray<SymbolAndSelectionInfo> symbols)> linkedContextSymbolLists) 439private async Task<ImmutableArray<(DocumentId documentId, TSyntaxContext syntaxContext, ImmutableArray<SymbolAndSelectionInfo> symbols)>> GetPerContextSymbolsAsync( 444return await ProducerConsumer<(DocumentId documentId, TSyntaxContext syntaxContext, ImmutableArray<SymbolAndSelectionInfo> symbols)>.RunParallelAsync( 454var symbols = await @this.TryGetSymbolsForContextAsync( 467protected async Task<ImmutableArray<SymbolAndSelectionInfo>> TryGetSymbolsForContextAsync( 484ImmutableArray<(DocumentId documentId, TSyntaxContext syntaxContext, ImmutableArray<SymbolAndSelectionInfo> symbols)> linkedContextSymbolLists)
Completion\Providers\CompletionUtilities.cs (2)
36public static bool IsTypeImplicitlyConvertible(Compilation compilation, ITypeSymbol sourceType, ImmutableArray<ITypeSymbol> targetTypes) 47public static ImmutableArray<Project> GetDistinctProjectsFromLatestSolutionSnapshot(ImmutableSegmentedList<Project> projects)
Completion\Providers\IKeywordRecommender.cs (1)
14ImmutableArray<RecommendedKeyword> RecommendKeywords(int position, TContext context, CancellationToken cancellationToken);
Completion\Providers\ImportCompletionProvider\AbstractExtensionMethodImportCompletionProvider.cs (2)
49var inferredTypes = completionContext.CompletionOptions.TargetTypedCompletionFilter 55var completionItems = await ExtensionMemberImportCompletionHelper.GetUnimportedExtensionMembersAsync(
Completion\Providers\ImportCompletionProvider\AbstractImportCompletionProvider.cs (5)
69var importedNamespaces = GetImportedNamespaces(syntaxContext, cancellationToken); 86private static ImmutableArray<string> GetImportedNamespaces(SyntaxContext context, CancellationToken cancellationToken) 97var scopes = context.SemanticModel.GetImportScopes(position, cancellationToken); 149var importChanges = await ImportCompletionProviderHelpers.GetAddImportTextChangesAsync( 175var changes = builder.ToImmutable();
Completion\Providers\ImportCompletionProvider\AbstractTypeImportCompletionProvider.cs (3)
47foreach (var items in itemsFromAllAssemblies) 102var typeParameter = target.GetTypeParameters(); 117ImmutableArray<CompletionItem> items,
Completion\Providers\ImportCompletionProvider\AbstractTypeImportCompletionService.cs (7)
48public async Task<(ImmutableArray<ImmutableArray<CompletionItem>>, bool)> GetAllTopLevelTypesAsync( 61ImmutableArray<CompletionItem> GetItemsFromCacheResult(TypeImportCompletionCacheEntry cacheEntry) 84private async Task<(ImmutableArray<TypeImportCompletionCacheEntry> results, bool isPartial)> GetCacheEntriesAsync( 161var latestProjects = CompletionUtilities.GetDistinctProjectsFromLatestSolutionSnapshot(projects); 171private static bool HasGlobalAlias(ImmutableArray<string> aliases) 313var types = symbol.GetTypeMembers();
Completion\Providers\ImportCompletionProvider\ExtensionMemberImportCompletionHelper.cs (13)
54public static async Task<ImmutableArray<SerializableImportCompletionItem>> GetUnimportedExtensionMembersAsync( 59ImmutableArray<ITypeSymbol> targetTypesSymbols, 72var targetTypesSymbolKeyData = targetTypesSymbols.SelectAsArray(s => SymbolKey.CreateString(s, cancellationToken)); 76var remoteResult = await client.TryInvokeAsync<IRemoteExtensionMemberImportCompletionService, ImmutableArray<SerializableImportCompletionItem>>( 93public static async Task<ImmutableArray<SerializableImportCompletionItem>> GetUnimportedExtensionMembersInCurrentProcessAsync( 100ImmutableArray<ITypeSymbol> targetTypes, 110var extensionMemberSymbols = await symbolComputer.GetExtensionMemberSymbolsAsync( 114var items = ConvertSymbolsToCompletionItems(compilation, extensionMemberSymbols, targetTypes, cancellationToken); 121var latestProjects = CompletionUtilities.GetDistinctProjectsFromLatestSolutionSnapshot(projects); 128private static ImmutableArray<SerializableImportCompletionItem> ConvertSymbolsToCompletionItems( 129Compilation compilation, ImmutableArray<ISymbol> extensionMemberSymbols, ImmutableArray<ITypeSymbol> targetTypeSymbols, CancellationToken cancellationToken) 200Compilation compilation, ISymbol extensionSymbol, ImmutableArray<ITypeSymbol> targetTypeSymbols,
Completion\Providers\ImportCompletionProvider\ExtensionMemberImportCompletionHelper.SymbolComputer.cs (11)
37private readonly ImmutableArray<string> _receiverTypeNames; 58var receiverTypeNames = GetReceiverTypeNames(receiverTypeSymbol); 84public async Task<ImmutableArray<ISymbol>> GetExtensionMemberSymbolsAsync( 114foreach (var memberArray in results) 123var browsableSymbols = symbols 159private static ImmutableArray<Project> GetAllRelevantProjects(Project project) 167private static ImmutableArray<PortableExecutableReference> GetAllRelevantPeReferences(Project project) 446var typesToExamine = examineExtensionGroups 580private static ImmutableArray<string> GetReceiverTypeNames(ITypeSymbol receiverTypeSymbol) 614private static ImmutableArray<string> AddComplexTypes(ImmutableArray<string> receiverTypeNames)
Completion\Providers\ImportCompletionProvider\ImportCompletionItem.cs (5)
45ImmutableArray<KeyValuePair<string, string>> properties = default; 117var attributeItems = attributeItem.GetProperties(); 239var itemProperties = item.GetProperties(); 240ImmutableArray<KeyValuePair<string, string>> properties = [.. itemProperties, KeyValuePair.Create(AlwaysFullyQualifyKey, AlwaysFullyQualifyKey)]; 251var properties = item.GetProperties().WhereAsArray(pair => pair.Key != CommitBehaviorKey);
Completion\Providers\ImportCompletionProvider\ImportCompletionProviderHelpers.cs (1)
21public static async Task<ImmutableArray<TextChange>> GetAddImportTextChangesAsync(
Completion\Providers\ImportCompletionProvider\IRemoteExtensionMethodImportCompletionService.cs (3)
13ValueTask<ImmutableArray<SerializableImportCompletionItem>> GetUnimportedExtensionMembersAsync( 19ImmutableArray<string> namespaceInScope, 20ImmutableArray<string> targetTypesSymbolKeyData,
Completion\Providers\ImportCompletionProvider\ITypeImportCompletionService.cs (2)
24Task<(ImmutableArray<ImmutableArray<CompletionItem>>, bool)> GetAllTopLevelTypesAsync(
Completion\Providers\ImportCompletionProvider\TypeImportCompletionCacheEntry.cs (4)
25private ImmutableArray<TypeImportCompletionItemInfo> ItemInfos { get; } 44ImmutableArray<TypeImportCompletionItemInfo> items, 64var newItems = ItemInfos.SelectAsArray(i => i.WithItem(ImportCompletionItem.MarkCommitBehavior(i.Item, commitBehavior))); 68public 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)
21private static ImmutableArray<char> GetCommitCharacters()
Completion\Providers\Scripting\AbstractReferenceDirectiveCompletionProvider.cs (1)
26private static ImmutableArray<char> GetCommitCharacters()
Completion\Providers\Scripting\GlobalAssemblyCacheCompletionHelper.cs (2)
29public Task<ImmutableArray<CompletionItem>> GetItemsAsync(string directoryPath, CancellationToken cancellationToken) 33internal ImmutableArray<CompletionItem> GetItems(string directoryPath, CancellationToken cancellationToken)
Completion\Providers\Snippets\AbstractSnippetCompletionProvider.cs (1)
85var snippets = service.GetSnippets(snippetContext, cancellationToken);
Completion\Providers\Snippets\SnippetCompletionItem.cs (2)
21ImmutableArray<SymbolDisplayPart> description, 23ImmutableArray<string> additionalFilterTexts)
Completion\Providers\SymbolCompletionItem.cs (23)
24private static readonly Action<ImmutableArray<ISymbol>, ArrayBuilder<KeyValuePair<string, string>>> s_addSymbolEncoding = AddSymbolEncoding; 25private static readonly Action<ImmutableArray<ISymbol>, ArrayBuilder<KeyValuePair<string, string>>> s_addSymbolInfo = AddSymbolInfo; 33ImmutableArray<ISymbol> symbols, 36Action<ImmutableArray<ISymbol>, ArrayBuilder<KeyValuePair<string, string>>> symbolEncoder, 41ImmutableArray<KeyValuePair<string, string>> properties = default, 42ImmutableArray<string> tags = default, 82private static void AddSymbolEncoding(ImmutableArray<ISymbol> symbols, ArrayBuilder<KeyValuePair<string, string>> properties) 85private static void AddSymbolInfo(ImmutableArray<ISymbol> symbols, ArrayBuilder<KeyValuePair<string, string>> properties) 115public static string EncodeSymbols(ImmutableArray<ISymbol> symbols) 139public static async Task<ImmutableArray<ISymbol>> GetSymbolsAsync(CompletionItem item, Document document, CancellationToken cancellationToken) 152var linkedIds = document.GetLinkedDocumentIds(); 194var symbols = await GetSymbolsAsync(item, document, cancellationToken).ConfigureAwait(false); 199CompletionItem item, Document document, ImmutableArray<ISymbol> symbols, SymbolDescriptionOptions options, CancellationToken cancellationToken) 273private static ImmutableArray<ProjectId> SplitIntoProjectIds(string projectIds) 330ImmutableArray<ISymbol> symbols, 338ImmutableArray<string> tags = default, 362ImmutableArray<ISymbol> symbols, 372ImmutableArray<KeyValuePair<string, string>> properties = default, 373ImmutableArray<string> tags = default, 386ImmutableArray<ISymbol> symbols, 396ImmutableArray<KeyValuePair<string, string>> properties = default, 397ImmutableArray<string> tags = default, 417CompletionItem 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 (3)
29ValueTask<ManagedHotReloadUpdates> GetUpdatesAsync(ImmutableArray<string> runningProjects, CancellationToken cancellationToken); 32ValueTask UpdateBaselinesAsync(ImmutableArray<string> projectPaths, CancellationToken cancellationToken); 37ValueTask<ManagedHotReloadUpdates> GetUpdatesAsync(ImmutableArray<RunningProjectInfo> runningProjects, 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)
14public ImmutableArray<ManagedHotReloadUpdate> Updates { get; init; } 17public ImmutableArray<ManagedHotReloadDiagnostic> Diagnostics { get; init; } 20public ImmutableArray<ProjectInstanceId> ProjectsToRebuild { get; init; } 23public ImmutableArray<ProjectInstanceId> ProjectsToRestart { get; init; }
Contracts\EditAndContinue\SequencePointUpdates.cs (2)
21ImmutableArray<SourceLineUpdate> lineUpdates) 34public ImmutableArray<SourceLineUpdate> LineUpdates { get; } = lineUpdates;
ConvertAnonymousType\AbstractConvertAnonymousTypeToClassCodeRefactoringProvider.cs (12)
244ImmutableArray<IPropertySymbol> properties, 253var capturedTypeParameters = 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(); 324var newProperties = originalProperties.SelectAsArray(p => GenerateProperty(document, p)); 378ImmutableArray<IPropertySymbol> properties, SyntaxGenerator generator) 383var parameters = properties.SelectAsArray(prop => 393var assignmentStatements = generator.CreateAssignmentStatements(
ConvertAutoPropertyToFullProperty\AbstractConvertAutoPropertyToFullPropertyCodeRefactoringProvider.cs (1)
113var typeDeclaration = propertySymbol.ContainingType.DeclaringSyntaxReferences;
ConvertCast\AbstractConvertCastCodeRefactoringProvider.cs (1)
37var fromNodes = await context.GetRelevantNodesAsync<TFromExpression>().ConfigureAwait(false);
ConvertForEachToFor\AbstractConvertForEachToForCodeRefactoringProvider.cs (3)
37private static readonly ImmutableArray<string> s_KnownInterfaceNames = 254if (collectionType.OriginalDefinition.Equals(model.Compilation.GetTypeByMetadataName(typeof(ImmutableArray<>).FullName!))) 353var members = current.GetMembers(memberName);
ConvertForToForEach\AbstractConvertForToForEachCodeRefactoringProvider.cs (2)
236var methods = type.GetAccessibleMembersInThisAndBaseTypes<TSymbol>(containingType); 519var interfaces = collectionType.GetAllInterfacesIncludingThis();
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)
73public (ImmutableArray<AnalyzedSwitchSection>, TExpressionSyntax TargetExpression) AnalyzeIfStatementSequence(ReadOnlySpan<IOperation> operations)
ConvertIfToSwitch\AbstractConvertIfToSwitchCodeRefactoringProvider.cs (7)
32protected sealed override ImmutableArray<RefactorAllScope> SupportedRefactorAllScopes => AllRefactorAllScopes; 47out var analyzer, out var sections, out var target)) 76[NotNullWhen(true)] out ImmutableArray<AnalyzedSwitchSection> sections, 94var operations = parentBlock.Operations; 125bool supportsOrPattern, ImmutableArray<AnalyzedSwitchSection> sections) 183ImmutableArray<TextSpan> fixAllSpans, 250if (!ShouldOfferRefactoring(ifStatement, semanticModel, syntaxFactsService, out var analyzer, out var sections, out var target))
ConvertIfToSwitch\AbstractConvertIfToSwitchCodeRefactoringProvider.Rewriting.cs (2)
21public abstract SyntaxNode CreateSwitchExpressionStatement(TExpressionSyntax target, ImmutableArray<AnalyzedSwitchSection> sections, Feature feature); 31ImmutableArray<AnalyzedSwitchSection> sections,
ConvertLinq\AbstractConvertLinqQueryToForEachProvider.cs (1)
61public readonly ImmutableArray<TStatement> Destinations = [.. destinations];
ConvertLinq\ConvertForEachToLinqQuery\ExtendedSyntaxNode.cs (2)
18public ImmutableArray<SyntaxTrivia> ExtraLeadingComments { get; } = [.. extraLeadingComments]; 20public ImmutableArray<SyntaxTrivia> ExtraTrailingComments { get; } = [.. extraTrailingComments];
ConvertLinq\ConvertForEachToLinqQuery\ForEachInfo.cs (10)
12ImmutableArray<ExtendedSyntaxNode> convertingExtendedNodes, 13ImmutableArray<SyntaxToken> identifiers, 14ImmutableArray<TStatement> statements, 15ImmutableArray<SyntaxToken> leadingTokens, 16ImmutableArray<SyntaxToken> trailingTokens) 22public ImmutableArray<ExtendedSyntaxNode> ConvertingExtendedNodes { get; } = convertingExtendedNodes; 24public ImmutableArray<SyntaxToken> Identifiers { get; } = identifiers; 26public ImmutableArray<TStatement> Statements { get; } = statements; 28public ImmutableArray<SyntaxToken> LeadingTokens { get; } = leadingTokens; 30public ImmutableArray<SyntaxToken> TrailingTokens { get; } = trailingTokens;
ConvertToInterpolatedString\AbstractConvertConcatenationToInterpolatedStringRefactoringProvider.cs (5)
35var possibleExpressions = await context.GetRelevantNodesAsync<TExpressionSyntax>().ConfigureAwait(false); 73var stringLiterals = pieces 108var piecesArray = pieces.ToImmutable(); 118Document document, SyntaxNode top, bool isVerbatimStringLiteral, ImmutableArray<SyntaxNode> pieces, CancellationToken cancellationToken) 130ImmutableArray<SyntaxNode> pieces,
ConvertToInterpolatedString\AbstractConvertPlaceholderToInterpolatedStringRefactoringProvider.cs (10)
50protected override ImmutableArray<RefactorAllScope> SupportedRefactorAllScopes { get; } = AllRefactorAllScopes; 158var invocations = await document.GetRelevantNodesAsync<TInvocationExpressionSyntax>(span, cancellationToken).ConfigureAwait(false); 269ImmutableArray<TextSpan> fixAllSpans, 355ImmutableArray<TArgumentSyntax> GetReorderedArgumentsAfterPlaceholderArgument() 360var afterPlaceholderArguments = arguments.Skip(placeholderIndex + 1).ToImmutableArray(); 361var unnamedArguments = afterPlaceholderArguments.TakeWhile(a => !syntaxFacts.IsNamedArgument(a)).ToImmutableArray(); 362var namedAndUnnamedArguments = afterPlaceholderArguments.Skip(unnamedArguments.Length).ToImmutableArray(); 388ImmutableArray<TExpressionSyntax> ExpandArgumentExpressions(ImmutableArray<TArgumentSyntax> argumentsAfterPlaceholder) 404TExpressionSyntax InsertArgumentsIntoInterpolatedString(ImmutableArray<TExpressionSyntax> expressions)
ConvertTupleToStruct\AbstractConvertTupleToStructCodeRefactoringProvider.cs (41)
75var fields = tupleType.TupleElements; 82var capturedTypeParameters = 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, 285var capturedTypeParameters = 303var documentsToUpdate = await GetDocumentsToUpdateAsync( 326ImmutableArray<DocumentToUpdate> documentsToUpdate, 328string structName, ImmutableArray<ITypeParameterSymbol> typeParameters, 375var nodesToUpdate = documentToUpdate.NodesToUpdate.IsDefault 405ImmutableArray<ITypeParameterSymbol> typeParameters, bool addRenameAnnotation) 418private static async Task<ImmutableArray<DocumentToUpdate>> GetDocumentsToUpdateAsync( 435private static async Task<ImmutableArray<DocumentToUpdate>> GetDocumentsToUpdateForDependentProjectAsync( 466var tupleFieldNames = tupleType.TupleElements.SelectAsArray<IFieldSymbol, string>(f => f.Name); 477private static async Task<ImmutableArray<DocumentToUpdate>> GetDocumentsToUpdateForContainingProjectAsync( 481var tupleFieldNames = tupleType.TupleElements.SelectAsArray<IFieldSymbol, string>(f => f.Name); 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( 534var nodes = group.SelectAsArray(r => r.GetSyntax(cancellationToken)); 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.SelectAsArray( 886var arguments = tupleType.TupleElements.SelectAsArray<IFieldSymbol, SyntaxNode>( 911ImmutableArray<ITypeParameterSymbol> typeParameters, ImmutableArray<ISymbol> members) 923ImmutableArray<IFieldSymbol> fields, SyntaxGenerator generator, 929var parameters = fields.SelectAsArray(field => 940var assignmentStatements = generator.CreateAssignmentStatements(
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\CopilotChangeAnalysis.cs (1)
27[property: DataMember(Order = 10)] ImmutableArray<CopilotDiagnosticAnalysis> DiagnosticAnalyses,
Copilot\CopilotChangeAnalysisUtilities.cs (2)
44ImmutableArray<TextChange> textChanges, 56var normalizedEdits = CopilotUtilities.TryNormalizeCopilotTextChanges(textChanges);
Copilot\CopilotUtilities.cs (7)
19public static (SourceText newText, ImmutableArray<TextSpan> newSpans) GetNewTextAndChangedSpans( 20SourceText oldText, ImmutableArray<TextChange> changes) 24return (oldText, ImmutableArray<TextSpan>.Empty); 34public static ImmutableArray<TextSpan> GetTextSpansFromTextChanges(IEnumerable<TextChange>? changes) 37return ImmutableArray<TextSpan>.Empty; 60public static ImmutableArray<TextChange> TryNormalizeCopilotTextChanges(IEnumerable<TextChange> textChanges) 83public static void ThrowIfNotNormalized(ImmutableArray<TextChange> textChanges)
Copilot\Extensions.cs (3)
16public static async Task<ImmutableArray<DiagnosticData>> GetCachedCopilotDiagnosticsAsync(this TextDocument document, TextSpan? span, CancellationToken cancellationToken) 31var promptTitles = await copilotCodeAnalysisService.GetAvailablePromptTitlesAsync(sourceDocument, cancellationToken).ConfigureAwait(false); 32var copilotDiagnostics = await copilotCodeAnalysisService.GetCachedDocumentDiagnosticsAsync(sourceDocument, span, promptTitles, cancellationToken).ConfigureAwait(false);
Copilot\ICopilotChangeAnalysisService.cs (13)
38Document document, ImmutableArray<TextChange> normalizedChanges, CancellationToken cancellationToken); 53ImmutableArray<TextChange> normalizedChanges, 81ImmutableArray<TextChange> normalizedChanges, 105var diagnosticAnalyses = await ComputeAllDiagnosticAnalysesAsync( 162private static Task<ImmutableArray<CopilotDiagnosticAnalysis>> ComputeAllDiagnosticAnalysesAsync( 164ImmutableArray<TextSpan> newSpans, 177var diagnostics = await ComputeDiagnosticsAsync( 202static Task<ImmutableArray<DiagnosticData>> ComputeDiagnosticsAsync( 204ImmutableArray<TextSpan> newSpans, 215var diagnostics = await diagnosticAnalyzerService.GetDiagnosticsForSpanAsync( 235ImmutableArray<TextSpan> newSpans, 240var codeFixCollections = await ComputeCodeFixCollectionsAsync().ConfigureAwait(false); 338Task<ImmutableArray<CodeFixCollection>> ComputeCodeFixCollectionsAsync()
Copilot\ICopilotCodeAnalysisService.cs (4)
36Task<ImmutableArray<string>> GetAvailablePromptTitlesAsync(Document document, CancellationToken cancellationToken); 57Task<ImmutableArray<Diagnostic>> GetCachedDocumentDiagnosticsAsync(Document document, TextSpan? span, ImmutableArray<string> promptTitles, CancellationToken cancellationToken); 102ImmutableDictionary<SyntaxNode, ImmutableArray<ReferencedSymbol>> methodOrProperties,
Copilot\IProposalAdjusterService.cs (18)
35[property: DataMember(Order = 0)] ImmutableArray<TextChange> TextChanges, 37[property: DataMember(Order = 2)] ImmutableArray<AdjustmentResult> AdjustmentResults); 54ImmutableArray<TextChange> normalizedChanges, LineFormattingOptions? lineFormattingOptions, 63DocumentId documentId, ImmutableArray<TextChange> normalizedChanges, 72private readonly ImmutableArray<(string name, Adjuster adjuster)> _adjusters; 89ImmutableArray<TextChange> normalizedChanges, LineFormattingOptions? lineFormattingOptions, 115ImmutableArray<TextChange> normalizedChanges, LineFormattingOptions? lineFormattingOptions, 162var totalChanges = FixLineEndingBoundaries(oldText, allChanges.AsImmutableOrEmpty()); 181private static ImmutableArray<TextChange> FixLineEndingBoundaries( 182SourceText originalText, ImmutableArray<TextChange> changes) 254internal static ImmutableArray<TextChange> ConstrainChangesToAvoidSpan( 255SourceText originalText, ImmutableArray<TextChange> changes, TextSpan protectedSpan) 424private static TextSpan GetSpanToAnalyze(SyntaxNode forkedRoot, ImmutableArray<TextSpan> newSpans) 446var totalSpans = CopilotUtilities.GetTextSpansFromTextChanges(changes); 453internal static ImmutableArray<TextChange> FixLineEndingBoundaries( 454SourceText originalText, ImmutableArray<TextChange> changes) 457internal static ImmutableArray<TextChange> ConstrainChangesToAvoidSpan( 458SourceText originalText, ImmutableArray<TextChange> changes, TextSpan protectedSpan)
Copilot\IRemoteCopilotChangeAnalysisService.cs (1)
18Checksum solutionChecksum, DocumentId documentId, ImmutableArray<TextChange> normalizedChanges, CancellationToken cancellationToken);
Debugging\AbstractBreakpointResolver.cs (2)
148var containers = await _solution.GetGlobalNamespacesAsync(cancellationToken).ConfigureAwait(false); 226var namespaces = await _solution.GetGlobalNamespacesAsync(cancellationToken).ConfigureAwait(false);
DesignerAttribute\DesignerAttributeDiscoveryService.cs (3)
40private static readonly ImmutableArray<string> s_wellKnownDesignerNamespaces = [ 206var changedData = await ComputeChangedDataAsync( 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\AbstractAnalyzerDriverService.cs (1)
14public ImmutableArray<DeclarationInfo> ComputeDeclarationsInSpan(
Diagnostics\Analyzers\UnboundIdentifiersDiagnosticAnalyzerBase.cs (2)
29protected abstract ImmutableArray<TLanguageKindEnum> SyntaxKindsOfInterest { get; } 36public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics
Diagnostics\CodeAnalysisDiagnosticAnalyzerService.cs (6)
37private readonly ConcurrentDictionary<ProjectId, ImmutableArray<DiagnosticData>> _analyzedProjectToDiagnostics = []; 92var diagnostics = await _diagnosticAnalyzerService.ForceRunCodeAnalysisDiagnosticsAsync( 117public ImmutableArray<DiagnosticData> GetLastComputedDocumentDiagnostics(DocumentId documentId) 122if (!_analyzedProjectToDiagnostics.TryGetValue(documentId.ProjectId, out var diagnostics)) 137public ImmutableArray<DiagnosticData> GetLastComputedProjectDiagnostics(ProjectId projectId) 142if (!_analyzedProjectToDiagnostics.TryGetValue(projectId, out var diagnostics))
Diagnostics\DiagnosticAnalyzerExtensions.cs (3)
33public static void AppendAnalyzerMap(this Dictionary<string, DiagnosticAnalyzer> analyzerMap, ImmutableArray<DiagnosticAnalyzer> analyzers) 42public static ImmutableArray<AnalyzerPerformanceInfo> ToAnalyzerPerformanceInfo(this IDictionary<DiagnosticAnalyzer, AnalyzerTelemetryInfo> analysisResult, DiagnosticAnalyzerInfoCache analyzerInfo) 45public static Task<ImmutableArray<DiagnosticDescriptor>> GetDiagnosticDescriptorsAsync(
Diagnostics\DiagnosticsUpdatedArgs.cs (3)
25public readonly ImmutableArray<DiagnosticData> Diagnostics; 31ImmutableArray<DiagnosticData> diagnostics, 48ImmutableArray<DiagnosticData> diagnostics)
Diagnostics\IAnalyzerDriverService.cs (1)
19ImmutableArray<DeclarationInfo> ComputeDeclarationsInSpan(SemanticModel model, TextSpan span, CancellationToken cancellationToken);
Diagnostics\ICodeAnalysisDiagnosticAnalyzerService.cs (2)
41ImmutableArray<DiagnosticData> GetLastComputedDocumentDiagnostics(DocumentId documentId); 52ImmutableArray<DiagnosticData> GetLastComputedProjectDiagnostics(ProjectId projectId);
Diagnostics\IDiagnosticAnalyzerService.cs (14)
31Task<ImmutableArray<DiagnosticData>> ForceRunCodeAnalysisDiagnosticsAsync( 42Project project, ImmutableArray<string> diagnosticIds, CancellationToken cancellationToken); 66Task<ImmutableArray<DiagnosticData>> GetDiagnosticsForIdsAsync( 67Project project, ImmutableArray<DocumentId> documentIds, ImmutableHashSet<string>? diagnosticIds, AnalyzerFilter analyzerFilter, bool includeLocalDocumentDiagnostics, CancellationToken cancellationToken); 78Task<ImmutableArray<DiagnosticData>> GetProjectDiagnosticsForIdsAsync( 89Task<ImmutableArray<DiagnosticData>> GetDiagnosticsForSpanAsync( 98Solution solution, ImmutableArray<ProjectId> projectIds, CancellationToken cancellationToken); 101Task<ImmutableDictionary<string, ImmutableArray<DiagnosticDescriptor>>> GetDiagnosticDescriptorsPerReferenceAsync( 105Task<ImmutableArray<DiagnosticDescriptor>> GetDiagnosticDescriptorsAsync( 112Task<ImmutableArray<string>> GetCompilationEndDiagnosticDescriptorIdsAsync( 125public static Task<ImmutableArray<DiagnosticData>> GetDiagnosticsForSpanAsync( 142public static Task<ImmutableArray<DiagnosticData>> GetDiagnosticsForSpanAsync(this IDiagnosticAnalyzerService service, 155public static Task<ImmutableDictionary<string, ImmutableArray<DiagnosticDescriptor>>> GetDiagnosticDescriptorsPerReferenceAsync( 159public static Task<ImmutableDictionary<string, ImmutableArray<DiagnosticDescriptor>>> GetDiagnosticDescriptorsPerReferenceAsync(
Diagnostics\Service\ChecksumAndAnalyzersEqualityComparer.cs (4)
14: IEqualityComparer<ImmutableArray<DiagnosticAnalyzer>> 18public bool Equals(ImmutableArray<DiagnosticAnalyzer> x, ImmutableArray<DiagnosticAnalyzer> y) 24public int GetHashCode(ImmutableArray<DiagnosticAnalyzer> obj)
Diagnostics\Service\DiagnosticAnalyzerService_CompilationWithAnalyzersPair.cs (3)
37ImmutableArray<DiagnosticAnalyzer>, 47ImmutableArray<DiagnosticAnalyzer> analyzers, 79ImmutableArray<DiagnosticAnalyzer> analyzers,
Diagnostics\Service\DiagnosticAnalyzerService_ComputeDiagnosticAnalysisResults.cs (6)
28ImmutableArray<DocumentDiagnosticAnalyzer> analyzers, 50static string GetProjectLogMessage(Project project, ImmutableArray<DocumentDiagnosticAnalyzer> analyzers) 89ImmutableArray<DocumentDiagnosticAnalyzer> ideAnalyzers) 118ImmutableArray<DocumentDiagnosticAnalyzer> ideAnalyzers, 134var syntaxDiagnostics = await DocumentAnalysisExecutor.ComputeDocumentDiagnosticAnalyzerDiagnosticsAsync(documentAnalyzer, textDocument, AnalysisKind.Syntax, compilation, tree, cancellationToken).ConfigureAwait(false); 135var semanticDiagnostics = await DocumentAnalysisExecutor.ComputeDocumentDiagnosticAnalyzerDiagnosticsAsync(documentAnalyzer, textDocument, AnalysisKind.Semantic, compilation, tree, cancellationToken).ConfigureAwait(false);
Diagnostics\Service\DiagnosticAnalyzerService_CoreAnalyze.cs (6)
42var additionalPragmaSuppressionDiagnostics = await GetPragmaSuppressionAnalyzerDiagnosticsAsync().ConfigureAwait(false); 53var analyzers = documentAnalysisScope?.Analyzers ?? compilationWithAnalyzers.Analyzers; 84ImmutableArray<AnalyzerPerformanceInfo> performanceInfo = []; 133async Task<ImmutableArray<Diagnostic>> GetPragmaSuppressionAnalyzerDiagnosticsAsync() 136var analyzers = documentAnalysisScope?.Analyzers ?? compilationWithAnalyzers.Analyzers; 141var hostAnalyzers = analyzers.WhereAsArray(static (a, info) => info.IsHostAnalyzer(a), hostAnalyzerInfo);
Diagnostics\Service\DiagnosticAnalyzerService_DeprioritizationCandidates.cs (2)
45Project project, ImmutableArray<string> diagnosticIds, CancellationToken cancellationToken) 49var analyzers = GetProjectAnalyzers_OnlyCallInProcess(project);
Diagnostics\Service\DiagnosticAnalyzerService_ForceCodeAnalysisDiagnostics.cs (5)
16public async ValueTask<ImmutableArray<DiagnosticData>> ForceRunCodeAnalysisDiagnosticsInProcessAsync( 25var analyzers = GetProjectAnalyzers_OnlyCallInProcess(project); 26var filteredAnalyzers = analyzers.WhereAsArray(ShouldIncludeAnalyzer); 41async Task<ImmutableArray<DiagnosticData>> GetDiagnosticsForIdsAsync() 89var descriptors = this._analyzerInfoCache.GetDiagnosticDescriptors(analyzer);
Diagnostics\Service\DiagnosticAnalyzerService_GetDiagnosticsForSpan.cs (19)
25private static async Task<ImmutableDictionary<DiagnosticAnalyzer, ImmutableArray<DiagnosticData>>> ComputeDocumentDiagnosticsCoreInProcessAsync( 29using var _ = PooledDictionary<DiagnosticAnalyzer, ImmutableArray<DiagnosticData>>.GetInstance(out var builder); 32var diagnostics = await executor.ComputeDiagnosticsInProcessAsync(analyzer, cancellationToken).ConfigureAwait(false); 39public async Task<ImmutableArray<DiagnosticData>> GetDiagnosticsForSpanInProcessAsync( 50var unfilteredAnalyzers = GetProjectAnalyzers_OnlyCallInProcess(project); 51var analyzers = unfilteredAnalyzers 71var allDiagnostics = await this.ComputeDiagnosticsInProcessAsync( 78ImmutableArray<DiagnosticAnalyzer> syntaxAnalyzers, 79ImmutableArray<DiagnosticAnalyzer> semanticSpanAnalyzers, 80ImmutableArray<DiagnosticAnalyzer> semanticDocumentAnalyzers)> GetAllAnalyzersAsync() 172var descriptors = _analyzerInfoCache.GetDiagnosticDescriptors(analyzer); 220async Task<ImmutableArray<DiagnosticAnalyzer>> FilterAnalyzersAsync( 221ImmutableArray<DiagnosticAnalyzer> analyzers, 277private async Task<ImmutableArray<DiagnosticData>> ComputeDiagnosticsInProcessAsync( 280ImmutableArray<DiagnosticAnalyzer> allAnalyzers, 281ImmutableArray<DiagnosticAnalyzer> syntaxAnalyzers, 282ImmutableArray<DiagnosticAnalyzer> semanticSpanAnalyzers, 283ImmutableArray<DiagnosticAnalyzer> semanticDocumentAnalyzers, 308ImmutableArray<DiagnosticAnalyzer> analyzers,
Diagnostics\Service\DiagnosticAnalyzerService_ProduceProjectDiagnostics.cs (15)
22private ImmutableArray<DiagnosticAnalyzer> GetDiagnosticAnalyzersInProcess( 27var analyzersForProject = GetProjectAnalyzers_OnlyCallInProcess(project); 53private Task<ImmutableArray<DiagnosticData>> GetDiagnosticsForIdsInProcessAsync( 55ImmutableArray<DocumentId> documentIds, 67private Task<ImmutableArray<DiagnosticData>> GetDiagnosticsForIdsInProcessAsync( 69ImmutableArray<DocumentId> documentIds, 71ImmutableArray<DiagnosticAnalyzer> analyzers, 88private Task<ImmutableArray<DiagnosticData>> GetProjectDiagnosticsForIdsInProcessAsync( 100private Task<ImmutableArray<DiagnosticData>> GetProjectDiagnosticsForIdsInProcessAsync( 103ImmutableArray<DiagnosticAnalyzer> analyzers, 115private async Task<ImmutableArray<DiagnosticData>> ProduceProjectDiagnosticsInProcessAsync( 118ImmutableArray<DocumentId> documentIds, 119ImmutableArray<DiagnosticAnalyzer> analyzers, 157void AddIncludedDiagnostics(ArrayBuilder<DiagnosticData> builder, ImmutableArray<DiagnosticData> diagnostics) 167ImmutableArray<DiagnosticAnalyzer> analyzers)
Diagnostics\Service\DiagnosticAnalyzerService_RemoteOrLocalDispatcher.cs (18)
23public async Task<ImmutableArray<DiagnosticData>> ForceRunCodeAnalysisDiagnosticsAsync( 29var descriptors = await client.TryInvokeAsync<IRemoteDiagnosticAnalyzerService, ImmutableArray<DiagnosticData>>( 41public async Task<ImmutableArray<DiagnosticDescriptor>> GetDiagnosticDescriptorsAsync( 49var descriptors = await client.TryInvokeAsync<IRemoteDiagnosticAnalyzerService, ImmutableArray<DiagnosticDescriptorData>>( 65public async Task<ImmutableArray<string>> GetCompilationEndDiagnosticDescriptorIdsAsync( 71var result = await client.TryInvokeAsync<IRemoteDiagnosticAnalyzerService, ImmutableArray<string>>( 106Solution solution, ImmutableArray<ProjectId> projectIds, CancellationToken cancellationToken) 131public async Task<ImmutableDictionary<string, ImmutableArray<DiagnosticDescriptor>>> GetDiagnosticDescriptorsPerReferenceAsync( 137var map = await client.TryInvokeAsync<IRemoteDiagnosticAnalyzerService, ImmutableDictionary<string, ImmutableArray<DiagnosticDescriptorData>>>( 143return ImmutableDictionary<string, ImmutableArray<DiagnosticDescriptor>>.Empty; 154public async Task<ImmutableArray<DiagnosticData>> GetDiagnosticsForIdsAsync( 155Project project, ImmutableArray<DocumentId> documentIds, ImmutableHashSet<string>? diagnosticIds, AnalyzerFilter analyzerFilter, bool includeLocalDocumentDiagnostics, CancellationToken cancellationToken) 160var result = await client.TryInvokeAsync<IRemoteDiagnosticAnalyzerService, ImmutableArray<DiagnosticData>>( 175public async Task<ImmutableArray<DiagnosticData>> GetProjectDiagnosticsForIdsAsync( 184var result = await client.TryInvokeAsync<IRemoteDiagnosticAnalyzerService, ImmutableArray<DiagnosticData>>( 197Project project, ImmutableArray<string> diagnosticIds, CancellationToken cancellationToken) 214public async Task<ImmutableArray<DiagnosticData>> GetDiagnosticsForSpanAsync( 225var result = await client.TryInvokeAsync<IRemoteDiagnosticAnalyzerService, ImmutableArray<DiagnosticData>>(
Diagnostics\Service\DiagnosticAnalyzerService.cs (2)
124public ImmutableArray<DiagnosticAnalyzer> GetAnalyzers(Project project) 131public async Task<ImmutableArray<DiagnosticAnalyzer>> GetDeprioritizedAnalyzersAsync(Project project)
Diagnostics\Service\DiagnosticAnalyzerService.HostAnalyzerInfo.cs (17)
25public readonly ImmutableArray<DiagnosticAnalyzer> OrderedAllAnalyzers; 72private static readonly ConditionalWeakTable<Project, StrongBox<ImmutableArray<DiagnosticAnalyzer>>> s_projectToAnalyzers = new(); 77private ImmutableArray<DiagnosticAnalyzer> GetProjectAnalyzers_OnlyCallInProcess(Project project) 95ImmutableArray<DiagnosticAnalyzer> ComputeProjectAnalyzers() 126static (ImmutableArray<ImmutableArray<DiagnosticAnalyzer>> HostAnalyzerCollection, ImmutableArray<ImmutableArray<DiagnosticAnalyzer>> ProjectAnalyzerCollection) GetAnalyzerCollections( 127ImmutableDictionary<object, ImmutableArray<DiagnosticAnalyzer>> analyzersPerReference, 135using var _1 = ArrayBuilder<ImmutableArray<DiagnosticAnalyzer>>.GetInstance(out var hostAnalyzerCollection); 136using var _2 = ArrayBuilder<ImmutableArray<DiagnosticAnalyzer>>.GetInstance(out var projectAnalyzerCollection); 155ImmutableArray<ImmutableArray<DiagnosticAnalyzer>> projectAnalyzerCollection, 156ImmutableArray<ImmutableArray<DiagnosticAnalyzer>> hostAnalyzerCollection, 170foreach (var analyzers in projectAnalyzerCollection) 179foreach (var analyzers in hostAnalyzerCollection)
Diagnostics\Service\DiagnosticAnalyzerService.IncrementalMemberEditAnalyzer.cs (20)
40private readonly record struct MemberSpans(DocumentId DocumentId, VersionStamp Version, ImmutableArray<TextSpan> Spans); 54public async Task<ImmutableDictionary<DiagnosticAnalyzer, ImmutableArray<DiagnosticData>>> ComputeDiagnosticsInProcessAsync( 56ImmutableArray<DiagnosticAnalyzer> analyzers, 115var oldMemberSpans = await GetOrCreateMemberSpansAsync(oldDocument, oldDocumentVersion, cancellationToken).ConfigureAwait(false); 119using var _ = PooledDictionary<DiagnosticAnalyzer, ImmutableArray<DiagnosticData>>.GetInstance(out var builder); 134ImmutableArray<TextSpan> oldMemberSpans, 135Dictionary<DiagnosticAnalyzer, ImmutableArray<DiagnosticData>> builder) 149ImmutableArray<TextSpan> oldMemberSpans, 150Dictionary<DiagnosticAnalyzer, ImmutableArray<DiagnosticData>> builder) 161ImmutableArray<TextSpan> oldMemberSpans, 162Dictionary<DiagnosticAnalyzer, ImmutableArray<DiagnosticData>> builder) 174ImmutableArray<TextSpan> oldMemberSpans, 175Dictionary<DiagnosticAnalyzer, ImmutableArray<DiagnosticData>> builder) 184var diagnostics = await executor.ComputeDiagnosticsInProcessAsync(analyzer, cancellationToken).ConfigureAwait(false); 190private async Task<(SyntaxNode changedMember, int changedMemberId, ImmutableArray<TextSpan> memberSpans, Document lastDocument)?> TryGetChangedMemberAsync( 214var memberSpans = members.SelectAsArray(member => member.FullSpan); 227private async Task<ImmutableArray<TextSpan>> GetOrCreateMemberSpansAsync(Document document, VersionStamp version, CancellationToken cancellationToken) 235var memberSpans = await CreateMemberSpansAsync(document, version, cancellationToken).ConfigureAwait(false); 244static async Task<ImmutableArray<TextSpan>> CreateMemberSpansAsync(Document document, VersionStamp version, CancellationToken cancellationToken) 257private void SaveMemberSpans(DocumentId documentId, VersionStamp version, ImmutableArray<TextSpan> memberSpans)
Diagnostics\Service\DocumentAnalysisExecutor_Helpers.cs (3)
78public static async Task<ImmutableArray<Diagnostic>> ComputeDocumentDiagnosticAnalyzerDiagnosticsAsync( 88ImmutableArray<Diagnostic> diagnostics; 124private static async Task VerifyDiagnosticLocationsAsync(ImmutableArray<Diagnostic> diagnostics, Project project, CancellationToken cancellationToken)
Diagnostics\Service\DocumentAnalysisExecutor.cs (10)
36private readonly ImmutableArray<DiagnosticAnalyzer> _compilationBasedAnalyzersInAnalysisScope; 76public async ValueTask<ImmutableArray<DiagnosticData>> ComputeDiagnosticsInProcessAsync( 93var documentDiagnostics = await ComputeDocumentDiagnosticAnalyzerDiagnosticsAsync( 127var diagnostics = kind switch 156var diags = await diagnostics.ToDiagnosticsAsync(textDocument.Project, cancellationToken).ConfigureAwait(false); 183async ValueTask<ImmutableArray<DiagnosticData>> GetCompilerAnalyzerDiagnosticsInProcessAsync(TextSpan? span) 198async ValueTask<ImmutableArray<DiagnosticData>> GetSyntaxDiagnosticsInProcessAsync() 231async ValueTask<ImmutableArray<DiagnosticData>> GetSemanticDiagnosticsInProcessAsync() 355async ValueTask<ImmutableArray<DiagnosticData>> RemapDiagnosticLocationsIfRequiredAsync( 356ImmutableArray<DiagnosticData> diagnostics)
DocumentationComments\AbstractDocumentationCommentFormattingService.cs (5)
39internal readonly ImmutableArray<TaggedText>.Builder Builder = ImmutableArray.CreateBuilder<TaggedText>(); 285public ImmutableArray<TaggedText> Format( 528var parts = symbol.ToMinimalDisplayParts(semanticModel, position, format); 550var typeArgs = typeResolutionSymbol.GetAllTypeArguments(); 553var parts = typeArgs[typeParameterIndex].ToMinimalDisplayParts(semanticModel, position, format);
DocumentationComments\CopilotDocumentationCommentGenerator.cs (1)
128public static async Task<ImmutableArray<DocumentationCommentEdit>> GenerateEditsAsync(
DocumentationComments\DocumentationCommentProposal.cs (2)
16public ImmutableArray<DocumentationCommentProposedEdit> ProposedEdits { get; } 18public DocumentationCommentProposal(string symbolToAnalyze, ImmutableArray<DocumentationCommentProposedEdit> proposedEdits)
DocumentationComments\IDocumentationCommentFormattingService.cs (1)
15ImmutableArray<TaggedText> Format(
DocumentHighlighting\AbstractDocumentHighlightsService.cs (14)
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); 81var tags = await GetTagsForReferencedSymbolAsync( 94private ImmutableArray<DocumentHighlights> TryGetEmbeddedLanguageHighlights( 102var result = service.Value.GetDocumentHighlights( 111private async Task<ImmutableArray<DocumentHighlights>> GetTagsForReferencedSymbolAsync( 161private async Task<ImmutableArray<DocumentHighlights>> FilterAndCreateSpansAsync( 162ImmutableArray<ReferencedSymbol> references, Document startingDocument, 173var constructorParts1 = constructor.OriginalDefinition.GetAllMethodSymbolsOfPartialParts(); 181var constructorParts2 = methodSymbol.GetAllMethodSymbolsOfPartialParts(); 205protected virtual Task<ImmutableArray<Location>> GetAdditionalReferencesAsync( 211private 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 (63)
125protected abstract IEnumerable<SequenceEdit> GetSyntaxSequenceEdits(ImmutableArray<SyntaxNode> oldNodes, ImmutableArray<SyntaxNode> newNodes); 514ImmutableArray<ActiveStatementLineSpan> newActiveStatementSpans, 636var oldActiveStatements = oldActiveStatementMap.GetOldActiveStatements(this, oldTree, oldText, oldRoot, cancellationToken); 640var newExceptionRegions = ImmutableArray.CreateBuilder<ImmutableArray<SourceFileSpan>>(oldActiveStatements.Length); 649var semanticEdits = await AnalyzeSemanticsAsync( 672var finalDiagnostics = diagnostics.GetAllDiagnostics( 714void LogRudeEdits(ImmutableArray<RudeEditDiagnostic> diagnostics, SourceText text, string filePath) 952ImmutableArray<UnmappedActiveStatement> oldActiveStatements, 953ImmutableArray<ActiveStatementLineSpan> newActiveStatementSpans, 954[In, Out] ImmutableArray<ActiveStatement>.Builder newActiveStatements, 955[In, Out] ImmutableArray<ImmutableArray<SourceFileSpan>>.Builder newExceptionRegions, 1116ImmutableArray<UnmappedActiveStatement> oldActiveStatements, 1117ImmutableArray<ActiveStatementLineSpan> newActiveStatementSpans, 1120[Out] ImmutableArray<ActiveStatement>.Builder newActiveStatements, 1121[Out] ImmutableArray<ImmutableArray<SourceFileSpan>>.Builder newExceptionRegions, 1489private static bool TryGetTrackedStatement(ImmutableArray<ActiveStatementLineSpan> activeStatementSpans, ActiveStatementId id, SourceText text, MemberBody body, [NotNullWhen(true)] out SyntaxNode? trackedStatement, out int trackedStatementPart) 1542ImmutableArray<ImmutableArray<SourceFileSpan>>.Builder newExceptionRegions, 2549protected static bool ParameterTypesEquivalent(ImmutableArray<IParameterSymbol> oldParameters, ImmutableArray<IParameterSymbol> newParameters, bool exact) 2552protected static bool ParameterDefaultValuesEquivalent(ImmutableArray<IParameterSymbol> oldParameters, ImmutableArray<IParameterSymbol> newParameters) 2555protected static bool LambdaParametersEquivalent(ImmutableArray<IParameterSymbol> oldParameters, ImmutableArray<IParameterSymbol> newParameters) 2562protected static bool CustomModifiersEquivalent(ImmutableArray<CustomModifier> oldModifiers, ImmutableArray<CustomModifier> newModifiers, bool exact) 2590protected static bool TypesEquivalent<T>(ImmutableArray<T> oldTypes, ImmutableArray<T> newTypes, bool exact) where T : ITypeSymbol 2620protected static bool TypeParametersEquivalent(ImmutableArray<ITypeParameterSymbol> oldParameters, ImmutableArray<ITypeParameterSymbol> newParameters, bool exact) 2698private async Task<ImmutableArray<SemanticEditInfo>> AnalyzeSemanticsAsync( 2701ImmutableArray<UnmappedActiveStatement> oldActiveStatements, 2702ImmutableArray<ActiveStatementLineSpan> newActiveStatementSpans, 2710ImmutableArray<ActiveStatement>.Builder newActiveStatements, 2711ImmutableArray<ImmutableArray<SourceFileSpan>>.Builder newExceptionRegions, 3779var otherMembersOfParameterName = otherContainingType.GetMembers(parameterSymbol.Name); 4042private ImmutableArray<(ISymbol? oldSymbol, ISymbol? newSymbol, EditKind editKind)> GetNamespaceSymbolEdits( 4866ImmutableArray<AttributeData>? oldAttributes, 4867ImmutableArray<AttributeData> newAttributes, 4935static void FindChangedAttributes(ImmutableArray<AttributeData>? oldAttributes, ImmutableArray<AttributeData> newAttributes, ArrayBuilder<AttributeData> changedAttributes) 4949static AttributeData? FindMatch(AttributeData attribute, ImmutableArray<AttributeData>? oldAttributes) 5451var attributes = type.GetAttributes(); 5799var oldCtors = isStatic ? type.StaticConstructors : type.InstanceConstructors; 6002out var oldInLambdaCaptures, 6003out var oldPrimaryCaptures); 6011out var newInLambdaCaptures, 6012out var newPrimaryCaptures); 6242out ImmutableArray<VariableCapture> variablesCapturedInLambdas, 6243out ImmutableArray<IParameterSymbol> primaryParametersCapturedViaThis) 6269var captures = lambdaBody.GetCapturedVariables(model.RequiredModel); 6317ImmutableArray<IParameterSymbol> oldPrimaryCaptures, 6319ImmutableArray<IParameterSymbol> newPrimaryCaptures, 6368ImmutableArray<VariableCapture> captures, 6380void MarkVariables(ImmutableArray<ISymbol> variables) 6395private static void BuildIndex(Dictionary<VariableCaptureKey, int> index, ImmutableArray<VariableCapture> array) 6414protected abstract SyntaxNode? GetSymbolDeclarationSyntax(ISymbol symbol, Func<ImmutableArray<SyntaxReference>, SyntaxReference?> selector, CancellationToken cancellationToken); 6514ImmutableArray<VariableCapture> oldCaptures, 6517ImmutableArray<VariableCapture> newCaptures,
EditAndContinue\AbstractSimpleMemberBody.cs (1)
37public override ImmutableArray<ISymbol> GetCapturedVariables(SemanticModel model)
EditAndContinue\ActiveStatementExceptionRegions.cs (2)
14public readonly ImmutableArray<SourceFileSpan> Spans; 21public 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) 121private static bool TryGetUpToDateSpan(ManagedActiveStatementDebugInfo activeStatementInfo, ImmutableDictionary<ManagedMethodId, ImmutableArray<NonRemappableRegion>> remapping, out LinePositionSpan newSpan) 140if (remapping.TryGetValue(instructionId.Method, out var regionsInMethod)) 166internal async ValueTask<ImmutableArray<UnmappedActiveStatement>> GetOldActiveStatementsAsync(IEditAndContinueAnalyzer analyzer, Document oldDocument, CancellationToken cancellationToken) 174internal ImmutableArray<UnmappedActiveStatement> GetOldActiveStatements(IEditAndContinueAnalyzer analyzer, SyntaxTree oldSyntaxTree, SourceText oldText, SyntaxNode oldRoot, CancellationToken cancellationToken) 184private ImmutableArray<UnmappedActiveStatement> CalculateOldActiveStatementsAndExceptionRegions(IEditAndContinueAnalyzer analyzer, SyntaxTree oldTree, SourceText oldText, SyntaxNode oldRoot, CancellationToken cancellationToken) 213if (DocumentPathMap.TryGetValue(targetPath, out var activeStatementsInMappedFile)) 235if (DocumentPathMap.TryGetValue(oldTree.FilePath, out var activeStatements)) 291ImmutableArray<TElement> spans,
EditAndContinue\CommittedSolution.cs (8)
121internal ImmutableArray<(DocumentId id, DocumentState state)> Test_GetDocumentStates() 138public ImmutableArray<DocumentId> GetDocumentIdsWithFilePath(string path) 329var maybePdbHasDocument = TryReadSourceFileDebugInfo(document, sourceText.Encoding, out var requiredChecksum, out var checksumAlgorithm, out var defaultEncoding); 371ImmutableArray<byte> requiredChecksum, 440private static bool IsMatchingSourceText(SourceText sourceText, ImmutableArray<byte> requiredChecksum, SourceHashAlgorithm checksumAlgorithm) 447ImmutableArray<byte> requiredChecksum, 475private bool? TryReadSourceFileDebugInfo(Document document, Encoding? documentEncoding, out ImmutableArray<byte> checksum, out SourceHashAlgorithm checksumAlgorithm, out Encoding? defaultEncoding) 520out ImmutableArray<byte> checksum,
EditAndContinue\DebuggingSession.cs (16)
127private ImmutableArray<ManagedHotReloadUpdate> _lastModuleUpdatesLog; 156nonRemappableRegions: ImmutableDictionary<ManagedMethodId, ImmutableArray<NonRemappableRegion>>.Empty, 244internal void RestartEditSession(ImmutableDictionary<ManagedMethodId, ImmutableArray<NonRemappableRegion>>? nonRemappableRegions, bool? inBreakState) 444private static ImmutableDictionary<K, ImmutableArray<V>> GroupToImmutableDictionary<K, V>(IEnumerable<IGrouping<K, V>> items) 447var builder = ImmutableDictionary.CreateBuilder<K, ImmutableArray<V>>(); 457public async ValueTask<ImmutableArray<Diagnostic>> GetDocumentDiagnosticsAsync(Document document, ActiveStatementSpanProvider activeStatementSpanProvider, CancellationToken cancellationToken) 606ImmutableDictionary<ManagedMethodId, ImmutableArray<NonRemappableRegion>>? newNonRemappableRegions = null; 704public async ValueTask<ImmutableArray<ImmutableArray<ActiveStatementSpan>>> GetBaseActiveStatementSpansAsync(Solution solution, ImmutableArray<DocumentId> documentIds, CancellationToken cancellationToken) 781var oldDocumentActiveStatements = await baseActiveStatements.GetOldActiveStatementsAsync(analyzer, oldDocument, cancellationToken).ConfigureAwait(false); 816using var _4 = ArrayBuilder<ImmutableArray<ActiveStatementSpan>>.GetInstance(out var spans); 860public async ValueTask<ImmutableArray<ActiveStatementSpan>> GetAdjustedActiveStatementSpansAsync(TextDocument mappedDocument, ActiveStatementSpanProvider activeStatementSpanProvider, CancellationToken cancellationToken) 882if (!baseActiveStatements.DocumentPathMap.TryGetValue(mappedDocument.FilePath, out var oldMappedDocumentActiveStatements)) 888var newDocumentActiveStatementSpans = await activeStatementSpanProvider(mappedDocument.Id, mappedDocument.FilePath, cancellationToken).ConfigureAwait(false); 972public ImmutableArray<IDisposable> GetBaselineModuleReaders()
EditAndContinue\DebuggingSessionTelemetry.cs (1)
18public readonly ImmutableArray<EditSessionTelemetry.Data> EditSessionData = [.. telemetry._editSessionData];
EditAndContinue\DeclarationBody.cs (1)
64public abstract ImmutableArray<ISymbol> GetCapturedVariables(SemanticModel model);
EditAndContinue\DocumentActiveStatementChanges.cs (12)
12public readonly ImmutableArray<UnmappedActiveStatement> OldStatements; 13public readonly ImmutableArray<ActiveStatement> NewStatements; 14public readonly ImmutableArray<ImmutableArray<SourceFileSpan>> NewExceptionRegions; 17ImmutableArray<UnmappedActiveStatement> oldSpans, 18ImmutableArray<ActiveStatement> newStatements, 19ImmutableArray<ImmutableArray<SourceFileSpan>> newExceptionRegions) 38out ImmutableArray<UnmappedActiveStatement> oldStatements, 39out ImmutableArray<ActiveStatement> newStatements, 40out 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, 185public static DocumentAnalysisResults Blocked(DocumentId documentId, string filePath, ImmutableArray<RudeEditDiagnostic> rudeEdits, Diagnostic? syntaxError, TimeSpan elapsedTime, bool hasChanges)
EditAndContinue\EditAndContinueCapabilities.cs (2)
83public static EditAndContinueCapabilities Parse(ImmutableArray<string> capabilities) 114public static ImmutableArray<string> ToStringArray(this EditAndContinueCapabilities capabilities)
EditAndContinue\EditAndContinueDebugInfoReader.cs (6)
42public abstract bool TryGetDocumentChecksum(string documentPath, out ImmutableArray<byte> checksum, out Guid algorithmId); 90ImmutableArray<byte> localSlots, lambdaMap, stateMachineSuspensionPoints; 111public override bool TryGetDocumentChecksum(string documentPath, out ImmutableArray<byte> checksum, out Guid algorithmId) 145private ImmutableArray<byte> GetCdiBytes(MethodDefinitionHandle methodHandle, Guid kind) 150public override bool TryGetDocumentChecksum(string documentPath, out ImmutableArray<byte> checksum, out Guid algorithmId) 246internal static bool TryGetDocumentChecksum(ISymUnmanagedReader5 symReader, string documentPath, out ImmutableArray<byte> checksum, out Guid algorithmId)
EditAndContinue\EditAndContinueDiagnosticDescriptors.cs (3)
28private static readonly ImmutableArray<DiagnosticDescriptor> s_descriptors; 217internal static ImmutableArray<DiagnosticDescriptor> GetDescriptors() 296public static bool HasBlockingRudeEdits(this ImmutableArray<RudeEditDiagnostic> diagnostics)
EditAndContinue\EditAndContinueDocumentAnalysesCache.cs (9)
27private readonly Dictionary<DocumentId, (AsyncLazy<DocumentAnalysisResults> results, Project oldProject, Document? newDocument, ImmutableArray<ActiveStatementLineSpan> activeStatementSpans)> _analyses = []; 32public async ValueTask<ImmutableArray<DocumentAnalysisResults>> GetDocumentAnalysesAsync( 75var unmappedActiveStatementSpans = await GetLatestUnmappedActiveStatementSpansAsync(oldDocument, newDocument, activeStatementSpanProvider, cancellationToken).ConfigureAwait(false); 105private async Task<ImmutableArray<ActiveStatementLineSpan>> GetLatestUnmappedActiveStatementSpansAsync(Document? oldDocument, Document? newDocument, ActiveStatementSpanProvider newActiveStatementSpanProvider, CancellationToken cancellationToken) 131var newMappedDocumentSpans = await newActiveStatementSpanProvider(newDocument.Id, newDocument.FilePath, cancellationToken).ConfigureAwait(false); 139using var _1 = PooledDictionary<string, ImmutableArray<ActiveStatementSpan>>.GetInstance(out var mappedSpansByDocumentPath); 144var oldActiveStatements = await baseActiveStatements.GetOldActiveStatementsAsync(analyzer, oldDocument, cancellationToken).ConfigureAwait(false); 149if (!mappedSpansByDocumentPath.TryGetValue(mappedFilePath, out var newMappedDocumentSpans)) 175private AsyncLazy<DocumentAnalysisResults> GetDocumentAnalysisNoLock(Project oldProject, Project newProject, Document? oldDocument, Document? newDocument, ImmutableArray<ActiveStatementLineSpan> activeStatementSpans)
EditAndContinue\EditAndContinueService.cs (9)
118private ImmutableArray<DebuggingSession> GetActiveDebuggingSessions() 126private ImmutableArray<DebuggingSession> GetDiagnosticReportingDebuggingSessions() 202public ValueTask<ImmutableArray<Diagnostic>> GetDocumentDiagnosticsAsync(Document document, ActiveStatementSpanProvider activeStatementSpanProvider, CancellationToken cancellationToken) 242public ValueTask<ImmutableArray<ImmutableArray<ActiveStatementSpan>>> GetBaseActiveStatementSpansAsync(DebuggingSessionId sessionId, Solution solution, ImmutableArray<DocumentId> documentIds, CancellationToken cancellationToken) 253public ValueTask<ImmutableArray<ActiveStatementSpan>> GetAdjustedActiveStatementSpansAsync(DebuggingSessionId sessionId, TextDocument mappedDocument, ActiveStatementSpanProvider activeStatementSpanProvider, CancellationToken cancellationToken) 258return ValueTask.FromResult(ImmutableArray<ActiveStatementSpan>.Empty); 277public ImmutableArray<DebuggingSession> GetActiveDebuggingSessions()
EditAndContinue\EditAndContinueSessionState.cs (1)
38public ImmutableArray<DiagnosticData> ApplyChangesDiagnostics { get; set; } = [];
EditAndContinue\EditSession.cs (32)
63internal readonly ImmutableDictionary<ManagedMethodId, ImmutableArray<NonRemappableRegion>> NonRemappableRegions; 90ImmutableDictionary<ManagedMethodId, ImmutableArray<NonRemappableRegion>> nonRemappableRegions, 155public async Task<string?> ReportModuleDiagnosticsAsync(Guid mvid, Project oldProject, Project newProject, ImmutableArray<DocumentAnalysisResults> documentAnalyses, ArrayBuilder<Diagnostic> diagnostics, CancellationToken cancellationToken) 174private static async IAsyncEnumerable<Location> CreateChangedLocationsAsync(Project oldProject, Project newProject, ImmutableArray<DocumentAnalysisResults> documentAnalyses, [EnumeratorCancellation] CancellationToken cancellationToken) 231var capabilities = await DebuggingSession.DebuggerService.GetCapabilitiesAsync(cancellationToken).ConfigureAwait(false); 245var debugInfos = await DebuggingSession.DebuggerService.GetActiveStatementsAsync(cancellationToken).ConfigureAwait(false); 257var newDocumentIds = newSolution.GetDocumentIdsWithFilePath(sourceFilePath); 587var generatorDiagnostics = await project.Solution.CompilationState.GetSourceGeneratorDiagnosticsAsync(project.State, cancellationToken).ConfigureAwait(false); 647private async Task<(ImmutableArray<DocumentAnalysisResults> results, Document? staleDocument)> AnalyzeProjectDifferencesAsync( 726var analyses = await Analyses.GetDocumentAnalysesAsync(DebuggingSession.LastCommittedSolution, newSolution, documents, newDocumentActiveStatementSpanProvider, cancellationToken).ConfigureAwait(false); 730private static ProjectAnalysisSummary GetProjectAnalysisSummary(ImmutableArray<DocumentAnalysisResults> documentAnalyses) 841ImmutableArray<DocumentAnalysisResults> changedDocumentAnalyses, 871var oldActiveStatements = (oldDocument == null) ? [] : 893internal static async ValueTask<(ImmutableArray<SemanticEdit> mergedEdits, ImmutableHashSet<ISymbol> addedSymbols)> MergePartialEditsAsync( 952var newMaps = partialTypeEdits.SelectAsArray( 1133using var _2 = ArrayBuilder<(Guid ModuleId, ImmutableArray<(ManagedModuleMethodId Method, NonRemappableRegion Region)>)>.GetInstance(out var nonRemappableRegions); 1414var requiredCapabilities = projectChanges.RequiredCapabilities.ToStringArray(); 1480var updatedMethodTokens = emitResult.UpdatedMethods.SelectAsArray(h => MetadataTokens.GetToken(h)); 1481var changedTypeTokens = emitResult.ChangedTypes.SelectAsArray(h => MetadataTokens.GetToken(h)); 1490out var activeStatementsInUpdatedMethods, 1491out var moduleNonRemappableRegions, 1492out var exceptionRegionUpdates); 1582var diagnostics = diagnosticBuilders.SelectAsArray(entry => new ProjectDiagnostics(entry.Key, entry.Value.ToImmutableAndFree())); 1599var updates = deltas.ToImmutable(); 1608out var projectsToRebuild); 1676ImmutableArray<int> updatedMethodTokens, 1677ImmutableDictionary<ManagedMethodId, ImmutableArray<NonRemappableRegion>> previousNonRemappableRegions, 1678ImmutableArray<DocumentActiveStatementChanges> activeStatementsInChangedDocuments, 1679out ImmutableArray<ManagedActiveStatementUpdate> activeStatementsInUpdatedMethods, 1680out ImmutableArray<(ManagedModuleMethodId Method, NonRemappableRegion Region)> nonRemappableRegions, 1681out ImmutableArray<ManagedExceptionRegionUpdate> exceptionRegionUpdates) 1697var newActiveStatementExceptionRegions = newExceptionRegions[i];
EditAndContinue\EditSessionTelemetry.cs (5)
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(); 143public void LogRudeEditDiagnostics(ImmutableArray<RudeEditDiagnostic> diagnostics, Guid projectTelemetryId)
EditAndContinue\EmitSolutionUpdateResults.cs (24)
32public required ImmutableArray<DiagnosticData> Diagnostics { get; init; } 38public required ImmutableDictionary<ProjectId, ImmutableArray<ProjectId>> ProjectsToRestart { get; init; } 41public required ImmutableArray<ProjectId> ProjectsToRebuild { get; init; } 44public required ImmutableArray<ProjectId> ProjectsToRedeploy { get; init; } 46internal ImmutableArray<ManagedHotReloadDiagnostic> GetAllDiagnostics() 85ImmutableArray<DiagnosticData> diagnostics = []; 117ProjectsToRestart = ImmutableDictionary<ProjectId, ImmutableArray<ProjectId>>.Empty, 142public required ImmutableArray<ProjectDiagnostics> Diagnostics { get; init; } 149public required ImmutableDictionary<ProjectId, ImmutableArray<ProjectId>> ProjectsToRestart { get; init; } 156public required ImmutableArray<ProjectId> ProjectsToRebuild { get; init; } 162public required ImmutableArray<ProjectId> ProjectsToRedeploy { get; init; } 172ProjectsToRestart = ImmutableDictionary<ProjectId, ImmutableArray<ProjectId>>.Empty, 214ImmutableArray<ManagedHotReloadUpdate> moduleUpdates, 215ImmutableArray<ProjectDiagnostics> diagnostics, 218out ImmutableDictionary<ProjectId, ImmutableArray<ProjectId>> projectsToRestart, 219out ImmutableArray<ProjectId> projectsToRebuild) 252using var _3 = ArrayBuilder<(ProjectId projectWithRudeEdits, ImmutableArray<ProjectId> impactedRunningProjects)>.GetInstance(out var impactedRunningProjectMap); 401private static void ClassifyRudeEdits(ImmutableArray<Diagnostic> diagnostics, out bool blocking, out bool noEffect) 418public ImmutableArray<Diagnostic> GetAllDiagnostics() 438public ImmutableArray<(ProjectId projectId, ImmutableArray<Diagnostic> diagnostics)> GetTransientDiagnostics() 440using var _ = ArrayBuilder<(ProjectId projectId, ImmutableArray<Diagnostic> diagnostics)>.GetInstance(out var result); 444var transientDiagnostics = diagnostics.WhereAsArray(static d => d.IsEncDiagnostic()); 457public ImmutableArray<Diagnostic> GetPersistentDiagnostics()
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)
23ImmutableArray<ActiveStatementLineSpan> newActiveStatementSpans,
EditAndContinue\IEditAndContinueService.cs (5)
20ValueTask<ImmutableArray<Diagnostic>> GetDocumentDiagnosticsAsync(Document document, ActiveStatementSpanProvider activeStatementSpanProvider, CancellationToken cancellationToken); 30ValueTask<ImmutableArray<ImmutableArray<ActiveStatementSpan>>> GetBaseActiveStatementSpansAsync(DebuggingSessionId sessionId, Solution solution, ImmutableArray<DocumentId> documentIds, CancellationToken cancellationToken); 31ValueTask<ImmutableArray<ActiveStatementSpan>> GetAdjustedActiveStatementSpansAsync(DebuggingSessionId sessionId, TextDocument document, ActiveStatementSpanProvider activeStatementSpanProvider, CancellationToken cancellationToken);
EditAndContinue\IEditAndContinueSessionTracker.cs (1)
26ImmutableArray<DiagnosticData> ApplyChangesDiagnostics { get; }
EditAndContinue\IPdbMatchingSourceTextProvider.cs (2)
15ValueTask<string?> TryGetMatchingSourceTextAsync(string filePath, ImmutableArray<byte> requiredChecksum, SourceHashAlgorithm checksumAlgorithm, CancellationToken cancellationToken); 26public ValueTask<string?> TryGetMatchingSourceTextAsync(string filePath, ImmutableArray<byte> requiredChecksum, SourceHashAlgorithm checksumAlgorithm, CancellationToken cancellationToken)
EditAndContinue\MemberBody.cs (1)
61public IEnumerable<int> GetOverlappingActiveStatementIndices(ImmutableArray<UnmappedActiveStatement> statements)
EditAndContinue\ModuleUpdate.cs (1)
14[property: DataMember(Order = 1)] ImmutableArray<ManagedHotReloadUpdate> Updates);
EditAndContinue\PdbMatchingSourceTextProvider.cs (1)
119public async ValueTask<string?> TryGetMatchingSourceTextAsync(string filePath, ImmutableArray<byte> requiredChecksum, SourceHashAlgorithm checksumAlgorithm, CancellationToken cancellationToken)
EditAndContinue\PendingSolutionUpdate.cs (12)
12ImmutableArray<ProjectBaseline> projectBaselines, 13ImmutableArray<ManagedHotReloadUpdate> deltas) 15public readonly ImmutableArray<ProjectBaseline> ProjectBaselines = projectBaselines; 16public readonly ImmutableArray<ManagedHotReloadUpdate> Deltas = deltas; 22ImmutableArray<ProjectId> projectsToRebuild, 23ImmutableArray<ProjectBaseline> projectBaselines, 24ImmutableArray<ManagedHotReloadUpdate> deltas, 25ImmutableArray<(Guid ModuleId, ImmutableArray<(ManagedModuleMethodId Method, NonRemappableRegion Region)>)> nonRemappableRegions) : PendingUpdate(projectBaselines, deltas) 29public readonly ImmutableArray<ProjectId> ProjectsToRebuild = projectsToRebuild; 30public 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\DebuggingSessionProxy.cs (7)
114public async ValueTask<ImmutableArray<ImmutableArray<ActiveStatementSpan>>> GetBaseActiveStatementSpansAsync(Solution solution, ImmutableArray<DocumentId> documentIds, CancellationToken cancellationToken) 122var result = await client.TryInvokeAsync<IRemoteEditAndContinueService, ImmutableArray<ImmutableArray<ActiveStatementSpan>>>( 130public async ValueTask<ImmutableArray<ActiveStatementSpan>> GetAdjustedActiveStatementSpansAsync(TextDocument document, ActiveStatementSpanProvider activeStatementSpanProvider, CancellationToken cancellationToken) 144var result = await client.TryInvokeAsync<IRemoteEditAndContinueService, ImmutableArray<ActiveStatementSpan>>(
EditAndContinue\Remote\IRemoteEditAndContinueService.cs (9)
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); 49ValueTask<ImmutableArray<ImmutableArray<ActiveStatementSpan>>> GetBaseActiveStatementSpansAsync(Checksum solutionChecksum, DebuggingSessionId sessionId, ImmutableArray<DocumentId> documentIds, CancellationToken cancellationToken); 50ValueTask<ImmutableArray<ActiveStatementSpan>> GetAdjustedActiveStatementSpansAsync(Checksum solutionChecksum, RemoteServiceCallbackId callbackId, DebuggingSessionId sessionId, DocumentId documentId, CancellationToken cancellationToken);
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) 152public async ValueTask<ImmutableArray<DiagnosticData>> GetDocumentDiagnosticsAsync(Document document, ActiveStatementSpanProvider activeStatementSpanProvider, CancellationToken cancellationToken) 163var diagnostics = await GetLocalService().GetDocumentDiagnosticsAsync(document, activeStatementSpanProvider, cancellationToken).ConfigureAwait(false); 167var diagnosticData = await client.TryInvokeAsync<IRemoteEditAndContinueService, ImmutableArray<DiagnosticData>>(
EditAndContinue\RudeEditDiagnosticsBuilder.cs (1)
44public ImmutableArray<RudeEditDiagnostic> GetAllDiagnostics(Func<RudeEditDiagnostic, RudeEditReportingCondition, bool> includeDeferred)
EditAndContinue\RunningProjectOptions.cs (1)
26this ImmutableArray<TInfo> runningProjects,
EditAndContinue\SolutionUpdate.cs (16)
15ImmutableArray<(Guid ModuleId, ImmutableArray<(ManagedModuleMethodId Method, NonRemappableRegion Region)>)> nonRemappableRegions, 16ImmutableArray<ProjectBaseline> projectBaselines, 17ImmutableArray<ProjectDiagnostics> diagnostics, 19ImmutableDictionary<ProjectId, ImmutableArray<ProjectId>> projectsToRestart, 20ImmutableArray<ProjectId> projectsToRebuild, 21ImmutableArray<ProjectId> projectsToRedeploy) 25public readonly ImmutableArray<(Guid ModuleId, ImmutableArray<(ManagedModuleMethodId Method, NonRemappableRegion Region)>)> NonRemappableRegions = nonRemappableRegions; 26public readonly ImmutableArray<ProjectBaseline> ProjectBaselines = projectBaselines; 29public readonly ImmutableArray<ProjectDiagnostics> Diagnostics = diagnostics; 31public readonly ImmutableDictionary<ProjectId, ImmutableArray<ProjectId>> ProjectsToRestart = projectsToRestart; 32public readonly ImmutableArray<ProjectId> ProjectsToRebuild = projectsToRebuild; 33public readonly ImmutableArray<ProjectId> ProjectsToRedeploy = projectsToRedeploy; 36ImmutableArray<ProjectDiagnostics> diagnostics, 47projectsToRestart: ImmutableDictionary<ProjectId, ImmutableArray<ProjectId>>.Empty,
EditAndContinue\TraceLog.cs (1)
78public void Write(DebuggingSessionId sessionId, ImmutableArray<byte> bytes, string directory, string fileName)
EmbeddedLanguages\AbstractEmbeddedLanguageFeatureService.cs (7)
32private readonly ImmutableArray<Lazy<TService, EmbeddedLanguageMetadata>> _legacyServices; 39private readonly ImmutableDictionary<string, ImmutableArray<Lazy<TService, EmbeddedLanguageMetadata>>> _identifierToServices; 58var orderedFeatureProviders = ExtensionOrderer.Order(allServices).WhereAsArray(c => c.Metadata.Languages.Contains(languageName)); 78var languageIdentifiers = _identifierToServices.Keys.ToImmutableArray(); 92private static EmbeddedLanguageCommentDetector GetCommentDetector(ImmutableArray<string> languageIdentifiers) 108protected (ImmutableArray<Lazy<TService, EmbeddedLanguageMetadata>> services, string? identifier) 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 (2)
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)
EmbeddedLanguages\Classification\AbstractFallbackEmbeddedLanguageClassifier.cs (1)
15private readonly ImmutableArray<int> _supportedKinds;
EmbeddedLanguages\DateAndTime\LanguageServices\DateAndTimeLanguageDetector.cs (2)
28public ImmutableArray<string> LanguageIdentifiers => ["Date", "Time", "DateTime", "DateTimeFormat"]; 171var parameters = method.Parameters;
EmbeddedLanguages\EmbeddedLanguageCommentDetector.cs (1)
25public EmbeddedLanguageCommentDetector(ImmutableArray<string> identifiers)
EmbeddedLanguages\EmbeddedLanguageDetector.cs (1)
18ImmutableArray<string> languageIdentifiers,
EmbeddedLanguages\EmbeddedLanguageInfo.cs (1)
40public 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)
41var leadingTrivia = ScanTrivia(leading: true); 52var trailingTrivia = ScanTrivia(leading: false); 194private 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)
122var arraySequence = this.ParseSequence(); 163var sequence = compilationUnit.Sequence; 291private static EmbeddedDiagnostic? GetFirstDiagnostic(ImmutableArray<JsonTrivia> list) 303private ImmutableArray<JsonValueNode> ParseSequence() 317private ImmutableArray<JsonValueNode> ParseSequenceWorker()
EmbeddedLanguages\Json\JsonParser.JsonNetSyntaxChecks.cs (1)
159private static EmbeddedDiagnostic? CheckCommasBetweenSequenceElements(ImmutableArray<JsonValueNode> sequence)
EmbeddedLanguages\Json\JsonParser.StrictSyntaxChecker.cs (2)
68ImmutableArray<JsonTrivia> triviaList, bool allowComments) 128ImmutableArray<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 54Document 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)
33public 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 (4)
57var trivia = ScanLeadingTrivia(allowTrivia, options); 97private ImmutableArray<RegexTrivia> ScanLeadingTrivia(bool allowTrivia, RegexOptions options) 163var diagnostics = ImmutableArray.Create(new EmbeddedDiagnostic( 343: CreateToken(RegexKind.OptionsToken, ImmutableArray<RegexTrivia>.Empty, GetSubPatternToCurrentPos(start));
EmbeddedLanguages\RegularExpressions\RegexNodes.cs (2)
55internal sealed class RegexSequenceNode(ImmutableArray<RegexExpressionNode> children) : RegexExpressionNode(RegexKind.Sequence) 57public ImmutableArray<RegexExpressionNode> Children { get; } = children;
EmbeddedLanguages\RegularExpressions\RegexParser.cs (1)
226HashSet<EmbeddedDiagnostic> seenDiagnostics, ImmutableArray<EmbeddedDiagnostic> from, ArrayBuilder<EmbeddedDiagnostic> to)
EmbeddedLanguages\RegularExpressions\RegexTree.cs (1)
15ImmutableArray<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)
414public static StackFrameToken CreateToken(StackFrameKind kind, ImmutableArray<StackFrameTrivia> leadingTrivia, VirtualCharSequence virtualChars) 417public static StackFrameToken CreateToken(StackFrameKind kind, ImmutableArray<StackFrameTrivia> leadingTrivia, VirtualCharSequence virtualChars, ImmutableArray<StackFrameTrivia> trailingTrivia) 423private static StackFrameTrivia CreateTrivia(StackFrameKind kind, VirtualCharSequence virtualChars, ImmutableArray<EmbeddedDiagnostic> diagnostics) 430private static ImmutableArray<StackFrameTrivia> CreateTrivia(params StackFrameTrivia?[] triviaArray) 548private static readonly ImmutableArray<Language> s_languages =
EmbeddedLanguages\StackFrame\StackFrameNodeDefinitions.cs (4)
361public ImmutableArray<StackFrameArrayRankSpecifier> ArrayRankSpecifiers; 363public StackFrameArrayTypeNode(StackFrameNameNode typeIdentifier, ImmutableArray<StackFrameArrayRankSpecifier> arrayRankSpecifiers) : base(StackFrameKind.ArrayTypeExpression) 387public readonly ImmutableArray<StackFrameToken> CommaTokens; 389public StackFrameArrayRankSpecifier(StackFrameToken openBracket, StackFrameToken closeBracket, ImmutableArray<StackFrameToken> commaTokens)
EmbeddedLanguages\StackFrame\StackFrameParser.cs (2)
541private Result<ImmutableArray<StackFrameArrayRankSpecifier>> ParseArrayRankSpecifiers() 560return Result<ImmutableArray<StackFrameArrayRankSpecifier>>.Abort;
Emit\CompilationOutputFilesWithImplicitPdbPath.cs (1)
56var debugDirectory = peReader.ReadDebugDirectory();
EncapsulateField\AbstractEncapsulateFieldService.cs (14)
42protected abstract Task<ImmutableArray<IFieldSymbol>> GetFieldsAsync(Document document, TextSpan span, CancellationToken cancellationToken); 47var fields = await GetFieldsAsync(document, span, cancellationToken).ConfigureAwait(false); 58public async Task<ImmutableArray<CodeAction>> GetEncapsulateFieldCodeActionsAsync(Document document, TextSpan span, CancellationToken cancellationToken) 60var fields = await GetFieldsAsync(document, span, cancellationToken).ConfigureAwait(false); 82private ImmutableArray<CodeAction> EncapsulateAllFields(Document document, ImmutableArray<IFieldSymbol> fields) 94private ImmutableArray<CodeAction> EncapsulateOneField(Document document, IFieldSymbol field) 96var fields = ImmutableArray.Create(field); 111Document document, ImmutableArray<IFieldSymbol> fields, 122var fieldSymbolKeys = fields.SelectAsArray(f => SymbolKey.CreateString(f, cancellationToken)); 124var result = await client.TryInvokeAsync<IRemoteEncapsulateFieldService, ImmutableArray<(DocumentId, ImmutableArray<TextChange>)>>( 141private async Task<Solution> EncapsulateFieldsInCurrentProcessAsync(Document document, ImmutableArray<IFieldSymbol> fields, bool updateReferences, CancellationToken cancellationToken) 237var linkedDocumentIds = document.GetLinkedDocumentIds();
EncapsulateField\EncapsulateFieldRefactoringProvider.cs (1)
23var actions = await service.GetEncapsulateFieldCodeActionsAsync(document, textSpan, cancellationToken).ConfigureAwait(false);
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)
14ValueTask<ImmutableArray<(DocumentId, ImmutableArray<TextChange>)>> EncapsulateFieldsAsync( 17ImmutableArray<string> fieldSymbolKeys,
Extensions\ExtensionMessageHandlerService.cs (5)
18using CachedHandlers = Dictionary<string, AsyncLazy<ImmutableArray<IExtensionMessageHandlerWrapper>>>; 19using HandlerWrappers = ImmutableArray<IExtensionMessageHandlerWrapper>; 189AsyncLazy<HandlerWrappers> lazyHandlers; 207var handlers = await lazyHandlers.GetValueAsync(cancellationToken).ConfigureAwait(false); 248private HandlerWrappers ComputeHandlers(string messageName, bool isSolution, CancellationToken cancellationToken)
Extensions\IExtensionMessageHandlerFactory.cs (2)
24ImmutableArray<IExtensionMessageHandlerWrapper<Solution>> CreateWorkspaceMessageHandlers( 34ImmutableArray<IExtensionMessageHandlerWrapper<Document>> CreateDocumentMessageHandlers(
Extensions\IExtensionMessageHandlerService.cs (2)
16[property: DataMember(Order = 0)] ImmutableArray<string> WorkspaceMessageHandlers, 17[property: DataMember(Order = 1)] ImmutableArray<string> DocumentMessageHandlers,
ExternalAccess\Pythia\Api\PythiaCompletionProviderBase.cs (4)
25ImmutableArray<SymbolDisplayPart> description, 30ImmutableArray<string> tags = default, 44ImmutableArray<string> tags = default) 48public 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=> ValueTask.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(_, _, _) => ValueTask.FromResult(ImmutableArray<ActiveStatementSpan>.Empty); 62public async Task StartSessionAsync(Solution solution, ImmutableArray<string> capabilities, CancellationToken cancellationToken) 80/// where <paramref name="commitUpdates"/> was `true` or the one passed to <see cref="StartSessionAsync(Solution, ImmutableArray{string}, CancellationToken)"/> 88public async Task<(ImmutableArray<Update> updates, ImmutableArray<Diagnostic> diagnostics)> EmitSolutionUpdateAsync(Solution solution, bool commitUpdates, CancellationToken cancellationToken) 109var diagnostics = results.GetAllDiagnostics(); 115var updates = results.ModuleUpdates.Updates.SelectAsArray(
ExternalAccess\UnitTesting\API\UnitTestingSearchHelpers.cs (4)
48public static async Task<ImmutableArray<UnitTestingDocumentSpan>> GetSourceLocationsAsync( 58var locations = await client.TryInvokeAsync<IRemoteUnitTestingSearchService, ImmutableArray<UnitTestingSourceLocation>>( 152private static async Task<ImmutableArray<UnitTestingDocumentSpan>> GetSourceLocationsInProcessAsync( 174var streams = project.Documents.SelectAsArray(d => GetSourceLocationsInProcessAsync(d, comparer, container, symbolName, symbolArity, query, cancellationToken));
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)
540internal void WaitUntilCompletion(ImmutableArray<IUnitTestingIncrementalAnalyzer> workers)
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingIncrementalAnalyzerProcessor.cs (11)
57var lazyAllAnalyzers = new Lazy<ImmutableArray<IUnitTestingIncrementalAnalyzer>>(() => GetIncrementalAnalyzers(_registration, analyzersGetter, onlyHighPriorityAnalyzer: false)); 66private static ImmutableArray<IUnitTestingIncrementalAnalyzer> GetIncrementalAnalyzers(UnitTestingRegistration registration, UnitTestingAnalyzersGetter analyzersGetter, bool onlyHighPriorityAnalyzer) 68var orderedAnalyzers = analyzersGetter.GetOrderedAnalyzers(registration.WorkspaceKind, registration.Services, 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)
30Lazy<ImmutableArray<IUnitTestingIncrementalAnalyzer>> lazyAnalyzers, 117private async Task ProcessProjectAsync(ImmutableArray<IUnitTestingIncrementalAnalyzer> analyzers, UnitTestingWorkItem workItem, CancellationToken cancellationToken) 194internal 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\UnitTestingFeaturesReferencesService.cs (3)
17Task<ImmutableArray<ReferenceMethodDescriptor>?> FindReferenceMethodsAsync( 31public static async Task<ImmutableArray<(string MethodFullyQualifedName, string MethodOutputFilePath)>> GetCallerMethodsAsync( 39var callerMethods = await callback.InvokeAsync<ImmutableArray<ReferenceMethodDescriptor>?>(
ExternalAccess\UnitTesting\UnitTestingStackTraceServiceAccessor.cs (1)
44public async Task<ImmutableArray<UnitTestingParsedFrameWrapper>> TryParseAsync(string input, Workspace workspace, CancellationToken cancellationToken)
ExternalAccess\VSTypeScript\Api\IVSTypeScriptClassificationService.cs (1)
16Task AddSemanticClassificationsAsync(Document document, ImmutableArray<TextSpan> textSpans, List<ClassifiedSpan> result, CancellationToken cancellationToken);
ExternalAccess\VSTypeScript\Api\IVSTypeScriptCommentSlectionServiceImplementation.cs (1)
19Task<Document> FormatAsync(Document document, ImmutableArray<TextSpan> changes, 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\VSTypeScriptCompletionServiceWithProviders.cs (1)
43var filteredItems = FilterItems(document, matchResults.SelectAsArray(item => item.CompletionItem), filterText);
ExternalAccess\VSTypeScript\Api\VSTypeScriptDefinitionItemBase.cs (2)
14protected VSTypeScriptDefinitionItemBase(ImmutableArray<string> tags, ImmutableArray<TaggedText> displayParts)
ExternalAccess\VSTypeScript\Api\VSTypeScriptDiagnosticData.cs (1)
31public ImmutableArray<string> CustomTags
ExternalAccess\VSTypeScript\Api\VSTypeScriptDocumentHighlightsServiceBase.cs (2)
18protected abstract Task<ImmutableArray<DocumentHighlights>> GetDocumentHighlightsAsync( 21Task<ImmutableArray<DocumentHighlights>> IDocumentHighlightsService.GetDocumentHighlightsAsync(
ExternalAccess\VSTypeScript\Api\VSTypeScriptSignatureHelpProviderBase.cs (4)
19public ImmutableArray<char> TriggerCharacters 35public ImmutableArray<char> RetriggerCharacters 60public virtual ImmutableArray<char> TypeScriptTriggerCharacters { get; } = []; 62public virtual ImmutableArray<char> TypeScriptRetriggerCharacters { get; } = [];
ExternalAccess\VSTypeScript\VSTypeScriptClassificationService.cs (4)
30public void AddSyntacticClassifications(SolutionServices services, SyntaxNode? root, ImmutableArray<TextSpan> textSpans, SegmentedList<ClassifiedSpan> result, CancellationToken cancellationToken) 34public Task AddSyntacticClassificationsAsync(Document document, ImmutableArray<TextSpan> textSpans, SegmentedList<ClassifiedSpan> result, CancellationToken cancellationToken) 37public Task AddEmbeddedLanguageClassificationsAsync(Document document, ImmutableArray<TextSpan> textSpans, ClassificationOptions options, SegmentedList<ClassifiedSpan> result, CancellationToken cancellationToken) 49public async Task AddSemanticClassificationsAsync(Document document, ImmutableArray<TextSpan> textSpans, ClassificationOptions options, SegmentedList<ClassifiedSpan> result, CancellationToken cancellationToken)
ExternalAccess\VSTypeScript\VSTypeScriptNavigableItemWrapper.cs (2)
18public ImmutableArray<TaggedText> DisplayTaggedParts => _navigableItem.DisplayTaggedParts; 30public ImmutableArray<INavigableItem> ChildItems
ExternalAccess\VSTypeScript\VSTypeScriptNavigateToSearchService.cs (8)
38Func<ImmutableArray<INavigateToSearchResult>, Task> onResultsFound, 43var results = await _searchService.SearchDocumentAsync(document, searchPattern, kinds, cancellationToken).ConfigureAwait(false); 51ImmutableArray<Project> projects, 52ImmutableArray<Document> priorityDocuments, 56Func<ImmutableArray<INavigateToSearchResult>, Task> onResultsFound, 79var results = await _searchService.SearchProjectAsync( 123public ImmutableArray<TextSpan> NameMatchSpans => _result.NameMatchSpans; 131public ImmutableArray<PatternMatch> Matches => NavigateToSearchResultHelpers.GetMatches(this);
ExternalAccess\VSTypeScript\VSTypeScriptTaskListService.cs (3)
24public async Task<ImmutableArray<TaskListItem>> GetTaskListItemsAsync(Document document, ImmutableArray<TaskListItemDescriptor> descriptors, CancellationToken cancellationToken) 29var result = await _impl.GetTaskListItemsAsync(
ExtractClass\AbstractExtractClassRefactoringProvider.cs (4)
22protected abstract Task<ImmutableArray<SyntaxNode>> GetSelectedNodesAsync(CodeRefactoringContext context); 54var selectedMemberNodes = await GetSelectedNodesAsync(context).ConfigureAwait(false); 62var memberNodeSymbolPairs = selectedMemberNodes 73var selectedMembers = memberNodeSymbolPairs.SelectAsArray(pair => pair.symbol);
ExtractClass\ExtractClassOptions.cs (2)
13ImmutableArray<ExtractClassMemberAnalysisResult> memberAnalysisResults) 18public ImmutableArray<ExtractClassMemberAnalysisResult> MemberAnalysisResults { get; } = memberAnalysisResults;
ExtractClass\ExtractClassWithDialogCodeAction.cs (4)
32ImmutableArray<ISymbol> selectedMembers, 36private readonly ImmutableArray<ISymbol> _selectedMembers = selectedMembers; 145ImmutableArray<ExtractClassMemberAnalysisResult> memberAnalysisResults, 229ImmutableArray<ExtractClassMemberAnalysisResult> memberAnalysisResults,
ExtractClass\IExtractClassOptionsService.cs (1)
17ImmutableArray<ISymbol> selectedMembers,
ExtractInterface\AbstractExtractInterfaceService.cs (6)
48public async Task<ImmutableArray<ExtractInterfaceCodeAction>> GetExtractInterfaceCodeActionAsync(Document document, TextSpan span, CancellationToken cancellationToken) 98var extractableMembers = typeToExtractFrom.GetMembers().WhereAsArray(IsExtractableMember); 257ImmutableArray<ISymbol> extractableMembers, 262var conflictingTypeNames = type.ContainingNamespace.GetAllTypes(cancellationToken).SelectAsArray(t => t.Name); 312ImmutableArray<DocumentId> documentIds, 367private static ImmutableArray<ISymbol> CreateInterfaceMembers(IEnumerable<ISymbol> includedMembers)
ExtractInterface\ExtractInterfaceCodeRefactoringProvider.cs (1)
32var actions = await service.GetExtractInterfaceCodeActionAsync(document, textSpan, cancellationToken).ConfigureAwait(false);
ExtractInterface\ExtractInterfaceOptionsResult.cs (2)
22public ImmutableArray<ISymbol> IncludedMembers { get; } 27public ExtractInterfaceOptionsResult(bool isCancelled, ImmutableArray<ISymbol> includedMembers, string interfaceName, string fileName, ExtractLocation location)
ExtractInterface\ExtractInterfaceTypeAnalysisResult.cs (2)
18public readonly ImmutableArray<ISymbol> ExtractableMembers; 26ImmutableArray<ISymbol> extractableMembers,
ExtractInterface\IExtractInterfaceOptionsService.cs (2)
14ImmutableArray<ISymbol> extractableMembers, 16ImmutableArray<string> conflictingTypeNames,
ExtractMethod\ExtractMethodResult.cs (2)
23public ImmutableArray<string> Reasons { get; } 29ImmutableArray<string> reasons,
ExtractMethod\MethodExtractor.Analyzer.cs (19)
127var typeParametersInConstraintList = GetMethodTypeParametersInConstraintList(variableInfoMap, symbolMap, sortedMap); 128var typeParametersInDeclaration = GetMethodTypeParametersInDeclaration(returnType, sortedMap); 146private (ImmutableArray<VariableInfo> finalOrderedVariableInfos, ITypeSymbol returnType, bool returnsByRef) 149var allVariableInfos = symbolMap.Values.Order().ToImmutableArray(); 164var finalOrderedVariableInfos = MarkVariableInfosToUseAsReturnValueIfPossible( 166var variablesToUseAsReturnValue = finalOrderedVariableInfos.WhereAsArray(v => v.UseAsReturnValue); 197ITypeSymbol GetReturnType(ImmutableArray<VariableInfo> variablesToUseAsReturnValue) 222ImmutableArray<VariableInfo> variables, 230var namesWithAnonymousTypes = variables.SelectAsArray(v => v.OriginalTypeHadAnonymousTypeOrDelegate, v => v.Name ?? string.Empty); 310private ImmutableArray<VariableInfo> MarkVariableInfosToUseAsReturnValueIfPossible( 311ImmutableArray<VariableInfo> variableInfos, bool hasFlowControlResult) 348ImmutableArray<VariableInfo> variableInfo, 523PooledDisposer<PooledHashSet<ISymbol>> GetPooledSymbolSet(ImmutableArray<ISymbol> symbols, out PooledHashSet<ISymbol> symbolSet) 762var constraintTypes = typeParameter.ConstraintTypes; 784private ImmutableArray<ITypeParameterSymbol> GetMethodTypeParametersInConstraintList( 807var constraintTypes = typeParameter.ConstraintTypes; 832var parameters = constructedType.GetAllTypeParameters(); 833var arguments = constructedType.GetAllTypeArguments(); 860private ImmutableArray<ITypeParameterSymbol> GetMethodTypeParametersInDeclaration(ITypeSymbol returnType, SortedDictionary<int, ITypeParameterSymbol> sortedMap)
ExtractMethod\MethodExtractor.AnalyzerResult.cs (8)
23ImmutableArray<ITypeParameterSymbol> typeParametersInDeclaration, 24ImmutableArray<ITypeParameterSymbol> typeParametersInConstraintList, 25ImmutableArray<VariableInfo> variables, 33public ImmutableArray<ITypeParameterSymbol> MethodTypeParametersInDeclaration { get; } = typeParametersInDeclaration; 34public ImmutableArray<ITypeParameterSymbol> MethodTypeParametersInConstraintList { get; } = typeParametersInConstraintList; 35public ImmutableArray<VariableInfo> VariablesToUseAsReturnValue { get; } = variables.WhereAsArray(v => v.UseAsReturnValue); 65public ImmutableArray<VariableInfo> Variables { get; } = variables; 67public ImmutableArray<VariableInfo> GetVariablesToSplitOrMoveIntoMethodDefinition()
ExtractMethod\MethodExtractor.CodeGenerator.cs (20)
50public abstract OperationStatus<ImmutableArray<SyntaxNode>> GetNewMethodStatements( 115ImmutableArray<VariableInfo> variables, TExpressionSyntax initialValue, ExtractMethodFlowControlInformation flowControlInformation, CancellationToken cancellationToken); 122ImmutableArray<VariableInfo> variables, TExpressionSyntax right); 130protected abstract ImmutableArray<TStatementSyntax> GetInitialStatementsForMethodDefinitions(); 245protected ImmutableArray<TStatementSyntax> AddReturnIfUnreachable( 246ImmutableArray<TStatementSyntax> statements, CancellationToken cancellationToken) 274ImmutableArray<TExpressionSyntax> expressions) 280private TExpressionSyntax CreateReturnExpression(ImmutableArray<TExpressionSyntax> expressions) 289protected async Task<ImmutableArray<TStatementSyntax>> AddInvocationAtCallSiteAsync( 290ImmutableArray<TStatementSyntax> statements, CancellationToken cancellationToken) 307protected ImmutableArray<TStatementSyntax> AddAssignmentStatementToCallSite( 308ImmutableArray<TStatementSyntax> statements, 318var variables = AnalyzerResult.VariablesToUseAsReturnValue; 332protected ImmutableArray<TStatementSyntax> CreateDeclarationStatements( 333ImmutableArray<VariableInfo> variables, CancellationToken cancellationToken) 339protected ImmutableArray<TStatementSyntax> AddSplitOrMoveDeclarationOutStatementsToCallSite( 356protected ImmutableArray<TStatementSyntax> AppendReturnStatementIfNeeded(ImmutableArray<TStatementSyntax> statements) 402protected ImmutableArray<ITypeParameterSymbol> CreateMethodTypeParameters() 427protected ImmutableArray<IParameterSymbol> CreateMethodParameters()
ExtractMethod\MethodExtractor.cs (3)
156var formattingRules = GetFormattingRules(document); 177var exitPoints = originalSelectionResult.IsExtractMethodOnExpression 200private ImmutableArray<AbstractFormattingRule> GetFormattingRules(Document document)
ExtractMethod\OperationStatus.cs (3)
18private OperationStatus(bool succeeded, ImmutableArray<string> reasons) 30var reasons = reason == null ? Reasons : Reasons.Concat(reason); 46public ImmutableArray<string> Reasons { get; }
ExtractMethod\SelectionResult.cs (5)
60public abstract ImmutableArray<TExecutableStatementSyntax> GetOuterReturnStatements(SyntaxNode commonRoot, ImmutableArray<SyntaxNode> jumpsOutOfRegion); 61public abstract bool IsFinalSpanSemanticallyValidSpan(ImmutableArray<TExecutableStatementSyntax> returnStatements, CancellationToken cancellationToken); 62public abstract bool ContainsUnsupportedExitPointsStatements(ImmutableArray<SyntaxNode> exitPoints); 289var returnStatements = GetOuterReturnStatements(firstStatement.GetCommonRoot(lastStatement), controlFlowAnalysisData.ExitPoints);
FindUsages\AbstractFindUsagesService_FindImplementations.cs (9)
77var implementations = await FindSourceImplementationsAsync(solution, symbol, cancellationToken).ConfigureAwait(false); 94private static async Task<ImmutableArray<ISymbol>> FindSourceImplementationsAsync( 101var linkedSymbols = await SymbolFinder.FindLinkedSymbolsAsync( 114var implementations = await FindImplementationsWorkerAsync( 141private static async Task<ImmutableArray<ISymbol>> FindImplementationsWorkerAsync( 144var implementations = await FindSourceAndMetadataImplementationsAsync(solution, symbol, cancellationToken).ConfigureAwait(false); 154var overrides = result.WhereAsArray(s => s.IsOverride); 169private static async Task<ImmutableArray<ISymbol>> FindSourceAndMetadataImplementationsAsync( 200return ImmutableArray<ISymbol>.CastUp(await SymbolFinder.FindDerivedClassesArrayAsync(
FindUsages\AbstractFindUsagesService_FindReferences.cs (3)
30var thirdPartyDefinitions = await GetThirdPartyDefinitionsAsync( 65private static async Task<ImmutableArray<DefinitionItem>> GetThirdPartyDefinitionsAsync( 67ImmutableArray<DefinitionItem> definitions,
FindUsages\AbstractFindUsagesService.DefinitionTrackingContext.cs (1)
55public ImmutableArray<DefinitionItem> GetDefinitions()
FindUsages\AbstractFindUsagesService.ProgressAdapter.cs (1)
116ImmutableArray<(SymbolGroup group, ISymbol symbol, ReferenceLocation location)> references, CancellationToken cancellationToken)
FindUsages\DefinitionItem.cs (44)
59public ImmutableArray<string> Tags { get; } 71public ImmutableArray<(string key, string value)> DisplayableProperties { get; } 77public ImmutableArray<TaggedText> NameDisplayParts { get; } 83public ImmutableArray<TaggedText> DisplayParts { get; } 89public ImmutableArray<DocumentSpan> SourceSpans { get; } 94public ImmutableArray<ClassifiedSpansAndHighlightSpan?> ClassifiedSpans { get; } 99public ImmutableArray<AssemblyLocation> MetadataLocations { get; } 116ImmutableArray<string> tags, 117ImmutableArray<TaggedText> displayParts, 118ImmutableArray<TaggedText> nameDisplayParts, 119ImmutableArray<DocumentSpan> sourceSpans, 120ImmutableArray<ClassifiedSpansAndHighlightSpan?> classifiedSpans, 121ImmutableArray<AssemblyLocation> metadataLocations, 123ImmutableArray<(string key, string value)> displayableProperties, 162ImmutableArray<string> tags, 163ImmutableArray<TaggedText> displayParts, 165ImmutableArray<TaggedText> nameDisplayParts = default, 177ImmutableArray<string> tags, 178ImmutableArray<TaggedText> displayParts, 181ImmutableArray<TaggedText> nameDisplayParts = default, 194ImmutableArray<string> tags, 195ImmutableArray<TaggedText> displayParts, 196ImmutableArray<DocumentSpan> sourceSpans, 197ImmutableArray<ClassifiedSpansAndHighlightSpan?> classifiedSpans, 198ImmutableArray<TaggedText> nameDisplayParts, 208ImmutableArray<string> tags, 209ImmutableArray<TaggedText> displayParts, 210ImmutableArray<DocumentSpan> sourceSpans, 211ImmutableArray<ClassifiedSpansAndHighlightSpan?> classifiedSpans, 212ImmutableArray<TaggedText> nameDisplayParts = default, 222ImmutableArray<string> tags, 223ImmutableArray<TaggedText> displayParts, 224ImmutableArray<DocumentSpan> sourceSpans, 225ImmutableArray<ClassifiedSpansAndHighlightSpan?> classifiedSpans, 226ImmutableArray<AssemblyLocation> metadataLocations, 227ImmutableArray<TaggedText> nameDisplayParts = default, 229ImmutableArray<(string key, string value)> displayableProperties = default, 243ImmutableArray<string> tags, 244ImmutableArray<TaggedText> displayParts, 245ImmutableArray<TaggedText> originationParts, 254ImmutableArray<string> tags, 255ImmutableArray<TaggedText> displayParts, 256ImmutableArray<TaggedText> nameDisplayParts = default, 257ImmutableArray<AssemblyLocation> metadataLocations = default,
FindUsages\DefinitionItem.DefaultDefinitionItem.cs (7)
23ImmutableArray<string> tags, 24ImmutableArray<TaggedText> displayParts, 25ImmutableArray<TaggedText> nameDisplayParts, 26ImmutableArray<DocumentSpan> sourceSpans, 27ImmutableArray<ClassifiedSpansAndHighlightSpan?> classifiedSpans, 28ImmutableArray<AssemblyLocation> metadataLocations, 30ImmutableArray<(string key, string value)> displayableProperties,
FindUsages\DefinitionItem.DetachedDefinitionItem.cs (12)
21ImmutableArray<string> tags, 22ImmutableArray<TaggedText> displayParts, 23ImmutableArray<TaggedText> nameDisplayParts, 24ImmutableArray<DocumentIdSpan> sourceSpans, 25ImmutableArray<AssemblyLocation> metadataLocations, 27ImmutableArray<(string key, string value)> displayableProperties, 31public readonly ImmutableArray<string> Tags = tags; 33public readonly ImmutableArray<TaggedText> DisplayParts = displayParts; 35public readonly ImmutableArray<TaggedText> NameDisplayParts = nameDisplayParts; 37public readonly ImmutableArray<DocumentIdSpan> SourceSpans = sourceSpans; 39public readonly ImmutableArray<AssemblyLocation> MetadataLocations = metadataLocations; 43public readonly ImmutableArray<(string key, string value)> DisplayableProperties = displayableProperties;
FindUsages\DefinitionItemFactory.cs (19)
46ImmutableArray<Location> locations, 53var sourceLocations = await GetSourceLocationsAsync( 74var sourceLocations = await GetSourceLocationsAsync(solution, definition, definition.Locations, includeHiddenLocations, cancellationToken).ConfigureAwait(false); 75var classifiedSpans = await ClassifyDocumentSpansAsync(classificationOptions, sourceLocations, cancellationToken).ConfigureAwait(false); 90var locations = group.Symbols.SelectManyAsArray(s => s.Locations); 92var sourceLocations = await GetSourceLocationsAsync(solution, definition, locations, includeHiddenLocations, cancellationToken).ConfigureAwait(false); 93var classifiedSpans = await ClassifyDocumentSpansAsync(classificationOptions, sourceLocations, cancellationToken).ConfigureAwait(false); 99ImmutableArray<DocumentSpan> sourceLocations, 100ImmutableArray<ClassifiedSpansAndHighlightSpan?> classifiedSpans, 118var displayParts = GetDisplayParts(definition); 119var nameDisplayParts = definition.ToDisplayParts(s_namePartsFormat).ToTaggedText(); 121var tags = GlyphTags.GetTags(definition.GetGlyph()); 127var metadataLocations = GetMetadataLocations(definition, solution, out var originatingProjectId); 145var displayableProperties = AbstractReferenceFinder.GetAdditionalFindUsagesProperties(definition); 168internal static ImmutableArray<AssemblyLocation> GetMetadataLocations(ISymbol definition, Solution solution, out ProjectId? originatingProjectId) 228private static async Task<ImmutableArray<DocumentSpan>> GetSourceLocationsAsync( 231ImmutableArray<Location> locations, 258private static ValueTask<ImmutableArray<ClassifiedSpansAndHighlightSpan?>> ClassifyDocumentSpansAsync(OptionsProvider<ClassificationOptions> optionsProvider, ImmutableArray<DocumentSpan> unclassifiedSpans, CancellationToken cancellationToken)
FindUsages\DefinitionsAndReferences.cs (4)
24public ImmutableArray<DefinitionItem> Definitions { get; } 30public ImmutableArray<SourceReferenceItem> References { get; } 33ImmutableArray<DefinitionItem> definitions, 34ImmutableArray<SourceReferenceItem> references)
FindUsages\FindUsagesHelpers.cs (2)
98public static ImmutableArray<TaggedText> GetDisplayParts(ISymbol definition) 105private static ImmutableArray<SymbolDisplayPart> GetDisplayPartsForRangeVariable(IRangeVariableSymbol rangeVariable)
FindUsages\IRemoteFindUsagesService.cs (19)
33ValueTask OnReferencesFoundAsync(RemoteServiceCallbackId callbackId, ImmutableArray<SerializableSourceReferenceItem> references, CancellationToken cancellationToken); 74public ValueTask OnReferencesFoundAsync(RemoteServiceCallbackId callbackId, ImmutableArray<SerializableSourceReferenceItem> references, CancellationToken cancellationToken) 132public async ValueTask OnReferencesFoundAsync(ImmutableArray<SerializableSourceReferenceItem> references, CancellationToken cancellationToken) 144ImmutableArray<SerializableSourceReferenceItem> references, [EnumeratorCancellation] CancellationToken cancellationToken) 189ImmutableArray<string> tags, 190ImmutableArray<TaggedText> displayParts, 191ImmutableArray<TaggedText> nameDisplayParts, 192ImmutableArray<SerializableDocumentSpan> sourceSpans, 193ImmutableArray<AssemblyLocation> metadataLocations, 195ImmutableArray<(string key, string value)> displayableProperties, 202public readonly ImmutableArray<string> Tags = tags; 205public readonly ImmutableArray<TaggedText> DisplayParts = displayParts; 208public readonly ImmutableArray<TaggedText> NameDisplayParts = nameDisplayParts; 211public readonly ImmutableArray<SerializableDocumentSpan> SourceSpans = sourceSpans; 214public readonly ImmutableArray<AssemblyLocation> MetadataLocations = metadataLocations; 220public readonly ImmutableArray<(string key, string value)> DisplayableProperties = displayableProperties; 238var sourceSpans = await SourceSpans.SelectAsArrayAsync(static (ss, solution, cancellationToken) => ss.RehydrateAsync(solution, cancellationToken), solution, cancellationToken).ConfigureAwait(false); 284ImmutableArray<(string key, string value)> additionalProperties) 299public readonly ImmutableArray<(string key, string value)> AdditionalProperties = additionalProperties;
FindUsages\SourceReferenceItem.cs (3)
47public ImmutableArray<(string key, string value)> AdditionalProperties { get; } 54ImmutableArray<(string key, string value)> additionalProperties, 77internal SourceReferenceItem(DefinitionItem definition, DocumentSpan sourceSpan, ClassifiedSpansAndHighlightSpan? classifiedSpans, SymbolUsageInfo symbolUsageInfo, ImmutableArray<(string key, string value)> additionalProperties)
Formatting\FormattingRuleUtilities.cs (2)
13public static ImmutableArray<AbstractFormattingRule> GetFormattingRules( 20var rules = ImmutableArray.Create(formattingRuleFactory.CreateRule(document, position));
FullyQualify\AbstractFullyQualifyCodeFixProvider.cs (1)
42var codeActions = fixData.IndividualFixData.SelectAsArray(
FullyQualify\AbstractFullyQualifyService.cs (14)
78var matchingTypes = await FindAsync(name, ignoreCase, SymbolFilter.Type).ConfigureAwait(false); 79var matchingAttributeTypes = inAttributeContext ? await FindAsync(name + nameof(Attribute), ignoreCase, SymbolFilter.Type).ConfigureAwait(false) : []; 80var matchingNamespaces = inAttributeContext ? [] : await FindAsync(name, ignoreCase, SymbolFilter.Namespace).ConfigureAwait(false); 89var matchingTypeSearchResults = GetTypeSearchResults(semanticModel, simpleName, options.HideAdvancedMembers, [.. matchingTypes, .. matchingAttributeTypes]); 90var matchingNamespaceSearchResults = GetNamespaceSearchResults(semanticModel, simpleName, matchingNamespaces); 97var proposedContainers = matchingTypeContainers 112async Task<ImmutableArray<ISymbol>> FindAsync(string name, bool ignoreCase, SymbolFilter filter) 119ImmutableArray<SymbolResult> GetTypeSearchResults( 123ImmutableArray<ISymbol> matchingTypes) 132var validSymbols = matchingTypes 151ImmutableArray<SymbolResult> GetNamespaceSearchResults( 154ImmutableArray<ISymbol> symbols) 186ImmutableArray<SymbolResult> proposedContainers, 291ImmutableArray<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 (4)
28private static readonly ImmutableArray<CodeGenerationOperatorKind> s_operatorKinds = 145var operators = GenerateComparisonOperators( 172private static ImmutableArray<IMethodSymbol> GenerateComparisonOperators( 184var parameters = ImmutableArray.Create(
GenerateConstructors\AbstractGenerateConstructorsCodeRefactoringProvider.ConstructorDelegatingCodeAction.cs (2)
48var thisConstructorArguments = factory.CreateArguments( 82var statements = nullCheckStatements.ToImmutable().Concat(assignStatements.ToImmutable());
GenerateConstructors\AbstractGenerateConstructorsCodeRefactoringProvider.cs (9)
77public async Task<ImmutableArray<IntentProcessorResult>> ComputeIntentAsync( 112var operations = await GetCodeActionOperationsAsync( 127static async Task<ImmutableArray<CodeActionOperation>> GetCodeActionOperationsAsync( 155Action<ImmutableArray<CodeAction>> registerMultipleActions, 167var actions = await GenerateConstructorFromMembersAsync( 184var defaultConstructorActions = await defaultConstructorService.GenerateDefaultConstructorsAsync( 226var viableMembers = containingType.GetMembers().WhereAsArray(IsWritableInstanceFieldOrProperty); 265public async Task<ImmutableArray<CodeAction>> GenerateConstructorFromMembersAsync( 282private ImmutableArray<CodeAction> GetCodeActions(Document document, State state, bool addNullChecks)
GenerateConstructors\AbstractGenerateConstructorsCodeRefactoringProvider.FieldDelegatingCodeAction.cs (1)
50var members = factory.CreateMemberDelegatingConstructor(
GenerateConstructors\AbstractGenerateConstructorsCodeRefactoringProvider.GenerateConstructorWithDialogCodeAction.cs (4)
28ImmutableArray<ISymbol> viableMembers, 29ImmutableArray<PickMembersOption> pickMembersOptions) : CodeActionWithOptions 37internal ImmutableArray<ISymbol> ViableMembers { get; } = viableMembers; 38internal ImmutableArray<PickMembersOption> PickMembersOptions { get; } = pickMembersOptions;
GenerateConstructors\AbstractGenerateConstructorsCodeRefactoringProvider.State.cs (8)
30public ImmutableArray<(IParameterSymbol parameter, ISymbol fieldOrProperty)> Parameters { get; private set; } 41ImmutableArray<ISymbol> selectedMembers, 57ImmutableArray<ISymbol> selectedMembers, 60var mappedMembers = selectedMembers.Select(m => TryMapToWritableInstanceFieldOrProperty(service, m, cancellationToken)).Distinct().ToImmutableArray(); 72var rules = await document.GetNamingRulesAsync(cancellationToken).ConfigureAwait(false); 98ImmutableArray<(IParameterSymbol parameter, ISymbol fieldOrProperty)> parameters) 113private static IMethodSymbol? GetMatchingConstructorBasedOnParameterTypes(INamedTypeSymbol containingType, ImmutableArray<(IParameterSymbol parameter, ISymbol fieldOrProperty)> parameters) 116private static bool MatchesConstructorBasedOnParameterTypes(IMethodSymbol constructor, ImmutableArray<(IParameterSymbol parameter, ISymbol fieldOrProperty)> parameters)
GenerateEqualsAndGetHashCodeFromMembers\AbstractGenerateEqualsAndGetHashCodeService.cs (12)
25ImmutableArray<SyntaxNode> statements, out ImmutableArray<SyntaxNode> wrappedStatements); 39Document document, INamedTypeSymbol namedType, ImmutableArray<ISymbol> members, 52ImmutableArray<ISymbol> members, INamedTypeSymbol constructedEquatableType, CancellationToken cancellationToken) 118ImmutableArray<ISymbol> members, CancellationToken cancellationToken) 128INamedTypeSymbol namedType, ImmutableArray<ISymbol> members) 130var statements = CreateGetHashCodeStatements( 146private ImmutableArray<SyntaxNode> CreateGetHashCodeStatements( 148INamedTypeSymbol namedType, ImmutableArray<ISymbol> members) 155var components = factory.GetGetHashCodeComponents( 165var statements = factory.CreateGetHashCodeMethodStatements( 176if (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 (9)
61var actions = await GenerateEqualsAndGetHashCodeFromMembersAsync(document, textSpan, cancellationToken).ConfigureAwait(false); 99var viableMembers = containingType 115var actions = await CreateActionsAsync( 168public async Task<ImmutableArray<CodeAction>> GenerateEqualsAndGetHashCodeFromMembersAsync( 199private async Task<ImmutableArray<CodeAction>> CreateActionsAsync( 200Document document, SyntaxNode typeDeclaration, INamedTypeSymbol containingType, ImmutableArray<ISymbol> selectedMembers, 240Document document, SyntaxNode typeDeclaration, INamedTypeSymbol containingType, ImmutableArray<ISymbol> members, 257Document document, SyntaxNode typeDeclaration, INamedTypeSymbol containingType, ImmutableArray<ISymbol> members, 294Document document, SyntaxNode typeDeclaration, INamedTypeSymbol containingType, ImmutableArray<ISymbol> members,
GenerateEqualsAndGetHashCodeFromMembers\GenerateEqualsAndHashWithDialogCodeAction.cs (4)
25ImmutableArray<ISymbol> viableMembers, 26ImmutableArray<PickMembersOption> pickMembersOptions, 37private readonly ImmutableArray<ISymbol> _viableMembers = viableMembers; 38private 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 (5)
28var selectedDeclarations = await syntaxFacts.GetSelectedFieldsAndPropertiesAsync( 34var selectedMembers = selectedDeclarations.Select( 84public static ImmutableArray<(IParameterSymbol parameter, ISymbol fieldProperty)> DetermineParameters( 85ImmutableArray<ISymbol> selectedMembers, ImmutableArray<NamingRule> rules)
GenerateFromMembers\SelectedMemberInfo.cs (4)
11ImmutableArray<SyntaxNode> selectedDeclarations, 12ImmutableArray<ISymbol> selectedMembers) 15public readonly ImmutableArray<SyntaxNode> SelectedDeclarations = selectedDeclarations; 16public readonly ImmutableArray<ISymbol> SelectedMembers = selectedMembers;
GenerateOverrides\GenerateOverridesCodeRefactoringProvider.cs (1)
51var overridableMembers = containingType.GetOverridableMembers(cancellationToken);
GenerateOverrides\GenerateOverridesWithDialogCodeAction.cs (3)
28ImmutableArray<ISymbol> viableMembers) : CodeActionWithOptions 33private readonly ImmutableArray<ISymbol> _viableMembers = viableMembers; 70var memberTasks = result.Members.SelectAsArray(
GenerateType\AbstractGenerateTypeService.CodeAction.cs (1)
64protected override async Task<ImmutableArray<CodeActionOperation>> ComputeOperationsAsync(
GenerateType\AbstractGenerateTypeService.cs (7)
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( 182protected static ImmutableArray<ITypeParameterSymbol> GetTypeParameters( 266var availableInnerTypeParameters = GetTypeParameters(state, semanticModel, cancellationToken); 267var availableOuterTypeParameters = !intoNamespace && state.TypeToGenerateInOpt != null
GenerateType\AbstractGenerateTypeService.Editor.cs (10)
87public async Task<ImmutableArray<CodeActionOperation>> GetOperationsAsync() 256var refinedFolders = folders.SelectAsArray(n => n != null && !n.IsEmpty(), n => n.Replace(' ', '_')); 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) 564private ImmutableArray<ITypeSymbol> GetArgumentTypes(IList<TArgumentSyntax> argumentList) 570private ImmutableArray<TExpressionSyntax> GetArgumentExpressions(IList<TArgumentSyntax> argumentList) 601var membersArray = members.ToImmutableArray();
GenerateType\AbstractGenerateTypeService.GenerateNamedType.cs (13)
83private ImmutableArray<ITypeParameterSymbol> DetermineTypeParametersWithDelegateChecks() 94private ImmutableArray<IParameterSymbol> DetermineParameters() 104private async Task<ImmutableArray<ISymbol>> DetermineMembersAsync(GenerateTypeOptionsResult options = null) 123var parameterTypes = GetArgumentTypes(argumentList); 150var refKinds = argumentList.SelectAsArray(syntaxFacts.GetRefKindOfArgument); 151var parameters = parameterTypes.Zip(refKinds, 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); 323var availableOuterTypeParameters = !_intoNamespace && _state.TypeToGenerateInOpt != null
GenerateType\AbstractGenerateTypeService.State.cs (1)
232var baseTypes = typeInference.InferTypes(document.SemanticModel, expr, cancellationToken);
GenerateType\IGenerateTypeService.cs (1)
15Task<ImmutableArray<CodeAction>> GenerateTypeAsync(Document document, SyntaxNode node, CancellationToken cancellationToken);
GoToBase\AbstractGoToBaseService.cs (1)
44var bases = FindBaseHelpers.FindBases(symbol, solution, cancellationToken);
GoToBase\FindBaseHelpers.cs (2)
13public static ImmutableArray<ISymbol> FindBases( 21var result = BaseTypeFinder.FindBaseTypesAndInterfaces(namedTypeSymbol, transitive: true).CastArray<ISymbol>();
GoToDefinition\GoToDefinitionFeatureHelpers.cs (1)
52public static async Task<ImmutableArray<DefinitionItem>> GetDefinitionsAsync(
ImplementInterface\ImplementInterfaceCodeRefactoringProvider.cs (1)
39var codeActions = await service.GetCodeActionsAsync(
InheritanceMargin\AbstractInheritanceMarginService_Helpers.cs (53)
25using SymbolAndLineNumberArray = ImmutableArray<(ISymbol symbol, int lineNumber)>; 43private static async ValueTask<ImmutableArray<InheritanceMarginItem>> GetSymbolInheritanceChainItemsAsync( 46SymbolAndLineNumberArray symbolAndLineNumbers, 83private async ValueTask<(Project remapped, SymbolAndLineNumberArray symbolAndLineNumbers)> GetMemberSymbolsAsync( 89var allDeclarationNodes = GetMembers(root.DescendantNodes(spanToSearch)); 129return (document.Project, SymbolAndLineNumberArray.Empty); 132private async Task<ImmutableArray<InheritanceMarginItem>> GetInheritanceMarginItemsInProcessAsync( 164private async Task<ImmutableArray<InheritanceMarginItem>> GetGlobalImportsItemsAsync( 187var scopes = semanticModel.GetImportScopes(root.FullSpan.End, cancellationToken); 197var nonLocalImports = lastScope.Imports 297var allBaseSymbols = typeHierarchyService.GetBaseTypesAndInterfaces(memberSymbol, transitive: true); 307var baseSymbols = allBaseSymbols 311var allDerivedSymbols = await typeHierarchyService.GetDerivedTypesAndImplementationsAsync( 320var derivedSymbols = allDerivedSymbols.WhereAsArray(symbol => symbol.Locations.Any(static l => l.IsInSource)); 360var allImplementingSymbols = await GetImplementingSymbolsForTypeMemberAsync(solution, memberSymbol, cancellationToken).ConfigureAwait(false); 365var implementingSymbols = allImplementingSymbols.WhereAsArray(symbol => symbol.Locations.Any(static l => l.IsInSource)); 381var allOverridingSymbols = await SymbolFinder.FindOverridesArrayAsync(memberSymbol, solution, cancellationToken: cancellationToken).ConfigureAwait(false); 384var overriddenSymbols = GetOverriddenSymbols(memberSymbol, allowLooseMatch: true); 387var implementedSymbols = GetImplementedSymbolsForTypeMember(memberSymbol, overriddenSymbols); 392var overridingSymbols = allOverridingSymbols.WhereAsArray(symbol => symbol.Locations.Any(static l => l.IsInSource)); 412ImmutableArray<ISymbol> baseSymbols, 413ImmutableArray<ISymbol> derivedTypesSymbols, 416var baseSymbolItems = await baseSymbols 426var derivedTypeItems = await derivedTypesSymbols 436var nonNullBaseSymbolItems = GetNonNullTargetItems(baseSymbolItems); 437var nonNullDerivedTypeItems = GetNonNullTargetItems(derivedTypeItems); 451ImmutableArray<ISymbol> implementingMembers, 454var implementedMemberItems = await implementingMembers 464var nonNullImplementedMemberItems = GetNonNullTargetItems(implementedMemberItems); 477ImmutableArray<ISymbol> baseSymbols, 478ImmutableArray<ISymbol> derivedTypesSymbols, 483var baseSymbolItems = await baseSymbols 493var derivedTypeItems = await derivedTypesSymbols 503var nonNullBaseSymbolItems = GetNonNullTargetItems(baseSymbolItems); 504var nonNullDerivedTypeItems = GetNonNullTargetItems(derivedTypeItems); 518ImmutableArray<ISymbol> implementedMembers, 519ImmutableArray<ISymbol> overridingMembers, 520ImmutableArray<ISymbol> overriddenMembers, 523var implementedMemberItems = await implementedMembers 533var overriddenMemberItems = await overriddenMembers 543var overridingMemberItems = await overridingMembers 553var nonNullImplementedMemberItems = GetNonNullTargetItems(implementedMemberItems); 554var nonNullOverriddenMemberItems = GetNonNullTargetItems(overriddenMemberItems); 555var nonNullOverridingMemberItems = GetNonNullTargetItems(overridingMemberItems); 601private static ImmutableArray<ISymbol> GetImplementedSymbolsForTypeMember( 603ImmutableArray<ISymbol> overriddenSymbols) 610var directImplementingSymbols = memberSymbol.ExplicitOrImplicitInterfaceImplementations(); 633private static async Task<ImmutableArray<ISymbol>> GetImplementingSymbolsForTypeMemberAsync( 643var implementationSymbols = await SymbolFinder.FindMemberImplementationsArrayAsync( 668private static ImmutableArray<ISymbol> GetOverriddenSymbols(ISymbol memberSymbol, bool allowLooseMatch) 694var locations = symbol.Locations; 735private static ImmutableArray<InheritanceTargetItem> GetNonNullTargetItems(ImmutableArray<InheritanceTargetItem?> inheritanceTargetItems)
InheritanceMargin\AbstractInheritanceMarginService.cs (3)
20protected abstract ImmutableArray<SyntaxNode> GetMembers(IEnumerable<SyntaxNode> nodesToSearch); 30public async ValueTask<ImmutableArray<InheritanceMarginItem>> GetInheritanceMemberItemsAsync( 45var result = await remoteClient.TryInvokeAsync<IRemoteInheritanceMarginService, ImmutableArray<InheritanceMarginItem>>(
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 (4)
68protected override async Task<ImmutableArray<CodeAction>> GetRefactoringsForAllParametersAsync( 73ImmutableArray<SyntaxNode> listOfParameterNodes, 99protected override async Task<ImmutableArray<CodeAction>> GetRefactoringsForSingleParameterAsync( 423var enumIsDefinedMembers = enumType.GetMembers(nameof(Enum.IsDefined));
InitializeParameter\AbstractInitializeMemberFromParameterCodeRefactoringProviderMemberCreation.cs (22)
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); 170var fields = parameters.SelectAsArray(p => (ISymbol)CreateField(p, accessibilityModifiersRequired, rules)); 171var properties = parameters.SelectAsArray(p => (ISymbol)CreateProperty(p, accessibilityModifiersRequired, rules)); 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 (5)
37protected abstract Task<ImmutableArray<CodeAction>> GetRefactoringsForAllParametersAsync( 42ImmutableArray<SyntaxNode> listOfParameterNodes, 46protected abstract Task<ImmutableArray<CodeAction>> GetRefactoringsForSingleParameterAsync( 100var refactorings = await GetRefactoringsForSingleParameterAsync( 120var refactorings = await GetRefactoringsForAllParametersAsync(
InlineHints\AbstractInlineHintsService.cs (1)
17public async Task<ImmutableArray<InlineHint>> GetInlineHintsAsync(
InlineHints\AbstractInlineTypeHintsService.cs (6)
83var minimalDisplayParts = type.ToMinimalDisplayParts(semanticModel, spanStart, s_minimalTypeStyle); 84var displayParts = type.ToDisplayParts(s_minimalTypeStyle); 85var preferredParts = minimalDisplayParts.Length <= displayParts.Length ? minimalDisplayParts : displayParts; 93var taggedText = finalParts.ToTaggedText(); 104ImmutableArray<SymbolDisplayPart> parts, 117var anonymousParts = anonymousTypeService.GetAnonymousTypeParts(anonymousType, semanticModel, position);
InlineHints\IInlineHintsService.cs (1)
15Task<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 (4)
19public static Func<Document, CancellationToken, Task<ImmutableArray<TaggedText>>>? GetDescriptionFunction(int position, ISymbol symbol, SymbolDescriptionOptions options) 24private static async Task<ImmutableArray<TaggedText>> GetDescriptionAsync(Document document, int position, ISymbol originalSymbol, SymbolDescriptionOptions options, CancellationToken cancellationToken) 42var documentation = symbol.GetDocumentationParts(semanticModel, position, formatter, cancellationToken); 50if (groups.TryGetValue(SymbolDescriptionGroups.StructuralTypes, out var anonymousTypes))
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 (1)
203ImmutableArray<CodeAction> GenerateCodeActions()
InlineMethod\AbstractInlineMethodRefactoringProvider.InlineContext.cs (10)
22ImmutableArray<TStatementSyntax> statementsToInsertBeforeInvocationOfCallee, 29public ImmutableArray<TStatementSyntax> StatementsToInsertBeforeInvocationOfCallee { get; } = statementsToInsertBeforeInvocationOfCallee; 158var localDeclarationStatementsNeedInsert = GetLocalDeclarationStatementsNeedInsert( 247private static ImmutableArray<TStatementSyntax> GetLocalDeclarationStatementsNeedInsert( 249ImmutableArray<(IParameterSymbol parameterSymbol, TExpressionSyntax expression)> parametersToGenerateFreshVariablesFor, 250ImmutableArray<(IParameterSymbol parameterSymbol, string identifierName)> parametersWithVariableDeclarationArgument, 268var awaitExpressions = inlineExpression 298var allSyntaxNodesToReplace = allReferences 323ImmutableArray<(IParameterSymbol parameter, string identifierName)> parametersWithVariableDeclarationArgument, 356ImmutableArray<IParameterSymbol> parametersNeedGenerateFreshVariableFor,
InlineMethod\AbstractInlineMethodRefactoringProvider.MethodParametersInfo.cs (17)
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; 191var operationsWithIdentifierArgument = allArgumentOperations 212var operationsWithVariableDeclarationArgument = allArgumentOperations 236var operationsWithLiteralArgument = allArgumentOperations 260var operationsWithDefaultValue = allArgumentOperations 286var operationsToGenerateFreshVariablesFor = allArgumentOperations 314var operationsReadOnlyOnce = 321var parametersToGenerateFreshVariablesFor = operationsToGenerateFreshVariablesFor 353var parametersWithVariableDeclarationArgument = operationsWithVariableDeclarationArgument 429private static async Task<ImmutableArray<IArgumentOperation>> GetArgumentsReadOnlyOnceAsync( 431ImmutableArray<IArgumentOperation> arguments, 446var allReferencedLocations = allReferences 481ImmutableArray<(IParameterSymbol parameterSymbol, string name)> parametersWithVariableDeclarationArgument,
InlineTemporary\AbstractInlineTemporaryCodeRefactoringProvider.cs (2)
24protected static async Task<ImmutableArray<TIdentifierNameSyntax>> GetReferenceLocationsAsync( 39var findReferencesResult = await SymbolFinder.FindReferencesAsync(
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 (4)
196private async Task<(ImmutableArray<CodeAction> actions, ImmutableArray<CodeAction> actionsAllOccurrences)?> GetActionsAsync(Document document, 307var changedRoots = await ProducerConsumer<(DocumentId documentId, SyntaxNode newRoot)>.RunParallelAsync( 340var referencedSymbols = progress.GetReferencedSymbols();
IntroduceParameter\IntroduceParameterDocumentRewriter.cs (5)
237var validParameters = _methodSymbol.Parameters.Intersect(expressionParameterMap.Values).ToImmutableArray(); 314SyntaxNode argumentListSyntax, SyntaxNode invocation, ImmutableArray<IParameterSymbol> validParameters, 396private async Task<SyntaxNode> ExtractMethodAsync(ImmutableArray<IParameterSymbol> validParameters, string newMethodIdentifier, SyntaxGenerator generator, CancellationToken cancellationToken) 431var arguments = generator.CreateArguments(_methodSymbol.Parameters); 449private async Task<SyntaxNode> CreateMethodDeclarationAsync(SyntaxNode newStatement, ImmutableArray<IParameterSymbol>? validParameters,
IntroduceUsingStatement\AbstractIntroduceUsingStatementCodeRefactoringProvider.cs (1)
357var statementsFromDeclarationToEnd = declarationSyntax.GetRequiredParent().ChildNodesAndTokens()
IntroduceVariable\AbstractIntroduceVariableService.cs (1)
89private (string title, ImmutableArray<CodeAction>) CreateActions(State state, CancellationToken cancellationToken)
InvertIf\AbstractInvertIfCodeRefactoringProvider.cs (7)
123var conditionalDirectives = syntaxFacts.GetMatchingConditionalDirectives(ifDirective, cancellationToken); 239var subsequentStatementRanges = GetSubsequentStatementRanges(ifNode); 394private bool SingleSubsequentStatement(ImmutableArray<StatementRange> subsequentStatementRanges) 426ImmutableArray<StatementRange> subsequentStatementRanges, 464ImmutableArray<StatementRange> subsequentStatementRanges) 508private ImmutableArray<StatementRange> GetSubsequentStatementRanges(TIfStatementSyntax ifNode) 586var statementsAfterIf = statements.Skip(index + 1).ToImmutableArray();
LanguageServices\AnonymousTypeDisplayService\AbstractStructuralTypeDisplayService.cs (11)
24protected abstract ImmutableArray<SymbolDisplayPart> GetNormalAnonymousTypeParts(INamedTypeSymbol anonymousType, SemanticModel semanticModel, int position); 26public ImmutableArray<SymbolDisplayPart> GetAnonymousTypeParts(INamedTypeSymbol anonymousType, SemanticModel semanticModel, int position) 31private ImmutableArray<SymbolDisplayPart> GetDelegateAnonymousTypeParts( 46private static ImmutableArray<SymbolDisplayPart> MassageDelegateParts( 48ImmutableArray<SymbolDisplayPart> parts) 64ImmutableArray<INamedTypeSymbol> directStructuralTypeReferences, 75var transitiveStructuralTypeReferences = GetTransitiveStructuralTypeReferences(directStructuralTypeReferences); 146private static ImmutableArray<INamedTypeSymbol> OrderStructuralTypes( 147ImmutableArray<INamedTypeSymbol> structuralTypes, 186private static ImmutableArray<INamedTypeSymbol> GetTransitiveStructuralTypeReferences( 187ImmutableArray<INamedTypeSymbol> structuralTypes)
LanguageServices\AnonymousTypeDisplayService\IStructuralTypeDisplayService.cs (2)
14ImmutableArray<INamedTypeSymbol> structuralTypes, 18ImmutableArray<SymbolDisplayPart> GetAnonymousTypeParts(
LanguageServices\AnonymousTypeDisplayService\StructuralTypeDisplayInfo.cs (1)
60var displayParts = type.ToMinimalDisplayParts(semanticModel, position);
LanguageServices\SymbolDisplayService\AbstractSymbolDisplayService.AbstractSymbolDescriptionBuilder.cs (34)
84private readonly Dictionary<SymbolDescriptionGroups, ImmutableArray<TaggedText>> _documentationMap = []; 111protected abstract Task<ImmutableArray<SymbolDisplayPart>> GetInitializerSourcePartsAsync(ISymbol symbol); 112protected abstract ImmutableArray<SymbolDisplayPart> ToMinimalDisplayParts(ISymbol symbol, SemanticModel semanticModel, int position, SymbolDisplayFormat format); 158protected virtual ImmutableArray<SymbolDisplayPart> WrapConstraints(ISymbol symbol, ImmutableArray<SymbolDisplayPart> displayParts) 161private async Task AddPartsAsync(ImmutableArray<ISymbol> symbols) 282var parts = formatter.Format(rawXmlText, symbol, _semanticModel, _position, format, typeDisplayInfo, CancellationToken); 344var captures = analysis.CapturedInside.Except(analysis.VariablesDeclared).ToImmutableArray(); 372public async Task<ImmutableArray<SymbolDisplayPart>> BuildDescriptionAsync( 373ImmutableArray<ISymbol> symbolGroup, SymbolDescriptionGroups groups) 382public async Task<IDictionary<SymbolDescriptionGroups, ImmutableArray<TaggedText>>> BuildDescriptionSectionsAsync(ImmutableArray<ISymbol> symbolGroup) 464private ImmutableArray<SymbolDisplayPart> BuildDescription(SymbolDescriptionGroups groups) 517private Dictionary<SymbolDescriptionGroups, ImmutableArray<TaggedText>> BuildDescriptionSections() 522var result = new Dictionary<SymbolDescriptionGroups, ImmutableArray<TaggedText>>(_documentationMap); 526var taggedText = parts.ToTaggedText(TaggedTextStyle.None, _getNavigationHint, includeNavigationHints); 563var displayParts = isAnonymousDelegate 587var allTypeParameters = symbol.GetAllTypeParameters(); 588var allTypeArguments = symbol.GetAllTypeArguments(); 596var underlyingTypeDisplayParts = symbol.EnumUnderlyingType.ToDisplayParts(s_descriptionStyle.WithMiscellaneousOptions(SymbolDisplayMiscellaneousOptions.UseSpecialTypes)); 603var typeArguments = symbol.GetAllTypeArguments(); 604var typeParameters = symbol.GetAllTypeParameters(); 637var parts = await GetFieldPartsAsync(symbol).ConfigureAwait(false); 655private async Task<ImmutableArray<SymbolDisplayPart>> GetFieldPartsAsync(IFieldSymbol symbol) 659var initializerParts = await GetInitializerSourcePartsAsync(symbol).ConfigureAwait(false); 678var parts = await GetLocalPartsAsync(symbol).ConfigureAwait(false); 687private async Task<ImmutableArray<SymbolDisplayPart>> GetLocalPartsAsync(ILocalSymbol symbol) 691var initializerParts = await GetInitializerSourcePartsAsync(symbol).ConfigureAwait(false); 748var initializerParts = await GetInitializerSourcePartsAsync(symbol).ConfigureAwait(false); 800ImmutableArray<ISymbol> symbolGroup) 817private static int GetOverloadCount(ImmutableArray<ISymbol> symbolGroup) 826ImmutableArray<ITypeParameterSymbol> typeParameters, 827ImmutableArray<ITypeSymbol> typeArguments) 901protected ImmutableArray<SymbolDisplayPart> ToMinimalDisplayParts(ISymbol symbol, SymbolDisplayFormat? format = null)
LanguageServices\SymbolDisplayService\AbstractSymbolDisplayService.cs (5)
21public Task<ImmutableArray<SymbolDisplayPart>> ToDescriptionPartsAsync(SemanticModel semanticModel, int position, ImmutableArray<ISymbol> symbols, SymbolDescriptionOptions options, SymbolDescriptionGroups groups, CancellationToken cancellationToken) 30public async Task<IDictionary<SymbolDescriptionGroups, ImmutableArray<TaggedText>>> ToDescriptionGroupsAsync( 31SemanticModel semanticModel, int position, ImmutableArray<ISymbol> symbols, SymbolDescriptionOptions options, CancellationToken cancellationToken) 34return SpecializedCollections.EmptyDictionary<SymbolDescriptionGroups, ImmutableArray<TaggedText>>();
LanguageServices\SymbolDisplayService\ISymbolDisplayService.cs (6)
15Task<ImmutableArray<SymbolDisplayPart>> ToDescriptionPartsAsync(SemanticModel semanticModel, int position, ImmutableArray<ISymbol> symbols, SymbolDescriptionOptions options, SymbolDescriptionGroups groups = SymbolDescriptionGroups.All, CancellationToken cancellationToken = default); 16Task<IDictionary<SymbolDescriptionGroups, ImmutableArray<TaggedText>>> ToDescriptionGroupsAsync(SemanticModel semanticModel, int position, ImmutableArray<ISymbol> symbols, SymbolDescriptionOptions options, CancellationToken cancellationToken = default); 26public async Task<string> ToDescriptionStringAsync(SemanticModel semanticModel, int position, ImmutableArray<ISymbol> symbols, SymbolDescriptionOptions options, SymbolDescriptionGroups groups = SymbolDescriptionGroups.All, CancellationToken cancellationToken = default) 28var parts = await service.ToDescriptionPartsAsync(semanticModel, position, symbols, options, groups, cancellationToken).ConfigureAwait(false);
LegacySolutionEvents\ILegacySolutionEventsAggregationService.cs (1)
34private readonly ImmutableArray<Lazy<ILegacySolutionEventsListener>> _eventsServices = [.. eventsServices];
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)
22public abstract ImmutableArray<ISymbol> GetMembers(); 23public abstract ImmutableArray<ISymbol> GetMembers(string name); 24public abstract ImmutableArray<INamedTypeSymbol> GetTypeMembers(); 25public abstract ImmutableArray<INamedTypeSymbol> GetTypeMembers(string name); 26public 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; 88public ImmutableArray<AttributeData> GetAttributes() 97public ImmutableArray<SymbolDisplayPart> ToDisplayParts(SymbolDisplayFormat format = null) 106public ImmutableArray<SymbolDisplayPart> ToMinimalDisplayParts(SemanticModel semanticModel, int position, SymbolDisplayFormat format = null)
MetadataAsSource\AbstractMetadataAsSourceService.cs (3)
63var reducers = GetReducers(); 72protected abstract ImmutableArray<AbstractFormattingRule> GetFormattingRules(Document document); 89protected 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) 136public ImmutableArray<INamedTypeSymbol> UnmanagedCallingConventionTypes => _symbol.UnmanagedCallingConventionTypes;
MetadataAsSource\AbstractMetadataAsSourceService.WrappedNamedTypeSymbol.cs (22)
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) 147public ImmutableArray<ITypeSymbol> UnionCaseTypes => _symbol.UnionCaseTypes;
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;
MoveStaticMembers\AbstractMoveStaticMembersRefactoringProvider.cs (4)
18protected abstract Task<ImmutableArray<SyntaxNode>> GetSelectedNodesAsync(CodeRefactoringContext context); 30var selectedMemberNodes = await GetSelectedNodesAsync(context).ConfigureAwait(false); 37var memberNodeSymbolPairs = selectedMemberNodes 48var selectedMembers = memberNodeSymbolPairs.SelectAsArray(pair => pair.symbol!);
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 (20)
29ImmutableArray<ISymbol> selectedMembers) : CodeActionWithOptions 32private readonly ImmutableArray<ISymbol> _selectedMembers = selectedMembers; 59var memberNodes = moveOptions.SelectedMembers 90var typeParameters = ExtractTypeHelpers.GetRequiredTypeParametersForMembers(_selectedType, moveOptions.SelectedMembers); 92var typeArgIndices = Enumerable.Range(0, _selectedType.TypeParameters.Length) 121var memberReferenceLocations = await FindMemberReferencesAsync(newDoc.Project.Solution, newDoc.Project.Id, moveOptions.SelectedMembers, cancellationToken).ConfigureAwait(false); 138var members = memberNodes 171ImmutableArray<ISymbol> selectedMembers, 172ImmutableArray<SyntaxNode> oldMemberNodes, 175ImmutableArray<int> typeArgIndices, 203var memberReferenceLocations = await FindMemberReferencesAsync( 222var members = oldMemberNodes 240ImmutableArray<int> typeArgIndices, 272ImmutableArray<(ReferenceLocation location, bool isExtensionMethod)> referenceLocations, 275ImmutableArray<int> typeArgIndices, 334var newTypeArgs = typeArgIndices.SelectAsArray(i => typeArgs[i]); 364private static async Task<ImmutableArray<(ReferenceLocation location, bool isExtension)>> FindMemberReferencesAsync( 367ImmutableArray<ISymbol> members, 402ImmutableArray<SyntaxNode> memberNodes, 404ImmutableArray<ISymbol> selectedMembers,
MoveToNamespace\AbstractMoveToNamespaceService.cs (6)
25Task<ImmutableArray<MoveToNamespaceCodeAction>> GetCodeActionsAsync(Document document, TextSpan span, CancellationToken cancellationToken); 28MoveToNamespaceOptionsResult GetChangeNamespaceOptions(Document document, string defaultNamespace, ImmutableArray<string> namespaces); 45public async Task<ImmutableArray<MoveToNamespaceCodeAction>> GetCodeActionsAsync( 186private static async Task<ImmutableArray<ISymbol>> GetMemberSymbolsAsync(Document document, SyntaxNode container, CancellationToken cancellationToken) 220var memberSymbols = await GetMemberSymbolsAsync(document, container, cancellationToken).ConfigureAwait(false); 317ImmutableArray<string> namespaces)
MoveToNamespace\IMoveToNamespaceOptionsService.cs (1)
15ImmutableArray<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)
MoveToNamespace\MoveToNamespaceCodeActionProvider.cs (1)
24var actions = await moveToNamespaceService.GetCodeActionsAsync(document, textSpan, cancellationToken).ConfigureAwait(false);
NameTupleElement\AbstractNameTupleElementCodeRefactoringProvider.cs (2)
49var potentialArguments = await document.GetRelevantNodesAsync<TArgumentSyntax>(span, cancellationToken).ConfigureAwait(false); 66var elements = tupleType.TupleElements;
NavigateTo\AbstractNavigateToSearchService.CachedDocumentSearch.cs (9)
70ImmutableArray<Project> projects, 71ImmutableArray<Document> priorityDocuments, 75Func<ImmutableArray<INavigateToSearchResult>, Task> onResultsFound, 89var documentKeys = projects.SelectManyAsArray(p => p.Documents.Select(DocumentKey.ToDocumentKey)); 90var priorityDocumentKeys = priorityDocuments.SelectAsArray(DocumentKey.ToDocumentKey); 111ImmutableArray<DocumentKey> documentKeys, 112ImmutableArray<DocumentKey> priorityDocumentKeys, 115Func<ImmutableArray<RoslynNavigateToItem>, VoidResult, CancellationToken, Task> onItemsFound, 130var groups = documentKeys.GroupBy(d => d.Project).ToImmutableArray();
NavigateTo\AbstractNavigateToSearchService.cs (3)
36private static Func<ImmutableArray<RoslynNavigateToItem>, VoidResult, CancellationToken, Task> GetOnItemsFoundCallback( 37Solution solution, Document? activeDocument, Func<ImmutableArray<INavigateToSearchResult>, Task> onResultsFound) 62private static PooledDisposer<PooledHashSet<T>> GetPooledHashSet<T>(ImmutableArray<T> items, out PooledHashSet<T> instance)
NavigateTo\AbstractNavigateToSearchService.GeneratedDocumentSearch.cs (4)
22ImmutableArray<Project> projects, 26Func<ImmutableArray<INavigateToSearchResult>, Task> onResultsFound, 61ImmutableArray<Project> projects, 64Func<ImmutableArray<RoslynNavigateToItem>, VoidResult, CancellationToken, Task> onItemsFound,
NavigateTo\AbstractNavigateToSearchService.InProcess.cs (5)
29private static readonly ImmutableArray<(PatternMatchKind roslynKind, NavigateToMatchKind vsKind)> s_kindPairs = 184var additionalMatchingProjects = GetAdditionalProjectsWithMatch( 200ImmutableArray<ProjectId> additionalMatchingProjects) 231private static ImmutableArray<ProjectId> GetAdditionalProjectsWithMatch( 318private readonly ImmutableArray<bool> _lookupTable;
NavigateTo\AbstractNavigateToSearchService.NormalSearch.cs (12)
30Func<ImmutableArray<INavigateToSearchResult>, Task> onResultsFound, 57Func<ImmutableArray<RoslynNavigateToItem>, VoidResult, CancellationToken, Task> onItemsFound, 73Task SearchDocumentsInCurrentProcessAsync(ImmutableArray<(Document document, NormalizedTextSpanCollection? spans)> documentAndSpans) 98var relatedDocuments = await GetRelatedDocumentsAsync().ConfigureAwait(false); 102async Task<ImmutableArray<(Document document, NormalizedTextSpanCollection? spans)>> GetRelatedDocumentsAsync() 148ImmutableArray<Project> projects, 149ImmutableArray<Document> priorityDocuments, 153Func<ImmutableArray<INavigateToSearchResult>, Task> onResultsFound, 169var priorityDocumentIds = priorityDocuments.SelectAsArray(d => d.Id); 189ImmutableArray<Project> projects, 190ImmutableArray<Document> priorityDocuments, 193Func<ImmutableArray<RoslynNavigateToItem>, VoidResult, CancellationToken, Task> onItemsFound,
NavigateTo\INavigateToSearchCallback.cs (1)
16Task AddResultsAsync(ImmutableArray<INavigateToSearchResult> results, Document? activeDocument, CancellationToken cancellationToken);
NavigateTo\INavigateToSearchResult.cs (3)
19ImmutableArray<TextSpan> NameMatchSpans { get; } 24ImmutableArray<PatternMatch> Matches { get; } 32public 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 SearchDocumentAndRelatedDocumentsAsync(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 (25)
53private readonly ImmutableArray<Document> _visibleDocuments; 225var orderedProjects = GetOrderedProjectsToProcess(); 232ImmutableArray<ImmutableArray<Project>> orderedProjects, 284private ImmutableArray<ImmutableArray<Project>> GetOrderedProjectsToProcess() 286using var result = TemporaryArray<ImmutableArray<Project>>.Empty; 327private ImmutableArray<Document> GetPriorityDocuments(ImmutableArray<Project> projects) 348ImmutableArray<ImmutableArray<Project>> orderedProjects, 350Func<INavigateToSearchService, ImmutableArray<Project>, Func<ImmutableArray<INavigateToSearchResult>, Task>, Func<Task>, Task> processProjectAsync, 358foreach (var projectGroup in orderedProjects) 414ImmutableArray<ImmutableArray<Project>> orderedProjects, 432ImmutableArray<ImmutableArray<Project>> orderedProjects, 464ImmutableArray<ImmutableArray<Project>> orderedProjects, 487var filteredProjects = _solution 533public Task SearchDocumentAsync(Document document, string searchPattern, IImmutableSet<string> kinds, Func<ImmutableArray<INavigateToSearchResult>, Task> onResultsFound, CancellationToken cancellationToken) 536public 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; 206ImmutableArray<TextSpan> INavigateToSearchResult.NameMatchSpans => _item.NameMatchSpans; 280ImmutableArray<PatternMatch> INavigateToSearchResult.Matches => _item.Matches; 286ImmutableArray<TaggedText> INavigableItem.DisplayTaggedParts 304ImmutableArray<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)
19ImmutableArray<TaggedText>? displayTaggedParts) 25public static ImmutableArray<INavigableItem> GetItemsFromPreferredSourceLocations( 28ImmutableArray<TaggedText>? displayTaggedParts, 56var 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 (7)
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) 58var referencesInCurrentFile = allReferences.WhereAsArray(r => r.SyntaxTree == tree); 70var spans = referencesInCurrentFile.SelectAsArray(r => computeFullSpan(r));
NavigationBar\INavigationBarItemService.cs (1)
14Task<ImmutableArray<RoslynNavigationBarItem>> GetItemsAsync(Document document, bool supportsCodeGeneration, bool frozenPartialSemantics, CancellationToken cancellationToken);
NavigationBar\IRemoteNavigationBarItemService.cs (7)
15ValueTask<ImmutableArray<SerializableNavigationBarItem>> GetItemsAsync( 36public readonly ImmutableArray<SerializableNavigationBarItem> ChildItems; 71ImmutableArray<SerializableNavigationBarItem> childItems, 108public static ImmutableArray<SerializableNavigationBarItem> Dehydrate(ImmutableArray<RoslynNavigationBarItem> values) 111public static SerializableNavigationBarItem ActionlessItem(string text, Glyph glyph, ImmutableArray<SerializableNavigationBarItem> childItems = default, int indent = 0, bool bolded = false, bool grayed = false) 114public 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) 57private 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)
16IEnumerable<(string feature, ImmutableArray<IOption2> options)> GetOptions(bool includeUnsupported);
OrganizeImports\OrganizeImportsCodeRefactoringProvider.cs (2)
27protected override ImmutableArray<RefactorAllScope> SupportedRefactorAllScopes => [RefactorAllScope.Project, RefactorAllScope.Solution]; 55Document document, ImmutableArray<TextSpan> fixAllSpans, SyntaxEditor editor, string? equivalenceKey, CancellationToken cancellationToken)
PdbSourceDocument\DocumentDebugInfoReader.cs (2)
36public ImmutableArray<SourceDocument> FindSourceDocuments(EntityHandle entityHandle) 49var checksum = _pdbReader.GetBlobContent(document.Hash);
PdbSourceDocument\PdbSourceDocumentLoaderService.cs (1)
193var fileChecksum = sourceText.GetChecksum();
PdbSourceDocument\PdbSourceDocumentMetadataAsSourceFileProvider.cs (4)
171ImmutableArray<SourceDocument> sourceDocuments; 259var documentInfos = CreateDocumentInfos(sourceFileInfos, encoding, projectId, sourceWorkspace, sourceProject); 328private ImmutableArray<DocumentInfo> CreateDocumentInfos( 434internal 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)
13string title, ImmutableArray<ISymbol> members, 14ImmutableArray<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)
23public sealed override ImmutableArray<string> FixableDiagnosticIds { get; } 38Document document, ImmutableArray<Diagnostic> diagnostics,
PreferFrameworkType\PreferFrameworkTypeDiagnosticAnalyzerBase.cs (1)
40protected abstract ImmutableArray<TSyntaxKind> SyntaxKindsOfInterest { get; }
PullMemberUp\AbstractPullMemberUpRefactoringProvider.cs (8)
22protected abstract Task<ImmutableArray<SyntaxNode>> GetSelectedNodesAsync(CodeRefactoringContext context); 34var selectedMemberNodes = await GetSelectedNodesAsync(context).ConfigureAwait(false); 39var memberNodeSymbolPairs = selectedMemberNodes 46var selectedMembers = memberNodeSymbolPairs.SelectAsArray(pair => pair.symbol); 53var allDestinations = FindAllValidDestinations( 78private static ImmutableArray<INamedTypeSymbol> FindAllValidDestinations( 79ImmutableArray<ISymbol> selectedMembers, 84var allDestinations = selectedMembers.All(m => m.IsKind(SymbolKind.Field))
PullMemberUp\Dialog\IPullMemberUpOptionsService.cs (1)
13PullMembersUpOptions GetPullMemberUpOptions(Document document, ImmutableArray<ISymbol> selectedNodeSymbols);
PullMemberUp\Dialog\PullMemberUpWithDialogCodeAction.cs (2)
20ImmutableArray<ISymbol> selectedMembers, 26private readonly ImmutableArray<ISymbol> _selectedMembers = selectedMembers;
PullMemberUp\MembersPuller.cs (7)
40ImmutableArray<ISymbol> selectedMembers, 102var symbolsToPullUp = pullMemberUpOptions.MemberAnalysisResults.SelectAsArray(GetSymbolsToPullUp); 285var pullUpMembersSymbols = result.MemberAnalysisResults.SelectAsArray( 433private static ImmutableArray<SyntaxNode> GetImports(SyntaxNode start, ISyntaxFactsService syntaxFacts) 468private static async Task<ImmutableDictionary<ISymbol, ImmutableArray<SyntaxNode>>> InitializeSymbolToDeclarationsMapAsync( 474var symbolToDeclarationsBuilder = ImmutableDictionary.CreateBuilder<ISymbol, ImmutableArray<SyntaxNode>>(); 478var tasks = memberAnalysisResult.Member.DeclaringSyntaxReferences.SelectAsArray(@ref => @ref.GetSyntaxAsync(cancellationToken));
PullMemberUp\PullMembersUpOptions.cs (2)
25public readonly ImmutableArray<MemberAnalysisResult> MemberAnalysisResults; 34ImmutableArray<MemberAnalysisResult> memberAnalysisResults)
PullMemberUp\PullMembersUpOptionsBuilder.cs (2)
14ImmutableArray<(ISymbol member, bool makeAbstract)> members) 16var membersAnalysisResult = members.SelectAsArray(memberAndMakeAbstract =>
QuickInfo\AbstractEmbeddedLanguageQuickInfoProvider.cs (2)
36var quickInfoProviders = _embeddedLanguageProviderFeature.GetServices(semanticModel, token, context.CancellationToken); 59public new ImmutableArray<Lazy<IEmbeddedLanguageQuickInfoProvider, EmbeddedLanguageMetadata>> GetServices(
QuickInfo\CommonQuickInfoProvider.cs (2)
20var tokens = await GetTokensAsync(tree, context.Position, context.CancellationToken).ConfigureAwait(false); 32protected async Task<ImmutableArray<SyntaxToken>> GetTokensAsync(SyntaxTree tree, int position, System.Threading.CancellationToken cancellationToken)
QuickInfo\CommonSemanticQuickInfoProvider.cs (13)
36var interceptorDisplayParts = GetInterceptorDisplayParts(semanticModel, token, cancellationToken); 48var linkedDocumentIds = document.GetLinkedDocumentIds(); 61ImmutableArray<DocumentId> linkedDocumentIds) 109var candidateProjects = candidateResults.SelectAsArray(result => result.docId.ProjectId); 125private static bool HasNoErrors(ImmutableArray<ISymbol> symbols) 151ImmutableArray<TaggedText> interceptorDisplayParts, 158var symbols = tokenInformation.Symbols; 181protected virtual ImmutableArray<TaggedText> GetInterceptorDisplayParts(SemanticModel semanticModel, SyntaxToken token, CancellationToken cancellationToken) => default; 265var symbols = BindSymbols(services, semanticModel, newToken, cancellationToken); 300protected ImmutableArray<ISymbol> BindSymbols( 317void AddSymbols(ImmutableArray<ISymbol> symbols, bool checkAccessibility) 336var filteredSymbols = BindSymbols(services, semanticModel, token, cancellationToken); 362private ImmutableArray<ISymbol> GetSymbolsFromToken(SyntaxToken token, SolutionServices services, SemanticModel semanticModel, CancellationToken cancellationToken)
QuickInfo\CommonSemanticQuickInfoProvider.TokenInfo.cs (2)
12ImmutableArray<ISymbol> symbols, 16public ImmutableArray<ISymbol> Symbols => symbols.NullToEmpty();
QuickInfo\IndentationHelper.cs (3)
27public static ImmutableArray<ClassifiedSpan> GetSpansWithAlignedIndentation( 29ImmutableArray<ClassifiedSpan> classifiedSpans, 85ImmutableArray<ClassifiedSpan> spans,
QuickInfo\OnTheFlyDocsInfo.cs (4)
16internal sealed class OnTheFlyDocsInfo(string symbolSignature, ImmutableArray<OnTheFlyDocsRelevantFileInfo?> declarationCode, string language, bool isContentExcluded, ImmutableArray<OnTheFlyDocsRelevantFileInfo?> additionalContext, bool hasComments = false) 19public ImmutableArray<OnTheFlyDocsRelevantFileInfo?> DeclarationCode { get; } = declarationCode; 22public ImmutableArray<OnTheFlyDocsRelevantFileInfo?> AdditionalContext { get; } = additionalContext;
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\QuickInfoContentBuilder.cs (1)
142var classifiedSpans = await ClassifierHelper.GetClassifiedSpansAsync(
QuickInfo\Presentation\TaggedTextExtensions.cs (9)
16internal static ImmutableArray<QuickInfoElement> ToInteractiveTextElements( 17this ImmutableArray<TaggedText> taggedTexts, 54var nestedElements = nestedBuilder.ToImmutableAndClear(); 175public void AddContainer(ImmutableArray<QuickInfoElement> nestedElements, string text) 202public ImmutableArray<QuickInfoElement> ToImmutableAndClear() 240private static QuickInfoClassifiedTextElement ClassifiedText(params ImmutableArray<QuickInfoClassifiedTextRun> runs) 243private static QuickInfoContainerElement StackedContainer(params ImmutableArray<QuickInfoElement> elements) 246private static QuickInfoContainerElement StackedContainer(bool includeVerticalPadding, params ImmutableArray<QuickInfoElement> elements) 258private 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; 25private ImmutableArray<QuickInfoProvider> GetProviders() 31var providers = ExtensionOrderer
QuickInfo\QuickInfoUtilities.cs (17)
21public static Task<QuickInfoItem> CreateQuickInfoItemAsync(SolutionServices services, SemanticModel semanticModel, TextSpan span, ImmutableArray<ISymbol> symbols, SymbolDescriptionOptions options, CancellationToken cancellationToken) 28ImmutableArray<ISymbol> symbols, 32ImmutableArray<TaggedText> interceptorDisplayParts, 54if (TryGetGroupText(SymbolDescriptionGroups.MainDescription, out var mainDescriptionTaggedParts)) 68else if (TryGetGroupText(SymbolDescriptionGroups.MainDescription, out var mainDescriptionTaggedParts)) 73if (groups.TryGetValue(SymbolDescriptionGroups.Documentation, out var docParts) && !docParts.IsDefaultOrEmpty) 80groups.TryGetValue(SymbolDescriptionGroups.RemarksDocumentation, out var remarksDocumentation) && 91if (groups.TryGetValue(SymbolDescriptionGroups.ReturnsDocumentation, out var returnsDocumentation) && 100if (groups.TryGetValue(SymbolDescriptionGroups.ValueDocumentation, out var valueDocumentation) && 109if (TryGetGroupText(SymbolDescriptionGroups.TypeParameterMap, out var typeParameterMapText)) 117if (TryGetGroupText(SymbolDescriptionGroups.StructuralTypes, out var anonymousTypesText)) 126if (TryGetGroupText(SymbolDescriptionGroups.AwaitableUsageText, out var awaitableUsageText)) 151if (TryGetGroupText(SymbolDescriptionGroups.Exceptions, out var exceptionsText)) 154if (TryGetGroupText(SymbolDescriptionGroups.Captures, out var capturesText)) 157var tags = ImmutableArray.CreateRange(GlyphTags.GetTags(symbol.GetGlyph())); 163bool TryGetGroupText(SymbolDescriptionGroups group, out ImmutableArray<TaggedText> taggedParts) 166void AddSection(string kind, ImmutableArray<TaggedText> taggedParts)
RemoveUnusedVariable\AbstractRemoveUnusedVariableCodeFixProvider.cs (1)
55protected override async Task FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor syntaxEditor, CancellationToken cancellationToken)
Rename\SymbolicRenameInfo.cs (3)
37public ImmutableArray<DocumentSpan> DocumentSpans { get; } 50ImmutableArray<DocumentSpan> documentSpans) 207var symbolLocations = symbol.Locations;
ReplaceMethodWithProperty\ReplaceMethodWithPropertyCodeRefactoringProvider.cs (2)
355var getSetPairs = await GetGetSetPairsAsync( 397private static async Task<ImmutableArray<GetAndSetMethods>> GetGetSetPairsAsync(
ReplacePropertyWithMethods\AbstractReplacePropertyWithMethodsService.cs (1)
29public abstract Task<ImmutableArray<SyntaxNode>> GetReplacementMembersAsync(
ReplacePropertyWithMethods\IReplacePropertyWithMethodsService.cs (1)
25Task<ImmutableArray<SyntaxNode>> GetReplacementMembersAsync(
ReplacePropertyWithMethods\ReplacePropertyWithMethodsCodeRefactoringProvider.cs (3)
356var currentDefinitions = await GetCurrentPropertiesAsync( 370var members = await service.GetReplacementMembersAsync( 393private static async Task<ImmutableArray<(IPropertySymbol property, SyntaxNode declaration)>> GetCurrentPropertiesAsync(
RQName\RQNodeBuilder.cs (1)
139private static IList<RQParameter>? BuildParameterList(ImmutableArray<IParameterSymbol> parameters)
SemanticSearch\ExecuteQueryResult.cs (1)
38[property: DataMember(Order = 1)] ImmutableArray<QueryCompilationError> CompilationErrors,
SemanticSearch\IRemoteSemanticSearchService.cs (3)
29ValueTask OnDocumentUpdatedAsync(RemoteServiceCallbackId callbackId, DocumentId documentId, ImmutableArray<TextChange> changes, CancellationToken cancellationToken); 61public ValueTask OnDocumentUpdatedAsync(RemoteServiceCallbackId callbackId, DocumentId documentId, ImmutableArray<TextChange> changes, CancellationToken cancellationToken) 130public async ValueTask OnDocumentUpdatedAsync(DocumentId documentId, ImmutableArray<TextChange> changes, CancellationToken cancellationToken)
SemanticSearch\ISemanticSearchResultsObserver.cs (3)
25ValueTask OnDocumentUpdatedAsync(DocumentId documentId, ImmutableArray<TextChange> changes, CancellationToken cancellationToken); 50[property: DataMember(Order = 2)] ImmutableArray<TaggedText> TypeName, 51[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)
52public static async Task<ImmutableArray<T>> GetUnionItemsFromDocumentAndLinkedDocumentsAsync<T>( 55Func<Document, Task<ImmutableArray<T>>> getItemsWorker) 59var values = await getItemsWorker(document).ConfigureAwait(false); 96var rules = await document.GetNamingRulesAsync(cancellationToken).ConfigureAwait(false); 109var rules = await document.GetNamingRulesAsync(cancellationToken).ConfigureAwait(false);
Shared\Extensions\ISymbolExtensions_2.cs (1)
184public 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) 138private 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 (11)
116Document document, SyntaxFormattingOptions formattingOptions, INamedTypeSymbol type, ImmutableArray<ISymbol> extractableMembers, CancellationToken cancellationToken) 118var typeParameters = GetRequiredTypeParametersForMembers(type, extractableMembers); 125var typeParameterNames = typeParameters.SelectAsArray(p => p.Name); 131public static ImmutableArray<ITypeParameterSymbol> GetRequiredTypeParametersForMembers( 132INamedTypeSymbol type, ImmutableArray<ISymbol> includedMembers) 134var potentialTypeParameters = GetPotentialTypeParameters(type); 136var directlyReferencedTypeParameters = GetDirectlyReferencedTypeParameters(potentialTypeParameters, includedMembers); 165private static ImmutableArray<ITypeParameterSymbol> GetPotentialTypeParameters(INamedTypeSymbol type) 186private static ImmutableArray<ITypeParameterSymbol> GetDirectlyReferencedTypeParameters( 187ImmutableArray<ITypeParameterSymbol> potentialTypeParameters, ImmutableArray<ISymbol> includedMembers)
Shared\Utilities\SupportedPlatformData.cs (4)
13internal sealed class SupportedPlatformData(Solution solution, ImmutableArray<ProjectId> invalidProjects, ImmutableArray<ProjectId> candidateProjects) 18public readonly ImmutableArray<ProjectId> InvalidProjects = invalidProjects; 19public readonly ImmutableArray<ProjectId> CandidateProjects = candidateProjects;
SignatureHelp\AbstractSignatureHelpProvider.cs (9)
31public abstract ImmutableArray<char> TriggerCharacters { get; } 32public abstract ImmutableArray<char> RetriggerCharacters { get; } 93private static (IList<SignatureHelpItem> items, int? selectedItem) Filter(IList<SignatureHelpItem> items, ImmutableArray<string> parameterNames, int? selectedItem) 110private static bool Include(SignatureHelpItem item, ImmutableArray<string> parameterNames) 249var relatedDocuments = await FindActiveRelatedDocumentsAsync(position, document, cancellationToken).ConfigureAwait(false); 255var totalProjects = relatedDocuments.Concat(document).SelectAsArray(d => d.Project.Id); 303private static async Task<ImmutableArray<Document>> FindActiveRelatedDocumentsAsync(int position, Document document, CancellationToken cancellationToken) 320var platformParts = platformData.ToDisplayParts().ToTaggedText(); 338protected static int? TryGetSelectedIndex<TSymbol>(ImmutableArray<TSymbol> candidates, ISymbol? currentSymbol) where TSymbol : class, ISymbol
SignatureHelp\CommonSignatureHelpUtilities.cs (4)
34var argumentNames = getArgumentNames(argumentList).ToImmutableArray(); 163public static async Task<ImmutableArray<IMethodSymbol>> GetCollectionInitializerAddMethodsAsync( 185var addSymbols = semanticModel.LookupSymbols( 188var addMethods = addSymbols.OfType<IMethodSymbol>()
SignatureHelp\ISignatureHelpProvider.cs (2)
17ImmutableArray<char> TriggerCharacters { get; } 23ImmutableArray<char> RetriggerCharacters { get; }
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; } = 37Document document, ImmutableArray<Diagnostic> diagnostics,
SimplifyTypeNames\AbstractSimplifyTypeNamesCodeFixProvider.cs (2)
32public sealed override ImmutableArray<string> FixableDiagnosticIds { get; } = 92Document document, ImmutableArray<Diagnostic> diagnostics,
Snippets\AbstractSnippetService.cs (3)
19private readonly ImmutableArray<Lazy<ISnippetProvider, LanguageMetadata>> _lazySnippetProviders = [.. lazySnippetProviders]; 22private ImmutableArray<ISnippetProvider> _snippetProviders; 38public ImmutableArray<SnippetData> GetSnippets(SnippetContext context, CancellationToken cancellationToken)
Snippets\ISnippetService.cs (1)
17ImmutableArray<SnippetData> GetSnippets(SnippetContext context, CancellationToken cancellationToken);
Snippets\RoslynLSPSnippetConverter.cs (5)
22public static async Task<string> GenerateLSPSnippetAsync(Document document, int caretPosition, ImmutableArray<SnippetPlaceholder> placeholders, TextChange textChange, int triggerLocation, CancellationToken cancellationToken) 32private static string ConvertToLSPSnippetString(TextChange textChange, ImmutableArray<SnippetPlaceholder> placeholders, int caretPosition) 84private static void PopulateMapOfSpanStartsToLSPStringItem(Dictionary<int, (string identifier, int priority)> dictionary, ImmutableArray<SnippetPlaceholder> placeholders, int textChangeStart) 108private static async Task<TextChange> ExtendSnippetTextChangeAsync(Document document, TextChange textChange, ImmutableArray<SnippetPlaceholder> placeholders, int caretPosition, int triggerLocation, CancellationToken cancellationToken) 123private 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)
24protected sealed override ValueTask<ImmutableArray<SnippetPlaceholder>> GetPlaceHolderLocationsListAsync(
Snippets\SnippetProviders\AbstractConsoleSnippetProvider.cs (1)
34public sealed override ImmutableArray<string> AdditionalFilterTexts { get; } = ["WriteLine"];
Snippets\SnippetProviders\AbstractConstructorSnippetProvider.cs (1)
18public sealed override ImmutableArray<string> AdditionalFilterTexts { get; } = ["constructor"];
Snippets\SnippetProviders\AbstractIfSnippetProvider.cs (1)
17public sealed override ImmutableArray<string> AdditionalFilterTexts { get; } = ["statement"];
Snippets\SnippetProviders\AbstractSingleChangeSnippetProvider.cs (1)
17protected sealed override async Task<ImmutableArray<TextChange>> GenerateSnippetTextChangesAsync(Document document, int position, CancellationToken cancellationToken)
Snippets\SnippetProviders\AbstractSnippetProvider.cs (7)
28public virtual ImmutableArray<string> AdditionalFilterTexts => []; 41protected abstract Task<ImmutableArray<TextChange>> GenerateSnippetTextChangesAsync(Document document, int position, CancellationToken cancellationToken); 51protected virtual ValueTask<ImmutableArray<SnippetPlaceholder>> GetPlaceHolderLocationsListAsync( 77var textChanges = await GenerateSnippetTextChangesAsync(document, position, cancellationToken).ConfigureAwait(false); 106var placeholders = await GetPlaceHolderLocationsListAsync( 111var changesArray = changes.ToImmutableArray(); 191private static async Task<Document> GetDocumentWithSnippetAsync(Document document, ImmutableArray<TextChange> snippets, CancellationToken cancellationToken)
Snippets\SnippetProviders\AbstractTypeSnippetProvider.cs (2)
30protected sealed override async Task<ImmutableArray<TextChange>> GenerateSnippetTextChangesAsync( 46protected sealed override async ValueTask<ImmutableArray<SnippetPlaceholder>> GetPlaceHolderLocationsListAsync(
Snippets\SnippetProviders\ISnippetProvider.cs (1)
26ImmutableArray<string> AdditionalFilterTexts { get; }
SolutionExplorer\ISolutionExplorerSymbolTreeItemProvider.cs (4)
17ImmutableArray<SymbolTreeItemData> GetItems(DocumentId documentId, SyntaxNode declarationNode, bool includeNamespaces, CancellationToken cancellationToken); 74protected virtual ImmutableArray<TMemberStatement> GetMemberDeclarationMembers(TMemberDeclarationSyntax memberDeclaration) => []; 75protected virtual ImmutableArray<TMemberStatement> GetMemberStatementMembers(TMemberStatement memberDeclaration) => []; 78public ImmutableArray<SymbolTreeItemData> GetItems(DocumentId documentId, SyntaxNode node, bool returnNamespaces, CancellationToken cancellationToken)
SpellCheck\AbstractSpellCheckCodeFixProvider.cs (1)
173var codeActions = results.OrderBy(kvp => kvp.Key)
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)
36ImmutableArray<SyntaxNode> GetElseIfAndElseClauses(SyntaxNode ifOrElseIf);
src\4f5ad909b1ed0e10\AbstractUseCoalesceExpressionForNullableTernaryConditionalCheckDiagnosticAnalyzer.cs (1)
119var locations = ImmutableArray.Create(
src\939a5660f39ce290\AbstractUseConditionalExpressionForAssignmentCodeFixProvider.cs (2)
40public override ImmutableArray<string> FixableDiagnosticIds 222var declarators = declaration.Declarators;
src\roslyn\src\Analyzers\Core\Analyzers\AbstractBuiltInCodeStyleDiagnosticAnalyzer_Core.cs (3)
38protected AbstractBuiltInCodeStyleDiagnosticAnalyzer(ImmutableArray<DiagnosticDescriptor> supportedDiagnostics) 47public sealed override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } 120ImmutableArray<NotificationOption2> notifications,
src\roslyn\src\Analyzers\Core\Analyzers\AbstractBuiltInCodeStyleDiagnosticAnalyzer.cs (2)
82protected AbstractBuiltInCodeStyleDiagnosticAnalyzer(ImmutableArray<(DiagnosticDescriptor Descriptor, IOption2 Option)> supportedDiagnosticsWithOptions) 95protected AbstractBuiltInCodeStyleDiagnosticAnalyzer(ImmutableArray<(DiagnosticDescriptor Descriptor, ImmutableHashSet<IOption2> Options)> supportedDiagnosticsWithOptions)
src\roslyn\src\Analyzers\Core\Analyzers\AbstractBuiltInUnnecessaryCodeStyleDiagnosticAnalyzer.cs (3)
72protected AbstractBuiltInUnnecessaryCodeStyleDiagnosticAnalyzer(ImmutableArray<DiagnosticDescriptor> descriptors) 80protected AbstractBuiltInUnnecessaryCodeStyleDiagnosticAnalyzer(ImmutableArray<(DiagnosticDescriptor Descriptor, IOption2 Option)> supportedDiagnosticsWithOptions) 88protected AbstractBuiltInUnnecessaryCodeStyleDiagnosticAnalyzer(ImmutableArray<(DiagnosticDescriptor Descriptor, ImmutableHashSet<IOption2> Options)> supportedDiagnosticsWithOptions)
src\roslyn\src\Analyzers\Core\Analyzers\AbstractCodeQualityDiagnosticAnalyzer.cs (2)
16ImmutableArray<DiagnosticDescriptor> descriptors, 24public sealed override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; }
src\roslyn\src\Analyzers\Core\Analyzers\AddAccessibilityModifiers\AbstractAddAccessibilityModifiersDiagnosticAnalyzer.cs (1)
67var additionalLocations = ImmutableArray.Create(member.GetLocation());
src\roslyn\src\Analyzers\Core\Analyzers\AddRequiredParentheses\AbstractAddRequiredParenthesesDiagnosticAnalyzer.cs (4)
67protected static ImmutableArray<string> GetAllEquivalenceKeys() 85protected abstract ImmutableArray<TLanguageKindEnum> GetSyntaxNodeKinds(); 115var additionalLocations = ImmutableArray.Create(binaryLike.GetLocation()); 166NotificationOption2 notificationOption, ImmutableArray<Location> additionalLocations,
src\roslyn\src\Analyzers\Core\Analyzers\ForEachCast\AbstractForEachCastDiagnosticAnalyzer.cs (1)
39protected abstract ImmutableArray<TSyntaxKind> GetSyntaxKinds();
src\roslyn\src\Analyzers\Core\Analyzers\Helpers\DiagnosticHelper.cs (8)
90ImmutableArray<Location> additionalLocations, 91ImmutableArray<Location> additionalUnnecessaryLocations, 110ImmutableArray<Location> additionalLocations, 111ImmutableArray<Location> additionalUnnecessaryLocations) 158ImmutableArray<Location> additionalLocations, 159ImmutableArray<Location> additionalUnnecessaryLocations, 180ImmutableArray<Location> additionalLocations, 181ImmutableArray<Location> additionalUnnecessaryLocations,
src\roslyn\src\Analyzers\Core\Analyzers\Helpers\HashCodeAnalyzer\HashCodeAnalyzer.cs (8)
50public (bool accessesBase, ImmutableArray<ISymbol> members, ImmutableArray<IOperation> statements) GetHashedMembers(ISymbol? owningSymbol, IOperation? operation) 72var statements = blockOperation.Operations.WhereAsArray(o => !o.IsImplicit); 81private (bool accessesBase, ImmutableArray<ISymbol> members)? MatchTuplePattern( 82IMethodSymbol method, ImmutableArray<IOperation> statements) 104private (bool accessesBase, ImmutableArray<ISymbol> members)? MatchAccumulatorPattern( 105IMethodSymbol method, ImmutableArray<IOperation> statements) 127var variables = varDeclStatement.GetDeclaredVariables();
src\roslyn\src\Analyzers\Core\Analyzers\Helpers\HashCodeAnalyzer\HashCodeAnalyzer.OperationDeconstructor.cs (1)
34public readonly (bool accessesBase, ImmutableArray<ISymbol> hashedSymbol) GetResult()
src\roslyn\src\Analyzers\Core\Analyzers\MakeFieldReadonly\AbstractMakeFieldReadonlyDiagnosticAnalyzer.cs (1)
117var members = ((INamedTypeSymbol)symbolEndContext.Symbol).GetMembers();
src\roslyn\src\Analyzers\Core\Analyzers\MatchFolderAndNamespace\AbstractMatchFolderAndNamespaceDiagnosticAnalyzer.cs (1)
45protected abstract ImmutableArray<TSyntaxKind> GetSyntaxKindsToAnalyze();
src\roslyn\src\Analyzers\Core\Analyzers\NamingStyle\NamingStyleDiagnosticAnalyzerBase.cs (2)
34private static readonly ImmutableArray<SymbolKind> _symbolKinds = [SymbolKind.Event, SymbolKind.Method, SymbolKind.NamedType, SymbolKind.Namespace, SymbolKind.Property]; 38protected abstract ImmutableArray<TLanguageKindEnum> SupportedSyntaxKinds { get; }
src\roslyn\src\Analyzers\Core\Analyzers\RemoveUnnecessaryCast\AbstractRemoveUnnecessaryCastDiagnosticAnalyzer.cs (1)
29protected abstract ImmutableArray<TLanguageKindEnum> SyntaxKindsOfInterest { get; }
src\roslyn\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); 95var unnecessaryImports = UnnecessaryImportsProvider.GetUnnecessaryImports(context.SemanticModel, context.FilterSpan, cancellationToken); 103var mergedImports = MergeImports(unnecessaryImports); 146private IEnumerable<TextSpan> GetContiguousSpans(ImmutableArray<SyntaxNode> nodes)
src\roslyn\src\Analyzers\Core\Analyzers\RemoveUnnecessaryParentheses\AbstractRemoveUnnecessaryParenthesesDiagnosticAnalyzer.cs (2)
111var additionalLocations = ImmutableArray.Create( 113var additionalUnnecessaryLocations = ImmutableArray.Create(
src\roslyn\src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryAttributeSuppressionsDiagnosticAnalyzer.cs (2)
75if (!_state.IsSuppressMessageAttributeWithNamedArguments(attributeSyntax, model, cancellationToken, out var namedAttributeArguments)) 87out var targetSymbolString, out var targetValueOperation, out var resolvedSymbols))
src\roslyn\src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (22)
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) 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\roslyn\src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\SuppressMessageAttributeState.cs (5)
46out ImmutableArray<(string name, IOperation value)> namedAttributeArguments) 70public static bool HasValidScope(ImmutableArray<(string name, IOperation value)> namedAttributeArguments, out TargetScope targetScope) 88ImmutableArray<(string name, IOperation value)> namedAttributeArguments, 93out ImmutableArray<ISymbol> resolvedSymbols) 128ImmutableArray<(string name, IOperation value)> namedAttributeArguments,
src\roslyn\src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (4)
364var methods = _analyzer.SemanticFacts.GetDeconstructionAssignmentMethods(operation.SemanticModel!, operation.Syntax); 475var parameters = operationContext.Operation switch 706var additionalUnnecessaryLocations = !isConvertibleProperty && fadingNode is not null 708: ImmutableArray<Location>.Empty;
src\roslyn\src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.cs (1)
213var notifications = ImmutableArray.Create(unusedParametersOption.Notification, unusedValueExpressionStatementSeverity, unusedValueAssignmentSeverity);
src\roslyn\src\Analyzers\Core\Analyzers\SimplifyInterpolation\AbstractSimplifyInterpolationDiagnosticAnalyzer.cs (2)
78out var formatString, out var unnecessaryLocations); 86var remainingUnnecessaryLocations = unnecessaryLocations.RemoveAt(0);
src\roslyn\src\Analyzers\Core\Analyzers\SimplifyInterpolation\AbstractSimplifyInterpolationHelpers.cs (1)
74out ImmutableArray<Location> unnecessaryLocations)
src\roslyn\src\Analyzers\Core\Analyzers\SimplifyLinqExpression\AbstractSimplifyLinqExpressionDiagnosticAnalyzer.cs (3)
66TryGetLinqMethodsThatDoNotReturnEnumerables(enumerableType, out var linqMethods)) 102static bool TryGetLinqMethodsThatDoNotReturnEnumerables(INamedTypeSymbol enumerableType, out ImmutableArray<IMethodSymbol> linqMethods) 168var members = targetTypeSymbol.GetMembers(name);
src\roslyn\src\Analyzers\Core\Analyzers\SimplifyTypeNames\SimplifyTypeNamesDiagnosticAnalyzerBase.cs (5)
70protected static ImmutableArray<NotificationOption2> GetAllNotifications(SimplifierOptions options) 97protected abstract ImmutableArray<Diagnostic> AnalyzeCodeBlock(CodeBlockAnalysisContext context, SyntaxNode root); 98protected abstract ImmutableArray<Diagnostic> AnalyzeSemanticModel(SemanticModelAnalysisContext context, SyntaxNode root, TextSpanMutableIntervalTree? codeBlockIntervalTree); 224var diagnostics = _analyzer.AnalyzeCodeBlock(context, root); 280var diagnostics = _analyzer.AnalyzeSemanticModel(context, root, intervalTree);
src\roslyn\src\Analyzers\Core\Analyzers\UseAutoProperty\AbstractUseAutoPropertyAnalyzer.cs (2)
437var attributes = getterField.GetAttributes(); 648var additionalLocations = ImmutableArray.Create(
src\roslyn\src\Analyzers\Core\Analyzers\UseAutoProperty\AccessedFields.cs (1)
17ImmutableArray<IFieldSymbol> NonTrivialFields)
src\roslyn\src\Analyzers\Core\Analyzers\UseCoalesceExpression\AbstractUseCoalesceExpressionForTernaryConditionalCheckDiagnosticAnalyzer.cs (1)
123var locations = ImmutableArray.Create(
src\roslyn\src\Analyzers\Core\Analyzers\UseCollectionInitializer\AbstractObjectCreationExpressionAnalyzer.cs (2)
38ImmutableArray<TMatch> PreMatches, 39ImmutableArray<TMatch> PostMatches,
src\roslyn\src\Analyzers\Core\Analyzers\UseCollectionInitializer\AbstractUseCollectionInitializerAnalyzer.cs (2)
221protected ImmutableArray<IMethodSymbol> GetAddMethods(CancellationToken cancellationToken) 227var addMethods = this.SemanticModel.LookupSymbols(
src\roslyn\src\Analyzers\Core\Analyzers\UseCollectionInitializer\AbstractUseCollectionInitializerDiagnosticAnalyzer.cs (10)
83ImmutableArray<CollectionMatch<SyntaxNode>> preMatches, 110var matchKindsArray = matchKinds.ToImmutableAndClear(); 176var nodes = containingStatement is null 177? ImmutableArray<SyntaxNode>.Empty 183var locations = ImmutableArray.Create(objectCreationExpression.GetLocation()); 202(ImmutableArray<CollectionMatch<SyntaxNode>> matches, bool shouldUseCollectionExpression, bool changesSemantics)? GetCollectionInitializerMatches() 219(ImmutableArray<CollectionMatch<SyntaxNode>> matches, bool shouldUseCollectionExpression, bool changesSemantics)? GetCollectionExpressionMatches() 245ImmutableArray<CollectionMatch<SyntaxNode>> matches, 246ImmutableArray<Location> locations, 253var additionalUnnecessaryLocations = UseCollectionInitializerHelpers.GetLocationsToFade(
src\roslyn\src\Analyzers\Core\Analyzers\UseCollectionInitializer\UpdateExpressionState.cs (3)
33private static readonly ImmutableArray<(string name, bool isLinq)> s_multiAddNames = 498var whenTrueStatements = whenTrue.ToImmutableArray(); 519var whenFalseStatements = whenFalse.ToImmutableArray();
src\roslyn\src\Analyzers\Core\Analyzers\UseCollectionInitializer\UseCollectionInitializerHelpers.cs (3)
22public static ImmutableArray<Location> GetLocationsToFade( 35var additionalUnnecessaryLocations = ImmutableArray.Create( 47var additionalUnnecessaryLocations = ImmutableArray.Create(
src\roslyn\src\Analyzers\Core\Analyzers\UseCompoundAssignment\AbstractUseCompoundAssignmentDiagnosticAnalyzer.cs (1)
37ImmutableArray<(TSyntaxKind exprKind, TSyntaxKind assignmentKind, TSyntaxKind tokenKind)> kinds)
src\roslyn\src\Analyzers\Core\Analyzers\UseCompoundAssignment\UseCompoundAssignmentUtilities.cs (1)
20ImmutableArray<(TSyntaxKind exprKind, TSyntaxKind assignmentKind, TSyntaxKind tokenKind)> kinds,
src\roslyn\src\Analyzers\Core\Analyzers\UseIsNullCheck\AbstractUseIsNullForReferenceEqualsDiagnosticAnalyzer.cs (1)
132var additionalLocations = ImmutableArray.Create(invocation.GetLocation());
src\roslyn\src\Analyzers\Core\Analyzers\UseNullPropagation\AbstractUseNullPropagationDiagnosticAnalyzer_IfStatement.cs (2)
30out ImmutableArray<TStatementSyntax> trueStatements); 161if (!this.TryGetPartsOfIfStatement(ifStatement, out condition, out var trueStatements))
src\roslyn\src\Analyzers\Core\Analyzers\UseObjectInitializer\AbstractUseObjectInitializerDiagnosticAnalyzer.cs (6)
86var matchKindsArray = matchKinds.ToImmutableAndClear(); 116var matches = analyzer.Analyze(semanticModel, syntaxFacts, objectCreationExpression, context.CancellationToken); 128var nodes = ImmutableArray.Create<SyntaxNode>(containingStatement).AddRange(matches.Select(m => m.Statement)); 132var locations = ImmutableArray.Create(objectCreationExpression.GetLocation()); 149ImmutableArray<Match<TExpressionSyntax, TStatementSyntax, TMemberAccessExpressionSyntax, TAssignmentStatementSyntax>> matches, 150ImmutableArray<Location> locations,
src\roslyn\src\Analyzers\Core\Analyzers\UseObjectInitializer\UseNamedMemberInitializerAnalyzer.cs (1)
49public ImmutableArray<Match<TExpressionSyntax, TStatementSyntax, TMemberAccessExpressionSyntax, TAssignmentStatementSyntax>> Analyze(
src\roslyn\src\Analyzers\Core\Analyzers\UseThrowExpression\AbstractUseThrowExpressionDiagnosticAnalyzer.cs (2)
128var allLocations = ImmutableArray.Create( 140var statements = containingBlock.Operations;
src\roslyn\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\roslyn\src\Analyzers\Core\Analyzers\ValidateFormatString\FormatStringValidationOptionStorage.cs (1)
17public static readonly ImmutableArray<IOption2> UnsupportedOptions = [ReportInvalidPlaceholdersInStringDotFormatCalls];
src\roslyn\src\Analyzers\Core\CodeFixes\AddAccessibilityModifiers\AbstractAddAccessibilityModifiersCodeFixProvider.cs (2)
21public sealed override ImmutableArray<string> FixableDiagnosticIds 40Document document, ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\Core\CodeFixes\AddAnonymousTypeMemberName\AbstractAddAnonymousTypeMemberNameCodeFixProvider.cs (1)
83Document document, ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\Core\CodeFixes\AddExplicitCast\AbstractAddExplicitCastCodeFixProvider.cs (7)
47protected ImmutableArray<(TExpressionSyntax node, ITypeSymbol type)> GetPotentialTargetTypes( 78var potentialConversionTypes = GetPotentialTargetTypes( 169private static ImmutableArray<(TExpressionSyntax, ITypeSymbol)> FilterValidPotentialConversionTypes( 196string argumentName, ImmutableArray<IParameterSymbol> parameters, ref int parameterIndex) 212ImmutableArray<Diagnostic> diagnostics, 217var spanNodes = diagnostics.SelectAsArray( 227var potentialConversionTypes = GetPotentialTargetTypes(
src\roslyn\src\Analyzers\Core\CodeFixes\AddExplicitCast\Fixer.cs (2)
38public ImmutableArray<(TExpressionSyntax, ITypeSymbol)> GetPotentialConversionTypes( 113ImmutableArray<IParameterSymbol> parameters,
src\roslyn\src\Analyzers\Core\CodeFixes\AddObsoleteAttribute\AbstractAddObsoleteAttributeCodeFixProvider.cs (1)
71Document document, ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\Core\CodeFixes\AddParameter\AbstractAddParameterCodeFixProvider.cs (17)
44protected abstract ImmutableArray<string> TooManyArgumentsDiagnosticIds { get; } 45protected abstract ImmutableArray<string> CannotConvertDiagnosticIds { get; } 83var candidates = fixData.MethodCandidates; 95var argumentInsertPositionInMethodCandidates = GetArgumentInsertPositionForMethodCandidates( 134var candidates = semanticModel.GetMemberGroup(expression, cancellationToken).OfType<IMethodSymbol>().ToImmutableArray(); 185var methodCandidates = type.InstanceConstructors; 193private static ImmutableArray<ArgumentInsertPositionData<TArgumentSyntax>> GetArgumentInsertPositionForMethodCandidates( 198ImmutableArray<IMethodSymbol> methodCandidates) 242ImmutableArray<ArgumentInsertPositionData<TArgumentSyntax>> methodsAndArgumentsToAdd) 244var codeFixData = PrepareCreationOfCodeActions(context.Document, arguments, methodsAndArgumentsToAdd); 249var fixes = codeFixData.Length <= 2 256ImmutableArray<CodeAction> NestByOverload() 293ImmutableArray<CodeAction> NestByCascading() 297var nonCascadingActions = codeFixData.SelectAsArray(data => 303var cascadingActions = codeFixData.SelectAsArray( 330private ImmutableArray<CodeFixData> PrepareCreationOfCodeActions( 333ImmutableArray<ArgumentInsertPositionData<TArgumentSyntax>> methodsAndArgumentsToAdd)
src\roslyn\src\Analyzers\Core\CodeFixes\AddParameter\AddParameterService.cs (2)
91var referencedSymbols = fixAllReferences 214private static async Task<ImmutableArray<IMethodSymbol>> FindMethodDeclarationReferencesAsync(
src\roslyn\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\roslyn\src\Analyzers\Core\CodeFixes\AddRequiredParentheses\AddRequiredParenthesesCodeFixProvider.cs (2)
23public override ImmutableArray<string> FixableDiagnosticIds 37Document document, ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\Core\CodeFixes\AliasAmbiguousType\AbstractAliasAmbiguousTypeCodeFixProvider.cs (4)
80var typeToNameSegments = new Dictionary<ITypeSymbol, ImmutableArray<string>>(); 84var t1NameSegments = GetNameSegments(t1); 85var t2NameSegments = GetNameSegments(t2); 106ImmutableArray<string> GetNameSegments(ITypeSymbol symbol)
src\roslyn\src\Analyzers\Core\CodeFixes\ConflictMarkerResolution\AbstractConflictMarkerCodeFixProvider.cs (3)
56public override ImmutableArray<string> FixableDiagnosticIds { get; } 393Document document, ImmutableArray<Diagnostic> diagnostics, 402var orderedDiagnostics = diagnostics.OrderBy(
src\roslyn\src\Analyzers\Core\CodeFixes\ConvertTypeOfToNameOf\AbstractConvertTypeOfToNameOfCodeFixProvider.cs (2)
24public sealed override ImmutableArray<string> FixableDiagnosticIds 34Document document, ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\Core\CodeFixes\DocumentationComments\AbstractAddDocCommentNodesCodeFixProvider.cs (2)
54protected abstract ImmutableArray<string> GetParameterNames(TMemberDeclarationSyntax method); 63var parameterNames = GetParameterNames(parentMethod);
src\roslyn\src\Analyzers\Core\CodeFixes\DocumentationComments\AbstractRemoveDocCommentNodeCodeFixProvider.cs (1)
23public abstract override ImmutableArray<string> FixableDiagnosticIds { get; }
src\roslyn\src\Analyzers\Core\CodeFixes\FileHeaders\AbstractFileHeaderCodeFixProvider.cs (1)
27public override ImmutableArray<string> FixableDiagnosticIds { get; }
src\roslyn\src\Analyzers\Core\CodeFixes\ForEachCast\AbstractForEachCastCodeFixProvider.cs (2)
24public sealed override ImmutableArray<string> FixableDiagnosticIds 39Document document, ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\Core\CodeFixes\Formatting\FormattingCodeFixProvider.cs (2)
28public sealed override ImmutableArray<string> FixableDiagnosticIds 86protected override async Task FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken)
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.cs (8)
34protected abstract bool TryInitializeImplicitObjectCreation(SemanticDocument document, SyntaxNode node, CancellationToken cancellationToken, out SyntaxToken token, out ImmutableArray<Argument<TExpressionSyntax>> arguments, [NotNullWhen(true)] out INamedTypeSymbol? typeToGenerateIn); 35protected abstract bool TryInitializeSimpleNameGenerationState(SemanticDocument document, SyntaxNode simpleName, CancellationToken cancellationToken, out SyntaxToken token, out ImmutableArray<Argument<TExpressionSyntax>> arguments, [NotNullWhen(true)] out INamedTypeSymbol? typeToGenerateIn); 36protected abstract bool TryInitializeConstructorInitializerGeneration(SemanticDocument document, SyntaxNode constructorInitializer, CancellationToken cancellationToken, out SyntaxToken token, out ImmutableArray<Argument<TExpressionSyntax>> arguments, [NotNullWhen(true)] out INamedTypeSymbol? typeToGenerateIn); 37protected abstract bool TryInitializeSimpleAttributeNameGenerationState(SemanticDocument document, SyntaxNode simpleName, CancellationToken cancellationToken, out SyntaxToken token, out ImmutableArray<Argument<TExpressionSyntax>> arguments, [NotNullWhen(true)] out INamedTypeSymbol? typeToGenerateIn); 80public async Task<ImmutableArray<CodeAction>> GenerateConstructorAsync(Document document, SyntaxNode node, CancellationToken cancellationToken) 170private ImmutableArray<ParameterName> GenerateParameterNames( 176var isFixed = reservedNames.Select(s => true).Concat( 179var parameterNames = reservedNames.Concat(
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.State.cs (32)
35private ImmutableArray<Argument<TExpressionSyntax>> _arguments; 40private ImmutableArray<RefKind> _parameterRefKinds; 41public ImmutableArray<ITypeSymbol> ParameterTypes; 48private ImmutableArray<IParameterSymbol> _parameters; 128var typeParametersNames = TypeToGenerateIn.GetAllTypeParameters().SelectAsArray(t => t.Name); 129var parameterNames = GetParameterNames(_arguments, typeParametersNames, cancellationToken); 136private ImmutableArray<ParameterName> GetParameterNames( 137ImmutableArray<Argument<TExpressionSyntax>> arguments, ImmutableArray<string> typeParametersNames, CancellationToken cancellationToken) 146var parameters = ParameterTypes.Zip(_parameterRefKinds, 148var expressions = _arguments.SelectAsArray(a => a.Expression); 160var remainingArguments = _arguments.Skip(argumentCount).ToImmutableArray(); 161var remainingParameterNames = _service.GenerateParameterNames( 172var remainingParameterTypes = ParameterTypes.Skip(argumentCount).ToImmutableArray(); 183ImmutableArray<IParameterSymbol> allParameters, 184ImmutableArray<TExpressionSyntax?> allExpressions, 192var parameters = allParameters[0..i]; 193var expressions = allExpressions[0..i]; 204ImmutableArray<IParameterSymbol> parameters, 205ImmutableArray<TExpressionSyntax?> expressions, 206ImmutableArray<IMethodSymbol> constructors, 278internal ImmutableArray<ITypeSymbol> GetParameterTypes(CancellationToken cancellationToken) 280var allTypeParameters = TypeToGenerateIn.GetAllTypeParameters(); 300out var token, out var arguments, out var typeToGenerateIn)) 318out var token, out var arguments, out var typeToGenerateIn)) 337out var token, out var arguments, out var typeToGenerateIn)) 431var delegatingArguments = this.GetRequiredLanguageService<SyntaxGenerator>(TypeToGenerateIn.Language).CreateArguments(_delegatedConstructor.Parameters); 433var newParameters = _delegatedConstructor.Parameters.Concat(_parameters); 458private async Task<(ImmutableArray<ISymbol>, ImmutableArray<SyntaxNode>)> GenerateMembersAndAssignmentsAsync( 463var members = withFields ? SyntaxGeneratorExtensions.CreateFieldsForParameters(_parameters, ParameterToNewFieldMap, IsContainedInUnsafeType) : 468var assignments = !withFields && !withProperties
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateConstructor\GenerateConstructorHelpers.cs (10)
28ImmutableArray<IParameterSymbol> parameters, 29ImmutableArray<TExpressionSyntax?> expressions, 84ImmutableArray<TExpressionSyntax?> expressions) 131(ImmutableArray<IParameterSymbol> parameters, 137ImmutableArray<Argument<TExpressionSyntax>> arguments, 138ImmutableArray<ITypeSymbol> parameterTypes, 139ImmutableArray<ParameterName> parameterNames, 147var rules = await document.Document.GetNamingRulesAsync(cancellationToken).ConfigureAwait(false); 153var unavailableMemberNames = GetUnavailableMemberNames(typeToGenerateIn).ToImmutableArray(); 278var membersArray = members.ToImmutableArray();
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateConstructor\IGenerateConstructorService.cs (1)
15Task<ImmutableArray<CodeAction>> GenerateConstructorAsync(Document document, SyntaxNode node, CancellationToken cancellationToken);
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateDefaultConstructors\AbstractGenerateDefaultConstructorCodeFixProvider.cs (1)
38var actions = await service.GenerateDefaultConstructorsAsync(
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateDefaultConstructors\AbstractGenerateDefaultConstructorsService.cs (1)
25public async Task<ImmutableArray<CodeAction>> GenerateDefaultConstructorsAsync(
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateDefaultConstructors\AbstractGenerateDefaultConstructorsService.State.cs (3)
21public ImmutableArray<IMethodSymbol> UnimplementedConstructors { get; private set; } 77var classConstructors = ClassType.InstanceConstructors; 119ImmutableArray<IMethodSymbol> classConstructors,
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateDefaultConstructors\GenerateDefaultConstructorsCodeAction.cs (3)
22ImmutableArray<IMethodSymbol> constructors) : CodeAction 24private readonly ImmutableArray<IMethodSymbol> _constructors = constructors; 48var baseConstructorArguments = baseConstructor.Parameters.Length != 0
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateDefaultConstructors\IGenerateDefaultConstructorsService.cs (1)
16Task<ImmutableArray<CodeAction>> GenerateDefaultConstructorsAsync(
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateEnumMember\AbstractGenerateEnumMemberService.cs (1)
25public async Task<ImmutableArray<CodeAction>> GenerateEnumMemberAsync(Document document, SyntaxNode node, CancellationToken cancellationToken)
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateEnumMember\AbstractGenerateEnumMemberService.State.cs (1)
58var existingMembers = TypeToGenerateIn.GetMembers(IdentifierToken.ValueText);
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateEnumMember\IGenerateEnumMemberService.cs (1)
15Task<ImmutableArray<CodeAction>> GenerateEnumMemberAsync(Document document, SyntaxNode node, CancellationToken cancellationToken);
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateMember\AbstractGenerateMemberCodeFixProvider.cs (2)
25protected abstract Task<ImmutableArray<CodeAction>> GetCodeActionsAsync(Document document, SyntaxNode node, CancellationToken cancellationToken); 45var codeActions = await GetCodeActionsAsync(context.Document, name, context.CancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateMember\AbstractGenerateMemberService.cs (1)
47var locations = typeToGenerateIn.Locations;
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateConversionService.cs (1)
27public async Task<ImmutableArray<CodeAction>> GenerateConversionAsync(
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateDeconstructMethodService.cs (2)
21public abstract ImmutableArray<IParameterSymbol> TryMakeParameters(SemanticModel semanticModel, SyntaxNode target, CancellationToken cancellationToken); 23public async Task<ImmutableArray<CodeAction>> GenerateDeconstructMethodAsync(
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateDeconstructMethodService.State.cs (1)
65var parameters = service.TryMakeParameters(semanticModel, targetVariables, cancellationToken);
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateMethodService.cs (1)
28public async Task<ImmutableArray<CodeAction>> GenerateMethodAsync(
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateMethodService.State.cs (3)
170var parameterNames = delegateInvokeMethod.ContainingType is { Name: nameof(Action) or nameof(Func<>), ContainingNamespace.Name: nameof(System) } 230private static ImmutableArray<string> GenerateParameterNamesBasedOnParameterTypes(ImmutableArray<IParameterSymbol> parameters)
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.AbstractInvocationInfo.cs (8)
22protected abstract ImmutableArray<ITypeParameterSymbol> GetCapturedTypeParameters(CancellationToken cancellationToken); 23protected abstract ImmutableArray<ITypeParameterSymbol> GenerateTypeParameters(CancellationToken cancellationToken); 30protected override ImmutableArray<ITypeParameterSymbol> DetermineTypeParametersWorker( 33var typeParameters = ComputeTypeParameters(cancellationToken); 37private ImmutableArray<ITypeParameterSymbol> ComputeTypeParameters( 44var capturedTypeParameters = GetCapturedTypeParameters(cancellationToken); 45var availableTypeParameters = State.TypeToGenerateIn.GetAllTypeParameters(); 46var result = capturedTypeParameters.Except<ITypeParameterSymbol>(availableTypeParameters, SymbolEqualityComparer.Default).ToImmutableArray();
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.cs (2)
38protected async ValueTask<ImmutableArray<CodeAction>> GetActionsAsync(Document document, State state, CancellationToken cancellationToken) 61var typeParameters = state.SignatureInfo.DetermineTypeParameters(cancellationToken);
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.MethodSignatureInfo.cs (8)
17ImmutableArray<string> parameterNames = default) : SignatureInfo(document, state) 20private readonly ImmutableArray<string> _parameterNames = parameterNames; 28protected override ImmutableArray<ITypeParameterSymbol> DetermineTypeParametersWorker(CancellationToken cancellationToken) 31protected override ImmutableArray<RefKind> DetermineParameterModifiers(CancellationToken cancellationToken) 34protected override ImmutableArray<bool> DetermineParameterOptionality(CancellationToken cancellationToken) 37protected override ImmutableArray<ITypeSymbol> DetermineParameterTypes(CancellationToken cancellationToken) 40protected override ImmutableArray<ParameterName> DetermineParameterNames(CancellationToken cancellationToken) 45protected override ImmutableArray<ITypeSymbol> DetermineTypeArguments(CancellationToken cancellationToken)
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.SignatureInfo.cs (20)
32private ImmutableArray<ITypeParameterSymbol> _typeParameters; 35public ImmutableArray<ITypeParameterSymbol> DetermineTypeParameters(CancellationToken cancellationToken) 42protected abstract ImmutableArray<ITypeParameterSymbol> DetermineTypeParametersWorker(CancellationToken cancellationToken); 56protected abstract ImmutableArray<ITypeSymbol> DetermineTypeArguments(CancellationToken cancellationToken); 58protected abstract ImmutableArray<RefKind> DetermineParameterModifiers(CancellationToken cancellationToken); 59protected abstract ImmutableArray<ITypeSymbol> DetermineParameterTypes(CancellationToken cancellationToken); 60protected abstract ImmutableArray<bool> DetermineParameterOptionality(CancellationToken cancellationToken); 61protected abstract ImmutableArray<ParameterName> DetermineParameterNames(CancellationToken cancellationToken); 94var parameters = await DetermineParametersAsync(cancellationToken).ConfigureAwait(false); 128var newTypeParameterNames = NameGenerator.EnsureUniqueness( 141var availableMethodTypeParameters = DetermineTypeParameters(cancellationToken); 142var availableTypeParameters = State.TypeToGenerateIn.GetAllTypeParameters(); 145var allTypeParameters = availableMethodTypeParameters.Concat(availableTypeParameters); 167var typeArguments = DetermineTypeArguments(cancellationToken); 168var typeParameters = DetermineTypeParameters(cancellationToken); 187private ImmutableArray<SyntaxNode> GenerateStatements( 198private async ValueTask<ImmutableArray<IParameterSymbol>> DetermineParametersAsync(CancellationToken cancellationToken) 200var modifiers = DetermineParameterModifiers(cancellationToken); 202var optionality = DetermineParameterOptionality(cancellationToken); 203var names = DetermineParameterNames(cancellationToken);
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\IGenerateConversionService.cs (1)
15Task<ImmutableArray<CodeAction>> GenerateConversionAsync(Document document, SyntaxNode node, CancellationToken cancellationToken);
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\IGenerateDeconstructMemberService.cs (1)
15Task<ImmutableArray<CodeAction>> GenerateDeconstructMethodAsync(
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\IGenerateParameterizedMemberService.cs (1)
15Task<ImmutableArray<CodeAction>> GenerateMethodAsync(Document document, SyntaxNode node, CancellationToken cancellationToken);
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.CodeAction.cs (1)
106private ImmutableArray<SyntaxNode> GenerateStatements()
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.cs (1)
32public async Task<ImmutableArray<CodeAction>> GenerateVariableAsync(
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.State.cs (2)
37public ImmutableArray<IParameterSymbol> Parameters { get; private set; } 478var availableTypeParameters = TypeToGenerateIn.GetAllTypeParameters();
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateVariable\IGenerateVariableService.cs (1)
15Task<ImmutableArray<CodeAction>> GenerateVariableAsync(Document document, SyntaxNode node, CancellationToken cancellationToken);
src\roslyn\src\Analyzers\Core\CodeFixes\ImplementAbstractClass\AbstractImplementAbstractClassCodeFixProvider.cs (1)
16public sealed override ImmutableArray<string> FixableDiagnosticIds { get; } = [diagnosticId];
src\roslyn\src\Analyzers\Core\CodeFixes\ImplementAbstractClass\ImplementAbstractClassData.cs (11)
29ImmutableArray<(INamedTypeSymbol type, ImmutableArray<ISymbol> members)> unimplementedMembers) 35private readonly ImmutableArray<(INamedTypeSymbol type, ImmutableArray<ISymbol> members)> _unimplementedMembers = unimplementedMembers; 60var unimplementedMembers = classType.GetAllUnimplementedMembers( 89var memberDefinitions = GenerateMembers(compilation, throughMember, _options.PropertyGenerationBehavior, cancellationToken); 123private ImmutableArray<ISymbol> GenerateMembers( 266public ImmutableArray<(ISymbol symbol, bool canDelegateAllMembers)> GetDelegatableMembers(CancellationToken cancellationToken) 268var members = ImplementHelpers.GetDelegatableMembers( 276var allUnimplementedMembers = _unimplementedMembers.SelectManyAsArray(t => t.members); 315var constraints = typeParameter.ConstraintTypes;
src\roslyn\src\Analyzers\Core\CodeFixes\ImplementInterface\AbstractImplementInterfaceCodeFixProvider.cs (1)
33var codeActions = await service.GetCodeActionsAsync(document, type, cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\Core\CodeFixes\ImplementInterface\AbstractImplementInterfaceService.cs (7)
40out ImmutableArray<INamedTypeSymbol> interfaceTypes); 49public ImmutableArray<SyntaxNode> GetInterfaceTypes(SyntaxNode typeDeclaration) 119public ImmutableArray<ISymbol> ImplementInterfaceMember( 132var implementedMembers = generator.GenerateMembers( 146public async Task<ImmutableArray<CodeAction>> GetCodeActionsAsync(Document document, SyntaxNode? interfaceType, CancellationToken cancellationToken) 203var delegatableMembers = GetDelegatableMembers(document, state, cancellationToken); 299private static ImmutableArray<ISymbol> GetDelegatableMembers(
src\roslyn\src\Analyzers\Core\CodeFixes\ImplementInterface\AbstractImplementInterfaceService.State.cs (9)
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; 50out var classOrStructDecl, out var classOrStructType, out var interfaceTypes))
src\roslyn\src\Analyzers\Core\CodeFixes\ImplementInterface\IImplementInterfaceService.cs (3)
32ImmutableArray<ISymbol> ImplementInterfaceMember( 40Task<ImmutableArray<CodeAction>> GetCodeActionsAsync( 43ImmutableArray<SyntaxNode> GetInterfaceTypes(SyntaxNode typeDeclaration);
src\roslyn\src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementHelpers.cs (10)
19public static ImmutableArray<ISymbol> GetDelegatableMembers( 27var fields = namedType.GetMembers() 31var properties = namedType.GetMembers() 35var parameters = GetNonCapturedPrimaryConstructorParameters(fields, properties); 39ImmutableArray<IParameterSymbol> GetNonCapturedPrimaryConstructorParameters( 40ImmutableArray<IFieldSymbol> fields, 41ImmutableArray<IPropertySymbol> properties) 62bool IsAssignedToFieldOrProperty(ImmutableArray<IFieldSymbol> fields, ImmutableArray<IPropertySymbol> properties, IParameterSymbol parameter) 234var unimplementedMembers = explicitly
src\roslyn\src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementInterfaceGenerator_DisposePattern.cs (5)
31private static readonly ImmutableArray<string> s_disposedValueNameParts = ["disposed", "value"]; 40ImmutableArray<(INamedTypeSymbol type, ImmutableArray<ISymbol> members)> unimplementedMembers, 111private (ImmutableArray<ISymbol>, SyntaxNode) CreateDisposableMethods( 215var explicitInterfaceImplementations = Explicitly || !Service.CanImplementImplicitly
src\roslyn\src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementInterfaceGenerator_Property.cs (4)
23private ImmutableArray<ISymbol> GeneratePropertyMembers( 57var parameterNames = NameGenerator.EnsureUniqueness( 147private ImmutableArray<SyntaxNode> GetSetAccessorStatements( 162private ImmutableArray<SyntaxNode> GetGetAccessorStatements(
src\roslyn\src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementInterfaceGenerator.cs (9)
58var unimplementedMembers = Explicitly 70ImmutableArray<(INamedTypeSymbol type, ImmutableArray<ISymbol> members)> unimplementedMembers, 71ImmutableArray<ISymbol> extraMembers, 79var memberDefinitions = GenerateMembers( 100private ImmutableArray<ISymbol> GenerateMembers( 103ImmutableArray<(INamedTypeSymbol type, ImmutableArray<ISymbol> members)> unimplementedMembers, 278public ImmutableArray<ISymbol> GenerateMembers(
src\roslyn\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\roslyn\src\Analyzers\Core\CodeFixes\ImplementType\ImplementTypeOptions.cs (1)
65public static readonly ImmutableArray<IOption2> EditorConfigOptions = [InsertionBehavior, PropertyGenerationBehavior];
src\roslyn\src\Analyzers\Core\CodeFixes\MakeFieldReadonly\AbstractMakeFieldReadonlyCodeFixProvider.cs (2)
25public override ImmutableArray<string> FixableDiagnosticIds 38ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\Core\CodeFixes\MakeMemberStatic\AbstractMakeMemberStaticCodeFixProvider.cs (1)
28protected sealed override async Task FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor,
src\roslyn\src\Analyzers\Core\CodeFixes\MakeMethodSynchronous\AbstractMakeMethodSynchronousCodeFixProvider.cs (2)
135var references = await SymbolFinder.FindRenamableReferencesAsync( 153Solution solution, ImmutableArray<ReferenceLocation> locations, CancellationToken cancellationToken)
src\roslyn\src\Analyzers\Core\CodeFixes\MakeTypeAbstract\AbstractMakeTypeAbstractCodeFixProvider.cs (1)
28protected sealed override async Task FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor,
src\roslyn\src\Analyzers\Core\CodeFixes\MakeTypePartial\AbstractMakeTypePartialCodeFixProvider.cs (1)
23protected override async Task FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken)
src\roslyn\src\Analyzers\Core\CodeFixes\MatchFolderAndNamespace\AbstractChangeNamespaceToMatchFolderCodeFixProvider.cs (3)
23public override ImmutableArray<string> FixableDiagnosticIds => [IDEDiagnosticIds.MatchFolderAndNamespaceDiagnosticId]; 40private static async Task<Solution> FixAllInDocumentAsync(Document document, ImmutableArray<Diagnostic> diagnostics, CancellationToken cancellationToken) 52var targetFolders = PathMetadataUtilities.BuildFoldersFromNamespace(targetNamespace, document.Project.DefaultNamespace);
src\roslyn\src\Analyzers\Core\CodeFixes\MatchFolderAndNamespace\AbstractChangeNamespaceToMatchFolderCodeFixProvider.CustomFixAllProvider.cs (5)
30var diagnostics = fixAllContext.Scope switch 51static async Task<ImmutableArray<Diagnostic>> GetSolutionDiagnosticsAsync(FixAllContext fixAllContext) 57var projectDiagnostics = await fixAllContext.GetAllDiagnosticsAsync(project).ConfigureAwait(false); 67ImmutableArray<Diagnostic> diagnostics, 77var documentIdToDiagnosticsMap = diagnostics
src\roslyn\src\Analyzers\Core\CodeFixes\Naming\FallbackNamingRules.cs (9)
18public static readonly ImmutableArray<NamingRule> Default = 49internal static readonly ImmutableArray<NamingRule> CompletionFallbackRules = [CreateCamelCaseFieldsAndParametersRule()]; 55internal static readonly ImmutableArray<NamingRule> CompletionSupplementaryRules = [CreateEndWithAsyncRule(), CreateGetAsyncRule(), CreateMethodStartsWithGetRule()]; 59var kinds = ImmutableArray.Create(new SymbolKindOrTypeKind(MethodKind.Ordinary)); 60var modifiers = ImmutableArray.Create(new ModifierKind(ModifierKindEnum.IsAsync)); 69var kinds = ImmutableArray.Create(new SymbolKindOrTypeKind(SymbolKind.Field), new SymbolKindOrTypeKind(SymbolKind.Parameter), new SymbolKindOrTypeKind(SymbolKind.Local)); 78var kinds = ImmutableArray.Create(new SymbolKindOrTypeKind(MethodKind.Ordinary)); 79var modifiers = ImmutableArray.Create(new ModifierKind(ModifierKindEnum.IsAsync)); 88var kinds = ImmutableArray.Create(new SymbolKindOrTypeKind(MethodKind.Ordinary));
src\roslyn\src\Analyzers\Core\CodeFixes\Naming\NamingExtensions.cs (2)
19var rules = await document.GetNamingRulesAsync(cancellationToken).ConfigureAwait(false); 34public static async Task<ImmutableArray<NamingRule>> GetNamingRulesAsync(
src\roslyn\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\roslyn\src\Analyzers\Core\CodeFixes\NewLines\ConsecutiveStatementPlacement\ConsecutiveStatementPlacementCodeFixProvider.cs (2)
26public override ImmutableArray<string> FixableDiagnosticIds 43public static async Task<Document> FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, CancellationToken cancellationToken)
src\roslyn\src\Analyzers\Core\CodeFixes\NewLines\MultipleBlankLines\AbstractMultipleBlankLinesCodeFixProvider.cs (2)
26public override ImmutableArray<string> FixableDiagnosticIds 44Document document, ImmutableArray<Diagnostic> diagnostics, CancellationToken cancellationToken)
src\roslyn\src\Analyzers\Core\CodeFixes\OrderModifiers\AbstractOrderModifiersCodeFixProvider.cs (3)
26protected abstract ImmutableArray<string> FixableCompilerErrorIds { get; } 29public sealed override ImmutableArray<string> FixableDiagnosticIds 44Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken)
src\roslyn\src\Analyzers\Core\CodeFixes\PopulateSwitch\AbstractPopulateSwitchCodeFixProvider.cs (4)
32public sealed override ImmutableArray<string> FixableDiagnosticIds { get; } = [diagnosticId]; 107Document document, ImmutableArray<Diagnostic> diagnostics, 117Document document, SyntaxEditor editor, ImmutableArray<Diagnostic> diagnostics, 213ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\Core\CodeFixes\PopulateSwitch\AbstractPopulateSwitchExpressionCodeFixProvider.cs (1)
54var arms = switchExpression.Arms;
src\roslyn\src\Analyzers\Core\CodeFixes\PopulateSwitch\AbstractPopulateSwitchStatementCodeFixProvider.cs (1)
85var cases = switchStatement.Cases;
src\roslyn\src\Analyzers\Core\CodeFixes\QualifyMemberAccess\AbstractQualifyMemberAccessCodeFixProvider.cs (2)
23public sealed override ImmutableArray<string> FixableDiagnosticIds 33Document document, ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\Core\CodeFixes\RemoveAsyncModifier\AbstractRemoveAsyncModifierCodeFixProvider.cs (1)
53Document document, ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\Core\CodeFixes\RemoveRedundantEquality\RemoveRedundantEqualityCodeFixProvider.cs (1)
24public override ImmutableArray<string> FixableDiagnosticIds => [IDEDiagnosticIds.RemoveRedundantEqualityDiagnosticId];
src\roslyn\src\Analyzers\Core\CodeFixes\RemoveUnnecessaryImports\AbstractRemoveUnnecessaryImportsCodeFixProvider.cs (2)
21public sealed override ImmutableArray<string> FixableDiagnosticIds 53Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken)
src\roslyn\src\Analyzers\Core\CodeFixes\RemoveUnnecessaryParentheses\AbstractRemoveUnnecessaryParenthesesCodeFixProvider.cs (3)
20public override ImmutableArray<string> FixableDiagnosticIds 32Document document, ImmutableArray<Diagnostic> diagnostics, 36var originalNodes = diagnostics.SelectAsArray(
src\roslyn\src\Analyzers\Core\CodeFixes\RemoveUnnecessarySuppressions\RemoveUnnecessaryAttributeSuppressionsCodeFixProvider.cs (2)
23public override ImmutableArray<string> FixableDiagnosticIds 39protected override async Task FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken)
src\roslyn\src\Analyzers\Core\CodeFixes\RemoveUnnecessarySuppressions\RemoveUnnecessaryPragmaSuppressionsCodeFixProvider.cs (2)
27public override ImmutableArray<string> FixableDiagnosticIds 45protected override async Task FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken)
src\roslyn\src\Analyzers\Core\CodeFixes\RemoveUnusedMembers\AbstractRemoveUnusedMembersCodeFixProvider.cs (2)
23public sealed override ImmutableArray<string> FixableDiagnosticIds 41ImmutableArray<Diagnostic> diagnostics,
src\roslyn\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\roslyn\src\Analyzers\Core\CodeFixes\SimplifyBooleanExpression\SimplifyConditionalCodeFixProvider.cs (2)
26public sealed override ImmutableArray<string> FixableDiagnosticIds { get; } = 36ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\Core\CodeFixes\SimplifyInterpolation\AbstractSimplifyInterpolationCodeFixProvider.cs (2)
30public override ImmutableArray<string> FixableDiagnosticIds { get; } = 46Document document, ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\Core\CodeFixes\SimplifyLinqExpression\SimplifyLinqExpressionCodeFixProvider.cs (2)
24public sealed override ImmutableArray<string> FixableDiagnosticIds 34ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\Core\CodeFixes\UnsealClass\AbstractUnsealClassCodeFixProvider.cs (1)
58Solution solution, ImmutableArray<SyntaxReference> declarationReferences, CancellationToken cancellationToken)
src\roslyn\src\Analyzers\Core\CodeFixes\UpdateLegacySuppressions\UpdateLegacySuppressionsCodeFixProvider.cs (2)
24public override ImmutableArray<string> FixableDiagnosticIds 40protected override async Task FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken)
src\roslyn\src\Analyzers\Core\CodeFixes\UpgradeProject\AbstractUpgradeProjectCodeFixProvider.cs (5)
21public abstract string SuggestedVersion(ImmutableArray<Diagnostic> diagnostics); 35var diagnostics = context.Diagnostics; 40protected ImmutableArray<CodeAction> GetUpgradeProjectCodeActions(CodeFixContext context) 49var upgradeableProjects = solution.Projects.Where(p => CanUpgrade(p, language, newVersion)).AsImmutable(); 124public override ImmutableArray<string> Tags => RequiresNonDocumentChangeTags;
src\roslyn\src\Analyzers\Core\CodeFixes\UseAutoProperty\AbstractUseAutoPropertyCodeFixProvider.cs (8)
55public sealed override ImmutableArray<string> FixableDiagnosticIds 66TPropertyDeclaration property, ImmutableArray<ReferencedSymbol> fieldLocations, CancellationToken cancellationToken); 68protected abstract ImmutableArray<AbstractFormattingRule> GetFormattingRules( 134var fieldLocations = (await SymbolFinder.FindReferencesAsync( 315ImmutableArray<ReferencedSymbol> fieldLocations, 350var symbols = semanticModel.LookupSymbols(node.SpanStart, name: property.Name); 460var formattingRules = GetFormattingRules(document, finalPropertyDeclaration); 479ImmutableArray<ReferencedSymbol> referencedSymbols,
src\roslyn\src\Analyzers\Core\CodeFixes\UseAutoProperty\UseAutoPropertyFixAllProvider.cs (2)
49private async Task<Solution?> FixAllContextsHelperAsync(FixAllContext originalContext, ImmutableArray<FixAllContext> contexts) 62var documentsIdsAndNewRoots = await ProducerConsumer<(DocumentId documentId, SyntaxNode newRoot)>.RunParallelAsync(
src\roslyn\src\Analyzers\Core\CodeFixes\UseCoalesceExpression\AbstractUseCoalesceExpressionForIfNullStatementCheckCodeFixProvider.cs (5)
21public override ImmutableArray<string> FixableDiagnosticIds 33Document document, ImmutableArray<Diagnostic> diagnostics, 53var ifStatementLeadingTrivia = GetLeadingComments(ifStatement); 54var whenTrueStatementLeadingTrivia = GetLeadingComments(whenTrueStatement); 72ImmutableArray<SyntaxTrivia> GetLeadingComments(SyntaxNode node)
src\roslyn\src\Analyzers\Core\CodeFixes\UseCoalesceExpression\UseCoalesceExpressionForNullableTernaryConditionalCheckCodeFixProvider.cs (2)
24public override ImmutableArray<string> FixableDiagnosticIds 36Document document, ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\Core\CodeFixes\UseCoalesceExpression\UseCoalesceExpressionForTernaryConditionalCheckCodeFixProvider.cs (2)
25public override ImmutableArray<string> FixableDiagnosticIds 37Document document, ImmutableArray<Diagnostic> diagnostics,
src\roslyn\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\roslyn\src\Analyzers\Core\CodeFixes\UseCompoundAssignment\AbstractUseCompoundAssignmentCodeFixProvider.cs (3)
23public override ImmutableArray<string> FixableDiagnosticIds { get; } = 32ImmutableArray<(TSyntaxKind exprKind, TSyntaxKind assignmentKind, TSyntaxKind tokenKind)> kinds) 50Document document, ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\Core\CodeFixes\UseConditionalExpression\AbstractUseConditionalExpressionCodeFixProvider.cs (2)
47Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, 71var rules = ImmutableArray.Create(GetMultiLineFormattingRule());
src\roslyn\src\Analyzers\Core\CodeFixes\UseConditionalExpression\ForReturn\AbstractUseConditionalExpressionForReturnCodeFixProvider.cs (1)
31public override ImmutableArray<string> FixableDiagnosticIds
src\roslyn\src\Analyzers\Core\CodeFixes\UseExplicitTupleName\UseExplicitTupleNameCodeFixProvider.cs (2)
23public override ImmutableArray<string> FixableDiagnosticIds { get; } 32Document document, ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\Core\CodeFixes\UseInferredMemberName\AbstractUseInferredMemberNameCodeFixProvider.cs (2)
18public override ImmutableArray<string> FixableDiagnosticIds { get; } 27Document document, ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\Core\CodeFixes\UseIsNullCheck\AbstractUseIsNullForReferenceEqualsCodeFixProvider.cs (2)
23public override ImmutableArray<string> FixableDiagnosticIds 46Document document, ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Analyzers\Core\CodeFixes\UseNullPropagation\AbstractUseNullPropagationCodeFixProvider.cs (1)
62public override ImmutableArray<string> FixableDiagnosticIds
src\roslyn\src\Analyzers\Core\CodeFixes\UseObjectInitializer\AbstractUseObjectInitializerCodeFixProvider.cs (3)
58ImmutableArray<Match<TExpressionSyntax, TStatementSyntax, TMemberAccessExpressionSyntax, TAssignmentStatementSyntax>> matches); 60public override ImmutableArray<string> FixableDiagnosticIds 76var matches = analyzer.Analyze(semanticModel, syntaxFacts, objectCreation, cancellationToken);
src\roslyn\src\Analyzers\Core\CodeFixes\UseSystemHashCode\UseSystemHashCodeCodeFixProvider.cs (3)
25public override ImmutableArray<string> FixableDiagnosticIds { get; } 34Document document, ImmutableArray<Diagnostic> diagnostics, 73var components = generator.GetGetHashCodeComponents(
src\roslyn\src\Compilers\Core\AnalyzerDriver\DeclarationComputer.cs (2)
25var codeBlocks = ImmutableArray<SyntaxNode>.Empty;
src\roslyn\src\Compilers\Core\AnalyzerDriver\DeclarationInfo.cs (2)
15internal DeclarationInfo(SyntaxNode declaredNode, ImmutableArray<SyntaxNode> executableCodeBlocks, ISymbol? declaredSymbol) 37public ImmutableArray<SyntaxNode> ExecutableCodeBlocks { get; }
src\roslyn\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\roslyn\src\Dependencies\CodeAnalysis.Debugging\CustomDebugInfoEncoder.cs (2)
108public void AddStateMachineHoistedLocalScopes(ImmutableArray<StateMachineHoistedLocalScope> scopes) 165public void AddTupleElementNames(IReadOnlyCollection<(string LocalName, int SlotIndex, int ScopeStart, int ScopeEnd, ImmutableArray<string> Names)> tupleLocals)
src\roslyn\src\Dependencies\CodeAnalysis.Debugging\CustomDebugInfoReader.cs (29)
56public static ImmutableArray<byte> TryGetCustomDebugInfoRecord(byte[] customDebugInfo, CustomDebugInfoKind recordKind) 127public static ImmutableArray<short> DecodeUsingRecord(ImmutableArray<byte> bytes) 149public static int DecodeForwardRecord(ImmutableArray<byte> bytes) 163public static int DecodeForwardToModuleRecord(ImmutableArray<byte> bytes) 175public static ImmutableArray<StateMachineHoistedLocalScope> DecodeStateMachineHoistedLocalScopesRecord(ImmutableArray<byte> bytes) 214public static string DecodeForwardIteratorRecord(ImmutableArray<byte> bytes) 243public static ImmutableArray<DynamicLocalInfo> DecodeDynamicLocalsRecord(ImmutableArray<byte> bytes) 302public static ImmutableArray<TupleElementNamesInfo> DecodeTupleElementNamesRecord(ImmutableArray<byte> bytes) 315private static TupleElementNamesInfo DecodeTupleElementNamesInfo(ImmutableArray<byte> bytes, ref int offset) 339public static ImmutableArray<ImmutableArray<string>> GetCSharpGroupedImportStrings<TArg>( 343Func<int, TArg, ImmutableArray<string>> getMethodImportStrings, 344out ImmutableArray<string> externAliasStrings) 348ImmutableArray<short> groupSizes = default; 397var allModuleInfoImportStrings = getMethodImportStrings(moduleInfoMethodToken, arg); 421var importStrings = getMethodImportStrings(methodToken, arg); 424var resultBuilder = ArrayBuilder<ImmutableArray<string>>.GetInstance(groupSizes.Length); 487public static ImmutableArray<string> GetVisualBasicImportStrings<TArg>( 490Func<int, TArg, ImmutableArray<string>> getMethodImportStrings) 492var importStrings = getMethodImportStrings(methodToken, arg); 497return ImmutableArray<string>.Empty; 520private static int ReadInt32(ImmutableArray<byte> bytes, ref int offset) 532private static short ReadInt16(ImmutableArray<byte> bytes, ref int offset) 544private static byte ReadByte(ImmutableArray<byte> bytes, ref int offset) 853private static string ReadUtf8String(ImmutableArray<byte> bytes, ref int offset)
src\roslyn\src\Dependencies\CodeAnalysis.Debugging\CustomDebugInfoRecord.cs (2)
15public readonly ImmutableArray<byte> Data; 17public CustomDebugInfoRecord(CustomDebugInfoKind kind, byte version, ImmutableArray<byte> data)
src\roslyn\src\Dependencies\CodeAnalysis.Debugging\DynamicLocalInfo.cs (2)
13public readonly ImmutableArray<bool> Flags; 17public DynamicLocalInfo(ImmutableArray<bool> flags, int slotId, string localName)
src\roslyn\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 (2)
24protected static bool MatchTypeArguments(ImmutableArray<ITypeSymbol> typeArguments, StackFrameTypeArgumentList? stackFrameTypeArgumentList) 84protected static bool MatchParameters(ImmutableArray<IParameterSymbol> parameters, StackFrameParameterList stackFrameParameters)
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)
31var matches = GetFileMatches(solution, parsedFrame.Root, out var line); 75private static ImmutableArray<TextDocument> 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 (4)
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, 108var newPrimarySpans = subHeadings.HasValue ? subHeadings.Value : SubHeadings;
Structure\BlockStructure.cs (2)
9internal sealed class BlockStructure(ImmutableArray<BlockSpan> spans) 11public 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)
13this ImmutableDictionary<Type, ImmutableArray<AbstractSyntaxStructureProvider>>.Builder builder)
SymbolSearch\SymbolSearchOptions.cs (2)
87public static readonly ImmutableArray<IOption2> EditorConfigOptions = [SearchReferenceAssemblies]; 88public static readonly ImmutableArray<IOption2> UnsupportedOptions = [
SymbolSearch\SymbolSearchUpdateNoOpEngine.cs (6)
21public ValueTask<ImmutableArray<PackageWithAssemblyResult>> FindPackagesWithAssemblyAsync(string source, string assemblyName, CancellationToken cancellationToken) 22=> ValueTask.FromResult(ImmutableArray<PackageWithAssemblyResult>.Empty); 24public ValueTask<ImmutableArray<PackageResult>> FindPackagesAsync(string source, TypeQuery typeQuery, NamespaceQuery namespaceQuery, CancellationToken cancellationToken) 25=> ValueTask.FromResult(ImmutableArray<PackageResult>.Empty); 27public ValueTask<ImmutableArray<ReferenceAssemblyResult>> FindReferenceAssembliesAsync(TypeQuery typeQuery, NamespaceQuery namespaceQuery, CancellationToken cancellationToken) 28=> ValueTask.FromResult(ImmutableArray<ReferenceAssemblyResult>.Empty);
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) 177return _diagnosticsByProject.TryGetValue(project, out var diagnostics)
SyncNamespaces\ISyncNamespacesService.cs (1)
20ImmutableArray<Project> projects, IProgress<CodeAnalysisProgress> progressTracker, CancellationToken cancellationToken);
TaskList\AbstractTaskListService.cs (8)
24protected abstract void AppendTaskListItems(ImmutableArray<TaskListItemDescriptor> descriptors, SyntacticDocument document, SyntaxTrivia trivia, ArrayBuilder<TaskListItem> items); 26public async Task<ImmutableArray<TaskListItem>> GetTaskListItemsAsync( 28ImmutableArray<TaskListItemDescriptor> descriptors, 34var result = await client.TryInvokeAsync<IRemoteTaskListService, ImmutableArray<TaskListItem>>( 48private async Task<ImmutableArray<TaskListItem>> GetTaskListItemsInProcessAsync( 50ImmutableArray<TaskListItemDescriptor> descriptors, 81ImmutableArray<TaskListItemDescriptor> descriptors, 118ImmutableArray<TaskListItemDescriptor> commentDescriptors,
Testing\AbstractTestMethodFinder.cs (5)
27protected readonly ImmutableArray<ITestFrameworkMetadata> TestFrameworkMetadata = [.. testFrameworks]; 33public async Task<ImmutableArray<SyntaxNode>> GetPotentialTestMethodsAsync(Document document, TextSpan textSpan, CancellationToken cancellationToken) 37var testNodes = await GetPotentialTestNodesAsync(document, textSpan, cancellationToken).ConfigureAwait(false); 40var intersectingNodes = testNodes.WhereAsArray(node => node.Span.IntersectsWith(textSpan)); 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);
TypeHierarchy\AbstractTypeHierarchyService.cs (4)
16public ImmutableArray<INamedTypeSymbol> GetBaseTypesAndInterfaces(INamedTypeSymbol typeSymbol, bool transitive) 19public async Task<ImmutableArray<INamedTypeSymbol>> GetDerivedTypesAndImplementationsAsync( 27var allDerivedInterfaces = await SymbolFinder.FindDerivedInterfacesArrayAsync( 32var allImplementations = await SymbolFinder.FindImplementationsArrayAsync(
TypeHierarchy\ITypeHierarchyService.cs (2)
14ImmutableArray<INamedTypeSymbol> GetBaseTypesAndInterfaces(INamedTypeSymbol typeSymbol, bool transitive); 16Task<ImmutableArray<INamedTypeSymbol>> GetDerivedTypesAndImplementationsAsync(
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 (4)
24public static ImmutableArray<ReferenceInfo> AddDependencyHierarchies( 25ImmutableArray<ReferenceInfo> projectReferences, 62var references = projectReferences 174var dependencies = dependencyNames
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 (18)
23private static readonly ImmutableArray<ReferenceType> s_processingOrder = [ReferenceType.Project, ReferenceType.Package, ReferenceType.Assembly]; 25public static async Task<ImmutableArray<ReferenceInfo>> GetUnusedReferencesAsync( 28ImmutableArray<ReferenceInfo> references, 45var usedAssemblyReferences = compilation.GetUsedAssemblyReferences(cancellationToken); 64internal static ImmutableArray<ReferenceInfo> GetUnusedReferences( 67ImmutableArray<ReferenceInfo> references) 88if (!referencesByType.TryGetValue(referenceType, out var referencesForReferenceType)) 93var unusedReferences = RemoveDirectlyUsedReferences( 112if (!referencesByType.TryGetValue(referenceType, out var referencesForReferenceType)) 117var unusedReferences = RemoveTransitivelyUsedReferences( 128private static ImmutableArray<ReferenceInfo> RemoveDirectlyUsedReferences( 129ImmutableArray<ReferenceInfo> references, 148var projectAssemblyFileNames = reference.CompilationAssemblies 184private static ImmutableArray<ReferenceInfo> RemoveTransitivelyUsedReferences( 185ImmutableArray<ReferenceInfo> references, 256internal static ImmutableArray<string> GetAllCompilationAssemblies(ReferenceInfo reference) 266ImmutableArray<ReferenceUpdate> referenceUpdates, 277ImmutableArray<ReferenceUpdate> referenceUpdates,
UseNamedArguments\AbstractUseNamedArgumentsCodeRefactoringProvider.cs (6)
33var potentialArguments = await document.GetRelevantNodesAsync<TBaseArgumentSyntax>(textSpan, allowEmptyNodes: true, cancellationToken).ConfigureAwait(false); 63var parameters = symbol.GetParameters(); 139ImmutableArray<IParameterSymbol> parameters, 150ImmutableArray<IParameterSymbol> parameters, TArgumentListSyntax argumentList, 177protected abstract bool IsLegalToAddNamedArguments(ImmutableArray<IParameterSymbol> parameters, int argumentCount); 183protected 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 (2)
37var declaringSyntaxReferences = symbol.DeclaringSyntaxReferences; 301var declarators = operation switch
ValueTracking\ValueTracker.FindReferencesProgress.cs (1)
35ImmutableArray<(SymbolGroup group, ISymbol symbol, ReferenceLocation location)> references,
ValueTracking\ValueTracker.OperationCollector.cs (2)
182private async Task TrackArgumentsAsync(ImmutableArray<IArgumentOperation> argumentOperations, CancellationToken cancellationToken) 184var 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\MiscellaneousFileUtilities.cs (1)
32ImmutableArray<MetadataReference> metadataReferences,
Wrapping\AbstractCodeActionComputer.cs (9)
81protected abstract Task<ImmutableArray<WrappingGroup>> ComputeWrappingGroupsAsync(CancellationToken cancellationToken); 121ImmutableArray<Edit> edits, string parentTitle, string title, CancellationToken cancellationToken) 173ImmutableArray<Edit> edits, CancellationToken cancellationToken) 227var tokens = leftTokenToTrailingTrivia.Keys.Concat(rightTokenToLeadingTrivia.Keys).Distinct().ToImmutableArray(); 271public async Task<ImmutableArray<CodeAction>> GetTopLevelCodeActionsAsync(CancellationToken cancellationToken) 276var wrappingGroups = await ComputeWrappingGroupsAsync(cancellationToken).ConfigureAwait(false); 282var wrappingActions = group.WrappingActions.WhereNotNull().ToImmutableArray(); 297var sorted = WrapItemsAction.SortActionsByMostRecentlyUsed(ImmutableArray<CodeAction>.CastUp(wrappingActions));
Wrapping\AbstractWrappingCodeRefactoringProvider.cs (3)
25private readonly ImmutableArray<ISyntaxWrapper> _wrappers; 28ImmutableArray<ISyntaxWrapper> wrappers) 64var actions = await computer.GetTopLevelCodeActionsAsync(cancellationToken).ConfigureAwait(false);
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 (12)
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() 183var flattened = _chunks.SelectManyAsArray(c => c); 190ArrayBuilder<Edit> result, ImmutableArray<SyntaxNodeOrToken> chunk)
Wrapping\ICodeActionComputer.cs (1)
17Task<ImmutableArray<CodeAction>> GetTopLevelCodeActionsAsync(CancellationToken cancellationToken);
Wrapping\SeparatedSyntaxList\SeparatedSyntaxListCodeActionComputer.cs (7)
137protected override async Task<ImmutableArray<WrappingGroup>> ComputeWrappingGroupsAsync(CancellationToken cancellationToken) 194var edits = await GetUnwrapAllEditsAsync(wrappingStyle, cancellationToken).ConfigureAwait(false); 202private async Task<ImmutableArray<Edit>> GetUnwrapAllEditsAsync(WrappingStyle wrappingStyle, CancellationToken cancellationToken) 281var edits = await GetWrapLongLinesEditsAsync( 288private async Task<ImmutableArray<Edit>> GetWrapLongLinesEditsAsync( 408var edits = await GetWrapEachEditsAsync(wrappingStyle, indentationTrivia, cancellationToken).ConfigureAwait(false); 423private async Task<ImmutableArray<Edit>> GetWrapEachEditsAsync(
Wrapping\WrapItemsAction.cs (8)
31private static ImmutableArray<string> s_mruTitles = []; 44protected override async Task<ImmutableArray<CodeActionOperation>> ComputeOperationsAsync(IProgress<CodeAnalysisProgress> progress, CancellationToken cancellationToken) 46var operations = await base.ComputeOperationsAsync(progress, cancellationToken).ConfigureAwait(false); 50public static ImmutableArray<CodeAction> SortActionsByMostRecentlyUsed(ImmutableArray<CodeAction> codeActions) 53public static ImmutableArray<T> SortByMostRecentlyUsed<T>( 54ImmutableArray<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.ExternalAccess (67)
AspNetCore\AddPackage\AspNetCoreAddPackageCodeAction.cs (2)
44var textChanges = await GetTextChangesAsync( 55private static async Task<ImmutableArray<TextChange>> GetTextChangesAsync(
AspNetCore\EmbeddedLanguages\AspNetCoreCSharpRouteSyntaxDetector.cs (1)
22var identifiers = ImmutableArray.Create("Route");
AspNetCore\EmbeddedLanguages\BraceMatching\AspNetCoreBraceMatcherExtensionProvider.cs (2)
17protected override ImmutableArray<string> GetLanguages(ExportAspNetCoreEmbeddedLanguageBraceMatcherAttribute exportAttribute) 20protected override bool TryGetExtensionsFromReference(AnalyzerReference reference, out ImmutableArray<IAspNetCoreEmbeddedLanguageBraceMatcher> extensions)
AspNetCore\EmbeddedLanguages\Classification\AspNetCoreClassifierExtensionProvider.cs (2)
17protected override ImmutableArray<string> GetLanguages(ExportAspNetCoreEmbeddedLanguageClassifierAttribute exportAttribute) 20protected override bool TryGetExtensionsFromReference(AnalyzerReference reference, out ImmutableArray<IAspNetCoreEmbeddedLanguageClassifier> extensions)
AspNetCore\EmbeddedLanguages\DocumentHighlighting\AspNetCoreClassifierExtensionProvider.cs (2)
17protected override ImmutableArray<string> GetLanguages(ExportAspNetCoreEmbeddedLanguageDocumentHighlighterAttribute exportAttribute) 20protected override bool TryGetExtensionsFromReference(AnalyzerReference reference, out ImmutableArray<IAspNetCoreEmbeddedLanguageDocumentHighlighter> extensions)
AspNetCore\EmbeddedLanguages\DocumentHighlighting\IEmbeddedLanguageDocumentHighlighter.cs (3)
17ImmutableArray<AspNetCoreDocumentHighlights> GetDocumentHighlights( 50public ImmutableArray<AspNetCoreHighlightSpan> HighlightSpans { get; } 52public AspNetCoreDocumentHighlights(ImmutableArray<AspNetCoreHighlightSpan> highlightSpans)
AspNetCore\Internal\EmbeddedLanguages\AspNetCoreEmbeddedLanguageBraceMatcher.cs (1)
35var braceMatchers = AspNetCoreBraceMatcherExtensionProvider.GetExtensions(project);
AspNetCore\Internal\EmbeddedLanguages\AspNetCoreEmbeddedLanguageClassifier.cs (1)
32var classifiers = AspNetCoreClassifierExtensionProvider.GetExtensions(context.Project);
AspNetCore\Internal\EmbeddedLanguages\AspNetCoreEmbeddedLanguageDocumentHighlighter.cs (3)
29public ImmutableArray<DocumentHighlights> GetDocumentHighlights( 37var highlighters = AspNetCoreDocumentHighlighterExtensionProvider.GetExtensions(document.Project); 40var highlights = highlighter.GetDocumentHighlights(semanticModel, token, position, cancellationToken);
Copilot\Analyzer\CopilotChecksumWrapper.cs (1)
22public static CopilotChecksumWrapper Create(ImmutableArray<string> values)
Copilot\Analyzer\IExternalCSharpCopilotCodeAnalysisService.cs (3)
16Task<ImmutableArray<string>> GetAvailablePromptTitlesAsync(Document document, CancellationToken cancellationToken); 17Task<ImmutableArray<Diagnostic>> AnalyzeDocumentAsync(Document document, TextSpan? span, string promptTitle, CancellationToken cancellationToken); 18Task<ImmutableArray<Diagnostic>> GetCachedDiagnosticsAsync(Document document, string promptTitle, CancellationToken cancellationToken);
Copilot\CodeMapper\ICSharpCopilotMapCodeService.cs (3)
15Task<ImmutableArray<TextChange>?> MapCodeAsync( 17ImmutableArray<string> contents, 18ImmutableArray<(Document document, TextSpan textSpan)> prioritizedFocusLocations,
Copilot\Completion\IContextProvider.cs (1)
19Func<ImmutableArray<IContextItem>, CancellationToken, ValueTask> callback,
Copilot\GenerateDocumentation\CopilotDocumentationCommentProposalWrapper.cs (2)
13private readonly ImmutableArray<CopilotDocumentationCommentProposedEditWrapper> _wrappedProposedEdits; 23public ImmutableArray<CopilotDocumentationCommentProposedEditWrapper> ProposedEdits => _wrappedProposedEdits;
Copilot\GenerateImplementation\IExternalCSharpCopilotGenerateImplementationService.cs (1)
17ImmutableDictionary<SyntaxNode, ImmutableArray<ReferencedSymbol>> methodOrProperties,
Copilot\Internal\Analyzer\AbstractCopilotCodeAnalysisService.cs (15)
38private readonly ConditionalWeakTable<Document, ConcurrentDictionary<string, (ImmutableArray<Diagnostic> Diagnostics, bool IsCompleteResult)>> _diagnosticsCache = new(); 41protected abstract Task<ImmutableArray<string>> GetAvailablePromptTitlesCoreAsync(Document document, CancellationToken cancellationToken); 42protected abstract Task<ImmutableArray<Diagnostic>> AnalyzeDocumentCoreAsync(Document document, TextSpan? span, string promptTitle, CancellationToken cancellationToken); 43protected abstract Task<ImmutableArray<Diagnostic>> GetCachedDiagnosticsCoreAsync(Document document, string promptTitle, CancellationToken cancellationToken); 49protected abstract Task<ImmutableDictionary<SyntaxNode, ImplementationDetails>> ImplementNotImplementedExceptionsCoreAsync(Document document, ImmutableDictionary<SyntaxNode, ImmutableArray<ReferencedSymbol>> methodOrProperties, CancellationToken cancellationToken); 55public async Task<ImmutableArray<string>> GetAvailablePromptTitlesAsync(Document document, CancellationToken cancellationToken) 92var diagnostics = await AnalyzeDocumentCoreAsync(document, span, promptTitle, cancellationToken).ConfigureAwait(false); 102private bool TryGetDiagnosticsFromCache(Document document, string promptTitle, out ImmutableArray<Diagnostic> diagnostics, out bool isCompleteResult) 117private void CacheAndRefreshDiagnosticsIfNeeded(Document document, string promptTitle, ImmutableArray<Diagnostic> diagnostics, bool isCompleteResult) 135public async Task<ImmutableArray<Diagnostic>> GetCachedDocumentDiagnosticsAsync(Document document, TextSpan? span, ImmutableArray<string> promptTitles, CancellationToken cancellationToken) 151if (TryGetDiagnosticsFromCache(document, promptTitle, out var existingDiagnostics, out _)) 157var cachedDiagnostics = await GetCachedDiagnosticsCoreAsync(document, promptTitle, cancellationToken).ConfigureAwait(false); 169protected virtual Task<ImmutableArray<Diagnostic>> GetDiagnosticsIntersectWithSpanAsync(Document document, IReadOnlyList<Diagnostic> diagnostics, TextSpan span, CancellationToken cancellationToken) 219ImmutableDictionary<SyntaxNode, ImmutableArray<ReferencedSymbol>> methodOrProperties,
Copilot\Internal\Analyzer\CSharp\CSharpCopilotCodeAnalysisService.cs (8)
62protected override Task<ImmutableArray<Diagnostic>> AnalyzeDocumentCoreAsync(Document document, TextSpan? span, string promptTitle, CancellationToken cancellationToken) 67return Task.FromResult(ImmutableArray<Diagnostic>.Empty); 70protected override Task<ImmutableArray<string>> GetAvailablePromptTitlesCoreAsync(Document document, CancellationToken cancellationToken) 75return Task.FromResult(ImmutableArray<string>.Empty); 78protected override Task<ImmutableArray<Diagnostic>> GetCachedDiagnosticsCoreAsync(Document document, string promptTitle, CancellationToken cancellationToken) 83return Task.FromResult(ImmutableArray<Diagnostic>.Empty); 118protected override async Task<ImmutableArray<Diagnostic>> GetDiagnosticsIntersectWithSpanAsync( 161ImmutableDictionary<SyntaxNode, ImmutableArray<ReferencedSymbol>> methodOrProperties,
Copilot\Internal\CodeMapper\CopilotCSharpMapCodeService.cs (3)
30public Task<ImmutableArray<TextChange>?> MapCodeAsync(Document document, ImmutableArray<string> contents, ImmutableArray<(Document, TextSpan)> focusLocations, CancellationToken cancellationToken)
Copilot\Internal\Completion\CSharpContextProviderService.cs (1)
22private readonly ImmutableArray<IContextProvider> _providers = [.. providers];
Copilot\Internal\SemanticSearch\CopilotSemanticSearchQueryExecutor.cs (1)
65public ValueTask OnDocumentUpdatedAsync(DocumentId documentId, ImmutableArray<TextChange> changes, CancellationToken cancellationToken)
Copilot\Internal\SemanticSearch\CopilotSemanticSearchQueryService.cs (1)
55public ValueTask OnDocumentUpdatedAsync(DocumentId documentId, ImmutableArray<TextChange> changes, CancellationToken cancellationToken)
Copilot\OnTheFlyDocs\CopilotOnTheFlyDocsInfoWrapper.cs (4)
13private readonly ImmutableArray<CopilotOnTheFlyDocsRelevantFileInfoWrapper?> _wrappedDeclarationCode; 14private readonly ImmutableArray<CopilotOnTheFlyDocsRelevantFileInfoWrapper?> _wrappedAdditionalContext; 25public ImmutableArray<CopilotOnTheFlyDocsRelevantFileInfoWrapper?> DeclarationCode => _wrappedDeclarationCode; 28public ImmutableArray<CopilotOnTheFlyDocsRelevantFileInfoWrapper?> AdditionalContext => _wrappedAdditionalContext;
Copilot\SemanticSearch\CopilotSemanticSearchUtilities.cs (2)
39public static ImmutableArray<TaggedText> ToTaggedText(this IEnumerable<SymbolDisplayPart>? displayParts) 58public ValueTask OnReferencesFoundAsync(ImmutableArray<(SymbolGroup group, ISymbol symbol, ReferenceLocation location)> references, CancellationToken cancellationToken)
Copilot\SemanticSearch\ICopilotSemanticSearchQueryService.cs (1)
46ImmutableArray<QueryCompilationError> CompilationErrors,
Copilot\SemanticSearch\ICopilotSemanticSearchResultsObserver.cs (3)
21ValueTask OnDocumentUpdatedAsync(DocumentId documentId, ImmutableArray<TextChange> changes, CancellationToken cancellationToken); 31ImmutableArray<TaggedText> TypeName, 32ImmutableArray<TaggedText> StackTrace,
Microsoft.CodeAnalysis.NetAnalyzers (1051)
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\AbstractTypesShouldNotHaveConstructors.cs (1)
33public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\AbstractTypesShouldNotHaveConstructors.Fixer.cs (1)
24public sealed override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(AbstractTypesShouldNotHaveConstructorsAnalyzer.RuleId);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\AvoidEmptyInterfaces.cs (1)
33public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\AvoidExcessiveParametersOnGenericTypes.cs (1)
34public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\AvoidOutParameters.cs (1)
35public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\CancellationTokenParametersMustComeLast.cs (1)
33public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\CollectionPropertiesShouldBeReadOnly.cs (1)
49public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\CollectionsShouldImplementGenericInterface.cs (4)
55public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule); 68var interfaceToGenericInterfaceMapBuilder = ImmutableArray.CreateBuilder<KeyValuePair<INamedTypeSymbol, ImmutableArray<INamedTypeSymbol>>>(); 102private static void AnalyzeSymbol(SymbolAnalysisContext context, ImmutableArray<KeyValuePair<INamedTypeSymbol, ImmutableArray<INamedTypeSymbol>>> interfacePairs)
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\DeclareTypesInNamespaces.cs (1)
32public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\DefineAccessorsForAttributeArguments.cs (1)
63public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(DefaultRule, IncreaseVisibilityRule, RemoveSetterRule);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\DefineAccessorsForAttributeArguments.Fixer.cs (2)
22public override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(DefineAccessorsForAttributeArgumentsAnalyzer.RuleId); 50ImmutableArray<Diagnostic> diagnostics = ImmutableArray.Create(diagnostic);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\DoNotCatchGeneralExceptionTypes.cs (1)
33public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\DoNotDeclareProtectedMembersInSealedTypes.cs (1)
35public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\DoNotDeclareStaticMembersOnGenericTypes.cs (1)
32public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\DoNotDeclareVisibleInstanceFields.cs (1)
33public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\DoNotDirectlyAwaitATask.cs (5)
33public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule); 50if (!TryGetTaskTypes(wellKnownTypeProvider, out ImmutableArray<INamedTypeSymbol> taskTypes)) 109private static void AnalyzeAwaitOperation(OperationAnalysisContext context, ImmutableArray<INamedTypeSymbol> taskTypes) 176private static bool TryGetTaskTypes(WellKnownTypeProvider typeProvider, out ImmutableArray<INamedTypeSymbol> taskTypes) 183taskTypes = ImmutableArray<INamedTypeSymbol>.Empty;
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\DoNotDirectlyAwaitATask.Fixer.cs (2)
26public sealed override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(DoNotDirectlyAwaitATaskAnalyzer.RuleId); 85protected override async Task<Document?> FixAllAsync(FixAllContext fixAllContext, Document document, ImmutableArray<Diagnostic> diagnostics)
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\DoNotExposeGenericLists.cs (1)
32public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\DoNotHideBaseClassMethods.cs (1)
34public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\DoNotNameEnumValuesReserved.cs (2)
22private static readonly ImmutableArray<string> reservedWords = ImmutableArray.Create("reserved"); 34public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\DoNotOverloadOperatorEqualsOnReferenceTypes.cs (1)
32public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\DoNotPassTypesByReference.cs (1)
33public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\DoNotPrefixEnumValuesWithTypeName.cs (1)
38public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\DoNotRaiseExceptionsInUnexpectedLocations.cs (1)
59public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } =
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\EnumShouldNotHaveDuplicatedValues.cs (1)
47public sealed override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(RuleDuplicatedValue, RuleDuplicatedBitwiseValuePart);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\EnumsShouldHaveZeroValue.cs (5)
83public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(RuleRename, RuleMultipleZero, RuleNoZero); 119ImmutableArray<IFieldSymbol> zeroValuedFields = GetZeroValuedFields(symbol).ToImmutableArray(); 131private static void CheckFlags(INamedTypeSymbol namedType, ImmutableArray<IFieldSymbol> zeroValuedFields, 142var additionalEnumNoneNames = 168private static void CheckNonFlags(INamedTypeSymbol namedType, ImmutableArray<IFieldSymbol> zeroValuedFields, Action<Diagnostic> addDiagnostic)
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\EnumsShouldHaveZeroValue.Fixer.cs (1)
23public sealed override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(EnumsShouldHaveZeroValueAnalyzer.RuleId);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\EnumStorageShouldBeInt32.cs (1)
35public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\EnumStorageShouldBeInt32.Fixer.cs (1)
21public sealed override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(EnumStorageShouldBeInt32Analyzer.RuleId);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\EnumWithFlagsAttribute.cs (1)
60public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule1027, Rule2217);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\EnumWithFlagsAttribute.Fixer.cs (1)
25public sealed override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(EnumWithFlagsAttributeAnalyzer.RuleIdMarkEnumsWithFlags,
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\EquatableAnalyzer.cs (1)
45public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(ImplementIEquatableDescriptor, OverridesObjectEqualsDescriptor);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\EquatableAnalyzer.Fixer.cs (2)
26public override ImmutableArray<string> FixableDiagnosticIds { get; } = 63ImmutableArray<Diagnostic> diagnostics = context.Diagnostics;
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\EventsShouldNotHaveBeforeOrAfterPrefix.cs (1)
36public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\ExceptionsShouldBePublic.cs (1)
34public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\ExceptionsShouldBePublic.Fixer.cs (1)
21public sealed override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(ExceptionsShouldBePublicAnalyzer.RuleId);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\IdentifiersShouldDifferByMoreThanCase.cs (2)
40public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule); 215var parameters = symbol.GetParameters();
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\IdentifiersShouldHaveCorrectPrefix.cs (2)
47public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(InterfaceRule, TypeParameterRule); 111private static void AnalyzeTypeParameters<TContext>(ImmutableArray<ITypeParameterSymbol> typeParameters, bool allowSingleLetterTypeParameters, Action<TContext, Diagnostic> addDiagnostic, TContext context)
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\IdentifiersShouldHaveCorrectSuffix.cs (17)
33private static readonly ImmutableArray<string> s_setCollectionSuffixes = ImmutableArray.Create(SetSuffix, CollectionSuffix); 34private static readonly ImmutableArray<string> s_queueCollectionSuffixes = ImmutableArray.Create(QueueSuffix, CollectionSuffix); 35private static readonly ImmutableArray<string> s_stackCollectionSuffixes = ImmutableArray.Create(StackSuffix, CollectionSuffix); 36private static readonly ImmutableArray<string> s_dictionaryCollectionSuffixes = ImmutableArray.Create(DictionarySuffix, CollectionSuffix); 37private static readonly ImmutableArray<string> s_collectionDictionarySetStackQueueSuffixes = ImmutableArray.Create(CollectionSuffix, DictionarySuffix, SetSuffix, StackSuffix, QueueSuffix); 68public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(OneSuffixRule, MultipleSuffixesRule, UserSuffixRule); 72private static readonly ImmutableArray<(string typeName, ImmutableArray<string> suffixes)> s_baseTypesAndTheirSuffix = 111var baseTypeSuffixMapBuilder = ImmutableDictionary.CreateBuilder<INamedTypeSymbol, ImmutableArray<string>>(SymbolEqualityComparer.Default); 112var interfaceTypeSuffixMapBuilder = ImmutableDictionary.CreateBuilder<INamedTypeSymbol, ImmutableArray<string>>(SymbolEqualityComparer.Default); 153? namedTypeSymbol.BaseType != null ? ImmutableArray.Create(namedTypeSymbol.BaseType) : ImmutableArray<INamedTypeSymbol>.Empty 158if (TryGetTypeSuffix(baseTypes, baseTypeSuffixMap, userTypeSuffixMap, out var typesSuffixes, out var rule)) 168var interfaces = excludeIndirectBaseTypes 172if (TryGetTypeSuffix(interfaces, interfaceTypeSuffixMap, userTypeSuffixMap, out var interfaceSuffixes, out rule) && 202private static bool TryGetTypeSuffix(IEnumerable<INamedTypeSymbol> typeSymbols, ImmutableDictionary<INamedTypeSymbol, ImmutableArray<string>> hardcodedMap, 203SymbolNamesWithValueOption<string?> userMap, out ImmutableArray<string> suffixes, [NotNullWhen(true)] out DiagnosticDescriptor? rule) 224suffixes = ImmutableArray<string>.Empty;
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\IdentifiersShouldNotContainTypeNames.cs (1)
80public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\IdentifiersShouldNotContainUnderscores.cs (1)
119public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(AssemblyRule, NamespaceRule, TypeRule, MemberRule, TypeTypeParameterRule, MethodTypeParameterRule, MemberParameterRule, DelegateParameterRule);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\IdentifiersShouldNotContainUnderscores.Fixer.cs (1)
21public sealed override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(IdentifiersShouldNotContainUnderscoresAnalyzer.RuleId);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\IdentifiersShouldNotHaveIncorrectSuffix.cs (9)
67public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create( 94private static readonly ImmutableDictionary<string, ImmutableArray<string>> s_suffixToBaseTypeNamesDictionary = ImmutableDictionary.CreateRange( 95new Dictionary<string, ImmutableArray<string>> 110private static readonly ImmutableDictionary<string, ImmutableArray<string>> s_suffixToAllowedTypesDictionary = ImmutableDictionary.CreateRange( 111new Dictionary<string, ImmutableArray<string>> 127var suffixToBaseTypeDictionaryBuilder = ImmutableDictionary.CreateBuilder<string, ImmutableArray<INamedTypeSymbol>>(); 131ImmutableArray<string> typeNames = s_suffixToBaseTypeNamesDictionary[suffix]; 133ImmutableArray<INamedTypeSymbol> namedTypeSymbolArray = ImmutableArray.CreateRange( 302private static bool IsNotChildOfAnyButHasSuffix(INamedTypeSymbol namedTypeSymbol, ImmutableArray<INamedTypeSymbol> parentTypes, string suffix, ImmutableHashSet<string> allowedSuffixes)
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\IdentifiersShouldNotMatchKeywords.cs (1)
86public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(MemberParameterRule, MemberRule, TypeRule, NamespaceRule);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\ImplementIDisposableCorrectly.cs (7)
123public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = 375private void CheckDisposeImplementationRule(IMethodSymbol method, INamedTypeSymbol type, ImmutableArray<IOperation> operationBlocks, OperationBlockAnalysisContext context) 387private static void CheckFinalizeImplementationRule(IMethodSymbol method, INamedTypeSymbol type, ImmutableArray<IOperation> operationBlocks, OperationBlockAnalysisContext context) 519public bool Validate(ImmutableArray<IOperation> operations) 532private bool ValidateOperations(ImmutableArray<IOperation> operations) 643public bool Validate(ImmutableArray<IOperation> operations) 655private bool ValidateOperations(ImmutableArray<IOperation> operations)
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\ImplementStandardExceptionConstructors.cs (2)
46public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(MissingConstructorRule); 84var parameters = ctor.GetParameters();
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\ImplementStandardExceptionConstructors.Fixer.cs (1)
34public sealed override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(ImplementStandardExceptionConstructorsAnalyzer.RuleId);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\InterfaceMethodsShouldBeCallableByChildTypes.cs (4)
43public sealed override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule); 59private static bool ShouldExcludeOperationBlock(ImmutableArray<IOperation> operationBlocks) 70var explicitOperations = block.Operations.WithoutFullyImplicitOperations(); 79var topmostExplicitOperations = explicitOperations[0].GetTopmostExplicitDescendants();
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\InterfaceMethodsShouldBeCallableByChildTypes.Fixer.cs (1)
26public sealed override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(InterfaceMethodsShouldBeCallableByChildTypesAnalyzer.RuleId);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\MarkAssembliesWithAttributesDiagnosticAnalyzer.cs (1)
47public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(CA1016Rule, CA1014Rule);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\MarkAssembliesWithComVisible.cs (1)
49public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(RuleChangeComVisible, RuleAddComVisible);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\MarkAttributesWithAttributeUsage.cs (1)
33public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\MarkAttributesWithAttributeUsage.Fixer.cs (3)
23public sealed override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(MarkAttributesWithAttributeUsageAnalyzer.RuleId); 46var diagnostics = context.Diagnostics; 48var applyAttributeTargetValues = Enum.GetValues(typeof(AttributeTargets))
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\MovePInvokesToNativeMethodsClass.cs (1)
38public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\NestedTypesShouldNotBeVisible.cs (1)
47public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(DefaultRule, VisualBasicModuleRule);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\NonConstantFieldsShouldNotBeVisible.cs (1)
32public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\OperatorOverloadsHaveNamedAlternates.cs (1)
74public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(DefaultRule, PropertyRule, MultipleRule, VisibilityRule);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\OperatorOverloadsHaveNamedAlternates.Fixer.cs (1)
24public override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(OperatorOverloadsHaveNamedAlternatesAnalyzer.RuleId);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\OperatorsShouldHaveSymmetricalOverloads.cs (8)
32public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule); 62var operators1 = namedType.GetMembers(memberName1); 63var operators2 = namedType.GetMembers(memberName2); 70ImmutableArray<ISymbol> operators1, ImmutableArray<ISymbol> operators2, 103private static bool HasSymmetricOperator(ISymbol operator1, ImmutableArray<ISymbol> operators2) 124var parameters1 = operator1.GetParameters(); 125var parameters2 = operator2.GetParameters();
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\OperatorsShouldHaveSymmetricalOverloads.Fixer.cs (1)
29public sealed override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(OperatorsShouldHaveSymmetricalOverloadsAnalyzer.RuleId);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\OverloadOperatorEqualsOnOverridingValueTypeEquals.cs (1)
32public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\OverloadOperatorEqualsOnOverridingValueTypeEquals.Fixer.cs (1)
23public sealed override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(OverloadOperatorEqualsOnOverridingValueTypeEqualsAnalyzer.RuleId);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\OverrideEqualsAndOperatorEqualsOnValueTypes.cs (1)
46public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(EqualsRule, OpEqualityRule);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\OverrideEqualsAndOperatorEqualsOnValueTypes.Fixer.cs (2)
23public sealed override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(OverrideEqualsAndOperatorEqualsOnValueTypesAnalyzer.RuleId); 36ImmutableArray<Diagnostic> diagnostics = context.Diagnostics;
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\OverrideMethodsOnComparableTypes.cs (1)
61public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(RuleBoth, RuleEquals, RuleOperator);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\OverrideMethodsOnComparableTypes.Fixer.cs (1)
21public override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(OverrideMethodsOnComparableTypesAnalyzer.RuleId);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\ParameterNamesShouldMatchBaseDeclaration.cs (2)
35public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule); 63ImmutableArray<IMethodSymbol> originalDefinitions = methodSymbol.GetOriginalDefinitions();
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\ParameterNamesShouldMatchBaseDeclaration.Fixer.cs (1)
24public sealed override ImmutableArray<string> FixableDiagnosticIds { get; } =
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\PassSystemUriObjectsInsteadOfStrings.cs (1)
35public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\PropertiesShouldNotBeWriteOnly.cs (1)
46public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(AddGetterRule, MakeMoreAccessibleRule);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\PropertiesShouldNotReturnArrays.cs (1)
32public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\PropertyNamesShouldNotMatchGetMethods.cs (1)
36public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\ProvideObsoleteAttributeMessage.cs (1)
33public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\StaticHolderTypes.cs (1)
55public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\TypeNamesShouldNotMatchNamespaces.cs (1)
50public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(DefaultRule, SystemRule);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\TypesThatOwnDisposableFieldsShouldBeDisposable.cs (1)
37public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\TypesThatOwnDisposableFieldsShouldBeDisposable.Fixer.cs (1)
24public sealed override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(TypesThatOwnDisposableFieldsShouldBeDisposableAnalyzer.RuleId);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\UriParametersShouldNotBeStrings.cs (1)
33public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\UriParametersShouldNotBeStrings.Fixer.cs (2)
29public sealed override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(UriParametersShouldNotBeStringsAnalyzer.RuleId); 44ImmutableArray<Diagnostic> diagnostics = context.Diagnostics;
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\UriPropertiesShouldNotBeStrings.cs (1)
32public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\UriReturnValuesShouldNotBeStrings.cs (1)
32public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\UseEventsWhereAppropriate.cs (1)
40public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\UseGenericEventHandlerInstances.cs (1)
61public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(RuleForDelegates, RuleForEvents, RuleForEvents2);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\UseIntegralOrStringArgumentForIndexers.cs (2)
37private static readonly ImmutableArray<SpecialType> s_allowedSpecialTypes = 49public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\UsePreferredTerms.cs (2)
196public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray<DiagnosticDescriptor>.Empty;
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\UsePropertiesWhereAppropriate.cs (1)
40public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
Microsoft.CodeQuality.Analyzers\ApiReview\AvoidCallingProblematicMethods.cs (2)
130public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray<DiagnosticDescriptor>.Empty;
Microsoft.CodeQuality.Analyzers\Documentation\AvoidUsingCrefTagsWithAPrefix.cs (1)
30public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
Microsoft.CodeQuality.Analyzers\Maintainability\AvoidDeadConditionalCode.cs (1)
56public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(AlwaysTrueFalseOrNullRule, NeverNullRule);
Microsoft.CodeQuality.Analyzers\Maintainability\AvoidLengthCalculationWhenSlicingToEnd.cs (2)
38public sealed override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule); 66var argumentsInParameterOrder = invocation.Arguments.GetArgumentsInParameterOrder();
Microsoft.CodeQuality.Analyzers\Maintainability\AvoidLengthCalculationWhenSlicingToEnd.Fixer.cs (1)
25public sealed override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(AvoidLengthCalculationWhenSlicingToEndAnalyzer.RuleId);
Microsoft.CodeQuality.Analyzers\Maintainability\AvoidUninstantiatedInternalClasses.cs (3)
39public sealed override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule); 113var typeAttributes = type.GetAttributes(); 269var nestedTypes = type.GetTypeMembers();
Microsoft.CodeQuality.Analyzers\Maintainability\AvoidUnusedPrivateFields.cs (1)
35public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
Microsoft.CodeQuality.Analyzers\Maintainability\AvoidUnusedPrivateFields.Fixer.cs (1)
21public sealed override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(AvoidUnusedPrivateFieldsAnalyzer.RuleId);
Microsoft.CodeQuality.Analyzers\Maintainability\CodeMetricsAnalyzer.cs (3)
112public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(CA1501Rule, CA1502Rule, CA1505Rule, CA1506Rule, InvalidEntryInCodeMetricsConfigFileRule); 284ImmutableArray<AdditionalText> additionalFiles, 300private static AdditionalText? TryGetCodeMetricsConfigurationFile(ImmutableArray<AdditionalText> additionalFiles, CancellationToken cancellationToken)
Microsoft.CodeQuality.Analyzers\Maintainability\DoNotIgnoreMethodResults.cs (1)
139public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(ObjectCreationRule, StringCreationRule, HResultOrErrorCodeRule, TryParseRule, PureMethodRule);
Microsoft.CodeQuality.Analyzers\Maintainability\MakeTypesInternal.cs (1)
61public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
Microsoft.CodeQuality.Analyzers\Maintainability\MakeTypesInternal.Fixer.cs (1)
38public override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(MakeTypesInternal.RuleId);
Microsoft.CodeQuality.Analyzers\Maintainability\UseCrossPlatformIntrinsicsAnalyzer.cs (3)
28internal static readonly ImmutableArray<DiagnosticDescriptor> Rules = ImmutableArray.CreateRange( 33internal static readonly ImmutableArray<ImmutableDictionary<string, string?>> Properties = ImmutableArray.CreateRange( 43public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => Rules;
Microsoft.CodeQuality.Analyzers\Maintainability\UseCrossPlatformIntrinsicsFixer.cs (1)
21public sealed override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(UseCrossPlatformIntrinsicsAnalyzer.RuleId);
Microsoft.CodeQuality.Analyzers\Maintainability\UseNameofInPlaceOfString.cs (1)
36public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(RuleWithSuggestion);
Microsoft.CodeQuality.Analyzers\Maintainability\UseNameofInPlaceOfString.Fixer.cs (1)
22public sealed override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(UseNameofInPlaceOfStringAnalyzer.RuleId);
Microsoft.CodeQuality.Analyzers\Maintainability\VariableNamesShouldNotMatchFieldNames.cs (2)
42public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray<DiagnosticDescriptor>.Empty;
Microsoft.CodeQuality.Analyzers\QualityGuidelines\AssigningSymbolAndItsMemberInSameStatement.cs (1)
36public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
Microsoft.CodeQuality.Analyzers\QualityGuidelines\AvoidDuplicateElementInitialization.cs (12)
36public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule); 55var initializedElementIndexes = new HashSet<ImmutableArray<object>>(ConstantArgumentEqualityComparer.Instance); 63var values = GetConstantArgumentValues(propertyReference.Arguments); 80private static ImmutableArray<object> GetConstantArgumentValues(ImmutableArray<IArgumentOperation> arguments) 91return ImmutableArray<object>.Empty; 100private sealed class ConstantArgumentEqualityComparer : IEqualityComparer<ImmutableArray<object>> 108bool IEqualityComparer<ImmutableArray<object>>.Equals(ImmutableArray<object> x, ImmutableArray<object> y) 118int IEqualityComparer<ImmutableArray<object>>.GetHashCode(ImmutableArray<object> obj)
Microsoft.CodeQuality.Analyzers\QualityGuidelines\AvoidInfiniteRecursion.cs (1)
41public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule, MaybeRule);
Microsoft.CodeQuality.Analyzers\QualityGuidelines\AvoidMultipleEnumerations\AvoidMultipleEnumerations.cs (21)
35public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(MultipleEnumerableDescriptor); 40private static readonly ImmutableArray<string> s_additionalDeferredTypes = 46private static readonly ImmutableArray<(string typeName, string methodName)> s_immutableCollectionsTypeNamesAndConvensionMethods = ImmutableArray.Create( 57private static readonly ImmutableArray<string> s_constructorsEnumeratedParameterTypes = ImmutableArray.Create( 70private static readonly ImmutableArray<string> s_enumeratedParametersLinqMethods = ImmutableArray.Create( 103private static readonly ImmutableArray<string> s_linqChainMethods = ImmutableArray.Create( 144private static readonly ImmutableArray<string> s_noEffectLinqChainMethods = ImmutableArray.Create( 150private static readonly ImmutableArray<string> s_noEnumerationLinqMethods = ImmutableArray.Create( 167var linqChainMethods = GetLinqMethods(wellKnownTypeProvider, s_linqChainMethods); 168var noEnumerationMethods = GetLinqMethods(wellKnownTypeProvider, s_noEnumerationLinqMethods); 169var enumeratedMethods = GetEnumeratedMethods(wellKnownTypeProvider, s_immutableCollectionsTypeNamesAndConvensionMethods, s_enumeratedParametersLinqMethods, s_constructorsEnumeratedParameterTypes); 170var noEffectLinqChainMethods = GetLinqMethods(wellKnownTypeProvider, s_noEffectLinqChainMethods); 171var additionalDeferredTypes = GetTypes(compilation, s_additionalDeferredTypes); 175var getEnumeratorSymbols = GetGetEnumeratorMethods(wellKnownTypeProvider); 187ImmutableArray<IMethodSymbol> linqChainMethods, 188ImmutableArray<IMethodSymbol> noEnumerationMethods, 189ImmutableArray<IMethodSymbol> enumeratedMethods, 190ImmutableArray<IMethodSymbol> noEffectLinqChainMethods, 191ImmutableArray<ITypeSymbol> additionalDeferredTypes, 192ImmutableArray<IMethodSymbol> getEnumeratorSymbols, 195var operationBlocks = context.OperationBlocks;
Microsoft.CodeQuality.Analyzers\QualityGuidelines\AvoidMultipleEnumerations\AvoidMultipleEnumerationsHelpers.cs (15)
363public static ImmutableArray<IMethodSymbol> GetEnumeratedMethods(WellKnownTypeProvider wellKnownTypeProvider, 364ImmutableArray<(string typeName, string methodName)> typeAndMethodNames, 365ImmutableArray<string> linqMethodNames, 366ImmutableArray<string> constructorTypeNames) 377ImmutableArray<string> typeNames, 391ImmutableArray<(string, string)> typeAndMethodNames, 399var methods = type.GetMembers(methodName); 415public static ImmutableArray<IMethodSymbol> GetGetEnumeratorMethods(WellKnownTypeProvider wellKnownTypeProvider) 440private static bool IsConstraintTypesHasDeferredType(ITypeParameterSymbol typeParameterSymbol, ImmutableArray<ITypeSymbol> additionalTypesToCheck) 443public static bool IsDeferredType(ITypeSymbol? type, ImmutableArray<ITypeSymbol> additionalTypesToCheck) 451public static ImmutableArray<ITypeSymbol> GetTypes(Compilation compilation, ImmutableArray<string> typeNames) 465public static ImmutableArray<IMethodSymbol> GetLinqMethods(WellKnownTypeProvider wellKnownTypeProvider, ImmutableArray<string> methodNames) 475ImmutableArray<string> methodNames,
Microsoft.CodeQuality.Analyzers\QualityGuidelines\AvoidMultipleEnumerations\WellKnownSymbolsInfo.cs (12)
21public ImmutableArray<IMethodSymbol> LinqChainMethods { get; } 27public ImmutableArray<IMethodSymbol> NoEnumerationMethods { get; } 33public ImmutableArray<IMethodSymbol> EnumeratedMethods { get; } 39public ImmutableArray<IMethodSymbol> NoEffectLinqChainMethods { get; } 46public ImmutableArray<ITypeSymbol> AdditionalDeferredTypes { get; } 51public ImmutableArray<IMethodSymbol> GetEnumeratorMethods { get; } 69ImmutableArray<IMethodSymbol> linqChainMethods, 70ImmutableArray<IMethodSymbol> noEnumerationMethods, 71ImmutableArray<IMethodSymbol> enumeratedMethods, 72ImmutableArray<IMethodSymbol> noEffectLinqChainMethods, 73ImmutableArray<ITypeSymbol> additionalDeferredTypes, 74ImmutableArray<IMethodSymbol> getEnumeratorMethods,
Microsoft.CodeQuality.Analyzers\QualityGuidelines\AvoidPropertySelfAssignment.cs (1)
33public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
Microsoft.CodeQuality.Analyzers\QualityGuidelines\DoNotCallOverridableMethodsInConstructors.cs (1)
40public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
Microsoft.CodeQuality.Analyzers\QualityGuidelines\DoNotDeclareEventFieldsAsVirtual.cs (1)
34public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
Microsoft.CodeQuality.Analyzers\QualityGuidelines\DoNotInitializeUnnecessarily.cs (1)
32public sealed override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(DefaultRule);
Microsoft.CodeQuality.Analyzers\QualityGuidelines\DoNotPassDisposablesIntoUnawaitedTasks.cs (1)
36public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
Microsoft.CodeQuality.Analyzers\QualityGuidelines\DoNotRaiseExceptionsInExceptionClauses.cs (1)
40public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
Microsoft.CodeQuality.Analyzers\QualityGuidelines\MarkMembersAsStatic.cs (8)
35public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule); 49ImmutableArray<INamedTypeSymbol> skippedAttributes = GetSkippedAttributes(wellKnownTypeProvider); 63ImmutableArray<INamedTypeSymbol> skippedAttributes, 210ImmutableArray<INamedTypeSymbol> skippedAttributes, 280var attributes = methodSymbol.GetAttributes(); 339private static ImmutableArray<INamedTypeSymbol> GetSkippedAttributes(WellKnownTypeProvider wellKnownTypeProvider) 341ImmutableArray<INamedTypeSymbol>.Builder? builder = null; 369return builder?.ToImmutable() ?? ImmutableArray<INamedTypeSymbol>.Empty;
Microsoft.CodeQuality.Analyzers\QualityGuidelines\MarkMembersAsStatic.Fixer.cs (1)
35public sealed override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(MarkMembersAsStaticAnalyzer.RuleId);
Microsoft.CodeQuality.Analyzers\QualityGuidelines\PreferJaggedArraysOverMultidimensional.cs (2)
57public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(DefaultRule, ReturnRule, BodyRule); 129private static void AnalyzeParameters(SymbolAnalysisContext context, ISymbol containingSymbol, ImmutableArray<IParameterSymbol> parameters)
Microsoft.CodeQuality.Analyzers\QualityGuidelines\RemoveEmptyFinalizers.cs (1)
33public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
Microsoft.CodeQuality.Analyzers\QualityGuidelines\RemoveEmptyFinalizers.Fixer.cs (1)
21public sealed override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(RemoveEmptyFinalizersAnalyzer.RuleId);
Microsoft.CodeQuality.Analyzers\QualityGuidelines\RethrowToPreserveStackDetails.cs (1)
33public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
Microsoft.CodeQuality.Analyzers\QualityGuidelines\RethrowToPreserveStackDetails.Fixer.cs (1)
23public sealed override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(RethrowToPreserveStackDetailsAnalyzer.RuleId);
Microsoft.CodeQuality.Analyzers\QualityGuidelines\SealMethodsThatSatisfyPrivateInterfaces.cs (1)
33public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
Microsoft.CodeQuality.Analyzers\QualityGuidelines\SealMethodsThatSatisfyPrivateInterfaces.Fixer.cs (1)
23public sealed override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(SealMethodsThatSatisfyPrivateInterfacesAnalyzer.RuleId);
Microsoft.CodeQuality.Analyzers\QualityGuidelines\UseLiteralsWhereAppropriate.cs (1)
47public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(DefaultRule, EmptyStringRule);
Microsoft.CodeQuality.Analyzers\QualityGuidelines\UseLiteralsWhereAppropriate.Fixer.cs (1)
21public sealed override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(UseLiteralsWhereAppropriateAnalyzer.RuleId);
Microsoft.CodeQuality.Analyzers\QualityGuidelines\ValidateArgumentsOfPublicMethods.cs (1)
35public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
Microsoft.NetCore.Analyzers\Data\ReviewSqlQueriesForSecurityVulnerabilities.cs (4)
37public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule); 132ImmutableArray<IArgumentOperation> arguments, 154var potentials = arguments.WhereAsArray(arg => arg.Parameter?.Type.SpecialType == SpecialType.System_String && !arg.Parameter.IsImplicitlyDeclared); 180var vulnerableArguments = vulnerableArgumentsBuilder.ToImmutable();
Microsoft.NetCore.Analyzers\ImmutableCollections\DoNotCallToImmutableCollectionOnAnImmutableCollectionValue.cs (2)
47public static ImmutableArray<string> ToImmutableMethodNames { get; } = ImmutableCollectionMetadataNames.Keys.ToImmutableArray(); 49public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
Microsoft.NetCore.Analyzers\ImmutableCollections\DoNotCallToImmutableCollectionOnAnImmutableCollectionValue.Fixer.cs (1)
23public sealed override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(DoNotCallToImmutableCollectionOnAnImmutableCollectionValueAnalyzer.RuleId);
Microsoft.NetCore.Analyzers\InteropServices\AvoidStringBuilderPInvokeParameters.cs (1)
32public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
Microsoft.NetCore.Analyzers\InteropServices\DisableRuntimeMarshalling.cs (4)
128public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create( 164private static void AnalyzeMethodSignature(AutoLayoutTypeCache autoLayoutCache, Action<Diagnostic> reportDiagnostic, IMethodSymbol method, ImmutableArray<Location> locationsOverride = default, DiagnosticDescriptor? descriptorOverride = null) 169var paramLocation = locationsOverride.IsDefaultOrEmpty ? param.Locations : locationsOverride; 178void AnalyzeSignatureType(ImmutableArray<Location> locations, ITypeSymbol type)
Microsoft.NetCore.Analyzers\InteropServices\DisableRuntimeMarshallingAnalyzer.DisabledRuntimeMarshallingAssemblyAnalyzer.cs (1)
21private readonly ImmutableArray<ISymbol> _marshalMethods;
Microsoft.NetCore.Analyzers\InteropServices\DoNotUseOutAttributeStringPInvokeParameters.cs (1)
32public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
Microsoft.NetCore.Analyzers\InteropServices\DynamicInterfaceCastableImplementation.cs (1)
63public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(
Microsoft.NetCore.Analyzers\InteropServices\DynamicInterfaceCastableImplementation.Fixer.cs (2)
18public override ImmutableArray<string> FixableDiagnosticIds { get; } = 45ImmutableArray<Diagnostic> diagnostics = ImmutableArray.Create(diagnostic);
Microsoft.NetCore.Analyzers\InteropServices\MarkBooleanPInvokeArgumentsWithMarshalAs.cs (2)
39public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray<DiagnosticDescriptor>.Empty;
Microsoft.NetCore.Analyzers\InteropServices\PInvokeDiagnosticAnalyzer.cs (1)
48public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(RuleCA1401, RuleCA2101);
Microsoft.NetCore.Analyzers\InteropServices\PlatformCompatibilityAnalyzer.cs (25)
40private static readonly ImmutableArray<string> s_osPlatformAttributes = ImmutableArray.Create(SupportedOSPlatformAttribute, UnsupportedOSPlatformAttribute, ObsoletedOSPlatformAttribute); 153public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(OnlySupportedCsReachable, OnlySupportedCsUnreachable, 182var msBuildPlatforms = GetSupportedPlatforms(context.Options, context.Compilation); 253static ImmutableArray<string> GetSupportedPlatforms(AnalyzerOptions options, Compilation compilation) => 308ImmutableArray<IMethodSymbol> guardMethods, 315ImmutableArray<string> msBuildPlatforms, 324var osPlatformTypeArray = osPlatformType != null ? ImmutableArray.Create(osPlatformType) : ImmutableArray<INamedTypeSymbol>.Empty; 442private static bool ComputeNeedsValueContentAnalysis(IOperation operationBlock, ImmutableArray<IMethodSymbol> guardMethods, IMethodSymbol? runtimeIsOSPlatformMethod, INamedTypeSymbol? osPlatformType) 835var supportedRule = GetSupportedPlatforms(attributes, callsiteAttributes, out var platformNames, out var obsoletedPlatforms); 867out ImmutableArray<string> platformNames, out ImmutableArray<string> obsoletedPlatforms) 1005var unsupportedRule = GetPlatformNames(attributes, callsiteAttributes, out var platformNames, out var obsoletedPlatforms); 1019out ImmutableArray<string> platformNames, out ImmutableArray<string> obsoletedPlatforms) 1125static ImmutableArray<string> GetCallsitePlatforms(SmallDictionary<string, Versions> attributes, 1226static string JoinNames(ImmutableArray<string> platformNames) 1337ConcurrentDictionary<ISymbol, PlatformAttributes> platformSpecificMembers, ImmutableArray<string> msBuildPlatforms, 1383void CheckTypeArguments(ImmutableArray<ITypeSymbol> typeArguments) 1389void CheckTypeArgumentsCore(ImmutableArray<ITypeSymbol> typeArguments, PooledHashSet<ITypeSymbol> workingSet) 1452ImmutableArray<string> msBuildPlatforms, out SmallDictionary<string, Versions> copiedAttributes) 1511SmallDictionary<string, Versions> callSiteAttributes, ImmutableArray<string> msBuildPlatforms, 1812static void MergePlatformAttributes(ImmutableArray<AttributeData> immediateAttributes, ref PlatformAttributes parentAttributes,
Microsoft.NetCore.Analyzers\InteropServices\PlatformCompatibilityAnalyzer.OperationVisitor.cs (11)
20private readonly ImmutableArray<IMethodSymbol> _platformCheckMethods; 25ImmutableArray<IMethodSymbol> platformCheckMethods, 43internal bool TryParseGuardAttributes(ISymbol symbol, ref GlobalFlowStateAnalysisValueSet value, ImmutableArray<IArgumentOperation> visitedArguments) 45var attributes = symbol.GetAttributes(); 77private static bool HasAnyGuardAttribute(ImmutableArray<AttributeData> attributes, ImmutableArray<IArgumentOperation> methodArguments, [NotNullWhen(true)] out SmallDictionary<string, Versions>? mappedAttributes) 181ImmutableArray<IArgumentOperation> visitedArguments, 202var attributes = method.GetAttributes(); 225private static bool HasAnyGuardAttribute(ImmutableArray<AttributeData> attributes, Version expectedVersion, [NotNullWhen(true)] out SmallDictionary<string, Versions>? mappedAttributes) 266if (TryParseGuardAttributes(operation.Field, ref value, ImmutableArray<IArgumentOperation>.Empty)) 278if (TryParseGuardAttributes(operation.Property, ref value, ImmutableArray<IArgumentOperation>.Empty))
Microsoft.NetCore.Analyzers\InteropServices\PlatformCompatibilityAnalyzer.Value.cs (2)
42ImmutableArray<IArgumentOperation> arguments, 193ImmutableArray<IArgumentOperation> arguments,
Microsoft.NetCore.Analyzers\InteropServices\ProvidePublicParameterlessSafeHandleConstructor.cs (1)
32public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
Microsoft.NetCore.Analyzers\InteropServices\ProvidePublicParameterlessSafeHandleConstructor.Fixer.cs (1)
18public override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(ProvidePublicParameterlessSafeHandleConstructorAnalyzer.RuleId);
Microsoft.NetCore.Analyzers\InteropServices\SpecifyMarshalingForPInvokeStringArguments.Fixer.cs (1)
23public override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(PInvokeDiagnosticAnalyzer.RuleCA2101Id);
Microsoft.NetCore.Analyzers\InteropServices\UseManagedEquivalentsOfWin32Api.cs (2)
28public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray<DiagnosticDescriptor>.Empty;
Microsoft.NetCore.Analyzers\InteropServices\UseValidPlatformString.cs (5)
26private static readonly ImmutableArray<SymbolKind> s_symbols = ImmutableArray.Create(SymbolKind.NamedType, SymbolKind.Method, SymbolKind.Property, SymbolKind.Field, SymbolKind.Event); 27private static readonly ImmutableArray<string> methodNames = ImmutableArray.Create("IsOSPlatform", "IsOSPlatformVersionAtLeast"); 63public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(UnknownPlatform, InvalidVersion, NoVersion); 127static void AddPlatformsFromMsBuildOptions(PooledDictionary<string, int> knownPlatforms, ImmutableArray<string> msBuildPlatforms) 179var constructorArguments = attributeData.ConstructorArguments;
Microsoft.NetCore.Analyzers\Performance\AvoidPotentiallyExpensiveCallWhenLogging.cs (1)
52public sealed override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
Microsoft.NetCore.Analyzers\Performance\AvoidSingleUseOfLocalJsonSerializerOptions.cs (1)
32public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(s_Rule);
Microsoft.NetCore.Analyzers\Performance\CollapseMultiplePathOperations.cs (8)
37public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule); 82var combineMethodsArray = combineMethods.ToImmutable(); 83var joinMethodsArray = joinMethods.ToImmutable(); 104ImmutableArray<IMethodSymbol> combineMethods, 105ImmutableArray<IMethodSymbol> joinMethods) 118ImmutableArray<IMethodSymbol> methodsToCheck = default; 188private static bool IsNestedInSimilarCall(IInvocationOperation invocation, ImmutableArray<IMethodSymbol> methodsToCheck) 216private static int CountTotalArguments(IInvocationOperation invocation, ImmutableArray<IMethodSymbol> methodsToCheck)
Microsoft.NetCore.Analyzers\Performance\ConstantExpectedAnalyzer.cs (14)
118public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create( 162void CheckParameters(ImmutableArray<IParameterSymbol> parameters, ImmutableArray<IParameterSymbol> baseParameters) 164if (constantExpectedContext.ValidatesAttributeImplementedFromParent(parameters, baseParameters, out var diagnostics)) 211if (!constantExpectedContext.ValidateConstantExpectedParameter(parameter, Helper, out ImmutableArray<Diagnostic> diagnostics)) 235public bool ValidatesAttributeImplementedFromParent(ImmutableArray<IParameterSymbol> parameters, ImmutableArray<IParameterSymbol> baseParameters, out ImmutableArray<Diagnostic> diagnostics) 339public bool ValidateConstantExpectedParameter(IParameterSymbol parameterSymbol, DiagnosticHelper helper, out ImmutableArray<Diagnostic> diagnostics) 346diagnostics = ImmutableArray<Diagnostic>.Empty; 386static bool ValidateMinMaxIsNull(IParameterSymbol parameterSymbol, AttributeData attributeData, DiagnosticHelper helper, out ImmutableArray<Diagnostic> diagnostics) 411diagnostics = ImmutableArray<Diagnostic>.Empty; 589public static ImmutableArray<Diagnostic> ParameterIsInvalid(string expectedTypeName, SyntaxNode attributeSyntax) => ImmutableArray.Create(Diagnostic.Create(CA1856.UnsupportedTypeRule, attributeSyntax.GetLocation(), expectedTypeName)); 601public ImmutableArray<Diagnostic> GetError(ErrorKind errorFlags, IParameterSymbol parameterSymbol, SyntaxNode attributeSyntax, string typeMinValue, string typeMaxValue)
Microsoft.NetCore.Analyzers\Performance\ConstantExpectedAnalyzer.UnmanagedHelper.cs (3)
59public static bool Validate(IParameterSymbol parameterSymbol, AttributeData attributeData, T typeMin, T typeMax, DiagnosticHelper diagnosticHelper, out ImmutableArray<Diagnostic> diagnostics) 109public bool Validate(IParameterSymbol parameterSymbol, AttributeData attributeData, T typeMin, T typeMax, DiagnosticHelper diagnosticHelper, out ImmutableArray<Diagnostic> diagnostics) 118diagnostics = ImmutableArray<Diagnostic>.Empty;
Microsoft.NetCore.Analyzers\Performance\DoNotGuardCall.cs (5)
81public sealed override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = 201var originalDefinitions = method.GetOriginalDefinitions().WhereAsArray(m => method.ReturnType.IsAssignableTo(m.ReturnType, compilation)); 217private record GuardedCallContext(DiagnosticDescriptor Rule, ConditionMethodContext ConditionMethodContext, ImmutableArray<GuardedMethodContext> GuardedMethodContexts); 224private readonly ImmutableArray<GuardedMethod> _guardedMethods; 226private GuardedCallSymbols(Compilation compilation, IMethodSymbol conditionMethod, ImmutableArray<GuardedMethod> guardedMethods)
Microsoft.NetCore.Analyzers\Performance\DoNotGuardCall.Fixer.cs (1)
22public sealed override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(
Microsoft.NetCore.Analyzers\Performance\DoNotUseAsParallelInForEachLoop.cs (1)
35public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
Microsoft.NetCore.Analyzers\Performance\DoNotUseCountWhenAnyCanBeUsed.Fixer.cs (2)
33public override ImmutableArray<string> FixableDiagnosticIds { get; } = 68var diagnostics = context.Diagnostics;
Microsoft.NetCore.Analyzers\Performance\PreferConvertToHexStringOverBitConverter.cs (12)
44public sealed override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule); 95ImmutableArray<IMethodSymbol> stringReplaceMethods, 96ImmutableArray<IMethodSymbol> stringToLowerMethods, 126var stringReplaceMethods = stringType.GetMembers(Replace) 135var stringToLowerMethods = stringType.GetMembers(ToLower) 143var bitConverterToStringMethods = bitConverterType.GetMembers(WellKnownMemberNames.ObjectToString) 151var convertToHexStringMethods = convertType.GetMembers(ToHexString) 174var convertToHexStringLowerMethods = convertType.GetMembers(ToHexStringLower) 333private bool HasStringReplaceArgumentsToRemoveHyphen(ImmutableArray<IArgumentOperation> arguments) 335var argumentsInParameterOrder = arguments.GetArgumentsInParameterOrder(); 351private readonly ImmutableArray<IMethodSymbol> _stringReplaceMethods; 352private readonly ImmutableArray<IMethodSymbol> _stringToLowerMethods;
Microsoft.NetCore.Analyzers\Performance\PreferConvertToHexStringOverBitConverter.Fixer.cs (3)
32public sealed override ImmutableArray<string> FixableDiagnosticIds { get; } = 80var bitConverterArgumentsInParameterOrder = bitConverterInvocation.Arguments.GetArgumentsInParameterOrder(); 81var carriedOver = bitConverterArgumentsInParameterOrder.Select(a => a.Value.Syntax)
Microsoft.NetCore.Analyzers\Performance\PreferDictionaryTryMethodsOverContainsKeyGuardAnalyzer.cs (7)
49public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(PreferTryGetValueDiagnostic, PreferTryAddDiagnostic); 102public ImmutableArray<IOperation> AdditionalArrayIndexReferences { get; } = ImmutableArray<IOperation>.Empty; 104public ImmutableArray<Location>.Builder UsageLocations 116private ImmutableArray<Location>.Builder? _usageLocations; 209var declaredVariables = variableGroup.GetDeclaredVariables(); 588private static bool IsAnySameReferenceOperation(IOperation source, ImmutableArray<IOperation> targets)
Microsoft.NetCore.Analyzers\Performance\PreferDictionaryTryMethodsOverContainsKeyGuardFixer.cs (2)
26public override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create( 45ImmutableArray<Diagnostic> diagnostics = context.Diagnostics;
Microsoft.NetCore.Analyzers\Performance\PreferHashDataOverComputeHash.cs (19)
48public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(StringRule); 167ImmutableArray<Location> codefixerLocations; 175var disposeArray = dataResult.GetDisposeInvocationArray(localSymbol); 271ImmutableArray<Location> fixerLocations, 292private static ImmutableArray<Location> GetFixerLocations( 294ImmutableArray<IInvocationOperation> disposeArray, 297ImmutableArray<Location>.Builder builder = ImmutableArray.CreateBuilder<Location>(1 + disposeArray.Length); 311private static ImmutableArray<IInvocationOperation> GetValueOrEmpty(PooledDictionary<ILocalSymbol, ImmutableArray<IInvocationOperation>>? dictionary, ILocalSymbol key) 313if (dictionary is not null && dictionary.TryGetValue(key, out var value)) 318return ImmutableArray<IInvocationOperation>.Empty; 609private PooledDictionary<ILocalSymbol, ImmutableArray<IInvocationOperation>>? CompileDisposeMap(CancellationToken cancellationToken) 616var map = PooledDictionary<ILocalSymbol, ImmutableArray<IInvocationOperation>>.GetInstance(SymbolEqualityComparer.Default); 635var disposeArray = arrayBuilder.ToImmutableAndFree(); 645private PooledDictionary<ILocalSymbol, int>? GetComputeHashOnlySymbols(PooledDictionary<ILocalSymbol, ImmutableArray<IInvocationOperation>>? disposeMap, CancellationToken cancellationToken) 685var disposeArray = GetValueOrEmpty(disposeMap, local); 706private readonly PooledDictionary<ILocalSymbol, ImmutableArray<IInvocationOperation>>? _disposeMap; 709PooledDictionary<ILocalSymbol, ImmutableArray<IInvocationOperation>>? disposeMap, 725public ImmutableArray<IInvocationOperation> GetDisposeInvocationArray(ILocalSymbol localSymbol) => GetValueOrEmpty(_disposeMap, localSymbol);
Microsoft.NetCore.Analyzers\Performance\PreferHashDataOverComputeHash.Fixer.cs (12)
22public sealed override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(PreferHashDataOverComputeHashAnalyzer.CA1850); 82private readonly List<KeyValuePair<Project, ImmutableArray<Diagnostic>>> _diagnosticsToFix; 86public PreferHashDataOverComputeHashFixAllCodeAction(string title, Solution solution, List<KeyValuePair<Project, ImmutableArray<Diagnostic>>> diagnosticsToFix, PreferHashDataOverComputeHashFixHelper helper) 98foreach (KeyValuePair<Project, ImmutableArray<Diagnostic>> pair in _diagnosticsToFix) 101ImmutableArray<Diagnostic> diagnostics = pair.Value; 232var diagnosticsToFix = new List<KeyValuePair<Project, ImmutableArray<Diagnostic>>>(); 238ImmutableArray<Diagnostic> diagnostics = await fixAllContext.GetDocumentDiagnosticsAsync(fixAllContext.Document!).ConfigureAwait(false); 239diagnosticsToFix.Add(new KeyValuePair<Project, ImmutableArray<Diagnostic>>(fixAllContext.Project, diagnostics)); 244ImmutableArray<Diagnostic> diagnostics = await fixAllContext.GetAllDiagnosticsAsync(fixAllContext.Project).ConfigureAwait(false); 245diagnosticsToFix.Add(new KeyValuePair<Project, ImmutableArray<Diagnostic>>(fixAllContext.Project, diagnostics)); 252ImmutableArray<Diagnostic> diagnostics = await fixAllContext.GetAllDiagnosticsAsync(project).ConfigureAwait(false); 253diagnosticsToFix.Add(new KeyValuePair<Project, ImmutableArray<Diagnostic>>(project, diagnostics));
Microsoft.NetCore.Analyzers\Performance\PreferIsEmptyOverCount.Fixer.cs (1)
20public sealed override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(UseCountProperlyAnalyzer.CA1836);
Microsoft.NetCore.Analyzers\Performance\PreferLengthCountIsEmptyOverAny.Fixer.cs (1)
18public override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(PreferLengthCountIsEmptyOverAnyAnalyzer.RuleId);
Microsoft.NetCore.Analyzers\Performance\PreferLengthCountIsEmptyOverAnyAnalyzer.cs (2)
25internal const string IsEmptyText = nameof(ImmutableArray<dynamic>.IsEmpty); 65public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(
Microsoft.NetCore.Analyzers\Performance\PreferReadOnlySpanOverSpan.cs (1)
34public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
Microsoft.NetCore.Analyzers\Performance\PreferReadOnlySpanOverSpan.Fixer.cs (1)
23public sealed override ImmutableArray<string> FixableDiagnosticIds { get; } =
Microsoft.NetCore.Analyzers\Performance\RecommendCaseInsensitiveStringComparison.Analyzer.cs (1)
74public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(
Microsoft.NetCore.Analyzers\Performance\RecommendCaseInsensitiveStringComparison.Fixer.cs (1)
34public override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(RCISCAnalyzer.RuleId);
Microsoft.NetCore.Analyzers\Performance\UseAsSpanInsteadOfRangeIndexer.cs (4)
64public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(StringRule, ArrayReadOnlyRule, ArrayReadWriteRule); 89var spanTypes = ImmutableArray.Create(span, readOnlySpan); 90var readOnlyTypes = ImmutableArray.Create(readOnlySpan, readOnlyMemory); 91var targetTypes = ImmutableArray.Create(span, readOnlySpan, memory, readOnlyMemory);
Microsoft.NetCore.Analyzers\Performance\UseAsSpanInsteadOfRangeIndexer.Fixer.cs (1)
26public override ImmutableArray<string> FixableDiagnosticIds { get; } =
Microsoft.NetCore.Analyzers\Performance\UseCompositeFormat.cs (2)
39public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = 107ImmutableArray<IParameterSymbol> parameters = targetMethod.Parameters;
Microsoft.NetCore.Analyzers\Performance\UseConcreteTypeAnalyzer.cs (1)
113public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(
Microsoft.NetCore.Analyzers\Performance\UseCountProperly.cs (1)
93public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; }
Microsoft.NetCore.Analyzers\Performance\UsePropertyInsteadOfCountMethodWhenAvailable.Fixer.cs (1)
28public override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(UseCountProperlyAnalyzer.CA1829);
Microsoft.NetCore.Analyzers\Performance\UseSearchValues.cs (2)
35public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule); 331static bool AllElementsAreConstantByteOrCharLiterals(ImmutableArray<IOperation> elements, List<char>? values)
Microsoft.NetCore.Analyzers\Performance\UseSearchValues.Fixer.cs (4)
31public sealed override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(UseSearchValuesAnalyzer.DiagnosticId); 50ImmutableArray<Diagnostic> diagnostics = context.Diagnostics; 70private Task<Document> ConvertAllToSearchValuesAsync(Document document, ImmutableArray<Diagnostic> diagnostics, CancellationToken cancellationToken) 198var symbols = semanticModel.LookupNamespacesAndTypes(node.SpanStart, name: nameof(MemoryExtensions));
Microsoft.NetCore.Analyzers\Performance\UseSpanClearInsteadOfFill.cs (1)
36public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(s_Rule);
Microsoft.NetCore.Analyzers\Performance\UseSpanClearInsteadOfFIll.Fixer.cs (1)
20public sealed override ImmutableArray<string> FixableDiagnosticIds { get; }
Microsoft.NetCore.Analyzers\Performance\UseStartsWithInsteadOfIndexOfComparisonWithZero.cs (6)
41public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule); 94var indexOfMethods = indexOfMethodsBuilder.ToImmutable(); 104if (IsIndexOfComparedWithZero(binaryOperation.LeftOperand, binaryOperation.RightOperand, indexOfMethods, out var additionalLocations, out var properties) || 125ImmutableArray<(IMethodSymbol Symbol, string OverloadPropertyValue)> indexOfMethods, 126out ImmutableArray<Location> additionalLocations, 149additionalLocations = ImmutableArray<Location>.Empty;
Microsoft.NetCore.Analyzers\Performance\UseStartsWithInsteadOfIndexOfComparisonWithZero.Fixer.cs (1)
18public override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(UseStartsWithInsteadOfIndexOfComparisonWithZero.RuleId);
Microsoft.NetCore.Analyzers\Performance\UseStringContainsCharOverloadWithSingleCharacters.Fixer.cs (1)
17public override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(
Microsoft.NetCore.Analyzers\Performance\UseStringContainsCharOverloadWithSingleCharactersAnalyzer.cs (1)
34public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(s_rule_CA1847);
Microsoft.NetCore.Analyzers\Performance\UseStringMethodCharOverloadWithSingleCharacters.cs (2)
55private static readonly ImmutableArray<string> TargetMethods = ImmutableArray.Create( 61public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; }
Microsoft.NetCore.Analyzers\Performance\UseStringMethodCharOverloadWithSingleCharacters.Fixer.cs (4)
20public override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create( 50var preservedIndices = GetArguments(argumentListNode) 58var currentArguments = GetArguments(currentNode); 68protected abstract ImmutableArray<SyntaxNode> GetArguments(SyntaxNode argumentListNode);
Microsoft.NetCore.Analyzers\Resources\MarkAssembliesWithNeutralResourcesLanguage.cs (1)
42public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
Microsoft.NetCore.Analyzers\Runtime\AttributeStringLiteralsShouldParseCorrectly.cs (5)
51public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(DefaultRule, EmptyRule); 145var attributes = symbol.GetAttributes(); 156var constructorArguments = attributeData.ConstructorArguments; 253public ImmutableArray<string> AcceptedTokens { get; } 260public ValueValidator(ImmutableArray<string> acceptedTokens, string typeName, Func<string, bool> isValidValue, params string[] ignoredNames)
Microsoft.NetCore.Analyzers\Runtime\AvoidConstArrays.cs (1)
34public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
Microsoft.NetCore.Analyzers\Runtime\AvoidConstArrays.Fixer.cs (4)
30public sealed override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(AvoidConstArraysAnalyzer.RuleId); 32private static readonly ImmutableArray<string> s_collectionMemberEndings = ImmutableArray.Create("array", "collection", "enumerable", "list"); 42ImmutableArray<Diagnostic> diagnostics = context.Diagnostics; 53private static Task<Document> ExtractConstArraysAsync(Document document, ImmutableArray<Diagnostic> diagnostics, CancellationToken cancellationToken)
Microsoft.NetCore.Analyzers\Runtime\AvoidRedundantRegexIsMatchBeforeMatch.cs (3)
40public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule); 516ImmutableArray<IParameterSymbol> left, 517ImmutableArray<IParameterSymbol> right)
Microsoft.NetCore.Analyzers\Runtime\AvoidUnreliableStreamRead.cs (7)
38public sealed override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule); 93ImmutableArray<IMethodSymbol> streamReadMethods, 94ImmutableArray<IMethodSymbol> streamReadAsyncMethods, 113var streamReadMethods = streamType.GetMembers(Read) 116var streamReadAsyncMethods = streamType.GetMembers(ReadAsync) 167private readonly ImmutableArray<IMethodSymbol> _streamReadMethods; 168private readonly ImmutableArray<IMethodSymbol> _streamReadAsyncMethods;
Microsoft.NetCore.Analyzers\Runtime\AvoidUnreliableStreamRead.Fixer.cs (3)
32public sealed override ImmutableArray<string> FixableDiagnosticIds { get; } = 58var arguments = invocation.Arguments.GetArgumentsInParameterOrder(); 62ImmutableArray<SyntaxNode> replacementArguments = CanUseSpanOverload()
Microsoft.NetCore.Analyzers\Runtime\AvoidUnsealedAttributes.cs (1)
35public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
Microsoft.NetCore.Analyzers\Runtime\AvoidUnsealedAttributes.Fixer.cs (1)
21public sealed override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(AvoidUnsealedAttributesAnalyzer.RuleId);
Microsoft.NetCore.Analyzers\Runtime\AvoidZeroLengthArrayAllocations.cs (5)
45public sealed override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(UseArrayEmptyDescriptor); 140var arguments = ImmutableArray<IArgumentOperation>.Empty; 165var parameters = targetSymbol.GetParameters(); 186ImmutableArray<IOperation> sizes = first.DimensionSizes;
Microsoft.NetCore.Analyzers\Runtime\AvoidZeroLengthArrayAllocations.Fixer.cs (1)
22public sealed override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(AvoidZeroLengthArrayAllocationsAnalyzer.RuleId);
Microsoft.NetCore.Analyzers\Runtime\BufferBlockCopyLengthAnalyzer.cs (2)
35public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule); 82ImmutableArray<IArgumentOperation> arguments = IOperationExtensions.GetArgumentsInParameterOrder(invocationOperation.Arguments);
Microsoft.NetCore.Analyzers\Runtime\CallGCSuppressFinalizeCorrectly.cs (1)
67public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(NotCalledWithFinalizerRule, NotCalledRule, NotPassedThisRule, OutsideDisposeRule);
Microsoft.NetCore.Analyzers\Runtime\DetectPreviewFeatureAnalyzer.cs (11)
31private static readonly ImmutableArray<SymbolKind> s_symbols = ImmutableArray.Create(SymbolKind.NamedType, SymbolKind.Method, SymbolKind.Property, SymbolKind.Field, SymbolKind.Event); 194public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create( 290private static ISymbol? GetPreviewSymbolForGenericTypesFromTypeArguments(ImmutableArray<ITypeSymbol> typeArguments, 391ImmutableArray<INamedTypeSymbol> interfaces = symbol.Interfaces; 485ImmutableArray<ITypeParameterSymbol> typeParameters = typeSymbol.TypeParameters; 505ImmutableArray<ITypeParameterSymbol> typeParameters = methodSymbol.TypeParameters; 611ImmutableArray<IParameterSymbol> parameters = method.Parameters; 847ImmutableArray<ITypeParameterSymbol> typeParameters, 855ImmutableArray<ITypeSymbol> constraintTypes = typeParameter.ConstraintTypes; 875ImmutableArray<TypedConstant> constructorArguments = attribute.ConstructorArguments; 884ImmutableArray<KeyValuePair<string, TypedConstant>> namedArguments = attribute.NamedArguments;
Microsoft.NetCore.Analyzers\Runtime\DisposableFieldsShouldBeDisposed.cs (2)
40public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule); 126var initializedFields = ((IFieldInitializerOperation)operationContext.Operation).InitializedFields;
Microsoft.NetCore.Analyzers\Runtime\DisposableTypesShouldDeclareFinalizer.cs (1)
34public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
Microsoft.NetCore.Analyzers\Runtime\DisposeMethodsShouldCallBaseClassDispose.cs (1)
38public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
Microsoft.NetCore.Analyzers\Runtime\DisposeObjectsBeforeLosingScope.cs (1)
73public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } =
Microsoft.NetCore.Analyzers\Runtime\DoNotCallEnumerableCastOrOfTypeWithIncompatibleTypesAnalyzer.cs (2)
48private static readonly ImmutableArray<(string MethodName, DiagnosticDescriptor Rule)> s_methodMetadataNames = ImmutableArray.Create( 53public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; }
Microsoft.NetCore.Analyzers\Runtime\DoNotDefineFinalizersForTypesDerivedFromMemoryManager.cs (1)
33public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
Microsoft.NetCore.Analyzers\Runtime\DoNotLockOnObjectsWithWeakIdentity.cs (1)
41public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
Microsoft.NetCore.Analyzers\Runtime\DoNotPassLiteralsAsLocalizedParameters.cs (2)
48public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule); 313private static LocalizableAttributeState GetLocalizableAttributeStateCore(ImmutableArray<AttributeData> attributeList, INamedTypeSymbol localizableAttributeTypeSymbol)
Microsoft.NetCore.Analyzers\Runtime\DoNotRaiseReservedExceptionTypes.cs (3)
41private static readonly ImmutableArray<string> s_tooGenericExceptions = ImmutableArray.Create("System.Exception", 45private static readonly ImmutableArray<string> s_reservedExceptions = ImmutableArray.Create("System.OutOfMemoryException", 80public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(TooGenericRule, ReservedRule);
Microsoft.NetCore.Analyzers\Runtime\DoNotUseEndOfStreamInAsyncMethods.cs (1)
35public sealed override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
Microsoft.NetCore.Analyzers\Runtime\DoNotUseEnumerableMethodsOnIndexableCollectionsInsteadUseTheCollectionDirectly.cs (1)
38public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
Microsoft.NetCore.Analyzers\Runtime\DoNotUseEnumerableMethodsOnIndexableCollectionsInsteadUseTheCollectionDirectly.Fixer.cs (1)
27public sealed override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(DoNotUseEnumerableMethodsOnIndexableCollectionsInsteadUseTheCollectionDirectlyAnalyzer.RuleId);
Microsoft.NetCore.Analyzers\Runtime\DoNotUseReferenceEqualsWithValueTypes.cs (1)
46public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(MethodRule, ComparerRule);
Microsoft.NetCore.Analyzers\Runtime\DoNotUseStackallocInLoopsAnalyzer.cs (1)
30public sealed override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
Microsoft.NetCore.Analyzers\Runtime\DoNotUseTimersThatPreventPowerStateChanges.cs (2)
28public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray<DiagnosticDescriptor>.Empty;
Microsoft.NetCore.Analyzers\Runtime\ForwardCancellationTokenToInvocations.Analyzer.cs (6)
43protected abstract bool ArgumentsImplicitOrNamed(INamedTypeSymbol cancellationTokenType, ImmutableArray<IArgumentOperation> arguments); 60public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = 269ImmutableArray<IArgumentOperation> arguments, 280private static bool AnyArgument<TArg>(ImmutableArray<IArgumentOperation> arguments, Func<IArgumentOperation, TArg, bool> predicate, TArg arg) 297ImmutableArray<IArgumentOperation> arguments, 317ImmutableArray<IArgumentOperation> arguments,
Microsoft.NetCore.Analyzers\Runtime\ForwardCancellationTokenToInvocations.Fixer.cs (9)
34out ImmutableArray<TArgumentSyntax> arguments); 43protected abstract IEnumerable<SyntaxNode> GetExpressions(ImmutableArray<TArgumentSyntax> newArguments); 46public override ImmutableArray<string> FixableDiagnosticIds { get; } = 87ImmutableArray<TArgumentSyntax>.Builder currentArguments = ImmutableArray.CreateBuilder<TArgumentSyntax>(fix.Arguments.Length); 134if (!TryGetExpressionAndArguments(invocation.Syntax, out SyntaxNode? expression, out ImmutableArray<TArgumentSyntax> arguments)) 145private SyntaxNode GenerateInvocation(SyntaxGenerator generator, in Fix fix, SyntaxNode expression, ImmutableArray<TArgumentSyntax> currentArguments) 147ImmutableArray<SyntaxNode> newArguments; 179public Fix(IInvocationOperation invocation, SyntaxNode expression, ImmutableArray<TArgumentSyntax> arguments, 194public ImmutableArray<TArgumentSyntax> Arguments { get; }
Microsoft.NetCore.Analyzers\Runtime\InitializeStaticFieldsInline.cs (1)
48public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(CA1810Rule, CA2207Rule);
Microsoft.NetCore.Analyzers\Runtime\InstantiateArgumentExceptionsCorrectly.cs (1)
59public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(RuleNoArguments, RuleIncorrectMessage, RuleIncorrectParameterName);
Microsoft.NetCore.Analyzers\Runtime\InstantiateArgumentExceptionsCorrectly.Fixer.cs (1)
30public sealed override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(InstantiateArgumentExceptionsCorrectlyAnalyzer.RuleId);
Microsoft.NetCore.Analyzers\Runtime\LoggerMessageDefineAnalyzer.cs (1)
98public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(CA1727Rule, CA1848Rule, CA2253Rule, CA2254Rule, CA2017Rule, CA2023Rule);
Microsoft.NetCore.Analyzers\Runtime\MarkAllNonSerializableFields.Fixer.cs (1)
22public override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(SerializationRulesDiagnosticAnalyzer.RuleCA2235Id);
Microsoft.NetCore.Analyzers\Runtime\MarkISerializableTypesWithSerializable.Fixer.cs (1)
23public override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(SerializationRulesDiagnosticAnalyzer.RuleCA2237Id);
Microsoft.NetCore.Analyzers\Runtime\ModuleInitializerAttributeShouldNotBeUsedInLibraries.cs (1)
39public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
Microsoft.NetCore.Analyzers\Runtime\NormalizeStringsToUppercase.cs (1)
40public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(ToUpperRule);
Microsoft.NetCore.Analyzers\Runtime\PreferAsSpanOverSubstring.cs (3)
37public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule); 95internal static ImmutableArray<IMethodSymbol> GetBestSpanBasedOverloads(in RequiredSymbols symbols, IInvocationOperation invocation, CancellationToken cancellationToken) 113return ImmutableArray<IMethodSymbol>.Empty;
Microsoft.NetCore.Analyzers\Runtime\PreferAsSpanOverSubstring.Fixer.cs (2)
29public sealed override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(PreferAsSpanOverSubstring.RuleId); 46var bestCandidates = PreferAsSpanOverSubstring.GetBestSpanBasedOverloads(symbols, reportedInvocation, context.CancellationToken);
Microsoft.NetCore.Analyzers\Runtime\PreferConstCharOverConstUnitString.Fixer.cs (2)
24public sealed override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(PreferConstCharOverConstUnitStringAnalyzer.RuleId); 45ImmutableArray<Diagnostic> diagnostics = context.Diagnostics;
Microsoft.NetCore.Analyzers\Runtime\PreferConstCharOverConstUnitStringAnalyzer.cs (2)
35public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule); 73ImmutableArray<IArgumentOperation> arguments = invocationOperation.Arguments;
Microsoft.NetCore.Analyzers\Runtime\PreferDictionaryContainsMethods.cs (1)
51public sealed override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(ContainsKeyRule, ContainsValueRule);
Microsoft.NetCore.Analyzers\Runtime\PreferDictionaryContainsMethods.Fixer.cs (2)
18public sealed override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(PreferDictionaryContainsMethods.RuleId); 40ImmutableArray<Diagnostic> diagnostics = context.Diagnostics;
Microsoft.NetCore.Analyzers\Runtime\PreferJsonElementParse.cs (2)
34public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule); 53var jsonElementParseOverloads = jsonElementType.GetMembers("Parse")
Microsoft.NetCore.Analyzers\Runtime\PreferJsonElementParse.Fixer.cs (2)
25public sealed override ImmutableArray<string> FixableDiagnosticIds { get; } = 57ImmutableArray<SyntaxNode> arguments = invocation.Arguments.Select(argument => argument.Syntax).ToImmutableArray();
Microsoft.NetCore.Analyzers\Runtime\PreferStreamAsyncMemoryOverloads.cs (1)
64public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } =
Microsoft.NetCore.Analyzers\Runtime\PreferStreamAsyncMemoryOverloads.Fixer.cs (1)
53public sealed override ImmutableArray<string> FixableDiagnosticIds { get; } =
Microsoft.NetCore.Analyzers\Runtime\PreferStringContainsOverIndexOf.Fixer.cs (3)
22public sealed override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(PreferStringContainsOverIndexOfAnalyzer.RuleId); 52ImmutableArray<IArgumentOperation> indexOfMethodArguments = invocationOperation.Arguments; 56ImmutableArray<SyntaxNode> carriedOver = ImmutableArray.Create(instance).AddRange(indexOfMethodArguments.Select(argument => argument.Syntax));
Microsoft.NetCore.Analyzers\Runtime\PreferStringContainsOverIndexOfAnalyzer.cs (3)
35public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule); 51var stringIndexOfMethods = stringType 70var stringContainsMethods = stringType
Microsoft.NetCore.Analyzers\Runtime\PreferTypedStringBuilderAppendOverloads.cs (3)
34public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule); 53var appendMethods = stringBuilderType 60var insertMethods = stringBuilderType
Microsoft.NetCore.Analyzers\Runtime\PreferTypedStringBuilderAppendOverloads.Fixer.cs (2)
26public sealed override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(PreferTypedStringBuilderAppendOverloads.RuleId); 45ImmutableArray<Diagnostic> diagnostics = context.Diagnostics;
Microsoft.NetCore.Analyzers\Runtime\PreventNumericIntPtrUIntPtrBehavioralChanges.cs (1)
56public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(OperatorThrowsRule, ConversionThrowsRule, ConversionNotThrowRule);
Microsoft.NetCore.Analyzers\Runtime\ProvideCorrectArgumentsToFormattingMethods.cs (6)
48public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = 364public ImmutableArray<INamedTypeSymbol> StringSyntaxAttributes { get; } 458private static int GetExpectedNumberOfArguments(ImmutableArray<IParameterSymbol> parameters, int formatIndex) 477private static int FindParameterIndexByParameterName(ImmutableArray<IParameterSymbol> parameters, string name) 490private int FindParameterIndexOfCompositeFormatStringSyntaxAttribute(ImmutableArray<IParameterSymbol> parameters) 501ImmutableArray<TypedConstant> arguments = attribute.ConstructorArguments;
Microsoft.NetCore.Analyzers\Runtime\ProvideDeserializationMethodsForOptionalFields.cs (2)
42public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray<DiagnosticDescriptor>.Empty;
Microsoft.NetCore.Analyzers\Runtime\ProvideStreamMemoryBasedAsyncOverrides.cs (3)
36public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule); 154private static ImmutableArray<IMethodSymbol> GetOverloads(ITypeSymbol containingType, string methodName, params ITypeSymbol[] argumentTypes) 183private static ImmutableArray<IMethodSymbol> GetOverridingMethodSymbols(ITypeSymbol derivedType, IMethodSymbol overriddenMethod)
Microsoft.NetCore.Analyzers\Runtime\SealInternalTypes.cs (1)
32public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
Microsoft.NetCore.Analyzers\Runtime\SealInternalTypes.Fixer.cs (1)
58public override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(SealInternalTypes.RuleId);
Microsoft.NetCore.Analyzers\Runtime\SerializationRulesDiagnosticAnalyzer.cs (1)
48public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(RuleCA2235, RuleCA2237);
Microsoft.NetCore.Analyzers\Runtime\SpecifyCultureForToLowerAndToUpper.cs (1)
34public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
Microsoft.NetCore.Analyzers\Runtime\SpecifyCultureForToLowerAndToUpper.Fixer.cs (2)
19public override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(SpecifyCultureForToLowerAndToUpperAnalyzer.RuleId); 38ImmutableArray<Diagnostic> diagnostics = context.Diagnostics;
Microsoft.NetCore.Analyzers\Runtime\SpecifyCultureInfo.cs (1)
36public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
Microsoft.NetCore.Analyzers\Runtime\SpecifyIFormatProvider.cs (5)
80private static readonly ImmutableArray<string> s_dateInvariantFormats = ImmutableArray.Create("o", "O", "r", "R", "s", "u"); 82public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(IFormatProviderAlternateStringRule, IFormatProviderAlternateRule, IFormatProviderOptionalRule, UICultureStringRule, UICultureRule); 154var guidParseMethods = guidType?.GetMembers("Parse") ?? ImmutableArray<ISymbol>.Empty; 363private static bool IsValidParseCall(IInvocationOperation invocationOperation, ImmutableArray<ISymbol> guidParseMethods)
Microsoft.NetCore.Analyzers\Runtime\SpecifyStringComparison.cs (2)
27private static readonly ImmutableArray<string> s_CA1310MethodNamesWithFirstStringParameter = 50public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule_CA1307, Rule_CA1310);
Microsoft.NetCore.Analyzers\Runtime\TestForEmptyStringsUsingStringLength.cs (1)
43public sealed override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(s_rule);
Microsoft.NetCore.Analyzers\Runtime\TestForEmptyStringsUsingStringLength.Fixer.cs (2)
26public sealed override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(TestForEmptyStringsUsingStringLengthAnalyzer.RuleId); 59ImmutableArray<Diagnostic> diagnostics = context.Diagnostics;
Microsoft.NetCore.Analyzers\Runtime\TestForNaNCorrectly.cs (1)
34public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
Microsoft.NetCore.Analyzers\Runtime\TestForNaNCorrectly.Fixer.cs (1)
21public sealed override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(TestForNaNCorrectlyAnalyzer.RuleId);
Microsoft.NetCore.Analyzers\Runtime\UseAsyncMethodInAsyncContext.cs (6)
53public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Descriptor, DescriptorNoAlternativeMethod); 95ImmutableArray<IMethodSymbol> semaphoreSlimWaitWithTimeoutMethods = semaphoreSlimType 101.ToImmutableArray() ?? ImmutableArray<IMethodSymbol>.Empty; 103ImmutableArray<IMethodSymbol> excludedMethods = GetExcludedMethods(wellKnownTypeProvider); 170private static bool IsSemaphoreSlimWaitWithZeroArgumentInvocation(IInvocationOperation invocation, IFieldSymbol? timeSpanZero, ImmutableArray<IMethodSymbol> semaphoreSlimWaitWithTimeoutMethods) 229private static ImmutableArray<IMethodSymbol> GetExcludedMethods(WellKnownTypeProvider wellKnownTypeProvider)
Microsoft.NetCore.Analyzers\Runtime\UseCancellationTokenThrowIfCancellationRequested.cs (1)
35public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
Microsoft.NetCore.Analyzers\Runtime\UseCancellationTokenThrowIfCancellationRequested.Fixer.cs (1)
29public override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(UseCancellationTokenThrowIfCancellationRequested.RuleId);
Microsoft.NetCore.Analyzers\Runtime\UseEnvironmentMembers.cs (1)
58public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(UseEnvironmentProcessIdRule, UseEnvironmentProcessPathRule, UseEnvironmentCurrentManagedThreadIdRule);
Microsoft.NetCore.Analyzers\Runtime\UseEnvironmentMembersFixer.cs (1)
23public sealed override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(
Microsoft.NetCore.Analyzers\Runtime\UseExceptionThrowHelpers.cs (6)
82public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create( 235ImmutableArray<Location> additionalLocations = ImmutableArray<Location>.Empty; 290ImmutableArray<Location> additionalLocations = ImmutableArray.Create(condition.Condition.Syntax.GetLocation()); 322ImmutableArray<IArgumentOperation> args = creationOperation.Arguments; 332ImmutableArray<IArgumentOperation> args = objectCreationOperation.Arguments;
Microsoft.NetCore.Analyzers\Runtime\UseExceptionThrowHelpersFixer.cs (2)
21public sealed override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create( 132protected override async Task<Document?> FixAllAsync(FixAllContext fixAllContext, Document document, ImmutableArray<Diagnostic> diagnostics)
Microsoft.NetCore.Analyzers\Runtime\UseOrdinalStringComparison.cs (1)
43public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
Microsoft.NetCore.Analyzers\Runtime\UseOrdinalStringComparison.Fixer.cs (2)
19public sealed override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(UseOrdinalStringComparisonAnalyzer.RuleId); 123ImmutableArray<IParameterSymbol> parameters = methodSymbol.Parameters;
Microsoft.NetCore.Analyzers\Runtime\UseRegexMembers.cs (9)
46public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create( 67var regexMatchSymbols = regexType.GetMembers("Match"); 68var regexMatchesSymbols = regexType.GetMembers("Matches"); 69var regexIsMatchSymbols = regexType.GetMembers("IsMatch"); 70var regexCountSymbols = regexType.GetMembers("Count"); 120static bool HasMatchingOverload(ISymbol target, ImmutableArray<ISymbol> overloads) 122ImmutableArray<IParameterSymbol> targetParameters = target.GetParameters(); 135static bool ParameterTypesMatch(ImmutableArray<IParameterSymbol> left, ImmutableArray<IParameterSymbol> right)
Microsoft.NetCore.Analyzers\Runtime\UseRegexMembersFixer.cs (3)
29public sealed override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create( 53ImmutableArray<Diagnostic> diagnostics = context.Diagnostics; 85ImmutableArray<SyntaxNode> arguments = regexCall.Arguments.Select(argument => argument.Syntax).ToImmutableArray();
Microsoft.NetCore.Analyzers\Runtime\UseSpanBasedStringConcat.cs (4)
46public sealed override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule); 76var concatOperands = FlattenBinaryOperation(topMostConcatOperation); 111internal static ImmutableArray<IOperation> FlattenBinaryOperation(IBinaryOperation root) 125public ImmutableArray<IOperation>.Builder Operands { get; } = ImmutableArray.CreateBuilder<IOperation>();
Microsoft.NetCore.Analyzers\Runtime\UseSpanBasedStringConcat.Fixer.cs (4)
34public sealed override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(UseSpanBasedStringConcat.RuleId); 53if (!TryGetConcatOperands(model, concatExpressionSyntax, cancellationToken, out var symbols, out var operands, out var roscharConcatMethod)) 109out ImmutableArray<IOperation> operands, 112operands = ImmutableArray<IOperation>.Empty;
Microsoft.NetCore.Analyzers\Runtime\UseStringEqualsOverStringCompare.cs (2)
43public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule); 332private static readonly ImmutableArray<Func<IOperation, RequiredSymbols, bool>> CaseSelectors =
Microsoft.NetCore.Analyzers\Runtime\UseStringEqualsOverStringCompare.Fixer.cs (2)
28public override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(UseStringEqualsOverStringCompare.RuleId); 82private static ImmutableArray<OperationReplacer> GetOperationReplacers(RequiredSymbols symbols)
Microsoft.NetCore.Analyzers\Runtime\UseThreadStaticCorrectly.cs (1)
47public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(ThreadStaticOnNonStaticFieldRule, ThreadStaticInitializedInlineRule);
Microsoft.NetCore.Analyzers\Security\ApprovedCipherModeAnalyzer.cs (1)
34public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
Microsoft.NetCore.Analyzers\Security\DataSetDataTableInIFormatterSerializableObjectGraphAnalyzer.cs (2)
35public sealed override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = 122out ImmutableArray<InsecureObjectGraphResult> results))
Microsoft.NetCore.Analyzers\Security\DataSetDataTableInSerializableObjectGraphAnalyzer.cs (2)
45public sealed override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = 291out ImmutableArray<InsecureObjectGraphResult> results))
Microsoft.NetCore.Analyzers\Security\DataSetDataTableInSerializableTypeAnalyzer.cs (2)
60public sealed override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = 171out ImmutableArray<InsecureObjectGraphResult> results))
Microsoft.NetCore.Analyzers\Security\DataSetDataTableInWebSerializableObjectGraphAnalyzer.cs (2)
35public sealed override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = 114out ImmutableArray<InsecureObjectGraphResult> results))
Microsoft.NetCore.Analyzers\Security\DoNotAddSchemaByURL.cs (1)
33public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
Microsoft.NetCore.Analyzers\Security\DoNotAlwaysSkipTokenValidationInDelegates.cs (4)
36public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule); 117var targetOperations = blockOperation.Descendants().ToImmutableArray().WithoutFullyImplicitOperations(); 149var parameters = methodSymbol.Parameters; 177var parameters = methodSymbol.Parameters;
Microsoft.NetCore.Analyzers\Security\DoNotCallDangerousMethodsInDeserialization.cs (4)
28private ImmutableArray<(string, string[])> DangerousCallable = ImmutableArray.Create<(string, string[])> 49public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule); 114var attributeTypeSymbols = attributeTypeSymbolsBuilder.ToImmutable(); 206var parameters = methodSymbol.GetParameters();
Microsoft.NetCore.Analyzers\Security\DoNotDisableCertificateValidation.cs (3)
34public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule); 109var targetOperations = blockOperation.Descendants().ToImmutableArray().WithoutFullyImplicitOperations(); 133var parameters = methodSymbol.Parameters;
Microsoft.NetCore.Analyzers\Security\DoNotDisableHttpClientCRLCheck.cs (1)
51public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } =
Microsoft.NetCore.Analyzers\Security\DoNotDisableHttpHeaderChecking.cs (1)
33public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
Microsoft.NetCore.Analyzers\Security\DoNotDisableRequestValidation.cs (2)
32public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule); 77var constructorArguments = attr.ConstructorArguments;
Microsoft.NetCore.Analyzers\Security\DoNotDisableTokenValidationChecks.cs (2)
22private static readonly ImmutableArray<string> PropertiesWhichShouldNotBeFalse = ImmutableArray.Create( 40public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
Microsoft.NetCore.Analyzers\Security\DoNotInstallRootCert.cs (1)
52public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(
Microsoft.NetCore.Analyzers\Security\DoNotSerializeTypeWithPointerFields.cs (1)
35public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
Microsoft.NetCore.Analyzers\Security\DoNotSetSwitch.cs (1)
60public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(
Microsoft.NetCore.Analyzers\Security\DoNotUseAccountSAS.cs (1)
33public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
Microsoft.NetCore.Analyzers\Security\DoNotUseCreateEncryptorWithNonDefaultIV.cs (1)
50public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(
Microsoft.NetCore.Analyzers\Security\DoNotUseDataSetReadXml.cs (1)
42public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } =
Microsoft.NetCore.Analyzers\Security\DoNotUseDeprecatedSecurityProtocols.cs (1)
53public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(DeprecatedRule, HardCodedRule);
Microsoft.NetCore.Analyzers\Security\DoNotUseDSA.cs (2)
41public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule); 125var arguments = invocationOperation.Arguments;
Microsoft.NetCore.Analyzers\Security\DoNotUseInsecureCryptographicAlgorithms.cs (1)
49public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(DoNotUseBrokenCryptographyRule, DoNotUseWeakCryptographyRule);
Microsoft.NetCore.Analyzers\Security\DoNotUseInsecureDeserializerJavascriptSerializerWithSimpleTypeResolver.cs (1)
53public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } =
Microsoft.NetCore.Analyzers\Security\DoNotUseInsecureDeserializerJsonNetWithoutBinder.cs (1)
55public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } =
Microsoft.NetCore.Analyzers\Security\DoNotUseInsecureDeserializerMethodsBase.cs (1)
57public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics =>
Microsoft.NetCore.Analyzers\Security\DoNotUseInsecureDeserializerWithoutBinderBase.cs (1)
58public sealed override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics =>
Microsoft.NetCore.Analyzers\Security\DoNotUseInsecureRandomness.cs (1)
33public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
Microsoft.NetCore.Analyzers\Security\DoNotUseInsecureSettingsForJsonNet.cs (1)
54public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } =
Microsoft.NetCore.Analyzers\Security\DoNotUseObsoleteKDFAlgorithm.cs (1)
33public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
Microsoft.NetCore.Analyzers\Security\DoNotUseWeakKDFAlgorithm.cs (1)
34public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
Microsoft.NetCore.Analyzers\Security\DoNotUseWeakKDFInsufficientIterationCount.cs (1)
53public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(
Microsoft.NetCore.Analyzers\Security\DoNotUseXslTransform.cs (1)
33public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
Microsoft.NetCore.Analyzers\Security\Helpers\InsecureDeserializationTypeDecider.cs (6)
166private readonly ConcurrentDictionary<(ITypeSymbol, ObjectGraphOptions), ImmutableArray<InsecureObjectGraphResult>> IsObjectGraphInsecureCache = 181out ImmutableArray<InsecureObjectGraphResult> results) 187results = ImmutableArray<InsecureObjectGraphResult>.Empty; 195ImmutableArray<InsecureObjectGraphResult> Compute((ITypeSymbol, ObjectGraphOptions) _) 197ImmutableArray<InsecureObjectGraphResult>.Builder resultBuilder = 209ImmutableArray<InsecureObjectGraphResult>.Builder resultBuilder)
Microsoft.NetCore.Analyzers\Security\JsonNetTypeNameHandling.cs (1)
36public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } =
Microsoft.NetCore.Analyzers\Security\PotentialReferenceCycleInDeserializedObjectGraph.cs (1)
36public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
Microsoft.NetCore.Analyzers\Security\SetHttpOnlyForHttpCookie.cs (1)
38public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } =
Microsoft.NetCore.Analyzers\Security\SetViewStateUserKey.cs (1)
34public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
Microsoft.NetCore.Analyzers\Security\SourceTriggeredTaintedDataAnalyzerBase.cs (1)
45public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(TaintedDataEnteringSinkDescriptor);
Microsoft.NetCore.Analyzers\Security\SslProtocolsAnalyzer.cs (1)
54public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(DeprecatedRule, HardcodedRule);
Microsoft.NetCore.Analyzers\Security\UseAutoValidateAntiforgeryToken.cs (2)
62public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create( 93var httpVerbAttributeTypeSymbolsAbleToModify = HttpVerbAttributesMarkingOnActionModifyingMethods.Select(
Microsoft.NetCore.Analyzers\Security\UseContainerLevelAccessPolicy.cs (2)
38internal static ImmutableArray<(string nspace, string policyIdentifierName)> NamespaceAndPolicyIdentifierNamePairs = ImmutableArray.Create( 44public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
Microsoft.NetCore.Analyzers\Security\UseDefaultDllImportSearchPathsAttribute.cs (2)
51public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create( 115var constructorArguments = primaryAttribute.ConstructorArguments;
Microsoft.NetCore.Analyzers\Security\UseRSAWithSufficientKeySize.cs (3)
43public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule); 87var arguments = objectCreationOperation.Arguments; 114var arguments = invocationOperation.Arguments;
Microsoft.NetCore.Analyzers\Security\UseSecureCookiesASPNetCore.cs (1)
50public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(
Microsoft.NetCore.Analyzers\Security\UseSharedAccessProtocolHttpsOnly.cs (1)
37public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
Microsoft.NetCore.Analyzers\Security\UseXmlReaderBase.cs (1)
30public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(Rule);
Microsoft.NetCore.Analyzers\Tasks\DoNotConfigureAwaitWithSuppressThrowing.cs (1)
33public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
Microsoft.NetCore.Analyzers\Tasks\DoNotCreateTaskCompletionSourceWithWrongArguments.cs (2)
32public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule); 71IConversionOperation? MatchInvalidContinuationOptions(IMethodSymbol? targetMethod, ImmutableArray<IArgumentOperation> arguments) =>
Microsoft.NetCore.Analyzers\Tasks\DoNotCreateTaskCompletionSourceWithWrongArguments.Fixer.cs (1)
24public sealed override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(DoNotCreateTaskCompletionSourceWithWrongArguments.RuleId);
Microsoft.NetCore.Analyzers\Tasks\DoNotCreateTasksWithoutPassingATaskScheduler.cs (1)
34public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
Microsoft.NetCore.Analyzers\Tasks\DoNotUseNonCancelableTaskDelayWithWhenAny.cs (1)
32public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
Microsoft.NetCore.Analyzers\Tasks\DoNotUseWhenAllOrWaitAllWithSingleArgument.cs (2)
46public sealed override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(WhenAllRule, WaitAllRule); 87var parameters = targetMethod.Parameters;
Microsoft.NetCore.Analyzers\Tasks\DoNotUseWhenAllOrWaitAllWithSingleArgumentFixer.cs (1)
19public override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(
Microsoft.NetCore.Analyzers\Tasks\UseValueTasksCorrectly.cs (2)
72public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(GeneralRule, UnconsumedRule, DoubleConsumptionRule, AccessingIncompleteResultRule); 494var operations = block.Operations;
Microsoft.NetCore.Analyzers\Usage\DoNotCompareSpanToNull.cs (1)
84public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(DoNotCompareSpanToNullRule, DoNotCompareSpanToDefaultRule);
Microsoft.NetCore.Analyzers\Usage\DoNotCompareSpanToNull.Fixer.cs (1)
18public override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(DoNotCompareSpanToNullAnalyzer.RuleId);
Microsoft.NetCore.Analyzers\Usage\DoNotPassNonNullableValueToArgumentNullExceptionThrowIfNull.cs (1)
79public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(DoNotPassNonNullableValueDiagnostic, DoNotPassNullableStructDiagnostic);
Microsoft.NetCore.Analyzers\Usage\DoNotPassNonNullableValueToArgumentNullExceptionThrowIfNull.Fixer.cs (2)
23public override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create( 56ImmutableArray<Diagnostic> diagnostics = ImmutableArray.Create(diagnostic);
Microsoft.NetCore.Analyzers\Usage\ImplementGenericMathInterfacesCorrectly.cs (1)
38public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(GMIRule);
Microsoft.NetCore.Analyzers\Usage\MissingShebangInFileBasedProgram.cs (1)
28public sealed override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
Microsoft.NetCore.Analyzers\Usage\MissingShebangInFileBasedProgram.Fixer.cs (1)
11public override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(MissingShebangInFileBasedProgram.RuleId);
Microsoft.NetCore.Analyzers\Usage\PreferGenericOverloads.cs (9)
35public sealed override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule); 145ImmutableArray<ITypeSymbol> typeArguments, 146ImmutableArray<IArgumentOperation> otherArguments) 157var argumentsInParameterOrder = invocation.Arguments.GetArgumentsInParameterOrder(); 158var typeOfArguments = argumentsInParameterOrder.WhereAsArray(a => a.Value is ITypeOfOperation); 167var typeArguments = typeOfArguments 180var otherArguments = argumentsInParameterOrder.RemoveRange(typeOfArguments); 188public ImmutableArray<ITypeSymbol> TypeArguments { get; } 189public ImmutableArray<IArgumentOperation> OtherArguments { get; }
Microsoft.NetCore.Analyzers\Usage\PreferGenericOverloads.Fixer.cs (1)
21public sealed override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(RuleId);
Microsoft.NetCore.Analyzers\Usage\ProvideCorrectArgumentToEnumHasFlag.cs (1)
33public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(DifferentTypeRule);
Microsoft.NetCore.Analyzers\Usage\ProvideHttpClientHandlerMaxResponseHeaderLengthValueCorrectly.cs (4)
36public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(EnsureMaxResponseHeaderLengthRule); 60ImmutableArray<ISymbol> symbols = ImmutableArray.Create(httpClientHandlerPropSymbol, socketClientHandlerPropSymbol); 65private static void AnalyzeSimpleAssignmentOperationAndCreateDiagnostic(OperationAnalysisContext context, ImmutableArray<ISymbol> propSymbols) 86private static bool IsValidPropertyAssignmentOperation(ISimpleAssignmentOperation operation, ImmutableArray<ISymbol> propSymbols)
Microsoft.NetCore.Analyzers\Usage\UseVolatileReadWrite.Fixer.cs (8)
27public sealed override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create("SYSLIB0054"); 55ImmutableArray<IParameterSymbol> parameters; 70var originalArguments = GetArguments(invocation.Syntax); 71var sourceIndices = invocation.Arguments.Select(argument => originalArguments.IndexOf(argument.Syntax)).ToImmutableArray(); 72var parameterNames = invocation.Arguments.Select(argument => parameters[argument.Parameter!.Ordinal].Name).ToImmutableArray(); 84var currentArguments = GetArguments(currentNode); 91protected abstract ImmutableArray<SyntaxNode> GetArguments(SyntaxNode invocationSyntax); 114var obsoleteMethods = obsoleteMethodsBuilder.ToImmutable();
Microsoft.NetFramework.Analyzers\AvoidDuplicateAccelerators.cs (2)
28public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray<DiagnosticDescriptor>.Empty;
Microsoft.NetFramework.Analyzers\CallBaseClassMethodsOnISerializableTypes.cs (2)
28public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray<DiagnosticDescriptor>.Empty;
Microsoft.NetFramework.Analyzers\DoNotCatchCorruptedStateExceptions.cs (1)
30public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
Microsoft.NetFramework.Analyzers\DoNotMarkServicedComponentsWithWebMethod.cs (2)
28public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray<DiagnosticDescriptor>.Empty;
Microsoft.NetFramework.Analyzers\DoNotUseInsecureDtdProcessing.cs (2)
66public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } 251private void AnalyzeMethodOverloads(OperationAnalysisContext context, IMethodSymbol method, ImmutableArray<IArgumentOperation> arguments, SyntaxNode expressionSyntax)
Microsoft.NetFramework.Analyzers\DoNotUseInsecureDtdProcessingInApiDesign.cs (1)
39public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } =
Microsoft.NetFramework.Analyzers\DoNotUseInsecureXSLTScriptExecution.cs (6)
37public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(RuleDoNotUseInsecureXSLTScriptExecution); 114ImmutableArray<IArgumentOperation> arguments, Action<TContext, Diagnostic> reportDiagnostic, TContext context) 236var arguments = rhs.Kind switch 240_ => ImmutableArray<IArgumentOperation>.Empty, 247var initializers = (rhs as IObjectCreationOperation)?.Initializer?.Initializers 248?? ImmutableArray<IOperation>.Empty;
Microsoft.NetFramework.Analyzers\MarkVerbHandlersWithValidateAntiforgeryTokenAnalyzer.cs (2)
74public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(NoVerbsRule, NoVerbsNoTokenRule, GetAndTokenRule, GetAndOtherAndTokenRule, VerbsAndNoTokenRule); 116ImmutableArray<AttributeData> methodAttributes = methodSymbol.GetAttributes();
Microsoft.NetFramework.Analyzers\MarkVerbHandlersWithValidateAntiforgeryTokenAnalyzer.MvcAttributeSymbols.cs (1)
53ImmutableArray<AttributeData> attributeDatas,
Microsoft.NetFramework.Analyzers\SetLocaleForDataTypes.cs (2)
28public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray<DiagnosticDescriptor>.Empty;
Microsoft.NetFramework.Analyzers\TypesShouldNotExtendCertainBaseTypes.cs (1)
36public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
src\11b41c7305441175\PropertySetAbstractValue.cs (4)
55public static PropertySetAbstractValue GetInstance(ImmutableArray<PropertySetAbstractValueKind> propertyAbstractValues) 100private PropertySetAbstractValue(ImmutableArray<PropertySetAbstractValueKind> propertyAbstractValues) 107this.KnownPropertyAbstractValues = ImmutableArray<PropertySetAbstractValueKind>.Empty; 116private ImmutableArray<PropertySetAbstractValueKind> KnownPropertyAbstractValues { get; }
src\11b41c7305441175\PropertySetAnalysis.PropertySetDataFlowOperationVisitor.cs (5)
132protected override void SetAbstractValueForArrayElementInitializer(IArrayCreationOperation arrayCreation, ImmutableArray<AbstractIndex> indices, ITypeSymbol elementType, IOperation initializer, PropertySetAbstractValue value) 453public override PropertySetAbstractValue VisitInvocation_NonLambdaOrDelegateOrLocalFunction(IMethodSymbol method, IOperation? visitedInstance, ImmutableArray<IArgumentOperation> visitedArguments, bool invokedAsDelegate, IOperation originalOperation, PropertySetAbstractValue defaultValue) 511ImmutableArray<IArgumentOperation> visitedArguments, 632public override PropertySetAbstractValue VisitInvocation_LocalFunction(IMethodSymbol localFunction, ImmutableArray<IArgumentOperation> visitedArguments, IOperation originalOperation, PropertySetAbstractValue defaultValue) 640public override PropertySetAbstractValue VisitInvocation_Lambda(IFlowAnonymousFunctionOperation lambda, ImmutableArray<IArgumentOperation> visitedArguments, IOperation originalOperation, PropertySetAbstractValue defaultValue)
src\40daf5e1cab76dff\PooledHashSetExtensions.cs (1)
85ImmutableArray<string> dependencyFullTypeNames,
src\40daf5e1cab76dff\TaintedDataAnalysis.TaintedDataOperationVisitor.cs (7)
42public ImmutableArray<TaintedDataSourceSink> GetTaintedDataSourceSinkEntries() 44ImmutableArray<TaintedDataSourceSink>.Builder builder = ImmutableArray.CreateBuilder<TaintedDataSourceSink>(); 262ImmutableArray<IArgumentOperation> visitedArguments, 421public override TaintedDataAbstractValue VisitInvocation_LocalFunction(IMethodSymbol localFunction, ImmutableArray<IArgumentOperation> visitedArguments, IOperation originalOperation, TaintedDataAbstractValue defaultValue) 435public override TaintedDataAbstractValue VisitInvocation_Lambda(IFlowAnonymousFunctionOperation lambda, ImmutableArray<IArgumentOperation> visitedArguments, IOperation originalOperation, TaintedDataAbstractValue defaultValue) 629ImmutableArray<IArgumentOperation> arguments, 751private IEnumerable<IArgumentOperation> GetTaintedArguments(ImmutableArray<IArgumentOperation> arguments)
src\40daf5e1cab76dff\TaintedDataAnalysisResult.cs (2)
16ImmutableArray<TaintedDataSourceSink> taintedDataSourceSinks) 22public ImmutableArray<TaintedDataSourceSink> TaintedDataSourceSinks { get; }
src\40daf5e1cab76dff\TaintedDataSymbolMapExtensions.cs (2)
36ImmutableArray<IArgumentOperation> arguments, 184ImmutableArray<IArgumentOperation> arguments,
src\440320f3f10733a8\ValueContentAnalysis.cs (2)
55ImmutableArray<INamedTypeSymbol> additionalSupportedValueTypes = default, 89ImmutableArray<INamedTypeSymbol> additionalSupportedValueTypes = default,
src\440320f3f10733a8\ValueContentAnalysis.ValueContentDataFlowOperationVisitor.cs (1)
272ImmutableArray<IArgumentOperation> visitedArguments,
src\440320f3f10733a8\ValueContentAnalysisContext.cs (4)
34ImmutableArray<INamedTypeSymbol> additionalSupportedValueTypes, 44AdditionalSupportedValueTypes = additionalSupportedValueTypes.IsDefault ? ImmutableArray<INamedTypeSymbol>.Empty : additionalSupportedValueTypes; 48public ImmutableArray<INamedTypeSymbol> AdditionalSupportedValueTypes { get; } 62ImmutableArray<INamedTypeSymbol> additionalSupportedValueTypes,
src\47c588c5b8785708\ParameterValidationAnalysis.ParameterValidationDataFlowOperationVisitor.cs (5)
109protected override void SetAbstractValueForArrayElementInitializer(IArrayCreationOperation arrayCreation, ImmutableArray<AbstractIndex> indices, ITypeSymbol elementType, IOperation initializer, ParameterValidationAbstractValue value) 251ImmutableArray<IArgumentOperation> visitedArguments, 263ImmutableArray<IArgumentOperation> visitedArguments, 274ImmutableArray<IArgumentOperation> visitedArguments, 283private void ProcessRegularInvocationOrCreation(IMethodSymbol? targetMethod, ImmutableArray<IArgumentOperation> arguments, IOperation operation)
src\8ce1f4f68b646e6d\GlobalFlowStateAnalysis.cs (2)
68ImmutableArray<INamedTypeSymbol> additionalSupportedValueTypes = default, 98ImmutableArray<INamedTypeSymbol> additionalSupportedValueTypes = default,
src\8ce1f4f68b646e6d\GlobalFlowStateDataFlowOperationVisitor.cs (1)
63ImmutableArray<AbstractIndex>.Empty,
src\8ce1f4f68b646e6d\GlobalFlowStateValueSetFlowOperationVisitor.cs (1)
110ImmutableArray<IArgumentOperation> visitedArguments,
src\9382845807600969\AbstractLocationDataFlowOperationVisitor.cs (1)
123var keys = currentAnalysisData.Keys.ToImmutableArray();
src\9382845807600969\AnalysisEntityBasedPredicateAnalysisData.cs (1)
138var keys = CoreAnalysisData.Keys.ToImmutableArray();
src\9382845807600969\AnalysisEntityDataFlowOperationVisitor.cs (3)
93var keys = currentAnalysisData.Keys.ToImmutableArray(); 209protected override void SetAbstractValueForArrayElementInitializer(IArrayCreationOperation arrayCreation, ImmutableArray<AbstractIndex> indices, ITypeSymbol elementType, IOperation initializer, TAbstractAnalysisValue value) 766AnalysisEntityFactory.TryCreateForTupleElements(tupleOperation, out var tupleElementEntities))
src\9382845807600969\InterproceduralAnalysisConfiguration.cs (2)
82ImmutableArray<DiagnosticDescriptor> rules, 93ImmutableArray<DiagnosticDescriptor> rules,
src\afc74d572e54ec72\DisposeAnalysis.DisposeDataFlowOperationVisitor.cs (2)
149protected override void SetAbstractValueForArrayElementInitializer(IArrayCreationOperation arrayCreation, ImmutableArray<AbstractIndex> indices, ITypeSymbol elementType, IOperation initializer, DisposeAbstractValue value) 257ImmutableArray<IArgumentOperation> visitedArguments,
src\ffd9070534249528\PointsToAnalysis.PointsToDataFlowOperationVisitor.cs (4)
737protected override void SetAbstractValueForArrayElementInitializer(IArrayCreationOperation arrayCreation, ImmutableArray<AbstractIndex> indices, ITypeSymbol elementType, IOperation initializer, PointsToAbstractValue value) 940ImmutableArray<IArgumentOperation> visitedArguments, 1025ImmutableArray<IArgumentOperation> visitedArguments, 1035ImmutableArray<IArgumentOperation> visitedArguments,
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\AdditionalFileProvider.cs (2)
21private readonly ImmutableArray<AdditionalText> _additionalFiles; 23internal AdditionalFileProvider(ImmutableArray<AdditionalText> additionalFiles)
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.AssemblyMetricData.cs (5)
26ImmutableArray<CodeAnalysisMetricData> children) 34ImmutableArray<CodeAnalysisMetricData> children = await ComputeAsync(GetChildSymbols(assembly), context).ConfigureAwait(false); 40ImmutableArray<CodeAnalysisMetricData> children = ComputeSynchronously(GetChildSymbols(assembly), context); 44private static AssemblyMetricData ComputeFromChildren(IAssemblySymbol assembly, ImmutableArray<CodeAnalysisMetricData> children, CodeMetricsAnalysisContext context) 73private static ImmutableArray<INamespaceOrTypeSymbol> GetChildSymbols(IAssemblySymbol assembly)
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.cs (4)
34ImmutableArray<CodeAnalysisMetricData> children) 113public ImmutableArray<CodeAnalysisMetricData> Children { get; } 324internal static async Task<ImmutableArray<CodeAnalysisMetricData>> ComputeAsync(IEnumerable<ISymbol> children, CodeMetricsAnalysisContext context) 332internal static ImmutableArray<CodeAnalysisMetricData> ComputeSynchronously(IEnumerable<ISymbol> children, CodeMetricsAnalysisContext context)
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.EventMetricData.cs (3)
23ImmutableArray<CodeAnalysisMetricData> children) 32ImmutableArray<SyntaxReference> declarations = @event.DeclaringSyntaxReferences; 38ImmutableArray<CodeAnalysisMetricData> children = ComputeSynchronously(GetAccessors(@event), context);
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.FieldMetricData.cs (2)
24linesOfCode, cyclomaticComplexity, depthOfInheritance, children: ImmutableArray<CodeAnalysisMetricData>.Empty) 31ImmutableArray<SyntaxReference> declarations = field.DeclaringSyntaxReferences;
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.MethodMetricData.cs (2)
24linesOfCode, cyclomaticComplexity, depthOfInheritance, children: ImmutableArray<CodeAnalysisMetricData>.Empty) 31ImmutableArray<SyntaxReference> declarations = method.DeclaringSyntaxReferences;
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.NamedTypeMetricData.cs (5)
26ImmutableArray<CodeAnalysisMetricData> children) 36ImmutableArray<CodeAnalysisMetricData> children = await ComputeAsync(members, context).ConfigureAwait(false); 45ImmutableArray<CodeAnalysisMetricData> children = ComputeSynchronously(members, context); 66private static NamedTypeMetricData ComputeFromChildren(INamedTypeSymbol namedType, ImmutableArray<CodeAnalysisMetricData> children, CodeMetricsAnalysisContext context) 69ImmutableArray<SyntaxReference> declarations = namedType.DeclaringSyntaxReferences;
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.NamespaceMetricData.cs (5)
25ImmutableArray<CodeAnalysisMetricData> children) 33ImmutableArray<CodeAnalysisMetricData> children = await ComputeAsync(GetChildSymbols(@namespace), context).ConfigureAwait(false); 39ImmutableArray<CodeAnalysisMetricData> children = ComputeSynchronously(GetChildSymbols(@namespace), context); 43private static NamespaceMetricData ComputeFromChildren(INamespaceSymbol @namespace, ImmutableArray<CodeAnalysisMetricData> children, CodeMetricsAnalysisContext context) 73private static ImmutableArray<INamespaceOrTypeSymbol> GetChildSymbols(INamespaceSymbol @namespace)
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.PropertyMetricData.cs (3)
23ImmutableArray<CodeAnalysisMetricData> children) 32ImmutableArray<SyntaxReference> declarations = property.DeclaringSyntaxReferences; 39ImmutableArray<CodeAnalysisMetricData> children = ComputeSynchronously(GetAccessors(property), context);
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (7)
55ImmutableArray<IParameterSymbol> parameters) 63internal static long GetLinesOfCode(ImmutableArray<SyntaxReference> declarations, ISymbol symbol, CodeMetricsAnalysisContext context) 193ImmutableArray<SyntaxReference> declarations, 210var parameters = GetParameters(symbol); 221var attributes = symbol.GetAttributes(); 410internal static ImmutableArray<IParameterSymbol> GetParameters(this ISymbol member) 416_ => ImmutableArray<IParameterSymbol>.Empty,
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\Extensions\CompilationExtensions.cs (2)
44var guids = propertyValue.Split(';').Select(g => g.Trim()).ToImmutableArray(); 53public static ImmutableArray<INamedTypeSymbol> GetTypesByMetadataName(this Compilation compilation, string fullyQualifiedMetadataName)
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\Extensions\DiagnosticExtensions.cs (5)
27=> node.CreateDiagnostic(rule, additionalLocations: ImmutableArray<Location>.Empty, properties, args); 32ImmutableArray<Location> additionalLocations, 61ImmutableArray<Location> additionalLocations, 108=> location.CreateDiagnostic(rule, ImmutableArray<Location>.Empty, properties, args); 113ImmutableArray<Location> additionalLocations,
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\Extensions\IEnumerableExtensions.cs (3)
66return ImmutableArray<T>.Empty; 72public static ImmutableArray<TSource> WhereAsArray<TSource>(this IEnumerable<TSource> source, Func<TSource, bool> selector) 91return ImmutableArray<TSource>.Empty;
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\Extensions\IMethodSymbolExtensions.cs (2)
803public static ImmutableArray<IMethodSymbol> GetOriginalDefinitions(this IMethodSymbol methodSymbol) 805ImmutableArray<IMethodSymbol>.Builder originalDefinitionsBuilder = ImmutableArray.CreateBuilder<IMethodSymbol>();
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\Extensions\ImmutableArrayExtensions.cs (9)
14public static int Count<TSource>(this ImmutableArray<TSource> source) => source.Length; 20/// <param name="source">The <see cref="ImmutableArray{TSource}"/> to check for cardinality.</param> 23public static bool HasExactly<TSource>(this ImmutableArray<TSource> source, int count) => source.Length == count; 29/// <param name="source">The <see cref="ImmutableArray{TSource}"/> to check for cardinality.</param> 32public static bool HasMoreThan<TSource>(this ImmutableArray<TSource> source, int count) => source.Length > count; 38/// <param name="source">The <see cref="ImmutableArray{TSource}"/> to check for cardinality.</param> 41public static bool HasFewerThan<TSource>(this ImmutableArray<TSource> source, int count) => source.Length < count; 48/// <param name="array">The <see cref="Immutable.ImmutableArray{T}"/> whose elements to apply the predicate to.</param> 52public static bool Any<T, TArg>(this ImmutableArray<T> array, Func<T, TArg, bool> predicate, TArg arg)
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\Extensions\IOperationExtensions.cs (12)
130public static ImmutableArray<IOperation> WithoutFullyImplicitOperations(this ImmutableArray<IOperation> operations) 132ImmutableArray<IOperation>.Builder? builder = null; 160public static ImmutableArray<IOperation> GetTopmostExplicitDescendants(this IOperation operation) 280public static IOperation? GetAncestor(this IOperation root, ImmutableArray<OperationKind> ancestorKinds, Func<IOperation, bool>? predicate = null) 353public static bool HasAnyOperationDescendant(this ImmutableArray<IOperation> operationBlocks, Func<IOperation, bool> predicate) 386public static bool HasAnyOperationDescendant(this ImmutableArray<IOperation> operationBlocks, OperationKind kind) 551private static readonly ImmutableArray<OperationKind> s_LambdaAndLocalFunctionKinds = 851this ImmutableArray<IArgumentOperation> arguments, 872this ImmutableArray<IArgumentOperation> arguments, 888public static ImmutableArray<IArgumentOperation> GetArgumentsInParameterOrder( 889this ImmutableArray<IArgumentOperation> arguments)
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\Extensions\IPropertySymbolExtensions.cs (2)
38public static ImmutableArray<IPropertySymbol> GetOriginalDefinitions(this IPropertySymbol propertySymbol) 40ImmutableArray<IPropertySymbol>.Builder originalDefinitionsBuilder = ImmutableArray.CreateBuilder<IPropertySymbol>();
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\Extensions\ISymbolExtensions.cs (2)
170public static ImmutableArray<IParameterSymbol> GetParameters(this ISymbol? symbol) 176_ => ImmutableArray<IParameterSymbol>.Empty,
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\Extensions\ITypeSymbolExtensions.cs (2)
186var current = type.GetAttributes(); 253var current = type.GetAttributes();
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\Extensions\OperationBlockAnalysisContextExtension.cs (1)
22var operationBlocks = context.OperationBlocks.WhereAsArray(operation => !operation.IsOperationNoneRoot());
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\Extensions\OperationKinds.cs (1)
13public static ImmutableArray<OperationKind> MemberReference { get; }
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\HashUtilities.cs (2)
22internal static int Combine<T>(ImmutableArray<T> array) 29internal static void Combine<T>(ImmutableArray<T> array, ref RoslynHashCode hashCode)
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\Options\AnalyzerOptionsExtensions.cs (4)
407var matchingSymbols = DocumentationCommentId.GetSymbolsForDeclarationId(genericInterfaceFullName, compilation); 488var names = optionValue.Split(new[] { '|' }, StringSplitOptions.RemoveEmptyEntries).ToImmutableArray(); 541public static ImmutableArray<string> GetMSBuildItemMetadataValues( 552return ImmutableArray<string>.Empty;
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\Options\MSBuildItemOptionNames.cs (2)
45public static ImmutableArray<string> ParseItemOptionValue(string? itemOptionValue) 49return ImmutableArray<string>.Empty;
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (1)
79public static SymbolNamesWithValueOption<TValue> Create(ImmutableArray<string> symbolNames, Compilation compilation, string? optionalPrefix,
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\PooledObjects\ArrayBuilder.cs (16)
49private readonly ImmutableArray<T>.Builder _builder; 71public ImmutableArray<T> ToImmutable() 235public ImmutableArray<T> ToImmutableOrNull() 248public ImmutableArray<U> ToDowncastedImmutable<U>() 253return ImmutableArray<U>.Empty; 268public ImmutableArray<T> ToImmutableAndFree() 270ImmutableArray<T> result; 387internal Dictionary<K, ImmutableArray<T>> ToDictionary<K>(Func<T, K> keySelector, IEqualityComparer<K>? comparer = null) 392var dictionary1 = new Dictionary<K, ImmutableArray<T>>(1, comparer); 400return new Dictionary<K, ImmutableArray<T>>(comparer); 419var dictionary = new Dictionary<K, ImmutableArray<T>>(accumulator.Count, comparer); 440public void AddRange(ImmutableArray<T> items) 445public void AddRange(ImmutableArray<T> items, int length) 450public void AddRange<S>(ImmutableArray<S> items) where S : class, T 452AddRange(ImmutableArray<T>.CastUp(items)); 515public ImmutableArray<S> SelectDistinct<S>(Func<T, S> selector)
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\WellKnownTypeProvider.cs (13)
31_referencedAssemblies = new Lazy<ImmutableArray<IAssemblySymbol>>( 60private readonly Lazy<ImmutableArray<IAssemblySymbol>> _referencedAssemblies; 67private ConcurrentCache<string, ImmutableArray<INamedTypeSymbol>>? _getTypesCache; 81private static readonly ConcurrentDictionary<string, ImmutableArray<string>> _fullTypeNameToNamespaceNames = 85internal ImmutableArray<INamedTypeSymbol> GetTypesByMetadataName(string fullyQualifiedMetadataName) 88ref _getTypesCache, static () => new ConcurrentCache<string, ImmutableArray<INamedTypeSymbol>>(50, ReferenceEqualityComparer.Instance))!; 90if (!getTypesCache.TryGetValue(fullyQualifiedMetadataName, out ImmutableArray<INamedTypeSymbol> val)) 95|| !getTypesCache.TryGetValue(fullyQualifiedMetadataName, out var addedArray) // Could fail if the type was already evicted from the cache 101ImmutableArray<INamedTypeSymbol> getTypesByMetadataNameImpl() 126return typesByMetadataName?.ToImmutableAndFree() ?? ImmutableArray<INamedTypeSymbol>.Empty; 174ImmutableArray<string> namespaceNames; 268private static ImmutableArray<string> GetNamespaceNamesFromFullTypeName(string fullTypeName) 351private static bool IsSubsetOfCollection<T>(ImmutableArray<T> set1, ICollection<T> set2)
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\WordParser.cs (2)
201public static bool ContainsWord(string text, WordParserOptions options, ImmutableArray<string> words) 235internal static bool ContainsWord(string text, WordParserOptions options, char prefix, ImmutableArray<string> words)
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\BranchWithInfo.cs (14)
29enteringRegions: ImmutableArray<ControlFlowRegion>.Empty, 30leavingRegions: ImmutableArray<ControlFlowRegion>.Empty, 31finallyRegions: ImmutableArray<ControlFlowRegion>.Empty, 42ImmutableArray<ControlFlowRegion> enteringRegions, 43ImmutableArray<ControlFlowRegion> leavingRegions, 44ImmutableArray<ControlFlowRegion> finallyRegions, 64public ImmutableArray<ControlFlowRegion> EnteringRegions { get; } 65public ImmutableArray<ControlFlowRegion> FinallyRegions { get; } 66public ImmutableArray<ControlFlowRegion> LeavingRegions { get; } 78enteringRegions: ImmutableArray<ControlFlowRegion>.Empty, 79leavingRegions: ImmutableArray<ControlFlowRegion>.Empty, 80finallyRegions: ImmutableArray<ControlFlowRegion>.Empty, 110private static IEnumerable<ILocalSymbol> ComputeLeavingRegionLocals(ImmutableArray<ControlFlowRegion> leavingRegions) 115private static IEnumerable<CaptureId> ComputeLeavingRegionFlowCaptures(ImmutableArray<ControlFlowRegion> leavingRegions)
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\Extensions\ListExtensions.cs (4)
22/// no elements were removed, this method returns <see cref="ImmutableArray{T}.Empty"/>.</returns> 23public static ImmutableArray<T> ExtractAll<T, TArg>(this List<T> list, Func<T, TArg, bool> predicate, TArg argument) 25ImmutableArray<T>.Builder? builder = null; 42return ImmutableArray<T>.Empty;
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\Extensions\OperationBlocksExtensions.cs (1)
12public static ControlFlowGraph? GetControlFlowGraph(this ImmutableArray<IOperation> operationBlocks)
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Analysis\DisposeAnalysis\DisposeAnalysisHelper.cs (2)
122ImmutableArray<IOperation> operationBlocks, 162public bool HasAnyDisposableCreationDescendant(ImmutableArray<IOperation> operationBlocks, IMethodSymbol containingMethod)
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Analysis\PropertySetAnalysis\ConstructorMapper.cs (4)
46public ConstructorMapper(ImmutableArray<PropertySetAbstractValueKind> propertyAbstractValues) 58this.PropertyAbstractValues = ImmutableArray<PropertySetAbstractValueKind>.Empty; 68this.PropertyAbstractValues = ImmutableArray<PropertySetAbstractValueKind>.Empty; 82internal ImmutableArray<PropertySetAbstractValueKind> PropertyAbstractValues { get; }
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Analysis\TaintedDataAnalysis\ITaintedDataInfo.cs (1)
23ImmutableArray<string> DependencyFullTypeNames { get; }
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Analysis\TaintedDataAnalysis\SanitizerInfo.cs (2)
82public ImmutableArray<string> DependencyFullTypeNames => ImmutableArray<string>.Empty;
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Analysis\TaintedDataAnalysis\SinkInfo.cs (2)
70public ImmutableArray<string> DependencyFullTypeNames => ImmutableArray<string>.Empty;
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Analysis\TaintedDataAnalysis\SourceInfo.cs (7)
13internal delegate bool PointsToCheck(ImmutableArray<PointsToAbstractValue> pointsTos); 14internal delegate bool ValueContentCheck(ImmutableArray<PointsToAbstractValue> pointsTos, ImmutableArray<ValueContentAbstractValue> valueContents); 15internal delegate bool MethodMatcher(string methodName, ImmutableArray<IArgumentOperation> arguments); 50ImmutableArray<string>? dependencyFullTypeNames = null) 68DependencyFullTypeNames = dependencyFullTypeNames ?? ImmutableArray<string>.Empty; 79public ImmutableArray<string> DependencyFullTypeNames { get; }
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Analysis\TaintedDataAnalysis\WebInputSources.cs (1)
30var dependencyFullTypeNames = ImmutableArray.Create(WellKnownTypeNames.MicrosoftAspNetCoreMvcControllerBase,
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\AbstractLocation.cs (2)
156var arguments = creation switch 162_ => ImmutableArray<IArgumentOperation>.Empty,
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\AnalysisEntity.cs (8)
39ImmutableArray<AbstractIndex> indices, 68private AnalysisEntity(ISymbol? symbol, ImmutableArray<AbstractIndex> indices, PointsToAbstractValue location, ITypeSymbol type, AnalysisEntity? parent, AnalysisEntity? entityForInstanceLocation) 75: this(symbol: null, indices: ImmutableArray<AbstractIndex>.Empty, instanceReferenceOperationSyntax: instanceReferenceOperation.Syntax, 82: this(symbol: null, indices: ImmutableArray<AbstractIndex>.Empty, instanceReferenceOperationSyntax: null, 88: this(symbol: namedType, indices: ImmutableArray<AbstractIndex>.Empty, instanceReferenceOperationSyntax: null, 93public static AnalysisEntity Create(ISymbol? symbol, ImmutableArray<AbstractIndex> indices, 196public ImmutableArray<AbstractIndex> Indices { get; } 215internal AnalysisEntity WithIndices(ImmutableArray<AbstractIndex> indices)
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\AnalysisEntityFactory.cs (18)
29private readonly Dictionary<ITupleOperation, ImmutableArray<AnalysisEntity>> _tupleElementEntitiesMap; 66_tupleElementEntitiesMap = new Dictionary<ITupleOperation, ImmutableArray<AnalysisEntity>>(); 90private static ImmutableArray<AbstractIndex> CreateAbstractIndices<T>(ImmutableArray<T> indices) 104return ImmutableArray<AbstractIndex>.Empty; 132ImmutableArray<AbstractIndex> indices = ImmutableArray<AbstractIndex>.Empty; 269private static void GetSymbolAndIndicesForMemberReference(IMemberReferenceOperation memberReference, ref ISymbol? symbol, ref ImmutableArray<AbstractIndex> indices) 302ImmutableArray<AbstractIndex>.Empty; 313var indices = ImmutableArray<AbstractIndex>.Empty; 321public bool TryCreateForTupleElements(ITupleOperation tupleOperation, [NotNullWhen(returnValue: true)] out ImmutableArray<AnalysisEntity> elementEntities) 348TryCreateForTupleElements(parentTupleOperationOpt, out var parentTupleElementEntities)) 366parentEntity = AnalysisEntity.Create(underlyingValueTupleType, ImmutableArray<AbstractIndex>.Empty, 382builder.Add(AnalysisEntity.Create(mappedValueTupleField, indices: ImmutableArray<AbstractIndex>.Empty, 395public bool TryCreateForArrayElementInitializer(IArrayCreationOperation arrayCreation, ImmutableArray<AbstractIndex> indices, ITypeSymbol elementType, [NotNullWhen(returnValue: true)] out AnalysisEntity? analysisEntity) 437private bool TryCreate(ISymbol? symbol, ImmutableArray<AbstractIndex> indices, 552private AnalysisEntity Create(ISymbol? symbol, ImmutableArray<AbstractIndex> indices, ITypeSymbol type, PointsToAbstractValue? instanceLocation, AnalysisEntity? parent, AnalysisEntity? entityForInstanceLocation)
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DataFlowOperationVisitor.cs (12)
987var requiresMethods = ContractNamedType.GetMembers("Requires"); 988var assumeMethods = ContractNamedType.GetMembers("Assume"); 989var assertMethods = ContractNamedType.GetMembers("Assert"); 1943protected abstract void SetAbstractValueForArrayElementInitializer(IArrayCreationOperation arrayCreation, ImmutableArray<AbstractIndex> indices, ITypeSymbol elementType, IOperation initializer, TAbstractAnalysisValue value); 2202ImmutableArray<IArgumentOperation> arguments, 2779var pendingArguments = _pendingArgumentsToPostProcess.ExtractAll(static (arg, operation) => arg.Parent == operation, operation); 3224void PostVisitInvocation(IMethodSymbol targetMethod, ImmutableArray<IArgumentOperation> arguments) 3249void ProcessInterlockedOperation(IMethodSymbol targetMethod, ImmutableArray<IArgumentOperation> arguments, INamedTypeSymbol interlockedType) 3533ImmutableArray<IArgumentOperation> visitedArguments, 3575ImmutableArray<IArgumentOperation> visitedArguments, 3593ImmutableArray<IArgumentOperation> visitedArguments, 3677if (AnalysisEntityFactory.TryCreateForTupleElements(operation, out var elementEntities))
SyntaxEditorBasedCodeFixProvider.cs (1)
40ImmutableArray<Diagnostic> diagnostics = context.Diagnostics;
SyntaxEditorFixAllProvider.cs (7)
81private static readonly ImmutableArray<FixAllScope> SupportedFixAllScopes = ImmutableArray.Create( 150ImmutableArray<Diagnostic> diagnostics, 165ImmutableArray<Diagnostic> diagnostics, 173ImmutableArray<Diagnostic> distinctDiagnostics = diagnostics.Distinct().ToImmutableArray(); 211protected override async Task<Document?> FixAllAsync(FixAllContext fixAllContext, Document document, ImmutableArray<Diagnostic> diagnostics) 238internal static IEnumerable<Diagnostic> Order(ImmutableArray<Diagnostic> diagnostics) 247private static bool HasNestedSpans(ImmutableArray<Diagnostic> diagnostics)
Microsoft.CodeAnalysis.Razor.Compiler (363)
Analyzers\ComponentParameterNullableWarningSuppressor.cs (1)
19public override ImmutableArray<SuppressionDescriptor> SupportedSuppressions => [
CSharp\DefaultTagHelperDescriptorFactory.cs (4)
154var constructorArguments = restrictChildrenAttribute.ConstructorArguments; 276var dictionaryTypeArguments = GetDictionaryArgumentTypes(property); 314private static ImmutableArray<ITypeSymbol> GetDictionaryArgumentTypes(IPropertySymbol property) 325var result = dictionaryType?.TypeArguments ?? [];
CSharp\DefaultUtf8WriteLiteralFeature.cs (2)
37internal readonly record struct InheritsInfo(string FilePath, string BaseTypeName, ImmutableArray<string> Usings); 88public static Utf8SupportMap Create(ImmutableArray<InheritsInfo> inheritsInfos, Compilation compilation)
CSharp\GenericTypeNameRewriter.cs (4)
30node.TypeName = Rewrite(node.TypeName, out var usedBindings); 34private string Rewrite(string typeName, out ImmutableArray<ComponentTypeArgumentIntermediateNode> usedTypeArguments) 47private readonly ImmutableArray<ComponentTypeArgumentIntermediateNode>.Builder _usedBindings; 49public Visitor(Dictionary<string, ComponentTypeArgumentIntermediateNode> bindings, ImmutableArray<ComponentTypeArgumentIntermediateNode>.Builder usedBindings)
CSharp\RequiredAttributeParser.cs (1)
66ImmutableArray<RazorDiagnostic> Diagnostics)
CSharp\SymbolExtensions.cs (2)
45private static bool TryGetAttribute(ImmutableArray<AttributeData> attributes, string fullName, [NotNullWhen(true)] out AttributeData? result) 54private static AttributeData? GetAttribute(ImmutableArray<AttributeData> attributes, string fullName)
Language\AllowedChildTagDescriptor.cs (1)
17internal AllowedChildTagDescriptor(string name, string displayName, ImmutableArray<RazorDiagnostic> diagnostics)
Language\AllowedChildTagDescriptorBuilder.cs (1)
28private protected override AllowedChildTagDescriptor BuildCore(ImmutableArray<RazorDiagnostic> diagnostics)
Language\BoundAttributeDescriptor.cs (3)
48public ImmutableArray<BoundAttributeParameterDescriptor> Parameters { get; } 61ImmutableArray<BoundAttributeParameterDescriptor> parameters, 63ImmutableArray<RazorDiagnostic> diagnostics)
Language\BoundAttributeDescriptorBuilder.cs (1)
153private protected override BoundAttributeDescriptor BuildCore(ImmutableArray<RazorDiagnostic> diagnostics)
Language\BoundAttributeParameterDescriptor.cs (1)
39ImmutableArray<RazorDiagnostic> diagnostics)
Language\BoundAttributeParameterDescriptorBuilder.cs (1)
67private protected override BoundAttributeParameterDescriptor BuildCore(ImmutableArray<RazorDiagnostic> diagnostics)
Language\ChecksumUtilities.cs (1)
11public static string BytesToString(ImmutableArray<byte> bytes)
Language\CodeGeneration\CodeRenderingContext.cs (6)
25private readonly ImmutableArray<RazorDiagnostic>.Builder _diagnostics; 26private readonly ImmutableArray<SourceMapping>.Builder _sourceMappings; 27private readonly ImmutableArray<LinePragma>.Builder _linePragmas; 94public ImmutableArray<RazorDiagnostic> GetDiagnostics() 154public ImmutableArray<SourceMapping> GetSourceMappings() 212public ImmutableArray<LinePragma> GetLinePragmas()
Language\CodeGeneration\CodeTarget.cs (2)
9public abstract class CodeTarget(RazorCodeDocument codeDocument, ImmutableArray<ICodeTargetExtension> targetExtensions) 13public ImmutableArray<ICodeTargetExtension> Extensions => targetExtensions;
Language\CodeGeneration\CodeTargetBuilder.cs (2)
10private ImmutableArray<ICodeTargetExtension>.Builder? _targetExtensions; 15public ImmutableArray<ICodeTargetExtension>.Builder TargetExtensions
Language\CodeGeneration\CodeWriterExtensions.cs (26)
24private static readonly ImmutableArray<ReadOnlyMemory<char>> s_integerTable = InitializeIntegerTable(); 39private static ImmutableArray<ReadOnlyMemory<char>> InitializeIntegerTable() 405params ImmutableArray<string> arguments) 414params ImmutableArray<string> arguments) 424ImmutableArray<string> modifiers, 436private static CodeWriter WriteModifierList(this CodeWriter writer, ImmutableArray<string> modifiers) 453ImmutableArray<string> suppressWarnings, 454ImmutableArray<string> modifiers, 481public static CodeWriter WriteMethodInvocation(this CodeWriter writer, string methodName, params ImmutableArray<string> arguments) 487params ImmutableArray<string> arguments) 490public static CodeWriter WriteMethodInvocation(this CodeWriter writer, string methodName, bool endLine, params ImmutableArray<string> arguments) 500params ImmutableArray<string> arguments) 508ImmutableArray<string> modifiers, 523ImmutableArray<string> modifiers, 553ImmutableArray<string> modifiers, 684ImmutableArray<string> modifiers, 687ImmutableArray<IntermediateToken> interfaces, 688ImmutableArray<TypeParameter> typeParameters, 809ImmutableArray<string> modifiers, 811ImmutableArray<MethodParameter> parameters) 826ImmutableArray<string> modifiers, 829ImmutableArray<MethodParameter> parameters) 844public static CodeWriter WriteCommaSeparatedList(this CodeWriter writer, ImmutableArray<string> items) 847public static CodeWriter WriteCommaSeparatedList<T>(this CodeWriter writer, ImmutableArray<T> items, Action<CodeWriter, T> elementWriter) 850public static CodeWriter WriteSeparatedList(this CodeWriter writer, string separator, ImmutableArray<string> items) 871public static CodeWriter WriteSeparatedList<T>(this CodeWriter writer, string separator, ImmutableArray<T> items, Action<CodeWriter, T> elementWriter)
Language\CodeGeneration\DefaultCodeTarget.cs (1)
10ImmutableArray<ICodeTargetExtension> extensions)
Language\Components\ComponentBindLoweringPass.cs (4)
206var newNodes = RewriteUsage(reference.Parent, entry); 332using var _ = SpecializedPools.GetPooledStringDictionary<ImmutableArray<AttributeInfo>.Builder>(out var duplicates); 380private static ImmutableArray<IntermediateNode> RewriteUsage(IntermediateNode parent, BindEntry bindEntry) 784var boundAttributes = componentTagHelper.BoundAttributes;
Language\Components\ComponentCodeTarget.cs (3)
11ImmutableArray<ICodeTargetExtension> targetExtensions) 16private static ImmutableArray<ICodeTargetExtension> GetComponentTargetExtensions(ImmutableArray<ICodeTargetExtension> targetExtensions)
Language\Components\ComponentEventHandlerLoweringPass.cs (7)
40var references = documentNode.FindDescendantReferences<TagHelperDirectiveAttributeIntermediateNode>(); 48var parameterReferences = documentNode.FindDescendantReferences<TagHelperDirectiveAttributeParameterIntermediateNode>(); 163var original = GetAttributeContent(node); 232private static ImmutableArray<IntermediateToken> GetAttributeContent(IntermediateNode node) 234var nodes = node.FindDescendantNodes<TemplateIntermediateNode>(); 247var tokens = htmlContentNode.FindDescendantNodes<IntermediateToken>(); 286var tokens = GetAttributeContent(node);
Language\Components\ComponentFormNameLoweringPass.cs (1)
25var references = documentNode.FindDescendantReferences<TagHelperDirectiveAttributeIntermediateNode>();
Language\Components\ComponentGenericTypePass.cs (3)
501static ImmutableArray<string> TryParseCore(TypeSyntax parsed) 516static ImmutableArray<string> ParseCore(TypeSyntax parsed) 532return ImmutableArray<string>.Empty;
Language\Components\ComponentImportProjectFeature.cs (1)
38private static ImmutableArray<RazorProjectItem> GetHierarchicalImports(RazorProjectFileSystem fileSystem, RazorProjectItem projectItem)
Language\Components\ComponentInjectIntermediateNode.cs (1)
16private static readonly ImmutableArray<string> s_injectedPropertyModifiers =
Language\Components\ComponentKeyLoweringPass.cs (1)
33var references = documentNode.FindDescendantReferences<TagHelperDirectiveAttributeIntermediateNode>();
Language\Components\ComponentLayoutDirectivePass.cs (1)
24var directives = documentNode.FindDirectiveReferences(ComponentLayoutDirective.Directive);
Language\Components\ComponentLoweringPass.cs (2)
41var usings = documentNode.FindDescendantNodes<UsingDirectiveIntermediateNode>(); 42var references = documentNode.FindDescendantReferences<TagHelperIntermediateNode>();
Language\Components\ComponentNodeWriter.cs (9)
652private readonly ImmutableArray<IntermediateToken>.Builder _currentAttributeValues = ImmutableArray.CreateBuilder<IntermediateToken>(); 1328var tokens = GetCSharpTokens(node); 1445private static ImmutableArray<HtmlIntermediateToken> GetHtmlTokens(IntermediateNode node) 1451private static ImmutableArray<CSharpIntermediateToken> GetCSharpTokens(IntermediateNode node) 1662private void WriteAttribute(CodeRenderingContext context, string key, ImmutableArray<IntermediateToken> value) 1682private void WriteAttribute(CodeRenderingContext context, IntermediateNode nameExpression, ImmutableArray<IntermediateToken> value) 1710var tokens = GetCSharpTokens(nameExpression); 1742private static void WriteAttributeValue(CodeRenderingContext context, ImmutableArray<IntermediateToken> tokens) 1850private static void WriteCSharpTokens(CodeRenderingContext context, ImmutableArray<CSharpIntermediateToken> tokens)
Language\Components\ComponentPageDirectivePass.cs (1)
25var directives = documentNode.FindDirectiveReferences(ComponentPageDirective.Directive);
Language\Components\ComponentReferenceCaptureLoweringPass.cs (1)
33var references = documentNode.FindDescendantReferences<TagHelperDirectiveAttributeIntermediateNode>();
Language\Components\ComponentRenderModeDirectivePass.cs (1)
27var directives = documentNode.FindDirectiveReferences(ComponentRenderModeDirective.Directive);
Language\Components\ComponentRenderModeLoweringPass.cs (1)
24var references = documentNode.FindDescendantReferences<TagHelperDirectiveAttributeIntermediateNode>();
Language\ConfigureDirectivesFeature.cs (2)
12private readonly Dictionary<RazorFileKind, ImmutableArray<DirectiveDescriptor>.Builder> _fileKindToDirectivesMap = []; 32public ImmutableArray<DirectiveDescriptor> GetDirectives(RazorFileKind? fileKind = null)
Language\DefaultDirectiveSyntaxTreePass.cs (2)
37private ImmutableArray<RazorDiagnostic>.Builder? _diagnostics; 43var diagnostics = _diagnostics?.ToImmutableAndClear() ?? _syntaxTree.Diagnostics;
Language\DefaultRazorDirectiveClassifierPhase.cs (1)
11public ImmutableArray<IRazorDirectiveClassifierPass> Passes { get; private set; }
Language\DefaultRazorDocumentClassifierPhase.cs (1)
11public ImmutableArray<IRazorDocumentClassifierPass> Passes { get; private set; }
Language\DefaultRazorIntermediateNodeLoweringPhase.cs (11)
54var imports = codeDocument.GetImportSyntaxTrees(); 196ImmutableArray<RazorSyntaxTree> imports, 212var references = document.FindDescendantReferences<DirectiveIntermediateNode>(); 634public bool TryCast<TNode>(out ImmutableArray<TNode> result) 815if (children.TryCast<MarkupLiteralAttributeValueSyntax>(out var attributeLiteralArray)) 833else if (children.TryCast<MarkupTextLiteralSyntax>(out var markupLiteralArray)) 850else if (children.TryCast<CSharpExpressionLiteralSyntax>(out var expressionLiteralArray)) 974protected static ImmutableArray<KeyValuePair<string, string>> ExtractAttributeData(MarkupElementSyntax node) 1064var attributeData = ExtractAttributeData(node); 1248if (children.TryCast<MarkupLiteralAttributeValueSyntax>(out var attributeLiteralArray)) 1639var attributeData = ExtractAttributeData(node);
Language\DefaultRazorOptimizationPhase.cs (1)
11public ImmutableArray<IRazorOptimizationPass> Passes { get; private set; }
Language\DefaultRazorSyntaxTreePhase.cs (1)
11public ImmutableArray<IRazorSyntaxTreePass> Passes { get; private set; }
Language\DefaultRazorTagHelperContextDiscoveryPhase.cs (3)
43if (codeDocument.TryGetImportSyntaxTrees(out var imports)) 56var directiveContributions = visitor.GetDirectiveTagHelperContributions(); 110public ImmutableArray<DirectiveTagHelperContribution> GetDirectiveTagHelperContributions()
Language\DefaultRazorTargetExtensionFeature.cs (1)
11public ImmutableArray<ICodeTargetExtension>.Builder TargetExtensions
Language\DefaultTagHelperResolutionPhase.cs (2)
155var attributes = elementNode.AttributeData; 1129ImmutableArray<KeyValuePair<string, string>> attributes,
Language\DocumentClassifierPassBase.cs (2)
16private ImmutableArray<ICodeTargetExtension> _targetExtensions; 20protected ImmutableArray<ICodeTargetExtension> TargetExtensions
Language\Extensions\DefaultTagHelperTargetExtension.cs (3)
18private static readonly ImmutableArray<string> s_fieldUninitializedModifiers = ["0649"]; 19private static readonly ImmutableArray<string> s_fieldUnusedModifiers = ["0169"]; 20private static readonly ImmutableArray<string> s_privateModifiers = ["private"];
Language\Extensions\MetadataAttributePass.cs (1)
108var checksum = codeDocument.Source.Text.GetChecksum();
Language\Extensions\RazorSourceChecksumAttributeIntermediateNode.cs (1)
18public ImmutableArray<byte> Checksum { get; set; }
Language\FeatureCache`1.cs (4)
18internal sealed class FeatureCache<T>(ImmutableArray<T> features) 21private readonly ImmutableArray<T> _features = features; 26public ImmutableArray<TFeature> GetFeatures<TFeature>() 56static ImmutableArray<TFeature> ConvertValuesToResult(object[] values)
Language\HashCodeCombiner.cs (2)
52public void Add<T>(ImmutableArray<T> array, IEqualityComparer<T> comparer) 66public void Add<T>(ImmutableArray<T> array)
Language\Intermediate\ClassDeclarationIntermediateNode.cs (3)
14public ImmutableArray<string> Modifiers { get; set => field = value.NullToEmpty(); } = []; 15public ImmutableArray<IntermediateToken> Interfaces { get; set => field = value.NullToEmpty(); } = []; 16public ImmutableArray<TypeParameter> TypeParameters { get; set => field = value.NullToEmpty(); } = [];
Language\Intermediate\CommonModifiers.cs (13)
15public static ImmutableArray<string> Internal { get; } = [ 18public static ImmutableArray<string> InternalSealed { get; } = [ 22public static ImmutableArray<string> InternalStatic { get; } = [ 26public static ImmutableArray<string> Private { get; } = [ 29public static ImmutableArray<string> PrivateReadOnly { get; } = [ 33public static ImmutableArray<string> PrivateSealed { get; } = [ 37public static ImmutableArray<string> FileSealed { get; } = [ 41public static ImmutableArray<string> Protected { get; } = [ 44public static ImmutableArray<string> ProtectedOverride { get; } = [ 48public static ImmutableArray<string> Public { get; } = [ 51public static ImmutableArray<string> PublicAsyncOverride { get; } = [ 56public static ImmutableArray<string> PublicOverrideAsync { get; } = [ 61public static ImmutableArray<string> PublicPartial { get; } = [
Language\Intermediate\ComponentIntermediateNode.cs (1)
36public ImmutableArray<ComponentTypeArgumentIntermediateNode> OrderedTypeArguments { get; set; }
Language\Intermediate\DocumentIntermediateNodeExtensions.cs (2)
59public static ImmutableArray<IntermediateNodeReference<DirectiveIntermediateNode>> FindDirectiveReferences( 100public static ImmutableArray<IntermediateNodeReference<TNode>> FindDescendantReferences<TNode>(this DocumentIntermediateNode document)
Language\Intermediate\FieldDeclarationIntermediateNode.cs (2)
13public ImmutableArray<string> Modifiers { get; init => field = value.NullToEmpty(); } = []; 14public ImmutableArray<string> SuppressWarnings { get; init => field = value.NullToEmpty(); } = [];
Language\Intermediate\IntermediateNode.cs (3)
14private ImmutableArray<RazorDiagnostic>.Builder? _diagnosticsBuilder; 15private ImmutableArray<RazorDiagnostic>? _diagnostics; 17public ImmutableArray<RazorDiagnostic> Diagnostics
Language\Intermediate\IntermediateNodeExtensions.cs (2)
11public static ImmutableArray<RazorDiagnostic> GetAllDiagnostics(this IntermediateNode node) 41public static ImmutableArray<TNode> FindDescendantNodes<TNode>(this IntermediateNode node)
Language\Intermediate\MethodDeclarationIntermediateNode.cs (2)
16public ImmutableArray<string> Modifiers { get; set => field = value.NullToEmpty(); } = []; 17public ImmutableArray<MethodParameter> Parameters { get; set => field = value.NullToEmpty(); } = [];
Language\Intermediate\MethodParameter.cs (2)
9public sealed class MethodParameter(string name, string type, ImmutableArray<string> modifiers = default) 14public ImmutableArray<string> Modifiers { get; } = modifiers.NullToEmpty();
Language\Intermediate\PropertyDeclarationIntermediateNode.cs (1)
14public ImmutableArray<string> Modifiers { get; init => field = value.NullToEmpty(); } = [];
Language\Intermediate\UnresolvedElementIntermediateNode.cs (1)
44public ImmutableArray<KeyValuePair<string, string>> AttributeData { get; set; }
Language\IRazorTargetExtensionFeature.cs (1)
11ImmutableArray<ICodeTargetExtension>.Builder TargetExtensions { get; }
Language\Legacy\ClassifiedSpanVisitor.cs (3)
19private readonly ImmutableArray<ClassifiedSpanInternal>.Builder _spans; 38public static ImmutableArray<ClassifiedSpanInternal> VisitRoot(RazorSyntaxTree syntaxTree) 48private ImmutableArray<ClassifiedSpanInternal> GetSpansAndClear()
Language\Legacy\CSharpCodeParser.cs (3)
123public CSharpCodeParser(ImmutableArray<DirectiveDescriptor> directives, ParserContext context) 200void SetupDirectiveParsers(ImmutableArray<DirectiveDescriptor> directiveDescriptors) 1944var diagnostics = directiveErrorSink.GetErrorsAndClear();
Language\Legacy\ErrorSink.cs (3)
15private ImmutableArray<RazorDiagnostic>.Builder? _errors; 28public ImmutableArray<RazorDiagnostic> GetErrorsAndClear() 36var result = errors.ToImmutableAndClear();
Language\Legacy\ImplicitExpressionEditHandler.cs (2)
236var tokens = target.DescendantTokens().ToImmutableArray(); 269var tokens = target.DescendantTokens().ToImmutableArray();
Language\Legacy\RazorParser.cs (1)
36var diagnostics = context.ErrorSink.GetErrorsAndClear();
Language\Legacy\RazorSyntaxTreeExtensions.cs (2)
10public static ImmutableArray<ClassifiedSpanInternal> GetClassifiedSpans(this RazorSyntaxTree syntaxTree) 17public static ImmutableArray<TagHelperSpanInternal> GetTagHelperSpans(this RazorSyntaxTree syntaxTree)
Language\Legacy\SpanEditHandler.cs (1)
17private static readonly ImmutableArray<SpanEditHandler> s_defaultEditHandlers =
Language\Legacy\TagHelperParseTreeRewriter.cs (9)
36var treeDiagnostics = syntaxTree.Diagnostics; 37var sinkDiagnostics = errorSink.GetErrorsAndClear(); 49var diagnostics = builder.ToImmutableOrderedBy(static d => d.Span.AbsoluteIndex); 261var elementAttributes = GetAttributeNameValuePairs(startTag); 392internal static ImmutableArray<KeyValuePair<string, string>> GetAttributeNameValuePairs(MarkupStartTagSyntax tagBlock) 583var allowedChildren = CurrentTagHelperTracker.AllowedChildren; 748private readonly Lazy<(ImmutableArray<string> Names, HashSet<string> NameSet)> _lazyAllowedChildren; 751public ImmutableArray<string> AllowedChildren => _lazyAllowedChildren.Value.Names; 768private (ImmutableArray<string>, HashSet<string>) CreateAllowedChildren()
Language\Legacy\TagHelperSpanVisitor.cs (3)
13private readonly ImmutableArray<TagHelperSpanInternal>.Builder _spans; 15private TagHelperSpanVisitor(RazorSourceDocument source, ImmutableArray<TagHelperSpanInternal>.Builder spans) 21public static ImmutableArray<TagHelperSpanInternal> VisitRoot(RazorSyntaxTree syntaxTree)
Language\Legacy\TokenizerBackedParser.cs (2)
474protected internal void AcceptWhile(params ImmutableArray<SyntaxKind> types) 495protected internal void AcceptUntil(params ImmutableArray<SyntaxKind> types)
Language\NamespaceComputer.cs (1)
199codeDocument.TryGetImportSyntaxTrees(out var importSyntaxTrees))
Language\RazorCodeDocument.cs (12)
18public ImmutableArray<RazorSourceDocument> Imports { get; } 34private readonly ImmutableArray<RazorSyntaxTree> _importSyntaxTrees; 38private readonly ImmutableArray<DirectiveTagHelperContribution> _directiveTagHelperContributions; 42ImmutableArray<RazorSourceDocument> imports, 49ImmutableArray<RazorSyntaxTree> importSyntaxTrees, 53ImmutableArray<DirectiveTagHelperContribution> directiveTagHelperContributions) 80ImmutableArray<RazorSourceDocument> imports, 188internal bool TryGetImportSyntaxTrees(out ImmutableArray<RazorSyntaxTree> result) 200internal ImmutableArray<RazorSyntaxTree> GetImportSyntaxTrees() 203internal RazorCodeDocument WithImportSyntaxTrees(ImmutableArray<RazorSyntaxTree> value) 282internal ImmutableArray<DirectiveTagHelperContribution> GetDirectiveTagHelperContributions() 285internal RazorCodeDocument WithDirectiveTagHelperContributions(ImmutableArray<DirectiveTagHelperContribution> value)
Language\RazorCodeDocumentExtensions.cs (4)
74if (codeDocument.TryGetImportSyntaxTrees(out var importSyntaxTrees)) 112internal static ImmutableArray<string> GetUsingDirectives(this RazorCodeDocument codeDocument) 122if (codeDocument.TryGetImportSyntaxTrees(out var importSyntaxTrees)) 171var contributions = codeDocument.GetDirectiveTagHelperContributions();
Language\RazorConfiguration.cs (3)
15ImmutableArray<RazorExtension> Extensions, 20ImmutableArray<string> PreprocessorSymbols = default, 23public ImmutableArray<string> PreprocessorSymbols
Language\RazorCSharpDocument.cs (7)
16public ImmutableArray<RazorDiagnostic> Diagnostics { get; } 17public ImmutableArray<SourceMapping> SourceMappingsSortedByGenerated { get; } 18public ImmutableArray<SourceMapping> SourceMappingsSortedByOriginal { get; } 19public ImmutableArray<LinePragma> LinePragmas { get; } 24ImmutableArray<RazorDiagnostic> diagnostics, 25ImmutableArray<SourceMapping> sourceMappings = default, 26ImmutableArray<LinePragma> linePragmas = default)
Language\RazorEngine.cs (5)
12public ImmutableArray<IRazorEngineFeature> Features { get; } 13public ImmutableArray<IRazorEnginePhase> Phases { get; } 17internal RazorEngine(ImmutableArray<IRazorEngineFeature> features, ImmutableArray<IRazorEnginePhase> phases) 49public ImmutableArray<TFeature> GetFeatures<TFeature>()
Language\RazorParserOptions.Builder.cs (1)
19public ImmutableArray<DirectiveDescriptor> Directives { get; set => field = value.NullToEmpty(); }
Language\RazorParserOptions.cs (3)
29public ImmutableArray<DirectiveDescriptor> Directives { get; } 37ImmutableArray<DirectiveDescriptor> directives, 103public RazorParserOptions WithDirectives(params ImmutableArray<DirectiveDescriptor> value)
Language\RazorProjectEngine.cs (17)
22public ImmutableArray<IRazorEnginePhase> Phases => Engine.Phases; 23public ImmutableArray<IRazorProjectEngineFeature> Features { get; } 27private readonly ImmutableArray<IConfigureRazorParserOptionsFeature> _configureParserOptionsFeatures; 28private readonly ImmutableArray<IConfigureRazorCodeGenerationOptionsFeature> _configureCodeGenerationOptionsFeatures; 34ImmutableArray<IRazorProjectEngineFeature> features) 57public ImmutableArray<TFeature> GetFeatures<TFeature>() 72ImmutableArray<RazorSourceDocument> importSources, 98ImmutableArray<RazorSourceDocument> importSources, 123ImmutableArray<RazorSourceDocument> importSources, 138var importSources = GetImportSources(projectItem); 147ImmutableArray<RazorSourceDocument> importSources, 257private static void AddDefaultPhases(ImmutableArray<IRazorEnginePhase>.Builder phases) 271private static void AddDefaultFeatures(ImmutableArray<IRazorFeature>.Builder features) 385internal ImmutableArray<RazorProjectItem> GetImports(RazorProjectItem projectItem) 393internal ImmutableArray<RazorProjectItem> GetImports(RazorProjectItem projectItem, Func<RazorProjectItem, bool> predicate) 416private ImmutableArray<RazorSourceDocument> GetImportSources(RazorProjectItem projectItem) 430internal static ImmutableArray<RazorSourceDocument> GetImportSourceDocuments(
Language\RazorProjectEngineBuilder.cs (2)
15public ImmutableArray<IRazorFeature>.Builder Features { get; } 16public ImmutableArray<IRazorEnginePhase>.Builder Phases { get; }
Language\RazorProjectEngineExtensions.cs (5)
21ImmutableArray<RazorSourceDocument> importSources) 28ImmutableArray<RazorSourceDocument> importSources) 47ImmutableArray<RazorSourceDocument> importSources, 55ImmutableArray<RazorSourceDocument> importSources, 63ImmutableArray<RazorSourceDocument> importSources = default,
Language\RazorProjectFileSystem.cs (2)
61internal ImmutableArray<RazorProjectItem> FindHierarchicalItems(string path, string fileName) 81internal ImmutableArray<RazorProjectItem> FindHierarchicalItems(string basePath, string path, string fileName)
Language\RazorSyntaxTree.cs (6)
18private readonly ImmutableArray<RazorDiagnostic> _diagnostics; 19private ImmutableArray<RazorDiagnostic> _allDiagnostics; 24ImmutableArray<RazorDiagnostic> diagnostics, 37public ImmutableArray<RazorDiagnostic> Diagnostics 48static ImmutableArray<RazorDiagnostic> ComputeAllDiagnostics(ImmutableArray<RazorDiagnostic> treeDiagnostics, SyntaxNode root)
Language\RequiredAttributeDescriptor.cs (1)
33ImmutableArray<RazorDiagnostic> diagnostics)
Language\RequiredAttributeDescriptorBuilder.cs (1)
40private protected override RequiredAttributeDescriptor BuildCore(ImmutableArray<RazorDiagnostic> diagnostics)
Language\Syntax\GreenNodeExtensions.cs (1)
31public static TNode WithDiagnosticsGreen<TNode>(this TNode node, params ImmutableArray<RazorDiagnostic> diagnostics)
Language\Syntax\SyntaxNode.Iterators.cs (2)
300public ImmutableArray<TResult> ToImmutableArray() 384public readonly ImmutableArray<SyntaxToken> ToImmutableArray()
Language\TagHelperBinder.cs (2)
127ImmutableArray<KeyValuePair<string, string>> attributes, 182ImmutableArray<KeyValuePair<string, string>> attributes,
Language\TagHelperBinding.cs (6)
12public ImmutableArray<TagHelperBoundRulesInfo> AllBoundRules { get; } 16public ImmutableArray<KeyValuePair<string, string>> Attributes { get; } 18private LazyValue<ImmutableArray<TagHelperBoundRulesInfo>, TagHelperCollection> _lazyTagHelpers = new(static allBoundRules => 30ImmutableArray<TagHelperBoundRulesInfo> allBoundRules, 33ImmutableArray<KeyValuePair<string, string>> attributes, 45public ImmutableArray<TagMatchingRuleDescriptor> GetBoundRules(TagHelperDescriptor descriptor)
Language\TagHelperBoundRulesInfo.cs (2)
10ImmutableArray<TagMatchingRuleDescriptor> boundRules) 13public ImmutableArray<TagMatchingRuleDescriptor> Rules { get; } = boundRules;
Language\TagHelperCollection_Factories.cs (4)
62/// This method leverages the memory-efficient nature of <see cref="ImmutableArray{T}"/> by using 72/// of the <see cref="ImmutableArray{T}"/> and can be more efficient than 77public static TagHelperCollection Create(params ImmutableArray<TagHelperDescriptor> array) 252public static TagHelperCollection Merge(ImmutableArray<TagHelperCollection> collections)
Language\TagHelperCollection.MultiSegmentCollection.cs (2)
25private readonly ImmutableArray<ReadOnlyMemory<TagHelperDescriptor>> _segments; 29public MultiSegmentCollection(ImmutableArray<ReadOnlyMemory<TagHelperDescriptor>> segments)
Language\TagHelperDescriptor.cs (12)
19private ImmutableArray<BoundAttributeDescriptor> _editorRequiredAttributes; 42public ImmutableArray<AllowedChildTagDescriptor> AllowedChildTags { get; } 43public ImmutableArray<BoundAttributeDescriptor> BoundAttributes { get; } 44public ImmutableArray<TagMatchingRuleDescriptor> TagMatchingRules { get; } 65ImmutableArray<TagMatchingRuleDescriptor> tagMatchingRules, 66ImmutableArray<BoundAttributeDescriptor> attributeDescriptors, 67ImmutableArray<AllowedChildTagDescriptor> allowedChildTags, 69ImmutableArray<RazorDiagnostic> diagnostics) 133internal ImmutableArray<BoundAttributeDescriptor> EditorRequiredAttributes 144static ImmutableArray<BoundAttributeDescriptor> GetEditorRequiredAttributes(ImmutableArray<BoundAttributeDescriptor> attributes) 148return ImmutableArray<BoundAttributeDescriptor>.Empty;
Language\TagHelperDescriptorBuilder.cs (1)
156private protected override TagHelperDescriptor BuildCore(ImmutableArray<RazorDiagnostic> diagnostics)
Language\TagHelperDiscoverer.cs (4)
13internal sealed class TagHelperDiscoverer(ImmutableArray<TagHelperProducer> producers, bool includeDocumentation, bool excludeHidden) 25private static int GetCacheKey(ImmutableArray<TagHelperProducer> producers, bool includeDocumentation, bool excludeHidden) 124var members = namespaceOrType.GetMembers(); 149var typeMembers = namespaceOrType.GetTypeMembers();
Language\TagHelperDiscoveryService.cs (3)
15private ImmutableArray<ITagHelperProducerFactory> _producerFactories; 80var producers = GetProducers(compilation, includeDocumentation, excludeHidden); 95private ImmutableArray<TagHelperProducer> GetProducers(Compilation compilation, bool includeDocumentation, bool excludeHidden)
Language\TagHelperMatchingConventions.cs (2)
22ImmutableArray<KeyValuePair<string, string>> tagAttributes) 69ImmutableArray<KeyValuePair<string, string>> tagAttributes)
Language\TagHelperObject`1.cs (2)
17public ImmutableArray<RazorDiagnostic> Diagnostics { get; } 22private protected TagHelperObject(ImmutableArray<RazorDiagnostic> diagnostics)
Language\TagHelperObjectBuilder`1.cs (3)
13private ImmutableArray<RazorDiagnostic>.Builder? _diagnostics; 16public ImmutableArray<RazorDiagnostic>.Builder Diagnostics 46private protected abstract T BuildCore(ImmutableArray<RazorDiagnostic> diagnostics);
Language\TagHelperObjectBuilderCollection`2.cs (2)
58internal ImmutableArray<TObject> ToImmutable() 62return ImmutableArray<TObject>.Empty;
Language\TagHelpers\Producers\BindTagHelperProducer.cs (1)
129var constructorArguments = attribute.ConstructorArguments;
Language\TagHelpers\Producers\ComponentTagHelperProducer.cs (8)
57var properties = GetProperties(type); 98ImmutableArray<(IPropertySymbol property, PropertyKind kind)> properties, 105ImmutableArray<(IPropertySymbol property, PropertyKind kind)> properties, 112ImmutableArray<(IPropertySymbol property, PropertyKind kind)> properties, 211private bool AcceptsUnmatchedAttributes(ImmutableArray<(IPropertySymbol property, PropertyKind kind)> properties) 377var members = methodSymbol.ReturnType.GetMembers(); 696private static ImmutableArray<(IPropertySymbol property, PropertyKind kind)> GetProperties(INamedTypeSymbol type) 811var attributes = type.GetAttributes();
Language\TagHelpers\Producers\EventHandlerTagHelperProducer.cs (3)
68var arguments = attribute.ConstructorArguments; 73static bool TryGetFromTwoArguments(ImmutableArray<TypedConstant> arguments, out AttributeArgs args) 89static bool TryGetFromFourArguments(ImmutableArray<TypedConstant> arguments, out AttributeArgs args)
Language\TagMatchingRuleDescriptor.cs (3)
22public ImmutableArray<RequiredAttributeDescriptor> Attributes { get; } 29ImmutableArray<RequiredAttributeDescriptor> attributes, 30ImmutableArray<RazorDiagnostic> diagnostics)
Language\TagMatchingRuleDescriptorBuilder.cs (1)
46private protected override TagMatchingRuleDescriptor BuildCore(ImmutableArray<RazorDiagnostic> diagnostics)
Language\TypeNameObject.cs (1)
25private static readonly ImmutableArray<TypeNameInfo> s_knownTypeNames;
Mvc.Version1_X\MvcImportProjectFeature.cs (1)
56var importProjectItems = ProjectEngine.FileSystem.FindHierarchicalItems(projectItem.FilePath, ImportsFileName);
Mvc.Version1_X\ViewComponentTagHelperDescriptorFactory.cs (3)
71var methodParameters = method.Parameters; 160private void AddRequiredAttributes(ImmutableArray<IParameterSymbol> methodParameters, TagMatchingRuleDescriptorBuilder builder) 177private void AddBoundAttributes(ImmutableArray<IParameterSymbol> methodParameters, string containingDisplayName, TagHelperDescriptorBuilder builder)
Mvc.Version1_X\ViewComponentTagHelperTargetExtension.cs (1)
17protected override ImmutableArray<string> GetInvokeArguments(TagHelperDescriptor tagHelper)
Mvc.Version2_X\MvcImportProjectFeature.cs (1)
58var importProjectItems = ProjectEngine.FileSystem.FindHierarchicalItems(projectItem.FilePath, ImportsFileName);
Mvc.Version2_X\ViewComponentTagHelperDescriptorFactory.cs (3)
71var methodParameters = method.Parameters; 175private void AddRequiredAttributes(ImmutableArray<IParameterSymbol> methodParameters, TagMatchingRuleDescriptorBuilder builder) 192private void AddBoundAttributes(ImmutableArray<IParameterSymbol> methodParameters, string containingDisplayName, TagHelperDescriptorBuilder builder)
Mvc.Version2_X\ViewComponentTagHelperTargetExtension.cs (1)
17protected override ImmutableArray<string> GetInvokeArguments(TagHelperDescriptor tagHelper)
Mvc\MvcImportProjectFeature.cs (1)
58var importProjectItems = ProjectEngine.FileSystem.FindHierarchicalItems(projectItem.FilePath, ImportsFileName);
Mvc\ViewComponentTagHelperDescriptorFactory.cs (3)
71var methodParameters = method.Parameters; 175private void AddRequiredAttributes(ImmutableArray<IParameterSymbol> methodParameters, TagMatchingRuleDescriptorBuilder builder) 195private void AddBoundAttributes(ImmutableArray<IParameterSymbol> methodParameters, string containingDisplayName, TagHelperDescriptorBuilder builder)
Mvc\ViewComponentTagHelperTargetExtension.cs (3)
14private ImmutableArray<MethodParameter> _processInvokeAsyncArgsMethodParameters; 16private ImmutableArray<MethodParameter> ProcessInvokeAsyncArgsMethodParameters 73protected override ImmutableArray<string> GetInvokeArguments(TagHelperDescriptor tagHelper)
Mvc\ViewComponentTagHelperTargetExtensionBase.cs (6)
15private static readonly ImmutableArray<MethodParameter> s_constructorParameters = 22private ImmutableArray<MethodParameter> _processMethodParameters; 24public ImmutableArray<MethodParameter> ProcessMethodParameters 41private static readonly ImmutableArray<string> s_contextualizeArguments = [ViewComponentsApi.ViewContextPropertyName]; 85protected abstract ImmutableArray<string> GetInvokeArguments(TagHelperDescriptor tagHelper); 149var invokeArguments = GetInvokeArguments(tagHelper);
SourceGenerators\IncrementalValueProviderExtensions.cs (1)
57internal static IncrementalValueProvider<TSource> ReportDiagnostics<TSource>(this IncrementalValueProvider<(TSource?, ImmutableArray<Diagnostic>)> source, IncrementalGeneratorInitializationContext context)
SourceGenerators\RazorSourceGenerator.Helpers.cs (2)
54ImmutableArray<SourceGeneratorProjectItem> imports, 109ImmutableArray<SourceGeneratorProjectItem> imports,
SourceGenerators\RazorSourceGenerator.RazorProviders.cs (3)
21private (RazorSourceGenerationOptions?, ImmutableArray<Diagnostic>) ComputeRazorSourceGeneratorOptions(((AnalyzerConfigOptionsProvider, ParseOptions), ImmutableArray<MetadataReference>) pair, CancellationToken ct) 38var minimalReferences = references
SourceGenerators\SourceGeneratorProjectItem.cs (2)
79var thisHash = AdditionalText.GetText()?.GetContentHash() ?? []; 80var otherHash = other.AdditionalText.GetText()?.GetContentHash() ?? [];
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)
242return new EmbeddedSourceTextInfo(sourceTextInfo, embeddedText, compressedHash?.ToImmutableArray() ?? ImmutableArray<byte>.Empty); 292public (ImmutableArray<SyntaxTree> SyntaxTrees, ImmutableArray<MetadataReference> MetadataReferences) ResolveArtifacts( 296var syntaxTrees = ResolveSyntaxTrees(); 297var metadataReferences = ResolveMetadataReferences(); 300ImmutableArray<SyntaxTree> ResolveSyntaxTrees() 327ImmutableArray<MetadataReference> ResolveMetadataReferences() 451private static ImmutableArray<(string, string)> ParseCompilationOptions(BlobReader blobReader)
CSharpCompilationFactory.cs (4)
49ImmutableArray<SyntaxTree> syntaxTrees, 50ImmutableArray<MetadataReference> metadataReferences) 74var preprocessorSymbols = define == null 75? 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)
49ImmutableArray<SyntaxTree> syntaxTrees, 50ImmutableArray<MetadataReference> metadataReferences)
Microsoft.CodeAnalysis.ResxSourceGenerator (728)
src\a1065d420d446521\NamingStylePreferencesEditorConfigSerializer.cs (9)
30ImmutableArray<SymbolSpecification> symbolSpecifications, 31ImmutableArray<NamingStyle> namingStyles, 32ImmutableArray<NamingRule> namingRules, 47ImmutableArray<SymbolSpecification> symbolSpecifications, 48ImmutableArray<NamingStyle> namingStyles, 49ImmutableArray<NamingRule> rules, 120ImmutableArray<SymbolSpecification> symbolSpecifications, 121ImmutableArray<NamingStyle> namingStyles) 170private static ImmutableDictionary<NamingRule, string> AssignNamesToNamingStyleRules(ImmutableArray<NamingRule> namingRules, ImmutableDictionary<Guid, string> serializedNameMap)
src\b310f676f7308b7f\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (6)
26private readonly ImmutableArray<IParameterSymbol> _parameters; 74ImmutableArray<IParameterSymbol> parameters, 123var parameters = GetParameters(owningSymbol); 139static ImmutableArray<IParameterSymbol> GetParameters(ISymbol owningSymbol) 141var parameters = owningSymbol.GetParameters(); 164var parameters = lambdaOrLocalFunction.GetParameters();
src\roslyn\src\Compilers\Core\Portable\Collections\DictionaryExtensions.cs (3)
93/// the values in the passed builder will be converted to an <see cref="ImmutableArray{T}"/> using <see 97public static ImmutableSegmentedDictionary<K, ImmutableArray<V>> ToImmutableSegmentedDictionaryAndFree<K, V>(this PooledDictionary<K, ArrayBuilder<V>> dictionary) 100var result = ImmutableSegmentedDictionary.CreateBuilder<K, ImmutableArray<V>>();
src\roslyn\src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (3)
143public ImmutableArray<V> this[K k] 153return ImmutableArray<V>.Empty; 270internal ImmutableArray<V> Items
src\roslyn\src\Compilers\Core\Portable\Diagnostic\DiagnosticArrayExtensions.cs (1)
11internal static bool HasAnyErrors<T>(this ImmutableArray<T> diagnostics) where T : Diagnostic
src\roslyn\src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
729public static string NormalizePathPrefix(string filePath, ImmutableArray<KeyValuePair<string, string>> pathMap)
src\roslyn\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\roslyn\src\Compilers\Core\Portable\InternalUtilities\Hash.cs (3)
120internal static int CombineValues<T>(ImmutableArray<T> values, int maxItemsToHash = int.MaxValue) 171internal static int CombineValues(ImmutableArray<string> values, StringComparer stringComparer, int maxItemsToHash = int.MaxValue) 252internal static int GetFNVHashCode(ImmutableArray<byte> data)
src\roslyn\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\roslyn\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\roslyn\src\Compilers\Core\Portable\InternalUtilities\SetWithInsertionOrder.cs (1)
94public ImmutableArray<T> AsImmutable() => _elements.ToImmutableArrayOrEmpty();
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (2)
20private static ImmutableArray<string> s_lazyNumerals; 25var numerals = s_lazyNumerals;
src\roslyn\src\Compilers\Core\Portable\MetadataReference\AssemblyIdentityUtils.cs (1)
36ImmutableArray<byte> publicKeyOrToken = !publicKeyHandle.IsNil
src\roslyn\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\roslyn\src\Dependencies\Collections\Extensions\FixedSizeArrayBuilder.cs (5)
19/// A bare-bones array builder, focused on the case of producing <see cref="ImmutableArray{T}"/>s where the final array 37/// The builder will be moved to an array (see <see cref="MoveToArray"/>) or <see cref="ImmutableArray{T}"/> (see <see 70public void AddRange(ImmutableArray<T> values) 116/// Moves the underlying buffer out of control of this type, into the returned <see cref="ImmutableArray{T}"/>. It 122public ImmutableArray<T> MoveToImmutable()
src\roslyn\src\Dependencies\Collections\Extensions\ICollectionExtensions.cs (1)
76public static void AddRange<T>(this ICollection<T> collection, ImmutableArray<T> values)
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (26)
60public static ImmutableArray<T> ToImmutableArrayOrEmpty<T>(this IEnumerable<T>? items) 67if (items is ImmutableArray<T> array) 82if (items is ImmutableArray<T> array) 271/// <seealso cref="Microsoft.CodeAnalysis.ImmutableArrayExtensions.HasDuplicates{TItem, TValue}(ImmutableArray{TItem}, Func{TItem, TValue}, IEqualityComparer{TValue})"/> 376public static ImmutableArray<T> WhereAsArray<T>(this IEnumerable<T> values, Func<T, bool> predicate) 390public static ImmutableArray<T> WhereAsArray<T, TArg>(this IEnumerable<T> values, Func<T, TArg, bool> predicate, TArg arg) 407public static ImmutableArray<TResult> SelectAsArray<TSource, TResult>(this IEnumerable<TSource>? source, Func<TSource, TResult> selector) 417public static ImmutableArray<TResult> SelectAsArray<TItem, TResult>(this IEnumerable<TItem>? source, Func<TItem, bool> predicate, Func<TItem, TResult> selector) 431public static ImmutableArray<TResult> SelectAsArray<TSource, TResult>(this IEnumerable<TSource>? source, Func<TSource, int, TResult> selector) 446public static ImmutableArray<TResult> SelectAsArray<TSource, TResult, TArg>(this IEnumerable<TSource>? source, Func<TSource, TArg, TResult> selector, TArg arg) 449return ImmutableArray<TResult>.Empty; 461public static ImmutableArray<TResult> SelectAsArray<TSource, TResult>(this IReadOnlyCollection<TSource>? source, Func<TSource, TResult> selector) 473public static ImmutableArray<TResult> SelectAsArray<TSource, TResult, TArg>(this IReadOnlyCollection<TSource>? source, Func<TSource, TArg, TResult> selector, TArg arg) 485public static ImmutableArray<TResult> SelectManyAsArray<TSource, TResult>(this IEnumerable<TSource>? source, Func<TSource, IEnumerable<TResult>> selector) 496public static ImmutableArray<TResult> SelectManyAsArray<TItem, TArg, TResult>(this IEnumerable<TItem>? source, Func<TItem, TArg, IEnumerable<TResult>> selector, TArg arg) 507public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, IEnumerable<TResult>> selector) 520public static ImmutableArray<TResult> SelectManyAsArray<TItem, TArg, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, TArg, IEnumerable<TResult>> selector, TArg arg) 533public static ImmutableArray<TResult> SelectManyAsArray<TSource, TResult>(this IEnumerable<TSource>? source, Func<TSource, OneOrMany<TResult>> selector) 547public static async ValueTask<ImmutableArray<TResult>> SelectAsArrayAsync<TItem, TResult>(this IEnumerable<TItem> source, Func<TItem, ValueTask<TResult>> selector) 561public static async ValueTask<ImmutableArray<TResult>> SelectAsArrayAsync<TItem, TResult>(this IEnumerable<TItem> source, Func<TItem, CancellationToken, ValueTask<TResult>> selector, CancellationToken cancellationToken) 575public static async ValueTask<ImmutableArray<TResult>> SelectAsArrayAsync<TItem, TArg, TResult>(this IEnumerable<TItem> source, Func<TItem, TArg, CancellationToken, ValueTask<TResult>> selector, TArg arg, CancellationToken cancellationToken) 586public 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) 764internal static Dictionary<K, ImmutableArray<T>> ToMultiDictionary<K, T>(this IEnumerable<T> data, Func<T, K> keySelector, IEqualityComparer<K>? comparer = null) 767var dictionary = new Dictionary<K, ImmutableArray<T>>(comparer); 834/// Methods that are available on both <see cref="IEnumerable{T}"/> and <see cref="ImmutableArray{T}"/> are defined in System.Linq namespace 835/// to avoid accidental boxing of <see cref="ImmutableArray{T}"/>. The boxing would occur if the file calling these methods didn't have <c>using System.Linq</c>.
src\roslyn\src\Dependencies\Collections\Extensions\IListExtensions.cs (1)
31/// <seealso cref="ImmutableArrayExtensions.HasDuplicates{TItem, TValue}(System.Collections.Immutable.ImmutableArray{TItem}, Func{TItem, TValue}, IEqualityComparer{TValue})"/>
src\roslyn\src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (156)
24/// The collection of extension methods for the <see cref="ImmutableArray{T}"/> type 36public static ImmutableArray<T> AsImmutable<T>(this IEnumerable<T> items) 48public static ImmutableArray<T> AsImmutableOrEmpty<T>(this IEnumerable<T>? items) 52return ImmutableArray<T>.Empty; 65public static ImmutableArray<T> AsImmutableOrNull<T>(this IEnumerable<T>? items) 81public static ImmutableArray<T> AsImmutable<T>(this T[] items) 94public static ImmutableArray<T> AsImmutableOrNull<T>(this T[]? items) 110public static ImmutableArray<T> AsImmutableOrEmpty<T>(this T[]? items) 114return ImmutableArray<T>.Empty; 125public static ImmutableArray<byte> ToImmutable(this MemoryStream stream) 138public static ImmutableArray<TResult> SelectAsArray<TItem, TResult>(this ImmutableArray<TItem> items, Func<TItem, TResult> map) 153public static ImmutableArray<TResult> SelectAsArray<TItem, TArg, TResult>(this ImmutableArray<TItem> items, Func<TItem, TArg, TResult> map, TArg arg) 168public static ImmutableArray<TResult> SelectAsArray<TItem, TArg, TResult>(this ImmutableArray<TItem> items, Func<TItem, int, TArg, TResult> map, TArg arg) 198public static ImmutableArray<TResult> SelectAsArray<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, bool> predicate, Func<TItem, TResult> selector) 224public static ImmutableArray<TResult> SelectAsArray<TItem, TArg, TResult>(this ImmutableArray<TItem> array, Func<TItem, TArg, bool> predicate, Func<TItem, TArg, TResult> selector, TArg arg) 247public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, IEnumerable<TResult>> selector) 267public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, ImmutableArray<TResult>> selector) 287public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, OneOrMany<TResult>> selector) 308public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, bool> predicate, Func<TItem, IEnumerable<TResult>> selector) 332public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, bool> predicate, Func<TItem, ImmutableArray<TResult>> selector) 356public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, bool> predicate, Func<TItem, OneOrMany<TResult>> selector) 381public static ImmutableArray<TResult> SelectManyAsArray<TItem, TArg, TResult>(this ImmutableArray<TItem> array, Func<TItem, TArg, bool> predicate, Func<TItem, TArg, OneOrMany<TResult>> selector, TArg arg) 399public static async ValueTask<ImmutableArray<TResult>> SelectAsArrayAsync<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, CancellationToken, ValueTask<TResult>> selector, CancellationToken cancellationToken) 414public static async ValueTask<ImmutableArray<TResult>> SelectAsArrayAsync<TItem, TArg, TResult>(this ImmutableArray<TItem> array, Func<TItem, TArg, CancellationToken, ValueTask<TResult>> selector, TArg arg, CancellationToken cancellationToken) 426public static ValueTask<ImmutableArray<TResult>> SelectManyAsArrayAsync<TItem, TArg, TResult>(this ImmutableArray<TItem> source, Func<TItem, TArg, CancellationToken, ValueTask<ImmutableArray<TResult>>> selector, TArg arg, CancellationToken cancellationToken) 429return new ValueTask<ImmutableArray<TResult>>([]); 436async ValueTask<ImmutableArray<TResult>> CreateTaskAsync() 453public static ImmutableArray<TResult> ZipAsArray<T1, T2, TResult>(this ImmutableArray<T1> self, ImmutableArray<T2> other, Func<T1, T2, TResult> map) 473public static ImmutableArray<TResult> ZipAsArray<T1, T2, TArg, TResult>(this ImmutableArray<T1> self, ImmutableArray<T2> other, TArg arg, Func<T1, T2, int, TArg, TResult> map) 493public static ImmutableArray<T> WhereAsArray<T>(this ImmutableArray<T> array, Func<T, bool> predicate) 501public static ImmutableArray<T> WhereAsArray<T, TArg>(this ImmutableArray<T> array, Func<T, TArg, bool> predicate, TArg arg) 504private static ImmutableArray<T> WhereAsArrayImpl<T, TArg>(ImmutableArray<T> array, Func<T, bool>? predicateWithoutArg, Func<T, TArg, bool>? predicateWithArg, TArg arg) 569return ImmutableArray<T>.Empty; 573public static async Task<bool> AnyAsync<T>(this ImmutableArray<T> array, Func<T, Task<bool>> predicateAsync) 584public static async Task<bool> AnyAsync<T, TArg>(this ImmutableArray<T> array, Func<T, TArg, Task<bool>> predicateAsync, TArg arg) 595public static async ValueTask<T?> FirstOrDefaultAsync<T>(this ImmutableArray<T> array, Func<T, Task<bool>> predicateAsync) 610public static ImmutableArray<TBase> Cast<TDerived, TBase>(this ImmutableArray<TDerived> items) 613return ImmutableArray<TBase>.CastUp(items); 624public static bool SetEquals<T>(this ImmutableArray<T> array1, ImmutableArray<T> array2, IEqualityComparer<T> comparer) 665public static ImmutableArray<T> NullToEmpty<T>(this ImmutableArray<T> array) 667return array.IsDefault ? ImmutableArray<T>.Empty : array; 673public static ImmutableArray<T> NullToEmpty<T>(this ImmutableArray<T>? array) 676null or { IsDefault: true } => ImmutableArray<T>.Empty, 682internal static ImmutableArray<T> ConditionallyDeOrder<T>(this ImmutableArray<T> array) 699internal static ImmutableArray<TValue> Flatten<TKey, TValue>( 700this Dictionary<TKey, ImmutableArray<TValue>> dictionary, 723internal static ImmutableArray<T> AddRange<T>(this ImmutableArray<T> self, in TemporaryArray<T> items) 751internal static bool HasDuplicates<T>(this ImmutableArray<T> array) 754internal static bool HasDuplicates<T>(this ImmutableArray<T> array, IEqualityComparer<T> comparer) 757public static bool HasDuplicates<TItem, TValue>(this ImmutableArray<TItem> array, Func<TItem, TValue> selector) 769internal static bool HasDuplicates<TItem, TValue>(this ImmutableArray<TItem> array, Func<TItem, TValue> selector, IEqualityComparer<TValue> comparer) 826(Dictionary<TKey, object> dictionary, Dictionary<TKey, ImmutableArray<TNamespaceOrTypeSymbol>> result) 837static ImmutableArray<TNamespaceOrTypeSymbol> createMembers(object value) 848return ImmutableArray<TNamespaceOrTypeSymbol>.CastUp(builder.ToDowncastedImmutableAndFree<TNamedTypeSymbol>()); 855: ImmutableArray<TNamespaceOrTypeSymbol>.CastUp(ImmutableArray.Create((TNamedTypeSymbol)symbol)); 860internal static Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>> GetTypesFromMemberMap<TKey, TNamespaceOrTypeSymbol, TNamedTypeSymbol> 861(Dictionary<TKey, ImmutableArray<TNamespaceOrTypeSymbol>> map, IEqualityComparer<TKey> comparer) 872var dictionary = new Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>>(capacity, comparer); 876var namedTypes = getOrCreateNamedTypes(entry.Value); 883static ImmutableArray<TNamedTypeSymbol> getOrCreateNamedTypes(ImmutableArray<TNamespaceOrTypeSymbol> members) 890var membersAsNamedTypes = members.As<TNamedTypeSymbol>(); 903return ImmutableArray<TNamedTypeSymbol>.Empty; 917internal static int IndexOf<T>(this ImmutableArray<T> array, T item, IEqualityComparer<T> comparer) 920internal static bool IsSorted<T>(this ImmutableArray<T> array, Comparison<T> comparison) 923internal static bool IsSorted<T>(this ImmutableArray<T> array, IComparer<T>? comparer = null) 938public static bool IsSubsetOf<TElement>(this ImmutableArray<TElement> array, ImmutableArray<TElement> other) 983/// Extension methods that are available on both <see cref="IEnumerable{T}"/> and <see cref="ImmutableArray{T}"/> in System.Linq namespace 984/// are defined in System.Linq namespace to avoid accidental boxing of <see cref="ImmutableArray{T}"/>. 990/// Variant of <see cref="System.Linq.ImmutableArrayExtensions.FirstOrDefault{T}(ImmutableArray{T}, Func{T, bool})"/> 992public static TValue? FirstOrDefault<TValue, TArg>(this ImmutableArray<TValue> array, Func<TValue, TArg, bool> predicate, TArg arg) 1004/// Variant of <see cref="System.Linq.ImmutableArrayExtensions.Single{T}(ImmutableArray{T}, Func{T, bool})"/> 1006public static TValue Single<TValue, TArg>(this ImmutableArray<TValue> array, Func<TValue, TArg, bool> predicate, TArg arg) 1033/// Variant of <see cref="System.Linq.ImmutableArrayExtensions.SequenceEqual{TDerived, TBase}(ImmutableArray{TBase}, ImmutableArray{TDerived}, Func{TBase, TBase, bool})"/>. 1035public static bool SequenceEqual<TElement, TArg>(this ImmutableArray<TElement> array1, ImmutableArray<TElement> array2, TArg arg, Func<TElement, TElement, TArg, bool> predicate) 1066/// Specialization of <see cref="System.Linq.Enumerable.Count{TSource}(IEnumerable{TSource}, Func{TSource, bool})"/> for <see cref="ImmutableArray{T}"/>. 1068public static int Count<T>(this ImmutableArray<T> items, Func<T, bool> predicate) 1084/// Specialization of <see cref="System.Linq.Enumerable.Sum(IEnumerable{int})"/> for <see cref="ImmutableArray{T}"/>. 1086public static int Sum<T>(this ImmutableArray<T> items, Func<T, int> selector) 1096/// Variation of <see cref="System.Linq.Enumerable.Sum(IEnumerable{int})"/> for <see cref="ImmutableArray{T}"/>. 1098public static int Sum<T>(this ImmutableArray<T> items, Func<T, int, int> selector) 1108/// Specialization of <see cref="System.Linq.Enumerable.Concat{TSource}(IEnumerable{TSource}, IEnumerable{TSource})"/> for <see cref="ImmutableArray{T}"/>. 1110public static ImmutableArray<T> Concat<T>(this ImmutableArray<T> first, ImmutableArray<T> second) 1116public static ImmutableArray<T> Concat<T>(this ImmutableArray<T> first, T second) 1122public static ImmutableArray<T> Concat<T>(this ImmutableArray<T> first, ImmutableArray<T> second, ImmutableArray<T> third) 1136public static ImmutableArray<T> Concat<T>(this ImmutableArray<T> first, ImmutableArray<T> second, ImmutableArray<T> third, ImmutableArray<T> fourth) 1152public static ImmutableArray<T> Concat<T>(this ImmutableArray<T> first, ImmutableArray<T> second, ImmutableArray<T> third, ImmutableArray<T> fourth, ImmutableArray<T> fifth) 1168public static ImmutableArray<T> Concat<T>(this ImmutableArray<T> first, ImmutableArray<T> second, ImmutableArray<T> third, ImmutableArray<T> fourth, ImmutableArray<T> fifth, ImmutableArray<T> sixth) 1188public static ImmutableArray<T> Distinct<T>(this ImmutableArray<T> array, IEqualityComparer<T>? comparer = null) 1207var result = (builder.Count == array.Length) ? array : builder.ToImmutable(); 1213/// Variant of <see cref="System.Linq.ImmutableArrayExtensions.Any{T}(ImmutableArray{T}, Func{T, bool})"/>. 1215public static bool Any<T, TArg>(this ImmutableArray<T> array, Func<T, TArg, bool> predicate, TArg arg) 1227/// Variant of <see cref="System.Linq.ImmutableArrayExtensions.All{T}(ImmutableArray{T}, Func{T, bool})"/>. 1229public static bool All<T, TArg>(this ImmutableArray<T> array, Func<T, TArg, bool> predicate, TArg arg) 1248/// Methods that are available on both <see cref="IEnumerable{T}"/> and <see cref="ImmutableArray{T}"/> in System.Collections.Immutable namespace 1249/// are defined in System.Collections.Immutable namespace to avoid accidental boxing of <see cref="ImmutableArray{T}"/>. 1255/// Variant of <see cref="System.Collections.Immutable.ImmutableArray{T}.Contains(T, IEqualityComparer{T})"/> 1257public static bool Contains<T>(this ImmutableArray<T> array, Func<T, bool> predicate) 1261/// Variant of <see cref="System.Collections.Immutable.ImmutableArray.BinarySearch{T}(ImmutableArray{T}, T, IComparer{T}?)"/> 1264public static int BinarySearch<TElement, TValue>(this ImmutableArray<TElement> array, TValue value, Func<TElement, TValue, int> comparer)
src\roslyn\src\Dependencies\Collections\Internal\HashHelpers.cs (1)
40private static readonly ImmutableArray<int> s_primes = ImmutableArray.Create(
src\roslyn\src\Dependencies\Collections\OneOrMany.cs (8)
28public static readonly OneOrMany<T> Empty = new OneOrMany<T>(ImmutableArray<T>.Empty); 31private readonly ImmutableArray<T> _many; 39public OneOrMany(ImmutableArray<T> many) 167: new OneOrMany<T>(ImmutableArray<T>.CastUp(from._many)); 185public ImmutableArray<T> ToImmutable() 206public bool SequenceEqual(ImmutableArray<T> other, IEqualityComparer<T>? comparer = null) 278public static OneOrMany<T> Create<T>(ImmutableArray<T> many) 281public static bool SequenceEqual<T>(this ImmutableArray<T> array, OneOrMany<T> other, IEqualityComparer<T>? comparer = null)
src\roslyn\src\Dependencies\Collections\RoslynImmutableInterlocked.cs (5)
618public static ImmutableArray<T> VolatileRead<T>(ref readonly ImmutableArray<T> location) 620var value = location; 635public static void VolatileWrite<T>(ref ImmutableArray<T> location, ImmutableArray<T> value)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
23/// the scenarios where <see cref="ImmutableArray{T}"/> is applicable, and
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.List.cs (1)
20public static readonly IReadOnlyList<T> Instance = ImmutableArray<T>.Empty;
src\roslyn\src\Dependencies\Collections\TemporaryArray`1.cs (6)
24/// <see cref="ImmutableArray{T}"/>. 179public void AddRange(ImmutableArray<T> items) 299/// Create an <see cref="ImmutableArray{T}"/> with the elements currently held in the temporary array, and clear 302public ImmutableArray<T> ToImmutableAndClear() 310var result = _count switch 3120 => ImmutableArray<T>.Empty,
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilder.cs (27)
61private readonly ImmutableArray<T>.Builder _builder; 83public ImmutableArray<T> ToImmutable() 91public ImmutableArray<T> ToImmutableAndClear() 93ImmutableArray<T> result; 96result = ImmutableArray<T>.Empty; 393public ImmutableArray<T> ToImmutableOrNull() 406public ImmutableArray<U> ToDowncastedImmutable<U>() 411return ImmutableArray<U>.Empty; 423public ImmutableArray<U> ToDowncastedImmutableAndFree<U>() where U : T 425var result = ToDowncastedImmutable<U>(); 433public ImmutableArray<T> ToImmutableAndFree() 437ImmutableArray<T> result; 440result = ImmutableArray<T>.Empty; 613internal Dictionary<K, ImmutableArray<T>> ToDictionary<K>(Func<T, K> keySelector, IEqualityComparer<K>? comparer = null) 618var dictionary1 = new Dictionary<K, ImmutableArray<T>>(1, comparer); 626return new Dictionary<K, ImmutableArray<T>>(comparer); 645var dictionary = new Dictionary<K, ImmutableArray<T>>(accumulator.Count, comparer); 684public void AddRange(ImmutableArray<T> items) 689public void AddRange<U>(ImmutableArray<U> items, Func<U, T> selector) 697public void AddRange(ImmutableArray<T> items, int length) 702public void AddRange(ImmutableArray<T> items, int start, int length) 712public void AddRange<S>(ImmutableArray<S> items) where S : class, T 714AddRange(ImmutableArray<T>.CastUp(items)); 806public ImmutableArray<S> SelectDistinct<S>(Func<T, S> selector) 878public ImmutableArray<TResult> SelectAsArray<TResult>(Func<T, TResult> map) 914public ImmutableArray<TResult> SelectAsArray<TArg, TResult>(Func<T, TArg, TResult> map, TArg arg) 950public ImmutableArray<TResult> SelectAsArrayWithIndex<TArg, TResult>(Func<T, int, TArg, TResult> map, TArg arg)
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilderExtensions.cs (1)
16public static ImmutableArray<T> ToImmutableOrEmptyAndFree<T>(this ArrayBuilder<T>? builder)
src\roslyn\src\Dependencies\Threading\IAsyncEnumerableExtensions.cs (1)
16public static async Task<ImmutableArray<T>> ToImmutableArrayAsync<T>(this IAsyncEnumerable<T> values, CancellationToken cancellationToken)
src\roslyn\src\Dependencies\Threading\ProducerConsumer.cs (7)
25Func<ImmutableArray<TItem>, TArgs, CancellationToken, Task> consumeItems, 49Func<ImmutableArray<TItem>, TArgs, CancellationToken, Task> consumeItems, 127Func<ImmutableArray<TItem>, TArgs, CancellationToken, Task> consumeItems, 141Func<ImmutableArray<TItem>, TArgs, CancellationToken, Task> consumeItems, 191public static Task<ImmutableArray<TItem>> RunParallelAsync<TSource, TArgs>( 204public static async Task<ImmutableArray<TItem>> RunParallelAsync<TSource, TArgs>( 284/// but returns value as an <see cref="IAsyncEnumerable{TItem}"/>. Versus an <see cref="ImmutableArray{TItem}"/>.
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\AdditionalFileProvider.cs (2)
22private readonly ImmutableArray<AdditionalText> _additionalFiles; 24internal AdditionalFileProvider(ImmutableArray<AdditionalText> additionalFiles)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.AssemblyMetricData.cs (5)
25ImmutableArray<CodeAnalysisMetricData> children) 33ImmutableArray<CodeAnalysisMetricData> children = await ComputeAsync(GetChildSymbols(assembly), context).ConfigureAwait(false); 39ImmutableArray<CodeAnalysisMetricData> children = ComputeSynchronously(GetChildSymbols(assembly), context); 43private static AssemblyMetricData ComputeFromChildren(IAssemblySymbol assembly, ImmutableArray<CodeAnalysisMetricData> children, CodeMetricsAnalysisContext context) 72private static ImmutableArray<INamespaceOrTypeSymbol> GetChildSymbols(IAssemblySymbol assembly)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.cs (4)
33ImmutableArray<CodeAnalysisMetricData> children) 112public ImmutableArray<CodeAnalysisMetricData> Children { get; } 323internal static async Task<ImmutableArray<CodeAnalysisMetricData>> ComputeAsync(IEnumerable<ISymbol> children, CodeMetricsAnalysisContext context) 331internal static ImmutableArray<CodeAnalysisMetricData> ComputeSynchronously(IEnumerable<ISymbol> children, CodeMetricsAnalysisContext context)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.EventMetricData.cs (3)
22ImmutableArray<CodeAnalysisMetricData> children) 31ImmutableArray<SyntaxReference> declarations = @event.DeclaringSyntaxReferences; 37ImmutableArray<CodeAnalysisMetricData> children = ComputeSynchronously(GetAccessors(@event), context);
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.FieldMetricData.cs (2)
23linesOfCode, cyclomaticComplexity, depthOfInheritance, children: ImmutableArray<CodeAnalysisMetricData>.Empty) 30ImmutableArray<SyntaxReference> declarations = field.DeclaringSyntaxReferences;
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.MethodMetricData.cs (2)
23linesOfCode, cyclomaticComplexity, depthOfInheritance, children: ImmutableArray<CodeAnalysisMetricData>.Empty) 30ImmutableArray<SyntaxReference> declarations = method.DeclaringSyntaxReferences;
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.NamedTypeMetricData.cs (5)
25ImmutableArray<CodeAnalysisMetricData> children) 35ImmutableArray<CodeAnalysisMetricData> children = await ComputeAsync(members, context).ConfigureAwait(false); 44ImmutableArray<CodeAnalysisMetricData> children = ComputeSynchronously(members, context); 65private static NamedTypeMetricData ComputeFromChildren(INamedTypeSymbol namedType, ImmutableArray<CodeAnalysisMetricData> children, CodeMetricsAnalysisContext context) 68ImmutableArray<SyntaxReference> declarations = namedType.DeclaringSyntaxReferences;
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.NamespaceMetricData.cs (5)
24ImmutableArray<CodeAnalysisMetricData> children) 32ImmutableArray<CodeAnalysisMetricData> children = await ComputeAsync(GetChildSymbols(@namespace), context).ConfigureAwait(false); 38ImmutableArray<CodeAnalysisMetricData> children = ComputeSynchronously(GetChildSymbols(@namespace), context); 42private static NamespaceMetricData ComputeFromChildren(INamespaceSymbol @namespace, ImmutableArray<CodeAnalysisMetricData> children, CodeMetricsAnalysisContext context) 72private static ImmutableArray<INamespaceOrTypeSymbol> GetChildSymbols(INamespaceSymbol @namespace)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.PropertyMetricData.cs (3)
22ImmutableArray<CodeAnalysisMetricData> children) 31ImmutableArray<SyntaxReference> declarations = property.DeclaringSyntaxReferences; 38ImmutableArray<CodeAnalysisMetricData> children = ComputeSynchronously(GetAccessors(property), context);
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (7)
54ImmutableArray<IParameterSymbol> parameters) 62internal static long GetLinesOfCode(ImmutableArray<SyntaxReference> declarations, ISymbol symbol, CodeMetricsAnalysisContext context) 192ImmutableArray<SyntaxReference> declarations, 209var parameters = GetParameters(symbol); 220var attributes = symbol.GetAttributes(); 409internal static ImmutableArray<IParameterSymbol> GetParameters(this ISymbol member) 415_ => ImmutableArray<IParameterSymbol>.Empty,
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\DiagnosticExtensions.cs (5)
29=> node.CreateDiagnostic(rule, additionalLocations: ImmutableArray<Location>.Empty, properties, args); 34ImmutableArray<Location> additionalLocations, 63ImmutableArray<Location> additionalLocations, 110=> location.CreateDiagnostic(rule, ImmutableArray<Location>.Empty, properties, args); 115ImmutableArray<Location> additionalLocations,
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\IMethodSymbolExtensions.cs (2)
547public static ImmutableArray<IMethodSymbol> GetOriginalDefinitions(this IMethodSymbol methodSymbol) 549ImmutableArray<IMethodSymbol>.Builder originalDefinitionsBuilder = ImmutableArray.CreateBuilder<IMethodSymbol>();
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\ImmutableArrayExtensions.cs (6)
13/// <param name="source">The <see cref="ImmutableArray{TSource}"/> to check for cardinality.</param> 16public static bool HasExactly<TSource>(this ImmutableArray<TSource> source, int count) => source.Length == count; 22/// <param name="source">The <see cref="ImmutableArray{TSource}"/> to check for cardinality.</param> 25public static bool HasMoreThan<TSource>(this ImmutableArray<TSource> source, int count) => source.Length > count; 31/// <param name="source">The <see cref="ImmutableArray{TSource}"/> to check for cardinality.</param> 34public static bool HasFewerThan<TSource>(this ImmutableArray<TSource> source, int count) => source.Length < count;
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\IOperationExtensions.cs (5)
83public static ImmutableArray<IOperation> GetTopmostExplicitDescendants(this IOperation operation) 166public static IOperation? GetAncestor(this IOperation root, ImmutableArray<OperationKind> ancestorKinds, Func<IOperation, bool>? predicate = null) 381private static readonly ImmutableArray<OperationKind> s_LambdaAndLocalFunctionKinds = 491this ImmutableArray<IArgumentOperation> arguments, 512this ImmutableArray<IArgumentOperation> arguments,
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\IPropertySymbolExtensions.cs (2)
22public static ImmutableArray<IPropertySymbol> GetOriginalDefinitions(this IPropertySymbol propertySymbol) 24ImmutableArray<IPropertySymbol>.Builder originalDefinitionsBuilder = ImmutableArray.CreateBuilder<IPropertySymbol>();
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\ITypeSymbolExtensions.cs (2)
155var current = type.GetAttributes(); 222var current = type.GetAttributes();
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\OperationKinds.cs (1)
12public static ImmutableArray<OperationKind> MemberReference { get; }
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\HashUtilities.cs (2)
25internal static int Combine<T>(ImmutableArray<T> array) 32internal static void Combine<T>(ImmutableArray<T> array, ref RoslynHashCode hashCode)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\AnalyzerOptionsExtensions.cs (4)
408var matchingSymbols = DocumentationCommentId.GetSymbolsForDeclarationId(genericInterfaceFullName, compilation); 489var names = optionValue.Split(['|'], StringSplitOptions.RemoveEmptyEntries).ToImmutableArray(); 542public static ImmutableArray<string> GetMSBuildItemMetadataValues( 553return ImmutableArray<string>.Empty;
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\MSBuildItemOptionNames.cs (2)
41public static ImmutableArray<string> ParseItemOptionValue(string? itemOptionValue) 45return ImmutableArray<string>.Empty;
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (1)
81public static SymbolNamesWithValueOption<TValue> Create(ImmutableArray<string> symbolNames, Compilation compilation, string? optionalPrefix,
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\WellKnownTypeProvider.cs (6)
33_referencedAssemblies = new Lazy<ImmutableArray<IAssemblySymbol>>( 62private readonly Lazy<ImmutableArray<IAssemblySymbol>> _referencedAssemblies; 81private static readonly ConcurrentDictionary<string, ImmutableArray<string>> _fullTypeNameToNamespaceNames = 120ImmutableArray<string> namespaceNames; 214private static ImmutableArray<string> GetNamespaceNamesFromFullTypeName(string fullTypeName) 297private static bool IsSubsetOfCollection<T>(ImmutableArray<T> set1, ICollection<T> set2)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\WordParser.cs (2)
202public static bool ContainsWord(string text, WordParserOptions options, ImmutableArray<string> words) 236internal static bool ContainsWord(string text, WordParserOptions options, char prefix, ImmutableArray<string> words)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleHelpers.cs (3)
119this ImmutableArray<IOption2>.Builder optionsBuilder, 132this ImmutableArray<IOption2>.Builder optionsBuilder, 144this ImmutableArray<IOption2>.Builder optionsBuilder,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleOptions2.cs (2)
21private static readonly ImmutableArray<IOption2>.Builder s_editorConfigOptionsBuilder = ImmutableArray.CreateBuilder<IOption2>(); 356internal static readonly ImmutableArray<IOption2> EditorConfigOptions = s_editorConfigOptionsBuilder.ToImmutable();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\VisualBasic\VisualBasicCodeStyleOptions.cs (2)
14private static readonly ImmutableArray<IOption2>.Builder s_allOptionsBuilder = ImmutableArray.CreateBuilder<IOption2>(); 55public static ImmutableArray<IOption2> EditorConfigOptions => s_allOptionsBuilder.ToImmutable();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\IntervalTreeAlgorithms`2.cs (4)
19public ImmutableArray<T> GetIntervalsThatMatch<TIntrospector, TIntervalTester>( 29public ImmutableArray<T> GetIntervalsThatOverlapWith<TIntrospector>( 36public ImmutableArray<T> GetIntervalsThatIntersectWith<TIntrospector>( 43public ImmutableArray<T> GetIntervalsThatContain<TIntrospector>(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\SimpleMutableIntervalTree`2.cs (3)
39public ImmutableArray<T> GetIntervalsThatOverlapWith(int start, int length) 42public ImmutableArray<T> GetIntervalsThatIntersectWith(int start, int length) 45public ImmutableArray<T> GetIntervalsThatContain(int start, int length)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Diagnostics\IPragmaSuppressionsAnalyzer.cs (1)
26Func<DiagnosticAnalyzer, ImmutableArray<DiagnosticDescriptor>> getSupportedDiagnostics,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Editing\GenerationOptions.cs (1)
30public static readonly ImmutableArray<IOption2> EditorConfigOptions = [PlaceSystemNamespaceFirst, SeparateImportDirectiveGroups];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\Common\EmbeddedSeparatedSyntaxNodeList.cs (2)
17public ImmutableArray<EmbeddedSyntaxNodeOrToken<TSyntaxKind, TSyntaxNode>> NodesAndTokens { get; } 25ImmutableArray<EmbeddedSyntaxNodeOrToken<TSyntaxKind, TSyntaxNode>> nodesAndTokens)
src\roslyn\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) 56public EmbeddedSyntaxToken<TSyntaxKind> WithDiagnostics(ImmutableArray<EmbeddedDiagnostic> diagnostics) 61Optional<ImmutableArray<EmbeddedSyntaxTrivia<TSyntaxKind>>> leadingTrivia = default, 63Optional<ImmutableArray<EmbeddedSyntaxTrivia<TSyntaxKind>>> trailingTrivia = default, 64Optional<ImmutableArray<EmbeddedDiagnostic>> diagnostics = default,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\Common\EmbeddedSyntaxTree.cs (2)
17public readonly ImmutableArray<EmbeddedDiagnostic> Diagnostics; 22ImmutableArray<EmbeddedDiagnostic> diagnostics)
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\VirtualCharGreenSequence.Chunks.cs (1)
15/// is used so we can expose <see cref="VirtualChar"/>s over an <see cref="ImmutableArray{VirtualChar}"/>
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\VirtualCharUtilities.cs (1)
26public static (ImmutableSegmentedList<VirtualChar> sourceCode, ImmutableArray<TextSpan> markdownSpans) StripMarkupCharacters(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\CollectionExpressionUtilities.cs (3)
97var constructors = namedType.Constructors; 122IMethodSymbol? GetAccessibleInstanceConstructor(ImmutableArray<IMethodSymbol> constructors, Func<IMethodSymbol, bool> predicate) 145public static ImmutableArray<IMethodSymbol>? TryGetCollectionBuilderFactoryMethods(
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DirectiveInfo.cs (2)
12Dictionary<TDirectiveTriviaSyntax, ImmutableArray<TDirectiveTriviaSyntax>> conditionalMap) 19public Dictionary<TDirectiveTriviaSyntax, ImmutableArray<TDirectiveTriviaSyntax>> ConditionalMap { get; } = conditionalMap;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ImmutableArrayExtensions.cs (6)
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> ToImmutableAndClear<T>(this ImmutableArray<T>.Builder builder) 42var result = builder.ToImmutable();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ObjectWriterExtensions.cs (3)
13public static void WriteArray<T>(this ObjectWriter writer, ImmutableArray<T> values, Action<ObjectWriter, T> write) 23public static ImmutableArray<T> ReadArray<T>(this ObjectReader reader, Func<ObjectReader, T> read) 26public static ImmutableArray<T> ReadArray<T, TArg>(this ObjectReader reader, Func<ObjectReader, TArg, T> read, TArg arg)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (3)
341public static bool HasAnyOperationDescendant(this ImmutableArray<IOperation> operationBlocks, Func<IOperation, bool> predicate) 374public static bool HasAnyOperationDescendant(this ImmutableArray<IOperation> operationBlocks, OperationKind kind) 437static IOperation? TryGetSingleExplicitStatement(ImmutableArray<IOperation> operations)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SemanticModelExtensions.cs (2)
140var typeArguments = type.GetAllTypeArguments(); 178ImmutableArray<ITypeSymbol> typeArguments,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\StackExtensions.cs (1)
39public static void Push<T>(this Stack<T> stack, ImmutableArray<T> values)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\StringExtensions.cs (1)
188public static ImmutableArray<SymbolDisplayPart> ToSymbolDisplayParts(this string text)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SymbolInfoExtensions.cs (3)
16public static ImmutableArray<ISymbol> GetAllSymbols(this SymbolInfo info) 19private static ImmutableArray<ISymbol> GetAllSymbolsWorker(this SymbolInfo info) 25public static ImmutableArray<ISymbol> GetBestOrAllSymbols(this SymbolInfo info)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (2)
862var conditionalMap = new Dictionary<TDirectiveTriviaSyntax, ImmutableArray<TDirectiveTriviaSyntax>>( 928var condDirectives = condDirectivesBuilder.ToImmutableAndClear();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\TextSpanExtensions.cs (2)
21public static ImmutableArray<TextSpan> ToNormalizedSpans(this ImmutableArray<TextSpan> spans)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\CustomDataFlowAnalysis.cs (2)
32var blocks = controlFlowGraph.Blocks; 67ImmutableArray<BasicBlock> blocks,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.AnalysisData.cs (2)
144ImmutableArray<IParameterSymbol> parameters) 152ImmutableArray<IParameterSymbol> parameters)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageResult.cs (1)
47public ImmutableArray<(ISymbol Symbol, IOperation WriteOperation)> GetUnreadSymbolWrites()
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.cs (2)
412var intervals = tree.GetIntervalsThatContain(textSpan.Start, textSpan.Length); 542var anchorData = _anchorTree.GetIntervalsThatOverlapWith(baseAnchorData.TextSpan.Start, baseAnchorData.TextSpan.Length);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.InitialContextFinder.cs (3)
43public (List<IndentBlockOperation> indentOperations, ImmutableArray<SuppressOperation> suppressOperations) Do(SyntaxToken startToken, SyntaxToken endToken) 53var initialSuppressOperations = GetInitialSuppressOperations(startToken, endToken); 124private ImmutableArray<SuppressOperation> GetInitialSuppressOperations(SyntaxToken startToken, SyntaxToken endToken)
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\ChainedFormattingRules.cs (9)
21private readonly ImmutableArray<AbstractFormattingRule> _formattingRules; 24private readonly ImmutableArray<AbstractFormattingRule> _addSuppressOperationsRules; 25private readonly ImmutableArray<AbstractFormattingRule> _addAnchorIndentationOperationsRules; 26private readonly ImmutableArray<AbstractFormattingRule> _addIndentBlockOperationsRules; 27private readonly ImmutableArray<AbstractFormattingRule> _addAlignTokensOperationsRules; 28private readonly ImmutableArray<AbstractFormattingRule> _getAdjustNewLinesOperationRules; 29private readonly ImmutableArray<AbstractFormattingRule> _getAdjustSpacesOperationRules; 82private static ImmutableArray<AbstractFormattingRule> FilterToRulesImplementingMethod(ImmutableArray<AbstractFormattingRule> rules, string name)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingOptions2.cs (2)
97internal static readonly ImmutableArray<IOption2> EditorConfigOptions = [UseTabs, TabSize, IndentationSize, NewLine, InsertFinalNewLine]; 102internal static readonly ImmutableArray<IOption2> UndocumentedOptions = [WrappingColumn, ConditionalExpressionWrappingLength];
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextAlignTokensOperationAction.cs (1)
12ImmutableArray<AbstractFormattingRule> formattingRules,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextAnchorIndentationOperationAction.cs (1)
12ImmutableArray<AbstractFormattingRule> formattingRules,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextGetAdjustNewLinesOperation.cs (1)
11ImmutableArray<AbstractFormattingRule> formattingRules,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextGetAdjustSpacesOperation.cs (1)
11ImmutableArray<AbstractFormattingRule> formattingRules,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextIndentBlockOperationAction.cs (1)
12ImmutableArray<AbstractFormattingRule> formattingRules,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextSuppressOperationAction.cs (1)
12ImmutableArray<AbstractFormattingRule> formattingRules,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\TriviaEngine\AbstractTriviaFormatter.cs (1)
265public ImmutableArray<TextChange> FormatToTextChanges(CancellationToken cancellationToken)
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Helpers\RemoveUnnecessaryImports\IUnnecessaryImportsProvider.cs (2)
15ImmutableArray<TSyntaxNode> GetUnnecessaryImports(SemanticModel model, TextSpan? span, CancellationToken cancellationToken); 17ImmutableArray<TSyntaxNode> GetUnnecessaryImports(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Indentation\AbstractIndentation.Indenter.cs (1)
44ImmutableArray<AbstractFormattingRule> rules,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser_SymbolSpec.cs (12)
49out Property<ImmutableArray<SymbolKindOrTypeKind>> kinds, 50out Property<ImmutableArray<Accessibility>> accessibilities, 51out Property<ImmutableArray<ModifierKind>> modifiers) 86private static readonly ImmutableArray<SymbolKindOrTypeKind> s_allApplicableKinds = 89private static ImmutableArray<SymbolKindOrTypeKind> ParseSymbolKindList(string symbolSpecApplicableKinds) 156private static readonly ImmutableArray<Accessibility> s_allAccessibility = 167private static ImmutableArray<Accessibility> ParseAccessibilityKindList(string symbolSpecApplicableAccessibilities) 220private static readonly ImmutableArray<ModifierKind> _allModifierKind = [s_abstractModifierKind, s_asyncModifierKind, s_constModifierKind, s_readonlyModifierKind, s_staticModifierKind]; 222private static ImmutableArray<ModifierKind> ParseModifiers(string symbolSpecRequiredModifiers) 264public static string ToEditorConfigString(this ImmutableArray<SymbolKindOrTypeKind> symbols) 362public static string ToEditorConfigString(this ImmutableArray<Accessibility> accessibilities, string languageName) 421public static string ToEditorConfigString(this ImmutableArray<ModifierKind> modifiers, string languageName)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Naming\IdentifierNameParts.cs (6)
15internal readonly struct IdentifierNameParts(string baseName, ImmutableArray<string> baseNameParts) 18public readonly ImmutableArray<string> BaseNameParts = baseNameParts; 20public static IdentifierNameParts CreateIdentifierNameParts(ISymbol symbol, ImmutableArray<NamingRule> rules) 31var words = CreateWords(parts, baseName); 36private static string RemovePrefixesAndSuffixes(ISymbol symbol, ImmutableArray<NamingRule> rules, string baseName) 73private static ImmutableArray<string> CreateWords(in TemporaryArray<TextSpan> parts, string name)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (1)
61public string CreateName(ImmutableArray<string> words)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyleOptions.cs (1)
32internal static readonly ImmutableArray<IOption2> EditorConfigOptions = [NamingPreferences];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyleRules.cs (5)
11internal sealed class NamingStyleRules(ImmutableArray<NamingRule> namingRules) 13public ImmutableArray<NamingRule> NamingRules { get; } = namingRules; 15private readonly ImmutableArray<SymbolKind> _symbolKindsThatCanBeOverridden = 88var implementedInterfaces = containingType.AllInterfaces; 92var implementedInterfaceMembersWithSameName = implementedInterface.GetMembers(symbol.Name);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (10)
27public readonly ImmutableArray<SymbolSpecification> SymbolSpecifications; 30public readonly ImmutableArray<NamingStyle> NamingStyles; 33public ImmutableArray<SerializableNamingRule> SerializableNamingRules 57ImmutableArray<SymbolSpecification> symbolSpecifications, 58ImmutableArray<NamingStyle> namingStyles, 59ImmutableArray<SerializableNamingRule> serializableRules) 76ImmutableArray<SymbolSpecification> symbolSpecifications, 77ImmutableArray<NamingStyle> namingStyles, 78ImmutableArray<NamingRule> namingRules) 336public static NamingStylePreferences Empty { get; } = new([], [], ImmutableArray<NamingRule>.Empty);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (10)
26ImmutableArray<SymbolSpecification.SymbolKindOrTypeKind> symbolKindList, 27ImmutableArray<Accessibility> accessibilityList = default, 28ImmutableArray<SymbolSpecification.ModifierKind> modifiers = default) : IEquatable<SymbolSpecification> 39public ImmutableArray<SymbolKindOrTypeKind> ApplicableSymbolKindList { get; } = symbolKindList.IsDefault ? DefaultSymbolSpecificationTemplate.ApplicableSymbolKindList : symbolKindList; 42public ImmutableArray<Accessibility> ApplicableAccessibilityList { get; } = accessibilityList.IsDefault ? DefaultSymbolSpecificationTemplate.ApplicableAccessibilityList : accessibilityList; 45public ImmutableArray<ModifierKind> RequiredModifierList { get; } = modifiers.IsDefault ? DefaultSymbolSpecificationTemplate.RequiredModifierList : modifiers; 120private static Modifiers CollapseModifiers(ImmutableArray<ModifierKind> requiredModifierList) 285private static ImmutableArray<SymbolKindOrTypeKind> GetSymbolKindListFromXElement(XElement symbolKindListElement) 306private static ImmutableArray<Accessibility> GetAccessibilityListFromXElement(XElement accessibilityListElement) 312private static ImmutableArray<ModifierKind> GetModifierListFromXElement(XElement modifierListElement)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionDefinition.cs (4)
104type == typeof(ImmutableArray<bool>) || 105type == typeof(ImmutableArray<string>) || 106type == typeof(ImmutableArray<int>) || 107type == typeof(ImmutableArray<long>);
src\roslyn\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\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\FileBannerFacts\IFileBannerFactsExtensions.cs (2)
12public static ImmutableArray<SyntaxTrivia> GetTriviaAfterLeadingBlankLines( 15var leadingBlankLines = bannerService.GetLeadingBlankLines(node);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\HeaderFacts\AbstractHeaderFacts.cs (2)
30=> IsOnHeader(root, position, ownerOfHeader, lastTokenOrNodeOfHeader, ImmutableArray<SyntaxNode>.Empty); 37ImmutableArray<THoleSyntax> holes)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SelectedMembers\AbstractSelectedMembers.cs (5)
31protected abstract ImmutableArray<(SyntaxNode declarator, SyntaxToken identifier)> GetDeclaratorsAndIdentifiers(TMemberDeclarationSyntax member); 33public Task<ImmutableArray<SyntaxNode>> GetSelectedFieldsAndPropertiesAsync( 37public Task<ImmutableArray<SyntaxNode>> GetSelectedMembersAsync( 41private async Task<ImmutableArray<SyntaxNode>> GetSelectedMembersAsync( 76private ImmutableArray<SyntaxNode> GetMembersInSpan(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SemanticFacts\ISemanticFacts.cs (4)
85ImmutableArray<IMethodSymbol> GetDeconstructionAssignmentMethods(SemanticModel semanticModel, SyntaxNode node); 87ImmutableArray<IMethodSymbol> GetDeconstructionForEachMethods(SemanticModel semanticModel, SyntaxNode node); 99ImmutableArray<ISymbol> GetBestOrAllSymbols(SemanticModel semanticModel, SyntaxNode? node, SyntaxToken token, CancellationToken cancellationToken); 106ImmutableArray<IMethodSymbol> GetLocalFunctionSymbols(Compilation compilation, ISymbol symbol, CancellationToken cancellationToken);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SyntaxFacts\ISyntaxFacts.cs (1)
187ImmutableArray<SyntaxNode> GetMatchingConditionalDirectives(SyntaxNode directive, CancellationToken cancellationToken);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SyntaxFacts\ISyntaxFactsExtensions.cs (1)
160this ISyntaxFacts syntaxFacts, ImmutableArray<SyntaxNode> nodes, CancellationToken cancellationToken)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Simplification\SymbolAnnotation.cs (1)
23public static ImmutableArray<ISymbol> GetSymbols(SyntaxAnnotation annotation, Compilation compilation)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.AnonymousTypeSymbolKey.cs (8)
21var properties = symbol.GetMembers().OfType<IPropertySymbol>().ToImmutableArray(); 22var propertyTypes = properties.SelectAsArray(p => p.Type); 23var propertyNames = properties.SelectAsArray(p => (string?)p.Name); 24var propertyIsReadOnly = properties.SelectAsArray(p => p.SetMethod == null); 25var propertyLocations = properties.SelectAsArray(p => p.Locations.FirstOrDefault()); 38var contextualProperties = contextualSymbol?.GetMembers().OfType<IPropertySymbol>().ToImmutableArray() ?? []; 48var propertyLocations = ReadPropertyLocations(reader, out var propertyLocationsFailureReason); 75private static ImmutableArray<Location> ReadPropertyLocations(SymbolKeyReader reader, out string? failureReason)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.BodyLevelSymbolKey.cs (2)
19public static ImmutableArray<Location?> GetBodyLevelSourceLocations(ISymbol symbol, CancellationToken cancellationToken) 63var locations = GetBodyLevelSourceLocations(symbol, cancellationToken);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (5)
152var locations = BodyLevelSymbolKey.GetBodyLevelSourceLocations(symbol, cancellationToken); 261ImmutableArray<ISymbol>.CastUp(symbols.Builder.ToImmutableAndClear()), 266private static T? SafeGet<T>(ImmutableArray<T> values, int index) where T : class 276ImmutableArray<IParameterSymbol> parameters, 303var members = metadataName == null
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.ErrorTypeSymbolKey.cs (2)
44visitor.WriteSymbolKeyArray(ImmutableArray<ITypeSymbol>.Empty); 52private static ImmutableArray<string?> GetContainingNamespaceNamesInReverse(INamespaceSymbol namespaceSymbol)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.FunctionPointerTypeSymbolKey.cs (2)
37var callingConventionModifiers = ImmutableArray<INamedTypeSymbol>.Empty;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.ModuleSymbolKey.cs (1)
38if (assemblyModules is ImmutableArray<IModuleSymbol> modules)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.ParameterSymbolKey.cs (1)
85string metadataName, int ordinal, ImmutableArray<IParameterSymbol> parameters)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.PooledArrayBuilder.cs (2)
34public ImmutableArray<T> ToImmutable() => Builder.ToImmutable(); 52public void AddValuesIfNotNull(ImmutableArray<T> values)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
384ImmutableArray<IParameterSymbol> parameters)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (7)
277internal void WriteSymbolKeyArray<TSymbol>(ImmutableArray<TSymbol> symbols) 283internal void WriteParameterTypesArray(ImmutableArray<IParameterSymbol> symbols) 286internal void WriteBooleanArray(ImmutableArray<bool> array) 292internal void WriteStringArray(ImmutableArray<string?> strings) 295internal void WriteLocationArray(ImmutableArray<Location?> array) 300internal void WriteRefKindArray(ImmutableArray<IParameterSymbol> values) 303private void WriteArray<T, U>(ImmutableArray<T> array, Action<U> writeValue)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TupleTypeSymbolKey.cs (4)
67var elementLocations = ReadElementLocations(reader, out var elementLocationsFailureReason); 80var elementNamesArray = elementNames.ToImmutable(); 95var elementLocations = ReadElementLocations(reader, out var elementLocationsFailureReason); 126private static ImmutableArray<Location> ReadElementLocations(SymbolKeyReader reader, out string? failureReason)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKeyResolution.cs (2)
27internal SymbolKeyResolution(ImmutableArray<ISymbol> candidateSymbols, CandidateReason candidateReason) 38public ImmutableArray<ISymbol> CandidateSymbols => field.NullToEmpty();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (10)
112SemanticModel model, TForEachStatementSyntax forEach, out IMethodSymbol getEnumeratorMethod, out ITypeSymbol elementType, out ImmutableArray<ILocalSymbol> localVariables); 120protected abstract ImmutableArray<TArgumentSyntax> GetArguments(TExpressionSyntax expression); 778GetForEachSymbols(this.OriginalSemanticModel, forEachStatement, out var originalGetEnumerator, out var originalElementType, out var originalLocalVariables); 779GetForEachSymbols(this.SpeculativeSemanticModel, newForEachStatement, out var newGetEnumerator, out var newElementType, out var newLocalVariables); 1055var specifiedArguments = GetArguments(originalInvocation); 1058var symbolParameters = originalSymbol.GetParameters(); 1059var newSymbolParameters = newSymbol.GetParameters(); 1068ImmutableArray<TArgumentSyntax> specifiedArguments, 1069ImmutableArray<IParameterSymbol> signature1Parameters, 1070ImmutableArray<IParameterSymbol> signature2Parameters)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.Builder.cs (2)
139private void BuildArrays(ImmutableArray<Node>.Builder nodes, ImmutableArray<Edge>.Builder edges)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.cs (4)
49private readonly ImmutableArray<Node> _nodes; 50private readonly ImmutableArray<Edge> _edges; 52private BKTree(char[] concatenatedLowerCaseWords, ImmutableArray<Node> nodes, ImmutableArray<Edge> edges)
src\roslyn\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\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IAsyncEnumerableExtensions.cs (1)
38public static IAsyncEnumerable<T> MergeAsync<T>(this ImmutableArray<IAsyncEnumerable<T>> streams, CancellationToken cancellationToken)
src\roslyn\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\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\InterceptsLocationUtilities.cs (4)
20internal record struct InterceptsLocationData(ImmutableArray<byte> ContentHash, int Position) 31public static ImmutableArray<InterceptsLocationData> GetInterceptsLocationData(ImmutableArray<AttributeData> attributes) 103var contentHash = bytes[HashIndex..HashSize].ToImmutableArray();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\LightweightOverloadResolution.cs (4)
31public IMethodSymbol? RefineOverload(SymbolInfo symbolInfo, ImmutableArray<IMethodSymbol> candidates) 34public (IMethodSymbol? method, int parameterIndex) RefineOverloadAndPickParameter(SymbolInfo symbolInfo, ImmutableArray<IMethodSymbol> candidates) 52private (IMethodSymbol? symbol, int parameterIndex) GuessCurrentSymbolAndParameter(ImmutableArray<IMethodSymbol> methodGroup) 85var parameters = method.Parameters;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PathMetadataUtilities.cs (2)
27var parts = folders.SelectMany(folder => folder.Split(NamespaceSeparatorArray)).SelectAsArray(syntaxFacts.EscapeIdentifier); 59public static ImmutableArray<string> BuildFoldersFromNamespace(string? @namespace, string? rootNamespace = null)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PooledBuilderExtensions.cs (6)
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) 47public static ImmutableDictionary<K, ImmutableArray<V>> ToImmutableMultiDictionaryAndFree<K, V, TArg>(this PooledDictionary<K, ArrayBuilder<V>> builders, Func<K, TArg, bool>? where, TArg whereArg) 50var result = ImmutableDictionary.CreateBuilder<K, ImmutableArray<V>>(); 77public static ImmutableArray<T> ToFlattenedImmutableArrayAndFree<T>(this ArrayBuilder<ArrayBuilder<T>> builders)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\RestrictedInternalsVisibleToAttribute.cs (1)
13public ImmutableArray<string> AllowedNamespaces { get; } = [.. allowedNamespaces];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SerializableBytes.cs (1)
222public ImmutableArray<byte> ToImmutableArray()
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SpecializedTasks.cs (4)
46public static Task<ImmutableArray<T>> EmptyImmutableArray<T>() 87public static async ValueTask<ImmutableArray<TResult>> WhenAll<TResult>(this IReadOnlyCollection<Task<TResult>> tasks) 102public static readonly Task<ImmutableArray<T>> EmptyImmutableArray = Task.FromResult(ImmutableArray<T>.Empty);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (4)
29public static ImmutableArray<Compilation> GetReferencedCompilations(this Compilation compilation) 48public static ImmutableArray<IAssemblySymbol> GetReferencedAssemblySymbols(this Compilation compilation, bool excludePreviousSubmissions = false) 52var referencedAssemblySymbols = compilation.Assembly.Modules.First().ReferencedAssemblySymbols; 193=> compilation.GetTypeByMetadataName(typeof(ImmutableArray<>).FullName!);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IMethodSymbolExtensions.cs (1)
49public static ImmutableArray<IMethodSymbol> GetAllMethodSymbolsOfPartialParts(this IMethodSymbol method)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (25)
44public static ImmutableArray<ITypeParameterSymbol> GetAllTypeParameters(this INamedTypeSymbol? symbol) 50public static ImmutableArray<ITypeSymbol> GetAllTypeArguments(this INamedTypeSymbol? symbol) 190public static ImmutableArray<(INamedTypeSymbol type, ImmutableArray<ISymbol> members)> GetAllUnimplementedMembers( 208static ImmutableArray<ISymbol> GetImplicitlyImplementableMembers(INamedTypeSymbol type, ISymbol within) 260public static ImmutableArray<(INamedTypeSymbol type, ImmutableArray<ISymbol> members)> GetAllUnimplementedMembersInThis( 278public static ImmutableArray<(INamedTypeSymbol type, ImmutableArray<ISymbol> members)> GetAllUnimplementedMembersInThis( 281Func<INamedTypeSymbol, ISymbol, ImmutableArray<ISymbol>> interfaceMemberGetter, 297public static ImmutableArray<(INamedTypeSymbol type, ImmutableArray<ISymbol> members)> GetAllUnimplementedExplicitMembers( 311private static ImmutableArray<ISymbol> GetExplicitlyImplementableMembers(INamedTypeSymbol type, ISymbol within) 338private static ImmutableArray<(INamedTypeSymbol type, ImmutableArray<ISymbol> members)> GetAllUnimplementedMembers( 343Func<INamedTypeSymbol, ISymbol, ImmutableArray<ISymbol>> interfaceMemberGetter, 367var typesToImplement = GetTypesToImplement(classOrStructType, interfacesOrAbstractClasses, allowReimplementation, cancellationToken); 372private static ImmutableArray<INamedTypeSymbol> GetTypesToImplement( 383private static ImmutableArray<INamedTypeSymbol> GetAbstractClassesToImplement( 389private static ImmutableArray<INamedTypeSymbol> GetInterfacesToImplement( 404var alreadyImplementedInterfaces = baseType == null || allowReimplementation 413private static ImmutableArray<ISymbol> GetUnimplementedMembers( 418Func<INamedTypeSymbol, ISymbol, ImmutableArray<ISymbol>> interfaceMemberGetter, 528private static ImmutableArray<ISymbol> GetMembers(INamedTypeSymbol type, ISymbol within) 541public static ImmutableArray<ISymbol> GetOverridableMembers(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (12)
141public static ImmutableArray<ISymbol> ExplicitInterfaceImplementations(this ISymbol symbol) 144IEventSymbol @event => ImmutableArray<ISymbol>.CastUp(@event.ExplicitInterfaceImplementations), 145IMethodSymbol method => ImmutableArray<ISymbol>.CastUp(method.ExplicitInterfaceImplementations), 146IPropertySymbol property => ImmutableArray<ISymbol>.CastUp(property.ExplicitInterfaceImplementations), 150public static ImmutableArray<ISymbol> ExplicitOrImplicitInterfaceImplementations(this ISymbol symbol) 175public static ImmutableArray<ISymbol> ImplicitInterfaceImplementations(this ISymbol symbol) 423public static ImmutableArray<IParameterSymbol> GetParameters(this ISymbol? symbol) 431public static ImmutableArray<ITypeParameterSymbol> GetTypeParameters(this ISymbol? symbol) 439public static ImmutableArray<ITypeParameterSymbol> GetAllTypeParameters(this ISymbol? symbol) 452public static ImmutableArray<ITypeSymbol> GetTypeArguments(this ISymbol? symbol) 460public static ImmutableArray<ITypeSymbol> GetAllTypeArguments(this ISymbol symbol) 705var potentialGetAwaiters = semanticModel.LookupSymbols(position,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (6)
43public static ImmutableArray<INamedTypeSymbol> GetAllInterfacesIncludingThis(this ITypeSymbol type) 45var allInterfaces = type.AllInterfaces; 446public static ImmutableArray<T> GetAccessibleMembersInThisAndBaseTypes<T>(this ITypeSymbol? containingType, ISymbol within) where T : class, ISymbol 456public static ImmutableArray<T> GetAccessibleMembersInThisAndBaseTypes<T>(this ITypeSymbol? containingType, string memberName, ISymbol within) where T : class, ISymbol 593var allTypeArgs1 = n1.GetAllTypeArguments(); 594var allTypeArgs2 = n2.GetAllTypeArguments();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.SubstituteTypesVisitor.cs (1)
72var allTypeArguments = symbol.GetAllTypeArguments();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SignatureComparer.cs (4)
108ImmutableArray<IParameterSymbol> parameters1, 109ImmutableArray<IParameterSymbol> parameters2) 118ImmutableArray<IParameterSymbol> parameters1, 119ImmutableArray<IParameterSymbol> parameters2,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.cs (2)
43private readonly ImmutableArray<EquivalenceVisitor> _equivalenceVisitors; 44private readonly ImmutableArray<GetHashCodeVisitor> _getHashCodeVisitors;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (8)
76internal 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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (1)
109private static int CombineHashCodes<T>(ImmutableArray<T> array, int currentHash, Func<int, T, int> func)
Microsoft.CodeAnalysis.Scripting (108)
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 (6)
78var sourceFiles = Compiler.Arguments.SourceFiles; 197return new CommonCompiler.LoggingSourceFileResolver(arguments.SourcePaths, arguments.BaseDirectory, ImmutableArray<KeyValuePair<string, string>>.Empty, loggerOpt); 296var diagnostics = newScript.Compile(cancellationToken); 326var newReferenceSearchPaths = ImmutableArray.CreateRange(globals.ReferencePaths); 327var newSourceSearchPaths = ImmutableArray.CreateRange(globals.SourcePaths); 376private void DisplayDiagnostics(ImmutableArray<Diagnostic> diagnostics)
Hosting\Resolvers\NuGetPackageResolver.cs (1)
49internal abstract ImmutableArray<string> ResolveNuGetPackage(string packageName, string packageVersion);
Hosting\Resolvers\RuntimeMetadataReferenceResolver.cs (9)
44internal static ImmutableArray<string> AssemblyExtensions = ImmutableArray.Create(".dll", ".exe"); 52ImmutableArray<string> searchPaths = default, 66ImmutableArray<string> searchPaths = default, 70ImmutableArray<string> platformAssemblyPaths = default, 142public override ImmutableArray<PortableExecutableReference> ResolveReference(string reference, string? baseFilePath, MetadataReferenceProperties properties) 148var paths = PackageResolver.ResolveNuGetPackage(packageName, packageVersion); 194return ImmutableArray<PortableExecutableReference>.Empty; 200internal static ImmutableArray<string> GetTrustedPlatformAssemblyPaths() 203internal static ImmutableDictionary<string, string> GetTrustedPlatformAssemblies(ImmutableArray<string> paths)
Script.cs (17)
137WithReferences(ImmutableArray<MetadataReference>.Empty). 138WithImports(ImmutableArray<string>.Empty); 231public ImmutableArray<Diagnostic> Compile(CancellationToken cancellationToken = default(CancellationToken)) 234internal abstract ImmutableArray<Diagnostic> CommonCompile(CancellationToken cancellationToken); 245internal ImmutableArray<MetadataReference> GetReferencesForCompilation( 282var resolved = resolver.ResolveReference(unresolved.Reference, null, unresolved.Properties); 341private ImmutableArray<Func<object[], Task>> _lazyPrecedingExecutors; 358internal override ImmutableArray<Diagnostic> CommonCompile(CancellationToken cancellationToken) 398private ImmutableArray<Func<object[], Task>> GetPrecedingExecutors(CancellationToken cancellationToken) 402var preceding = TryGetPrecedingExecutors(null, cancellationToken); 411private ImmutableArray<Func<object[], Task>> TryGetPrecedingExecutors(Script lastExecutedScriptInChainOpt, CancellationToken cancellationToken) 416return ImmutableArray<Func<object[], Task>>.Empty; 430return default(ImmutableArray<Func<object[], Task>>); 495var precedingExecutors = GetPrecedingExecutors(cancellationToken); 509var precedingExecutors = GetPrecedingExecutors(cancellationToken); 563var precedingExecutors = TryGetPrecedingExecutors(previousState.Script, cancellationToken); 577ImmutableArray<Func<object[], Task>> precedingExecutors,
ScriptBuilder.cs (1)
109var filtered = diagnostics.AsEnumerable().Where(d => d.Severity == DiagnosticSeverity.Error).AsImmutable();
ScriptExecutionState.cs (1)
68ImmutableArray<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\roslyn\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\roslyn\src\Compilers\Shared\GlobalAssemblyCacheHelpers\ClrGlobalAssemblyCache.cs (9)
83public override IEnumerable<AssemblyIdentity> GetAssemblyIdentities(AssemblyName partialName, ImmutableArray<ProcessorArchitecture> architectureFilter = default(ImmutableArray<ProcessorArchitecture>)) 94public override IEnumerable<AssemblyIdentity> GetAssemblyIdentities(string partialName = null, ImmutableArray<ProcessorArchitecture> architectureFilter = default(ImmutableArray<ProcessorArchitecture>)) 118public override IEnumerable<string> GetAssemblySimpleNames(ImmutableArray<ProcessorArchitecture> architectureFilter = default(ImmutableArray<ProcessorArchitecture>)) 127ImmutableArray<ProcessorArchitecture> architectureFilter) 139ImmutableArray<ProcessorArchitecture> architectureFilter) 204ImmutableArray<ProcessorArchitecture> architectureFilter,
src\roslyn\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\roslyn\src\Compilers\Shared\GlobalAssemblyCacheHelpers\GacFileResolver.cs (2)
41public ImmutableArray<ProcessorArchitecture> Architectures { get; } 56ImmutableArray<ProcessorArchitecture> architectures = default,
src\roslyn\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\roslyn\src\Compilers\Shared\GlobalAssemblyCacheHelpers\GlobalAssemblyCacheLocation.cs (2)
30public static ImmutableArray<string> s_rootLocations; 32public static ImmutableArray<string> RootLocations
src\roslyn\src\Compilers\Shared\GlobalAssemblyCacheHelpers\MonoGlobalAssemblyCache.cs (10)
96private static IEnumerable<(AssemblyIdentity Identity, string Path)> GetAssemblyIdentitiesAndPaths(AssemblyName name, ImmutableArray<ProcessorArchitecture> architectureFilter) 106private static IEnumerable<(AssemblyIdentity Identity, string Path)> GetAssemblyIdentitiesAndPaths(string name, Version version, byte[] publicKeyToken, ImmutableArray<ProcessorArchitecture> architectureFilter) 122architectureFilter != default(ImmutableArray<ProcessorArchitecture>) && 140public override IEnumerable<AssemblyIdentity> GetAssemblyIdentities(AssemblyName partialName, ImmutableArray<ProcessorArchitecture> architectureFilter = default(ImmutableArray<ProcessorArchitecture>)) 145public override IEnumerable<AssemblyIdentity> GetAssemblyIdentities(string partialName = null, ImmutableArray<ProcessorArchitecture> architectureFilter = default(ImmutableArray<ProcessorArchitecture>)) 160public override IEnumerable<string> GetAssemblySimpleNames(ImmutableArray<ProcessorArchitecture> architectureFilter = default(ImmutableArray<ProcessorArchitecture>)) 169ImmutableArray<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.VisualBasic (4453)
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_AnonymousTypes.vb (7)
27initExpressions As ImmutableArray(Of BoundExpression), 42initExpressions As ImmutableArray(Of BoundExpression), 59initExpressions As ImmutableArray(Of BoundExpression), 65ImmutableArray(Of BoundAnonymousTypePropertyAccess).Empty, 115Return BadExpression(owningSyntax, ImmutableArray(Of BoundExpression).Empty, ErrorTypeSymbol.UnknownResultType) 294initExpressions As ImmutableArray(Of BoundExpression), 312ImmutableArray(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 3126Dim symbols As ImmutableArray(Of Symbol) 3138If(receiver IsNot Nothing, ImmutableArray.Create(receiver), ImmutableArray(Of BoundExpression).Empty), 3391Dim ambiguous As ImmutableArray(Of Symbol) = DirectCast(di, AmbiguousSymbolDiagnostic).AmbiguousSymbols 3485Dim groupConstituents As ImmutableArray(Of NamespaceSymbol) = namespaceGroup.ConstituentNamespaces 3486Dim otherConstituents As ImmutableArray(Of NamespaceSymbol) = other.ConstituentNamespaces 3604ImmutableArray(Of Symbol).Empty, 3605ImmutableArray(Of BoundExpression).Empty, 3867Private Shared Function GenerateBadExpression(node As InvocationExpressionSyntax, target As BoundExpression, boundArguments As ImmutableArray(Of BoundExpression)) As BoundExpression 3914Private Function BindArrayAccess(node As InvocationExpressionSyntax, expr As BoundExpression, boundArguments As ImmutableArray(Of BoundExpression), argumentNames As ImmutableArray(Of String), diagnostics As BindingDiagnosticBag) As BoundExpression 3962symbols As ImmutableArray(Of Symbol), 4083Dim boundArguments As ImmutableArray(Of BoundExpression) = Nothing 4126Dim sizes As ImmutableArray(Of BoundExpression) = CreateArrayBounds(node, knownSizes, diagnostics) 4131Private Function CreateArrayBounds(node As SyntaxNode, knownSizes() As DimensionSize, diagnostics As BindingDiagnosticBag) As ImmutableArray(Of BoundExpression) 4291init = New BoundArrayInitialization(expr, ImmutableArray(Of BoundExpression).Empty, arrayInitType, hasErrors:=True) 4342Optional errorOnEmptyBound As Boolean = False) As ImmutableArray(Of BoundExpression) 4759ImmutableArray(Of BoundExpression).Empty, 4808ImmutableArray(Of BoundExpression).Empty, 4857ImmutableArray(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)
19parameters As ImmutableArray(Of BoundLambdaParameterSymbol)) As SynthesizedLambdaSymbol 31rangeVariables As ImmutableArray(Of RangeVariableSymbol), 219ImmutableArray(Of RangeVariableSymbol).Empty, 236ImmutableArray(Of RangeVariableSymbol).Empty, 269ImmutableArray(Of RangeVariableSymbol).Empty, 320Dim declaredRangeVariables As ImmutableArray(Of RangeVariableSymbol) = Nothing 325ImmutableArray(Of RangeVariableSymbol).Empty, 365ImmutableArray(Of RangeVariableSymbol).Empty, 378sourceRangeVariablesPart1 As ImmutableArray(Of RangeVariableSymbol), 379sourceRangeVariablesPart2 As ImmutableArray(Of RangeVariableSymbol), 382firstSelectDeclaredRangeVariables As ImmutableArray(Of RangeVariableSymbol), 422ImmutableArray(Of Binder).Empty, 437Dim selectSelectorBinder As New QueryLambdaBinder(selectSelectorLambdaSymbol, ImmutableArray(Of RangeVariableSymbol).Empty) 445Dim keysRangeVariablesPart1 As ImmutableArray(Of RangeVariableSymbol) 447Dim keysRangeVariablesPart2 As ImmutableArray(Of RangeVariableSymbol) 464ImmutableArray(Of BoundExpression).Empty).MakeCompilerGenerated() 482ImmutableArray(Of BoundExpression).Empty).MakeCompilerGenerated() 487keysRangeVariablesPart2 = ImmutableArray(Of RangeVariableSymbol).Empty 504ImmutableArray(Of BoundExpression).Empty).MakeCompilerGenerated() 508keysRangeVariablesPart2 = ImmutableArray(Of RangeVariableSymbol).Empty 511keysRangeVariablesPart1 = ImmutableArray(Of RangeVariableSymbol).Empty 513keysRangeVariablesPart2 = ImmutableArray(Of RangeVariableSymbol).Empty 516Dim declaredRangeVariables As ImmutableArray(Of RangeVariableSymbol) = Nothing 609ImmutableArray(Of RangeVariableSymbol).Empty, 631ImmutableArray(Of RangeVariableSymbol).Empty, 633ImmutableArray(Of Binder).Empty, 666Dim declaredRangeVariables As ImmutableArray(Of RangeVariableSymbol) = Nothing 803Dim declaredRangeVariables As ImmutableArray(Of RangeVariableSymbol) = Nothing 1049Dim lambdaBinders As ImmutableArray(Of Binder) 1061Dim joinSelectorRangeVariables As ImmutableArray(Of RangeVariableSymbol) = sourceRangeVariables.Concat(manySelector.RangeVariables) 1062Dim joinSelectorDeclaredRangeVariables As ImmutableArray(Of RangeVariableSymbol) 1093joinSelectorDeclaredRangeVariables = ImmutableArray(Of RangeVariableSymbol).Empty 1276joinSelectorDeclaredRangeVariables As ImmutableArray(Of RangeVariableSymbol), 1278leftRangeVariables As ImmutableArray(Of RangeVariableSymbol), 1279rightRangeVariables As ImmutableArray(Of RangeVariableSymbol), 1406ImmutableArray(Of Binder).Empty, 1429Dim joinSelectorRangeVariables As ImmutableArray(Of RangeVariableSymbol) = outer.RangeVariables.Concat(inner.RangeVariables) 1446Dim lambdaBinders As ImmutableArray(Of Binder) 1456Dim joinSelectorDeclaredRangeVariables As ImmutableArray(Of RangeVariableSymbol) 1488joinSelectorDeclaredRangeVariables = ImmutableArray(Of RangeVariableSymbol).Empty 1565Private Shared Function CreateSetOfDeclaredNames(rangeVariables As ImmutableArray(Of RangeVariableSymbol)) As HashSet(Of String) 1576Private Shared Sub AssertDeclaredNames(declaredNames As HashSet(Of String), rangeVariables As ImmutableArray(Of RangeVariableSymbol)) 1652ImmutableArray(Of Binder).Empty, 1689Dim intoRangeVariables As ImmutableArray(Of RangeVariableSymbol) = Nothing 1758Dim itemsRangeVariables As ImmutableArray(Of RangeVariableSymbol) = Nothing 1763Dim keysRangeVariables As ImmutableArray(Of RangeVariableSymbol) = Nothing 1772Dim groupRangeVariables As ImmutableArray(Of RangeVariableSymbol) 1784Dim intoRangeVariables As ImmutableArray(Of RangeVariableSymbol) = Nothing 1792Dim lambdaBinders As ImmutableArray(Of Binder) 1852<Out()> ByRef itemsRangeVariables As ImmutableArray(Of RangeVariableSymbol), 1886itemsRangeVariables = ImmutableArray(Of RangeVariableSymbol).Empty 1899<Out()> ByRef keysRangeVariables As ImmutableArray(Of RangeVariableSymbol), 1946keysRangeVariables As ImmutableArray(Of RangeVariableSymbol), 2091keysRangeVariables As ImmutableArray(Of RangeVariableSymbol), 2096groupRangeVariables As ImmutableArray(Of RangeVariableSymbol), 2102<Out()> ByRef intoRangeVariables As ImmutableArray(Of RangeVariableSymbol) 2124Dim intoLambdaBinder As New QueryLambdaBinder(intoLambdaSymbol, ImmutableArray(Of RangeVariableSymbol).Empty) 2136ImmutableArray(Of RangeVariableSymbol).Empty, 2168Private Shared Function GetQueryLambdaParameterSyntax(syntaxNode As VisualBasicSyntaxNode, rangeVariables As ImmutableArray(Of RangeVariableSymbol)) As VisualBasicSyntaxNode 2181rangeVariables As ImmutableArray(Of RangeVariableSymbol) 2198Private Shared Function GetQueryLambdaParameterName(rangeVariables As ImmutableArray(Of RangeVariableSymbol)) As String 2209Private Shared Function GetQueryLambdaParameterNameLeft(rangeVariables As ImmutableArray(Of RangeVariableSymbol)) As String 2220Private Shared Function GetQueryLambdaParameterNameRight(rangeVariables As ImmutableArray(Of RangeVariableSymbol)) As String 2421ImmutableArray(Of BoundExpression).Empty, 2430ImmutableArray(Of Binder).Empty, 2502ImmutableArray(Of Binder).Empty, 2637Private ReadOnly _rangeVariables As ImmutableArray(Of RangeVariableSymbol) 2639Public Sub New(lambdaSymbol As LambdaSymbol, rangeVariables As ImmutableArray(Of RangeVariableSymbol)) 2645Friend Overrides ReadOnly Property Locals As ImmutableArray(Of RangeVariableSymbol) 2651Public ReadOnly Property RangeVariables As ImmutableArray(Of RangeVariableSymbol) 2663Public Overrides ReadOnly Property AdditionalContainingMembers As ImmutableArray(Of Symbol) 2665Return ImmutableArray(Of Symbol).Empty 2687<Out()> ByRef declaredRangeVariables As ImmutableArray(Of RangeVariableSymbol), 2734<Out()> ByRef declaredRangeVariables As ImmutableArray(Of RangeVariableSymbol), 2756declaredRangeVariables = ImmutableArray(Of RangeVariableSymbol).Empty 2932<Out()> ByRef declaredRangeVariables As ImmutableArray(Of RangeVariableSymbol), 2979rangeVariablesPart1 As ImmutableArray(Of RangeVariableSymbol), 2980rangeVariablesPart2 As ImmutableArray(Of RangeVariableSymbol), 2981<Out()> ByRef declaredRangeVariables As ImmutableArray(Of RangeVariableSymbol), 3017ImmutableArray(Of RangeVariableSymbol).Empty), 3029ImmutableArray(Of RangeVariableSymbol).Empty), 3034Dim keysRangeVariablesPart1 As ImmutableArray(Of RangeVariableSymbol) 3036Dim keysRangeVariablesPart2 As ImmutableArray(Of RangeVariableSymbol) 3050keysRangeVariablesPart2 = ImmutableArray(Of RangeVariableSymbol).Empty 3057keysRangeVariablesPart2 = ImmutableArray(Of RangeVariableSymbol).Empty 3060keysRangeVariablesPart1 = ImmutableArray(Of RangeVariableSymbol).Empty 3062keysRangeVariablesPart2 = ImmutableArray(Of RangeVariableSymbol).Empty 3111leftRangeVariables As ImmutableArray(Of RangeVariableSymbol), 3112rightRangeVariables As ImmutableArray(Of RangeVariableSymbol), 3113<Out> ByRef joinSelectorDeclaredRangeVariables As ImmutableArray(Of RangeVariableSymbol), 3220Dim parameters As ImmutableArray(Of BoundLambdaParameterSymbol) = _lambdaSymbol.Parameters.As(Of BoundLambdaParameterSymbol) 3255joinSelectorRangeVariables As ImmutableArray(Of RangeVariableSymbol), 3391outerRangeVariables As ImmutableArray(Of RangeVariableSymbol), 3394innerRangeVariables As ImmutableArray(Of RangeVariableSymbol), 3524outerRangeVariables As ImmutableArray(Of RangeVariableSymbol), 3527innerRangeVariables As ImmutableArray(Of RangeVariableSymbol), 3589rangeVariables As ImmutableArray(Of RangeVariableSymbol) 3636Private ReadOnly _outerRangeVariables As ImmutableArray(Of Object) 'ImmutableArray(Of RangeVariableSymbol) 3637Private ReadOnly _innerRangeVariables As ImmutableArray(Of Object) 'ImmutableArray(Of RangeVariableSymbol) 3641outerRangeVariables As ImmutableArray(Of RangeVariableSymbol), 3642innerRangeVariables As ImmutableArray(Of RangeVariableSymbol) 3681Private ReadOnly _badRangeVariables As ImmutableArray(Of Object) 'ImmutableArray(Of RangeVariableSymbol) 3686badRangeVariables As ImmutableArray(Of RangeVariableSymbol), 3698badRangeVariables As ImmutableArray(Of RangeVariableSymbol), 3734Private ReadOnly _groupRangeVariables As ImmutableArray(Of RangeVariableSymbol) 3736Private ReadOnly _aggregationArgumentRangeVariables As ImmutableArray(Of RangeVariableSymbol) 3741groupRangeVariables As ImmutableArray(Of RangeVariableSymbol), 3743aggregationArgumentRangeVariables As ImmutableArray(Of RangeVariableSymbol) 3764keysRangeVariables As ImmutableArray(Of RangeVariableSymbol), 3766keysRangeVariablesPart1 As ImmutableArray(Of RangeVariableSymbol), 3768keysRangeVariablesPart2 As ImmutableArray(Of RangeVariableSymbol), 3772<Out()> ByRef declaredRangeVariables As ImmutableArray(Of RangeVariableSymbol), 3928Dim arguments As ImmutableArray(Of BoundExpression) 3932arguments = ImmutableArray(Of BoundExpression).Empty 3973ImmutableArray(Of RangeVariableSymbol).Empty, 4103groupRangeVariables As ImmutableArray(Of RangeVariableSymbol), 4105aggregationArgumentRangeVariables As ImmutableArray(Of RangeVariableSymbol) 4234ImmutableArray(Of Binder).Empty, 4270Dim selectorBinder As New QueryLambdaBinder(lambdaSymbol, ImmutableArray(Of RangeVariableSymbol).Empty) 4280ImmutableArray(Of RangeVariableSymbol).Empty, 4302ImmutableArray(Of RangeVariableSymbol).Empty, 4353ImmutableArray(Of BoundExpression).Empty, 4371ImmutableArray(Of BoundExpression).Empty, 4394ImmutableArray(Of BoundExpression).Empty, 4590arguments As ImmutableArray(Of BoundExpression), 4608arguments As ImmutableArray(Of BoundExpression), 4629arguments As ImmutableArray(Of BoundExpression), 4688Dim 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\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\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_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\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\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)
412Public NotOverridable Overrides Function GetSyntaxDiagnostics(Optional span As TextSpan? = Nothing, Optional cancellationToken As CancellationToken = Nothing) As ImmutableArray(Of Diagnostic) 427Public NotOverridable Overrides Function GetDeclarationDiagnostics(Optional span As TextSpan? = Nothing, Optional cancellationToken As CancellationToken = Nothing) As ImmutableArray(Of Diagnostic) 442Public NotOverridable Overrides Function GetMethodBodyDiagnostics(Optional span As TextSpan? = Nothing, Optional cancellationToken As CancellationToken = Nothing) As ImmutableArray(Of Diagnostic) 459Public NotOverridable Overrides Function GetDiagnostics(Optional span As TextSpan? = Nothing, Optional cancellationToken As CancellationToken = Nothing) As ImmutableArray(Of Diagnostic) 707Friend Overrides Function GetDeclaredSymbols(declarationSyntax As FieldDeclarationSyntax, Optional cancellationToken As CancellationToken = Nothing) As ImmutableArray(Of ISymbol) 735<Out> ByRef getEnumeratorArguments As ImmutableArray(Of BoundExpression), 737<Out> ByRef moveNextArguments As ImmutableArray(Of BoundExpression), 739<Out> ByRef currentArguments As ImmutableArray(Of BoundExpression), 819Friend Overrides Function GetAttributeMemberGroup(attribute As AttributeSyntax, Optional cancellationToken As CancellationToken = Nothing) As ImmutableArray(Of Symbol) 883Friend Overrides Function GetExpressionMemberGroup(node As ExpressionSyntax, Optional cancellationToken As CancellationToken = Nothing) As ImmutableArray(Of Symbol) 890Return ImmutableArray(Of Symbol).Empty 1036Dim boundNodes As ImmutableArray(Of BoundNode) = GetBoundNodes(node) 1208Private ReadOnly _guardedBoundNodeMap As New SmallDictionary(Of SyntaxNode, ImmutableArray(Of BoundNode))(ReferenceEqualityComparer.Instance) 1211Private ReadOnly _guardedQueryBindersMap As New Dictionary(Of SyntaxNode, ImmutableArray(Of Binder))() 1236Private Function GuardedGetBoundNodesFromMap(node As SyntaxNode) As ImmutableArray(Of BoundNode) 1238Dim result As ImmutableArray(Of BoundNode) = Nothing 1426Dim binders As ImmutableArray(Of Binder) = GetQueryClauseLambdaBinders(aggregate) 1447Dim binders As ImmutableArray(Of Binder) = GetQueryClauseLambdaBinders(aggregate) 1468Dim binders As ImmutableArray(Of Binder) = GetQueryClauseLambdaBinders(join) 1495Dim binders As ImmutableArray(Of Binder) = GetQueryClauseLambdaBinders(join) 1536Dim binders As ImmutableArray(Of Binder) = GetQueryClauseLambdaBinders(item) 1561Dim binders As ImmutableArray(Of Binder) = GetQueryClauseLambdaBinders(item) 1584Dim binders As ImmutableArray(Of Binder) = GetQueryClauseLambdaBinders(groupBy) 1622Dim binders As ImmutableArray(Of Binder) = GetQueryClauseLambdaBinders(func) 1641Dim binders As ImmutableArray(Of Binder) = GetQueryClauseLambdaBinders(operatorSyntax) 1654Private Function GetQueryClauseLambdaBinders(node As VisualBasicSyntaxNode) As ImmutableArray(Of Binder) 1659Dim binders As ImmutableArray(Of Binder) = Nothing 1828Friend Function GetBoundNodes(node As SyntaxNode) As ImmutableArray(Of BoundNode) 1829Dim bound As ImmutableArray(Of BoundNode) = Nothing 1846Return ImmutableArray(Of BoundNode).Empty 1899Return ImmutableArray(Of BoundNode).Empty 2060Dim boundNodes As ImmutableArray(Of BoundNode) = _binding.GuardedGetBoundNodesFromMap(node) 2117nodeCache As SmallDictionary(Of SyntaxNode, ImmutableArray(Of BoundNode)), 2323Dim haveBindersInTheMap As ImmutableArray(Of Binder) = Nothing 2336Dim 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), diagnostics As BindingDiagnosticBag) 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 231Private Sub InitializerCountRecursive(inits As ImmutableArray(Of BoundExpression), ByRef initCount As Integer, ByRef constInits As Integer) 258Private Function GetRawData(initializers As ImmutableArray(Of BoundExpression)) As ImmutableArray(Of Byte) 268Private Sub SerializeArrayRecursive(bw As BlobBuilder, inits As ImmutableArray(Of BoundExpression)) 285Private 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)
556Private Sub EmitSideEffects(sideEffects As ImmutableArray(Of BoundExpression)) 564Private Sub EmitExpressions(expressions As ImmutableArray(Of BoundExpression), used As Boolean) 573Private Sub EmitArguments(arguments As ImmutableArray(Of BoundExpression), parameters As ImmutableArray(Of ParameterSymbol)) 1291Friend Shared Function IsSafeToDereferenceReceiverRefAfterEvaluatingArguments(arguments As ImmutableArray(Of BoundExpression)) As Boolean 1685arguments 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), 1186Private Sub EmitCaseBlocks(caseBlocks As ImmutableArray(Of BoundCaseBlock), caseBlockLabels As ImmutableArray(Of GeneratedLabelSymbol), exitLabel As LabelSymbol) 1245Dim dynamicTransformFlags = ImmutableArray(Of Boolean).Empty 1248ImmutableArray(Of String).Empty) 1413Private 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, 1033Dim caseBlocks As ImmutableArray(Of BoundCaseBlock) = Me.VisitList(node.CaseBlocks) 1079Dim catchBlocks As ImmutableArray(Of BoundCatchBlock) = Me.VisitList(node.CatchBlocks) 1122Dim initializers As ImmutableArray(Of BoundExpression) = node.Initializers 1312Private 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)
151Dim pathMap As ImmutableArray(Of KeyValuePair(Of String, String)) = ImmutableArray(Of KeyValuePair(Of String, String)).Empty 1375Dim searchPaths As ImmutableArray(Of String) = BuildSearchPaths(baseDirectory, sdkPaths, responsePaths, libPaths) 1623Private 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) 1796Dim importDiagnostics As ImmutableArray(Of Diagnostic) = Nothing
CommandLine\VisualBasicCompiler.vb (11)
22Private _additionalTextFiles As ImmutableArray(Of AdditionalTextFile) 34Private Function GetAdditionalTextFiles() As ImmutableArray(Of AdditionalTextFile) 39Protected Overrides Function ResolveAdditionalFilesFromArguments(diagnostics As List(Of DiagnosticInfo), messageProvider As CommonMessageProvider, touchedFilesLogger As TouchedFileLogger) As ImmutableArray(Of AdditionalTextFile) 90analyzerConfigOptions As ImmutableArray(Of AnalyzerConfigOptionsResult), 100Dim sourceFiles As ImmutableArray(Of CommandLineSourceFile) = Arguments.SourceFiles 160Dim sourceFileResolver = New LoggingSourceFileResolver(ImmutableArray(Of String).Empty, Arguments.BaseDirectory, Arguments.PathMap, touchedFilesLogger) 262ByRef analyzers As ImmutableArray(Of DiagnosticAnalyzer), 263ByRef generators As ImmutableArray(Of ISourceGenerator)) 301Private Protected Overrides Function CreateGeneratorDriver(baseDirectory As String, parseOptions As ParseOptions, generators As ImmutableArray(Of ISourceGenerator), analyzerConfigOptionsProvider As AnalyzerConfigOptionsProvider, additionalTexts As ImmutableArray(Of AdditionalText), checksumAlgorithm As SourceHashAlgorithm) As GeneratorDriver 306Private 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)
325lambdaDebugInfo:=ImmutableArray(Of EncLambdaInfo).Empty, 326orderedLambdaRuntimeRudeEdits:=ImmutableArray(Of LambdaRuntimeRudeEditInfo).Empty, 327closureDebugInfo:=ImmutableArray(Of EncClosureInfo).Empty, 328stateMachineStateDebugInfos:=ImmutableArray(Of StateMachineStateDebugInfo).Empty, 334codeCoverageSpans:=ImmutableArray(Of SourceSpan).Empty) 467Private Sub AssertAllInitializersAreConstants(initializers As ImmutableArray(Of ImmutableArray(Of FieldOrPropertyInitializer))) 679If CType(method, SourceMethodSymbol).SetDiagnostics(ImmutableArray(Of Diagnostic).Empty) Then 896lambdaDebugInfo:=ImmutableArray(Of EncLambdaInfo).Empty, 897orderedLambdaRuntimeRudeEdits:=ImmutableArray(Of LambdaRuntimeRudeEditInfo).Empty, 898closureDebugInfo:=ImmutableArray(Of EncClosureInfo).Empty, 899stateMachineStateDebugInfos:=ImmutableArray(Of StateMachineStateDebugInfo).Empty, 905codeCoverageSpans:=ImmutableArray(Of SourceSpan).Empty) 925Private Sub CompileSynthesizedMethods(additionalTypes As ImmutableArray(Of NamedTypeSymbol)) 950Dim codeCoverageSpans As ImmutableArray(Of SourceSpan) = ImmutableArray(Of SourceSpan).Empty 1044lambdaDebugInfo:=ImmutableArray(Of EncLambdaInfo).Empty, 1045orderedLambdaRuntimeRudeEdits:=ImmutableArray(Of LambdaRuntimeRudeEditInfo).Empty, 1046closureDebugInfo:=ImmutableArray(Of EncClosureInfo).Empty, 1053codeCoverageSpans:=ImmutableArray(Of SourceSpan).Empty) 1249If sourceMethod IsNot Nothing AndAlso sourceMethod.SetDiagnostics(ImmutableArray(Of Diagnostic).Empty) Then 1350Private Sub CreateSyntheticWithEventOverridesIfNeeded(handledEvents As ImmutableArray(Of HandledEvent), 1401codeCoverageSpans:=ImmutableArray(Of SourceSpan).Empty, 1511Dim codeCoverageSpans As ImmutableArray(Of SourceSpan) = ImmutableArray(Of SourceSpan).Empty 1537ImmutableArray(Of BoundStatement).Empty) 1559body = New BoundBlock(body.Syntax, Nothing, ImmutableArray(Of LocalSymbol).Empty, boundStatements.ToImmutableAndFree(), body.HasErrors).MakeCompilerGenerated() 1603lambdaDebugInfo As ImmutableArray(Of EncLambdaInfo), 1604orderedLambdaRuntimeRudeEdits As ImmutableArray(Of LambdaRuntimeRudeEditInfo), 1605closureDebugInfo As ImmutableArray(Of EncClosureInfo), 1606stateMachineStateDebugInfos As ImmutableArray(Of StateMachineStateDebugInfo), 1612codeCoverageSpans As ImmutableArray(Of SourceSpan)) As MethodBody 1658Dim asyncYieldPoints As ImmutableArray(Of Integer) = Nothing 1659Dim asyncResumePoints As ImmutableArray(Of Integer) = Nothing 1700Dim stateMachineHoistedLocalSlots As ImmutableArray(Of EncHoistedLocalInfo) = Nothing 1701Dim stateMachineAwaiterSlots As ImmutableArray(Of Cci.ITypeReference) = Nothing 1744ByRef hoistedVariableSlots As ImmutableArray(Of EncHoistedLocalInfo), 1745ByRef awaiterSlots As ImmutableArray(Of Cci.ITypeReference)) 2079Dim locations As ImmutableArray(Of Location) = If(constructor.IsImplicitlyDeclared, containingType.Locations, constructor.Locations) 2103baseInvocation = New BoundCall(syntaxNode, constructorToCall, Nothing, thisRef, ImmutableArray(Of BoundExpression).Empty, Nothing, voidType) 2123ImmutableArray(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 1010ByRef memberGroup As ImmutableArray(Of Symbol)) As ImmutableArray(Of Symbol) 1082Dim symbols = ImmutableArray(Of Symbol).Empty 1164Dim bindingSymbols As ImmutableArray(Of Symbol) = RemoveErrorTypesAndDuplicates(symbolsBuilder, options) 1389Private Shared Function UnwrapAliases(symbols As ImmutableArray(Of Symbol)) As ImmutableArray(Of Symbol) 1411ByRef bindingSymbols As ImmutableArray(Of Symbol), 1463ByRef bindingSymbols As ImmutableArray(Of Symbol), 1478Dim candidateConstructors As ImmutableArray(Of MethodSymbol) 1491candidateConstructors = ImmutableArray(Of MethodSymbol).Empty 1539Dim symbols As ImmutableArray(Of Symbol) = RemoveErrorTypesAndDuplicates(symbolsBuilder, options) 1596) As ImmutableArray(Of ISymbol) 1646) As ImmutableArray(Of ISymbol) 1679) As ImmutableArray(Of ISymbol) 1711) As ImmutableArray(Of ISymbol) 1739) As ImmutableArray(Of ISymbol) 1815useBaseReferenceAccessibility As Boolean) As ImmutableArray(Of Symbol) 1827Return ImmutableArray(Of Symbol).Empty 2001Dim constructors As ImmutableArray(Of MethodSymbol) = ImmutableArray(Of MethodSymbol).Empty 2740Friend MustOverride Function GetDeclaredSymbols(declarationSyntax As FieldDeclarationSyntax, Optional cancellationToken As CancellationToken = Nothing) As ImmutableArray(Of ISymbol) 2813Dim memberGroup As ImmutableArray(Of Symbol) = Nothing 2814Dim containingInvocationInfosymbols As ImmutableArray(Of Symbol) = GetSemanticSymbols(summary, 2825Private Function FindNameParameterInfo(invocationInfosymbols As ImmutableArray(Of Symbol), 2848Dim params As ImmutableArray(Of ParameterSymbol) 3141Private Function GetMemberGroupForNode(node As SyntaxNode, Optional cancellationToken As CancellationToken = Nothing) As ImmutableArray(Of ISymbol) 3156Return ImmutableArray(Of ISymbol).Empty 3207Protected NotOverridable Overrides Function GetMemberGroupCore(node As SyntaxNode, Optional cancellationToken As CancellationToken = Nothing) As ImmutableArray(Of ISymbol) 3211Protected NotOverridable Overrides Function LookupSymbolsCore(position As Integer, container As INamespaceOrTypeSymbol, name As String, includeReducedExtensionMethods As Boolean) As ImmutableArray(Of ISymbol) 3215Protected NotOverridable Overrides Function LookupBaseMembersCore(position As Integer, name As String) As ImmutableArray(Of ISymbol) 3219Protected NotOverridable Overrides Function LookupStaticMembersCore(position As Integer, container As INamespaceOrTypeSymbol, name As String) As ImmutableArray(Of ISymbol) 3223Protected NotOverridable Overrides Function LookupNamespacesAndTypesCore(position As Integer, container As INamespaceOrTypeSymbol, name As String) As ImmutableArray(Of ISymbol) 3227Protected NotOverridable Overrides Function LookupLabelsCore(position As Integer, name As String) As ImmutableArray(Of ISymbol) 3355Protected NotOverridable Overrides Function GetDeclaredSymbolsCore(declaration As SyntaxNode, Optional cancellationToken As CancellationToken = Nothing) As ImmutableArray(Of ISymbol) 3434Private Protected NotOverridable Overrides Function GetImportScopesCore(position As Integer, cancellationToken As CancellationToken) As ImmutableArray(Of IImportScope) 3496Dim aliases = If(importAliases?.GetImportChainData(), ImmutableArray(Of IAliasSymbol).Empty) 3497Dim [imports] = If(typesOfImportedNamespacesMembers?.GetImportChainData(), ImmutableArray(Of ImportedNamespaceOrType).Empty) 3498Dim xmlNamespaces = If(xmlNamespaceImports?.GetImportChainData(), ImmutableArray(Of ImportedXmlNamespace).Empty) 3503scopes.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)
30Public ReadOnly StateMachineStatesDebugInfo As ImmutableArray(Of StateMachineStateDebugInfo) 35stateMachineStatesDebugInfo As ImmutableArray(Of StateMachineStateDebugInfo)) 76Private _initializeComponentCallTree As Dictionary(Of MethodSymbol, ImmutableArray(Of MethodSymbol)) = Nothing 103stateMachineStatesDebugInfo As ImmutableArray(Of StateMachineStateDebugInfo)) 121AddSynthesizedMethod(wrapper, body, stateMachineType:=Nothing, ImmutableArray(Of StateMachineStateDebugInfo).Empty) 142Public Sub AddToInitializeComponentCallTree(method As MethodSymbol, callees As ImmutableArray(Of MethodSymbol)) 151_initializeComponentCallTree = New Dictionary(Of MethodSymbol, ImmutableArray(Of MethodSymbol))(ReferenceEqualityComparer.Instance) 171Dim callees As ImmutableArray(Of MethodSymbol) = Nothing
Compilation\VisualBasicCompilation.vb (60)
90Private ReadOnly _syntaxTrees As ImmutableArray(Of SyntaxTree) 98Private _lazyAllSyntaxTrees As ImmutableArray(Of SyntaxTree) 114Private _lazyImportClauseDependencies As ConcurrentDictionary(Of (SyntaxTree As SyntaxTree, ImportsClausePosition As Integer), ImmutableArray(Of AssemblySymbol)) 122Private _lazyClsComplianceDiagnostics As ImmutableArray(Of Diagnostic) 123Private _lazyClsComplianceDependencies As ImmutableArray(Of AssemblySymbol) 142Private ReadOnly _embeddedTrees As ImmutableArray(Of EmbeddedTreeAndDeclaration) 395ImmutableArray(Of SyntaxTree).Empty, 421references As ImmutableArray(Of MetadataReference), 422syntaxTrees As ImmutableArray(Of SyntaxTree), 425embeddedTrees As ImmutableArray(Of EmbeddedTreeAndDeclaration), 488Private Function CommonLanguageVersion(syntaxTrees As ImmutableArray(Of SyntaxTree)) As LanguageVersion 528syntaxTrees As ImmutableArray(Of SyntaxTree), 880Public Shadows ReadOnly Property SyntaxTrees As ImmutableArray(Of SyntaxTree) 890Friend Shadows ReadOnly Property AllSyntaxTrees As ImmutableArray(Of SyntaxTree) 1066Return UpdateSyntaxTrees(ImmutableArray(Of SyntaxTree).Empty, 1130Private Shared Function CreateEmbeddedTrees(compReference As Lazy(Of VisualBasicCompilation)) As ImmutableArray(Of EmbeddedTreeAndDeclaration) 1186embeddedTrees As ImmutableArray(Of EmbeddedTreeAndDeclaration) 1197embeddedTrees As ImmutableArray(Of EmbeddedTreeAndDeclaration) 1299Public Overrides ReadOnly Property DirectiveReferences As ImmutableArray(Of MetadataReference) 1364Public Overrides Function ToMetadataReference(Optional aliases As ImmutableArray(Of String) = Nothing, Optional embedInteropTypes As Boolean = False) As CompilationReference 1506Return New EntryPoint(Nothing, ImmutableArray(Of Diagnostic).Empty) 1510Dim diagnostics As ImmutableArray(Of Diagnostic) = Nothing 1518Private Function FindEntryPoint(cancellationToken As CancellationToken, ByRef sealedDiagnostics As ImmutableArray(Of Diagnostic)) As MethodSymbol 1673Public ReadOnly Diagnostics As ImmutableArray(Of Diagnostic) 1675Public Sub New(methodSymbol As MethodSymbol, diagnostics As ImmutableArray(Of Diagnostic)) 1684Friend ReadOnly Property MemberImports As ImmutableArray(Of NamespaceOrTypeSymbol) 1693Friend ReadOnly Property AliasImports As ImmutableArray(Of AliasSymbol) 1763Dim dependencies As ImmutableArray(Of AssemblySymbol) = Nothing 1822Friend Sub RecordImportsClauseDependencies(syntaxTree As SyntaxTree, importsClausePosition As Integer, dependencies As ImmutableArray(Of AssemblySymbol)) 1835Public ReadOnly ClauseSpans As ImmutableArray(Of TextSpan) 2082Public Overrides Function GetDiagnostics(Optional cancellationToken As CancellationToken = Nothing) As ImmutableArray(Of Diagnostic) 2091Public Overrides Function GetParseDiagnostics(Optional cancellationToken As CancellationToken = Nothing) As ImmutableArray(Of Diagnostic) 2101Public Overrides Function GetDeclarationDiagnostics(Optional cancellationToken As CancellationToken = Nothing) As ImmutableArray(Of Diagnostic) 2111Public Overrides Function GetMethodBodyDiagnostics(Optional cancellationToken As CancellationToken = Nothing) As ImmutableArray(Of Diagnostic) 2124Friend Overloads Function GetDiagnostics(stage As CompilationStage, Optional includeEarlierStages As Boolean = True, Optional cancellationToken As CancellationToken = Nothing) As ImmutableArray(Of Diagnostic) 2247Optional cancellationToken As CancellationToken = Nothing) As ImmutableArray(Of Diagnostic) 2323Friend Overrides Function CreateAnalyzerDriver(analyzers As ImmutableArray(Of DiagnosticAnalyzer), analyzerManager As AnalyzerManager, severityFilter As SeverityFilter) As AnalyzerDriver 2390ImmutableArray(Of NamedTypeSymbol).Empty, 2402additionalTypes As ImmutableArray(Of NamedTypeSymbol), 2541otherSynthesizedMembers As IReadOnlyDictionary(Of ISymbolInternal, ImmutableArray(Of ISymbolInternal)), 2542otherDeletedMembers As IReadOnlyDictionary(Of ISymbolInternal, ImmutableArray(Of ISymbolInternal))) As SymbolMatcher 2596Dim modules As ImmutableArray(Of ModuleSymbol) = SourceAssembly.Modules 2691Private Shared Function CheckSumMatches(bytesText As String, bytes As ImmutableArray(Of Byte)) As Boolean 2709Private Shared Function MakeCheckSumBytes(bytesText As String) As ImmutableArray(Of Byte) 2779Protected Overrides ReadOnly Property CommonSyntaxTrees As ImmutableArray(Of SyntaxTree) 2879Protected Overrides Function CommonCreateTupleTypeSymbol(elementTypes As ImmutableArray(Of ITypeSymbol), 2880elementNames As ImmutableArray(Of String), 2881elementLocations As ImmutableArray(Of Location), 2882elementNullableAnnotations As ImmutableArray(Of NullableAnnotation)) As INamedTypeSymbol 2898elementNames As ImmutableArray(Of String), 2899elementLocations As ImmutableArray(Of Location), 2900elementNullableAnnotations As ImmutableArray(Of NullableAnnotation)) As INamedTypeSymbol 2927parameterTypes As ImmutableArray(Of ITypeSymbol), 2928parameterRefKinds As ImmutableArray(Of RefKind), 2930callingConventionTypes As ImmutableArray(Of INamedTypeSymbol)) As IFunctionPointerTypeSymbol 2939memberTypes As ImmutableArray(Of ITypeSymbol), 2940memberNames As ImmutableArray(Of String), 2941memberLocations As ImmutableArray(Of Location), 2942memberIsReadOnly As ImmutableArray(Of Boolean), 2943memberNullableAnnotations 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)
47updatedMethods:=ImmutableArray(Of MethodDefinitionHandle).Empty, 48changedTypes:=ImmutableArray(Of TypeDefinitionHandle).Empty) 106updatedMethods:=ImmutableArray(Of MethodDefinitionHandle).Empty, 107changedTypes:=ImmutableArray(Of TypeDefinitionHandle).Empty)
Emit\EditAndContinue\PEDeltaAssemblyBuilder.vb (2)
56MyBase.New(sourceAssembly, emitOptions, outputKind, serializationProperties, manifestResources, additionalTypes:=ImmutableArray(Of NamedTypeSymbol).Empty) 187Return New AnonymousTypeKey(ImmutableArray(Of AnonymousTypeKeyField).Empty)
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 (21)
28otherSynthesizedMembers As IReadOnlyDictionary(Of ISymbolInternal, ImmutableArray(Of ISymbolInternal)), 29otherDeletedMembers As IReadOnlyDictionary(Of ISymbolInternal, ImmutableArray(Of ISymbolInternal))) 46otherSynthesizedMembers:=SpecializedCollections.EmptyReadOnlyDictionary(Of ISymbolInternal, ImmutableArray(Of ISymbolInternal)), 47otherDeletedMembers:=SpecializedCollections.EmptyReadOnlyDictionary(Of ISymbolInternal, ImmutableArray(Of ISymbolInternal)), 84Protected Overrides Function TryGetMatchingDelegateWithIndexedName(delegateTemplate As INamedTypeSymbolInternal, values As ImmutableArray(Of AnonymousTypeValue), ByRef match As AnonymousTypeValue) As Boolean 98Private ReadOnly _otherSynthesizedMembers As IReadOnlyDictionary(Of ISymbolInternal, ImmutableArray(Of ISymbolInternal)) 99Private ReadOnly _otherDeletedMembersOpt As IReadOnlyDictionary(Of ISymbolInternal, ImmutableArray(Of ISymbolInternal)) 105Private ReadOnly _otherMembers As ConcurrentDictionary(Of ISymbolInternal, IReadOnlyDictionary(Of String, ImmutableArray(Of ISymbolInternal))) 110otherSynthesizedMembers As IReadOnlyDictionary(Of ISymbolInternal, ImmutableArray(Of ISymbolInternal)), 111otherDeletedMembers As IReadOnlyDictionary(Of ISymbolInternal, ImmutableArray(Of ISymbolInternal)), 121_otherMembers = New ConcurrentDictionary(Of ISymbolInternal, IReadOnlyDictionary(Of String, ImmutableArray(Of ISymbolInternal)))(ReferenceEqualityComparer.Instance) 267Dim otherTypeParameters As ImmutableArray(Of TypeParameterSymbol) = otherDef.GetAllTypeParameters() 345Dim otherTypeParameters As ImmutableArray(Of TypeParameterSymbol) 362Private Function VisitCustomModifiers(modifiers As ImmutableArray(Of CustomModifier)) As ImmutableArray(Of CustomModifier) 398Dim otherMembers As ImmutableArray(Of ISymbolInternal) = Nothing 521Private Function GetAllEmittedMembers(symbol As ISymbolInternal) As IReadOnlyDictionary(Of String, ImmutableArray(Of ISymbolInternal)) 535Dim synthesizedMembers As ImmutableArray(Of ISymbolInternal) = Nothing 540Dim deletedMembers As ImmutableArray(Of ISymbolInternal) = Nothing 634Private 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 567Friend Overridable ReadOnly Property ReturnValueMarshallingDescriptor As ImmutableArray(Of Byte)
Emit\ModuleReference.vb (1)
49Private Function IFileReferenceGetHashValue(algorithmId As AssemblyHashAlgorithm) As ImmutableArray(Of Byte) Implements Cci.IFileReference.GetHashValue
Emit\NamedTypeSymbolAdapter.vb (2)
838Private Function IGenericTypeInstanceReferenceGetGenericArguments(context As EmitContext) As ImmutableArray(Of ITypeReference) Implements IGenericTypeInstanceReference.GetGenericArguments 981Friend 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)
204Return New SynthesizedAttributeData(TypeManager.ModuleBeingBuilt.Compilation, ctor, ImmutableArray(Of TypedConstant).Empty, ImmutableArray(Of KeyValuePair(Of String, TypedConstant)).Empty) 221ImmutableArray(Of KeyValuePair(Of String, TypedConstant)).Empty)
Emit\NoPia\EmbeddedTypesManager.vb (11)
112Friend 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 125ImmutableArray(Of KeyValuePair(Of String, TypedConstant)).Empty) 134ImmutableArray(Of KeyValuePair(Of String, TypedConstant)).Empty) 141Friend Overrides Function CreateSynthesizedAttribute(constructor As SpecialMember, constructorArguments As ImmutableArray(Of TypedConstant), namedArguments As ImmutableArray(Of KeyValuePair(Of String, TypedConstant)), syntaxNodeOpt As SyntaxNode, diagnostics As DiagnosticBag) As VisualBasicAttributeData 150Friend 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 177Protected Overrides Sub OnGetTypesCompleted(types As ImmutableArray(Of EmbeddedType), diagnostics As DiagnosticBag) 564Friend 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 (10)
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 370Dim members As ImmutableArray(Of Symbol) = sym.GetMembers() 381Public NotOverridable Overrides Function GetExportedTypes(context As EmitContext) As ImmutableArray(Of Cci.ExportedType) 399Private Function CalculateExportedTypes() As ImmutableArray(Of Cci.ExportedType) 430Private Sub ReportExportedTypeNameCollisions(exportedTypes As ImmutableArray(Of Cci.ExportedType), diagnostics As DiagnosticBag) 566Dim nested As ImmutableArray(Of NamedTypeSymbol) = entry.type.GetTypeMembers() ' Ordered. 640Public 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)
91Friend Function GetCustomAttributesToEmit(userDefined As ImmutableArray(Of VisualBasicAttributeData), 104Private Iterator Function GetCustomAttributesToEmitIterator(userDefined As ImmutableArray(Of VisualBasicAttributeData),
Emit\SymbolTranslator.vb (8)
19Private ReadOnly _translatedImportsMap As New ConcurrentDictionary(Of SourceFile, ImmutableArray(Of Cci.UsedNamespaceOrType))(ReferenceEqualityComparer.Instance) 403Friend Overloads Function Translate(params As ImmutableArray(Of ParameterSymbol)) As ImmutableArray(Of Microsoft.Cci.IParameterTypeInformation) 437Private Function TranslateAll(params As ImmutableArray(Of ParameterSymbol)) As ImmutableArray(Of Microsoft.Cci.IParameterTypeInformation) 469Friend Function TryGetTranslatedImports(file As SourceFile, <Runtime.InteropServices.Out> ByRef [imports] As ImmutableArray(Of Cci.UsedNamespaceOrType)) As Boolean 473Friend 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)
222Public Sub New(syntax As SyntaxNode, arguments As ImmutableArray(Of TypeSymbol), hasErrors As Boolean) 230Public Sub New(syntax As SyntaxNode, arguments As ImmutableArray(Of TypeSymbol)) 239Private ReadOnly _Arguments As ImmutableArray(Of TypeSymbol) 240Public ReadOnly Property Arguments As ImmutableArray(Of TypeSymbol) 251Public Function Update(arguments As ImmutableArray(Of TypeSymbol)) As BoundTypeArguments 570Public 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) 594Private ReadOnly _Symbols As ImmutableArray(Of Symbol) 595Public ReadOnly Property Symbols As ImmutableArray(Of Symbol) 601Private ReadOnly _ChildBoundNodes As ImmutableArray(Of BoundExpression) 602Public ReadOnly Property ChildBoundNodes As ImmutableArray(Of BoundExpression) 613Public Function Update(resultKind As LookupResultKind, symbols As ImmutableArray(Of Symbol), childBoundNodes As ImmutableArray(Of BoundExpression), type As TypeSymbol) As BoundBadExpression 626Public Sub New(syntax As SyntaxNode, childBoundNodes As ImmutableArray(Of BoundNode), Optional hasErrors As Boolean = False) 635Private ReadOnly _ChildBoundNodes As ImmutableArray(Of BoundNode) 636Public ReadOnly Property ChildBoundNodes As ImmutableArray(Of BoundNode) 647Public Function Update(childBoundNodes As ImmutableArray(Of BoundNode)) As BoundBadStatement 741Public Sub New(syntax As SyntaxNode, expression As BoundExpression, indices As ImmutableArray(Of BoundExpression), isLValue As Boolean, type As TypeSymbol, Optional hasErrors As Boolean = False) 766Private ReadOnly _Indices As ImmutableArray(Of BoundExpression) 767Public ReadOnly Property Indices As ImmutableArray(Of BoundExpression) 785Public Function Update(expression As BoundExpression, indices As ImmutableArray(Of BoundExpression), isLValue As Boolean, type As TypeSymbol) As BoundArrayAccess 2211Public Sub New(syntax As SyntaxNode, elementPlaceholders As ImmutableArray(Of BoundRValuePlaceholder), convertedElements As ImmutableArray(Of BoundExpression), Optional hasErrors As Boolean = False) 2227Private ReadOnly _ElementPlaceholders As ImmutableArray(Of BoundRValuePlaceholder) 2228Public ReadOnly Property ElementPlaceholders As ImmutableArray(Of BoundRValuePlaceholder) 2234Private ReadOnly _ConvertedElements As ImmutableArray(Of BoundExpression) 2235Public ReadOnly Property ConvertedElements As ImmutableArray(Of BoundExpression) 2246Public Function Update(elementPlaceholders As ImmutableArray(Of BoundRValuePlaceholder), convertedElements As ImmutableArray(Of BoundExpression)) As BoundConvertedTupleElements 2673Public 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) 2692Private ReadOnly _Methods As ImmutableArray(Of MethodSymbol) 2693Public ReadOnly Property Methods As ImmutableArray(Of MethodSymbol) 2718Public Function Update(typeArgumentsOpt As BoundTypeArguments, methods As ImmutableArray(Of MethodSymbol), pendingExtensionMethodsOpt As ExtensionMethodGroup, resultKind As LookupResultKind, receiverOpt As BoundExpression, qualificationKind As QualificationKind) As BoundMethodGroup 2731Public Sub New(syntax As SyntaxNode, properties As ImmutableArray(Of PropertySymbol), resultKind As LookupResultKind, receiverOpt As BoundExpression, qualificationKind As QualificationKind, Optional hasErrors As Boolean = False) 2741Private ReadOnly _Properties As ImmutableArray(Of PropertySymbol) 2742Public ReadOnly Property Properties As ImmutableArray(Of PropertySymbol) 2760Public Function Update(properties As ImmutableArray(Of PropertySymbol), resultKind As LookupResultKind, receiverOpt As BoundExpression, qualificationKind As QualificationKind) As BoundPropertyGroup 2895Public Sub New(syntax As SyntaxNode, clauses As ImmutableArray(Of BoundRedimClause), Optional hasErrors As Boolean = False) 2904Private ReadOnly _Clauses As ImmutableArray(Of BoundRedimClause) 2905Public ReadOnly Property Clauses As ImmutableArray(Of BoundRedimClause) 2916Public Function Update(clauses As ImmutableArray(Of BoundRedimClause)) As BoundRedimStatement 2929Public Sub New(syntax As SyntaxNode, operand As BoundExpression, indices As ImmutableArray(Of BoundExpression), arrayTypeOpt As ArrayTypeSymbol, preserve As Boolean, Optional hasErrors As Boolean = False) 2954Private ReadOnly _Indices As ImmutableArray(Of BoundExpression) 2955Public ReadOnly Property Indices As ImmutableArray(Of BoundExpression) 2980Public Function Update(operand As BoundExpression, indices As ImmutableArray(Of BoundExpression), arrayTypeOpt As ArrayTypeSymbol, preserve As Boolean) As BoundRedimClause 2993Public Sub New(syntax As SyntaxNode, clauses As ImmutableArray(Of BoundAssignmentOperator), Optional hasErrors As Boolean = False) 3002Private ReadOnly _Clauses As ImmutableArray(Of BoundAssignmentOperator) 3003Public ReadOnly Property Clauses As ImmutableArray(Of BoundAssignmentOperator) 3014Public Function Update(clauses As ImmutableArray(Of BoundAssignmentOperator)) As BoundEraseStatement 3027Public 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) 3071Private ReadOnly _Arguments As ImmutableArray(Of BoundExpression) 3072Public ReadOnly Property Arguments As ImmutableArray(Of BoundExpression) 3111Public 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 3124Public 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) 3146Private ReadOnly _ConstructorArguments As ImmutableArray(Of BoundExpression) 3147Public ReadOnly Property ConstructorArguments As ImmutableArray(Of BoundExpression) 3160Private ReadOnly _NamedArguments As ImmutableArray(Of BoundExpression) 3161Public ReadOnly Property NamedArguments As ImmutableArray(Of BoundExpression) 3179Public 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 3263Public 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) 3289Private ReadOnly _ArgumentsOpt As ImmutableArray(Of BoundExpression) 3290Public ReadOnly Property ArgumentsOpt As ImmutableArray(Of BoundExpression) 3296Private ReadOnly _ArgumentNamesOpt As ImmutableArray(Of string) 3297Public ReadOnly Property ArgumentNamesOpt As ImmutableArray(Of string) 3322Public 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 3378Protected Sub New(kind As BoundKind, syntax as SyntaxNode, arguments As ImmutableArray(Of BoundExpression), type As TypeSymbol, Optional hasErrors As Boolean = False) 3387Private ReadOnly _Arguments As ImmutableArray(Of BoundExpression) 3388Public ReadOnly Property Arguments As ImmutableArray(Of BoundExpression) 3398Public 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) 3416Private ReadOnly _ArgumentNamesOpt As ImmutableArray(Of String) 3417Public ReadOnly Property ArgumentNamesOpt As ImmutableArray(Of String) 3423Private ReadOnly _InferredNamesOpt As ImmutableArray(Of Boolean) 3424Public ReadOnly Property InferredNamesOpt As ImmutableArray(Of Boolean) 3435Public 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 3448Public Sub New(syntax As SyntaxNode, naturalTypeOpt As TypeSymbol, arguments As ImmutableArray(Of BoundExpression), type As TypeSymbol, Optional hasErrors As Boolean = False) 3470Public Function Update(naturalTypeOpt As TypeSymbol, arguments As ImmutableArray(Of BoundExpression), type As TypeSymbol) As BoundConvertedTupleLiteral 3508Public 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) 3540Private ReadOnly _Arguments As ImmutableArray(Of BoundExpression) 3541Public ReadOnly Property Arguments As ImmutableArray(Of BoundExpression) 3559Public Function Update(constructorOpt As MethodSymbol, methodGroupOpt As BoundMethodGroup, arguments As ImmutableArray(Of BoundExpression), defaultArguments As BitVector, initializerOpt As BoundObjectInitializerExpressionBase, type As TypeSymbol) As BoundObjectCreationExpression 3606Public 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) 3625Private ReadOnly _Declarations As ImmutableArray(Of BoundAnonymousTypePropertyAccess) 3626Public ReadOnly Property Declarations As ImmutableArray(Of BoundAnonymousTypePropertyAccess) 3632Private ReadOnly _Arguments As ImmutableArray(Of BoundExpression) 3633Public ReadOnly Property Arguments As ImmutableArray(Of BoundExpression) 3644Public Function Update(binderOpt As Binder.AnonymousTypeCreationBinder, declarations As ImmutableArray(Of BoundAnonymousTypePropertyAccess), arguments As ImmutableArray(Of BoundExpression), type As TypeSymbol) As BoundAnonymousTypeCreationExpression 3751Protected Sub New(kind As BoundKind, syntax as SyntaxNode, placeholderOpt As BoundWithLValueExpressionPlaceholder, initializers As ImmutableArray(Of BoundExpression), type As TypeSymbol, Optional hasErrors As Boolean = False) 3768Private ReadOnly _Initializers As ImmutableArray(Of BoundExpression) 3769Public ReadOnly Property Initializers As ImmutableArray(Of BoundExpression) 3779Public Sub New(syntax As SyntaxNode, createTemporaryLocalForInitialization As Boolean, placeholderOpt As BoundWithLValueExpressionPlaceholder, initializers As ImmutableArray(Of BoundExpression), type As TypeSymbol, Optional hasErrors As Boolean = False) 3805Public Function Update(createTemporaryLocalForInitialization As Boolean, placeholderOpt As BoundWithLValueExpressionPlaceholder, initializers As ImmutableArray(Of BoundExpression), type As TypeSymbol) As BoundObjectInitializerExpression 3818Public Sub New(syntax As SyntaxNode, placeholderOpt As BoundWithLValueExpressionPlaceholder, initializers As ImmutableArray(Of BoundExpression), type As TypeSymbol, Optional hasErrors As Boolean = False) 3836Public Function Update(placeholderOpt As BoundWithLValueExpressionPlaceholder, initializers As ImmutableArray(Of BoundExpression), type As TypeSymbol) As BoundCollectionInitializerExpression 3947Public 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) 3973Private ReadOnly _Bounds As ImmutableArray(Of BoundExpression) 3974Public ReadOnly Property Bounds As ImmutableArray(Of BoundExpression) 4006Public Function Update(isParamArrayArgument As Boolean, bounds As ImmutableArray(Of BoundExpression), initializerOpt As BoundArrayInitialization, arrayLiteralOpt As BoundArrayLiteral, arrayLiteralConversion As ConversionKind, type As TypeSymbol) As BoundArrayCreation 4019Public 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) 4057Private ReadOnly _Bounds As ImmutableArray(Of BoundExpression) 4058Public ReadOnly Property Bounds As ImmutableArray(Of BoundExpression) 4083Public Function Update(hasDominantType As Boolean, numberOfCandidates As Integer, inferredType As ArrayTypeSymbol, bounds As ImmutableArray(Of BoundExpression), initializer As BoundArrayInitialization, binder As Binder) As BoundArrayLiteral 4096Public Sub New(syntax As SyntaxNode, initializers As ImmutableArray(Of BoundExpression), type As TypeSymbol, Optional hasErrors As Boolean = False) 4105Private ReadOnly _Initializers As ImmutableArray(Of BoundExpression) 4106Public ReadOnly Property Initializers As ImmutableArray(Of BoundExpression) 4117Public Function Update(initializers As ImmutableArray(Of BoundExpression), type As TypeSymbol) As BoundArrayInitialization 4202Public 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) 4267Private ReadOnly _Arguments As ImmutableArray(Of BoundExpression) 4268Public ReadOnly Property Arguments As ImmutableArray(Of BoundExpression) 4286Public 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 4342Public 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) 4361Private ReadOnly _Locals As ImmutableArray(Of LocalSymbol) 4362Public ReadOnly Property Locals As ImmutableArray(Of LocalSymbol) 4368Private ReadOnly _Statements As ImmutableArray(Of BoundStatement) 4369Public ReadOnly Property Statements As ImmutableArray(Of BoundStatement) 4380Public Function Update(statementListSyntax As SyntaxList(Of StatementSyntax), locals As ImmutableArray(Of LocalSymbol), statements As ImmutableArray(Of BoundStatement)) As BoundBlock 4393Public Sub New(syntax As SyntaxNode, fields As ImmutableArray(Of FieldSymbol), statement As BoundStatement, Optional hasErrors As Boolean = False) 4404Private ReadOnly _Fields As ImmutableArray(Of FieldSymbol) 4405Public ReadOnly Property Fields As ImmutableArray(Of FieldSymbol) 4423Public Function Update(fields As ImmutableArray(Of FieldSymbol), statement As BoundStatement) As BoundStateMachineScope 4512Public Sub New(syntax As SyntaxNode, localDeclarations As ImmutableArray(Of BoundLocalDeclaration), initializer As BoundExpression, binder As Binder, Optional hasErrors As Boolean = False) 4525Private ReadOnly _LocalDeclarations As ImmutableArray(Of BoundLocalDeclaration) 4526Public ReadOnly Property LocalDeclarations As ImmutableArray(Of BoundLocalDeclaration) 4551Public Function Update(localDeclarations As ImmutableArray(Of BoundLocalDeclaration), initializer As BoundExpression, binder As Binder) As BoundAsNewLocalDeclarations 4564Public Sub New(syntax As SyntaxNode, localDeclarations As ImmutableArray(Of BoundLocalDeclarationBase), initializerOpt As BoundExpression, Optional hasErrors As Boolean = False) 4574Private ReadOnly _LocalDeclarations As ImmutableArray(Of BoundLocalDeclarationBase) 4575Public ReadOnly Property LocalDeclarations As ImmutableArray(Of BoundLocalDeclarationBase) 4593Public Function Update(localDeclarations As ImmutableArray(Of BoundLocalDeclarationBase), initializerOpt As BoundExpression) As BoundDimStatement 4668Public Sub New(syntax As SyntaxNode, initializedFields As ImmutableArray(Of FieldSymbol), memberAccessExpressionOpt As BoundExpression, initialValue As BoundExpression, binderOpt As Binder, Optional hasErrors As Boolean = False) 4678Private ReadOnly _InitializedFields As ImmutableArray(Of FieldSymbol) 4679Public ReadOnly Property InitializedFields As ImmutableArray(Of FieldSymbol) 4690Public Function Update(initializedFields As ImmutableArray(Of FieldSymbol), memberAccessExpressionOpt As BoundExpression, initialValue As BoundExpression, binderOpt As Binder) As BoundFieldInitializer 4703Public Sub New(syntax As SyntaxNode, initializedProperties As ImmutableArray(Of PropertySymbol), memberAccessExpressionOpt As BoundExpression, initialValue As BoundExpression, binderOpt As Binder, Optional hasErrors As Boolean = False) 4713Private ReadOnly _InitializedProperties As ImmutableArray(Of PropertySymbol) 4714Public ReadOnly Property InitializedProperties As ImmutableArray(Of PropertySymbol) 4725Public Function Update(initializedProperties As ImmutableArray(Of PropertySymbol), memberAccessExpressionOpt As BoundExpression, initialValue As BoundExpression, binderOpt As Binder) As BoundPropertyInitializer 4815Public 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) 4833Private ReadOnly _Locals As ImmutableArray(Of LocalSymbol) 4834Public ReadOnly Property Locals As ImmutableArray(Of LocalSymbol) 4840Private ReadOnly _SideEffects As ImmutableArray(Of BoundExpression) 4841Public ReadOnly Property SideEffects As ImmutableArray(Of BoundExpression) 4859Public Function Update(locals As ImmutableArray(Of LocalSymbol), sideEffects As ImmutableArray(Of BoundExpression), valueOpt As BoundExpression, type As TypeSymbol) As BoundSequence 4957Public 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) 4986Private ReadOnly _CaseBlocks As ImmutableArray(Of BoundCaseBlock) 4987Public ReadOnly Property CaseBlocks As ImmutableArray(Of BoundCaseBlock) 5012Public Function Update(expressionStatement As BoundExpressionStatement, exprPlaceholderOpt As BoundRValuePlaceholder, caseBlocks As ImmutableArray(Of BoundCaseBlock), recommendSwitchTable As Boolean, exitLabel As LabelSymbol) As BoundSelectStatement 5068Public Sub New(syntax As SyntaxNode, caseClauses As ImmutableArray(Of BoundCaseClause), conditionOpt As BoundExpression, Optional hasErrors As Boolean = False) 5078Private ReadOnly _CaseClauses As ImmutableArray(Of BoundCaseClause) 5079Public ReadOnly Property CaseClauses As ImmutableArray(Of BoundCaseClause) 5097Public Function Update(caseClauses As ImmutableArray(Of BoundCaseClause), conditionOpt As BoundExpression) As BoundCaseStatement 5424Protected 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) 5460Private ReadOnly _NextVariablesOpt As ImmutableArray(Of BoundExpression) 5461Public ReadOnly Property NextVariablesOpt As ImmutableArray(Of BoundExpression) 5555Public 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) 5614Public 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 5627Public 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) 5661Public 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 5758Public Sub New(syntax As SyntaxNode, tryBlock As BoundBlock, catchBlocks As ImmutableArray(Of BoundCatchBlock), finallyBlockOpt As BoundBlock, exitLabelOpt As LabelSymbol, Optional hasErrors As Boolean = False) 5778Private ReadOnly _CatchBlocks As ImmutableArray(Of BoundCatchBlock) 5779Public ReadOnly Property CatchBlocks As ImmutableArray(Of BoundCatchBlock) 5804Public Function Update(tryBlock As BoundBlock, catchBlocks As ImmutableArray(Of BoundCatchBlock), finallyBlockOpt As BoundBlock, exitLabelOpt As LabelSymbol) As BoundTryStatement 6640Public Sub New(syntax As SyntaxNode, statements As ImmutableArray(Of BoundStatement), Optional hasErrors As Boolean = False) 6649Private ReadOnly _Statements As ImmutableArray(Of BoundStatement) 6650Public ReadOnly Property Statements As ImmutableArray(Of BoundStatement) 6661Public Function Update(statements As ImmutableArray(Of BoundStatement)) As BoundStatementList 6777Public 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) 6796Public Sub New(syntax As SyntaxNode, binder As Binder, flags As SourceMemberFlags, parameters As ImmutableArray(Of ParameterSymbol), returnType As TypeSymbol, bindingCache As UnboundLambda.UnboundLambdaBindingCache) 6827Private ReadOnly _Parameters As ImmutableArray(Of ParameterSymbol) 6828Public ReadOnly Property Parameters As ImmutableArray(Of ParameterSymbol) 6853Public Function Update(binder As Binder, flags As SourceMemberFlags, parameters As ImmutableArray(Of ParameterSymbol), returnType As TypeSymbol, bindingCache As UnboundLambda.UnboundLambdaBindingCache) As UnboundLambda 7070Protected 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) 7083Protected Sub New(kind As BoundKind, syntax as SyntaxNode, rangeVariables As ImmutableArray(Of RangeVariableSymbol), compoundVariableType As TypeSymbol, binders As ImmutableArray(Of Binder), type As TypeSymbol) 7097Private ReadOnly _RangeVariables As ImmutableArray(Of RangeVariableSymbol) 7098Public ReadOnly Property RangeVariables As ImmutableArray(Of RangeVariableSymbol) 7111Private ReadOnly _Binders As ImmutableArray(Of Binder) 7112Public ReadOnly Property Binders As ImmutableArray(Of Binder) 7122Public 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) 7160Public 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 7173Public 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) 7198Public Function Update(underlyingExpression As BoundExpression, rangeVariables As ImmutableArray(Of RangeVariableSymbol), compoundVariableType As TypeSymbol, binders As ImmutableArray(Of Binder), type As TypeSymbol) As BoundQueryClause 7246Public Sub New(syntax As SyntaxNode, lambdaSymbol As SynthesizedLambdaSymbol, rangeVariables As ImmutableArray(Of RangeVariableSymbol), expression As BoundExpression, exprIsOperandOfConditionalBranch As Boolean, Optional hasErrors As Boolean = False) 7267Private ReadOnly _RangeVariables As ImmutableArray(Of RangeVariableSymbol) 7268Public ReadOnly Property RangeVariables As ImmutableArray(Of RangeVariableSymbol) 7293Public Function Update(lambdaSymbol As SynthesizedLambdaSymbol, rangeVariables As ImmutableArray(Of RangeVariableSymbol), expression As BoundExpression, exprIsOperandOfConditionalBranch As Boolean) As BoundQueryLambda 7350Public Sub New(syntax As SyntaxNode, binder As Binder, parameters As ImmutableArray(Of ParameterSymbol), compilation As VisualBasicCompilation, hasErrors As Boolean) 7362Public Sub New(syntax As SyntaxNode, binder As Binder, parameters As ImmutableArray(Of ParameterSymbol), compilation As VisualBasicCompilation) 7382Private ReadOnly _Parameters As ImmutableArray(Of ParameterSymbol) 7383Public ReadOnly Property Parameters As ImmutableArray(Of ParameterSymbol) 7401Public Function Update(binder As Binder, parameters As ImmutableArray(Of ParameterSymbol), compilation As VisualBasicCompilation) As GroupTypeInferenceLambda 7414Public 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) 7455Public 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 7673Public 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) 7688Private ReadOnly _ResourceList As ImmutableArray(Of BoundLocalDeclarationBase) 7689Public ReadOnly Property ResourceList As ImmutableArray(Of BoundLocalDeclarationBase) 7716Private ReadOnly _Locals As ImmutableArray(Of LocalSymbol) 7717Public ReadOnly Property Locals As ImmutableArray(Of LocalSymbol) 7728Public Function Update(resourceList As ImmutableArray(Of BoundLocalDeclarationBase), resourceExpressionOpt As BoundExpression, body As BoundBlock, usingInfo As UsingInfo, locals As ImmutableArray(Of LocalSymbol)) As BoundUsingStatement 7881Public Sub New(syntax As SyntaxNode, declaration As BoundExpression, childNodes As ImmutableArray(Of BoundExpression), rewriterInfo As BoundXmlContainerRewriterInfo, type As TypeSymbol, Optional hasErrors As Boolean = False) 7902Private ReadOnly _ChildNodes As ImmutableArray(Of BoundExpression) 7903Public ReadOnly Property ChildNodes As ImmutableArray(Of BoundExpression) 7921Public Function Update(declaration As BoundExpression, childNodes As ImmutableArray(Of BoundExpression), rewriterInfo As BoundXmlContainerRewriterInfo, type As TypeSymbol) As BoundXmlDocument 8156Public Sub New(syntax As SyntaxNode, argument As BoundExpression, childNodes As ImmutableArray(Of BoundExpression), rewriterInfo As BoundXmlContainerRewriterInfo, type As TypeSymbol, Optional hasErrors As Boolean = False) 8177Private ReadOnly _ChildNodes As ImmutableArray(Of BoundExpression) 8178Public ReadOnly Property ChildNodes As ImmutableArray(Of BoundExpression) 8196Public Function Update(argument As BoundExpression, childNodes As ImmutableArray(Of BoundExpression), rewriterInfo As BoundXmlContainerRewriterInfo, type As TypeSymbol) As BoundXmlElement 8547Public Sub New(syntax As SyntaxNode, value As BoundExpression, jumps As ImmutableArray(Of BoundGotoStatement), Optional hasErrors As Boolean = False) 8570Private ReadOnly _Jumps As ImmutableArray(Of BoundGotoStatement) 8571Public ReadOnly Property Jumps As ImmutableArray(Of BoundGotoStatement) 8582Public Function Update(value As BoundExpression, jumps As ImmutableArray(Of BoundGotoStatement)) As BoundUnstructuredExceptionOnErrorSwitch 8595Public Sub New(syntax As SyntaxNode, resumeTargetTemporary As BoundLocal, resumeLabel As BoundLabelStatement, resumeNextLabel As BoundLabelStatement, jumps As ImmutableArray(Of BoundGotoStatement), Optional hasErrors As Boolean = False) 8636Private ReadOnly _Jumps As ImmutableArray(Of BoundGotoStatement) 8637Public ReadOnly Property Jumps As ImmutableArray(Of BoundGotoStatement) 8648Public Function Update(resumeTargetTemporary As BoundLocal, resumeLabel As BoundLabelStatement, resumeNextLabel As BoundLabelStatement, jumps As ImmutableArray(Of BoundGotoStatement)) As BoundUnstructuredExceptionResumeSwitch 8746Public 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) 8765Private ReadOnly _Locals As ImmutableArray(Of LocalSymbol) 8766Public ReadOnly Property Locals As ImmutableArray(Of LocalSymbol) 8772Private ReadOnly _SpillFields As ImmutableArray(Of FieldSymbol) 8773Public ReadOnly Property SpillFields As ImmutableArray(Of FieldSymbol) 8779Private ReadOnly _Statements As ImmutableArray(Of BoundStatement) 8780Public ReadOnly Property Statements As ImmutableArray(Of BoundStatement) 8798Public 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 9233Public Sub New(syntax As SyntaxNode, contents As ImmutableArray(Of BoundNode), constructionOpt As BoundExpression, type As TypeSymbol, Optional hasErrors As Boolean = False) 9249Private ReadOnly _Contents As ImmutableArray(Of BoundNode) 9250Public ReadOnly Property Contents As ImmutableArray(Of BoundNode) 9268Public Function Update(contents As ImmutableArray(Of BoundNode), constructionOpt As BoundExpression, type As TypeSymbol) As BoundInterpolatedStringExpression 12088Dim childBoundNodes As ImmutableArray(Of BoundExpression) = Me.VisitList(node.ChildBoundNodes) 12094Dim childBoundNodes As ImmutableArray(Of BoundNode) = Me.VisitList(node.ChildBoundNodes) 12112Dim indices As ImmutableArray(Of BoundExpression) = Me.VisitList(node.Indices) 12283Dim elementPlaceholders As ImmutableArray(Of BoundRValuePlaceholder) = Me.VisitList(node.ElementPlaceholders) 12284Dim convertedElements As ImmutableArray(Of BoundExpression) = Me.VisitList(node.ConvertedElements) 12364Dim clauses As ImmutableArray(Of BoundRedimClause) = Me.VisitList(node.Clauses) 12370Dim indices As ImmutableArray(Of BoundExpression) = Me.VisitList(node.Indices) 12375Dim clauses As ImmutableArray(Of BoundAssignmentOperator) = Me.VisitList(node.Clauses) 12382Dim arguments As ImmutableArray(Of BoundExpression) = Me.VisitList(node.Arguments) 12388Dim constructorArguments As ImmutableArray(Of BoundExpression) = Me.VisitList(node.ConstructorArguments) 12389Dim namedArguments As ImmutableArray(Of BoundExpression) = Me.VisitList(node.NamedArguments) 12404Dim argumentsOpt As ImmutableArray(Of BoundExpression) = Me.VisitList(node.ArgumentsOpt) 12417Dim arguments As ImmutableArray(Of BoundExpression) = Me.VisitList(node.Arguments) 12423Dim arguments As ImmutableArray(Of BoundExpression) = Me.VisitList(node.Arguments) 12431Dim arguments As ImmutableArray(Of BoundExpression) = Me.VisitList(node.Arguments) 12444Dim declarations As ImmutableArray(Of BoundAnonymousTypePropertyAccess) = Me.VisitList(node.Declarations) 12445Dim arguments As ImmutableArray(Of BoundExpression) = Me.VisitList(node.Arguments) 12463Dim initializers As ImmutableArray(Of BoundExpression) = Me.VisitList(node.Initializers) 12470Dim initializers As ImmutableArray(Of BoundExpression) = Me.VisitList(node.Initializers) 12491Dim bounds As ImmutableArray(Of BoundExpression) = Me.VisitList(node.Bounds) 12499Dim bounds As ImmutableArray(Of BoundExpression) = Me.VisitList(node.Bounds) 12506Dim initializers As ImmutableArray(Of BoundExpression) = Me.VisitList(node.Initializers) 12520Dim arguments As ImmutableArray(Of BoundExpression) = Me.VisitList(node.Arguments) 12532Dim statements As ImmutableArray(Of BoundStatement) = Me.VisitList(node.Statements) 12548Dim localDeclarations As ImmutableArray(Of BoundLocalDeclaration) = Me.VisitList(node.LocalDeclarations) 12554Dim localDeclarations As ImmutableArray(Of BoundLocalDeclarationBase) = Me.VisitList(node.LocalDeclarations) 12586Dim sideEffects As ImmutableArray(Of BoundExpression) = Me.VisitList(node.SideEffects) 12607Dim caseBlocks As ImmutableArray(Of BoundCaseBlock) = Me.VisitList(node.CaseBlocks) 12618Dim caseClauses As ImmutableArray(Of BoundCaseClause) = Me.VisitList(node.CaseClauses) 12673Dim nextVariablesOpt As ImmutableArray(Of BoundExpression) = Me.VisitList(node.NextVariablesOpt) 12681Dim nextVariablesOpt As ImmutableArray(Of BoundExpression) = Me.VisitList(node.NextVariablesOpt) 12695Dim catchBlocks As ImmutableArray(Of BoundCatchBlock) = Me.VisitList(node.CatchBlocks) 12794Dim statements As ImmutableArray(Of BoundStatement) = Me.VisitList(node.Statements) 12914Dim resourceList As ImmutableArray(Of BoundLocalDeclarationBase) = Me.VisitList(node.ResourceList) 12943Dim childNodes As ImmutableArray(Of BoundExpression) = Me.VisitList(node.ChildNodes) 12982Dim childNodes As ImmutableArray(Of BoundExpression) = Me.VisitList(node.ChildNodes) 13030Dim jumps As ImmutableArray(Of BoundGotoStatement) = Me.VisitList(node.Jumps) 13038Dim jumps As ImmutableArray(Of BoundGotoStatement) = Me.VisitList(node.Jumps) 13054Dim statements As ImmutableArray(Of BoundStatement) = Me.VisitList(node.Statements) 13118Dim 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) 815Dim bounds As ImmutableArray(Of BoundExpression) = Me.VisitList(node.Bounds) 854Dim parts As ImmutableArray(Of BoundExpression) = node.Initializers 882Dim 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_BinaryOperator.vb (2)
758Dim parameters As ImmutableArray(Of ParameterSymbol) = [call].Method.Parameters 761Dim oldArgs As ImmutableArray(Of BoundExpression) = [call].Arguments
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\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)
24Private ReadOnly _typeParameters As ImmutableArray(Of TypeParameterSymbol) 59MyBase.New(topLevelMethod, MakeName(scopeSyntaxOpt, methodId, closureId, isStatic, isDelegateRelaxationFrame), topLevelMethod.ContainingType, ImmutableArray(Of NamedTypeSymbol).Empty) 137Public Overloads Overrides Function GetMembers(name As String) As ImmutableArray(Of Symbol) 138Return ImmutableArray(Of Symbol).Empty 141Public Overloads Overrides Function GetMembers() As ImmutableArray(Of Symbol) 192Friend Overrides Function MakeAcyclicInterfaces(diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol) 193Return ImmutableArray(Of NamedTypeSymbol).Empty 204Friend Overrides Function MakeDeclaredInterfaces(basesBeingResolved As BasesBeingResolved, diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol) 205Return ImmutableArray(Of NamedTypeSymbol).Empty 226Public 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)
242Public 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_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)
158result = 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)
217ImmutableArray(Of BoundExpression).Empty, 285ImmutableArray(Of BoundExpression).Empty, 300Dim locals As ImmutableArray(Of LocalSymbol) 301Dim statementsInTry As ImmutableArray(Of BoundStatement) 308locals = ImmutableArray(Of LocalSymbol).Empty 315ImmutableArray(Of LocalSymbol).Empty, 326ImmutableArray(Of LocalSymbol).Empty, 329Dim 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\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\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)
115Dim arguments As ImmutableArray(Of BoundExpression) = node.Arguments 136Dim arguments As ImmutableArray(Of BoundExpression) = VisitList(node.Arguments)
Lowering\Rewriter.vb (2)
25<Out> ByRef codeCoverageSpans As ImmutableArray(Of SourceSpan), 70codeCoverageSpans = 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) 184Friend NotOverridable Overrides Function GetAppliedConditionalSymbols() As ImmutableArray(Of String) 185Return ImmutableArray(Of String).Empty 216Friend Overrides Function MakeAcyclicInterfaces(diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol) 220Friend Overrides Function MakeDeclaredInterfaces(basesBeingResolved As BasesBeingResolved, diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol) 224Public Overloads Overrides Function GetMembers() As ImmutableArray(Of Symbol) 229Public Overrides Function GetMembers(name As String) As ImmutableArray(Of Symbol) 231ImmutableArray.Create(Of Symbol)(Me.Constructor), ImmutableArray(Of Symbol).Empty) 256Public NotOverridable Overrides Function GetTypeMembers() As ImmutableArray(Of NamedTypeSymbol) 257Return ImmutableArray(Of NamedTypeSymbol).Empty 260Public NotOverridable Overrides Function GetTypeMembers(name As String) As ImmutableArray(Of NamedTypeSymbol) 261Return ImmutableArray(Of NamedTypeSymbol).Empty 264Public NotOverridable Overrides Function GetTypeMembers(name As String, arity As Integer) As ImmutableArray(Of NamedTypeSymbol) 265Return ImmutableArray(Of NamedTypeSymbol).Empty 274Public NotOverridable Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 276Return ImmutableArray(Of Location).Empty 280Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 282Return 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_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
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)
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)
34Friend MustOverride Function Construct(typeArguments As ImmutableArray(Of TypeSymbol)) As Candidate 88Public MustOverride ReadOnly Property TypeParameters As ImmutableArray(Of TypeParameterSymbol) 160Friend Overrides Function Construct(typeArguments As ImmutableArray(Of TypeSymbol)) As Candidate 204Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of TypeParameterSymbol) 309Friend Overrides Function Construct(typeArguments As ImmutableArray(Of TypeSymbol)) As Candidate 353Private ReadOnly _parameters As ImmutableArray(Of ParameterSymbol) 356Public Sub New(method As MethodSymbol, parameters As ImmutableArray(Of ParameterSymbol), returnType As TypeSymbol) 399Friend Overrides Function Construct(typeArguments As ImmutableArray(Of TypeSymbol)) As Candidate 443Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of TypeParameterSymbol) 445Return ImmutableArray(Of TypeParameterSymbol).Empty 566Public ReadOnly Dependencies As ImmutableArray(Of AssemblySymbol) 568Public Sub New(value As BoundExpression, conversion As KeyValuePair(Of ConversionKind, MethodSymbol), dependencies As ImmutableArray(Of AssemblySymbol)) 742Public ArgsToParamsOpt As ImmutableArray(Of Integer) 745Public ConversionsOpt As ImmutableArray(Of KeyValuePair(Of ConversionKind, MethodSymbol)) 746Public ConversionsBackOpt As ImmutableArray(Of KeyValuePair(Of ConversionKind, MethodSymbol)) 750Public OptionalArguments As ImmutableArray(Of OptionalArgument) 776Private ReadOnly _allResults As ImmutableArray(Of CandidateAnalysisResult) 779Public ReadOnly AsyncLambdaSubToFunctionMismatch As ImmutableArray(Of BoundExpression) 782Public Sub New(allResults As ImmutableArray(Of CandidateAnalysisResult), resolutionIsLateBound As Boolean, 789ImmutableArray(Of BoundExpression).Empty, 797Public ReadOnly Property Candidates As ImmutableArray(Of CandidateAnalysisResult) 825Private Shared Function GetBestResult(allResults As ImmutableArray(Of CandidateAnalysisResult)) As CandidateAnalysisResult? 854arguments As ImmutableArray(Of BoundExpression), 855argumentNames As ImmutableArray(Of String), 893arguments As ImmutableArray(Of BoundExpression), 917arguments As ImmutableArray(Of BoundExpression), 918argumentNames As ImmutableArray(Of String), 931Dim typeArguments = If(methodGroup.TypeArgumentsOpt IsNot Nothing, methodGroup.TypeArgumentsOpt.Arguments, ImmutableArray(Of TypeSymbol).Empty) 935typeArguments = ImmutableArray(Of TypeSymbol).Empty 939arguments = ImmutableArray(Of BoundExpression).Empty 947Dim methods As ImmutableArray(Of MethodSymbol) = methodGroup.Methods 1079arguments As ImmutableArray(Of BoundExpression), 1080argumentNames As ImmutableArray(Of String), 1088Dim properties As ImmutableArray(Of PropertySymbol) = propertyGroup.Properties 1091arguments = ImmutableArray(Of BoundExpression).Empty 1110CollectOverloadedCandidates(binder, results, candidates, ImmutableArray(Of TypeSymbol).Empty, 1154arguments As ImmutableArray(Of BoundExpression), 1155argumentNames As ImmutableArray(Of String), 1367argumentNames As ImmutableArray(Of String), 1429argumentNames As ImmutableArray(Of String), 1587arguments As ImmutableArray(Of BoundExpression), 1679arguments As ImmutableArray(Of BoundExpression), 1715arguments As ImmutableArray(Of BoundExpression), 1792arguments As ImmutableArray(Of BoundExpression), 1844arguments As ImmutableArray(Of BoundExpression), 2067arguments As ImmutableArray(Of BoundExpression), 2278arguments As ImmutableArray(Of BoundExpression), 2534arguments As ImmutableArray(Of BoundExpression), 2587arguments As ImmutableArray(Of BoundExpression), 2690arguments As ImmutableArray(Of BoundExpression), 2949arguments As ImmutableArray(Of BoundExpression), 2950argumentNames As ImmutableArray(Of String), 3034arguments As ImmutableArray(Of BoundExpression), 3035argumentNames As ImmutableArray(Of String), 3216arguments As ImmutableArray(Of BoundExpression), 3217argumentNames As ImmutableArray(Of String), 3851typeArguments As ImmutableArray(Of TypeSymbol), 3852arguments As ImmutableArray(Of BoundExpression), 3853argumentNames As ImmutableArray(Of String), 4058typeArguments As ImmutableArray(Of TypeSymbol), 4059arguments As ImmutableArray(Of BoundExpression), 4146typeArguments As ImmutableArray(Of TypeSymbol), 4147arguments As ImmutableArray(Of BoundExpression), 4148argumentNames As ImmutableArray(Of String), 4244typeArguments As ImmutableArray(Of TypeSymbol), 4245arguments As ImmutableArray(Of BoundExpression), 4246argumentNames As ImmutableArray(Of String), 4283argumentNames As ImmutableArray(Of String), 4602arguments As ImmutableArray(Of BoundExpression), 4801arguments As ImmutableArray(Of BoundExpression), 4952Dim leftTypeArguments As ImmutableArray(Of TypeSymbol) = leftNamedType.TypeArgumentsNoUseSiteDiagnostics 4953Dim rightTypeArguments As ImmutableArray(Of TypeSymbol) = rightNamedType.TypeArgumentsNoUseSiteDiagnostics 5255arguments As ImmutableArray(Of BoundExpression), 5256argumentNames As ImmutableArray(Of String), 5271Dim typeArguments As ImmutableArray(Of TypeSymbol) = Nothing 5277Dim typeArgumentsLocation As ImmutableArray(Of SyntaxNodeOrToken) = Nothing 5359Private Shared Function ConstructIfNeedTo(candidate As Candidate, typeArguments As ImmutableArray(Of TypeSymbol)) As Candidate
Semantics\TypeInference\TypeArgumentInference.vb (22)
19arguments As ImmutableArray(Of BoundExpression), 24ByRef typeArguments As ImmutableArray(Of TypeSymbol), 30<Out> ByRef typeArgumentsLocation As ImmutableArray(Of SyntaxNodeOrToken), 450Dim lambdaParameters As ImmutableArray(Of ParameterSymbol) = unboundLambda.Parameters 451Dim delegateParameters As ImmutableArray(Of ParameterSymbol) = invokeMethod.Parameters 605Public ReadOnly Arguments As ImmutableArray(Of BoundExpression) 618Private ReadOnly _typeParameterNodes As ImmutableArray(Of TypeParameterNode) 623arguments As ImmutableArray(Of BoundExpression), 697arguments As ImmutableArray(Of BoundExpression), 702ByRef typeArguments As ImmutableArray(Of TypeSymbol), 708<Out> ByRef typeArgumentsLocation As ImmutableArray(Of SyntaxNodeOrToken), 914Dim arguments As ImmutableArray(Of BoundExpression) = Me.Arguments 1096Dim elementTypes As ImmutableArray(Of TypeSymbol) = Nothing 1194Dim delegateParameters As ImmutableArray(Of ParameterSymbol) = invoke.Parameters 1195Dim lambdaParameters As ImmutableArray(Of ParameterSymbol) 1318Dim elementTypes As ImmutableArray(Of TypeSymbol) = Nothing 1392Dim parameterElementTypes As ImmutableArray(Of TypeSymbol) = Nothing 1393Dim argumentElementTypes As ImmutableArray(Of TypeSymbol) = Nothing 1684Dim argumentParams As ImmutableArray(Of ParameterSymbol) = argumentInvokeProc.Parameters 1685Dim parameterParams As ImmutableArray(Of ParameterSymbol) = parameterInvokeProc.Parameters 2060Dim lambdaParams As ImmutableArray(Of ParameterSymbol) 2073Dim delegateParams As ImmutableArray(Of ParameterSymbol) = invokeMethod.Parameters
Semantics\TypeInference\TypeInferenceCollection.vb (3)
623Dim names1 As ImmutableArray(Of String) = VisualBasicCompilation.TupleNamesEncoder.Encode(first) 624Dim names2 As ImmutableArray(Of String) = VisualBasicCompilation.TupleNamesEncoder.Encode(second) 626Dim 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\roslyn\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)
390Dim elements As ImmutableArray(Of IFieldSymbol) = symbol.TupleElements 488Private 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)
122Dim parameters As ImmutableArray(Of AnonymousTypeField) = delegateDescr.Parameters 270Friend 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)
72Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of TypeParameterSymbol) 74Return ImmutableArray(Of TypeParameterSymbol).Empty 130Friend Overrides Function MakeDeclaredInterfaces(basesBeingResolved As BasesBeingResolved, diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol) 134Public Overrides Function GetMembers(name As String) As ImmutableArray(Of Symbol) 159Public Overrides Function GetTypeMembers() As ImmutableArray(Of NamedTypeSymbol) 160Return ImmutableArray(Of NamedTypeSymbol).Empty 163Public Overrides Function GetTypeMembers(name As String) As ImmutableArray(Of NamedTypeSymbol) 164Return ImmutableArray(Of NamedTypeSymbol).Empty 167Public Overrides Function GetTypeMembers(name As String, arity As Integer) As ImmutableArray(Of NamedTypeSymbol) 168Return ImmutableArray(Of NamedTypeSymbol).Empty 177Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 183Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 185Return ImmutableArray(Of SyntaxReference).Empty 225Friend Overrides Function GetAppliedConditionalSymbols() As ImmutableArray(Of String) 226Return ImmutableArray(Of String).Empty
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousDelegate_TemplateSymbol.vb (6)
20Private ReadOnly _members As ImmutableArray(Of SynthesizedDelegateMethodSymbol) 39Dim parameterDescriptors As ImmutableArray(Of AnonymousTypeField) = typeDescr.Parameters 132Public Overrides Function GetMembers() As ImmutableArray(Of Symbol) 150Friend Overrides Function MakeAcyclicInterfaces(diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol) 151Return ImmutableArray(Of NamedTypeSymbol).Empty 211Public 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)
39Private ReadOnly _typeParameters As ImmutableArray(Of TypeParameterSymbol) 71_typeParameters = ImmutableArray(Of TypeParameterSymbol).Empty 129Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of TypeParameterSymbol) 201Friend Overrides Function GetAppliedConditionalSymbols() As ImmutableArray(Of String) 202Return ImmutableArray(Of String).Empty 229Friend Overrides Function MakeDeclaredInterfaces(basesBeingResolved As BasesBeingResolved, diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol) 233Public Overrides Function GetMembers(name As String) As ImmutableArray(Of Symbol) 258Public Overrides Function GetTypeMembers() As ImmutableArray(Of NamedTypeSymbol) 259Return ImmutableArray(Of NamedTypeSymbol).Empty 262Public Overrides Function GetTypeMembers(name As String) As ImmutableArray(Of NamedTypeSymbol) 263Return ImmutableArray(Of NamedTypeSymbol).Empty 266Public Overrides Function GetTypeMembers(name As String, arity As Integer) As ImmutableArray(Of NamedTypeSymbol) 267Return ImmutableArray(Of NamedTypeSymbol).Empty 276Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 278Return ImmutableArray(Of Location).Empty 282Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 284Return ImmutableArray(Of SyntaxReference).Empty 317Public 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 458Friend MustOverride Function GetNoPiaResolutionAssemblies() As ImmutableArray(Of AssemblySymbol) 459Friend MustOverride Sub SetNoPiaResolutionAssemblies(assemblies As ImmutableArray(Of AssemblySymbol)) 466Friend MustOverride Function GetLinkedReferencedAssemblies() As ImmutableArray(Of AssemblySymbol) 467Friend MustOverride Sub SetLinkedReferencedAssemblies(assemblies As ImmutableArray(Of AssemblySymbol)) 492Friend MustOverride Function GetInternalsVisibleToPublicKeys(simpleName As String) As IEnumerable(Of ImmutableArray(Of Byte)) 667Dim references As ImmutableArray(Of AssemblySymbol) = Me.Modules(0).GetReferencedAssemblySymbols() 738Friend MustOverride ReadOnly Property PublicKey As ImmutableArray(Of Byte) 792Return ImmutableArray(Of IModuleSymbol).CastUp(Me.Modules) 800Private Function IAssemblySymbol_GetForwardedTypes() As ImmutableArray(Of INamedTypeSymbol) Implements IAssemblySymbol.GetForwardedTypes 828Private 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)
55Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 57Return ImmutableArray(Of SyntaxReference).Empty 61Public Overrides ReadOnly Property ExplicitInterfaceImplementations As ImmutableArray(Of MethodSymbol) 63Return ImmutableArray(Of MethodSymbol).Empty 67Friend Overrides Function GetAppliedConditionalSymbols() As ImmutableArray(Of String) 68Return ImmutableArray(Of String).Empty 185Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 187Return ImmutableArray(Of Location).Empty 203Public Overrides ReadOnly Property Parameters As ImmutableArray(Of ParameterSymbol) 205Return ImmutableArray(Of ParameterSymbol).Empty 221Public Overrides ReadOnly Property ReturnTypeCustomModifiers As ImmutableArray(Of CustomModifier) 223Return ImmutableArray(Of CustomModifier).Empty 227Public Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier) 229Return ImmutableArray(Of CustomModifier).Empty 245Public Overrides ReadOnly Property TypeArguments As ImmutableArray(Of TypeSymbol) 247Return ImmutableArray(Of TypeSymbol).Empty 251Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of TypeParameterSymbol) 253Return ImmutableArray(Of TypeParameterSymbol).Empty
Symbols\ErrorTypeSymbol.vb (29)
49Friend Overrides Function MakeDeclaredInterfaces(basesBeingResolved As BasesBeingResolved, diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol) 50Return ImmutableArray(Of NamedTypeSymbol).Empty 57Friend Overrides Function MakeAcyclicInterfaces(diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol) 58Return ImmutableArray(Of NamedTypeSymbol).Empty 80Public Overrides Function GetMembers() As ImmutableArray(Of Symbol) 81Return ImmutableArray(Of Symbol).Empty 84Public Overrides Function GetMembers(name As String) As ImmutableArray(Of Symbol) 85Return ImmutableArray(Of Symbol).Empty 88Public Overrides Function GetTypeMembers() As ImmutableArray(Of NamedTypeSymbol) 89Return ImmutableArray(Of NamedTypeSymbol).Empty 92Public Overrides Function GetTypeMembers(name As String) As ImmutableArray(Of NamedTypeSymbol) 93Return ImmutableArray(Of NamedTypeSymbol).Empty 96Public Overrides Function GetTypeMembers(name As String, arity As Integer) As ImmutableArray(Of NamedTypeSymbol) 97Return ImmutableArray(Of NamedTypeSymbol).Empty 128Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 130Return ImmutableArray(Of Location).Empty 134Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 136Return ImmutableArray(Of SyntaxReference).Empty 183Friend Overrides ReadOnly Property TypeArgumentsNoUseSiteDiagnostics As ImmutableArray(Of TypeSymbol) 185Return ImmutableArray(Of TypeSymbol).Empty 195Public Overrides Function GetTypeArgumentCustomModifiers(ordinal As Integer) As ImmutableArray(Of CustomModifier) 199Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of TypeParameterSymbol) 201Return ImmutableArray(Of TypeParameterSymbol).Empty 291Friend Overrides Function GetAppliedConditionalSymbols() As ImmutableArray(Of String) 292Return ImmutableArray(Of String).Empty 331Public Overrides Function Construct(typeArguments As ImmutableArray(Of TypeSymbol)) As NamedTypeSymbol 380Public Overridable ReadOnly Property CandidateSymbols As ImmutableArray(Of Symbol) 382Return ImmutableArray(Of Symbol).Empty 429Public ReadOnly Property IErrorTypeSymbol_CandidateSymbols As ImmutableArray(Of ISymbol) Implements IErrorTypeSymbol.CandidateSymbols
Symbols\EventSymbol.vb (6)
88Public Function GetFieldAttributes() As ImmutableArray(Of VisualBasicAttributeData) 90Return If(field Is Nothing, ImmutableArray(Of VisualBasicAttributeData).Empty, field.GetAttributes()) 129Public MustOverride ReadOnly Property ExplicitInterfaceImplementations As ImmutableArray(Of EventSymbol) 141Friend Overridable ReadOnly Property DelegateParameters As ImmutableArray(Of ParameterSymbol) 147Return ImmutableArray(Of ParameterSymbol).Empty 321Private 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 675Return ImmutableArray(Of VisualBasicAttributeData).Empty 679InterlockedOperations.Initialize(uncommonFields._lazyCustomAttributes, ImmutableArray(Of VisualBasicAttributeData).Empty), 758Friend Overrides ReadOnly Property ReturnValueMarshallingDescriptor As ImmutableArray(Of Byte) 953Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 959Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 961Return ImmutableArray(Of SyntaxReference).Empty 982Public Overrides ReadOnly Property Parameters As ImmutableArray(Of ParameterSymbol) 1000Public Overrides ReadOnly Property ReturnTypeCustomModifiers As ImmutableArray(Of CustomModifier) 1006Public Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier) 1012Public Overrides Function GetReturnTypeAttributes() As ImmutableArray(Of VisualBasicAttributeData) 1064ImmutableArray(Of TypeParameterSymbol).Empty) 1068Dim params As ImmutableArray(Of ParameterSymbol) 1084params = ImmutableArray(Of ParameterSymbol).Empty 1109Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of TypeParameterSymbol) 1121Public Overrides ReadOnly Property TypeArguments As ImmutableArray(Of TypeSymbol) 1126Return ImmutableArray(Of TypeSymbol).Empty 1131Private Function EnsureTypeParametersAreLoaded(ByRef errorInfo As DiagnosticInfo) As ImmutableArray(Of TypeParameterSymbol) 1140Private Function LoadTypeParameters(ByRef errorInfo As DiagnosticInfo) As ImmutableArray(Of TypeParameterSymbol) 1147Return ImmutableArray(Of TypeParameterSymbol).Empty 1158Return ImmutableArray(Of TypeParameterSymbol).Empty 1169Public Overrides ReadOnly Property ExplicitInterfaceImplementations As ImmutableArray(Of MethodSymbol) 1337Friend Overrides Function GetAppliedConditionalSymbols() As ImmutableArray(Of String) 1340Dim conditionalSymbols As ImmutableArray(Of String) = moduleSymbol.Module.GetConditionalAttributeValues(_handle) 1352Return ImmutableArray(Of String).Empty 1356InterlockedOperations.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)
27Private Shared ReadOnly s_emptyNestedTypes As Dictionary(Of String, ImmutableArray(Of PENamedTypeSymbol)) = 28New Dictionary(Of String, ImmutableArray(Of PENamedTypeSymbol))(IdentifierComparison.Comparer) 45Private _lazyNestedTypes As Dictionary(Of String, ImmutableArray(Of PENamedTypeSymbol)) 57Private _lazyMembers As Dictionary(Of String, ImmutableArray(Of Symbol)) 59Private _lazyTypeParameters As ImmutableArray(Of TypeParameterSymbol) 63Private _lazyCustomAttributes As ImmutableArray(Of VisualBasicAttributeData) 64Private _lazyConditionalAttributeSymbols As ImmutableArray(Of String) 156_lazyTypeParameters = ImmutableArray(Of TypeParameterSymbol).Empty 273Friend Overrides Function MakeDeclaredInterfaces(basesBeingResolved As BasesBeingResolved, diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol) 279Return ImmutableArray(Of NamedTypeSymbol).Empty 317Friend Overrides Function MakeAcyclicInterfaces(diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol) 318Dim declaredInterfaces As ImmutableArray(Of NamedTypeSymbol) = GetDeclaredInterfacesNoUseSiteDiagnostics(Nothing) 415Public Overloads Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData) 507Public Overloads Overrides Function GetMembers() As ImmutableArray(Of Symbol) 514Friend Overrides Function GetMembersUnordered() As ImmutableArray(Of Symbol) 691Dim membersDict As New Dictionary(Of String, ImmutableArray(Of Symbol))(CaseInsensitiveComparison.Comparer) 703Dim weMembers As ImmutableArray(Of Symbol) = Nothing 723Dim symbols As ImmutableArray(Of Symbol) = Nothing 759Public Overloads Overrides Function GetMembers(name As String) As ImmutableArray(Of Symbol) 763Dim m As ImmutableArray(Of Symbol) = Nothing 769Return ImmutableArray(Of Symbol).Empty 772Friend Overrides Function GetTypeMembersUnordered() As ImmutableArray(Of NamedTypeSymbol) 778Public Overloads Overrides Function GetTypeMembers() As ImmutableArray(Of NamedTypeSymbol) 805Public Overloads Overrides Function GetTypeMembers(name As String) As ImmutableArray(Of NamedTypeSymbol) 808Dim t As ImmutableArray(Of PENamedTypeSymbol) = Nothing 814Return ImmutableArray(Of NamedTypeSymbol).Empty 817Public Overloads Overrides Function GetTypeMembers(name As String, arity As Integer) As ImmutableArray(Of NamedTypeSymbol) 821Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 827Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 829Return ImmutableArray(Of SyntaxReference).Empty 845Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of TypeParameterSymbol) 1292Private Shared Function GroupByName(symbols As ArrayBuilder(Of PENamedTypeSymbol)) As Dictionary(Of String, ImmutableArray(Of PENamedTypeSymbol)) 1462Friend Overrides Function GetAppliedConditionalSymbols() As ImmutableArray(Of String) 1464Dim conditionalSymbols As ImmutableArray(Of String) = ContainingPEModule.Module.GetConditionalAttributeValues(_handle) 1561Private Shared Function GetIndexOfFirstMember(members As ImmutableArray(Of Symbol), kind As SymbolKind) As Integer 1575Private 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)
32Dim 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\MetadataOrSourceOrRetargetingAssemblySymbol.vb (1)
32Dim 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 939Private ReadOnly Property IMethodSymbol_ExplicitInterfaceImplementations As ImmutableArray(Of IMethodSymbol) Implements IMethodSymbol.ExplicitInterfaceImplementations 1005Private ReadOnly Property IMethodSymbol_Parameters As ImmutableArray(Of IParameterSymbol) Implements IMethodSymbol.Parameters 1007Return ImmutableArray(Of IParameterSymbol).CastUp(Me.Parameters) 1011Private ReadOnly Property IMethodSymbolInternal_Parameters As ImmutableArray(Of IParameterSymbolInternal) Implements IMethodSymbolInternal.Parameters 1013Return ImmutableArray(Of IParameterSymbolInternal).CastUp(Me.Parameters) 1108Private ReadOnly Property IMethodSymbol_UnmanagedCallingConventionTypes As ImmutableArray(Of INamedTypeSymbol) Implements IMethodSymbol.UnmanagedCallingConventionTypes 1110Return ImmutableArray(Of INamedTypeSymbol).Empty 1114Private ReadOnly Property IMethodSymbol_TypeArguments As ImmutableArray(Of ITypeSymbol) Implements IMethodSymbol.TypeArguments 1120Private ReadOnly Property IMethodSymbol_TypeArgumentsNullableAnnotation As ImmutableArray(Of NullableAnnotation) Implements IMethodSymbol.TypeArgumentNullableAnnotations 1126Private ReadOnly Property IMethodSymbol_TypeParameters As ImmutableArray(Of ITypeParameterSymbol) Implements IMethodSymbol.TypeParameters 1156Private ReadOnly Property IMethodSymbol_RefCustomModifiers As ImmutableArray(Of CustomModifier) Implements IMethodSymbol.RefCustomModifiers 1162Private ReadOnly Property IMethodSymbol_ReturnTypeCustomModifiers As ImmutableArray(Of CustomModifier) Implements IMethodSymbol.ReturnTypeCustomModifiers 1168Private Function IMethodSymbol_GetReturnTypeAttributes() As ImmutableArray(Of AttributeData) Implements IMethodSymbol.GetReturnTypeAttributes 1180Private 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)
28Private _lazyModules As ImmutableArray(Of ModuleSymbol) 64Friend Overrides ReadOnly Property PublicKey As ImmutableArray(Of Byte) 70Public Overrides ReadOnly Property Modules As ImmutableArray(Of ModuleSymbol) 110Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 112Return ImmutableArray(Of Location).Empty 116Friend Overrides Sub SetLinkedReferencedAssemblies(assemblies As ImmutableArray(Of AssemblySymbol)) 120Friend Overrides Function GetLinkedReferencedAssemblies() As ImmutableArray(Of AssemblySymbol) 121Return ImmutableArray(Of AssemblySymbol).Empty 124Friend Overrides Sub SetNoPiaResolutionAssemblies(assemblies As ImmutableArray(Of AssemblySymbol)) 128Friend Overrides Function GetNoPiaResolutionAssemblies() As ImmutableArray(Of AssemblySymbol) 129Return ImmutableArray(Of AssemblySymbol).Empty 132Friend Overrides Function GetInternalsVisibleToPublicKeys(simpleName As String) As IEnumerable(Of ImmutableArray(Of Byte)) 133Return SpecializedCollections.EmptyEnumerable(Of ImmutableArray(Of Byte))()
Symbols\MissingModuleSymbol.vb (6)
95Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 97Return ImmutableArray(Of Location).Empty 123Friend Overrides Function GetReferencedAssemblies() As ImmutableArray(Of AssemblyIdentity) 124Return ImmutableArray(Of AssemblyIdentity).Empty 127Friend Overrides Function GetReferencedAssemblySymbols() As ImmutableArray(Of AssemblySymbol) 128Return 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) 334Select New KeyValuePair(Of String, ImmutableArray(Of Symbol))(name, Me.GetMembers(name))) 377Select New KeyValuePair(Of String, ImmutableArray(Of Symbol))(name, Me.GetMembers(name))) 384Public ReadOnly Property InstanceConstructors As ImmutableArray(Of MethodSymbol) 393Public ReadOnly Property SharedConstructors As ImmutableArray(Of MethodSymbol) 402Public ReadOnly Property Constructors As ImmutableArray(Of MethodSymbol) 408Private Function GetConstructors(Of TMethodSymbol As {IMethodSymbol, Class})(includeInstance As Boolean, includeShared As Boolean) As ImmutableArray(Of TMethodSymbol) 411Dim instanceCandidates As ImmutableArray(Of Symbol) = If(includeInstance, GetMembers(WellKnownMemberNames.InstanceConstructorName), ImmutableArray(Of Symbol).Empty) 412Dim sharedCandidates As ImmutableArray(Of Symbol) = If(includeShared, GetMembers(WellKnownMemberNames.StaticConstructorName), ImmutableArray(Of Symbol).Empty) 415Return ImmutableArray(Of TMethodSymbol).Empty 491Public MustOverride Function Construct(typeArguments As ImmutableArray(Of TypeSymbol)) As NamedTypeSymbol 494Protected Sub CheckCanConstructAndTypeArguments(typeArguments As ImmutableArray(Of TypeSymbol)) 609Public MustOverride Overrides Function GetMembers() As ImmutableArray(Of Symbol) 616Public MustOverride Overrides Function GetMembers(name As String) As ImmutableArray(Of Symbol) 623Public MustOverride Overrides Function GetTypeMembers() As ImmutableArray(Of NamedTypeSymbol) 631Public MustOverride Overrides Function GetTypeMembers(name As String) As ImmutableArray(Of NamedTypeSymbol) 639Public MustOverride Overrides Function GetTypeMembers(name As String, arity As Integer) As ImmutableArray(Of NamedTypeSymbol) 684Friend MustOverride Function GetAppliedConditionalSymbols() As ImmutableArray(Of String) 722Private _lazyDeclaredInterfaces As ImmutableArray(Of NamedTypeSymbol) = Nothing 740Friend MustOverride Function MakeDeclaredInterfaces(basesBeingResolved As BasesBeingResolved, diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol) 759Friend Overridable Function GetSimpleNonTypeMembers(name As String) As ImmutableArray(Of Symbol) 779Friend Sub AtomicStoreArrayAndDiagnostics(Of T)(ByRef variable As ImmutableArray(Of T), 780value As ImmutableArray(Of T), 801Friend Overridable Function GetDeclaredInterfacesNoUseSiteDiagnostics(basesBeingResolved As BasesBeingResolved) As ImmutableArray(Of NamedTypeSymbol) 811Friend Function GetDeclaredInterfacesWithDefinitionUseSiteDiagnostics(basesBeingResolved As BasesBeingResolved, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As ImmutableArray(Of NamedTypeSymbol) 821Friend Function GetDirectBaseInterfacesNoUseSiteDiagnostics(basesBeingResolved As BasesBeingResolved) As ImmutableArray(Of NamedTypeSymbol) 829Return ImmutableArray(Of NamedTypeSymbol).Empty 833Friend Overridable Function GetDeclaredBaseInterfacesSafe(basesBeingResolved As BasesBeingResolved) As ImmutableArray(Of NamedTypeSymbol) 857Friend MustOverride Function MakeAcyclicInterfaces(diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol) 860Private _lazyInterfaces As ImmutableArray(Of NamedTypeSymbol) 889Friend NotOverridable Overrides ReadOnly Property InterfacesNoUseSiteDiagnostics As ImmutableArray(Of NamedTypeSymbol) 893Dim acyclicInterfaces As ImmutableArray(Of NamedTypeSymbol) = Me.MakeAcyclicInterfaces(diagnostics) 929Friend Function GetBestKnownInterfacesNoUseSiteDiagnostics() As ImmutableArray(Of NamedTypeSymbol) 1347Private Function INamedTypeSymbolInternal_GetMembers() As ImmutableArray(Of ISymbolInternal) Implements INamedTypeSymbolInternal.GetMembers 1351Private Function INamedTypeSymbolInternal_GetMembers(name As String) As ImmutableArray(Of ISymbolInternal) Implements INamedTypeSymbolInternal.GetMembers 1373Private Function INamedTypeSymbol_GetTypeArgumentCustomModifiers(ordinal As Integer) As ImmutableArray(Of CustomModifier) Implements INamedTypeSymbol.GetTypeArgumentCustomModifiers 1377Private ReadOnly Property INamedTypeSymbol_TypeArguments As ImmutableArray(Of ITypeSymbol) Implements INamedTypeSymbol.TypeArguments 1383Private ReadOnly Property TypeArgumentNullableAnnotations As ImmutableArray(Of NullableAnnotation) Implements INamedTypeSymbol.TypeArgumentNullableAnnotations 1389Private ReadOnly Property INamedTypeSymbol_TypeParameters As ImmutableArray(Of ITypeParameterSymbol) Implements INamedTypeSymbol.TypeParameters 1411Private Function INamedTypeSymbol_Construct(typeArguments As ImmutableArray(Of ITypeSymbol), typeArgumentNullableAnnotations As ImmutableArray(Of CodeAnalysis.NullableAnnotation)) As INamedTypeSymbol Implements INamedTypeSymbol.Construct 1419Private ReadOnly Property INamedTypeSymbol_InstanceConstructors As ImmutableArray(Of IMethodSymbol) Implements INamedTypeSymbol.InstanceConstructors 1425Private ReadOnly Property INamedTypeSymbol_StaticConstructors As ImmutableArray(Of IMethodSymbol) Implements INamedTypeSymbol.StaticConstructors 1431Private ReadOnly Property INamedTypeSymbol_Constructors As ImmutableArray(Of IMethodSymbol) Implements INamedTypeSymbol.Constructors 1477Private 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 176Friend Overrides Function GetAppliedConditionalSymbols() As ImmutableArray(Of String) 295Public Overrides Function GetMembers() As ImmutableArray(Of Symbol) 299Friend Overrides Function GetMembersUnordered() As ImmutableArray(Of Symbol) 303Public Overrides Function GetMembers(name As String) As ImmutableArray(Of Symbol) 343Friend Overrides Function GetTypeMembersUnordered() As ImmutableArray(Of NamedTypeSymbol) 347Public Overrides Function GetTypeMembers() As ImmutableArray(Of NamedTypeSymbol) 351Public Overrides Function GetTypeMembers(name As String) As ImmutableArray(Of NamedTypeSymbol) 355Public Overrides Function GetTypeMembers(name As String, arity As Integer) As ImmutableArray(Of NamedTypeSymbol) 377Friend Overrides Function MakeDeclaredInterfaces(basesBeingResolved As BasesBeingResolved, diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol) 406Friend Overrides Function MakeAcyclicInterfaces(diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol) 407Dim declaredInterfaces As ImmutableArray(Of NamedTypeSymbol) = GetDeclaredInterfacesNoUseSiteDiagnostics(Nothing) 437Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 443Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 479Public 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)
515Dim assembliesToEmbedTypesFrom As ImmutableArray(Of AssemblySymbol) = UnderlyingModule.GetAssembliesToEmbedTypesFrom() 525Dim linkedAssemblies As ImmutableArray(Of AssemblySymbol) = RetargetingAssembly.GetLinkedReferencedAssemblies() 590Dim newModifiers As ImmutableArray(Of CustomModifier) = RetargetModifiers(type.CustomModifiers, modifiersHaveChanged) 603Friend Function RetargetModifiers(oldModifiers As ImmutableArray(Of CustomModifier), ByRef modifiersHaveChanged As Boolean) As ImmutableArray(Of CustomModifier) 628Friend Function RetargetModifiers(oldModifiers As ImmutableArray(Of CustomModifier), ByRef lazyCustomModifiers As ImmutableArray(Of CustomModifier)) As ImmutableArray(Of CustomModifier) 640oldTypeModifiers As ImmutableArray(Of CustomModifier), 641oldRefModifiers As ImmutableArray(Of CustomModifier), 655Private Function RetargetAttributes(oldAttributes As ImmutableArray(Of VisualBasicAttributeData)) As ImmutableArray(Of VisualBasicAttributeData) 698Private Function RetargetAttributeConstructorArguments(constructorArguments As ImmutableArray(Of TypedConstant)) As ImmutableArray(Of TypedConstant) 752Private Function RetargetAttributeNamedArguments(namedArguments As ImmutableArray(Of KeyValuePair(Of String, TypedConstant))) As ImmutableArray(Of KeyValuePair(Of String, TypedConstant)) 784Friend Function GetRetargetedAttributes(underlyingSymbol As Symbol, ByRef lazyCustomAttributes As ImmutableArray(Of VisualBasicAttributeData), Optional getReturnTypeAttributes As Boolean = False) As ImmutableArray(Of VisualBasicAttributeData) 786Dim oldAttributes As ImmutableArray(Of VisualBasicAttributeData) 801Dim retargetedAttributes As ImmutableArray(Of VisualBasicAttributeData) = RetargetAttributes(oldAttributes) 830Public Function Retarget(arr As ImmutableArray(Of Symbol)) As ImmutableArray(Of Symbol) 840Public Function Retarget(sequence As ImmutableArray(Of NamedTypeSymbol)) As ImmutableArray(Of NamedTypeSymbol) 852Public Function Retarget(sequence As ImmutableArray(Of TypeSymbol)) As ImmutableArray(Of TypeSymbol) 864Public Function Retarget(list As ImmutableArray(Of TypeParameterSymbol)) As ImmutableArray(Of TypeParameterSymbol) 981ImmutableArray(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)
20Private _lazyExplicitImplementations As ImmutableArray(Of MethodSymbol) ' lazily populated with explicit implementations 48Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of TypeParameterSymbol) 50Return ImmutableArray(Of TypeParameterSymbol).Empty 65Protected Overrides Function GetParameters(sourceModule As SourceModuleSymbol, diagBag As BindingDiagnosticBag) As ImmutableArray(Of ParameterSymbol) 86Public Overrides ReadOnly Property ExplicitInterfaceImplementations As ImmutableArray(Of MethodSymbol) 106Public Overrides ReadOnly Property ReturnTypeCustomModifiers As ImmutableArray(Of CustomModifier) 109Return ImmutableArray(Of CustomModifier).Empty 154diagnostics 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)
47Friend Overrides Function MakeAcyclicInterfaces(diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol) 48Return ImmutableArray(Of NamedTypeSymbol).Empty 62Friend Overrides Function MakeDeclaredInterfaces(basesBeingResolved As BasesBeingResolved, diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol) 63Return ImmutableArray(Of NamedTypeSymbol).Empty 66Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of TypeParameterSymbol) 68Return ImmutableArray(Of TypeParameterSymbol).Empty 130Friend Overrides Function GetAppliedConditionalSymbols() As ImmutableArray(Of String) 131Return 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 (8)
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) 924Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 980Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 986Public 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 (31)
47Private ReadOnly _modules As ImmutableArray(Of ModuleSymbol) 65Private _lazyAssemblyLevelDeclarationErrors As ImmutableArray(Of Diagnostic) 66Private _lazyAssemblyLevelDeclarationDependencies As ImmutableArray(Of AssemblySymbol) 75Private _lazyInternalsVisibleToMap As ConcurrentDictionary(Of String, ConcurrentDictionary(Of ImmutableArray(Of Byte), Tuple(Of Location, String))) 80netModules As ImmutableArray(Of PEModule)) 209Dim appliedSourceAttributes As ImmutableArray(Of VisualBasicAttributeData) = Me.GetSourceAttributesBag().Attributes 288Private Function GetNetModuleAttributes(<Out> ByRef netModuleNames As ImmutableArray(Of String)) As ImmutableArray(Of VisualBasicAttributeData) 307netModuleNames = ImmutableArray(Of String).Empty 308Return ImmutableArray(Of VisualBasicAttributeData).Empty 316attributesFromNetModules As ImmutableArray(Of VisualBasicAttributeData), 317netModuleNames As ImmutableArray(Of String), 383Dim netModuleNames As ImmutableArray(Of String) = Nothing 384Dim attributesFromNetModules As ImmutableArray(Of VisualBasicAttributeData) = GetNetModuleAttributes(netModuleNames) 488Friend Function GetAttributeDeclarations() As ImmutableArray(Of SyntaxList(Of AttributeListSyntax)) 536Public Overloads Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData) 813Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 819Public Overrides ReadOnly Property Modules As ImmutableArray(Of ModuleSymbol) 825Friend Overrides Function GetNoPiaResolutionAssemblies() As ImmutableArray(Of AssemblySymbol) 829Friend Overrides Sub SetNoPiaResolutionAssemblies(assemblies As ImmutableArray(Of AssemblySymbol)) 833Friend Overrides Function GetLinkedReferencedAssemblies() As ImmutableArray(Of AssemblySymbol) 839Friend Overrides Sub SetLinkedReferencedAssemblies(assemblies As ImmutableArray(Of AssemblySymbol)) 898Friend Overrides Function GetInternalsVisibleToPublicKeys(simpleName As String) As IEnumerable(Of ImmutableArray(Of Byte)) 906Return SpecializedCollections.EmptyEnumerable(Of ImmutableArray(Of Byte))() 909Dim result As ConcurrentDictionary(Of ImmutableArray(Of Byte), Tuple(Of Location, String)) = Nothing 913Return If(result IsNot Nothing, result.Keys, SpecializedCollections.EmptyEnumerable(Of ImmutableArray(Of Byte))()) 979New ConcurrentDictionary(Of String, ConcurrentDictionary(Of ImmutableArray(Of Byte), Tuple(Of Location, String)))(StringComparer.OrdinalIgnoreCase), Nothing) 998Dim keys As ConcurrentDictionary(Of ImmutableArray(Of Byte), Tuple(Of Location, String)) = Nothing 1002keys = New ConcurrentDictionary(Of ImmutableArray(Of Byte), Tuple(Of Location, String)) 1565ImmutableArray(Of TypedConstant).Empty, 1631Friend 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)
189Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 192Return ImmutableArray(Of SyntaxReference).Empty 394Public Overrides ReadOnly Property CustomModifiers As ImmutableArray(Of CustomModifier) 396Return ImmutableArray(Of CustomModifier).Empty 400Public Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier) 402Return ImmutableArray(Of CustomModifier).Empty 406Friend Overrides Function WithTypeAndCustomModifiers(type As TypeSymbol, customModifiers As ImmutableArray(Of CustomModifier), refCustomModifiers As ImmutableArray(Of CustomModifier)) As ParameterSymbol 417Private ReadOnly _customModifiers As ImmutableArray(Of CustomModifier) 418Private ReadOnly _refCustomModifiers As ImmutableArray(Of CustomModifier) 429customModifiers As ImmutableArray(Of CustomModifier), 430refCustomModifiers As ImmutableArray(Of CustomModifier) 441Public Overrides ReadOnly Property CustomModifiers As ImmutableArray(Of CustomModifier) 447Public Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier) 453Friend 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)
24Private _parameters As ImmutableArray(Of ParameterSymbol) 42Protected Sub InitializeParameters(parameters As ImmutableArray(Of ParameterSymbol)) 54Public Overrides ReadOnly Property Parameters As ImmutableArray(Of ParameterSymbol) 165Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 167Return ImmutableArray(Of SyntaxReference).Empty 175Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of TypeParameterSymbol) 177Return ImmutableArray(Of TypeParameterSymbol).Empty 203Friend Overrides Function GetAppliedConditionalSymbols() As ImmutableArray(Of String) 204Return ImmutableArray(Of String).Empty
Symbols\Source\SourceEnumConstantSymbol.vb (1)
58Public NotOverridable Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
Symbols\Source\SourceEventSymbol.vb (12)
48Private _lazyImplementedEvents As ImmutableArray(Of EventSymbol) 49Private _lazyDelegateParameters As ImmutableArray(Of ParameterSymbol) 252Private Function ComputeImplementedEvents(diagnostics As BindingDiagnosticBag) As ImmutableArray(Of EventSymbol) 279Return ImmutableArray(Of EventSymbol).Empty 310Friend Overrides ReadOnly Property DelegateParameters As ImmutableArray(Of ParameterSymbol) 389Friend Function GetAccessorImplementations(kind As MethodKind) As ImmutableArray(Of MethodSymbol) 394Return ImmutableArray(Of MethodSymbol).Empty 445Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 451Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 513Public Overrides ReadOnly Property ExplicitInterfaceImplementations As ImmutableArray(Of EventSymbol) 616Public NotOverridable Overloads Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData) 772Dim implementedEvents As ImmutableArray(Of EventSymbol) = ExplicitInterfaceImplementations
Symbols\Source\SourceFieldSymbol.vb (5)
152Public Overrides ReadOnly Property CustomModifiers As ImmutableArray(Of CustomModifier) 154Return ImmutableArray(Of CustomModifier).Empty 619Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 625Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 647Public 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)
87Private Shared ReadOnly s_emptyTypeMembers As New Dictionary(Of String, ImmutableArray(Of NamedTypeSymbol))(IdentifierComparison.Comparer) 88Private _lazyTypeMembers As Dictionary(Of String, ImmutableArray(Of NamedTypeSymbol)) 91Private _lazyMembersFlattened As ImmutableArray(Of Symbol) 118Dim declarations As ImmutableArray(Of SingleTypeDeclaration) = declaration.Declarations 441For Each batch As ImmutableArray(Of Symbol) In GetMembersAndInitializers().Members.Values 995parameters As ImmutableArray(Of ParameterSymbol), 1031parameters As ImmutableArray(Of TypeParameterSymbol), 1378Public NotOverridable Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 1390Public ReadOnly Property SyntaxReferences As ImmutableArray(Of SyntaxReference) 1396Public NotOverridable Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 1500Friend ReadOnly Members As Dictionary(Of String, ImmutableArray(Of Symbol)) 1501Friend ReadOnly StaticInitializers As ImmutableArray(Of ImmutableArray(Of FieldOrPropertyInitializer)) 1502Friend ReadOnly InstanceInitializers As ImmutableArray(Of ImmutableArray(Of FieldOrPropertyInitializer)) 1513members As Dictionary(Of String, ImmutableArray(Of Symbol)), 1514staticInitializers As ImmutableArray(Of ImmutableArray(Of FieldOrPropertyInitializer)), 1515instanceInitializers As ImmutableArray(Of ImmutableArray(Of FieldOrPropertyInitializer)), 1535Friend Property StaticInitializers As ArrayBuilder(Of ImmutableArray(Of FieldOrPropertyInitializer)) 1536Friend Property InstanceInitializers As ArrayBuilder(Of ImmutableArray(Of FieldOrPropertyInitializer)) 1546Dim readonlyMembers = New Dictionary(Of String, ImmutableArray(Of Symbol))(IdentifierComparison.Comparer) 1592Friend Shared Sub AddInitializers(ByRef allInitializers As ArrayBuilder(Of ImmutableArray(Of FieldOrPropertyInitializer)), siblings As ArrayBuilder(Of FieldOrPropertyInitializer)) 1595allInitializers = New ArrayBuilder(Of ImmutableArray(Of FieldOrPropertyInitializer))() 1602Protected Function GetTypeMembersDictionary() As Dictionary(Of String, ImmutableArray(Of NamedTypeSymbol)) 1611Private Function MakeTypeMembers() As Dictionary(Of String, ImmutableArray(Of NamedTypeSymbol)) 1612Dim children As ImmutableArray(Of MergedTypeDeclaration) = _declaration.Children 1625Friend Overrides Function GetTypeMembersUnordered() As ImmutableArray(Of NamedTypeSymbol) 1629Public Overloads Overrides Function GetTypeMembers() As ImmutableArray(Of NamedTypeSymbol) 1633Public Overloads Overrides Function GetTypeMembers(name As String) As ImmutableArray(Of NamedTypeSymbol) 1634Dim members As ImmutableArray(Of NamedTypeSymbol) = Nothing 1638Return ImmutableArray(Of NamedTypeSymbol).Empty 1641Public Overrides Function GetTypeMembers(name As String, arity As Integer) As ImmutableArray(Of NamedTypeSymbol) 1725Dim nontypeSymbols As ImmutableArray(Of Symbol) = Nothing 1745Private Function FindPartialMethodDeclarations(diagnostics As BindingDiagnosticBag, members As Dictionary(Of String, ImmutableArray(Of Symbol))) As HashSet(Of SourceMemberMethodSymbol) 1767Private Sub ProcessPartialMethodsIfAny(members As Dictionary(Of String, ImmutableArray(Of Symbol)), diagnostics As BindingDiagnosticBag) 1796Dim memberGroup As ImmutableArray(Of Symbol) = members(originalPartialMethod.Name) 1912Dim declMethodParams As ImmutableArray(Of ParameterSymbol) = partialMethod.Parameters 1913Dim implMethodParams As ImmutableArray(Of ParameterSymbol) = implMethod.Parameters 1932Dim declTypeParams As ImmutableArray(Of TypeParameterSymbol) = partialMethod.TypeParameters 1933Dim implTypeParams As ImmutableArray(Of TypeParameterSymbol) = implMethod.TypeParameters 2270Private Function DetermineDefaultPropertyName(membersByName As Dictionary(Of String, ImmutableArray(Of Symbol)), diagBag As BindingDiagnosticBag) As String 2357initializerSet As IEnumerable(Of ImmutableArray(Of FieldOrPropertyInitializer)), 2363Dim fieldOrPropertyArray As ImmutableArray(Of Symbol) = initializer.FieldsOrProperties 2723initializers As ArrayBuilder(Of ImmutableArray(Of FieldOrPropertyInitializer)), 3144Friend Overrides Function GetMembersUnordered() As ImmutableArray(Of Symbol) 3154Public Overloads Overrides Function GetMembers() As ImmutableArray(Of Symbol) 3172Public Overloads Overrides Function GetMembers(name As String) As ImmutableArray(Of Symbol) 3174Dim members As ImmutableArray(Of Symbol) = Nothing 3180Return ImmutableArray(Of Symbol).Empty 3183Friend Overrides Function GetSimpleNonTypeMembers(name As String) As ImmutableArray(Of Symbol) 3188Return ImmutableArray(Of Symbol).Empty 3200Dim symbols As ImmutableArray(Of Symbol) = Nothing 3227Public ReadOnly Property StaticInitializers As ImmutableArray(Of ImmutableArray(Of FieldOrPropertyInitializer)) 3236Public ReadOnly Property InstanceInitializers As ImmutableArray(Of ImmutableArray(Of FieldOrPropertyInitializer)) 3306Private Shared Function GetInitializersInSourceTree(tree As SyntaxTree, initializers As ImmutableArray(Of ImmutableArray(Of FieldOrPropertyInitializer))) As ImmutableArray(Of FieldOrPropertyInitializer) 3308For Each siblingInitializers As ImmutableArray(Of FieldOrPropertyInitializer) In initializers 3317Private Shared Function IndexOfInitializerContainingPosition(initializers As ImmutableArray(Of FieldOrPropertyInitializer), position As Integer) As Integer 3507Dim structEnumerator As Dictionary(Of String, ImmutableArray(Of Symbol)).Enumerator = lookup.Members.GetEnumerator 3511Dim memberList As ImmutableArray(Of Symbol) = structEnumerator.Current.Value 3604memberList As ImmutableArray(Of Symbol), 3606membersEnumerator As Dictionary(Of String, ImmutableArray(Of Symbol)).Enumerator, 3647Dim otherMembers As ImmutableArray(Of Symbol) = Nothing 3691Dim otherMembers As ImmutableArray(Of Symbol) = Nothing 3734memberList As ImmutableArray(Of Symbol),
Symbols\Source\SourceMemberMethodSymbol.vb (15)
34Private _lazyImplementedMethods As ImmutableArray(Of MethodSymbol) 37Private _lazyTypeParameters As ImmutableArray(Of TypeParameterSymbol) 40Private _lazyHandles As ImmutableArray(Of HandledEvent) 76Optional handledEvents As ImmutableArray(Of HandledEvent) = Nothing) 283Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of TypeParameterSymbol) 306diagBag As BindingDiagnosticBag) As ImmutableArray(Of TypeParameterSymbol) 310Return ImmutableArray(Of TypeParameterSymbol).Empty 351Public Overrides ReadOnly Property ExplicitInterfaceImplementations As ImmutableArray(Of MethodSymbol) 356Dim implementedMethods As ImmutableArray(Of MethodSymbol) 375ImmutableArray(Of MethodSymbol).Empty, 388Private Function GetExplicitInterfaceImplementations(sourceModule As SourceModuleSymbol, diagBag As BindingDiagnosticBag) As ImmutableArray(Of MethodSymbol) 410Return ImmutableArray(Of MethodSymbol).Empty 553Public Overrides ReadOnly Property HandledEvents As ImmutableArray(Of HandledEvent) 572Private Function GetHandles(sourceModule As SourceModuleSymbol, diagBag As BindingDiagnosticBag) As ImmutableArray(Of HandledEvent) 576Return ImmutableArray(Of HandledEvent).Empty
Symbols\Source\SourceMethodSymbol.vb (38)
49Private _lazyLocations As ImmutableArray(Of Location) 57Private _cachedDiagnostics As ImmutableArray(Of Diagnostic) 62Optional locations As ImmutableArray(Of Location) = Nothing) 95Dim handledEvents As ImmutableArray(Of HandledEvent) 118handledEvents = ImmutableArray(Of HandledEvent).Empty 566Friend ReadOnly Property Diagnostics As ImmutableArray(Of Diagnostic) 575Friend Function SetDiagnostics(diags As ImmutableArray(Of Diagnostic)) As Boolean 622Public Overrides ReadOnly Property ExplicitInterfaceImplementations As ImmutableArray(Of MethodSymbol) 624Return ImmutableArray(Of MethodSymbol).Empty 798Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 832Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 842ImmutableArray(Of Location).Empty, 893diagnostics As BindingDiagnosticBag) As ImmutableArray(Of TypeParameterConstraint) 1200Return New BoundBlock(methodBlock, methodBlock.Statements, ImmutableArray(Of LocalSymbol).Empty, ImmutableArray.Create(boundStatement)) 1247Public NotOverridable Overrides ReadOnly Property TypeArguments As ImmutableArray(Of TypeSymbol) 1267Public NotOverridable Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier) 1269Return ImmutableArray(Of CustomModifier).Empty 1312Public Overrides ReadOnly Property ReturnTypeCustomModifiers As ImmutableArray(Of CustomModifier) 1317Return ImmutableArray(Of CustomModifier).Empty 1434Public NotOverridable Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData) 1478Public NotOverridable Overrides Function GetReturnTypeAttributes() As ImmutableArray(Of VisualBasicAttributeData) 1580Friend Overrides Function GetAppliedConditionalSymbols() As ImmutableArray(Of String) 1582Return If(data IsNot Nothing, data.ConditionalSymbols, ImmutableArray(Of String).Empty) 1860boundAttributes As ImmutableArray(Of VisualBasicAttributeData), 1861allAttributeSyntaxNodes As ImmutableArray(Of AttributeSyntax), 2051Public MustOverride Overrides ReadOnly Property Parameters As ImmutableArray(Of ParameterSymbol) 2066Private _lazyParameters As ImmutableArray(Of ParameterSymbol) 2077Optional locations As ImmutableArray(Of Location) = Nothing) 2108Public NotOverridable Overrides ReadOnly Property Parameters As ImmutableArray(Of ParameterSymbol) 2121Dim params As ImmutableArray(Of ParameterSymbol) = GetParameters(sourceModule, diagBag) 2136Dim fakeTypeParameters As ImmutableArray(Of TypeParameterSymbol) 2143fakeTypeParameters = ImmutableArray(Of TypeParameterSymbol).Empty 2151ImmutableArray(Of CustomModifier).Empty, 2152ImmutableArray(Of CustomModifier).Empty, 2167returnTypeCustomModifiers:=ImmutableArray(Of CustomModifier).Empty, 2168refCustomModifiers:=ImmutableArray(Of CustomModifier).Empty, 2169explicitInterfaceImplementations:=ImmutableArray(Of MethodSymbol).Empty, 2238diagBag 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_ComClass.vb (65)
36Private _syntheticInterfaces As ImmutableArray(Of NamedTypeSymbol) 40Dim args As ImmutableArray(Of TypedConstant) = attrData.CommonConstructorArguments 67Public Function GetSynthesizedInterfaces() As ImmutableArray(Of NamedTypeSymbol) 124Dim interfaces As ImmutableArray(Of NamedTypeSymbol) = ImmutableArray(Of NamedTypeSymbol).Empty 308Dim attrData As ImmutableArray(Of VisualBasicAttributeData) = target.GetAttributes() 482Dim attrData As ImmutableArray(Of VisualBasicAttributeData) = target.GetAttributes() 517Private ReadOnly _members As ImmutableArray(Of Symbol) 728Public Overloads Overrides Function Construct(typeArguments As ImmutableArray(Of TypeSymbol)) As NamedTypeSymbol 750Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 772Public Overloads Overrides Function GetMembers() As ImmutableArray(Of Symbol) 776Public Overloads Overrides Function GetMembers(name As String) As ImmutableArray(Of Symbol) 780Public Overloads Overrides Function GetTypeMembers() As ImmutableArray(Of NamedTypeSymbol) 781Return ImmutableArray(Of NamedTypeSymbol).Empty 784Public Overloads Overrides Function GetTypeMembers(name As String) As ImmutableArray(Of NamedTypeSymbol) 788Public Overloads Overrides Function GetTypeMembers(name As String, arity As Integer) As ImmutableArray(Of NamedTypeSymbol) 844Friend Overrides Function GetAppliedConditionalSymbols() As ImmutableArray(Of String) 845Return ImmutableArray(Of String).Empty 878Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 888Friend Overrides Function MakeAcyclicInterfaces(diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol) 889Return ImmutableArray(Of NamedTypeSymbol).Empty 896Friend Overrides Function MakeDeclaredInterfaces(basesBeingResolved As BasesBeingResolved, diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol) 897Return ImmutableArray(Of NamedTypeSymbol).Empty 948Friend Overrides ReadOnly Property TypeArgumentsNoUseSiteDiagnostics As ImmutableArray(Of TypeSymbol) 950Return ImmutableArray(Of TypeSymbol).Empty 954Public Overrides Function GetTypeArgumentCustomModifiers(ordinal As Integer) As ImmutableArray(Of CustomModifier) 976Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of TypeParameterSymbol) 978Return ImmutableArray(Of TypeParameterSymbol).Empty 988Public Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData) 989Return ImmutableArray(Of VisualBasicAttributeData).Empty 1055Private ReadOnly _parameters As ImmutableArray(Of ParameterSymbol) 1064_parameters = ImmutableArray(Of ParameterSymbol).Empty 1095Friend Overrides Function GetAppliedConditionalSymbols() As ImmutableArray(Of String) 1096Return ImmutableArray(Of String).Empty 1135Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 1141Public Overrides ReadOnly Property ExplicitInterfaceImplementations As ImmutableArray(Of MethodSymbol) 1229Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 1286Public Overrides ReadOnly Property Parameters As ImmutableArray(Of ParameterSymbol) 1304Public Overrides ReadOnly Property ReturnTypeCustomModifiers As ImmutableArray(Of CustomModifier) 1310Public Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier) 1322Public Overrides ReadOnly Property TypeArguments As ImmutableArray(Of TypeSymbol) 1324Return ImmutableArray(Of TypeSymbol).Empty 1328Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of TypeParameterSymbol) 1330Return ImmutableArray(Of TypeParameterSymbol).Empty 1334Public Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData) 1336Dim toClone As ImmutableArray(Of VisualBasicAttributeData) = attributeSource.GetAttributes() 1376Public Overrides Function GetReturnTypeAttributes() As ImmutableArray(Of VisualBasicAttributeData) 1383Return ImmutableArray(Of VisualBasicAttributeData).Empty 1458Public Overrides ReadOnly Property CustomModifiers As ImmutableArray(Of CustomModifier) 1464Public Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier) 1470Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 1618Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 1636Public Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData) 1638Return ImmutableArray(Of VisualBasicAttributeData).Empty 1681Private ReadOnly _parameters As ImmutableArray(Of ParameterSymbol) 1698_parameters = ImmutableArray(Of ParameterSymbol).Empty 1746Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 1752Public Overrides ReadOnly Property ExplicitInterfaceImplementations As ImmutableArray(Of PropertySymbol) 1754Return ImmutableArray(Of PropertySymbol).Empty 1816Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 1822Public Overrides ReadOnly Property Parameters As ImmutableArray(Of ParameterSymbol) 1852Public Overrides ReadOnly Property TypeCustomModifiers As ImmutableArray(Of CustomModifier) 1858Public Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier) 1864Public Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData) 1912Dim 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\SourceNamedTypeSymbol.vb (28)
30Private _lazyTypeParameters As ImmutableArray(Of TypeParameterSymbol) 493Dim symbols As ImmutableArray(Of Symbol) 599Dim contenders As ImmutableArray(Of NamedTypeSymbol) = constituent.GetTypeMembers(Me.Name, arity) 761constraints As ImmutableArray(Of TypeParameterConstraint)) 767Public ReadOnly Constraints As ImmutableArray(Of TypeParameterConstraint) 776Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of TypeParameterSymbol) 795<Out()> ByRef constraints As ImmutableArray(Of TypeParameterConstraint), 869Private Shared Function HaveSameConstraints(constraints1 As ImmutableArray(Of TypeParameterConstraint), 870constraints2 As ImmutableArray(Of TypeParameterConstraint)) As Boolean 905Private Shared Function GetConstraintKind(constraints As ImmutableArray(Of TypeParameterConstraint)) As TypeParameterConstraintKind 913Private Function MakeTypeParameters() As ImmutableArray(Of TypeParameterSymbol) 916Return ImmutableArray(Of TypeParameterSymbol).Empty 958Friend Sub CheckForDuplicateTypeParameters(typeParameters As ImmutableArray(Of TypeParameterSymbol), 1294Friend Overrides Function MakeDeclaredInterfaces(basesBeingResolved As BasesBeingResolved, diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol) 1463Friend Overrides Function MakeAcyclicInterfaces(diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol) 1464Dim declaredInterfaces As ImmutableArray(Of NamedTypeSymbol) = GetDeclaredInterfacesNoUseSiteDiagnostics(Nothing) 1589Friend Overrides Function GetDeclaredBaseInterfacesSafe(basesBeingResolved As BasesBeingResolved) As ImmutableArray(Of NamedTypeSymbol) 1605Dim declaredBases As ImmutableArray(Of NamedTypeSymbol) = GetDeclaredInterfacesNoUseSiteDiagnostics(basesBeingResolved) 1608Return If(m_baseCycleDiagnosticInfo Is Nothing, declaredBases, ImmutableArray(Of NamedTypeSymbol).Empty) 1878Private Function GetAttributeDeclarations(Optional quickAttributes As QuickAttributes? = Nothing) As ImmutableArray(Of SyntaxList(Of AttributeListSyntax)) 1927Public NotOverridable Overloads Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData) 2192Friend NotOverridable Overrides Function GetAppliedConditionalSymbols() As ImmutableArray(Of String) 2194Return If(data IsNot Nothing, data.ConditionalSymbols, ImmutableArray(Of String).Empty) 2421Dim attributeLists As ImmutableArray(Of SyntaxList(Of AttributeListSyntax)) = GetAttributeDeclarations(QuickAttributes.TypeIdentifier) 2460boundAttributes As ImmutableArray(Of VisualBasicAttributeData), 2461allAttributeSyntaxNodes As ImmutableArray(Of AttributeSyntax), 2673arguments:=ImmutableArray(Of TypedConstant).Empty, 2674namedArgs:=ImmutableArray(Of KeyValuePair(Of String, TypedConstant)).Empty))
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)
21Private _lazyExplicitImplementations As ImmutableArray(Of MethodSymbol) ' lazily populated with explicit implementations 24Private _lazyParameters As ImmutableArray(Of ParameterSymbol) 33locations As ImmutableArray(Of Location)) 45Private Shared Function SynthesizeAutoGetterParameters(getter As SourcePropertyAccessorSymbol, propertySymbol As SourcePropertySymbol) As ImmutableArray(Of ParameterSymbol) 47Return ImmutableArray(Of ParameterSymbol).Empty 55Private Shared Function SynthesizeAutoSetterParameters(setter As SourcePropertyAccessorSymbol, propertySymbol As SourcePropertySymbol) As ImmutableArray(Of ParameterSymbol) 138Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 140Return If(Me.m_property.IsCustomProperty, MyBase.DeclaringSyntaxReferences, ImmutableArray(Of SyntaxReference).Empty) 250Public Overrides ReadOnly Property Parameters As ImmutableArray(Of ParameterSymbol) 286Private Function GetParameters(sourceModule As SourceModuleSymbol, diagBag As BindingDiagnosticBag) As ImmutableArray(Of ParameterSymbol) 300Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of TypeParameterSymbol) 302Return ImmutableArray(Of TypeParameterSymbol).Empty 334Public Overrides ReadOnly Property ExplicitInterfaceImplementations As ImmutableArray(Of MethodSymbol) 347Public Overrides ReadOnly Property ReturnTypeCustomModifiers As ImmutableArray(Of CustomModifier) 354Return If(Me.MethodKind = MethodKind.PropertySet, ImmutableArray(Of CustomModifier).Empty, m_property.TypeCustomModifiers) 394diagnostics As BindingDiagnosticBag) As ImmutableArray(Of ParameterSymbol)
Symbols\Source\SourcePropertySymbol.vb (25)
34Private _lazyParameters As ImmutableArray(Of ParameterSymbol) 49Private _lazyImplementedProperties As ImmutableArray(Of PropertySymbol) 268prop._lazyImplementedProperties = ImmutableArray(Of PropertySymbol).Empty 327Public Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier) 329Return ImmutableArray(Of CustomModifier).Empty 452Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 458Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 518Public Overloads Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData) 775Public Overrides ReadOnly Property Parameters As ImmutableArray(Of ParameterSymbol) 787Dim params As ImmutableArray(Of ParameterSymbol) = ComputeParameters(diagnostics) 802ImmutableArray(Of CustomModifier).Empty, 803ImmutableArray(Of CustomModifier).Empty, 817typeCustomModifiers:=ImmutableArray(Of CustomModifier).Empty, 818refCustomModifiers:=ImmutableArray(Of CustomModifier).Empty, 872Private Function ComputeParameters(diagnostics As BindingDiagnosticBag) As ImmutableArray(Of ParameterSymbol) 876Return ImmutableArray(Of ParameterSymbol).Empty 912Public Overrides ReadOnly Property ExplicitInterfaceImplementations As ImmutableArray(Of PropertySymbol) 927Private Function ComputeExplicitInterfaceImplementations(diagnostics As BindingDiagnosticBag) As ImmutableArray(Of PropertySymbol) 939Friend Function GetAccessorImplementations(getter As Boolean) As ImmutableArray(Of MethodSymbol) 944Return ImmutableArray(Of MethodSymbol).Empty 966Public Overrides ReadOnly Property TypeCustomModifiers As ImmutableArray(Of CustomModifier) 971Return ImmutableArray(Of CustomModifier).Empty 1153diagnostics As BindingDiagnosticBag) As ImmutableArray(Of PropertySymbol) 1171Return ImmutableArray(Of PropertySymbol).Empty 1211Private 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)
101Public Overrides ReadOnly Property CustomModifiers As ImmutableArray(Of CustomModifier) 103Return ImmutableArray(Of CustomModifier).Empty 151Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 157Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 159Return 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)
194Friend NotOverridable Overrides Function GetAppliedConditionalSymbols() As ImmutableArray(Of String) 224Public NotOverridable Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 230Public NotOverridable Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 236Public NotOverridable Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData) 256Friend NotOverridable Overrides Function MakeDeclaredInterfaces(basesBeingResolved As BasesBeingResolved, diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol) 260Return ImmutableArray(Of NamedTypeSymbol).Empty 284Friend NotOverridable Overrides Function MakeAcyclicInterfaces(diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol) 288Return ImmutableArray(Of NamedTypeSymbol).Empty 346Public Overrides Function GetMembers() As ImmutableArray(Of Symbol) 352Friend Overrides Function GetMembersUnordered() As ImmutableArray(Of Symbol) 358Private Function GetMembers_Worker(members As ImmutableArray(Of Symbol)) As ImmutableArray(Of Symbol) 414Public Overrides Function GetMembers(name As String) As ImmutableArray(Of Symbol) 419Friend Overrides Function GetTypeMembersUnordered() As ImmutableArray(Of NamedTypeSymbol) 423Public Overrides Function GetTypeMembers() As ImmutableArray(Of NamedTypeSymbol) 427Public Overrides Function GetTypeMembers(name As String) As ImmutableArray(Of NamedTypeSymbol) 432Public Overrides Function GetTypeMembers(name As String, arity As Integer) As ImmutableArray(Of NamedTypeSymbol) 673Private ReadOnly _typeParameters As ImmutableArray(Of TypeParameterSymbol) 686Dim typeParametersDefinitions As ImmutableArray(Of TypeParameterSymbol) = fullInstanceType.TypeParameters 709typeParameters As ImmutableArray(Of SubstitutedTypeParameterSymbol) 722Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of TypeParameterSymbol) 728Friend Overrides ReadOnly Property TypeArgumentsNoUseSiteDiagnostics As ImmutableArray(Of TypeSymbol) 734Public NotOverridable Overrides Function GetTypeArgumentCustomModifiers(ordinal As Integer) As ImmutableArray(Of CustomModifier) 771Public Overrides Function Construct(typeArguments As ImmutableArray(Of TypeSymbol)) As NamedTypeSymbol 887Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of TypeParameterSymbol) 889Return ImmutableArray(Of TypeParameterSymbol).Empty 893Friend Overrides ReadOnly Property TypeArgumentsNoUseSiteDiagnostics As ImmutableArray(Of TypeSymbol) 895Return ImmutableArray(Of TypeSymbol).Empty 899Public NotOverridable Overrides Function GetTypeArgumentCustomModifiers(ordinal As Integer) As ImmutableArray(Of CustomModifier) 915Public Overrides Function Construct(typeArguments As ImmutableArray(Of TypeSymbol)) As NamedTypeSymbol 963Private ReadOnly _typeArguments As ImmutableArray(Of TypeSymbol) 983Public NotOverridable Overrides ReadOnly Property TypeParameters As ImmutableArray(Of TypeParameterSymbol) 989Friend NotOverridable Overrides ReadOnly Property TypeArgumentsNoUseSiteDiagnostics As ImmutableArray(Of TypeSymbol) 995Public NotOverridable Overrides Function GetTypeArgumentCustomModifiers(ordinal As Integer) As ImmutableArray(Of CustomModifier) 1015Public 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_Attributes.vb (18)
30Public Overridable Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData) 31Return ImmutableArray(Of VisualBasicAttributeData).Empty 236Friend Overridable Sub PostDecodeWellKnownAttributes(boundAttributes As ImmutableArray(Of VisualBasicAttributeData), 237allAttributeSyntaxNodes As ImmutableArray(Of AttributeSyntax), 262Dim binders As ImmutableArray(Of Binder) = Nothing 265Dim boundAttributes As ImmutableArray(Of VisualBasicAttributeData) 278Dim boundAttributeTypes As ImmutableArray(Of NamedTypeSymbol) = Binder.BindAttributeTypes(binders, attributesToBind, Me, diagnostics) 297boundAttributes = ImmutableArray(Of VisualBasicAttributeData).Empty 314<Out> ByRef binders As ImmutableArray(Of Binder)) As ImmutableArray(Of AttributeSyntax) 358binders = ImmutableArray(Of Binder).Empty 359Return ImmutableArray(Of AttributeSyntax).Empty 422Private Function EarlyDecodeWellKnownAttributes(binders As ImmutableArray(Of Binder), 423boundAttributeTypes As ImmutableArray(Of NamedTypeSymbol), 424attributesToBind As ImmutableArray(Of AttributeSyntax), 454binders As ImmutableArray(Of Binder), 455attributeSyntaxList As ImmutableArray(Of AttributeSyntax), 456boundAttributes As ImmutableArray(Of VisualBasicAttributeData),
Symbols\Symbol.vb (29)
341Public MustOverride ReadOnly Property Locations As ImmutableArray(Of Location) 374Public MustOverride ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 379Friend Shared Function GetDeclaringSyntaxNodeHelper(Of TNode As VisualBasicSyntaxNode)(locations As ImmutableArray(Of Location)) As ImmutableArray(Of VisualBasicSyntaxNode) 381Return ImmutableArray(Of VisualBasicSyntaxNode).Empty 403Friend Shared Function GetDeclaringSyntaxReferenceHelper(Of TNode As VisualBasicSyntaxNode)(locations As ImmutableArray(Of Location)) As ImmutableArray(Of SyntaxReference) 407Return ImmutableArray(Of SyntaxReference).Empty 421Friend Shared Function GetDeclaringSyntaxReferenceHelper(references As ImmutableArray(Of SyntaxReference)) As ImmutableArray(Of SyntaxReference) 439Friend Shared Function GetDeclaringSyntaxReferenceHelper(reference As SyntaxReference) As ImmutableArray(Of SyntaxReference) 447Return ImmutableArray(Of SyntaxReference).Empty 881Public Function ToDisplayParts(Optional format As SymbolDisplayFormat = Nothing) As ImmutableArray(Of SymbolDisplayPart) 889Public Function ToMinimalDisplayParts(semanticModel As SemanticModel, position As Integer, Optional format As SymbolDisplayFormat = Nothing) As ImmutableArray(Of SymbolDisplayPart) 1085Friend Function DeriveUseSiteInfoFromParameters(parameters As ImmutableArray(Of ParameterSymbol)) As UseSiteInfo(Of AssemblySymbol) 1098customModifiers As ImmutableArray(Of CustomModifier), 1127Friend Overloads Shared Function GetUnificationUseSiteDiagnosticRecursive(Of T As TypeSymbol)(types As ImmutableArray(Of T), owner As Symbol, ByRef checkedTypes As HashSet(Of TypeSymbol)) As DiagnosticInfo 1138Friend Overloads Shared Function GetUnificationUseSiteDiagnosticRecursive(modifiers As ImmutableArray(Of CustomModifier), owner As Symbol, ByRef checkedTypes As HashSet(Of TypeSymbol)) As DiagnosticInfo 1149Friend Overloads Shared Function GetUnificationUseSiteDiagnosticRecursive(parameters As ImmutableArray(Of ParameterSymbol), owner As Symbol, ByRef checkedTypes As HashSet(Of TypeSymbol)) As DiagnosticInfo 1163Friend Overloads Shared Function GetUnificationUseSiteDiagnosticRecursive(typeParameters As ImmutableArray(Of TypeParameterSymbol), owner As Symbol, ByRef checkedTypes As HashSet(Of TypeSymbol)) As DiagnosticInfo 1308Private ReadOnly Property ISymbol_Locations As ImmutableArray(Of Location) Implements ISymbol.Locations, ISymbolInternal.Locations 1314Private ReadOnly Property ISymbol_DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) Implements ISymbol.DeclaringSyntaxReferences 1348Private Function ISymbol_ToDisplayParts(Optional format As SymbolDisplayFormat = Nothing) As ImmutableArray(Of SymbolDisplayPart) Implements ISymbol.ToDisplayParts 1356Private Function ISymbol_ToMinimalDisplayParts(semanticModel As SemanticModel, position As Integer, Optional format As SymbolDisplayFormat = Nothing) As ImmutableArray(Of SymbolDisplayPart) Implements ISymbol.ToMinimalDisplayParts 1366Private Function ISymbol_GetAttributes() As ImmutableArray(Of AttributeData) Implements ISymbol.GetAttributes 1372Protected Shared Function ConstructTypeArguments(ParamArray typeArguments() As ITypeSymbol) As ImmutableArray(Of TypeSymbol) 1380Protected Shared Function ConstructTypeArguments(typeArguments As ImmutableArray(Of ITypeSymbol), typeArgumentNullableAnnotations As ImmutableArray(Of CodeAnalysis.NullableAnnotation)) As ImmutableArray(Of TypeSymbol)
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)
38Private _lazyMembers As ImmutableArray(Of Symbol) 52Public Overloads Overrides Function GetMembers() As ImmutableArray(Of Symbol) 76Dim members As ImmutableArray(Of Symbol) 89Public Overloads Overrides Function GetMembers(name As String) As ImmutableArray(Of Symbol) 185Public Overloads Overrides Function GetTypeMembers() As ImmutableArray(Of NamedTypeSymbol) 186Return ImmutableArray(Of NamedTypeSymbol).Empty 189Public Overloads Overrides Function GetTypeMembers(name As String) As ImmutableArray(Of NamedTypeSymbol) 190Return ImmutableArray(Of NamedTypeSymbol).Empty 193Public Overloads Overrides Function GetTypeMembers(name As String, arity As Integer) As ImmutableArray(Of NamedTypeSymbol) 194Return ImmutableArray(Of NamedTypeSymbol).Empty 220Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 226Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 228Return ImmutableArray(Of SyntaxReference).Empty 236Friend Overrides Function MakeAcyclicInterfaces(diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol) 237Return ImmutableArray(Of NamedTypeSymbol).Empty 244Friend Overrides Function MakeDeclaredInterfaces(basesBeingResolved As BasesBeingResolved, diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol) 245Return ImmutableArray(Of NamedTypeSymbol).Empty 314Friend Overrides Function GetAppliedConditionalSymbols() As ImmutableArray(Of String) 315Return ImmutableArray(Of String).Empty 379Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of TypeParameterSymbol) 381Return 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)
20Private ReadOnly _members As ImmutableArray(Of Symbol) 47Public Overloads Overrides Function GetMembers() As ImmutableArray(Of Symbol) 51Public Overloads Overrides Function GetMembers(name As String) As ImmutableArray(Of Symbol) 55Public Overloads Overrides Function GetTypeMembers() As ImmutableArray(Of NamedTypeSymbol) 56Return ImmutableArray(Of NamedTypeSymbol).Empty 59Public Overloads Overrides Function GetTypeMembers(name As String) As ImmutableArray(Of NamedTypeSymbol) 60Return ImmutableArray(Of NamedTypeSymbol).Empty 63Public Overloads Overrides Function GetTypeMembers(name As String, arity As Integer) As ImmutableArray(Of NamedTypeSymbol) 64Return ImmutableArray(Of NamedTypeSymbol).Empty 131Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 133Return ImmutableArray(Of Location).Empty 137Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 139Return ImmutableArray(Of SyntaxReference).Empty 147Friend Overrides Function MakeAcyclicInterfaces(diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol) 148Return ImmutableArray(Of NamedTypeSymbol).Empty 155Friend Overrides Function MakeDeclaredInterfaces(basesBeingResolved As BasesBeingResolved, diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol) 156Return ImmutableArray(Of NamedTypeSymbol).Empty 219Friend Overrides Function GetAppliedConditionalSymbols() As ImmutableArray(Of String) 220Return ImmutableArray(Of String).Empty 284Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of TypeParameterSymbol) 286Return 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)
18Private ReadOnly _locations As ImmutableArray(Of Location) 20Private ReadOnly _elementLocations As ImmutableArray(Of Location) 25Private ReadOnly _providedElementNames As ImmutableArray(Of String) 32Private ReadOnly _errorPositions As ImmutableArray(Of Boolean) 41Private _lazyActualElementNames As ImmutableArray(Of String) 43Private ReadOnly _elementTypes As ImmutableArray(Of TypeSymbol) 45Private _lazyMembers As ImmutableArray(Of Symbol) 47Private _lazyFields As ImmutableArray(Of FieldSymbol) 83Public Overrides ReadOnly Property TupleElementTypes As ImmutableArray(Of TypeSymbol) 89Public Overrides ReadOnly Property TupleElementNames As ImmutableArray(Of String) 118Public Overrides ReadOnly Property TupleElements As ImmutableArray(Of FieldSymbol) 163Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 169Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 205Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of TypeParameterSymbol) 207Return ImmutableArray(Of TypeParameterSymbol).Empty 211Public Overrides Function GetTypeArgumentCustomModifiers(ordinal As Integer) As ImmutableArray(Of CustomModifier) 221Friend Overrides ReadOnly Property TypeArgumentsNoUseSiteDiagnostics As ImmutableArray(Of TypeSymbol) 223Return ImmutableArray(Of TypeSymbol).Empty 337Private Sub New(locationOpt As Location, underlyingType As NamedTypeSymbol, elementLocations As ImmutableArray(Of Location), 338elementNames As ImmutableArray(Of String), elementTypes As ImmutableArray(Of TypeSymbol), 339errorPositions As ImmutableArray(Of Boolean)) 341Me.New(If((locationOpt Is Nothing), ImmutableArray(Of Location).Empty, ImmutableArray.Create(Of Location)(locationOpt)), 345Private Sub New(locations As ImmutableArray(Of Location), underlyingType As NamedTypeSymbol, 346elementLocations As ImmutableArray(Of Location), elementNames As ImmutableArray(Of String), 347elementTypes As ImmutableArray(Of TypeSymbol), errorPositions As ImmutableArray(Of Boolean)) 366elementTypes As ImmutableArray(Of TypeSymbol), 367elementLocations As ImmutableArray(Of Location), 368elementNames As ImmutableArray(Of String), 371errorPositions As ImmutableArray(Of Boolean), 397Return TupleTypeSymbol.Create(ImmutableArray(Of Location).Empty, tupleCompatibleType, Nothing, Nothing, Nothing) 400Public Shared Function Create(tupleCompatibleType As NamedTypeSymbol, elementNames As ImmutableArray(Of String)) As TupleTypeSymbol 401Return TupleTypeSymbol.Create(ImmutableArray(Of Location).Empty, tupleCompatibleType, Nothing, elementNames, errorPositions:=Nothing) 405elementLocations As ImmutableArray(Of Location), elementNames As ImmutableArray(Of String), 406errorPositions As ImmutableArray(Of Boolean)) As TupleTypeSymbol 408Return TupleTypeSymbol.Create(If((locationOpt Is Nothing), ImmutableArray(Of Location).Empty, ImmutableArray.Create(Of Location)(locationOpt)), 412Public Shared Function Create(locations As ImmutableArray(Of Location), tupleCompatibleType As NamedTypeSymbol, 413elementLocations As ImmutableArray(Of Location), elementNames As ImmutableArray(Of String), 414errorPositions As ImmutableArray(Of Boolean)) As TupleTypeSymbol 418Dim elementTypes As ImmutableArray(Of TypeSymbol) 421Dim tupleElementTypes As ImmutableArray(Of TypeSymbol) = tupleCompatibleType.TypeArgumentsNoUseSiteDiagnostics(TupleTypeSymbol.RestPosition - 1).TupleElementTypes 466Dim typeArgumentsNoUseSiteDiagnostics As ImmutableArray(Of TypeSymbol) = tupleCompatibleType.TypeArgumentsNoUseSiteDiagnostics 487Friend Function WithElementNames(newElementNames As ImmutableArray(Of String)) As TupleTypeSymbol 548Private Shared Function GetTupleUnderlyingType(elementTypes As ImmutableArray(Of TypeSymbol), syntax As SyntaxNode, compilation As VisualBasicCompilation, diagnostics As BindingDiagnosticBag) As NamedTypeSymbol 568Dim typeArguments As ImmutableArray(Of TypeSymbol) = ImmutableArray.Create(Of TypeSymbol)(elementTypes, ([loop] - 1) * (TupleTypeSymbol.RestPosition - 1), TupleTypeSymbol.RestPosition - 1).Add(namedTypeSymbol) 662Private Function CollectTupleElementFields() As ImmutableArray(Of FieldSymbol) 689Public Overrides Function GetMembers() As ImmutableArray(Of Symbol) 697Private Function CreateMembers() As ImmutableArray(Of Symbol) 709Dim underlyingMembers As ImmutableArray(Of Symbol) = currentUnderlying.OriginalDefinition.GetMembers() 891Dim members As ImmutableArray(Of Symbol) = Me.GetMembers() 950Public Overrides Function GetMembers(name As String) As ImmutableArray(Of Symbol) 954Public Overrides Function GetTypeMembers() As ImmutableArray(Of NamedTypeSymbol) 957Return ImmutableArray(Of NamedTypeSymbol).Empty 960Public Overrides Function GetTypeMembers(name As String) As ImmutableArray(Of NamedTypeSymbol) 963Return ImmutableArray(Of NamedTypeSymbol).Empty 966Public Overrides Function GetTypeMembers(name As String, arity As Integer) As ImmutableArray(Of NamedTypeSymbol) 969Return ImmutableArray(Of NamedTypeSymbol).Empty 972Public Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData) 1035Friend Overrides Function GetAppliedConditionalSymbols() As ImmutableArray(Of String) 1036Return ImmutableArray(Of String).Empty 1073Public Overrides Function Construct(typeArguments As ImmutableArray(Of TypeSymbol)) As NamedTypeSymbol 1089Friend Overrides Function MakeDeclaredInterfaces(basesBeingResolved As BasesBeingResolved, diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol) 1097Friend Overrides Function MakeAcyclicInterfaces(diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol) 1118Dim inferredNames As ImmutableArray(Of Boolean) = literal.InferredNamesOpt 1120Dim 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 (18)
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 621Private ReadOnly Property ITypeSymbol_UnionCaseTypes As ImmutableArray(Of ITypeSymbol) Implements ITypeSymbol.UnionCaseTypes 624Return ImmutableArray(Of ITypeSymbol).Empty 642Private Function ITypeSymbol_ToDisplayParts(topLevelNullability As NullableFlowState, Optional format As SymbolDisplayFormat = Nothing) As ImmutableArray(Of SymbolDisplayPart) Implements ITypeSymbol.ToDisplayParts 650Private 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)
110Public MustOverride Overrides ReadOnly Property TypeParameters As ImmutableArray(Of TypeParameterSymbol) 114Friend MustOverride Overrides ReadOnly Property TypeArgumentsNoUseSiteDiagnostics As ImmutableArray(Of TypeSymbol) 116Public NotOverridable Overrides Function GetTypeArgumentCustomModifiers(ordinal As Integer) As ImmutableArray(Of CustomModifier) 186Friend Overrides Function GetAppliedConditionalSymbols() As ImmutableArray(Of String) 222Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location) 228Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 252Public Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData) 278Friend Overrides Function MakeDeclaredInterfaces(basesBeingResolved As BasesBeingResolved, diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol) 279Return ImmutableArray(Of NamedTypeSymbol).Empty 282Friend Overrides Function MakeAcyclicInterfaces(diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol) 283Return ImmutableArray(Of NamedTypeSymbol).Empty 286Friend Overrides Function GetDeclaredInterfacesNoUseSiteDiagnostics(basesBeingResolved As BasesBeingResolved) As ImmutableArray(Of NamedTypeSymbol) 287Return ImmutableArray(Of NamedTypeSymbol).Empty 316Public Overrides Function Construct(typeArguments As ImmutableArray(Of TypeSymbol)) As NamedTypeSymbol 364Private _lazyTypeArguments As ImmutableArray(Of TypeSymbol) 374_lazyTypeArguments = ImmutableArray(Of TypeSymbol).Empty 438Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of TypeParameterSymbol) 441Return ImmutableArray(Of TypeParameterSymbol).Empty 448Friend Overrides ReadOnly Property TypeArgumentsNoUseSiteDiagnostics As ImmutableArray(Of TypeSymbol) 504Public Overrides Function GetMembers() As ImmutableArray(Of Symbol) 516Public Overrides Function GetMembers(name As String) As ImmutableArray(Of Symbol) 521Friend Overrides Function GetTypeMembersUnordered() As ImmutableArray(Of NamedTypeSymbol) 525Public Overrides Function GetTypeMembers() As ImmutableArray(Of NamedTypeSymbol) 529Private Overloads Shared Function GetTypeMembers(originalTypeMembers As ImmutableArray(Of NamedTypeSymbol)) As ImmutableArray(Of NamedTypeSymbol) 543Public Overrides Function GetTypeMembers(name As String) As ImmutableArray(Of NamedTypeSymbol) 547Public Overrides Function GetTypeMembers(name As String, arity As Integer) As ImmutableArray(Of NamedTypeSymbol) 562Private ReadOnly _typeParameters As ImmutableArray(Of TypeParameterSymbol) 572Dim typeParametersDefinitions As ImmutableArray(Of TypeParameterSymbol) = originalDefinition.TypeParameters 622Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of TypeParameterSymbol) 628Friend Overrides ReadOnly Property TypeArgumentsNoUseSiteDiagnostics As ImmutableArray(Of TypeSymbol) 646Public Overrides Function GetMembers() As ImmutableArray(Of Symbol) 647Return ImmutableArray(Of Symbol).Empty 650Public Overrides Function GetMembers(name As String) As ImmutableArray(Of Symbol) 651Return ImmutableArray(Of Symbol).Empty 654Public Overrides Function GetTypeMembers() As ImmutableArray(Of NamedTypeSymbol) 655Return ImmutableArray(Of NamedTypeSymbol).Empty 658Public Overrides Function GetTypeMembers(name As String) As ImmutableArray(Of NamedTypeSymbol) 659Return ImmutableArray(Of NamedTypeSymbol).Empty 662Public Overrides Function GetTypeMembers(name As String, arity As Integer) As ImmutableArray(Of NamedTypeSymbol) 663Return 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.Analyzers (2)
BasicSymbolIsBannedInAnalyzersAnalyzer.vb (2)
21Protected Overrides ReadOnly Property BaseTypeSyntaxKinds As ImmutableArray(Of SyntaxKind) 43Return ImmutableArray(Of SyntaxNode).Empty
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (38)
src\45a5dce26ceffa63\VisualBasicUnnecessaryImportsProvider.vb (1)
27cancellationToken As CancellationToken) As ImmutableArray(Of ImportsClauseSyntax)
src\roslyn\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\roslyn\src\Analyzers\VisualBasic\Analyzers\NamingStyle\VisualBasicNamingStyleDiagnosticAnalyzer.vb (1)
14Protected Overrides ReadOnly Property SupportedSyntaxKinds As ImmutableArray(Of SyntaxKind) =
src\roslyn\src\Analyzers\VisualBasic\Analyzers\RemoveUnnecessaryCast\VisualBasicRemoveUnnecessaryCastDiagnosticAnalyzer.vb (1)
18Protected Overrides ReadOnly Property SyntaxKindsOfInterest As ImmutableArray(Of SyntaxKind) =
src\roslyn\src\Analyzers\VisualBasic\Analyzers\RemoveUnnecessaryImports\VisualBasicRemoveUnnecessaryImportsDiagnosticAnalyzer.vb (2)
37Protected Overrides Function MergeImports(unnecessaryImports As ImmutableArray(Of ImportsClauseSyntax)) As ImmutableArray(Of SyntaxNode)
src\roslyn\src\Analyzers\VisualBasic\Analyzers\UseCollectionInitializer\VisualBasicUseCollectionInitializerDiagnosticAnalyzer.vb (1)
47matches As ImmutableArray(Of CollectionMatch(Of SyntaxNode)),
src\roslyn\src\Analyzers\VisualBasic\Analyzers\UseCompoundAssignment\Utilities.vb (1)
9Public ReadOnly Kinds As ImmutableArray(Of (SyntaxKind, SyntaxKind, SyntaxKind)) =
src\roslyn\src\Analyzers\VisualBasic\Analyzers\UseInferredMemberName\VisualBasicUseInferredMemberNameDiagnosticAnalyzer.vb (2)
59additionalLocations:=ImmutableArray(Of Location).Empty, 83additionalLocations:=ImmutableArray(Of Location).Empty,
src\roslyn\src\Analyzers\VisualBasic\Analyzers\UseNullPropagation\VisualBasicUseNullPropagationDiagnosticAnalyzer.vb (1)
47ByRef trueStatements As ImmutableArray(Of ExecutableStatementSyntax)) As Boolean
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\SyntaxNodeExtensions.vb (4)
439Public Function GetLeadingBlankLines(Of TSyntaxNode As SyntaxNode)(node As TSyntaxNode) As ImmutableArray(Of SyntaxTrivia) 449Public Function GetNodeWithoutLeadingBlankLines(Of TSyntaxNode As SyntaxNode)(node As TSyntaxNode, ByRef strippedTrivia As ImmutableArray(Of SyntaxTrivia)) As TSyntaxNode 454Public Function GetLeadingBannerAndPreprocessorDirectives(Of TSyntaxNode As SyntaxNode)(node As TSyntaxNode) As ImmutableArray(Of SyntaxTrivia) 464Public Function GetNodeWithoutLeadingBannerAndPreprocessorDirectives(Of TSyntaxNode As SyntaxNode)(node As TSyntaxNode, ByRef strippedTrivia As ImmutableArray(Of SyntaxTrivia)) As TSyntaxNode
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Formatting\Engine\VisualBasicFormatEngine.vb (1)
17formattingRules As ImmutableArray(Of AbstractFormattingRule),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Formatting\VisualBasicSyntaxFormatting.vb (3)
18Private ReadOnly _rules As ImmutableArray(Of AbstractFormattingRule) = ImmutableArray.Create(Of AbstractFormattingRule)( 26Public Overrides Function GetDefaultFormattingRules() As ImmutableArray(Of AbstractFormattingRule) 44Protected 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
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Indentation\VisualBasicSmartTokenFormatter.vb (2)
20Private ReadOnly _formattingRules As ImmutableArray(Of AbstractFormattingRule) 25formattingRules As ImmutableArray(Of AbstractFormattingRule),
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Services\SemanticFacts\VisualBasicSemanticFacts.vb (8)
210Public Function GetDeconstructionAssignmentMethods(model As SemanticModel, deconstruction As SyntaxNode) As ImmutableArray(Of IMethodSymbol) Implements ISemanticFacts.GetDeconstructionAssignmentMethods 211Return ImmutableArray(Of IMethodSymbol).Empty 214Public Function GetDeconstructionForEachMethods(model As SemanticModel, deconstruction As SyntaxNode) As ImmutableArray(Of IMethodSymbol) Implements ISemanticFacts.GetDeconstructionForEachMethods 215Return ImmutableArray(Of IMethodSymbol).Empty 263Public Function GetBestOrAllSymbols(semanticModel As SemanticModel, node As SyntaxNode, token As SyntaxToken, cancellationToken As CancellationToken) As ImmutableArray(Of ISymbol) Implements ISemanticFacts.GetBestOrAllSymbols 265Return ImmutableArray(Of ISymbol).Empty 278Public Function GetLocalFunctionSymbols(compilation As Compilation, symbol As ISymbol, cancellationToken As CancellationToken) As ImmutableArray(Of IMethodSymbol) Implements ISemanticFacts.GetLocalFunctionSymbols 279Return ImmutableArray(Of IMethodSymbol).Empty
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Services\SyntaxFacts\VisualBasicSyntaxFacts.vb (1)
1395Public Function GetMatchingConditionalDirectives(directive As SyntaxNode, cancellationToken As CancellationToken) As ImmutableArray(Of SyntaxNode) Implements ISyntaxFacts.GetMatchingConditionalDirectives
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Utilities\ImportsOrganizer.vb (1)
80Dim leadingTrivia As ImmutableArray(Of SyntaxTrivia) = Nothing
src\roslyn\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))
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (103)
src\f736901a33c2b55b\VisualBasicTypeInferenceService.TypeInferrer.vb (1)
386parameterizedSymbols As IEnumerable(Of ImmutableArray(Of IParameterSymbol))) As IEnumerable(Of TypeInferenceInfo)
src\roslyn\src\Analyzers\VisualBasic\CodeFixes\AddAnonymousTypeMemberName\VisualBasicAddAnonymousTypeMemberNameCodeFixProvider.vb (1)
27Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String) =
src\roslyn\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\roslyn\src\Analyzers\VisualBasic\CodeFixes\AddObsoleteAttribute\VisualBasicAddObsoleteAttributeCodeFixProvider.vb (1)
17Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String) =
src\roslyn\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\roslyn\src\Analyzers\VisualBasic\CodeFixes\AliasAmbiguousType\VisualBasicAliasAmbiguousTypeCodeFixProvider.vb (1)
25Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String) = ImmutableArray.Create(BC30561)
src\roslyn\src\Analyzers\VisualBasic\CodeFixes\ConvertToAsync\VisualBasicConvertToAsyncFunctionCodeFixProvider.vb (2)
22Friend ReadOnly Ids As ImmutableArray(Of String) = ImmutableArray.Create(Of String)(BC37001) 33Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String)
src\roslyn\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\roslyn\src\Analyzers\VisualBasic\CodeFixes\GenerateConstructor\GenerateConstructorCodeFixProvider.vb (2)
26Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String) 32Protected Overrides Function GetCodeActionsAsync(document As Document, node As SyntaxNode, cancellationToken As CancellationToken) As Task(Of ImmutableArray(Of CodeAction))
src\roslyn\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\roslyn\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\roslyn\src\Analyzers\VisualBasic\CodeFixes\GenerateEnumMember\GenerateEnumMemberCodeFixProvider.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\roslyn\src\Analyzers\VisualBasic\CodeFixes\GenerateParameterizedMember\GenerateConversionCodeFixProvider.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\roslyn\src\Analyzers\VisualBasic\CodeFixes\GenerateParameterizedMember\GenerateParameterizedMemberCodeFixProvider.vb (2)
47Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String) 53Protected Overrides Function GetCodeActionsAsync(document As Document, node As SyntaxNode, cancellationToken As CancellationToken) As Task(Of ImmutableArray(Of CodeAction))
src\roslyn\src\Analyzers\VisualBasic\CodeFixes\GenerateParameterizedMember\VisualBasicGenerateConversionService.vb (2)
151attributes:=ImmutableArray(Of AttributeData).Empty, 158typeParameters:=ImmutableArray(Of ITypeParameterSymbol).Empty,
src\roslyn\src\Analyzers\VisualBasic\CodeFixes\GenerateParameterizedMember\VisualBasicGenerateParameterizedMemberService.vb (10)
30Protected Overrides Function DetermineParameterNames(cancellationToken As CancellationToken) As ImmutableArray(Of ParameterName) 63Protected Overrides Function GetCapturedTypeParameters(cancellationToken As CancellationToken) As ImmutableArray(Of ITypeParameterSymbol) 75Protected Overrides Function GenerateTypeParameters(cancellationToken As CancellationToken) As ImmutableArray(Of ITypeParameterSymbol) 130Protected Overrides Function DetermineParameterModifiers(cancellationToken As CancellationToken) As ImmutableArray(Of RefKind) 133ImmutableArray(Of RefKind).Empty) 136Protected Overrides Function DetermineParameterTypes(cancellationToken As CancellationToken) As ImmutableArray(Of ITypeSymbol) 139ImmutableArray(Of ITypeSymbol).Empty) 142Protected Overrides Function DetermineParameterOptionality(cancellationToken As CancellationToken) As ImmutableArray(Of Boolean) 145ImmutableArray(Of Boolean).Empty) 166Protected Overrides Function DetermineTypeArguments(cancellationToken As CancellationToken) As ImmutableArray(Of ITypeSymbol)
src\roslyn\src\Analyzers\VisualBasic\CodeFixes\GenerateVariable\VisualBasicGenerateVariableCodeFixProvider.vb (3)
31Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String) 37Protected Overrides Async Function GetCodeActionsAsync(document As Document, node As SyntaxNode, cancellationToken As CancellationToken) As Task(Of ImmutableArray(Of CodeAction)) 45Return ImmutableArray(Of CodeAction).Empty
src\roslyn\src\Analyzers\VisualBasic\CodeFixes\ImplementInterface\VisualBasicImplementInterfaceCodeFixProvider.vb (1)
25Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String) = ImmutableArray.Create(BC30149)
src\roslyn\src\Analyzers\VisualBasic\CodeFixes\ImplementInterface\VisualBasicImplementInterfaceService.vb (1)
56ByRef interfaceTypes As ImmutableArray(Of INamedTypeSymbol)) As Boolean
src\roslyn\src\Analyzers\VisualBasic\CodeFixes\Iterator\VisualBasicChangeToYieldCodeFixProvider.vb (2)
23Friend Shared ReadOnly Ids As ImmutableArray(Of String) = ImmutableArray.Create(BC36942) 34Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String)
src\roslyn\src\Analyzers\VisualBasic\CodeFixes\Iterator\VisualBasicConvertToIteratorCodeFixProvider.vb (2)
25Friend Shared ReadOnly Ids As ImmutableArray(Of String) = ImmutableArray.Create(BC30451) 36Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String)
src\roslyn\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\roslyn\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\roslyn\src\Analyzers\VisualBasic\CodeFixes\MakeTypeAbstract\VisualBasicMakeTypeAbstractCodeFixProvider.vb (1)
22Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String) =
src\roslyn\src\Analyzers\VisualBasic\CodeFixes\MakeTypePartial\VisualBasicMakeTypePartialCodeFixProvider.vb (1)
23Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String) = ImmutableArray.Create(BC40046)
src\roslyn\src\Analyzers\VisualBasic\CodeFixes\OrderModifiers\VisualBasicOrderModifiersCodeFixProvider.vb (2)
30Protected Overrides ReadOnly Property FixableCompilerErrorIds As ImmutableArray(Of String) = 31ImmutableArray(Of String).Empty
src\roslyn\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\roslyn\src\Analyzers\VisualBasic\CodeFixes\RemoveUnnecessaryByVal\VisualBasicRemoveUnnecessaryByValCodeFixProvider.vb (2)
24Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String) = 35Protected Overrides Async Function FixAllAsync(document As Document, diagnostics As ImmutableArray(Of Diagnostic), editor As SyntaxEditor, cancellationToken As CancellationToken) As Task
src\roslyn\src\Analyzers\VisualBasic\CodeFixes\RemoveUnnecessaryCast\VisualBasicRemoveUnnecessaryCastCodeFixProvider.vb (4)
29Public NotOverridable Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String) = 53diagnostics As ImmutableArray(Of Diagnostic), 93document As Document, originalCastNodes As ImmutableArray(Of ExpressionSyntax), 115document As Document, originalNodes As ImmutableArray(Of ExpressionSyntax),
src\roslyn\src\Analyzers\VisualBasic\CodeFixes\SimplifyObjectCreation\VisualBasicSimplifyObjectCreationCodeFixProvider.vb (2)
24Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String) = ImmutableArray.Create(IDEDiagnosticIds.SimplifyObjectCreationDiagnosticId) 34Protected Overrides Async Function FixAllAsync(document As Document, diagnostics As ImmutableArray(Of Diagnostic), editor As SyntaxEditor, cancellationToken As CancellationToken) As Task
src\roslyn\src\Analyzers\VisualBasic\CodeFixes\UnsealClass\VisualBasicUnsealClassCodeFixProvider.vb (1)
23Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String) =
src\roslyn\src\Analyzers\VisualBasic\CodeFixes\UseAutoProperty\VisualBasicUseAutoPropertyCodeFixProvider.vb (2)
42Protected Overrides Function GetFormattingRules(document As Document, finalProperty As SyntaxNode) As ImmutableArray(Of AbstractFormattingRule) 46Protected Overrides Function RewriteFieldReferencesInProperty([property] As PropertyBlockSyntax, fieldLocations As ImmutableArray(Of ReferencedSymbol), cancellationToken As CancellationToken) As PropertyBlockSyntax
src\roslyn\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\roslyn\src\Analyzers\VisualBasic\CodeFixes\UseIsNotExpression\VisualBasicUseIsNotExpressionCodeFixProvider.vb (2)
24Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String) = ImmutableArray.Create(IDEDiagnosticIds.UseIsNotExpressionDiagnosticId) 33diagnostics As ImmutableArray(Of Diagnostic),
src\roslyn\src\Analyzers\VisualBasic\CodeFixes\UseObjectInitializer\VisualBasicUseObjectInitializerCodeFixProvider.vb (3)
52matches As ImmutableArray(Of Match(Of ExpressionSyntax, StatementSyntax, MemberAccessExpressionSyntax, AssignmentStatementSyntax))) As StatementSyntax 76matches As ImmutableArray(Of Match(Of ExpressionSyntax, StatementSyntax, MemberAccessExpressionSyntax, AssignmentStatementSyntax))) As ObjectCreationExpressionSyntax 87matches As ImmutableArray(Of Match(Of ExpressionSyntax, StatementSyntax, MemberAccessExpressionSyntax, AssignmentStatementSyntax))) As SeparatedSyntaxList(Of FieldInitializerSyntax)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeFixesAndRefactorings\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)
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\ParameterGenerator.vb (1)
13Public Shared Function GenerateParameterList(parameterDefinitions As ImmutableArray(Of IParameterSymbol), options As CodeGenerationContextInfo) As ParameterListSyntax
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\TypeParameterGenerator.vb (1)
10Public Shared Function GenerateTypeParameterList(typeParameters As ImmutableArray(Of ITypeParameterSymbol)) As TypeParameterListSyntax
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\VisualBasicCodeGenerationService.vb (1)
510Dim strippedTrivia As ImmutableArray(Of SyntaxTrivia) = Nothing
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Editing\VisualBasicImportAdder.vb (3)
40Protected Overrides Function AddPotentiallyConflictingImportsAsync(model As SemanticModel, container As SyntaxNode, namespaceSymbols As ImmutableArray(Of INamespaceSymbol), conflicts As HashSet(Of INamespaceSymbol), cancellationToken As CancellationToken) As Task 88namespaceSymbols As ImmutableArray(Of INamespaceSymbol)) 99Private Sub AddImportedMembers(namespaceSymbols As ImmutableArray(Of INamespaceSymbol))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\SemanticModelExtensions.vb (7)
20cancellationToken As CancellationToken) As ImmutableArray(Of ParameterName) 22Return ImmutableArray(Of ParameterName).Empty 34cancellationToken As CancellationToken) As ImmutableArray(Of ParameterName) 46cancellationToken As CancellationToken) As ImmutableArray(Of ParameterName) 48Return ImmutableArray(Of ParameterName).Empty 68cancellationToken As CancellationToken) As ImmutableArray(Of ParameterName) 70Return ImmutableArray(Of ParameterName).Empty
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\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
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\LanguageServices\VisualBasicAddImportsService.vb (1)
49CancellationToken As CancellationToken) As ImmutableArray(Of SyntaxNode)
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\LanguageServices\VisualBasicSyntaxFactsService.vb (1)
38Public Function GetSelectedFieldsAndPropertiesAsync(tree As SyntaxTree, textSpan As TextSpan, allowPartialSelection As Boolean, cancellationToken As CancellationToken) As Task(Of ImmutableArray(Of SyntaxNode)) Implements ISyntaxFactsService.GetSelectedFieldsAndPropertiesAsync
Microsoft.CodeAnalysis.VisualBasic.Features (773)
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)
27Private Shared ReadOnly _declarationKinds As ImmutableArray(Of SyntaxKind) = ImmutableArray.Create( 36Private Shared ReadOnly _declarationAndInvocableKinds As ImmutableArray(Of SyntaxKind) = 46Private Shared ReadOnly _nodeKindsToIgnore As ImmutableArray(Of SyntaxKind) = ImmutableArray.Create( 49Private Shared ReadOnly _updatableNodeKinds As ImmutableArray(Of SyntaxKind) = ImmutableArray.Create( 70Private Shared ReadOnly _updatableAncestorKinds As ImmutableArray(Of SyntaxKind) = ImmutableArray.Create( 562Dim newArguments As ImmutableArray(Of IUnifiedArgumentSyntax) = PermuteArguments( 611lineFormattingOption As LineFormattingOptions) As ImmutableArray(Of SyntaxTrivia) 614Return ImmutableArray(Of SyntaxTrivia).Empty 632Private Function VerifyAndPermuteParamNodes(paramNodes As ImmutableArray(Of XmlElementSyntax), declarationSymbol As ISymbol, updatedSignature As SignatureChange) As ImmutableArray(Of SyntaxNode) 640Return ImmutableArray(Of SyntaxNode).Empty 644Return ImmutableArray(Of SyntaxNode).Empty 652Return ImmutableArray(Of SyntaxNode).Empty 657Return ImmutableArray(Of SyntaxNode).Empty 685cancellationToken As CancellationToken) As Task(Of ImmutableArray(Of ISymbol)) 736Protected Overrides Function GetFormattingRules(document As Document) As ImmutableArray(Of AbstractFormattingRule) 792Protected 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)
36Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String) 42Protected 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)
30Public NotOverridable Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String)
CodeFixes\MoveToTopOfFile\MoveToTopOfFileCodeFixProvider.vb (1)
32Public NotOverridable Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String)
CodeFixes\OverloadBase\OverloadBaseCodeFixProvider.vb (1)
24Public 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)
34Public Overrides Function TryGetReplacementReferenceSyntax(reference As SyntaxNode, newNamespaceParts As ImmutableArray(Of String), syntaxFacts As ISyntaxFactsService, ByRef old As SyntaxNode, ByRef [new] As SyntaxNode) As Boolean 70Protected Overrides Function GetValidContainersFromAllLinkedDocumentsAsync(document As Document, container As SyntaxNode, cancellationToken As CancellationToken) As Task(Of ImmutableArray(Of (DocumentId, SyntaxNode))) 71Return SpecializedTasks.Default(Of ImmutableArray(Of (DocumentId, SyntaxNode)))() 75Protected Overrides Function ChangeNamespaceDeclaration(root As CompilationUnitSyntax, declaredNamespaceParts As ImmutableArray(Of String), targetNamespaceParts As ImmutableArray(Of String)) As CompilationUnitSyntax 94Private Shared Function CreateNamespaceAsQualifiedName(namespaceParts As ImmutableArray(Of String), index As Integer) As NameSyntax 105Private 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)) 121symbols As ImmutableArray(Of SymbolAndSelectionInfo),
Completion\CompletionProviders\HandlesClauseCompletionProvider.vb (9)
38cancellationToken As CancellationToken) As Task(Of ImmutableArray(Of SymbolAndSelectionInfo)) 44Private Overloads Shared Function GetSymbolsAsync(context As VisualBasicSyntaxContext, position As Integer, cancellationToken As CancellationToken) As Task(Of ImmutableArray(Of ISymbol)) 77) As ImmutableArray(Of ISymbol) 88Return ImmutableArray(Of ISymbol).Empty 100) As ImmutableArray(Of ISymbol) 112Return ImmutableArray(Of ISymbol).Empty 115Dim result = ImmutableArray(Of IEventSymbol).Empty 140Return ImmutableArray(Of ISymbol).CastUp(result) 162Protected 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)
50cancellationToken As CancellationToken) As Task(Of ImmutableArray(Of SymbolAndSelectionInfo)) 57context As VisualBasicSyntaxContext, position As Integer, cancellationToken As CancellationToken) As Task(Of ImmutableArray(Of ISymbol)) 89Dim result = ImmutableArray(Of ISymbol).Empty 137Private Shared Function GetDottedMembers(position As Integer, qualifiedName As QualifiedNameSyntax, semanticModel As SemanticModel, memberKindKeyword As SyntaxKind, cancellationToken As CancellationToken) As ImmutableArray(Of ISymbol) 140Return ImmutableArray(Of ISymbol).Empty 173Return ImmutableArray(Of ISymbol).Empty 185Private Function interfaceMemberGetter([interface] As ITypeSymbol, within As ISymbol) As ImmutableArray(Of ISymbol) 190Private Function GetInterfacesAndContainers(position As Integer, node As SyntaxNode, semanticModel As SemanticModel, kind As SyntaxKind, cancellationToken As CancellationToken) As ImmutableArray(Of ISymbol) 193Return ImmutableArray(Of ISymbol).Empty 259Private Shared Function TryAddGlobalTo(symbols As ImmutableArray(Of ISymbol)) As ImmutableArray(Of ISymbol) 304symbols As ImmutableArray(Of SymbolAndSelectionInfo),
Completion\CompletionProviders\KeywordCompletionProvider.vb (1)
22Private 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)
64Protected Overrides Function GetCompletionItemRules(symbols As ImmutableArray(Of SymbolAndSelectionInfo)) As CompletionItemRules
Completion\CompletionProviders\OverrideCompletionProvider.vb (4)
155Public Overrides Function FilterOverrides(members As ImmutableArray(Of ISymbol), 156returnType As ITypeSymbol) As ImmutableArray(Of ISymbol) 167Return ImmutableArray(Of ISymbol).CastUp(filteredMembers.ToImmutableArray()) 179Return ImmutableArray(Of ISymbol).CastUp(filteredMembers.ToImmutableArray())
Completion\CompletionProviders\PartialTypeCompletionProvider.vb (1)
67Protected 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)
30Private Shared ReadOnly s_keywordNames As ImmutableArray(Of String) 286Protected Overrides Function GetKeywordNames() As ImmutableArray(Of String) 354Protected 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)
23Public Overrides Function CreateSwitchExpressionStatement(target As ExpressionSyntax, sections As ImmutableArray(Of AnalyzedSwitchSection), feature As Feature) As SyntaxNode
Diagnostics\Analyzers\TypeSyntaxSimplifierWalker.vb (4)
44Private _diagnostics As ImmutableArray(Of Diagnostic).Builder 54Public ReadOnly Property Diagnostics As ImmutableArray(Of Diagnostic) 56Return If(_diagnostics?.ToImmutable(), ImmutableArray(Of Diagnostic).Empty) 60Public 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)
22Private Shared ReadOnly s_kindsOfInterest As ImmutableArray(Of SyntaxKind) = ImmutableArray.Create( 37Protected Overrides Function AnalyzeCodeBlock(context As CodeBlockAnalysisContext, root As SyntaxNode) As ImmutableArray(Of Diagnostic) 45Return ImmutableArray(Of Diagnostic).Empty 53Protected Overrides Function AnalyzeSemanticModel(context As SemanticModelAnalysisContext, root As SyntaxNode, codeBlockIntervalTree As TextSpanMutableIntervalTree) As ImmutableArray(Of Diagnostic) 56Return 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)
131Public Overrides Function GetCapturedVariables(model As SemanticModel) As ImmutableArray(Of ISymbol)
EditAndContinue\DeclarationBody\FieldWithMultipleArrayBoundsDeclarationBody.vb (1)
39Public Overrides Function GetCapturedVariables(model As SemanticModel) As ImmutableArray(Of ISymbol)
EditAndContinue\DeclarationBody\FieldWithSingleArrayBoundsDeclarationBody.vb (1)
44Public 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)
45Public 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 (5)
276Protected Overrides Function GetSyntaxSequenceEdits(oldNodes As ImmutableArray(Of SyntaxNode), newNodes As ImmutableArray(Of SyntaxNode)) As IEnumerable(Of SequenceEdit) 508Protected Overrides Function GetSymbolDeclarationSyntax(symbol As ISymbol, selector As Func(Of ImmutableArray(Of SyntaxReference), SyntaxReference), cancellationToken As CancellationToken) As SyntaxNode 510Dim syntaxRefs As ImmutableArray(Of SyntaxReference) 2383Private Shared Function GetPreprocessorSymbolsDisplay(symbols As ImmutableArray(Of KeyValuePair(Of String, Object))) As String
EncapsulateField\VisualBasicEncapsulateFieldService.vb (1)
71Protected Overrides Async Function GetFieldsAsync(document As Document, span As TextSpan, cancellationToken As CancellationToken) As Task(Of ImmutableArray(Of IFieldSymbol))
ExtractMethod\VisualBasicMethodExtractor.PostProcessor.vb (8)
25Public Function MergeDeclarationStatements(statements As ImmutableArray(Of StatementSyntax)) As ImmutableArray(Of StatementSyntax) 33Private Function MergeDeclarationStatementsWorker(statements As ImmutableArray(Of StatementSyntax)) As ImmutableArray(Of StatementSyntax) 177Public Shared Function RemoveDeclarationAssignmentPattern(statements As ImmutableArray(Of StatementSyntax)) As ImmutableArray(Of StatementSyntax) 216Public Shared Function RemoveInitializedDeclarationAndReturnPattern(statements As ImmutableArray(Of StatementSyntax)) As ImmutableArray(Of StatementSyntax)
ExtractMethod\VisualBasicMethodExtractor.VisualBasicCodeGenerator.ExpressionCodeGenerator.vb (2)
68Protected Overrides Function GetInitialStatementsForMethodDefinitions() As ImmutableArray(Of StatementSyntax) 82Return ImmutableArray(Of StatementSyntax).Empty
ExtractMethod\VisualBasicMethodExtractor.VisualBasicCodeGenerator.MultipleStatementsCodeGenerator.vb (1)
33Protected Overrides Function GetInitialStatementsForMethodDefinitions() As ImmutableArray(Of StatementSyntax)
ExtractMethod\VisualBasicMethodExtractor.VisualBasicCodeGenerator.SingleStatementCodeGenerator.vb (1)
34Protected Overrides Function GetInitialStatementsForMethodDefinitions() As ImmutableArray(Of StatementSyntax)
ExtractMethod\VisualBasicMethodExtractor.VisualBasicCodeGenerator.vb (11)
80attributes:=ImmutableArray(Of AttributeData).Empty, 195insertionPointNode As SyntaxNode, cancellationToken As CancellationToken) As OperationStatus(Of ImmutableArray(Of SyntaxNode)) 201Private Function CreateMethodBody(insertionPointNode As SyntaxNode, cancellationToken As CancellationToken) As ImmutableArray(Of StatementSyntax) 206Dim emptyStatements = ImmutableArray(Of StatementSyntax).Empty 219Private Shared Function CheckActiveStatements(statements As ImmutableArray(Of StatementSyntax)) As OperationStatus 253Private Function MoveDeclarationOutFromMethodDefinition(statements As ImmutableArray(Of StatementSyntax), cancellationToken As CancellationToken) As ImmutableArray(Of StatementSyntax) 314statements As ImmutableArray(Of StatementSyntax), 315cancellationToken As CancellationToken) As ImmutableArray(Of StatementSyntax) 398variables As ImmutableArray(Of VariableInfo), 406variables As ImmutableArray(Of VariableInfo),
ExtractMethod\VisualBasicSelectionResult.vb (4)
271Public Overrides Function ContainsUnsupportedExitPointsStatements(exitPoints As ImmutableArray(Of SyntaxNode)) As Boolean 292Public Overrides Function GetOuterReturnStatements(commonRoot As SyntaxNode, exitPoints As ImmutableArray(Of SyntaxNode)) As ImmutableArray(Of ExecutableStatementSyntax) 300returnStatements As ImmutableArray(Of ExecutableStatementSyntax),
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)
370cancellationToken As CancellationToken) As ImmutableArray(Of ITypeParameterSymbol) 379Return ImmutableArray(Of ITypeParameterSymbol).Empty 685attributes:=ImmutableArray(Of AttributeData).Empty,
InheritanceMargin\VisualBasicInheritanceMarginService.vb (1)
25Protected 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)
76Protected Overrides Function GetInitializerSourcePartsAsync(symbol As ISymbol) As Task(Of ImmutableArray(Of SymbolDisplayPart)) 88Protected Overrides Function ToMinimalDisplayParts(symbol As ISymbol, semanticModel As SemanticModel, position As Integer, format As SymbolDisplayFormat) As ImmutableArray(Of SymbolDisplayPart) 121Private Overloads Async Function GetInitializerSourcePartsAsync(symbol As IParameterSymbol) As Task(Of ImmutableArray(Of SymbolDisplayPart)) 127Return ImmutableArray(Of SymbolDisplayPart).Empty 130Private Overloads Async Function GetInitializerSourcePartsAsync(symbol As ILocalSymbol) As Task(Of ImmutableArray(Of SymbolDisplayPart)) 140Private Overloads Async Function GetInitializerSourcePartsAsync(symbol As IFieldSymbol) As Task(Of ImmutableArray(Of SymbolDisplayPart)) 155Private 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)
66Protected Overrides Function GetFormattingRules(document As Document) As ImmutableArray(Of AbstractFormattingRule) 74Protected Overrides Function GetReducers() As ImmutableArray(Of AbstractReducer)
NavigationBar\VisualBasicNavigationBarItemService.vb (3)
41cancellationToken As CancellationToken) As Task(Of ImmutableArray(Of RoslynNavigationBarItem)) 107cancellationToken As CancellationToken) As ImmutableArray(Of RoslynNavigationBarItem) 176ImmutableArray(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( 57Protected 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\AddRemoveHandlerSignatureHelpProvider.vb (3)
40Public Overrides ReadOnly Property TriggerCharacters As ImmutableArray(Of Char) = ImmutableArray.Create(" "c, ","c) 42Public Overrides ReadOnly Property RetriggerCharacters As ImmutableArray(Of Char) = ImmutableArray(Of Char).Empty
SignatureHelp\AttributeSignatureHelpProvider.vb (2)
27Public Overrides ReadOnly Property TriggerCharacters As ImmutableArray(Of Char) = ImmutableArray.Create("("c, ","c) 29Public Overrides ReadOnly Property RetriggerCharacters As ImmutableArray(Of Char) = ImmutableArray.Create(")"c)
SignatureHelp\CastExpressionSignatureHelpProvider.vb (2)
42Public Overrides ReadOnly Property TriggerCharacters As ImmutableArray(Of Char) = ImmutableArray.Create("("c, ","c) 44Public Overrides ReadOnly Property RetriggerCharacters As ImmutableArray(Of Char) = ImmutableArray.Create(")"c)
SignatureHelp\CollectionInitializerSignatureHelpProvider.vb (2)
25Public Overrides ReadOnly Property TriggerCharacters As ImmutableArray(Of Char) = ImmutableArray.Create("{"c, ","c) 27Public Overrides ReadOnly Property RetriggerCharacters As ImmutableArray(Of Char) = ImmutableArray.Create("}"c)
SignatureHelp\ConditionalExpressionSignatureHelpProvider.vb (2)
28Public Overrides ReadOnly Property TriggerCharacters As ImmutableArray(Of Char) = ImmutableArray.Create("("c, ","c) 30Public Overrides ReadOnly Property RetriggerCharacters As ImmutableArray(Of Char) = ImmutableArray.Create(")"c)
SignatureHelp\FunctionAggregationSignatureHelpProvider.vb (2)
27Public Overrides ReadOnly Property TriggerCharacters As ImmutableArray(Of Char) = ImmutableArray.Create("("c) 29Public Overrides ReadOnly Property RetriggerCharacters As ImmutableArray(Of Char) = ImmutableArray.Create(")"c)
SignatureHelp\GenericNameSignatureHelpProvider.vb (2)
26Public Overrides ReadOnly Property TriggerCharacters As ImmutableArray(Of Char) = ImmutableArray.Create(" "c, ","c) 28Public Overrides ReadOnly Property RetriggerCharacters As ImmutableArray(Of Char) = ImmutableArray.Create(")"c)
SignatureHelp\GetTypeExpressionSignatureHelpProvider.vb (2)
31Public Overrides ReadOnly Property TriggerCharacters As ImmutableArray(Of Char) = ImmutableArray.Create("("c) 33Public Overrides ReadOnly Property RetriggerCharacters As ImmutableArray(Of Char) = ImmutableArray.Create(")"c)
SignatureHelp\GetXmlNamespaceExpressionSignatureHelpProvider.vb (2)
31Public Overrides ReadOnly Property TriggerCharacters As ImmutableArray(Of Char) = ImmutableArray.Create("("c) 33Public Overrides ReadOnly Property RetriggerCharacters As ImmutableArray(Of Char) = ImmutableArray.Create(")"c)
SignatureHelp\InvocationExpressionSignatureHelpProvider.MemberGroup.vb (2)
19cancellationToken As CancellationToken) As ImmutableArray(Of ISymbol) 39Private Shared Function GetMemberGroupItems(accessibleMembers As ImmutableArray(Of ISymbol),
SignatureHelp\InvocationExpressionSignatureHelpProvider.vb (3)
27Public Overrides ReadOnly Property TriggerCharacters As ImmutableArray(Of Char) = ImmutableArray.Create("("c, ","c) 29Public Overrides ReadOnly Property RetriggerCharacters As ImmutableArray(Of Char) = ImmutableArray.Create(")"c) 116Dim accessibleMembers = ImmutableArray(Of ISymbol).Empty
SignatureHelp\MidAssignmentSignatureHelpProvider.vb (2)
34Public Overrides ReadOnly Property TriggerCharacters As ImmutableArray(Of Char) = ImmutableArray.Create("("c, ","c) 36Public Overrides ReadOnly Property RetriggerCharacters As ImmutableArray(Of Char) = ImmutableArray.Create(")"c)
SignatureHelp\NameOfExpressionSignatureHelpProvider.vb (2)
23Public Overrides ReadOnly Property TriggerCharacters As ImmutableArray(Of Char) = ImmutableArray.Create("("c) 25Public Overrides ReadOnly Property RetriggerCharacters As ImmutableArray(Of Char) = ImmutableArray.Create(")"c)
SignatureHelp\ObjectCreationExpressionSignatureHelpProvider.vb (2)
26Public Overrides ReadOnly Property TriggerCharacters As ImmutableArray(Of Char) = ImmutableArray.Create("("c, ","c) 28Public Overrides ReadOnly Property RetriggerCharacters As ImmutableArray(Of Char) = ImmutableArray.Create(")"c)
SignatureHelp\PredefinedCastExpressionSignatureHelpProvider.vb (2)
36Public Overrides ReadOnly Property TriggerCharacters As ImmutableArray(Of Char) = ImmutableArray.Create("("c, ","c) 38Public Overrides ReadOnly Property RetriggerCharacters As ImmutableArray(Of Char) = ImmutableArray.Create(")"c)
SignatureHelp\RaiseEventStatementSignatureHelpProvider.vb (3)
25Public Overrides ReadOnly Property TriggerCharacters As ImmutableArray(Of Char) = ImmutableArray.Create("("c, ","c) 27Public Overrides ReadOnly Property RetriggerCharacters As ImmutableArray(Of Char) = ImmutableArray(Of Char).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\roslyn\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\roslyn\src\Analyzers\VisualBasic\Analyzers\NamingStyle\VisualBasicNamingStyleDiagnosticAnalyzer.vb (1)
14Protected Overrides ReadOnly Property SupportedSyntaxKinds As ImmutableArray(Of SyntaxKind) =
src\roslyn\src\Analyzers\VisualBasic\Analyzers\RemoveUnnecessaryCast\VisualBasicRemoveUnnecessaryCastDiagnosticAnalyzer.vb (1)
18Protected Overrides ReadOnly Property SyntaxKindsOfInterest As ImmutableArray(Of SyntaxKind) =
src\roslyn\src\Analyzers\VisualBasic\Analyzers\RemoveUnnecessaryImports\VisualBasicRemoveUnnecessaryImportsDiagnosticAnalyzer.vb (2)
37Protected Overrides Function MergeImports(unnecessaryImports As ImmutableArray(Of ImportsClauseSyntax)) As ImmutableArray(Of SyntaxNode)
src\roslyn\src\Analyzers\VisualBasic\Analyzers\UseCollectionInitializer\VisualBasicUseCollectionInitializerDiagnosticAnalyzer.vb (1)
47matches As ImmutableArray(Of CollectionMatch(Of SyntaxNode)),
src\roslyn\src\Analyzers\VisualBasic\Analyzers\UseCompoundAssignment\Utilities.vb (1)
9Public ReadOnly Kinds As ImmutableArray(Of (SyntaxKind, SyntaxKind, SyntaxKind)) =
src\roslyn\src\Analyzers\VisualBasic\Analyzers\UseInferredMemberName\VisualBasicUseInferredMemberNameDiagnosticAnalyzer.vb (2)
59additionalLocations:=ImmutableArray(Of Location).Empty, 83additionalLocations:=ImmutableArray(Of Location).Empty,
src\roslyn\src\Analyzers\VisualBasic\Analyzers\UseNullPropagation\VisualBasicUseNullPropagationDiagnosticAnalyzer.vb (1)
47ByRef trueStatements As ImmutableArray(Of ExecutableStatementSyntax)) As Boolean
src\roslyn\src\Analyzers\VisualBasic\CodeFixes\AddAnonymousTypeMemberName\VisualBasicAddAnonymousTypeMemberNameCodeFixProvider.vb (1)
27Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String) =
src\roslyn\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\roslyn\src\Analyzers\VisualBasic\CodeFixes\AddObsoleteAttribute\VisualBasicAddObsoleteAttributeCodeFixProvider.vb (1)
17Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String) =
src\roslyn\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\roslyn\src\Analyzers\VisualBasic\CodeFixes\AliasAmbiguousType\VisualBasicAliasAmbiguousTypeCodeFixProvider.vb (1)
25Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String) = ImmutableArray.Create(BC30561)
src\roslyn\src\Analyzers\VisualBasic\CodeFixes\ConvertToAsync\VisualBasicConvertToAsyncFunctionCodeFixProvider.vb (2)
22Friend ReadOnly Ids As ImmutableArray(Of String) = ImmutableArray.Create(Of String)(BC37001) 33Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String)
src\roslyn\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\roslyn\src\Analyzers\VisualBasic\CodeFixes\GenerateConstructor\GenerateConstructorCodeFixProvider.vb (2)
26Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String) 32Protected Overrides Function GetCodeActionsAsync(document As Document, node As SyntaxNode, cancellationToken As CancellationToken) As Task(Of ImmutableArray(Of CodeAction))
src\roslyn\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\roslyn\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\roslyn\src\Analyzers\VisualBasic\CodeFixes\GenerateEnumMember\GenerateEnumMemberCodeFixProvider.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\roslyn\src\Analyzers\VisualBasic\CodeFixes\GenerateParameterizedMember\GenerateConversionCodeFixProvider.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\roslyn\src\Analyzers\VisualBasic\CodeFixes\GenerateParameterizedMember\GenerateParameterizedMemberCodeFixProvider.vb (2)
47Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String) 53Protected Overrides Function GetCodeActionsAsync(document As Document, node As SyntaxNode, cancellationToken As CancellationToken) As Task(Of ImmutableArray(Of CodeAction))
src\roslyn\src\Analyzers\VisualBasic\CodeFixes\GenerateParameterizedMember\VisualBasicGenerateConversionService.vb (2)
151attributes:=ImmutableArray(Of AttributeData).Empty, 158typeParameters:=ImmutableArray(Of ITypeParameterSymbol).Empty,
src\roslyn\src\Analyzers\VisualBasic\CodeFixes\GenerateParameterizedMember\VisualBasicGenerateParameterizedMemberService.vb (10)
30Protected Overrides Function DetermineParameterNames(cancellationToken As CancellationToken) As ImmutableArray(Of ParameterName) 63Protected Overrides Function GetCapturedTypeParameters(cancellationToken As CancellationToken) As ImmutableArray(Of ITypeParameterSymbol) 75Protected Overrides Function GenerateTypeParameters(cancellationToken As CancellationToken) As ImmutableArray(Of ITypeParameterSymbol) 130Protected Overrides Function DetermineParameterModifiers(cancellationToken As CancellationToken) As ImmutableArray(Of RefKind) 133ImmutableArray(Of RefKind).Empty) 136Protected Overrides Function DetermineParameterTypes(cancellationToken As CancellationToken) As ImmutableArray(Of ITypeSymbol) 139ImmutableArray(Of ITypeSymbol).Empty) 142Protected Overrides Function DetermineParameterOptionality(cancellationToken As CancellationToken) As ImmutableArray(Of Boolean) 145ImmutableArray(Of Boolean).Empty) 166Protected Overrides Function DetermineTypeArguments(cancellationToken As CancellationToken) As ImmutableArray(Of ITypeSymbol)
src\roslyn\src\Analyzers\VisualBasic\CodeFixes\GenerateVariable\VisualBasicGenerateVariableCodeFixProvider.vb (3)
31Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String) 37Protected Overrides Async Function GetCodeActionsAsync(document As Document, node As SyntaxNode, cancellationToken As CancellationToken) As Task(Of ImmutableArray(Of CodeAction)) 45Return ImmutableArray(Of CodeAction).Empty
src\roslyn\src\Analyzers\VisualBasic\CodeFixes\ImplementInterface\VisualBasicImplementInterfaceCodeFixProvider.vb (1)
25Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String) = ImmutableArray.Create(BC30149)
src\roslyn\src\Analyzers\VisualBasic\CodeFixes\ImplementInterface\VisualBasicImplementInterfaceService.vb (1)
56ByRef interfaceTypes As ImmutableArray(Of INamedTypeSymbol)) As Boolean
src\roslyn\src\Analyzers\VisualBasic\CodeFixes\Iterator\VisualBasicChangeToYieldCodeFixProvider.vb (2)
23Friend Shared ReadOnly Ids As ImmutableArray(Of String) = ImmutableArray.Create(BC36942) 34Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String)
src\roslyn\src\Analyzers\VisualBasic\CodeFixes\Iterator\VisualBasicConvertToIteratorCodeFixProvider.vb (2)
25Friend Shared ReadOnly Ids As ImmutableArray(Of String) = ImmutableArray.Create(BC30451) 36Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String)
src\roslyn\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\roslyn\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\roslyn\src\Analyzers\VisualBasic\CodeFixes\MakeTypeAbstract\VisualBasicMakeTypeAbstractCodeFixProvider.vb (1)
22Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String) =
src\roslyn\src\Analyzers\VisualBasic\CodeFixes\MakeTypePartial\VisualBasicMakeTypePartialCodeFixProvider.vb (1)
23Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String) = ImmutableArray.Create(BC40046)
src\roslyn\src\Analyzers\VisualBasic\CodeFixes\OrderModifiers\VisualBasicOrderModifiersCodeFixProvider.vb (2)
30Protected Overrides ReadOnly Property FixableCompilerErrorIds As ImmutableArray(Of String) = 31ImmutableArray(Of String).Empty
src\roslyn\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\roslyn\src\Analyzers\VisualBasic\CodeFixes\RemoveUnnecessaryByVal\VisualBasicRemoveUnnecessaryByValCodeFixProvider.vb (2)
24Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String) = 35Protected Overrides Async Function FixAllAsync(document As Document, diagnostics As ImmutableArray(Of Diagnostic), editor As SyntaxEditor, cancellationToken As CancellationToken) As Task
src\roslyn\src\Analyzers\VisualBasic\CodeFixes\RemoveUnnecessaryCast\VisualBasicRemoveUnnecessaryCastCodeFixProvider.vb (4)
29Public NotOverridable Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String) = 53diagnostics As ImmutableArray(Of Diagnostic), 93document As Document, originalCastNodes As ImmutableArray(Of ExpressionSyntax), 115document As Document, originalNodes As ImmutableArray(Of ExpressionSyntax),
src\roslyn\src\Analyzers\VisualBasic\CodeFixes\SimplifyObjectCreation\VisualBasicSimplifyObjectCreationCodeFixProvider.vb (2)
24Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String) = ImmutableArray.Create(IDEDiagnosticIds.SimplifyObjectCreationDiagnosticId) 34Protected Overrides Async Function FixAllAsync(document As Document, diagnostics As ImmutableArray(Of Diagnostic), editor As SyntaxEditor, cancellationToken As CancellationToken) As Task
src\roslyn\src\Analyzers\VisualBasic\CodeFixes\UnsealClass\VisualBasicUnsealClassCodeFixProvider.vb (1)
23Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String) =
src\roslyn\src\Analyzers\VisualBasic\CodeFixes\UseAutoProperty\VisualBasicUseAutoPropertyCodeFixProvider.vb (2)
42Protected Overrides Function GetFormattingRules(document As Document, finalProperty As SyntaxNode) As ImmutableArray(Of AbstractFormattingRule) 46Protected Overrides Function RewriteFieldReferencesInProperty([property] As PropertyBlockSyntax, fieldLocations As ImmutableArray(Of ReferencedSymbol), cancellationToken As CancellationToken) As PropertyBlockSyntax
src\roslyn\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\roslyn\src\Analyzers\VisualBasic\CodeFixes\UseIsNotExpression\VisualBasicUseIsNotExpressionCodeFixProvider.vb (2)
24Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String) = ImmutableArray.Create(IDEDiagnosticIds.UseIsNotExpressionDiagnosticId) 33diagnostics As ImmutableArray(Of Diagnostic),
src\roslyn\src\Analyzers\VisualBasic\CodeFixes\UseObjectInitializer\VisualBasicUseObjectInitializerCodeFixProvider.vb (3)
52matches As ImmutableArray(Of Match(Of ExpressionSyntax, StatementSyntax, MemberAccessExpressionSyntax, AssignmentStatementSyntax))) As StatementSyntax 76matches As ImmutableArray(Of Match(Of ExpressionSyntax, StatementSyntax, MemberAccessExpressionSyntax, AssignmentStatementSyntax))) As ObjectCreationExpressionSyntax 87matches As ImmutableArray(Of Match(Of ExpressionSyntax, StatementSyntax, MemberAccessExpressionSyntax, AssignmentStatementSyntax))) As SeparatedSyntaxList(Of FieldInitializerSyntax)
src\roslyn\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)
39Friend Function CreateCommentsRegions(triviaList As SyntaxTriviaList) As ImmutableArray(Of BlockSpan)
TaskList\VisualBasicTaskListService.vb (1)
23commentDescriptors As ImmutableArray(Of TaskListItemDescriptor),
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)
20Private Shared ReadOnly s_wrappers As ImmutableArray(Of ISyntaxWrapper) =
Microsoft.CodeAnalysis.VisualBasic.NetAnalyzers (10)
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\BasicOverrideEqualsOnOverloadingOperatorEquals.Fixer.vb (1)
17Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String) = ImmutableArray.Create(BasicOverrideEqualsOnOverloadingOperatorEqualsAnalyzer.RuleId)
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\BasicOverrideEqualsOnOverloadingOperatorEquals.vb (1)
33Public Overrides ReadOnly Property SupportedDiagnostics As ImmutableArray(Of DiagnosticDescriptor) = ImmutableArray.Create(Rule)
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\BasicOverrideGetHashCodeOnOverridingEquals.Fixer.vb (1)
17Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String) = ImmutableArray.Create(BasicOverrideGetHashCodeOnOverridingEqualsAnalyzer.RuleId)
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\BasicOverrideGetHashCodeOnOverridingEquals.vb (1)
33Public Overrides ReadOnly Property SupportedDiagnostics As ImmutableArray(Of DiagnosticDescriptor) = ImmutableArray.Create(Rule)
Microsoft.NetCore.Analyzers\Performance\BasicUseStringMethodCharOverloadWithSingleCharacters.Fixer.vb (1)
41Protected Overrides Function GetArguments(argumentListNode As SyntaxNode) As ImmutableArray(Of SyntaxNode)
Microsoft.NetCore.Analyzers\Runtime\BasicForwardCancellationTokenToInvocations.Analyzer.vb (1)
39Protected Overrides Function ArgumentsImplicitOrNamed(cancellationTokenType As INamedTypeSymbol, arguments As ImmutableArray(Of IArgumentOperation)) As Boolean
Microsoft.NetCore.Analyzers\Runtime\BasicForwardCancellationTokenToInvocations.Fixer.vb (3)
53Protected Overrides Function TryGetExpressionAndArguments(invocationNode As SyntaxNode, ByRef expression As SyntaxNode, ByRef arguments As ImmutableArray(Of ArgumentSyntax)) As Boolean 66arguments = ImmutableArray(Of ArgumentSyntax).Empty 75Protected Overrides Function GetExpressions(newArguments As ImmutableArray(Of ArgumentSyntax)) As IEnumerable(Of SyntaxNode)
Microsoft.NetCore.Analyzers\Usage\BasicUseVolatileReadWriteFixer.vb (1)
16Protected Overrides Function GetArguments(invocationSyntax As SyntaxNode) As ImmutableArray(Of SyntaxNode)
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)
17Public 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)
30Protected Overrides Async Function GetRewriterAsync(document As Document, root As SyntaxNode, spans As ImmutableArray(Of TextSpan), cancellationToken As CancellationToken) As Task(Of Rewriter) 39Private Sub New(semanticModel As SemanticModel, spans As ImmutableArray(Of TextSpan), cancellationToken As CancellationToken) 45Public 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)
39Protected Overrides Function GetRewriterAsync(document As Document, root As SyntaxNode, spans As ImmutableArray(Of TextSpan), cancellationToken As CancellationToken) As Task(Of Rewriter) 49spans As ImmutableArray(Of TextSpan), 56Public 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)
1501Friend Overrides Function GetTypeInheritance(declaration As SyntaxNode) As ImmutableArray(Of SyntaxNode) 1504Return ImmutableArray(Of SyntaxNode).Empty 2580explicitInterfaceImplementations As ImmutableArray(Of ISymbol),
FindSymbols\VisualBasicDeclaredSymbolInfoFactoryService.vb (11)
41Private Shared Function GetInheritanceNames(stringTable As StringTable, typeBlock As TypeBlockSyntax) As ImmutableArray(Of String) 194ImmutableArray(Of String).Empty, 231ImmutableArray(Of String).Empty, 249ImmutableArray(Of String).Empty)) 263ImmutableArray(Of String).Empty)) 277ImmutableArray(Of String).Empty)) 293ImmutableArray(Of String).Empty, 311ImmutableArray(Of String).Empty)) 329ImmutableArray(Of String).Empty)) 517Protected Overrides Function TryGetAliasesFromUsingDirective(importStatement As ImportsStatementSyntax, ByRef aliases As ImmutableArray(Of (aliasName As String, name As String))) As Boolean 546Private 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))
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)
45Private ReadOnly _possibleNameConflicts As ImmutableArray(Of String) 690cancellationToken As CancellationToken) As Task(Of ImmutableArray(Of Location)) 810cancellationToken As CancellationToken) As Task(Of ImmutableArray(Of Location)) 835Return ImmutableArray(Of Location).Empty 913cancellationToken As CancellationToken) As ImmutableArray(Of Location) 924Return ImmutableArray(Of Location).Empty 930Return ImmutableArray(Of Location).Empty 977Return 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\45a5dce26ceffa63\VisualBasicUnnecessaryImportsProvider.vb (1)
27cancellationToken As CancellationToken) As ImmutableArray(Of ImportsClauseSyntax)
src\f736901a33c2b55b\VisualBasicTypeInferenceService.TypeInferrer.vb (1)
386parameterizedSymbols As IEnumerable(Of ImmutableArray(Of IParameterSymbol))) As IEnumerable(Of TypeInferenceInfo)
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\SyntaxNodeExtensions.vb (4)
439Public Function GetLeadingBlankLines(Of TSyntaxNode As SyntaxNode)(node As TSyntaxNode) As ImmutableArray(Of SyntaxTrivia) 449Public Function GetNodeWithoutLeadingBlankLines(Of TSyntaxNode As SyntaxNode)(node As TSyntaxNode, ByRef strippedTrivia As ImmutableArray(Of SyntaxTrivia)) As TSyntaxNode 454Public Function GetLeadingBannerAndPreprocessorDirectives(Of TSyntaxNode As SyntaxNode)(node As TSyntaxNode) As ImmutableArray(Of SyntaxTrivia) 464Public Function GetNodeWithoutLeadingBannerAndPreprocessorDirectives(Of TSyntaxNode As SyntaxNode)(node As TSyntaxNode, ByRef strippedTrivia As ImmutableArray(Of SyntaxTrivia)) As TSyntaxNode
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Formatting\Engine\VisualBasicFormatEngine.vb (1)
17formattingRules As ImmutableArray(Of AbstractFormattingRule),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Formatting\VisualBasicSyntaxFormatting.vb (3)
18Private ReadOnly _rules As ImmutableArray(Of AbstractFormattingRule) = ImmutableArray.Create(Of AbstractFormattingRule)( 26Public Overrides Function GetDefaultFormattingRules() As ImmutableArray(Of AbstractFormattingRule) 44Protected 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
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Indentation\VisualBasicSmartTokenFormatter.vb (2)
20Private ReadOnly _formattingRules As ImmutableArray(Of AbstractFormattingRule) 25formattingRules As ImmutableArray(Of AbstractFormattingRule),
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Services\SemanticFacts\VisualBasicSemanticFacts.vb (8)
210Public Function GetDeconstructionAssignmentMethods(model As SemanticModel, deconstruction As SyntaxNode) As ImmutableArray(Of IMethodSymbol) Implements ISemanticFacts.GetDeconstructionAssignmentMethods 211Return ImmutableArray(Of IMethodSymbol).Empty 214Public Function GetDeconstructionForEachMethods(model As SemanticModel, deconstruction As SyntaxNode) As ImmutableArray(Of IMethodSymbol) Implements ISemanticFacts.GetDeconstructionForEachMethods 215Return ImmutableArray(Of IMethodSymbol).Empty 263Public Function GetBestOrAllSymbols(semanticModel As SemanticModel, node As SyntaxNode, token As SyntaxToken, cancellationToken As CancellationToken) As ImmutableArray(Of ISymbol) Implements ISemanticFacts.GetBestOrAllSymbols 265Return ImmutableArray(Of ISymbol).Empty 278Public Function GetLocalFunctionSymbols(compilation As Compilation, symbol As ISymbol, cancellationToken As CancellationToken) As ImmutableArray(Of IMethodSymbol) Implements ISemanticFacts.GetLocalFunctionSymbols 279Return ImmutableArray(Of IMethodSymbol).Empty
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Services\SyntaxFacts\VisualBasicSyntaxFacts.vb (1)
1395Public Function GetMatchingConditionalDirectives(directive As SyntaxNode, cancellationToken As CancellationToken) As ImmutableArray(Of SyntaxNode) Implements ISyntaxFacts.GetMatchingConditionalDirectives
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Utilities\ImportsOrganizer.vb (1)
80Dim leadingTrivia As ImmutableArray(Of SyntaxTrivia) = Nothing
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeFixesAndRefactorings\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)
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\ParameterGenerator.vb (1)
13Public Shared Function GenerateParameterList(parameterDefinitions As ImmutableArray(Of IParameterSymbol), options As CodeGenerationContextInfo) As ParameterListSyntax
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\TypeParameterGenerator.vb (1)
10Public Shared Function GenerateTypeParameterList(typeParameters As ImmutableArray(Of ITypeParameterSymbol)) As TypeParameterListSyntax
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\VisualBasicCodeGenerationService.vb (1)
510Dim strippedTrivia As ImmutableArray(Of SyntaxTrivia) = Nothing
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Editing\VisualBasicImportAdder.vb (3)
40Protected Overrides Function AddPotentiallyConflictingImportsAsync(model As SemanticModel, container As SyntaxNode, namespaceSymbols As ImmutableArray(Of INamespaceSymbol), conflicts As HashSet(Of INamespaceSymbol), cancellationToken As CancellationToken) As Task 88namespaceSymbols As ImmutableArray(Of INamespaceSymbol)) 99Private Sub AddImportedMembers(namespaceSymbols As ImmutableArray(Of INamespaceSymbol))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\SemanticModelExtensions.vb (7)
20cancellationToken As CancellationToken) As ImmutableArray(Of ParameterName) 22Return ImmutableArray(Of ParameterName).Empty 34cancellationToken As CancellationToken) As ImmutableArray(Of ParameterName) 46cancellationToken As CancellationToken) As ImmutableArray(Of ParameterName) 48Return ImmutableArray(Of ParameterName).Empty 68cancellationToken As CancellationToken) As ImmutableArray(Of ParameterName) 70Return ImmutableArray(Of ParameterName).Empty
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\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
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\LanguageServices\VisualBasicAddImportsService.vb (1)
49CancellationToken As CancellationToken) As ImmutableArray(Of SyntaxNode)
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\LanguageServices\VisualBasicSyntaxFactsService.vb (1)
38Public Function GetSelectedFieldsAndPropertiesAsync(tree As SyntaxTree, textSpan As TextSpan, allowPartialSelection As Boolean, cancellationToken As CancellationToken) As Task(Of ImmutableArray(Of SyntaxNode)) Implements ISyntaxFactsService.GetSelectedFieldsAndPropertiesAsync
Workspace\LanguageServices\VisualBasicCompilationFactoryService.vb (2)
65generators As ImmutableArray(Of ISourceGenerator), 67additionalTexts As ImmutableArray(Of AdditionalText),
Microsoft.CodeAnalysis.Workspaces (2703)
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)
27private Func<SyntaxNode, ImmutableArray<ISyntaxClassifier>>? _getNodeClassifiers; 28private Func<SyntaxToken, ImmutableArray<ISyntaxClassifier>>? _getTokenClassifiers; 34Document document, ImmutableArray<TextSpan> textSpans, ClassificationOptions options, SegmentedList<ClassifiedSpan> result, CancellationToken cancellationToken) 40Document document, ImmutableArray<TextSpan> textSpans, ClassificationOptions options, SegmentedList<ClassifiedSpan> result, CancellationToken cancellationToken) 47ImmutableArray<TextSpan> textSpans, 108ImmutableArray<TextSpan> textSpans, 138ImmutableArray<TextSpan> textSpans, 156var reassignedVariableSpans = await reassignedVariableService.GetLocationsAsync(document, textSpans, cancellationToken).ConfigureAwait(false); 164var obsoleteSymbolSpans = await obsoleteSymbolService.GetLocationsAsync(document, textSpans, cancellationToken).ConfigureAwait(false); 185(Func<SyntaxNode, ImmutableArray<ISyntaxClassifier>>, Func<SyntaxToken, ImmutableArray<ISyntaxClassifier>>) GetExtensionClassifiers( 191var classifiers = classificationService.GetDefaultSyntaxClassifiers(); 201public async Task AddSyntacticClassificationsAsync(Document document, ImmutableArray<TextSpan> textSpans, SegmentedList<ClassifiedSpan> result, CancellationToken cancellationToken) 208SolutionServices 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 (4)
24/// cref="ImmutableArray{T}.IsDefault"/> will be returned if this fails. 29public static async Task<ImmutableArray<ClassifiedSpan>> GetClassifiedSpansAsync( 47/// cref="ImmutableArray{T}.IsDefault"/> will be returned if this fails. 59ImmutableArray<TextSpan> spans,
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)
19public abstract void AddSyntacticClassifications(SyntaxNode root, ImmutableArray<TextSpan> textSpans, SegmentedList<ClassifiedSpan> result, CancellationToken cancellationToken); 21public abstract ImmutableArray<ISyntaxClassifier> GetDefaultSyntaxClassifiers(); 27ImmutableArray<TextSpan> textSpans, 29Func<SyntaxNode, ImmutableArray<ISyntaxClassifier>> getNodeClassifiers, 30Func<SyntaxToken, ImmutableArray<ISyntaxClassifier>> getTokenClassifiers, 49ImmutableArray<TextSpan> textSpans, 50Func<SyntaxNode, ImmutableArray<ISyntaxClassifier>> getNodeClassifiers, 51Func<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_Cleanup.cs (10)
47private static readonly ImmutableArray<Func<Document, CodeCleanupOptions, CancellationToken, Task<Document>>> s_cleanupSyntaxPasses = [s_cleanupSyntaxPass]; 53private static readonly ImmutableArray<Func<Document, CodeCleanupOptions, CancellationToken, Task<Document>>> s_allCleanupPasses = 74internal static ImmutableArray<DocumentId> GetAllChangedOrAddedDocumentIds( 114ImmutableArray<Func<Document, CodeCleanupOptions, CancellationToken, Task<Document>>> passes, 117var documentIds = GetAllChangedOrAddedDocumentIds(originalSolution, changedSolution); 118var documentIdsAndOptionsToClean = await GetDocumentIdsAndOptionsToCleanAsync().ConfigureAwait(false); 126async Task<ImmutableArray<(DocumentId documentId, CodeCleanupOptions codeCleanupOptions)>> GetDocumentIdsAndOptionsToCleanAsync() 165ImmutableArray<(DocumentId documentId, CodeCleanupOptions options)> documentIdsAndOptions, 167ImmutableArray<Func<Document, CodeCleanupOptions, CancellationToken, Task<Document>>> passes, 187var changedRoots = await ProducerConsumer<(DocumentId documentId, SyntaxNode newRoot)>.RunParallelAsync(
CodeActions\CodeAction.cs (25)
59private protected static ImmutableArray<string> RequiresNonDocumentChangeTags = [RequiresNonDocumentChange]; 150public virtual ImmutableArray<string> Tags => []; 155/// actions, use <see cref="Create(string, ImmutableArray{CodeAction}, bool)"/>. 157public virtual ImmutableArray<CodeAction> NestedActions 164internal virtual ImmutableArray<CodeAction> AdditionalPreviewFlavors => []; 169internal ImmutableArray<CodeAction> NestedCodeActions 179/// cref="Create(string, ImmutableArray{CodeAction}, bool)"/>. 186internal ImmutableArray<string> CustomTags { get; set; } = []; 232public Task<ImmutableArray<CodeActionOperation>> GetOperationsAsync(CancellationToken cancellationToken) 238public Task<ImmutableArray<CodeActionOperation>> GetOperationsAsync( 244private protected virtual async Task<ImmutableArray<CodeActionOperation>> GetOperationsCoreAsync( 247var operations = await this.ComputeOperationsAsync(progress, cancellationToken).ConfigureAwait(false); 260public Task<ImmutableArray<CodeActionOperation>> GetPreviewOperationsAsync(CancellationToken cancellationToken) 263internal async Task<ImmutableArray<CodeActionOperation>> GetPreviewOperationsAsync( 298protected virtual async Task<ImmutableArray<CodeActionOperation>> ComputeOperationsAsync( 422protected Task<ImmutableArray<CodeActionOperation>> PostProcessAsync(IEnumerable<CodeActionOperation> operations, CancellationToken cancellationToken) 426internal async Task<ImmutableArray<CodeActionOperation>> PostProcessAsync( 559public static CodeAction Create(string title, ImmutableArray<CodeAction> nestedActions, bool isInlinable) 562/// <inheritdoc cref="Create(string, ImmutableArray{CodeAction}, bool)"/> 565public static CodeAction Create(string title, ImmutableArray<CodeAction> nestedActions, bool isInlinable, CodeActionPriority priority = CodeActionPriority.Default) 600ImmutableArray<CodeAction> nestedActions, 613ImmutableArray<CodeAction> nestedActions, 622ImmutableArray<CodeAction> nestedActions, 629public sealed override ImmutableArray<CodeAction> NestedActions { get; } 631private static string? ComputeEquivalenceKey(ImmutableArray<CodeAction> nestedActions)
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 async Task<SyntaxNode> CleanupAsync(SyntaxNode root, ImmutableArray<TextSpan> spans, SyntaxFormattingOptions options, SolutionServices services, CancellationToken cancellationToken)
CodeFixes\CodeFix.cs (2)
24public readonly ImmutableArray<Diagnostic> Diagnostics; 26public CodeFix(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)
19private protected ImmutableArray<string> CustomTags = []; 24public abstract ImmutableArray<string> FixableDiagnosticIds { get; }
CodeFixes\FixAllOccurrences\BatchFixAllProvider.cs (13)
39ImmutableArray<FixAllContext> fixAllContexts) 86private static async Task<ImmutableDictionary<Document, ImmutableArray<Diagnostic>>> DetermineDiagnosticsAsync(FixAllContext fixAllContext, IProgress<CodeAnalysisProgress> progressTracker) 110ImmutableDictionary<Document, ImmutableArray<Diagnostic>> documentToDiagnostics) 116var orderedDiagnostics = documentToDiagnostics.SelectMany(kvp => kvp.Value) 123var allChangedDocumentsInDiagnosticsOrder = 136private static async Task<ImmutableArray<Document>> GetAllChangedDocumentsInDiagnosticsOrderAsync( 137FixAllContext fixAllContext, ImmutableArray<Diagnostic> orderedDiagnostics) 144using var _1 = ArrayBuilder<Task<ImmutableArray<Document>>>.GetInstance(out var tasks); 198ImmutableArray<Document> allChangedDocumentsInDiagnosticsOrder, 210var allDocChanges = group.ToImmutableArray(); 229private static Action<CodeAction, ImmutableArray<Diagnostic>> GetRegisterCodeFixAction( 253ImmutableArray<(DocumentId documentId, TextChangeMerger merger)> docIdsAndMerger, 256var docIdsAndTexts = await docIdsAndMerger.SelectAsArrayAsync(async t => (t.documentId, await t.merger.GetFinalMergedTextAsync(cancellationToken).ConfigureAwait(false))).ConfigureAwait(false);
CodeFixes\FixAllOccurrences\DocumentBasedFixAllProvider.cs (5)
25/// cref="FixAllAsync(FixAllContext, Document, ImmutableArray{Diagnostic})"/> for implementors to process. 27public abstract class DocumentBasedFixAllProvider(ImmutableArray<FixAllScope> supportedFixAllScopes) : FixAllProvider 29private readonly ImmutableArray<FixAllScope> _supportedFixAllScopes = supportedFixAllScopes; 57protected abstract Task<Document?> FixAllAsync(FixAllContext fixAllContext, Document document, ImmutableArray<Diagnostic> diagnostics); 66private Task<Solution?> FixAllContextsHelperAsync(FixAllContext originalFixAllContext, ImmutableArray<FixAllContext> fixAllContexts)
CodeFixes\FixAllOccurrences\FixAllContext.cs (8)
222public async Task<ImmutableArray<Diagnostic>> GetDocumentDiagnosticsAsync(Document document) 238private static async Task<ImmutableArray<Diagnostic>> GetFilteredDiagnosticsAsync( 259internal async Task<ImmutableArray<Diagnostic>> GetDocumentSpanDiagnosticsAsync(Document document, TextSpan filterSpan) 280public Task<ImmutableArray<Diagnostic>> GetProjectDiagnosticsAsync(Project project) 294public Task<ImmutableArray<Diagnostic>> GetAllDiagnosticsAsync(Project project) 309private async Task<ImmutableArray<Diagnostic>> GetProjectDiagnosticsAsync(Project project, bool includeAllDocumentDiagnostics) 344internal Task<ImmutableDictionary<Document, ImmutableArray<Diagnostic>>> GetDocumentDiagnosticsToFixAsync() 347internal 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\FixAllProvider.cs (9)
21private protected static ImmutableArray<FixAllScope> DefaultSupportedFixAllScopes 55public static FixAllProvider Create(Func<FixAllContext, Document, ImmutableArray<Diagnostic>, Task<Document?>> fixAllAsync) 75Func<FixAllContext, Document, ImmutableArray<Diagnostic>, Task<Document?>> fixAllAsync, 76ImmutableArray<FixAllScope> supportedFixAllScopes) 82Func<FixAllContext, Document, ImmutableArray<Diagnostic>, Task<Document?>> fixAllAsync, 83ImmutableArray<FixAllScope> supportedFixAllScopes, 104Func<FixAllContext, Document, ImmutableArray<Diagnostic>, Task<Document?>> fixAllAsync, 105ImmutableArray<FixAllScope> supportedFixAllScopes, 110protected override Task<Document?> FixAllAsync(FixAllContext context, Document document, ImmutableArray<Diagnostic> diagnostics)
CodeFixes\FixAllOccurrences\FixAllState.cs (4)
64ImmutableDictionary<Document, ImmutableArray<Diagnostic>> diagnosticsToFix, 86ImmutableDictionary<Project, ImmutableArray<Diagnostic>> diagnosticsToFix, 105private static ImmutableHashSet<string> GetDiagnosticsIds(IEnumerable<ImmutableArray<Diagnostic>> diagnosticsCollection) 108foreach (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)
49var currentChanges = await _differenceService.GetTextChangesAsync( 64public async Task TryMergeChangesAsync(ImmutableArray<Document> newDocuments, CancellationToken cancellationToken) 83ImmutableArray<TextChange> currentChanges) 96ImmutableArray<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) 52Func<TFixAllContext, ImmutableArray<TFixAllContext>, Task<Solution?>> fixAllContextsAsync) 58Func<TFixAllContext, ImmutableArray<TFixAllContext>, Task<Solution?>> fixAllContextsAsync) 64Func<TFixAllContext, ImmutableArray<TFixAllContext>, Task<Solution?>> fixAllContextsAsync)
CodeFixesAndRefactorings\DocumentBasedFixAllProviderHelpers.cs (5)
25ImmutableArray<TFixAllContext> fixAllContexts, 53var cleanedTexts = await CodeAction.GetAllChangedOrAddedDocumentIds(originalSolution, cleanedSolution) 67var changedRootsAndTexts = await ProducerConsumer<(DocumentId documentId, (SyntaxNode? node, SourceText? text))>.RunParallelAsync( 102var changedRoots = changedRootsAndTexts.SelectAsArray(t => t.Item2.node != null, t => (t.documentId, t.Item2.node!)); 103var changedTexts = changedRootsAndTexts.SelectAsArray(t => t.Item2.text != null, t => (t.documentId, t.Item2.text!));
CodeFixesAndRefactorings\EnumArrayConverter.cs (1)
12public static ImmutableArray<TEnum> FromStringArray<TEnum>(string[] strings) where TEnum : struct, Enum
CodeFixesAndRefactorings\FixAllLogger.cs (2)
155public static void LogDiagnosticsStats(int correlationId, ImmutableDictionary<Document, ImmutableArray<Diagnostic>> documentsAndDiagnosticsToFixMap) 165public static void LogDiagnosticsStats(int correlationId, ImmutableDictionary<Project, ImmutableArray<Diagnostic>> projectsAndDiagnosticsToFixMap)
CodeFixesAndRefactorings\FixAllProviderInfo.cs (10)
19public readonly ImmutableArray<FixAllScope> SupportedScopes; 23ImmutableArray<FixAllScope> supportedScopes) 55var diagnosticIds = fixAllProvider.GetSupportedFixAllDiagnosticIds(provider).ToImmutableArrayOrEmpty(); 59var scopes = fixAllProvider.GetSupportedFixAllScopes().ToImmutableArrayOrEmpty(); 75var scopes = refactorAllProvider.GetSupportedRefactorAllScopes().ToImmutableArrayOrEmpty(); 91var scopes = fixAllProvider.GetSupportedFixAllScopes().ToImmutableArrayOrEmpty(); 102ImmutableArray<string> supportedDiagnosticIds, 103ImmutableArray<FixAllScope> supportedScopes) : FixAllProviderInfo(fixAllProvider, supportedScopes) 112ImmutableArray<FixAllScope> supportedScopes) 123ImmutableArray<RefactorAllScope> supportedScopes)
CodeRefactorings\CodeRefactoringProvider.cs (1)
19private protected ImmutableArray<string> CustomTags = [];
CodeRefactorings\FixAllOccurences\DocumentBasedRefactorAllProvider.cs (4)
28internal abstract class DocumentBasedRefactorAllProvider(ImmutableArray<RefactorAllScope> supportedRefactorAllScopes) 31private readonly ImmutableArray<RefactorAllScope> _supportedRefactorAllScopes = supportedRefactorAllScopes; 60RefactorAllContext refactorAllContext, Document document, Optional<ImmutableArray<TextSpan>> refactorAllSpans); 69private Task<Solution?> RefactorAllContextsHelperAsync(RefactorAllContext originalRefactorAllContext, ImmutableArray<RefactorAllContext> refactorAllContexts)
CodeRefactorings\FixAllOccurences\RefactorAllContext.cs (1)
99public Task<ImmutableDictionary<Document, Optional<ImmutableArray<TextSpan>>>> GetRefactorAllSpansAsync(CancellationToken cancellationToken)
CodeRefactorings\FixAllOccurences\RefactorAllProvider.cs (9)
25private protected static ImmutableArray<RefactorAllScope> DefaultSupportedRefactorAllScopes 55public static RefactorAllProvider Create(Func<RefactorAllContext, Document, Optional<ImmutableArray<TextSpan>>, Task<Document?>> refactorAllAsync) 74Func<RefactorAllContext, Document, Optional<ImmutableArray<TextSpan>>, Task<Document?>> refactorAllAsync, 75ImmutableArray<RefactorAllScope> supportedRefactorAllScopes) 81Func<RefactorAllContext, Document, Optional<ImmutableArray<TextSpan>>, Task<Document?>> refactorAllAsync, 82ImmutableArray<RefactorAllScope> supportedRefactorAllScopes, 98Func<RefactorAllContext, Document, Optional<ImmutableArray<TextSpan>>, Task<Document?>> refactorAllAsync, 99ImmutableArray<RefactorAllScope> supportedRefactorAllScopes, 104protected override Task<Document?> RefactorAllAsync(RefactorAllContext context, Document document, Optional<ImmutableArray<TextSpan>> refactorAllSpans)
CodeRefactorings\FixAllOccurences\RefactorAllState.cs (5)
89internal async Task<ImmutableDictionary<Document, Optional<ImmutableArray<TextSpan>>>> GetRefactorAllSpansAsync(CancellationToken cancellationToken) 98return ImmutableDictionary<Document, Optional<ImmutableArray<TextSpan>>>.Empty; 102return spansByDocument.Select(kvp => KeyValuePair.Create(kvp.Key, new Optional<ImmutableArray<TextSpan>>(kvp.Value))) 119return ImmutableDictionary<Document, Optional<ImmutableArray<TextSpan>>>.Empty; 122return documentsToRefactor.ToImmutableDictionary(d => d, _ => default(Optional<ImmutableArray<TextSpan>>));
CodeRefactorings\SyntaxEditorBasedCodeRefactoringProvider.cs (6)
18protected static readonly ImmutableArray<RefactorAllScope> DefaultRefactorAllScopes = [RefactorAllScope.Document, RefactorAllScope.Project, RefactorAllScope.Solution]; 19protected static readonly ImmutableArray<RefactorAllScope> AllRefactorAllScopes = [RefactorAllScope.Document, RefactorAllScope.Project, RefactorAllScope.Solution, RefactorAllScope.ContainingType, RefactorAllScope.ContainingMember]; 21protected abstract ImmutableArray<RefactorAllScope> SupportedRefactorAllScopes { get; } 49Optional<ImmutableArray<TextSpan>> refactorAllSpans, 59var spans = refactorAllSpans.HasValue ? refactorAllSpans.Value : [editor.OriginalRoot.FullSpan]; 80ImmutableArray<TextSpan> refactorAllSpans,
Diagnostics\AbstractDiagnosticPropertiesService.cs (1)
22var assemblyIds = compilation.GetUnreferencedAssemblyIdentities(diagnostic);
Diagnostics\DiagnosticAnalysisResult.cs (23)
29private readonly ImmutableDictionary<DocumentId, ImmutableArray<DiagnosticData>> _syntaxLocals; 34private readonly ImmutableDictionary<DocumentId, ImmutableArray<DiagnosticData>> _semanticLocals; 39private readonly ImmutableDictionary<DocumentId, ImmutableArray<DiagnosticData>> _nonLocals; 44private readonly ImmutableArray<DiagnosticData> _others; 48ImmutableDictionary<DocumentId, ImmutableArray<DiagnosticData>> syntaxLocals, 49ImmutableDictionary<DocumentId, ImmutableArray<DiagnosticData>> semanticLocals, 50ImmutableDictionary<DocumentId, ImmutableArray<DiagnosticData>> nonLocals, 51ImmutableArray<DiagnosticData> others) 70syntaxLocals: ImmutableDictionary<DocumentId, ImmutableArray<DiagnosticData>>.Empty, 71semanticLocals: ImmutableDictionary<DocumentId, ImmutableArray<DiagnosticData>>.Empty, 72nonLocals: ImmutableDictionary<DocumentId, ImmutableArray<DiagnosticData>>.Empty, 78ImmutableDictionary<DocumentId, ImmutableArray<DiagnosticData>> syntaxLocalMap, 79ImmutableDictionary<DocumentId, ImmutableArray<DiagnosticData>> semanticLocalMap, 80ImmutableDictionary<DocumentId, ImmutableArray<DiagnosticData>> nonLocalMap, 81ImmutableArray<DiagnosticData> others) 105private ImmutableDictionary<DocumentId, ImmutableArray<DiagnosticData>>? GetMap(AnalysisKind kind) 114public ImmutableArray<DiagnosticData> GetAllDiagnostics() 132public ImmutableArray<DiagnosticData> GetDocumentDiagnostics(DocumentId documentId, AnalysisKind kind) 137return map.TryGetValue(documentId, out var diagnostics) ? diagnostics : []; 140public ImmutableArray<DiagnosticData> GetOtherDiagnostics() 151semanticLocals: ImmutableDictionary<DocumentId, ImmutableArray<DiagnosticData>>.Empty, 152nonLocals: ImmutableDictionary<DocumentId, ImmutableArray<DiagnosticData>>.Empty, 156private static void VerifyDocumentMap(Project project, ImmutableDictionary<DocumentId, ImmutableArray<DiagnosticData>> map)
Diagnostics\DiagnosticAnalysisResultBuilder.cs (13)
29public readonly ImmutableDictionary<DocumentId, ImmutableArray<DiagnosticData>> SyntaxLocals => Convert(_lazySyntaxLocals); 30public readonly ImmutableDictionary<DocumentId, ImmutableArray<DiagnosticData>> SemanticLocals => Convert(_lazySemanticLocals); 31public readonly ImmutableDictionary<DocumentId, ImmutableArray<DiagnosticData>> NonLocals => Convert(_lazyNonLocals); 32public readonly ImmutableArray<DiagnosticData> Others => _lazyOthers == null ? [] : [.. _lazyOthers]; 34public void AddExternalSyntaxDiagnostics(DocumentId documentId, ImmutableArray<Diagnostic> diagnostics) 39public void AddExternalSemanticDiagnostics(DocumentId documentId, ImmutableArray<Diagnostic> diagnostics) 48ref Dictionary<DocumentId, List<DiagnosticData>>? lazyLocals, DocumentId documentId, ImmutableArray<Diagnostic> diagnostics) 108public void AddSyntaxDiagnostics(SyntaxTree tree, ImmutableArray<Diagnostic> diagnostics) 114public void AddSemanticDiagnostics(SyntaxTree tree, ImmutableArray<Diagnostic> diagnostics) 117public void AddCompilationDiagnostics(ImmutableArray<Diagnostic> diagnostics) 180ref Dictionary<DocumentId, List<DiagnosticData>>? lazyLocals, SyntaxTree? tree, ImmutableArray<Diagnostic> diagnostics) 186private static ImmutableDictionary<DocumentId, ImmutableArray<DiagnosticData>> Convert(Dictionary<DocumentId, List<DiagnosticData>>? map) 189? 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; 70public ImmutableArray<DiagnosticDescriptor> GetDiagnosticDescriptors(DiagnosticAnalyzer analyzer) 76public ImmutableArray<SuppressionDescriptor> GetDiagnosticSuppressions(DiagnosticSuppressor suppressor) 83public ImmutableArray<DiagnosticDescriptor> GetNonCompilationEndDiagnosticDescriptors(DiagnosticAnalyzer analyzer) 95public ImmutableArray<DiagnosticDescriptor> GetCompilationEndDiagnosticDescriptors(DiagnosticAnalyzer analyzer) 124ImmutableArray<DiagnosticDescriptor> descriptors; 147ImmutableArray<SuppressionDescriptor> suppressions; 163private static bool IsTelemetryCollectionAllowed(DiagnosticAnalyzer analyzer, ImmutableArray<DiagnosticDescriptor> descriptors) 168private void PopulateIdToDescriptorMap(ImmutableArray<DiagnosticDescriptor> descriptors)
Diagnostics\DiagnosticData.cs (11)
30ImmutableArray<string> customTags, 34ImmutableArray<DiagnosticDataLocation> additionalLocations = default, 63public readonly ImmutableArray<string> CustomTags = customTags; 75public readonly ImmutableArray<DiagnosticDataLocation> AdditionalLocations = additionalLocations.NullToEmpty(); 101public DiagnosticData WithLocations(DiagnosticDataLocation location, ImmutableArray<DiagnosticDataLocation> additionalLocations) 106public DiagnosticData WithCustomTags(ImmutableArray<string> customTags) 159var additionalLocations = await AdditionalLocations.ConvertLocationsAsync(project, cancellationToken).ConfigureAwait(false); 164public Diagnostic ToDiagnostic(Location location, ImmutableArray<Location> additionalLocations) 233var additionalLocations = GetAdditionalLocations(document, diagnostic); 259ImmutableArray<DiagnosticDataLocation> additionalLocations, 288private static ImmutableArray<DiagnosticDataLocation> GetAdditionalLocations(TextDocument document, Diagnostic diagnostic)
Diagnostics\DiagnosticDescriptorData.cs (2)
22ImmutableArray<string> customTags) 41public readonly ImmutableArray<string> CustomTags = customTags;
Diagnostics\DocumentAnalysisScope.cs (3)
24ImmutableArray<DiagnosticAnalyzer> analyzers, 40public ImmutableArray<DiagnosticAnalyzer> Analyzers { get; } 60public DocumentAnalysisScope WithAnalyzers(ImmutableArray<DiagnosticAnalyzer> analyzers)
Diagnostics\DocumentDiagnosticAnalyzer.cs (2)
19public virtual async Task<ImmutableArray<Diagnostic>> AnalyzeSyntaxAsync(TextDocument textDocument, SyntaxTree? tree, CancellationToken cancellationToken) 22public virtual async Task<ImmutableArray<Diagnostic>> AnalyzeSemanticsAsync(TextDocument textDocument, SyntaxTree? tree, CancellationToken cancellationToken)
Diagnostics\Extensions.cs (20)
28public static async Task<ImmutableArray<Diagnostic>> ToDiagnosticsAsync(this IEnumerable<DiagnosticData> diagnostics, Project project, CancellationToken cancellationToken) 39public static ValueTask<ImmutableArray<Location>> ConvertLocationsAsync(this IReadOnlyCollection<DiagnosticDataLocation> locations, Project project, CancellationToken cancellationToken) 107ImmutableArray<Diagnostic> additionalPragmaSuppressionDiagnostics, 110ImmutableArray<DiagnosticAnalyzer> analyzers, 146var diagnosticIdsToFilter = skippedAnalyzersInfo.FilteredDiagnosticIdsForAnalyzers.GetValueOrDefault( 156ImmutableDictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>>? diagnosticsByAnalyzerMap; 223var diagnostics = additionalPragmaSuppressionDiagnostics.WhereAsArray(d => d.Location.SourceTree == treeToAnalyze); 247ImmutableDictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>> diagnosticsByAnalyzer, 253ImmutableArray<string> diagnosticIdsToFilter) 255if (diagnosticsByAnalyzer.TryGetValue(analyzer, out var diagnostics)) 263ImmutableArray<Diagnostic> diagnostics, 269ImmutableArray<string> diagnosticIdsToFilter) 310public static ImmutableArray<Diagnostic> Filter( 311this ImmutableArray<Diagnostic> diagnostics, 312ImmutableArray<string> diagnosticIdsToFilter, 412public static async Task<ImmutableArray<Diagnostic>> GetSourceGeneratorDiagnosticsAsync(Project project, CancellationToken cancellationToken) 418var result = await remoteHostClient.TryInvokeAsync<IRemoteDiagnosticAnalyzerService, ImmutableArray<DiagnosticData>>( 432public static ImmutableArray<DiagnosticData> ConvertToLocalDiagnostics(ImmutableArray<Diagnostic> diagnostics, TextDocument targetTextDocument, TextSpan? span = null) 459var documentIds = targetTextDocument.Project.Solution.GetDocumentIdsWithFilePath(lineSpan.Path);
Diagnostics\FileContentLoadAnalyzer.cs (2)
23public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics 28public override async Task<ImmutableArray<Diagnostic>> AnalyzeSyntaxAsync(
Diagnostics\GeneratorDiagnosticsPlaceholderAnalyzer.cs (3)
24public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => []; 28public override async Task<ImmutableArray<Diagnostic>> AnalyzeSemanticsAsync(TextDocument textDocument, SyntaxTree? tree, CancellationToken cancellationToken) 32var diagnostics = await Extensions.GetSourceGeneratorDiagnosticsAsync(project, cancellationToken).ConfigureAwait(false);
Diagnostics\HostDiagnosticAnalyzers.cs (28)
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) 83ImmutableArray<Project> projects) 100foreach (var descriptors in descriptorsPerReference.Values) 112public ImmutableDictionary<string, ImmutableArray<DiagnosticDescriptor>> GetDiagnosticDescriptorsPerReference( 127private static ImmutableDictionary<string, ImmutableArray<DiagnosticDescriptor>> ConvertReferenceIdentityToName( 128ImmutableDictionary<object, ImmutableArray<DiagnosticDescriptor>> descriptorsPerReference, 131var builder = ImmutableDictionary.CreateBuilder<string, ImmutableArray<DiagnosticDescriptor>>(); 143if (builder.TryGetValue(displayName, out var existing)) 159public ImmutableDictionary<object, ImmutableArray<DiagnosticAnalyzer>> CreateDiagnosticAnalyzersPerReference(Project project) 171public ImmutableDictionary<object, ImmutableArray<DiagnosticAnalyzer>> CreateProjectDiagnosticAnalyzersPerReference(ProjectState project) 174public ImmutableDictionary<object, ImmutableArray<DiagnosticAnalyzer>> CreateProjectDiagnosticAnalyzersPerReference(IReadOnlyList<AnalyzerReference> projectAnalyzerReferences, string language) 194private static ImmutableDictionary<object, ImmutableArray<DiagnosticDescriptor>> CreateDiagnosticDescriptorsPerReference( 196ImmutableDictionary<object, ImmutableArray<DiagnosticAnalyzer>> analyzersMap) 198var builder = ImmutableDictionary.CreateBuilder<object, ImmutableArray<DiagnosticDescriptor>>(); 215private ImmutableDictionary<object, ImmutableArray<DiagnosticAnalyzer>> CreateHostDiagnosticAnalyzersAndBuildMap(string language) 219var builder = ImmutableDictionary.CreateBuilder<object, ImmutableArray<DiagnosticAnalyzer>>(); 222var analyzers = reference.GetAnalyzers(language); 237private void UpdateCompilerAnalyzerMapIfNeeded(string language, ImmutableArray<DiagnosticAnalyzer> analyzers) 254private static ImmutableDictionary<object, ImmutableArray<DiagnosticAnalyzer>> CreateDiagnosticAnalyzersPerReferenceMap( 257var builder = ImmutableDictionary.CreateBuilder<object, ImmutableArray<DiagnosticAnalyzer>>(); 262var analyzers = language == null ? reference.Value.GetAnalyzersForAllLanguages() : reference.Value.GetAnalyzers(language); 314private static ImmutableDictionary<object, ImmutableArray<DiagnosticAnalyzer>> MergeDiagnosticAnalyzerMap( 315ImmutableDictionary<object, ImmutableArray<DiagnosticAnalyzer>> map1, 316ImmutableDictionary<object, ImmutableArray<DiagnosticAnalyzer>> map2)
Diagnostics\IRemoteDiagnosticAnalyzerService.cs (11)
17ValueTask<ImmutableArray<DiagnosticData>> ForceRunCodeAnalysisDiagnosticsAsync( 21Checksum solutionChecksum, ProjectId projectId, ImmutableArray<string> diagnosticIds, CancellationToken cancellationToken); 23ValueTask<ImmutableArray<DiagnosticData>> GetDiagnosticsForSpanAsync( 32ValueTask<ImmutableArray<DiagnosticData>> GetDiagnosticsForIdsAsync( 34ImmutableArray<DocumentId> documentIds, 40ValueTask<ImmutableArray<DiagnosticData>> GetProjectDiagnosticsForIdsAsync( 46ValueTask<ImmutableArray<DiagnosticData>> GetSourceGeneratorDiagnosticsAsync(Checksum solutionChecksum, ProjectId projectId, CancellationToken cancellationToken); 48ValueTask<ImmutableArray<DiagnosticDescriptorData>> GetDiagnosticDescriptorsAsync( 51ValueTask<ImmutableArray<string>> GetCompilationEndDiagnosticDescriptorIdsAsync( 55Checksum solutionChecksum, ImmutableArray<ProjectId> projectIds, CancellationToken cancellationToken); 57ValueTask<ImmutableDictionary<string, ImmutableArray<DiagnosticDescriptorData>>> GetDiagnosticDescriptorsPerReferenceAsync(
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)) 124out ImmutableArray<string> skippedDiagnosticIdsForAnalyzer) 132var descriptors = analyzerInfoCache.GetDiagnosticDescriptors(hostAnalyzer);
Differencing\EditScript.cs (1)
29public ImmutableArray<Edit<TNode>> Edits { get; }
Differencing\LongestCommonImmutableArraySubsequence.cs (7)
13internal abstract class LongestCommonImmutableArraySubsequence<TElement> : LongestCommonSubsequence<ImmutableArray<TElement>> 17protected sealed override bool ItemsEqual(ImmutableArray<TElement> oldSequence, int oldIndex, ImmutableArray<TElement> newSequence, int newIndex) 20public IEnumerable<SequenceEdit> GetEdits(ImmutableArray<TElement> oldSequence, ImmutableArray<TElement> newSequence) 23public 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 (8)
236ImmutableArray<ISymbol>.CastUp(method.ExplicitInterfaceImplementations)); 402ImmutableArray<ISymbol>.CastUp(property.ExplicitInterfaceImplementations)); 463ImmutableArray<ISymbol>.CastUp(indexer.ExplicitInterfaceImplementations)); 502ImmutableArray<ISymbol>.CastUp(symbol.ExplicitInterfaceImplementations)); 825var members = type.GetMembers(); 913private SyntaxNode WithTypeParametersAndConstraints(SyntaxNode declaration, ImmutableArray<ITypeParameterSymbol> typeParameters) 940SyntaxNode declaration, ImmutableArray<ISymbol> explicitInterfaceImplementations, bool removeDefaults = true); 1136internal 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_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\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\FindReferences\BaseTypeFinder.cs (3)
14public static ImmutableArray<INamedTypeSymbol> FindBaseTypesAndInterfaces(INamedTypeSymbol type, bool transitive) 17public static ImmutableArray<ISymbol> FindOverriddenAndImplementedMembers( 80private static ImmutableArray<INamedTypeSymbol> FindBaseTypes(INamedTypeSymbol type, bool transitive)
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 115Solution solution, ImmutableArray<ISymbol> symbols, CancellationToken cancellationToken) 144private static async Task<ImmutableArray<(Project project, bool hasInternalsAccess)>> ComputeDependentProjectsAsync( 153ImmutableArray<(Project project, bool hasInternalsAccess)> dependentProjects; 172static async Task<ImmutableArray<(Project project, bool hasInternalsAccess)>> ComputeDependentProjectsWorkerAsync(
FindSymbols\FindReferences\DependentTypeFinder_DerivedClasses.cs (1)
15private static async Task<ImmutableArray<INamedTypeSymbol>> FindDerivedClassesInCurrentProcessAsync(
FindSymbols\FindReferences\DependentTypeFinder_DerivedInterfaces.cs (1)
15private static async 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\DependentTypeFinder.cs (7)
61private static async Task<ImmutableArray<INamedTypeSymbol>> DescendInheritanceTreeAsync( 103var orderedProjectsToExamine = GetOrderedProjectsToExamine( 412var projectsThatReferenceMetadataAssembly = 448private static ImmutableArray<Project> GetOrderedProjectsToExamine( 453var projectsToExamine = GetProjectsToExamineWorker( 462private static ImmutableArray<Project> OrderTopologically( 479private static ImmutableArray<Project> GetProjectsToExamineWorker(
FindSymbols\FindReferences\Finders\AbstractMemberScopedReferenceFinder.cs (1)
66var tokens = FindMatchingIdentifierTokens(state, symbol.Name, cancellationToken);
FindSymbols\FindReferences\Finders\AbstractMethodOrPropertyOrEventSymbolReferenceFinder.cs (1)
15protected static ImmutableArray<IMethodSymbol> GetReferencedAccessorSymbols(
FindSymbols\FindReferences\Finders\AbstractReferenceFinder.cs (19)
27public abstract Task<ImmutableArray<string>> DetermineGlobalAliasesAsync( 30public abstract ValueTask<ImmutableArray<ISymbol>> DetermineCascadedSymbolsAsync( 122params ImmutableArray<string> values) 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, 528var deconstructMethods = semanticFacts.GetDeconstructionAssignmentMethods(semanticModel, node); 645internal static ImmutableArray<(string key, string value)> GetAdditionalFindUsagesProperties( 674internal static ImmutableArray<(string key, string value)> GetAdditionalFindUsagesProperties(ISymbol definition) 707protected virtual async Task<ImmutableArray<string>> DetermineGlobalAliasesAsync( 713public sealed override Task<ImmutableArray<string>> DetermineGlobalAliasesAsync( 737public sealed override async ValueTask<ImmutableArray<ISymbol>> DetermineCascadedSymbolsAsync( 750protected virtual async ValueTask<ImmutableArray<ISymbol>> DetermineCascadedSymbolsAsync( 763protected 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\AliasSymbolReferenceFinder.cs (1)
50var tokens = FindMatchingIdentifierTokens(state, symbol.Name, cancellationToken);
FindSymbols\FindReferences\Finders\ConstructorSymbolReferenceFinder.cs (5)
28protected override async ValueTask<ImmutableArray<ISymbol>> DetermineCascadedSymbolsAsync(IMethodSymbol symbol, Solution solution, FindReferencesSearchOptions options, CancellationToken cancellationToken) 36private static ImmutableArray<ISymbol> GetOtherPartsOfPartial(IMethodSymbol symbol) 47protected override Task<ImmutableArray<string>> DetermineGlobalAliasesAsync(IMethodSymbol symbol, Project project, CancellationToken cancellationToken) 215var tokens = state.Root 250var newKeywordTokens = state.Cache.GetNewKeywordTokens(cancellationToken);
FindSymbols\FindReferences\Finders\CrefTypeParameterSymbolReferenceFinder.cs (1)
65var tokens = attribute.DescendantTokens().WhereAsArray(static (t, token) => t != token, token);
FindSymbols\FindReferences\Finders\EventSymbolReferenceFinder.cs (4)
20protected sealed override async ValueTask<ImmutableArray<ISymbol>> DetermineCascadedSymbolsAsync( 26var backingFields = symbol.ContainingType.GetMembers() 31var associatedNamedTypes = symbol.ContainingType.GetTypeMembers() 38private static ImmutableArray<ISymbol> GetOtherPartsOfPartial(IEventSymbol symbol)
FindSymbols\FindReferences\Finders\ExplicitConstructorInitializerSymbolReferenceFinder.cs (2)
67var tokens = state.Cache.GetConstructorInitializerTokens(cancellationToken); 71var totalTokens = tokens.WhereAsArray(
FindSymbols\FindReferences\Finders\ExplicitConversionSymbolReferenceFinder.cs (1)
70var tokens = state.Root
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\ImplicitConstructorInitializerSymbolReferenceFinder.cs (1)
61var constructorNodes = state.Cache.GetConstructorDeclarations(cancellationToken);
FindSymbols\FindReferences\Finders\IReferenceFinder.cs (2)
27Task<ImmutableArray<string>> DetermineGlobalAliasesAsync( 38ValueTask<ImmutableArray<ISymbol>> DetermineCascadedSymbolsAsync(
FindSymbols\FindReferences\Finders\MethodTypeParameterSymbolReferenceFinder.cs (1)
26protected override async ValueTask<ImmutableArray<ISymbol>> DetermineCascadedSymbolsAsync(
FindSymbols\FindReferences\Finders\NamedTypeSymbolReferenceFinder.cs (4)
23protected override Task<ImmutableArray<string>> DetermineGlobalAliasesAsync(INamedTypeSymbol symbol, Project project, CancellationToken cancellationToken) 28protected override async ValueTask<ImmutableArray<ISymbol>> DetermineCascadedSymbolsAsync( 48private static void Add<TSymbol>(ArrayBuilder<ISymbol> result, ImmutableArray<TSymbol> enumerable) where TSymbol : ISymbol 218var tokens = state.Root
FindSymbols\FindReferences\Finders\NamespaceSymbolReferenceFinder.cs (3)
21protected override Task<ImmutableArray<string>> DetermineGlobalAliasesAsync(INamespaceSymbol symbol, Project project, CancellationToken cancellationToken) 117var tokens = FindMatchingIdentifierTokens(state, name, cancellationToken); 130var tokens = state.Root
FindSymbols\FindReferences\Finders\OperatorSymbolReferenceFinder.cs (2)
60var tokens = state.Root 80protected override ValueTask<ImmutableArray<ISymbol>> DetermineCascadedSymbolsAsync(
FindSymbols\FindReferences\Finders\OrdinaryMethodReferenceFinder.cs (2)
30protected override async ValueTask<ImmutableArray<ISymbol>> DetermineCascadedSymbolsAsync( 55private 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)
46var tokens = FindMatchingIdentifierTokens(state, symbol.Name, cancellationToken);
FindSymbols\FindReferences\Finders\PropertyAccessorSymbolReferenceFinder.cs (2)
20protected override async ValueTask<ImmutableArray<ISymbol>> DetermineCascadedSymbolsAsync( 92var accessors = GetReferencedAccessorSymbols(
FindSymbols\FindReferences\Finders\PropertySymbolReferenceFinder.cs (3)
30protected override async 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 = [ 40internal static readonly ImmutableArray<IReferenceFinder> DefaultReferenceFinders = [
FindSymbols\FindReferences\FindReferenceCache.cs (14)
67private readonly ConcurrentDictionary<string, ImmutableArray<SyntaxToken>> _identifierCache; 70private ImmutableArray<SyntaxToken> _constructorInitializerCache; 71private ImmutableArray<SyntaxToken> _newKeywordsCache; 72private ImmutableArray<SyntaxNode> _constructorDeclarations; 111public ImmutableArray<SyntaxToken> FindMatchingIdentifierTokens( 124if (_identifierCache.TryGetValue(identifier, out var result)) 153private ImmutableArray<SyntaxToken> FindMatchingIdentifierTokensFromTree( 191private ImmutableArray<SyntaxToken> FindMatchingTokensFromText<TArgs>( 214public ImmutableArray<SyntaxToken> GetConstructorInitializerTokens(CancellationToken cancellationToken) 223ImmutableArray<SyntaxToken> GetConstructorInitializerTokensWorker() 240public ImmutableArray<SyntaxNode> GetConstructorDeclarations(CancellationToken cancellationToken) 251private ImmutableArray<SyntaxNode> ComputeConstructorDeclarations(CancellationToken cancellationToken) 281public ImmutableArray<SyntaxToken> GetNewKeywordTokens(CancellationToken cancellationToken) 288ImmutableArray<SyntaxToken> GetNewKeywordTokensWorker()
FindSymbols\FindReferences\FindReferencesSearchEngine_FindReferencesInDocuments.cs (6)
54var allSymbolsAndGroups = await ReportGroupsSeriallyAsync( 75async ValueTask PerformSearchInProjectSeriallyAsync(ImmutableArray<(ISymbol symbol, SymbolGroup group)> symbols, Project project) 100ImmutableArray<(ISymbol symbol, SymbolGroup group)> symbols, 155var converted = await ConvertLocationsAsync(@this, values, symbol, group, cancellationToken).ConfigureAwait(false); 162static async Task<ImmutableArray<(SymbolGroup group, ISymbol symbol, ReferenceLocation location)>> ConvertLocationsAsync( 178var tokens = AbstractReferenceFinder.FindMatchingIdentifierTokens(state, symbol.Name, cancellationToken);
FindSymbols\FindReferences\FindReferencesSearchEngine.BidirectionalSymbolSet.cs (1)
42public override ImmutableArray<ISymbol> GetAllSymbols()
FindSymbols\FindReferences\FindReferencesSearchEngine.cs (17)
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(); 112var projectsToSearch = await GetProjectsToSearchAsync(allSymbols, cancellationToken).ConfigureAwait(false); 126private async IAsyncEnumerable<(Project project, ImmutableArray<(ISymbol symbol, SymbolGroup group)> allSymbols)> GetProjectsAndSymbolsToSearchSeriallyAsync( 128ImmutableArray<Project> projectsToSearch, 152var allSymbolsAndGroups = await ReportGroupsSeriallyAsync( 164private async Task<ImmutableArray<(ISymbol symbol, SymbolGroup group)>> ReportGroupsSeriallyAsync( 165ImmutableArray<ISymbol> symbols, Dictionary<ISymbol, SymbolGroup> symbolToGroup, CancellationToken cancellationToken) 187var linkedSymbols = await SymbolFinder.FindLinkedSymbolsAsync(symbol, _solution, cancellationToken).ConfigureAwait(false); 206private Task<ImmutableArray<Project>> GetProjectsToSearchAsync( 207ImmutableArray<ISymbol> symbols, CancellationToken cancellationToken) 217Project project, ImmutableArray<(ISymbol symbol, SymbolGroup group)> allSymbols, Action<Reference> onReferenceFound, CancellationToken cancellationToken) 343ImmutableArray<(ISymbol symbol, SymbolGroup group)> allSymbols, 351var aliases = await finder.DetermineGlobalAliasesAsync(
FindSymbols\FindReferences\FindReferencesSearchEngine.NonCascadingSymbolSet.cs (2)
19private readonly ImmutableArray<ISymbol> _symbols = [.. searchSymbols]; 21public override ImmutableArray<ISymbol> GetAllSymbols()
FindSymbols\FindReferences\FindReferencesSearchEngine.SymbolSet.cs (6)
43public abstract ImmutableArray<ISymbol> GetAllSymbols(); 180FindReferencesSearchEngine engine, ImmutableArray<ISymbol> symbols, MetadataUnifyingSymbolHashSet seenSymbols, ArrayBuilder<ISymbol> workQueue, CancellationToken cancellationToken) 198var cascaded = await finder.DetermineCascadedSymbolsAsync(symbol, solution, engine._options, cancellationToken).ConfigureAwait(false); 245var implementations = await SymbolFinder.FindMemberImplementationsArrayAsync( 252var overrides = await SymbolFinder.FindOverridesArrayAsync( 282var matches = await SymbolFinder.FindImplementedInterfaceMembersArrayAsync(
FindSymbols\FindReferences\FindReferencesSearchEngine.UnidirectionalSymbolSet.cs (1)
35public override ImmutableArray<ISymbol> GetAllSymbols()
FindSymbols\FindReferences\IRemoteDependentTypeFinderService.cs (2)
14ValueTask<ImmutableArray<SerializableSymbolAndProjectId>> FindTypesAsync( 17ImmutableArray<ProjectId> projectsOpt,
FindSymbols\FindReferences\NoOpStreamingFindReferencesProgress.cs (1)
30public ValueTask OnReferencesFoundAsync(ImmutableArray<(SymbolGroup group, ISymbol symbol, ReferenceLocation location)> references, CancellationToken cancellationToken) => default;
FindSymbols\FindReferences\StreamingFindReferencesProgress.cs (1)
52public async 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)
33public SymbolGroup(ImmutableArray<ISymbol> symbols) 76ValueTask OnReferencesFoundAsync(ImmutableArray<(SymbolGroup group, ISymbol symbol, ReferenceLocation location)> references, CancellationToken cancellationToken);
FindSymbols\ReferencedSymbol.cs (3)
30/// Same as <see cref="Locations"/> but exposed as an <see cref="ImmutableArray{T}"/> for performance. 32internal ImmutableArray<ReferenceLocation> LocationsArray { get; } 41ImmutableArray<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)
36public ImmutableArray<ReferencedSymbol> GetReferencedSymbols() 70ImmutableArray<(SymbolGroup group, ISymbol symbol, ReferenceLocation location)> references, CancellationToken cancellationToken)
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\SymbolFinder.CallbackDispatcher.cs (1)
47public ValueTask OnReferencesFoundAsync(RemoteServiceCallbackId callbackId, ImmutableArray<(SerializableSymbolGroup group, SerializableSymbolAndProjectId definition, SerializableReferenceLocation reference)> references, CancellationToken cancellationToken)
FindSymbols\SymbolFinder.cs (1)
185internal static async Task<ImmutableArray<ISymbol>> FindLinkedSymbolsAsync(
FindSymbols\SymbolFinder.FindReferencesServerCallback.cs (1)
67ImmutableArray<(SerializableSymbolGroup serializableSymbolGroup, SerializableSymbolAndProjectId serializableSymbol, SerializableReferenceLocation reference)> references,
FindSymbols\SymbolTree\SymbolTreeInfo_Metadata.cs (3)
272private static ImmutableArray<ModuleMetadata> GetModuleMetadata(Metadata? metadata) 324var unsortedNodes = GenerateUnsortedNodes(receiverTypeNameToExtensionMemberMap); 906private readonly ImmutableArray<BuilderNode> GenerateUnsortedNodes(MultiDictionary<string, ExtensionMemberInfo> receiverTypeNameToMemberMap)
FindSymbols\SymbolTree\SymbolTreeInfo.cs (27)
41private readonly ImmutableArray<Node> _nodes; 75ImmutableArray<Node> sortedNodes, 87ImmutableArray<Node> sortedNodes, 101var unsortedNodes = ImmutableArray.Create(BuilderNode.RootNode); 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); 446var values1 = _inheritanceMap[i]; 447var values2 = other._inheritanceMap[i]; 459ImmutableArray<BuilderNode> unsortedNodes, 463var sortedNodes = SortNodes(unsortedNodes); 470ImmutableArray<Node> nodes, 497public ImmutableArray<INamedTypeSymbol> GetDerivedMetadataTypes( 501var derivedTypeIndices = _inheritanceMap[baseTypeNameIndex];
FindSymbols\SymbolTree\SymbolTreeInfo.FirstEntityHandleProvider.cs (1)
41public EntityHandle GetGenericInstantiation(EntityHandle genericType, ImmutableArray<EntityHandle> typeArguments) => genericType;
FindSymbols\SymbolTree\SymbolTreeInfo.Node.cs (1)
106public ParameterTypeInfo GetGenericInstantiation(ParameterTypeInfo genericType, ImmutableArray<ParameterTypeInfo> typeArguments)
FindSymbols\SyntaxTree\SyntaxTreeIndex_Forwarders.cs (3)
53public ImmutableArray<string> GetGlobalAliases(string name, int arity) 56public ImmutableArray<string> GetAliases(string name, int arity) 59private ImmutableArray<string> GetAliasesWorker(
FindSymbols\TopLevelSyntaxTree\DeclaredSymbolInfo.cs (4)
53ImmutableArray<string> inheritanceNames, 95public ImmutableArray<string> InheritanceNames { get; } = inheritanceNames; 124ImmutableArray<string> inheritanceNames, 207var inheritanceNames = reader.ReadArray(static r => r.ReadRequiredString());
FindSymbols\TopLevelSyntaxTree\NavigateToSearchIndex.cs (1)
87public static NavigateToSearchIndex CreateIndex(ImmutableArray<DeclaredSymbolInfo> infos)
FindSymbols\TopLevelSyntaxTree\NavigateToSearchIndex.NavigateToSearchInfo.cs (5)
154private readonly ImmutableArray<ulong> _fuzzyBigramBitset; 162ImmutableArray<ulong> fuzzyBigramBitset) 857var fuzzyBigramBitset = ReadBigramBitset(reader); 887private static void WriteBigramBitset(ObjectWriter writer, ImmutableArray<ulong> bitset) 890private static ImmutableArray<ulong> ReadBigramBitset(ObjectReader reader)
FindSymbols\TopLevelSyntaxTree\TopLevelSyntaxTreeIndex.cs (2)
33public ImmutableArray<DeclaredSymbolInfo> DeclaredSymbolInfos => _declarationInfo.DeclaredSymbolInfos; 40public ImmutableDictionary<string, ImmutableArray<int>> ReceiverTypeNameToExtensionMemberMap
FindSymbols\TopLevelSyntaxTree\TopLevelSyntaxTreeIndex.DeclarationInfo.cs (3)
14private readonly struct DeclarationInfo(ImmutableArray<DeclaredSymbolInfo> declaredSymbolInfos) 16public ImmutableArray<DeclaredSymbolInfo> DeclaredSymbolInfos { get; } = declaredSymbolInfos; 25var infos = reader.ReadArray(static (r, stringTable) => DeclaredSymbolInfo.ReadFrom_ThrowsOnFailure(stringTable, r), stringTable);
FindSymbols\TopLevelSyntaxTree\TopLevelSyntaxTreeIndex.ExtensionMethodInfo.cs (3)
16ImmutableDictionary<string, ImmutableArray<int>> receiverTypeNameToExtensionMethodMap) 44public readonly ImmutableDictionary<string, ImmutableArray<int>> ReceiverTypeNameToExtensionMemberMap { get; } = receiverTypeNameToExtensionMethodMap; 63var 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) 119internal static Task<Document> FormatAsync(Document document, SyntaxAnnotation annotation, SyntaxFormattingOptions options, ImmutableArray<AbstractFormattingRule> rules, CancellationToken cancellationToken) 122internal static async Task<Document> FormatAsync(Document document, SyntaxAnnotation annotation, OptionSet? optionSet, ImmutableArray<AbstractFormattingRule> rules, CancellationToken cancellationToken) 159private static SyntaxNode Format(SyntaxNode node, SyntaxAnnotation annotation, Workspace workspace, OptionSet? options, ImmutableArray<AbstractFormattingRule> rules, CancellationToken cancellationToken) 179internal static SyntaxNode Format(SyntaxNode node, SyntaxAnnotation annotation, SolutionServices services, SyntaxFormattingOptions options, ImmutableArray<AbstractFormattingRule> rules, CancellationToken cancellationToken) 223private static SyntaxNode Format(SyntaxNode node, IEnumerable<TextSpan>? spans, Workspace workspace, OptionSet? options, ImmutableArray<AbstractFormattingRule> rules, CancellationToken cancellationToken) 229internal static SyntaxNode Format(SyntaxNode node, IEnumerable<TextSpan>? spans, SolutionServices services, SyntaxFormattingOptions options, ImmutableArray<AbstractFormattingRule> rules, CancellationToken cancellationToken) 232private static IFormattingResult? GetFormattingResult(SyntaxNode node, IEnumerable<TextSpan>? spans, Workspace workspace, OptionSet? options, ImmutableArray<AbstractFormattingRule> rules, CancellationToken cancellationToken) 256internal static IFormattingResult GetFormattingResult(SyntaxNode node, IEnumerable<TextSpan>? spans, SolutionServices services, SyntaxFormattingOptions options, ImmutableArray<AbstractFormattingRule> rules, CancellationToken cancellationToken) 303private static IList<TextChange> GetFormattedTextChanges(SyntaxNode node, IEnumerable<TextSpan>? spans, Workspace workspace, OptionSet? options, ImmutableArray<AbstractFormattingRule> rules, CancellationToken cancellationToken) 311internal static IList<TextChange> GetFormattedTextChanges(SyntaxNode node, IEnumerable<TextSpan>? spans, SolutionServices services, SyntaxFormattingOptions options, ImmutableArray<AbstractFormattingRule> rules, CancellationToken cancellationToken = default)
LanguageServices\DeclaredSymbolFactoryService\AbstractDeclaredSymbolInfoFactoryService.cs (4)
94protected abstract bool TryGetAliasesFromUsingDirective(TUsingDirectiveSyntax node, out ImmutableArray<(string aliasName, string name)> aliases); 175if (this.TryGetAliasesFromUsingDirective(usingAlias, out var current)) 206if (this.TryGetAliasesFromUsingDirective(usingAlias, out var current)) 376private 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"];
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 (19)
18using DocumentAndHashBuilder = ArrayBuilder<(Document newDocument, ImmutableArray<byte> newContentHash)>; 31var relatedDocumentIds = newSolution.GetRelatedDocumentIds(newDocument.Id); 41var newContentHash = newText.GetContentHash(); 61var relatedDocuments = newSolution.GetRelatedDocumentIds(firstNewDocument.Id); 105var allTextChangesAcrossLinkedFiles = await textDifferencingService.GetTextChangesAsync( 123var linkedDocuments = oldSolution.GetRelatedDocumentIds(firstOldDocument.Id); 128var mergeConflictTextEdits = LinkedFileMergeConflictCommentAdditionService.CreateEdits(firstOldSourceText, unmergedChanges); 135private static async Task<ImmutableArray<TextChange>> AddDocumentMergeChangesAsync( 138ImmutableArray<TextChange> cumulativeChanges, 148var textChanges = await textDiffService.GetTextChangesAsync( 208private static (ImmutableArray<TextChange> mergeChanges, ImmutableArray<TextSpan> mergeConflictResolutionSpans) MergeChangesWithMergeFailComments( 209ImmutableArray<TextChange> mergedChanges, 210ImmutableArray<TextChange> commentChanges) 212var mergedChangesList = NormalizeChanges(mergedChanges); 213var commentChangesList = NormalizeChanges(commentChanges); 270private static ImmutableArray<TextChange> NormalizeChanges(ImmutableArray<TextChange> changes) 275var 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; 109private AggregateLogger(ImmutableArray<ILogger> loggers)
ObsoleteSymbol\AbstractObsoleteSymbolService.cs (2)
30public async Task<ImmutableArray<TextSpan>> GetLocationsAsync(Document document, ImmutableArray<TextSpan> textSpans, CancellationToken cancellationToken)
ObsoleteSymbol\IObsoleteSymbolService.cs (2)
20Task<ImmutableArray<TextSpan>> GetLocationsAsync(Document document, ImmutableArray<TextSpan> textSpans, CancellationToken cancellationToken);
Options\GlobalOptionService.cs (12)
28private readonly Lazy<ImmutableArray<IOptionPersister>> _optionPersisters = new(() => GetOptionPersisters(optionPersisterProviders)); 35private static ImmutableArray<IOptionPersister> GetOptionPersisters(IEnumerable<Lazy<IOptionPersisterProvider>> optionPersisterProviders) 41private static object? LoadOptionFromPersisterOrGetDefault(OptionKey2 optionKey, ImmutableArray<IOptionPersister> persisters) 78var persisters = _optionPersisters.Value; 85public ImmutableArray<object?> GetOptions(ImmutableArray<OptionKey2> optionKeys) 106var persisters = _optionPersisters.Value; 119private static object? GetOption_NoLock(ref ImmutableDictionary<OptionKey2, object?> currentValues, OptionKey2 optionKey, ImmutableArray<IOptionPersister> persisters) 145public bool SetGlobalOptions(ImmutableArray<KeyValuePair<OptionKey2, object?>> options) 151var persisters = _optionPersisters.Value; 185private static void PersistOption(ImmutableArray<IOptionPersister> persisters, OptionKey2 optionKey, object? value) 226private void RaiseOptionChangedEvent(ImmutableArray<(OptionKey2, object?)> changedOptions)
Options\IGlobalOptionService.cs (3)
35ImmutableArray<object?> GetOptions(ImmutableArray<OptionKey2> optionKeys); 56bool 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<T> optionDefinition, string feature, string name, ImmutableArray<OptionStorageLocation> storageLocations)
Options\OptionChangedEventArgs.cs (2)
11internal sealed class OptionChangedEventArgs(ImmutableArray<(OptionKey2 key, object? newValue)> changedOptions) : EventArgs 13public 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.SelectAsArray( 84var externallyDefined = _changedOptionKeys.SelectAsArray(
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)
39in 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)
467candidate, candidateHumps, patternChunk, out var matchedSpans); 484var camelCaseKindIgnoreCase = TryUpperCaseCamelCaseMatch(candidate, candidateHumps, patternChunk, CompareOptions.IgnoreCase, out var matchedSpansIgnoreCase); 487var camelCaseKind = TryUpperCaseCamelCaseMatch(candidate, candidateHumps, patternChunk, CompareOptions.None, out var matchedSpans); 509out ImmutableArray<TextSpan> matchedSpans) 520out ImmutableArray<TextSpan> matchedSpans)
PatternMatching\RegexQuery.cs (4)
41public sealed class All(ImmutableArray<RegexQuery> children) : RegexQuery 43public readonly ImmutableArray<RegexQuery> Children = children; 51public sealed class Any(ImmutableArray<RegexQuery> children) : RegexQuery 53public readonly ImmutableArray<RegexQuery> Children = children;
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 (6)
31var namedSymbols = result.NamedSymbols; 32var unnamedSymbols = result.UnnamedSymbols; 60private ImmutableArray<INamedTypeSymbol> _lazyOuterTypesAndBases; 61private ImmutableArray<INamedTypeSymbol> _lazyEnclosingTypeBases; 143private ImmutableArray<INamedTypeSymbol> GetOuterTypesAndBases() 155private ImmutableArray<INamedTypeSymbol> GetEnclosingTypeBases()
Recommendations\AbstractRecommendationServiceRunner.cs (27)
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(); 184private ImmutableArray<ITypeSymbol> GetTypeSymbols( 185ImmutableArray<ISymbol> candidateSymbols, 208var allTypeArguments = type.GetAllTypeArguments(); 217var methods = type.GetMembers(WellKnownMemberNames.DelegateInvokeName); 221var parameters = methods[0].GetParameters(); 270protected ImmutableArray<ISymbol> GetSymbolsForNamespaceDeclarationNameContext<TNamespaceDeclarationSyntax>() 281var symbols = semanticModel.LookupNamespacesAndTypes(declarationSyntax.SpanStart, containingNamespaceSymbol) 287protected ImmutableArray<ISymbol> GetSymbolsForEnumBaseList(INamespaceOrTypeSymbol container) 356protected ImmutableArray<ISymbol> GetMemberSymbols( 387protected ImmutableArray<ISymbol> LookupSymbolsInContainer( 392var staticMembers = _context.SemanticModel.LookupStaticMembers(position, container); 396var staticExtensionsMembers = _context.SemanticModel 403var containerMembers = SuppressDefaultTupleElements( 436static bool MatchesConstraints(ITypeSymbol originalContainerType, ImmutableArray<ITypeSymbol> constraintTypes) 537protected 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 (3)
135ImmutableArray<(string key, string value)> additionalProperties, 154public readonly ImmutableArray<(string key, string value)> AdditionalProperties = additionalProperties; 178var additionalProperties = this.AdditionalProperties;
Remote\RemoteUtilities.cs (6)
24public static async ValueTask<ImmutableArray<(DocumentId, ImmutableArray<TextChange>)>> GetDocumentTextChangesAsync( 29using var _ = ArrayBuilder<(DocumentId, ImmutableArray<TextChange>)>.GetInstance(out var builder); 60ImmutableArray<(DocumentId documentId, ImmutableArray<TextChange> textChanges)> documentTextChanges, 65var 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 (7)
123private static ImmutableArray<ISymbol> SymbolsForEnclosingInvocationExpressionWorker(SyntaxNode invocationExpression, SemanticModel semanticModel, CancellationToken cancellationToken) 138private static bool LocalVariableConflictPerLanguage(SyntaxToken tokenOrNode, Document document, ImmutableArray<ISymbol> newReferencedSymbols) 181var implicitUsageConflicts = renameRewriterService.ComputePossibleImplicitUsageConflicts(renamedSymbol, semanticModel, originalDeclarationLocation, newDeclarationLocationStartingPosition, cancellationToken); 200var implicitConflicts = await renameRewriterService.ComputeImplicitReferenceConflictsAsync( 292var languageConflicts = await languageRenameService.ComputeDeclarationConflictsAsync( 350var locations = symbol.Locations; 405var locations = symbol.Locations;
Rename\ConflictEngine\ConflictResolver.Session.cs (13)
241var definitionLocations = _renameLocationSet.Symbol.Locations; 376ImmutableArray<ISymbol> newReferencedSymbols = default; 459var referencedSymbols = _renameLocationSet.ReferencedSymbols; 492ImmutableArray<ISymbol> newReferencedSymbols) 631private ImmutableArray<ISymbol> GetSymbolsInNewSolution(Document newDocument, SemanticModel newDocumentSemanticModel, RenameActionAnnotation conflictAnnotation, SyntaxNodeOrToken tokenOrNode) 633var newReferencedSymbols = RenameUtilities.GetSymbolsTouchingPosition(tokenOrNode.Span.Start, newDocumentSemanticModel, newDocument.Project.Solution.Services, _cancellationToken); 639var invocationReferencedSymbols = SymbolsForEnclosingInvocationExpressionWorker((SyntaxNode)tokenOrNode!, newDocumentSemanticModel, _cancellationToken); 681private async Task<(ImmutableHashSet<DocumentId> documentIds, ImmutableArray<string> possibleNameConflicts)> FindDocumentsAndPossibleNameConflictsAsync() 701var possibleNameConflicts = possibleNameConflictsList.ToImmutableArray(); 714ImmutableArray<string> possibleNameConflicts) 760ImmutableArray<RenameLocation> renameLocations, 764ImmutableArray<string> possibleNameConflicts) 846private static bool ShouldIncludeLocation(ImmutableArray<RenameLocation> renameLocations, RenameLocation location)
Rename\ConflictEngine\DeclarationConflictHelpers.cs (16)
15public static ImmutableArray<Location> GetMembersWithConflictingSignatures(IMethodSymbol renamedMethod, bool trimOptionalParameters, bool distinguishRefKind) 26public static ImmutableArray<Location> GetMembersWithConflictingSignatures(IPropertySymbol renamedProperty, bool trimOptionalParameters, bool distinguishRefKind) 39private static ImmutableArray<Location> GetConflictLocations(ISymbol renamedMember, 42Func<ISymbol, ImmutableArray<ImmutableArray<ParameterSignature>>> getAllSignatures) 44var signatureToConflictingMember = new Dictionary<ImmutableArray<ParameterSignature>, ISymbol>(ConflictingSignatureComparer.Instance); 48foreach (var signature in getAllSignatures(member)) 56foreach (var signature in getAllSignatures(renamedMember)) 79private sealed class ConflictingSignatureComparer : IEqualityComparer<ImmutableArray<ParameterSignature>> 85public bool Equals(ImmutableArray<ParameterSignature> x, ImmutableArray<ParameterSignature> y) 88public int GetHashCode(ImmutableArray<ParameterSignature> obj) 97private static ImmutableArray<ImmutableArray<ParameterSignature>> GetAllSignatures(ImmutableArray<IParameterSymbol> parameters, bool trimOptionalParameters, bool distinguishRefKind) 99var resultBuilder = ArrayBuilder<ImmutableArray<ParameterSignature>>.GetInstance();
Rename\ConflictEngine\MutableConflictResolution.cs (2)
146var documentIds = renamedSpansTracker.DocumentIds.Concat( 149var relatedLocations = this.RelatedLocations.ToImmutableArray();
Rename\ConflictEngine\RenamedSpansTracker.cs (4)
232public ImmutableDictionary<DocumentId, ImmutableArray<(TextSpan oldSpan, TextSpan newSpan)>> GetDocumentToModifiedSpansMap() 234var builder = ImmutableDictionary.CreateBuilder<DocumentId, ImmutableArray<(TextSpan oldSpan, TextSpan newSpan)>>(); 242public ImmutableDictionary<DocumentId, ImmutableArray<ComplexifiedSpan>> GetDocumentToComplexifiedSpansMap() 244var builder = ImmutableDictionary.CreateBuilder<DocumentId, ImmutableArray<ComplexifiedSpan>>();
Rename\ConflictResolution.cs (21)
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) 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 (25)
123var locations = await serializableLocations.Locations.SelectAsArrayAsync( 126var implicitLocations = await serializableLocations.ImplicitLocations.SelectAsArrayAsync( 129var referencedSymbols = await serializableLocations.ReferencedSymbols.SelectAsArrayAsync( 147ImmutableArray<SerializableRenameLocation> locations, 148ImmutableArray<SerializableReferenceLocation> implicitLocations, 149ImmutableArray<SerializableSymbolAndProjectId> referencedSymbols) 155public readonly ImmutableArray<SerializableRenameLocation> Locations = locations; 158public readonly ImmutableArray<SerializableReferenceLocation> ImplicitLocations = implicitLocations; 161public readonly ImmutableArray<SerializableSymbolAndProjectId> ReferencedSymbols = referencedSymbols; 163public async ValueTask<ImmutableArray<RenameLocation>> RehydrateLocationsAsync( 210ImmutableArray<DocumentId> documentIds, 211ImmutableArray<RelatedLocation> relatedLocations, 212ImmutableArray<(DocumentId, ImmutableArray<TextChange>)> documentTextChanges, 213ImmutableDictionary<DocumentId, ImmutableArray<(TextSpan oldSpan, TextSpan newSpan)>> documentToModifiedSpansMap, 214ImmutableDictionary<DocumentId, ImmutableArray<ComplexifiedSpan>> documentToComplexifiedSpansMap, 215ImmutableDictionary<DocumentId, ImmutableArray<RelatedLocation>> documentToRelatedLocationsMap) 224public readonly ImmutableArray<DocumentId> DocumentIds = documentIds; 227public readonly ImmutableArray<RelatedLocation> RelatedLocations = relatedLocations; 230public readonly ImmutableArray<(DocumentId, ImmutableArray<TextChange>)> DocumentTextChanges = documentTextChanges; 233public readonly ImmutableDictionary<DocumentId, ImmutableArray<(TextSpan oldSpan, TextSpan newSpan)>> DocumentToModifiedSpansMap = documentToModifiedSpansMap; 236public readonly ImmutableDictionary<DocumentId, ImmutableArray<ComplexifiedSpan>> DocumentToComplexifiedSpansMap = documentToComplexifiedSpansMap; 239public readonly ImmutableDictionary<DocumentId, ImmutableArray<RelatedLocation>> DocumentToRelatedLocationsMap = documentToRelatedLocationsMap; 249var documentTextChanges = await RemoteUtilities.GetDocumentTextChangesAsync(OldSolution, _newSolutionWithoutRenamedDocument, cancellationToken).ConfigureAwait(false);
Rename\IRenameRewriterLanguageService.cs (6)
52Task<ImmutableArray<Location>> ComputeDeclarationConflictsAsync( 70Task<ImmutableArray<Location>> ComputeImplicitReferenceConflictsAsync( 85ImmutableArray<Location> ComputePossibleImplicitUsageConflicts( 124public abstract Task<ImmutableArray<Location>> ComputeDeclarationConflictsAsync(string replacementText, ISymbol renamedSymbol, ISymbol renameSymbol, IEnumerable<ISymbol> referencedSymbols, Solution baseSolution, Solution newSolution, IDictionary<Location, Location> reverseMappedLocations, CancellationToken cancellationToken); 125public abstract Task<ImmutableArray<Location>> ComputeImplicitReferenceConflictsAsync(ISymbol renameSymbol, ISymbol renamedSymbol, IEnumerable<ReferenceLocation> implicitReferenceLocations, CancellationToken cancellationToken); 126public abstract ImmutableArray<Location> ComputePossibleImplicitUsageConflicts(ISymbol renamedSymbol, SemanticModel semanticModel, Location originalDeclarationLocation, int newDeclarationLocationStartingPosition, CancellationToken cancellationToken);
Rename\LightweightRenameLocations.cs (9)
28public readonly ImmutableArray<RenameLocation> Locations; 29private readonly ImmutableArray<SerializableReferenceLocation> _implicitLocations; 30private readonly ImmutableArray<SerializableSymbolAndProjectId> _referencedSymbols; 35ImmutableArray<RenameLocation> locations, 36ImmutableArray<SerializableReferenceLocation> implicitLocations, 37ImmutableArray<SerializableSymbolAndProjectId> referencedSymbols) 51var referencedSymbols = await _referencedSymbols.SelectAsArrayAsync( 57var implicitLocations = await _implicitLocations.SelectAsArrayAsync( 102var rehydratedLocations = await result.Value.RehydrateLocationsAsync(solution, cancellationToken).ConfigureAwait(false);
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 (6)
60internal static ImmutableArray<ISymbol> FilterAliasSymbols(ImmutableArray<ISymbol> symbols) 66var nonAliasSymbols = symbols.WhereAsArray(s => s.Kind != SymbolKind.Alias); 82internal static ImmutableArray<ISymbol> GetSymbolsTouchingPosition( 87var symbols = semanticInfo.DeclaredSymbol != null 129var documentsOfRenameSymbolDeclaration = symbol.Locations.SelectAsArray(l => l.IsInSource, l => solution.GetRequiredDocument(l.SourceTree!));
Rename\SymbolicRenameLocations.cs (11)
29public readonly ImmutableArray<RenameLocation> Locations; 30public readonly ImmutableArray<ReferenceLocation> ImplicitLocations; 31public readonly ImmutableArray<ISymbol> ReferencedSymbols; 37ImmutableArray<RenameLocation> locations, 38ImmutableArray<ReferenceLocation> implicitLocations, 39ImmutableArray<ISymbol> referencedSymbols) 77var overloadsResult = options.RenameOverloads ? await GetOverloadsAsync(symbol, solution, cancellationToken).ConfigureAwait(false) : 121private static async Task<ImmutableArray<SearchResult>> GetOverloadsAsync( 139var referenceSymbols = await SymbolFinder.FindRenamableReferencesAsync( 154var implicitLocations = referenceSymbols.SelectMany(refSym => refSym.Locations).WhereAsArray(loc => loc.IsImplicit); 155var referencedSymbols = referenceSymbols.Select(r => r.Definition).WhereAsArray(r => !r.Equals(symbol));
Rename\SymbolicRenameLocations.ReferenceProcessing.cs (3)
161public static async Task<ImmutableArray<RenameLocation>> GetRenamableDefinitionLocationsAsync( 358internal static async Task<(ImmutableArray<RenameLocation> strings, ImmutableArray<RenameLocation> comments)> GetRenamableLocationsInStringsAndCommentsAsync(
Rename\SymbolicRenameLocations.SearchResult.cs (4)
15public readonly ImmutableArray<ReferenceLocation> ImplicitLocations; 16public readonly ImmutableArray<ISymbol> ReferencedSymbols; 20ImmutableArray<ReferenceLocation> implicitLocations, 21ImmutableArray<ISymbol> referencedSymbols)
Serialization\AbstractOptionsSerializationService.cs (2)
87ImmutableArray<byte> cryptoPublicKey, 120var cryptoPublicKey = reader.ReadByteArray().ToImmutableArrayOrEmpty();
Serialization\SerializableSourceText.cs (4)
60public SerializableSourceText(SourceText text, ImmutableArray<byte> contentHash) 79var computedContentHash = TryGetText()?.GetContentHash() ?? _storageHandle!.ContentHash; 181var contentHash = ImmutableCollectionsMarshal.AsImmutableArray(reader.ReadByteArray()); 190var contentHash = ImmutableCollectionsMarshal.AsImmutableArray(reader.ReadByteArray());
Serialization\SerializationExtensions.cs (1)
59private static ImmutableArray<string> GetStrongNameKeyPaths(ProjectInfo.ProjectAttributes info)
Serialization\SerializedPortableExecutableReference.cs (5)
22private readonly ImmutableArray<ITemporaryStorageStreamHandle> _storageHandles; 31ImmutableArray<ITemporaryStorageStreamHandle> 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)
231if (!TryGetModules(assemblyMetadata, out var modules)) 248private static bool TryGetModules(AssemblyMetadata assemblyMetadata, out ImmutableArray<ModuleMetadata> modules) 330var aliases = reader.ReadArray(static r => r.ReadRequiredString()); 347if (!TryGetModules(assemblyMetadata, out var modules)) 387private (Metadata metadata, ImmutableArray<ITemporaryStorageStreamHandle> 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 (3)
23public static ImmutableArray<TInterface> FilterToSpecificLanguage<TInterface, TMetadata>(this IEnumerable<Lazy<TInterface, TMetadata>> services, string languageName) 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)
55var p1 = method1.Parameters; 56var 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 (18)
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) 425var typeParameterRefs = document.Descendants(DocumentationCommentXmlNames.TypeParameterReferenceElementName).ToImmutableArray(); 433var typeArgs = symbol.GetAllTypeArguments(); 645public static ImmutableArray<T> FilterToVisibleAndBrowsableSymbols<T>( 646this ImmutableArray<T> symbols, bool hideAdvancedMembers, Compilation compilation, Func<T, bool> inclusionFilter) where T : ISymbol 666var filteredSymbols = symbols.WhereAsArray(static (s, arg) => 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 (3)
233private sealed class CharArrayChunkTextReader(ImmutableArray<char[]> chunks, int length) : TextReaderWithLength(length) 235private readonly ImmutableArray<char[]> _chunks = chunks; 284var chunksArray = chunks.MoveToImmutable();
Shared\Extensions\SyntaxGeneratorExtensions.cs (1)
256var 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)
226public 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)
362var hashes = BloomFilterHash.GetOrCreateHashArray(value, _isCaseSensitive, _hashFunctionCount); 446private readonly ImmutableArray<int> _hashes; 474public 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(
Shared\Utilities\ExtensionOrderer.Graph.cs (1)
32public ImmutableArray<Lazy<TExtension, TMetadata>> TopologicalSort()
Simplification\Simplifier.cs (1)
245Document document, ImmutableArray<AbstractReducer> reducers, CancellationToken cancellationToken)
SourceGeneration\IRemoteSourceGenerationService.cs (6)
35ValueTask<ImmutableArray<SourceGeneratedDocumentInfo>> GetSourceGeneratedDocumentInfoAsync( 46ValueTask<ImmutableArray<string>> GetContentsAsync( 47Checksum solutionChecksum, ProjectId projectId, ImmutableArray<DocumentId> documentIds, bool withFrozenSourceGeneratedDocuments, CancellationToken cancellationToken); 53Checksum solutionChecksum, ProjectId projectId, ImmutableArray<Checksum> analyzerReferenceChecksums, string language, CancellationToken cancellationToken); 59ValueTask<ImmutableArray<SourceGeneratorIdentity>> GetSourceGeneratorIdentitiesAsync( 73ValueTask<ImmutableArray<ImmutableDictionary<string, object?>>> FetchAndClearTelemetryKeyValuePairsAsync(CancellationToken cancellationToken);
SourceGeneration\SourceGeneratorExtensions.cs (1)
34public static SourceGeneratorPresence GetSourceGeneratorPresence(this ImmutableArray<ISourceGenerator> generators)
SourceGeneratorTelemetry\ISourceGeneratorTelemetryCollectorWorkspaceService.cs (1)
22ImmutableArray<ImmutableDictionary<string, object?>> FetchKeysAndAndClear();
SourceGeneratorTelemetry\SourceGeneratorTelemetryCollectorWorkspaceService.cs (1)
65public ImmutableArray<ImmutableDictionary<string, object?>> FetchKeysAndAndClear()
src\0bf6ba47805c8821\AbstractMoveDeclarationNearReferenceService.cs (1)
177private static ImmutableArray<SyntaxTrivia> GetMergedTrivia(
src\5f6f2f95b47c3dc6\SemanticModelWorkspaceServiceFactory.SemanticModelWorkspaceService.cs (1)
140var linkedIds = document.GetLinkedDocumentIds();
src\a1065d420d446521\NamingStylePreferencesEditorConfigSerializer.cs (9)
30ImmutableArray<SymbolSpecification> symbolSpecifications, 31ImmutableArray<NamingStyle> namingStyles, 32ImmutableArray<NamingRule> namingRules, 47ImmutableArray<SymbolSpecification> symbolSpecifications, 48ImmutableArray<NamingStyle> namingStyles, 49ImmutableArray<NamingRule> rules, 120ImmutableArray<SymbolSpecification> symbolSpecifications, 121ImmutableArray<NamingStyle> namingStyles) 170private static ImmutableDictionary<NamingRule, string> AssignNamesToNamingStyleRules(ImmutableArray<NamingRule> namingRules, ImmutableDictionary<Guid, string> serializedNameMap)
src\a16f30e1d256badc\AbstractTypeInferenceService.AbstractTypeInferrer.cs (4)
40public ImmutableArray<TypeInferenceInfo> InferTypes(int position) 46public ImmutableArray<TypeInferenceInfo> InferTypes(SyntaxNode expression, bool filterUnusable = true) 73private ImmutableArray<TypeInferenceInfo> Filter(IEnumerable<TypeInferenceInfo> types, bool filterUnusable = true) 106var parameters = type.TypeArguments;
src\b310f676f7308b7f\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (6)
26private readonly ImmutableArray<IParameterSymbol> _parameters; 74ImmutableArray<IParameterSymbol> parameters, 123var parameters = GetParameters(owningSymbol); 139static ImmutableArray<IParameterSymbol> GetParameters(ISymbol owningSymbol) 141var parameters = owningSymbol.GetParameters(); 164var parameters = lambdaOrLocalFunction.GetParameters();
src\roslyn\src\Compilers\Core\Portable\Collections\DictionaryExtensions.cs (3)
93/// the values in the passed builder will be converted to an <see cref="ImmutableArray{T}"/> using <see 97public static ImmutableSegmentedDictionary<K, ImmutableArray<V>> ToImmutableSegmentedDictionaryAndFree<K, V>(this PooledDictionary<K, ArrayBuilder<V>> dictionary) 100var result = ImmutableSegmentedDictionary.CreateBuilder<K, ImmutableArray<V>>();
src\roslyn\src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (3)
143public ImmutableArray<V> this[K k] 153return ImmutableArray<V>.Empty; 270internal ImmutableArray<V> Items
src\roslyn\src\Compilers\Core\Portable\Diagnostic\DiagnosticArrayExtensions.cs (1)
11internal static bool HasAnyErrors<T>(this ImmutableArray<T> diagnostics) where T : Diagnostic
src\roslyn\src\Compilers\Core\Portable\DiagnosticAnalyzer\AnalyzerAssemblyLoader.Core.cs (4)
33public ImmutableArray<IAnalyzerAssemblyResolver> AnalyzerAssemblyResolvers { get; } 40internal AnalyzerAssemblyLoader(ImmutableArray<IAnalyzerPathResolver> pathResolvers) 54ImmutableArray<IAnalyzerPathResolver> pathResolvers, 55ImmutableArray<IAnalyzerAssemblyResolver> assemblyResolvers,
src\roslyn\src\Compilers\Core\Portable\DiagnosticAnalyzer\AnalyzerAssemblyLoader.cs (4)
104public ImmutableArray<IAnalyzerPathResolver> AnalyzerPathResolvers { get; } 389internal ImmutableArray<(string OriginalAssemblyPath, string ResolvedAssemblyPath)> GetPathMapSnapshot() 408ImmutableArray<IAnalyzerPathResolver> pathResolvers = default, 409ImmutableArray<IAnalyzerAssemblyResolver> assemblyResolvers = default,
src\roslyn\src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
729public static string NormalizePathPrefix(string filePath, ImmutableArray<KeyValuePair<string, string>> pathMap)
src\roslyn\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\roslyn\src\Compilers\Core\Portable\InternalUtilities\Hash.cs (3)
120internal static int CombineValues<T>(ImmutableArray<T> values, int maxItemsToHash = int.MaxValue) 171internal static int CombineValues(ImmutableArray<string> values, StringComparer stringComparer, int maxItemsToHash = int.MaxValue) 252internal static int GetFNVHashCode(ImmutableArray<byte> data)
src\roslyn\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\roslyn\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\roslyn\src\Compilers\Core\Portable\InternalUtilities\SetWithInsertionOrder.cs (1)
94public ImmutableArray<T> AsImmutable() => _elements.ToImmutableArrayOrEmpty();
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (2)
20private static ImmutableArray<string> s_lazyNumerals; 25var numerals = s_lazyNumerals;
src\roslyn\src\Compilers\Core\Portable\MetadataReference\AssemblyIdentityUtils.cs (1)
36ImmutableArray<byte> publicKeyOrToken = !publicKeyHandle.IsNil
src\roslyn\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\roslyn\src\Dependencies\Collections\Extensions\FixedSizeArrayBuilder.cs (5)
19/// A bare-bones array builder, focused on the case of producing <see cref="ImmutableArray{T}"/>s where the final array 37/// The builder will be moved to an array (see <see cref="MoveToArray"/>) or <see cref="ImmutableArray{T}"/> (see <see 70public void AddRange(ImmutableArray<T> values) 116/// Moves the underlying buffer out of control of this type, into the returned <see cref="ImmutableArray{T}"/>. It 122public ImmutableArray<T> MoveToImmutable()
src\roslyn\src\Dependencies\Collections\Extensions\ICollectionExtensions.cs (1)
76public static void AddRange<T>(this ICollection<T> collection, ImmutableArray<T> values)
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (26)
60public static ImmutableArray<T> ToImmutableArrayOrEmpty<T>(this IEnumerable<T>? items) 67if (items is ImmutableArray<T> array) 82if (items is ImmutableArray<T> array) 271/// <seealso cref="Microsoft.CodeAnalysis.ImmutableArrayExtensions.HasDuplicates{TItem, TValue}(ImmutableArray{TItem}, Func{TItem, TValue}, IEqualityComparer{TValue})"/> 376public static ImmutableArray<T> WhereAsArray<T>(this IEnumerable<T> values, Func<T, bool> predicate) 390public static ImmutableArray<T> WhereAsArray<T, TArg>(this IEnumerable<T> values, Func<T, TArg, bool> predicate, TArg arg) 407public static ImmutableArray<TResult> SelectAsArray<TSource, TResult>(this IEnumerable<TSource>? source, Func<TSource, TResult> selector) 417public static ImmutableArray<TResult> SelectAsArray<TItem, TResult>(this IEnumerable<TItem>? source, Func<TItem, bool> predicate, Func<TItem, TResult> selector) 431public static ImmutableArray<TResult> SelectAsArray<TSource, TResult>(this IEnumerable<TSource>? source, Func<TSource, int, TResult> selector) 446public static ImmutableArray<TResult> SelectAsArray<TSource, TResult, TArg>(this IEnumerable<TSource>? source, Func<TSource, TArg, TResult> selector, TArg arg) 449return ImmutableArray<TResult>.Empty; 461public static ImmutableArray<TResult> SelectAsArray<TSource, TResult>(this IReadOnlyCollection<TSource>? source, Func<TSource, TResult> selector) 473public static ImmutableArray<TResult> SelectAsArray<TSource, TResult, TArg>(this IReadOnlyCollection<TSource>? source, Func<TSource, TArg, TResult> selector, TArg arg) 485public static ImmutableArray<TResult> SelectManyAsArray<TSource, TResult>(this IEnumerable<TSource>? source, Func<TSource, IEnumerable<TResult>> selector) 496public static ImmutableArray<TResult> SelectManyAsArray<TItem, TArg, TResult>(this IEnumerable<TItem>? source, Func<TItem, TArg, IEnumerable<TResult>> selector, TArg arg) 507public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, IEnumerable<TResult>> selector) 520public static ImmutableArray<TResult> SelectManyAsArray<TItem, TArg, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, TArg, IEnumerable<TResult>> selector, TArg arg) 533public static ImmutableArray<TResult> SelectManyAsArray<TSource, TResult>(this IEnumerable<TSource>? source, Func<TSource, OneOrMany<TResult>> selector) 547public static async ValueTask<ImmutableArray<TResult>> SelectAsArrayAsync<TItem, TResult>(this IEnumerable<TItem> source, Func<TItem, ValueTask<TResult>> selector) 561public static async ValueTask<ImmutableArray<TResult>> SelectAsArrayAsync<TItem, TResult>(this IEnumerable<TItem> source, Func<TItem, CancellationToken, ValueTask<TResult>> selector, CancellationToken cancellationToken) 575public static async ValueTask<ImmutableArray<TResult>> SelectAsArrayAsync<TItem, TArg, TResult>(this IEnumerable<TItem> source, Func<TItem, TArg, CancellationToken, ValueTask<TResult>> selector, TArg arg, CancellationToken cancellationToken) 586public 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) 764internal static Dictionary<K, ImmutableArray<T>> ToMultiDictionary<K, T>(this IEnumerable<T> data, Func<T, K> keySelector, IEqualityComparer<K>? comparer = null) 767var dictionary = new Dictionary<K, ImmutableArray<T>>(comparer); 834/// Methods that are available on both <see cref="IEnumerable{T}"/> and <see cref="ImmutableArray{T}"/> are defined in System.Linq namespace 835/// to avoid accidental boxing of <see cref="ImmutableArray{T}"/>. The boxing would occur if the file calling these methods didn't have <c>using System.Linq</c>.
src\roslyn\src\Dependencies\Collections\Extensions\IListExtensions.cs (1)
31/// <seealso cref="ImmutableArrayExtensions.HasDuplicates{TItem, TValue}(System.Collections.Immutable.ImmutableArray{TItem}, Func{TItem, TValue}, IEqualityComparer{TValue})"/>
src\roslyn\src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (156)
24/// The collection of extension methods for the <see cref="ImmutableArray{T}"/> type 36public static ImmutableArray<T> AsImmutable<T>(this IEnumerable<T> items) 48public static ImmutableArray<T> AsImmutableOrEmpty<T>(this IEnumerable<T>? items) 52return ImmutableArray<T>.Empty; 65public static ImmutableArray<T> AsImmutableOrNull<T>(this IEnumerable<T>? items) 81public static ImmutableArray<T> AsImmutable<T>(this T[] items) 94public static ImmutableArray<T> AsImmutableOrNull<T>(this T[]? items) 110public static ImmutableArray<T> AsImmutableOrEmpty<T>(this T[]? items) 114return ImmutableArray<T>.Empty; 125public static ImmutableArray<byte> ToImmutable(this MemoryStream stream) 138public static ImmutableArray<TResult> SelectAsArray<TItem, TResult>(this ImmutableArray<TItem> items, Func<TItem, TResult> map) 153public static ImmutableArray<TResult> SelectAsArray<TItem, TArg, TResult>(this ImmutableArray<TItem> items, Func<TItem, TArg, TResult> map, TArg arg) 168public static ImmutableArray<TResult> SelectAsArray<TItem, TArg, TResult>(this ImmutableArray<TItem> items, Func<TItem, int, TArg, TResult> map, TArg arg) 198public static ImmutableArray<TResult> SelectAsArray<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, bool> predicate, Func<TItem, TResult> selector) 224public static ImmutableArray<TResult> SelectAsArray<TItem, TArg, TResult>(this ImmutableArray<TItem> array, Func<TItem, TArg, bool> predicate, Func<TItem, TArg, TResult> selector, TArg arg) 247public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, IEnumerable<TResult>> selector) 267public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, ImmutableArray<TResult>> selector) 287public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, OneOrMany<TResult>> selector) 308public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, bool> predicate, Func<TItem, IEnumerable<TResult>> selector) 332public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, bool> predicate, Func<TItem, ImmutableArray<TResult>> selector) 356public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, bool> predicate, Func<TItem, OneOrMany<TResult>> selector) 381public static ImmutableArray<TResult> SelectManyAsArray<TItem, TArg, TResult>(this ImmutableArray<TItem> array, Func<TItem, TArg, bool> predicate, Func<TItem, TArg, OneOrMany<TResult>> selector, TArg arg) 399public static async ValueTask<ImmutableArray<TResult>> SelectAsArrayAsync<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, CancellationToken, ValueTask<TResult>> selector, CancellationToken cancellationToken) 414public static async ValueTask<ImmutableArray<TResult>> SelectAsArrayAsync<TItem, TArg, TResult>(this ImmutableArray<TItem> array, Func<TItem, TArg, CancellationToken, ValueTask<TResult>> selector, TArg arg, CancellationToken cancellationToken) 426public static ValueTask<ImmutableArray<TResult>> SelectManyAsArrayAsync<TItem, TArg, TResult>(this ImmutableArray<TItem> source, Func<TItem, TArg, CancellationToken, ValueTask<ImmutableArray<TResult>>> selector, TArg arg, CancellationToken cancellationToken) 429return new ValueTask<ImmutableArray<TResult>>([]); 436async ValueTask<ImmutableArray<TResult>> CreateTaskAsync() 453public static ImmutableArray<TResult> ZipAsArray<T1, T2, TResult>(this ImmutableArray<T1> self, ImmutableArray<T2> other, Func<T1, T2, TResult> map) 473public static ImmutableArray<TResult> ZipAsArray<T1, T2, TArg, TResult>(this ImmutableArray<T1> self, ImmutableArray<T2> other, TArg arg, Func<T1, T2, int, TArg, TResult> map) 493public static ImmutableArray<T> WhereAsArray<T>(this ImmutableArray<T> array, Func<T, bool> predicate) 501public static ImmutableArray<T> WhereAsArray<T, TArg>(this ImmutableArray<T> array, Func<T, TArg, bool> predicate, TArg arg) 504private static ImmutableArray<T> WhereAsArrayImpl<T, TArg>(ImmutableArray<T> array, Func<T, bool>? predicateWithoutArg, Func<T, TArg, bool>? predicateWithArg, TArg arg) 569return ImmutableArray<T>.Empty; 573public static async Task<bool> AnyAsync<T>(this ImmutableArray<T> array, Func<T, Task<bool>> predicateAsync) 584public static async Task<bool> AnyAsync<T, TArg>(this ImmutableArray<T> array, Func<T, TArg, Task<bool>> predicateAsync, TArg arg) 595public static async ValueTask<T?> FirstOrDefaultAsync<T>(this ImmutableArray<T> array, Func<T, Task<bool>> predicateAsync) 610public static ImmutableArray<TBase> Cast<TDerived, TBase>(this ImmutableArray<TDerived> items) 613return ImmutableArray<TBase>.CastUp(items); 624public static bool SetEquals<T>(this ImmutableArray<T> array1, ImmutableArray<T> array2, IEqualityComparer<T> comparer) 665public static ImmutableArray<T> NullToEmpty<T>(this ImmutableArray<T> array) 667return array.IsDefault ? ImmutableArray<T>.Empty : array; 673public static ImmutableArray<T> NullToEmpty<T>(this ImmutableArray<T>? array) 676null or { IsDefault: true } => ImmutableArray<T>.Empty, 682internal static ImmutableArray<T> ConditionallyDeOrder<T>(this ImmutableArray<T> array) 699internal static ImmutableArray<TValue> Flatten<TKey, TValue>( 700this Dictionary<TKey, ImmutableArray<TValue>> dictionary, 723internal static ImmutableArray<T> AddRange<T>(this ImmutableArray<T> self, in TemporaryArray<T> items) 751internal static bool HasDuplicates<T>(this ImmutableArray<T> array) 754internal static bool HasDuplicates<T>(this ImmutableArray<T> array, IEqualityComparer<T> comparer) 757public static bool HasDuplicates<TItem, TValue>(this ImmutableArray<TItem> array, Func<TItem, TValue> selector) 769internal static bool HasDuplicates<TItem, TValue>(this ImmutableArray<TItem> array, Func<TItem, TValue> selector, IEqualityComparer<TValue> comparer) 826(Dictionary<TKey, object> dictionary, Dictionary<TKey, ImmutableArray<TNamespaceOrTypeSymbol>> result) 837static ImmutableArray<TNamespaceOrTypeSymbol> createMembers(object value) 848return ImmutableArray<TNamespaceOrTypeSymbol>.CastUp(builder.ToDowncastedImmutableAndFree<TNamedTypeSymbol>()); 855: ImmutableArray<TNamespaceOrTypeSymbol>.CastUp(ImmutableArray.Create((TNamedTypeSymbol)symbol)); 860internal static Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>> GetTypesFromMemberMap<TKey, TNamespaceOrTypeSymbol, TNamedTypeSymbol> 861(Dictionary<TKey, ImmutableArray<TNamespaceOrTypeSymbol>> map, IEqualityComparer<TKey> comparer) 872var dictionary = new Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>>(capacity, comparer); 876var namedTypes = getOrCreateNamedTypes(entry.Value); 883static ImmutableArray<TNamedTypeSymbol> getOrCreateNamedTypes(ImmutableArray<TNamespaceOrTypeSymbol> members) 890var membersAsNamedTypes = members.As<TNamedTypeSymbol>(); 903return ImmutableArray<TNamedTypeSymbol>.Empty; 917internal static int IndexOf<T>(this ImmutableArray<T> array, T item, IEqualityComparer<T> comparer) 920internal static bool IsSorted<T>(this ImmutableArray<T> array, Comparison<T> comparison) 923internal static bool IsSorted<T>(this ImmutableArray<T> array, IComparer<T>? comparer = null) 938public static bool IsSubsetOf<TElement>(this ImmutableArray<TElement> array, ImmutableArray<TElement> other) 983/// Extension methods that are available on both <see cref="IEnumerable{T}"/> and <see cref="ImmutableArray{T}"/> in System.Linq namespace 984/// are defined in System.Linq namespace to avoid accidental boxing of <see cref="ImmutableArray{T}"/>. 990/// Variant of <see cref="System.Linq.ImmutableArrayExtensions.FirstOrDefault{T}(ImmutableArray{T}, Func{T, bool})"/> 992public static TValue? FirstOrDefault<TValue, TArg>(this ImmutableArray<TValue> array, Func<TValue, TArg, bool> predicate, TArg arg) 1004/// Variant of <see cref="System.Linq.ImmutableArrayExtensions.Single{T}(ImmutableArray{T}, Func{T, bool})"/> 1006public static TValue Single<TValue, TArg>(this ImmutableArray<TValue> array, Func<TValue, TArg, bool> predicate, TArg arg) 1033/// Variant of <see cref="System.Linq.ImmutableArrayExtensions.SequenceEqual{TDerived, TBase}(ImmutableArray{TBase}, ImmutableArray{TDerived}, Func{TBase, TBase, bool})"/>. 1035public static bool SequenceEqual<TElement, TArg>(this ImmutableArray<TElement> array1, ImmutableArray<TElement> array2, TArg arg, Func<TElement, TElement, TArg, bool> predicate) 1066/// Specialization of <see cref="System.Linq.Enumerable.Count{TSource}(IEnumerable{TSource}, Func{TSource, bool})"/> for <see cref="ImmutableArray{T}"/>. 1068public static int Count<T>(this ImmutableArray<T> items, Func<T, bool> predicate) 1084/// Specialization of <see cref="System.Linq.Enumerable.Sum(IEnumerable{int})"/> for <see cref="ImmutableArray{T}"/>. 1086public static int Sum<T>(this ImmutableArray<T> items, Func<T, int> selector) 1096/// Variation of <see cref="System.Linq.Enumerable.Sum(IEnumerable{int})"/> for <see cref="ImmutableArray{T}"/>. 1098public static int Sum<T>(this ImmutableArray<T> items, Func<T, int, int> selector) 1108/// Specialization of <see cref="System.Linq.Enumerable.Concat{TSource}(IEnumerable{TSource}, IEnumerable{TSource})"/> for <see cref="ImmutableArray{T}"/>. 1110public static ImmutableArray<T> Concat<T>(this ImmutableArray<T> first, ImmutableArray<T> second) 1116public static ImmutableArray<T> Concat<T>(this ImmutableArray<T> first, T second) 1122public static ImmutableArray<T> Concat<T>(this ImmutableArray<T> first, ImmutableArray<T> second, ImmutableArray<T> third) 1136public static ImmutableArray<T> Concat<T>(this ImmutableArray<T> first, ImmutableArray<T> second, ImmutableArray<T> third, ImmutableArray<T> fourth) 1152public static ImmutableArray<T> Concat<T>(this ImmutableArray<T> first, ImmutableArray<T> second, ImmutableArray<T> third, ImmutableArray<T> fourth, ImmutableArray<T> fifth) 1168public static ImmutableArray<T> Concat<T>(this ImmutableArray<T> first, ImmutableArray<T> second, ImmutableArray<T> third, ImmutableArray<T> fourth, ImmutableArray<T> fifth, ImmutableArray<T> sixth) 1188public static ImmutableArray<T> Distinct<T>(this ImmutableArray<T> array, IEqualityComparer<T>? comparer = null) 1207var result = (builder.Count == array.Length) ? array : builder.ToImmutable(); 1213/// Variant of <see cref="System.Linq.ImmutableArrayExtensions.Any{T}(ImmutableArray{T}, Func{T, bool})"/>. 1215public static bool Any<T, TArg>(this ImmutableArray<T> array, Func<T, TArg, bool> predicate, TArg arg) 1227/// Variant of <see cref="System.Linq.ImmutableArrayExtensions.All{T}(ImmutableArray{T}, Func{T, bool})"/>. 1229public static bool All<T, TArg>(this ImmutableArray<T> array, Func<T, TArg, bool> predicate, TArg arg) 1248/// Methods that are available on both <see cref="IEnumerable{T}"/> and <see cref="ImmutableArray{T}"/> in System.Collections.Immutable namespace 1249/// are defined in System.Collections.Immutable namespace to avoid accidental boxing of <see cref="ImmutableArray{T}"/>. 1255/// Variant of <see cref="System.Collections.Immutable.ImmutableArray{T}.Contains(T, IEqualityComparer{T})"/> 1257public static bool Contains<T>(this ImmutableArray<T> array, Func<T, bool> predicate) 1261/// Variant of <see cref="System.Collections.Immutable.ImmutableArray.BinarySearch{T}(ImmutableArray{T}, T, IComparer{T}?)"/> 1264public static int BinarySearch<TElement, TValue>(this ImmutableArray<TElement> array, TValue value, Func<TElement, TValue, int> comparer)
src\roslyn\src\Dependencies\Collections\Internal\HashHelpers.cs (1)
40private static readonly ImmutableArray<int> s_primes = ImmutableArray.Create(
src\roslyn\src\Dependencies\Collections\OneOrMany.cs (8)
28public static readonly OneOrMany<T> Empty = new OneOrMany<T>(ImmutableArray<T>.Empty); 31private readonly ImmutableArray<T> _many; 39public OneOrMany(ImmutableArray<T> many) 167: new OneOrMany<T>(ImmutableArray<T>.CastUp(from._many)); 185public ImmutableArray<T> ToImmutable() 206public bool SequenceEqual(ImmutableArray<T> other, IEqualityComparer<T>? comparer = null) 278public static OneOrMany<T> Create<T>(ImmutableArray<T> many) 281public static bool SequenceEqual<T>(this ImmutableArray<T> array, OneOrMany<T> other, IEqualityComparer<T>? comparer = null)
src\roslyn\src\Dependencies\Collections\RoslynImmutableInterlocked.cs (5)
618public static ImmutableArray<T> VolatileRead<T>(ref readonly ImmutableArray<T> location) 620var value = location; 635public static void VolatileWrite<T>(ref ImmutableArray<T> location, ImmutableArray<T> value)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
23/// the scenarios where <see cref="ImmutableArray{T}"/> is applicable, and
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.List.cs (1)
20public static readonly IReadOnlyList<T> Instance = ImmutableArray<T>.Empty;
src\roslyn\src\Dependencies\Collections\TemporaryArray`1.cs (6)
24/// <see cref="ImmutableArray{T}"/>. 179public void AddRange(ImmutableArray<T> items) 299/// Create an <see cref="ImmutableArray{T}"/> with the elements currently held in the temporary array, and clear 302public ImmutableArray<T> ToImmutableAndClear() 310var result = _count switch 3120 => ImmutableArray<T>.Empty,
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilder.cs (27)
61private readonly ImmutableArray<T>.Builder _builder; 83public ImmutableArray<T> ToImmutable() 91public ImmutableArray<T> ToImmutableAndClear() 93ImmutableArray<T> result; 96result = ImmutableArray<T>.Empty; 393public ImmutableArray<T> ToImmutableOrNull() 406public ImmutableArray<U> ToDowncastedImmutable<U>() 411return ImmutableArray<U>.Empty; 423public ImmutableArray<U> ToDowncastedImmutableAndFree<U>() where U : T 425var result = ToDowncastedImmutable<U>(); 433public ImmutableArray<T> ToImmutableAndFree() 437ImmutableArray<T> result; 440result = ImmutableArray<T>.Empty; 613internal Dictionary<K, ImmutableArray<T>> ToDictionary<K>(Func<T, K> keySelector, IEqualityComparer<K>? comparer = null) 618var dictionary1 = new Dictionary<K, ImmutableArray<T>>(1, comparer); 626return new Dictionary<K, ImmutableArray<T>>(comparer); 645var dictionary = new Dictionary<K, ImmutableArray<T>>(accumulator.Count, comparer); 684public void AddRange(ImmutableArray<T> items) 689public void AddRange<U>(ImmutableArray<U> items, Func<U, T> selector) 697public void AddRange(ImmutableArray<T> items, int length) 702public void AddRange(ImmutableArray<T> items, int start, int length) 712public void AddRange<S>(ImmutableArray<S> items) where S : class, T 714AddRange(ImmutableArray<T>.CastUp(items)); 806public ImmutableArray<S> SelectDistinct<S>(Func<T, S> selector) 878public ImmutableArray<TResult> SelectAsArray<TResult>(Func<T, TResult> map) 914public ImmutableArray<TResult> SelectAsArray<TArg, TResult>(Func<T, TArg, TResult> map, TArg arg) 950public ImmutableArray<TResult> SelectAsArrayWithIndex<TArg, TResult>(Func<T, int, TArg, TResult> map, TArg arg)
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilderExtensions.cs (1)
16public static ImmutableArray<T> ToImmutableOrEmptyAndFree<T>(this ArrayBuilder<T>? builder)
src\roslyn\src\Dependencies\Threading\IAsyncEnumerableExtensions.cs (1)
16public static async Task<ImmutableArray<T>> ToImmutableArrayAsync<T>(this IAsyncEnumerable<T> values, CancellationToken cancellationToken)
src\roslyn\src\Dependencies\Threading\ProducerConsumer.cs (7)
25Func<ImmutableArray<TItem>, TArgs, CancellationToken, Task> consumeItems, 49Func<ImmutableArray<TItem>, TArgs, CancellationToken, Task> consumeItems, 127Func<ImmutableArray<TItem>, TArgs, CancellationToken, Task> consumeItems, 141Func<ImmutableArray<TItem>, TArgs, CancellationToken, Task> consumeItems, 191public static Task<ImmutableArray<TItem>> RunParallelAsync<TSource, TArgs>( 204public static async Task<ImmutableArray<TItem>> RunParallelAsync<TSource, TArgs>( 284/// but returns value as an <see cref="IAsyncEnumerable{TItem}"/>. Versus an <see cref="ImmutableArray{TItem}"/>.
src\roslyn\src\Workspaces\CSharp\Portable\SyncedSource\FileBasedPrograms\IBuildService.cs (3)
68ValueTask<ImmutableArray<ImmutableArray<string>>> GetItemMetadataValuesAsync(string itemType, ImmutableArray<string> metadataNames);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleHelpers.cs (3)
119this ImmutableArray<IOption2>.Builder optionsBuilder, 132this ImmutableArray<IOption2>.Builder optionsBuilder, 144this ImmutableArray<IOption2>.Builder optionsBuilder,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleOptions2.cs (2)
21private static readonly ImmutableArray<IOption2>.Builder s_editorConfigOptionsBuilder = ImmutableArray.CreateBuilder<IOption2>(); 356internal static readonly ImmutableArray<IOption2> EditorConfigOptions = s_editorConfigOptionsBuilder.ToImmutable();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\VisualBasic\VisualBasicCodeStyleOptions.cs (2)
14private static readonly ImmutableArray<IOption2>.Builder s_allOptionsBuilder = ImmutableArray.CreateBuilder<IOption2>(); 55public static ImmutableArray<IOption2> EditorConfigOptions => s_allOptionsBuilder.ToImmutable();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\IntervalTreeAlgorithms`2.cs (4)
19public ImmutableArray<T> GetIntervalsThatMatch<TIntrospector, TIntervalTester>( 29public ImmutableArray<T> GetIntervalsThatOverlapWith<TIntrospector>( 36public ImmutableArray<T> GetIntervalsThatIntersectWith<TIntrospector>( 43public ImmutableArray<T> GetIntervalsThatContain<TIntrospector>(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\SimpleMutableIntervalTree`2.cs (3)
39public ImmutableArray<T> GetIntervalsThatOverlapWith(int start, int length) 42public ImmutableArray<T> GetIntervalsThatIntersectWith(int start, int length) 45public ImmutableArray<T> GetIntervalsThatContain(int start, int length)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Diagnostics\IPragmaSuppressionsAnalyzer.cs (1)
26Func<DiagnosticAnalyzer, ImmutableArray<DiagnosticDescriptor>> getSupportedDiagnostics,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Editing\GenerationOptions.cs (1)
30public static readonly ImmutableArray<IOption2> EditorConfigOptions = [PlaceSystemNamespaceFirst, SeparateImportDirectiveGroups];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\Common\EmbeddedSeparatedSyntaxNodeList.cs (2)
17public ImmutableArray<EmbeddedSyntaxNodeOrToken<TSyntaxKind, TSyntaxNode>> NodesAndTokens { get; } 25ImmutableArray<EmbeddedSyntaxNodeOrToken<TSyntaxKind, TSyntaxNode>> nodesAndTokens)
src\roslyn\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) 56public EmbeddedSyntaxToken<TSyntaxKind> WithDiagnostics(ImmutableArray<EmbeddedDiagnostic> diagnostics) 61Optional<ImmutableArray<EmbeddedSyntaxTrivia<TSyntaxKind>>> leadingTrivia = default, 63Optional<ImmutableArray<EmbeddedSyntaxTrivia<TSyntaxKind>>> trailingTrivia = default, 64Optional<ImmutableArray<EmbeddedDiagnostic>> diagnostics = default,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\Common\EmbeddedSyntaxTree.cs (2)
17public readonly ImmutableArray<EmbeddedDiagnostic> Diagnostics; 22ImmutableArray<EmbeddedDiagnostic> diagnostics)
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\VirtualCharGreenSequence.Chunks.cs (1)
15/// is used so we can expose <see cref="VirtualChar"/>s over an <see cref="ImmutableArray{VirtualChar}"/>
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\VirtualCharUtilities.cs (1)
26public static (ImmutableSegmentedList<VirtualChar> sourceCode, ImmutableArray<TextSpan> markdownSpans) StripMarkupCharacters(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\CollectionExpressionUtilities.cs (3)
97var constructors = namedType.Constructors; 122IMethodSymbol? GetAccessibleInstanceConstructor(ImmutableArray<IMethodSymbol> constructors, Func<IMethodSymbol, bool> predicate) 145public static ImmutableArray<IMethodSymbol>? TryGetCollectionBuilderFactoryMethods(
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DirectiveInfo.cs (2)
12Dictionary<TDirectiveTriviaSyntax, ImmutableArray<TDirectiveTriviaSyntax>> conditionalMap) 19public Dictionary<TDirectiveTriviaSyntax, ImmutableArray<TDirectiveTriviaSyntax>> ConditionalMap { get; } = conditionalMap;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ImmutableArrayExtensions.cs (6)
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> ToImmutableAndClear<T>(this ImmutableArray<T>.Builder builder) 42var result = builder.ToImmutable();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ObjectWriterExtensions.cs (3)
13public static void WriteArray<T>(this ObjectWriter writer, ImmutableArray<T> values, Action<ObjectWriter, T> write) 23public static ImmutableArray<T> ReadArray<T>(this ObjectReader reader, Func<ObjectReader, T> read) 26public static ImmutableArray<T> ReadArray<T, TArg>(this ObjectReader reader, Func<ObjectReader, TArg, T> read, TArg arg)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (3)
341public static bool HasAnyOperationDescendant(this ImmutableArray<IOperation> operationBlocks, Func<IOperation, bool> predicate) 374public static bool HasAnyOperationDescendant(this ImmutableArray<IOperation> operationBlocks, OperationKind kind) 437static IOperation? TryGetSingleExplicitStatement(ImmutableArray<IOperation> operations)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SemanticModelExtensions.cs (2)
140var typeArguments = type.GetAllTypeArguments(); 178ImmutableArray<ITypeSymbol> typeArguments,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\StackExtensions.cs (1)
39public static void Push<T>(this Stack<T> stack, ImmutableArray<T> values)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\StringExtensions.cs (1)
188public static ImmutableArray<SymbolDisplayPart> ToSymbolDisplayParts(this string text)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SymbolInfoExtensions.cs (3)
16public static ImmutableArray<ISymbol> GetAllSymbols(this SymbolInfo info) 19private static ImmutableArray<ISymbol> GetAllSymbolsWorker(this SymbolInfo info) 25public static ImmutableArray<ISymbol> GetBestOrAllSymbols(this SymbolInfo info)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (2)
862var conditionalMap = new Dictionary<TDirectiveTriviaSyntax, ImmutableArray<TDirectiveTriviaSyntax>>( 928var condDirectives = condDirectivesBuilder.ToImmutableAndClear();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\TextSpanExtensions.cs (2)
21public static ImmutableArray<TextSpan> ToNormalizedSpans(this ImmutableArray<TextSpan> spans)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\CustomDataFlowAnalysis.cs (2)
32var blocks = controlFlowGraph.Blocks; 67ImmutableArray<BasicBlock> blocks,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.AnalysisData.cs (2)
144ImmutableArray<IParameterSymbol> parameters) 152ImmutableArray<IParameterSymbol> parameters)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageResult.cs (1)
47public ImmutableArray<(ISymbol Symbol, IOperation WriteOperation)> GetUnreadSymbolWrites()
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.cs (2)
412var intervals = tree.GetIntervalsThatContain(textSpan.Start, textSpan.Length); 542var anchorData = _anchorTree.GetIntervalsThatOverlapWith(baseAnchorData.TextSpan.Start, baseAnchorData.TextSpan.Length);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.InitialContextFinder.cs (3)
43public (List<IndentBlockOperation> indentOperations, ImmutableArray<SuppressOperation> suppressOperations) Do(SyntaxToken startToken, SyntaxToken endToken) 53var initialSuppressOperations = GetInitialSuppressOperations(startToken, endToken); 124private ImmutableArray<SuppressOperation> GetInitialSuppressOperations(SyntaxToken startToken, SyntaxToken endToken)
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\ChainedFormattingRules.cs (9)
21private readonly ImmutableArray<AbstractFormattingRule> _formattingRules; 24private readonly ImmutableArray<AbstractFormattingRule> _addSuppressOperationsRules; 25private readonly ImmutableArray<AbstractFormattingRule> _addAnchorIndentationOperationsRules; 26private readonly ImmutableArray<AbstractFormattingRule> _addIndentBlockOperationsRules; 27private readonly ImmutableArray<AbstractFormattingRule> _addAlignTokensOperationsRules; 28private readonly ImmutableArray<AbstractFormattingRule> _getAdjustNewLinesOperationRules; 29private readonly ImmutableArray<AbstractFormattingRule> _getAdjustSpacesOperationRules; 82private static ImmutableArray<AbstractFormattingRule> FilterToRulesImplementingMethod(ImmutableArray<AbstractFormattingRule> rules, string name)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingOptions2.cs (2)
97internal static readonly ImmutableArray<IOption2> EditorConfigOptions = [UseTabs, TabSize, IndentationSize, NewLine, InsertFinalNewLine]; 102internal static readonly ImmutableArray<IOption2> UndocumentedOptions = [WrappingColumn, ConditionalExpressionWrappingLength];
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextAlignTokensOperationAction.cs (1)
12ImmutableArray<AbstractFormattingRule> formattingRules,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextAnchorIndentationOperationAction.cs (1)
12ImmutableArray<AbstractFormattingRule> formattingRules,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextGetAdjustNewLinesOperation.cs (1)
11ImmutableArray<AbstractFormattingRule> formattingRules,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextGetAdjustSpacesOperation.cs (1)
11ImmutableArray<AbstractFormattingRule> formattingRules,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextIndentBlockOperationAction.cs (1)
12ImmutableArray<AbstractFormattingRule> formattingRules,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextSuppressOperationAction.cs (1)
12ImmutableArray<AbstractFormattingRule> formattingRules,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\TriviaEngine\AbstractTriviaFormatter.cs (1)
265public ImmutableArray<TextChange> FormatToTextChanges(CancellationToken cancellationToken)
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Helpers\RemoveUnnecessaryImports\IUnnecessaryImportsProvider.cs (2)
15ImmutableArray<TSyntaxNode> GetUnnecessaryImports(SemanticModel model, TextSpan? span, CancellationToken cancellationToken); 17ImmutableArray<TSyntaxNode> GetUnnecessaryImports(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Indentation\AbstractIndentation.Indenter.cs (1)
44ImmutableArray<AbstractFormattingRule> rules,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser_SymbolSpec.cs (12)
49out Property<ImmutableArray<SymbolKindOrTypeKind>> kinds, 50out Property<ImmutableArray<Accessibility>> accessibilities, 51out Property<ImmutableArray<ModifierKind>> modifiers) 86private static readonly ImmutableArray<SymbolKindOrTypeKind> s_allApplicableKinds = 89private static ImmutableArray<SymbolKindOrTypeKind> ParseSymbolKindList(string symbolSpecApplicableKinds) 156private static readonly ImmutableArray<Accessibility> s_allAccessibility = 167private static ImmutableArray<Accessibility> ParseAccessibilityKindList(string symbolSpecApplicableAccessibilities) 220private static readonly ImmutableArray<ModifierKind> _allModifierKind = [s_abstractModifierKind, s_asyncModifierKind, s_constModifierKind, s_readonlyModifierKind, s_staticModifierKind]; 222private static ImmutableArray<ModifierKind> ParseModifiers(string symbolSpecRequiredModifiers) 264public static string ToEditorConfigString(this ImmutableArray<SymbolKindOrTypeKind> symbols) 362public static string ToEditorConfigString(this ImmutableArray<Accessibility> accessibilities, string languageName) 421public static string ToEditorConfigString(this ImmutableArray<ModifierKind> modifiers, string languageName)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Naming\IdentifierNameParts.cs (6)
15internal readonly struct IdentifierNameParts(string baseName, ImmutableArray<string> baseNameParts) 18public readonly ImmutableArray<string> BaseNameParts = baseNameParts; 20public static IdentifierNameParts CreateIdentifierNameParts(ISymbol symbol, ImmutableArray<NamingRule> rules) 31var words = CreateWords(parts, baseName); 36private static string RemovePrefixesAndSuffixes(ISymbol symbol, ImmutableArray<NamingRule> rules, string baseName) 73private static ImmutableArray<string> CreateWords(in TemporaryArray<TextSpan> parts, string name)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (1)
61public string CreateName(ImmutableArray<string> words)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyleOptions.cs (1)
32internal static readonly ImmutableArray<IOption2> EditorConfigOptions = [NamingPreferences];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyleRules.cs (5)
11internal sealed class NamingStyleRules(ImmutableArray<NamingRule> namingRules) 13public ImmutableArray<NamingRule> NamingRules { get; } = namingRules; 15private readonly ImmutableArray<SymbolKind> _symbolKindsThatCanBeOverridden = 88var implementedInterfaces = containingType.AllInterfaces; 92var implementedInterfaceMembersWithSameName = implementedInterface.GetMembers(symbol.Name);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (10)
27public readonly ImmutableArray<SymbolSpecification> SymbolSpecifications; 30public readonly ImmutableArray<NamingStyle> NamingStyles; 33public ImmutableArray<SerializableNamingRule> SerializableNamingRules 57ImmutableArray<SymbolSpecification> symbolSpecifications, 58ImmutableArray<NamingStyle> namingStyles, 59ImmutableArray<SerializableNamingRule> serializableRules) 76ImmutableArray<SymbolSpecification> symbolSpecifications, 77ImmutableArray<NamingStyle> namingStyles, 78ImmutableArray<NamingRule> namingRules) 336public static NamingStylePreferences Empty { get; } = new([], [], ImmutableArray<NamingRule>.Empty);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (10)
26ImmutableArray<SymbolSpecification.SymbolKindOrTypeKind> symbolKindList, 27ImmutableArray<Accessibility> accessibilityList = default, 28ImmutableArray<SymbolSpecification.ModifierKind> modifiers = default) : IEquatable<SymbolSpecification> 39public ImmutableArray<SymbolKindOrTypeKind> ApplicableSymbolKindList { get; } = symbolKindList.IsDefault ? DefaultSymbolSpecificationTemplate.ApplicableSymbolKindList : symbolKindList; 42public ImmutableArray<Accessibility> ApplicableAccessibilityList { get; } = accessibilityList.IsDefault ? DefaultSymbolSpecificationTemplate.ApplicableAccessibilityList : accessibilityList; 45public ImmutableArray<ModifierKind> RequiredModifierList { get; } = modifiers.IsDefault ? DefaultSymbolSpecificationTemplate.RequiredModifierList : modifiers; 120private static Modifiers CollapseModifiers(ImmutableArray<ModifierKind> requiredModifierList) 285private static ImmutableArray<SymbolKindOrTypeKind> GetSymbolKindListFromXElement(XElement symbolKindListElement) 306private static ImmutableArray<Accessibility> GetAccessibilityListFromXElement(XElement accessibilityListElement) 312private static ImmutableArray<ModifierKind> GetModifierListFromXElement(XElement modifierListElement)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\Option2.cs (1)
86ImmutableArray<OptionStorageLocation> IOption.StorageLocations => [];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionDefinition.cs (4)
104type == typeof(ImmutableArray<bool>) || 105type == typeof(ImmutableArray<string>) || 106type == typeof(ImmutableArray<int>) || 107type == typeof(ImmutableArray<long>);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\PerLanguageOption2.cs (1)
75ImmutableArray<OptionStorageLocation> IOption.StorageLocations => [];
src\roslyn\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\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\FileBannerFacts\IFileBannerFactsExtensions.cs (2)
12public static ImmutableArray<SyntaxTrivia> GetTriviaAfterLeadingBlankLines( 15var leadingBlankLines = bannerService.GetLeadingBlankLines(node);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\HeaderFacts\AbstractHeaderFacts.cs (2)
30=> IsOnHeader(root, position, ownerOfHeader, lastTokenOrNodeOfHeader, ImmutableArray<SyntaxNode>.Empty); 37ImmutableArray<THoleSyntax> holes)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SelectedMembers\AbstractSelectedMembers.cs (5)
31protected abstract ImmutableArray<(SyntaxNode declarator, SyntaxToken identifier)> GetDeclaratorsAndIdentifiers(TMemberDeclarationSyntax member); 33public Task<ImmutableArray<SyntaxNode>> GetSelectedFieldsAndPropertiesAsync( 37public Task<ImmutableArray<SyntaxNode>> GetSelectedMembersAsync( 41private async Task<ImmutableArray<SyntaxNode>> GetSelectedMembersAsync( 76private ImmutableArray<SyntaxNode> GetMembersInSpan(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SemanticFacts\ISemanticFacts.cs (4)
85ImmutableArray<IMethodSymbol> GetDeconstructionAssignmentMethods(SemanticModel semanticModel, SyntaxNode node); 87ImmutableArray<IMethodSymbol> GetDeconstructionForEachMethods(SemanticModel semanticModel, SyntaxNode node); 99ImmutableArray<ISymbol> GetBestOrAllSymbols(SemanticModel semanticModel, SyntaxNode? node, SyntaxToken token, CancellationToken cancellationToken); 106ImmutableArray<IMethodSymbol> GetLocalFunctionSymbols(Compilation compilation, ISymbol symbol, CancellationToken cancellationToken);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SyntaxFacts\ISyntaxFacts.cs (1)
187ImmutableArray<SyntaxNode> GetMatchingConditionalDirectives(SyntaxNode directive, CancellationToken cancellationToken);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SyntaxFacts\ISyntaxFactsExtensions.cs (1)
160this ISyntaxFacts syntaxFacts, ImmutableArray<SyntaxNode> nodes, CancellationToken cancellationToken)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Simplification\SymbolAnnotation.cs (1)
23public static ImmutableArray<ISymbol> GetSymbols(SyntaxAnnotation annotation, Compilation compilation)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.AnonymousTypeSymbolKey.cs (8)
21var properties = symbol.GetMembers().OfType<IPropertySymbol>().ToImmutableArray(); 22var propertyTypes = properties.SelectAsArray(p => p.Type); 23var propertyNames = properties.SelectAsArray(p => (string?)p.Name); 24var propertyIsReadOnly = properties.SelectAsArray(p => p.SetMethod == null); 25var propertyLocations = properties.SelectAsArray(p => p.Locations.FirstOrDefault()); 38var contextualProperties = contextualSymbol?.GetMembers().OfType<IPropertySymbol>().ToImmutableArray() ?? []; 48var propertyLocations = ReadPropertyLocations(reader, out var propertyLocationsFailureReason); 75private static ImmutableArray<Location> ReadPropertyLocations(SymbolKeyReader reader, out string? failureReason)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.BodyLevelSymbolKey.cs (2)
19public static ImmutableArray<Location?> GetBodyLevelSourceLocations(ISymbol symbol, CancellationToken cancellationToken) 63var locations = GetBodyLevelSourceLocations(symbol, cancellationToken);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (5)
152var locations = BodyLevelSymbolKey.GetBodyLevelSourceLocations(symbol, cancellationToken); 261ImmutableArray<ISymbol>.CastUp(symbols.Builder.ToImmutableAndClear()), 266private static T? SafeGet<T>(ImmutableArray<T> values, int index) where T : class 276ImmutableArray<IParameterSymbol> parameters, 303var members = metadataName == null
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.ErrorTypeSymbolKey.cs (2)
44visitor.WriteSymbolKeyArray(ImmutableArray<ITypeSymbol>.Empty); 52private static ImmutableArray<string?> GetContainingNamespaceNamesInReverse(INamespaceSymbol namespaceSymbol)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.FunctionPointerTypeSymbolKey.cs (2)
37var callingConventionModifiers = ImmutableArray<INamedTypeSymbol>.Empty;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.ModuleSymbolKey.cs (1)
38if (assemblyModules is ImmutableArray<IModuleSymbol> modules)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.ParameterSymbolKey.cs (1)
85string metadataName, int ordinal, ImmutableArray<IParameterSymbol> parameters)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.PooledArrayBuilder.cs (2)
34public ImmutableArray<T> ToImmutable() => Builder.ToImmutable(); 52public void AddValuesIfNotNull(ImmutableArray<T> values)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
384ImmutableArray<IParameterSymbol> parameters)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (7)
277internal void WriteSymbolKeyArray<TSymbol>(ImmutableArray<TSymbol> symbols) 283internal void WriteParameterTypesArray(ImmutableArray<IParameterSymbol> symbols) 286internal void WriteBooleanArray(ImmutableArray<bool> array) 292internal void WriteStringArray(ImmutableArray<string?> strings) 295internal void WriteLocationArray(ImmutableArray<Location?> array) 300internal void WriteRefKindArray(ImmutableArray<IParameterSymbol> values) 303private void WriteArray<T, U>(ImmutableArray<T> array, Action<U> writeValue)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TupleTypeSymbolKey.cs (4)
67var elementLocations = ReadElementLocations(reader, out var elementLocationsFailureReason); 80var elementNamesArray = elementNames.ToImmutable(); 95var elementLocations = ReadElementLocations(reader, out var elementLocationsFailureReason); 126private static ImmutableArray<Location> ReadElementLocations(SymbolKeyReader reader, out string? failureReason)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKeyResolution.cs (2)
27internal SymbolKeyResolution(ImmutableArray<ISymbol> candidateSymbols, CandidateReason candidateReason) 38public ImmutableArray<ISymbol> CandidateSymbols => field.NullToEmpty();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (10)
112SemanticModel model, TForEachStatementSyntax forEach, out IMethodSymbol getEnumeratorMethod, out ITypeSymbol elementType, out ImmutableArray<ILocalSymbol> localVariables); 120protected abstract ImmutableArray<TArgumentSyntax> GetArguments(TExpressionSyntax expression); 778GetForEachSymbols(this.OriginalSemanticModel, forEachStatement, out var originalGetEnumerator, out var originalElementType, out var originalLocalVariables); 779GetForEachSymbols(this.SpeculativeSemanticModel, newForEachStatement, out var newGetEnumerator, out var newElementType, out var newLocalVariables); 1055var specifiedArguments = GetArguments(originalInvocation); 1058var symbolParameters = originalSymbol.GetParameters(); 1059var newSymbolParameters = newSymbol.GetParameters(); 1068ImmutableArray<TArgumentSyntax> specifiedArguments, 1069ImmutableArray<IParameterSymbol> signature1Parameters, 1070ImmutableArray<IParameterSymbol> signature2Parameters)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.Builder.cs (2)
139private void BuildArrays(ImmutableArray<Node>.Builder nodes, ImmutableArray<Edge>.Builder edges)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.cs (4)
49private readonly ImmutableArray<Node> _nodes; 50private readonly ImmutableArray<Edge> _edges; 52private BKTree(char[] concatenatedLowerCaseWords, ImmutableArray<Node> nodes, ImmutableArray<Edge> edges)
src\roslyn\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\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IAsyncEnumerableExtensions.cs (1)
38public static IAsyncEnumerable<T> MergeAsync<T>(this ImmutableArray<IAsyncEnumerable<T>> streams, CancellationToken cancellationToken)
src\roslyn\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\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\InterceptsLocationUtilities.cs (4)
20internal record struct InterceptsLocationData(ImmutableArray<byte> ContentHash, int Position) 31public static ImmutableArray<InterceptsLocationData> GetInterceptsLocationData(ImmutableArray<AttributeData> attributes) 103var contentHash = bytes[HashIndex..HashSize].ToImmutableArray();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\LightweightOverloadResolution.cs (4)
31public IMethodSymbol? RefineOverload(SymbolInfo symbolInfo, ImmutableArray<IMethodSymbol> candidates) 34public (IMethodSymbol? method, int parameterIndex) RefineOverloadAndPickParameter(SymbolInfo symbolInfo, ImmutableArray<IMethodSymbol> candidates) 52private (IMethodSymbol? symbol, int parameterIndex) GuessCurrentSymbolAndParameter(ImmutableArray<IMethodSymbol> methodGroup) 85var parameters = method.Parameters;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PathMetadataUtilities.cs (2)
27var parts = folders.SelectMany(folder => folder.Split(NamespaceSeparatorArray)).SelectAsArray(syntaxFacts.EscapeIdentifier); 59public static ImmutableArray<string> BuildFoldersFromNamespace(string? @namespace, string? rootNamespace = null)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PooledBuilderExtensions.cs (6)
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) 47public static ImmutableDictionary<K, ImmutableArray<V>> ToImmutableMultiDictionaryAndFree<K, V, TArg>(this PooledDictionary<K, ArrayBuilder<V>> builders, Func<K, TArg, bool>? where, TArg whereArg) 50var result = ImmutableDictionary.CreateBuilder<K, ImmutableArray<V>>(); 77public static ImmutableArray<T> ToFlattenedImmutableArrayAndFree<T>(this ArrayBuilder<ArrayBuilder<T>> builders)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\RestrictedInternalsVisibleToAttribute.cs (1)
13public ImmutableArray<string> AllowedNamespaces { get; } = [.. allowedNamespaces];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SerializableBytes.cs (1)
222public ImmutableArray<byte> ToImmutableArray()
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SpecializedTasks.cs (4)
46public static Task<ImmutableArray<T>> EmptyImmutableArray<T>() 87public static async ValueTask<ImmutableArray<TResult>> WhenAll<TResult>(this IReadOnlyCollection<Task<TResult>> tasks) 102public static readonly Task<ImmutableArray<T>> EmptyImmutableArray = Task.FromResult(ImmutableArray<T>.Empty);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (4)
29public static ImmutableArray<Compilation> GetReferencedCompilations(this Compilation compilation) 48public static ImmutableArray<IAssemblySymbol> GetReferencedAssemblySymbols(this Compilation compilation, bool excludePreviousSubmissions = false) 52var referencedAssemblySymbols = compilation.Assembly.Modules.First().ReferencedAssemblySymbols; 193=> compilation.GetTypeByMetadataName(typeof(ImmutableArray<>).FullName!);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IMethodSymbolExtensions.cs (1)
49public static ImmutableArray<IMethodSymbol> GetAllMethodSymbolsOfPartialParts(this IMethodSymbol method)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (25)
44public static ImmutableArray<ITypeParameterSymbol> GetAllTypeParameters(this INamedTypeSymbol? symbol) 50public static ImmutableArray<ITypeSymbol> GetAllTypeArguments(this INamedTypeSymbol? symbol) 190public static ImmutableArray<(INamedTypeSymbol type, ImmutableArray<ISymbol> members)> GetAllUnimplementedMembers( 208static ImmutableArray<ISymbol> GetImplicitlyImplementableMembers(INamedTypeSymbol type, ISymbol within) 260public static ImmutableArray<(INamedTypeSymbol type, ImmutableArray<ISymbol> members)> GetAllUnimplementedMembersInThis( 278public static ImmutableArray<(INamedTypeSymbol type, ImmutableArray<ISymbol> members)> GetAllUnimplementedMembersInThis( 281Func<INamedTypeSymbol, ISymbol, ImmutableArray<ISymbol>> interfaceMemberGetter, 297public static ImmutableArray<(INamedTypeSymbol type, ImmutableArray<ISymbol> members)> GetAllUnimplementedExplicitMembers( 311private static ImmutableArray<ISymbol> GetExplicitlyImplementableMembers(INamedTypeSymbol type, ISymbol within) 338private static ImmutableArray<(INamedTypeSymbol type, ImmutableArray<ISymbol> members)> GetAllUnimplementedMembers( 343Func<INamedTypeSymbol, ISymbol, ImmutableArray<ISymbol>> interfaceMemberGetter, 367var typesToImplement = GetTypesToImplement(classOrStructType, interfacesOrAbstractClasses, allowReimplementation, cancellationToken); 372private static ImmutableArray<INamedTypeSymbol> GetTypesToImplement( 383private static ImmutableArray<INamedTypeSymbol> GetAbstractClassesToImplement( 389private static ImmutableArray<INamedTypeSymbol> GetInterfacesToImplement( 404var alreadyImplementedInterfaces = baseType == null || allowReimplementation 413private static ImmutableArray<ISymbol> GetUnimplementedMembers( 418Func<INamedTypeSymbol, ISymbol, ImmutableArray<ISymbol>> interfaceMemberGetter, 528private static ImmutableArray<ISymbol> GetMembers(INamedTypeSymbol type, ISymbol within) 541public static ImmutableArray<ISymbol> GetOverridableMembers(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (12)
141public static ImmutableArray<ISymbol> ExplicitInterfaceImplementations(this ISymbol symbol) 144IEventSymbol @event => ImmutableArray<ISymbol>.CastUp(@event.ExplicitInterfaceImplementations), 145IMethodSymbol method => ImmutableArray<ISymbol>.CastUp(method.ExplicitInterfaceImplementations), 146IPropertySymbol property => ImmutableArray<ISymbol>.CastUp(property.ExplicitInterfaceImplementations), 150public static ImmutableArray<ISymbol> ExplicitOrImplicitInterfaceImplementations(this ISymbol symbol) 175public static ImmutableArray<ISymbol> ImplicitInterfaceImplementations(this ISymbol symbol) 423public static ImmutableArray<IParameterSymbol> GetParameters(this ISymbol? symbol) 431public static ImmutableArray<ITypeParameterSymbol> GetTypeParameters(this ISymbol? symbol) 439public static ImmutableArray<ITypeParameterSymbol> GetAllTypeParameters(this ISymbol? symbol) 452public static ImmutableArray<ITypeSymbol> GetTypeArguments(this ISymbol? symbol) 460public static ImmutableArray<ITypeSymbol> GetAllTypeArguments(this ISymbol symbol) 705var potentialGetAwaiters = semanticModel.LookupSymbols(position,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (6)
43public static ImmutableArray<INamedTypeSymbol> GetAllInterfacesIncludingThis(this ITypeSymbol type) 45var allInterfaces = type.AllInterfaces; 446public static ImmutableArray<T> GetAccessibleMembersInThisAndBaseTypes<T>(this ITypeSymbol? containingType, ISymbol within) where T : class, ISymbol 456public static ImmutableArray<T> GetAccessibleMembersInThisAndBaseTypes<T>(this ITypeSymbol? containingType, string memberName, ISymbol within) where T : class, ISymbol 593var allTypeArgs1 = n1.GetAllTypeArguments(); 594var allTypeArgs2 = n2.GetAllTypeArguments();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.SubstituteTypesVisitor.cs (1)
72var allTypeArguments = symbol.GetAllTypeArguments();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SignatureComparer.cs (4)
108ImmutableArray<IParameterSymbol> parameters1, 109ImmutableArray<IParameterSymbol> parameters2) 118ImmutableArray<IParameterSymbol> parameters1, 119ImmutableArray<IParameterSymbol> parameters2,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.cs (2)
43private readonly ImmutableArray<EquivalenceVisitor> _equivalenceVisitors; 44private readonly ImmutableArray<GetHashCodeVisitor> _getHashCodeVisitors;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (8)
76internal 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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (1)
109private static int CombineHashCodes<T>(ImmutableArray<T> array, int currentHash, Func<int, T, int> func)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\CodeFixContextExtensions.cs (1)
27internal static void RegisterFixes(this CodeFixContext context, IEnumerable<CodeAction> actions, ImmutableArray<Diagnostic> diagnostics)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\FixAllContextHelper.cs (15)
22public static async Task<ImmutableDictionary<Document, ImmutableArray<Diagnostic>>> GetDocumentDiagnosticsToFixAsync( 27var allDiagnostics = ImmutableArray<Diagnostic>.Empty; 40var documentDiagnostics = await fixAllContext.GetDocumentDiagnosticsAsync(document).ConfigureAwait(false); 41return ImmutableDictionary<Document, ImmutableArray<Diagnostic>>.Empty.SetItem(document, documentDiagnostics); 72var projectsToFix = project.Solution.Projects 80allDiagnostics = await ProducerConsumer<ImmutableArray<Diagnostic>>.RunParallelAsync( 92await foreach (var diagnostics in results.ConfigureAwait(false)) 106return ImmutableDictionary<Document, ImmutableArray<Diagnostic>>.Empty; 113static async Task<ImmutableDictionary<Document, ImmutableArray<Diagnostic>>> GetSpanDiagnosticsAsync( 115IEnumerable<KeyValuePair<Document, ImmutableArray<TextSpan>>> documentsAndSpans) 122var documentDiagnostics = await fixAllContext.GetDocumentSpanDiagnosticsAsync(document, span).ConfigureAwait(false); 132private static async Task<ImmutableDictionary<Document, ImmutableArray<Diagnostic>>> GetDocumentDiagnosticsToFixAsync( 134ImmutableArray<Diagnostic> diagnostics, 137var builder = ImmutableDictionary.CreateBuilder<Document, ImmutableArray<Diagnostic>>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\ForkingSyntaxEditorBasedCodeFixProvider.cs (1)
56ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\MultiProjectSafeFixAllProvider.cs (6)
40using var _ = PooledDictionary<DocumentId, ImmutableArray<DocumentId>>.GetInstance(out var documentToLinkedDocuments); 61var linkedDocuments = document.GetLinkedDocumentIds(); 81var diagnostics = documentToDiagnostics[document]; 92var linkedDiagnostics = documentToDiagnostics.TryGetValue(linkedDocument, out var result) ? result : []; 110static IEnumerable<TextSpan> GetDiagnosticSpans(ImmutableArray<Diagnostic> diagnostics)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\SyntaxEditorBasedCodeFixProvider.cs (5)
19private static readonly ImmutableArray<FixAllScope> s_defaultSupportedFixAllScopes = 41var filteredDiagnostics = diagnostics.Distinct() 65var diagnostics = ImmutableArray.Create(diagnostic ?? context.Diagnostics[0]); 70Document document, ImmutableArray<Diagnostic> diagnostics, CancellationToken cancellationToken) 98Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixesAndRefactorings\AbstractFixAllSpanMappingService.cs (3)
20protected abstract Task<ImmutableDictionary<Document, ImmutableArray<TextSpan>>> GetFixAllSpansIfWithinGlobalStatementAsync( 23public Task<ImmutableDictionary<Document, ImmutableArray<TextSpan>>> GetFixAllSpansAsync( 32private async Task<ImmutableDictionary<Document, ImmutableArray<TextSpan>>> GetFixAllSpansAsync(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixesAndRefactorings\IFixAllSpanMappingService.cs (1)
30Task<ImmutableDictionary<Document, ImmutableArray<TextSpan>>> GetFixAllSpansAsync(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService_FindDeclaration.cs (3)
30var declarations = _symbolDeclarationService.GetDeclarations(destination); 163var declarationReferences = _symbolDeclarationService.GetDeclarations(symbol); 164var declarations = declarationReferences.SelectAsArray(r => r.GetSyntax(cancellationToken));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationSymbolFactory.cs (72)
29ImmutableArray<AttributeData> attributes, Accessibility accessibility, 31ImmutableArray<IEventSymbol> explicitInterfaceImplementations, 44ImmutableArray<AttributeData> attributes, 49ImmutableArray<IPropertySymbol> explicitInterfaceImplementations, 51ImmutableArray<IParameterSymbol> parameters, 78ImmutableArray<AttributeData> attributes, Accessibility accessibility, DeclarationModifiers modifiers, 79ITypeSymbol type, RefKind refKind, ImmutableArray<IPropertySymbol> explicitInterfaceImplementations, string name, 80ImmutableArray<IParameterSymbol> parameters, IMethodSymbol? getMethod, IMethodSymbol? setMethod, 103ImmutableArray<AttributeData> attributes, 120ImmutableArray<AttributeData> attributes, 124ImmutableArray<IParameterSymbol> parameters, 125ImmutableArray<SyntaxNode> statements = default, 126ImmutableArray<SyntaxNode> baseConstructorArguments = default, 127ImmutableArray<SyntaxNode> thisConstructorArguments = default, 139ImmutableArray<AttributeData> attributes, string typeName, 140ImmutableArray<SyntaxNode> statements = default) 149ImmutableArray<AttributeData> attributes, 154ImmutableArray<IMethodSymbol> explicitInterfaceImplementations, 156ImmutableArray<ITypeParameterSymbol> typeParameters, 157ImmutableArray<IParameterSymbol> parameters, 158ImmutableArray<SyntaxNode> statements = default, 159ImmutableArray<SyntaxNode> handlesExpressions = default, 160ImmutableArray<AttributeData> returnTypeAttributes = default, 173ImmutableArray<AttributeData> attributes, Accessibility accessibility, DeclarationModifiers modifiers, 176ImmutableArray<IMethodSymbol> explicitInterfaceImplementations, 177string? name, ImmutableArray<ITypeParameterSymbol> typeParameters, 178ImmutableArray<IParameterSymbol> parameters, 179ImmutableArray<SyntaxNode> statements = default, 180ImmutableArray<SyntaxNode> handlesExpressions = default, 181ImmutableArray<AttributeData> returnTypeAttributes = default, 192ImmutableArray<AttributeData> attributes, 197ImmutableArray<IParameterSymbol> parameters, 198ImmutableArray<SyntaxNode> statements = default, 199ImmutableArray<AttributeData> returnTypeAttributes = default, 224ImmutableArray<SyntaxNode> statements = default, 225ImmutableArray<AttributeData> toTypeAttributes = default, 245ImmutableArray<AttributeData> attributes, 252ImmutableArray<SyntaxNode> statements = default, 253ImmutableArray<AttributeData> toTypeAttributes = default, 277ImmutableArray<AttributeData> attributes, RefKind refKind, bool isParams, ITypeSymbol type, string name, bool isOptional = false, bool hasDefaultValue = false, object? defaultValue = null) 287ImmutableArray<AttributeData>? attributes = null, 329ImmutableArray<AttributeData> attributes, 331ImmutableArray<ITypeSymbol> constraintTypes, 358ImmutableArray<AttributeData> attributes = default, 360ImmutableArray<IMethodSymbol> explicitInterfaceImplementations = default, 361ImmutableArray<SyntaxNode> statements = default) 383ImmutableArray<AttributeData> attributes, 385ImmutableArray<SyntaxNode> statements) 405ImmutableArray<TypedConstant> constructorArguments = default, 406ImmutableArray<KeyValuePair<string, TypedConstant>> namedArguments = default) 415ImmutableArray<AttributeData> attributes, 419ImmutableArray<ITypeParameterSymbol> typeParameters = default, 421ImmutableArray<INamedTypeSymbol> interfaces = default, 423ImmutableArray<ISymbol> members = default, 434ImmutableArray<AttributeData> attributes, 438ImmutableArray<ITypeParameterSymbol> typeParameters = default, 440ImmutableArray<INamedTypeSymbol> interfaces = default, 442ImmutableArray<ISymbol> members = default, 460ImmutableArray<AttributeData> attributes, 466ImmutableArray<ITypeParameterSymbol> typeParameters = default, 467ImmutableArray<IParameterSymbol> parameters = default, 512ImmutableArray<AttributeData> attributes = default, 515ImmutableArray<IMethodSymbol> explicitInterfaceImplementations = default, 517ImmutableArray<IParameterSymbol>? parameters = null, 518ImmutableArray<SyntaxNode> statements = default, 521Optional<ImmutableArray<AttributeData>> returnTypeAttributes = default) 542ImmutableArray<AttributeData> attributes = default, 543ImmutableArray<IParameterSymbol>? parameters = null, 546ImmutableArray<IPropertySymbol> explicitInterfaceImplementations = default, 570ImmutableArray<AttributeData> attributes = default, 573ImmutableArray<IEventSymbol> explicitInterfaceImplementations = default, 591ImmutableArray<AttributeData> attributes = default,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAbstractMethodSymbol.cs (14)
17private readonly ImmutableArray<AttributeData> _returnTypeAttributes; 19public virtual ImmutableArray<AttributeData> GetReturnTypeAttributes() 24ImmutableArray<AttributeData> attributes, 28ImmutableArray<AttributeData> returnTypeAttributes, 42public abstract ImmutableArray<ITypeSymbol> TypeArguments { get; } 43public abstract ImmutableArray<ITypeParameterSymbol> TypeParameters { get; } 44public abstract ImmutableArray<IParameterSymbol> Parameters { get; } 52public abstract ImmutableArray<IMethodSymbol> ExplicitInterfaceImplementations { get; } 59public ImmutableArray<NullableAnnotation> TypeArgumentNullableAnnotations => TypeArguments.SelectAsArray(a => a.NullableAnnotation); 90public ImmutableArray<CustomModifier> RefCustomModifiers 93public virtual ImmutableArray<CustomModifier> ReturnTypeCustomModifiers 110public ImmutableArray<INamedTypeSymbol> UnmanagedCallingConventionTypes => []; 115public IMethodSymbol Construct(ImmutableArray<ITypeSymbol> typeArguments, ImmutableArray<CodeAnalysis.NullableAnnotation> typeArgumentNullableAnnotations)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAbstractNamedTypeSymbol.cs (13)
18public ImmutableArray<IFieldSymbol> TupleElements { get; protected set; } 20internal readonly ImmutableArray<CodeGenerationAbstractNamedTypeSymbol> TypeMembers; 25ImmutableArray<AttributeData> attributes, 31ImmutableArray<CodeGenerationAbstractNamedTypeSymbol> typeMembers) 64public INamedTypeSymbol Construct(ImmutableArray<ITypeSymbol> typeArguments, ImmutableArray<NullableAnnotation> typeArgumentNullableAnnotations) 81public abstract ImmutableArray<IMethodSymbol> InstanceConstructors { get; } 82public abstract ImmutableArray<IMethodSymbol> StaticConstructors { get; } 83public abstract ImmutableArray<IMethodSymbol> Constructors { get; } 84public abstract ImmutableArray<ITypeSymbol> TypeArguments { get; } 85public abstract ImmutableArray<NullableAnnotation> TypeArgumentNullableAnnotations { get; } 87public ImmutableArray<CustomModifier> GetTypeArgumentCustomModifiers(int ordinal) 97public abstract ImmutableArray<ITypeParameterSymbol> TypeParameters { get; }
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationArrayTypeSymbol.cs (3)
24public ImmutableArray<int> Sizes 32public ImmutableArray<int> LowerBounds 57public ImmutableArray<CustomModifier> CustomModifiers
src\roslyn\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\roslyn\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\roslyn\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\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationConstructorSymbol.cs (2)
12ImmutableArray<AttributeData> attributes, 15ImmutableArray<IParameterSymbol> parameters) : CodeGenerationMethodSymbol(containingType,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationConversionSymbol.cs (2)
12ImmutableArray<AttributeData> attributes, 18ImmutableArray<AttributeData> toTypeAttributes,
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationDestructorSymbol.cs (1)
11ImmutableArray<AttributeData> attributes) : CodeGenerationMethodSymbol(containingType,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationEventSymbol.cs (4)
13ImmutableArray<AttributeData> attributes, 17ImmutableArray<IEventSymbol> explicitInterfaceImplementations, 26public ImmutableArray<IEventSymbol> ExplicitInterfaceImplementations { get; } = explicitInterfaceImplementations.NullToEmpty(); 66public static ImmutableArray<CustomModifier> TypeCustomModifiers => [];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationFieldSymbol.cs (3)
14ImmutableArray<AttributeData> attributes, 81public ImmutableArray<CustomModifier> RefCustomModifiers => []; 83public ImmutableArray<CustomModifier> CustomModifiers
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationMethodSymbol.cs (9)
17public override ImmutableArray<ITypeParameterSymbol> TypeParameters { get; } 18public override ImmutableArray<IParameterSymbol> Parameters { get; } 19public override ImmutableArray<IMethodSymbol> ExplicitInterfaceImplementations { get; } 24ImmutableArray<AttributeData> attributes, 29ImmutableArray<IMethodSymbol> explicitInterfaceImplementations, 31ImmutableArray<ITypeParameterSymbol> typeParameters, 32ImmutableArray<IParameterSymbol> parameters, 33ImmutableArray<AttributeData> returnTypeAttributes, 95public override ImmutableArray<ITypeSymbol> TypeArguments
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationNamedTypeSymbol.cs (18)
18private readonly ImmutableArray<ITypeParameterSymbol> _typeParameters; 19private readonly ImmutableArray<INamedTypeSymbol> _interfaces; 20private readonly ImmutableArray<ISymbol> _members; 25ImmutableArray<AttributeData> attributes, 31ImmutableArray<ITypeParameterSymbol> typeParameters, 33ImmutableArray<INamedTypeSymbol> interfaces, 36ImmutableArray<ISymbol> members, 37ImmutableArray<CodeGenerationAbstractNamedTypeSymbol> typeMembers, 114public static ImmutableArray<ISymbol> CandidateSymbols 122public override ImmutableArray<ITypeSymbol> TypeArguments 130public override ImmutableArray<NullableAnnotation> TypeArgumentNullableAnnotations 139public override ImmutableArray<ITypeParameterSymbol> TypeParameters 149public override ImmutableArray<INamedTypeSymbol> Interfaces 157public override ImmutableArray<ISymbol> GetMembers() 160public override ImmutableArray<INamedTypeSymbol> GetTypeMembers() 163public override ImmutableArray<IMethodSymbol> InstanceConstructors 172public override ImmutableArray<IMethodSymbol> StaticConstructors 181public override ImmutableArray<IMethodSymbol> Constructors
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationNamespaceOrTypeSymbol.cs (6)
15ImmutableArray<AttributeData> attributes, 23public virtual ImmutableArray<ISymbol> GetMembers() 26public ImmutableArray<ISymbol> GetMembers(string name) 29public virtual ImmutableArray<INamedTypeSymbol> GetTypeMembers() 32public ImmutableArray<INamedTypeSymbol> GetTypeMembers(string name) 35public ImmutableArray<INamedTypeSymbol> GetTypeMembers(string name, int arity)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationNamespaceSymbol.cs (1)
59public ImmutableArray<INamespaceSymbol> ConstituentNamespaces
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationOperatorSymbol.cs (3)
12ImmutableArray<AttributeData> attributes, 17ImmutableArray<IParameterSymbol> parameters, 18ImmutableArray<AttributeData> returnTypeAttributes,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationParameterSymbol.cs (3)
14ImmutableArray<AttributeData> attributes, 58public ImmutableArray<CustomModifier> RefCustomModifiers => []; 60public ImmutableArray<CustomModifier> CustomModifiers => [];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationPointerTypeSymbol.cs (1)
33public ImmutableArray<CustomModifier> CustomModifiers
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationPropertySymbol.cs (7)
14ImmutableArray<AttributeData> attributes, 19ImmutableArray<IPropertySymbol> explicitInterfaceImplementations, 22ImmutableArray<IParameterSymbol> parametersOpt, 30public ImmutableArray<IParameterSymbol> Parameters { get; } = parametersOpt.NullToEmpty(); 31public ImmutableArray<IPropertySymbol> ExplicitInterfaceImplementations { get; } = explicitInterfaceImplementations.NullToEmpty(); 80public ImmutableArray<CustomModifier> RefCustomModifiers => []; 82public ImmutableArray<CustomModifier> TypeCustomModifiers => [];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationSymbol.cs (10)
21private readonly ImmutableArray<AttributeData> _attributes; 32ImmutableArray<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\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationTypeSymbol.cs (8)
17ImmutableArray<AttributeData> attributes, 31public virtual ImmutableArray<INamedTypeSymbol> Interfaces 34public ImmutableArray<INamedTypeSymbol> AllInterfaces 53public static ImmutableArray<ITypeSymbol> TupleElementTypes => default; 55public static ImmutableArray<string> TupleElementNames => default; 64public ImmutableArray<SymbolDisplayPart> ToDisplayParts(NullableFlowState topLevelNullability, SymbolDisplayFormat format = null) 70public ImmutableArray<SymbolDisplayPart> ToMinimalDisplayParts(SemanticModel semanticModel, NullableFlowState topLevelNullability, int position, SymbolDisplayFormat format = null) 87public virtual ImmutableArray<ITypeSymbol> UnionCaseTypes => [];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeRefactorings\CodeRefactoringContextExtensions.cs (7)
21this CodeRefactoringContext context, ImmutableArray<TCodeAction> actions, TextSpan? applicableToSpan = null) 50public static Task<ImmutableArray<TSyntaxNode>> GetRelevantNodesAsync<TSyntaxNode>(this CodeRefactoringContext context) where TSyntaxNode : SyntaxNode 53public static async Task<ImmutableArray<TSyntaxNode>> GetRelevantNodesAsync<TSyntaxNode>(this CodeRefactoringContext context, bool allowEmptyNodes) where TSyntaxNode : SyntaxNode 75public static Task<ImmutableArray<TSyntaxNode>> GetRelevantNodesAsync<TSyntaxNode>( 81public static async Task<ImmutableArray<TSyntaxNode>> GetRelevantNodesAsync<TSyntaxNode>( 88public static ImmutableArray<TSyntaxNode> GetRelevantNodes<TSyntaxNode>( 92public static ImmutableArray<TSyntaxNode> GetRelevantNodes<TSyntaxNode>(
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\ImportAdderService.cs (3)
76ImmutableArray<INamespaceSymbol> namespaceSymbols, 96ImmutableArray<INamespaceSymbol> namespaceSymbols, 245var importsToAdd = importToSyntax.SelectAsArray(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\ContextQuery\SyntaxContext.cs (1)
98public ImmutableArray<ITypeSymbol> InferredTypes { get; } = document.GetRequiredLanguageService<ITypeInferenceService>().InferTypes(semanticModel, position, cancellationToken);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\DocumentExtensions.cs (3)
180var errors = await GetErrorsAsync(document, cancellationToken, ignoreErrorCode).ConfigureAwait(false); 184public static async Task<ImmutableArray<Diagnostic>> GetErrorsAsync(this Document document, CancellationToken cancellationToken, IList<string>? ignoreErrorCode = null) 202var errors = await newDocument.GetErrorsAsync(cancellationToken, ignoreErrorCodes).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IMethodSymbolExtensions.cs (10)
23var parameterNames = NameGenerator.EnsureUniqueness( 35var newTypeParameterNames = NameGenerator.EnsureUniqueness( 43public static IMethodSymbol RenameTypeParameters(this IMethodSymbol method, ImmutableArray<string> newNames) 51var updatedTypeParameters = RenameTypeParameters( 76this IMethodSymbol method, ImmutableArray<string> parameterNames) 78var parameterList = method.Parameters; 84var parameters = parameterList.RenameParameters(parameterNames); 99private static ImmutableArray<ITypeParameterSymbol> RenameTypeParameters( 100ImmutableArray<ITypeParameterSymbol> typeParameters, 101ImmutableArray<string> newNames,
src\roslyn\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\roslyn\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\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\StringBuilderExtensions.cs (1)
37public static StringBuilder AppendJoinedValues<T>(this StringBuilder builder, string separator, ImmutableArray<T> values, Action<T, StringBuilder> append)
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateEqualsMethod.cs (17)
30ImmutableArray<ISymbol> symbols, 37var statements = CreateEqualsMethodStatements( 48public static IMethodSymbol CreateEqualsMethod(this Compilation compilation, ImmutableArray<SyntaxNode> statements) 56ImmutableArray<SyntaxNode> statements) 80ImmutableArray<ISymbol> symbols, 84var statements = CreateIEquatableEqualsMethodStatements( 96var parameters = ImmutableArray.Create(CodeGenerationSymbolFactory.CreateParameterSymbol( 99attributes: ImmutableArray<AttributeData>.Empty)); 120private static ImmutableArray<SyntaxNode> CreateEqualsMethodStatements( 126ImmutableArray<ISymbol> members, 240ImmutableArray<ISymbol> members, SyntaxNode localNameExpression, 291private static ImmutableArray<SyntaxNode> CreateIEquatableEqualsMethodStatements( 297ImmutableArray<ISymbol> members) 476public static ImmutableArray<ISymbol> CreateMemberDelegatingConstructor( 482ImmutableArray<IParameterSymbol> parameters, 491var newMembers = generateProperties 494var statements = factory.CreateAssignmentStatements(
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions.cs (13)
48public static ImmutableArray<SyntaxNode> CreateThrowNotImplementedStatementBlock( 52public static ImmutableArray<SyntaxNode> CreateArguments( 54ImmutableArray<IParameterSymbol> parameters) 183public static ImmutableArray<SyntaxNode> GetGetAccessorStatements( 201var arguments = generator.CreateArguments(property.Parameters); 222public static ImmutableArray<SyntaxNode> GetSetAccessorStatements( 240var arguments = generator.CreateArguments(property.Parameters); 283public static ImmutableArray<ISymbol> CreateFieldsForParameters( 284ImmutableArray<IParameterSymbol> parameters, ImmutableDictionary<string, string>? parameterToNewFieldMap, bool isContainedInUnsafeType) 305public static ImmutableArray<ISymbol> CreatePropertiesForParameters( 306ImmutableArray<IParameterSymbol> parameters, ImmutableDictionary<string, string>? parameterToNewPropertyMap, bool isContainedInUnsafeType) 335public static ImmutableArray<SyntaxNode> CreateAssignmentStatements( 339ImmutableArray<IParameterSymbol> parameters,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Formatting\FormatterShared.cs (4)
24public async Task<Document> FormatAsync(Document document, SyntaxAnnotation annotation, SyntaxFormattingOptions options, ImmutableArray<AbstractFormattingRule> rules, CancellationToken cancellationToken) 30public SyntaxNode Format(SyntaxNode node, SyntaxAnnotation annotation, SyntaxFormattingOptions options, ImmutableArray<AbstractFormattingRule> rules, CancellationToken cancellationToken) 33public SyntaxNode Format(SyntaxNode node, IEnumerable<TextSpan>? spans, SyntaxFormattingOptions options, ImmutableArray<AbstractFormattingRule> rules, CancellationToken cancellationToken) 36public IFormattingResult GetFormattingResult(SyntaxNode node, IEnumerable<TextSpan>? spans, SyntaxFormattingOptions options, ImmutableArray<AbstractFormattingRule> rules, CancellationToken cancellationToken)
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Helpers\MefHostServicesHelpers.cs (2)
16public static ImmutableArray<Assembly> LoadNearbyAssemblies(ImmutableArray<string> assemblyNames)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Indentation\AbstractIndentationService.cs (1)
52var formattingRules = ImmutableArray.Create(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\AddImports\AbstractAddImportsService.cs (9)
26protected abstract ImmutableArray<SyntaxNode> GetGlobalImports(SemanticModel semanticModel, SyntaxNode? contextLocation, SyntaxGenerator generator, CancellationToken cancellationToken); 57var globalImports = GetGlobalImports(semanticModel, contextLocation, generator, cancellationToken); 58var containers = GetAllContainers(root, contextLocation); 62private static ImmutableArray<SyntaxNode> GetAllContainers(SyntaxNode root, SyntaxNode? contextLocation) 71SyntaxNode import, ImmutableArray<SyntaxNode> containers, ImmutableArray<SyntaxNode> globalImports) 137var globalImports = GetGlobalImports(semanticModel, contextLocation, generator, cancellationToken); 138var containers = GetAllContainers(root, contextLocation); 165var contextSpine = applicableContainer.GetAncestorsOrThis<SyntaxNode>().ToImmutableArray();
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\SemanticsFactsService\AbstractSemanticFactsService.cs (4)
219public ImmutableArray<IMethodSymbol> GetDeconstructionAssignmentMethods(SemanticModel semanticModel, SyntaxNode node) 222public ImmutableArray<IMethodSymbol> GetDeconstructionForEachMethods(SemanticModel semanticModel, SyntaxNode node) 243public ImmutableArray<ISymbol> GetBestOrAllSymbols(SemanticModel semanticModel, SyntaxNode? node, SyntaxToken token, CancellationToken cancellationToken) 249public ImmutableArray<IMethodSymbol> GetLocalFunctionSymbols(Compilation compilation, ISymbol symbol, CancellationToken cancellationToken)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\SymbolDeclarationService\ISymbolDeclarationService.cs (1)
17ImmutableArray<SyntaxReference> GetDeclarations(ISymbol symbol);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\SyntaxFactsService\ISyntaxFactsService.cs (1)
18Task<ImmutableArray<SyntaxNode>> GetSelectedFieldsAndPropertiesAsync(SyntaxTree syntaxTree, TextSpan textSpan, bool allowPartialSelection, CancellationToken cancellationToken);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\TypeInferenceService\AbstractTypeInferenceService.cs (15)
15private static ImmutableArray<ITypeSymbol> InferTypeBasedOnNameIfEmpty( 16SemanticModel semanticModel, ImmutableArray<ITypeSymbol> result, string? nameOpt) 26private static ImmutableArray<TypeInferenceInfo> InferTypeBasedOnNameIfEmpty( 27SemanticModel semanticModel, ImmutableArray<TypeInferenceInfo> result, string? nameOpt) 31var types = InferTypeBasedOnName(semanticModel, nameOpt); 38private static readonly ImmutableArray<string> s_booleanPrefixes = 41private static ImmutableArray<ITypeSymbol> InferTypeBasedOnName( 79public ImmutableArray<ITypeSymbol> InferTypes( 83var result = CreateTypeInferrer(semanticModel, cancellationToken) 90public ImmutableArray<ITypeSymbol> InferTypes( 94var result = CreateTypeInferrer(semanticModel, cancellationToken) 101public ImmutableArray<TypeInferenceInfo> GetTypeInferenceInfo( 105var result = CreateTypeInferrer(semanticModel, cancellationToken).InferTypes(position); 109public ImmutableArray<TypeInferenceInfo> GetTypeInferenceInfo( 113var result = CreateTypeInferrer(semanticModel, cancellationToken).InferTypes(expression);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\TypeInferenceService\ITypeInferenceService.cs (4)
27ImmutableArray<ITypeSymbol> InferTypes(SemanticModel semanticModel, SyntaxNode expression, string? nameOpt, CancellationToken cancellationToken); 28ImmutableArray<ITypeSymbol> InferTypes(SemanticModel semanticModel, int position, string? nameOpt, CancellationToken cancellationToken); 30ImmutableArray<TypeInferenceInfo> GetTypeInferenceInfo(SemanticModel semanticModel, int position, string? nameOpt, CancellationToken cancellationToken); 31ImmutableArray<TypeInferenceInfo> GetTypeInferenceInfo(SemanticModel semanticModel, SyntaxNode expression, string? nameOpt, CancellationToken cancellationToken);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Options\MemberDisplayOptions.cs (1)
39public static readonly ImmutableArray<IOption2> EditorConfigOptions = [HideAdvancedMembers];
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\ISimplificationService.cs (2)
32ImmutableArray<TextSpan> spans, 34ImmutableArray<AbstractReducer> reducers = default,
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\LayeredServiceUtilities.cs (1)
19private static readonly ImmutableArray<string> s_orderedProductLayers = [ServiceLayer.Host, ServiceLayer.Editor, ServiceLayer.Desktop, ServiceLayer.Default];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefLanguageServices.cs (4)
15[assembly: DebuggerTypeProxy(typeof(MefLanguageServices.LazyServiceMetadataDebuggerProxy), Target = typeof(ImmutableArray<Lazy<ILanguageService, WorkspaceServiceMetadata>>))] 23private readonly ImmutableArray<(Lazy<ILanguageService, LanguageServiceMetadata> lazyService, bool usesFactory)> _services; 54ImmutableArray<IDisposable> disposableServices; 134internal sealed class LazyServiceMetadataDebuggerProxy(ImmutableArray<Lazy<ILanguageService, LanguageServiceMetadata>> services)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefWorkspaceServices.cs (9)
16[assembly: DebuggerTypeProxy(typeof(MefWorkspaceServices.LazyServiceMetadataDebuggerProxy), Target = typeof(ImmutableArray<Lazy<IWorkspaceService, WorkspaceServiceMetadata>>))] 24private readonly ImmutableArray<(Lazy<IWorkspaceService, WorkspaceServiceMetadata> lazyService, bool usesFactory)> _services; 37private ImmutableArray<string> _languages; 76ImmutableArray<IDisposable> disposableServices; 148private ImmutableArray<string> ComputeSupportedLanguages() 150var localLanguages = _languages; 153var list = HostExportProvider.GetExports<ILanguageService, LanguageServiceMetadata>().Select(lz => lz.Metadata.Language).Concat( 169internal override ImmutableArray<string> SupportedLanguagesArray => ComputeSupportedLanguages(); 203internal sealed class LazyServiceMetadataDebuggerProxy(ImmutableArray<Lazy<IWorkspaceService, WorkspaceServiceMetadata>> services)
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 async ValueTask<ImmutableArray<PackageResult>> FindPackagesAsync(string source, TypeQuery typeQuery, NamespaceQuery namespaceQuery, CancellationToken cancellationToken) 159=> ImmutableArray<PackageResult>.Empty; 161public async ValueTask<ImmutableArray<PackageWithAssemblyResult>> FindPackagesWithAssemblyAsync(string source, string assemblyName, CancellationToken cancellationToken) 162=> ImmutableArray<PackageWithAssemblyResult>.Empty; 164public async ValueTask<ImmutableArray<ReferenceAssemblyResult>> FindReferenceAssembliesAsync(TypeQuery typeQuery, NamespaceQuery namespaceQuery, CancellationToken cancellationToken) 165=> ImmutableArray<ReferenceAssemblyResult>.Empty;
SymbolSearch\ISymbolSearchUpdateEngine.cs (3)
20ValueTask<ImmutableArray<PackageResult>> FindPackagesAsync( 22ValueTask<ImmutableArray<PackageWithAssemblyResult>> FindPackagesWithAssemblyAsync( 24ValueTask<ImmutableArray<ReferenceAssemblyResult>> FindReferenceAssembliesAsync(
Tags\WellKnownTags.cs (77)
66internal static readonly ImmutableArray<string> Assembly = [WellKnownTags.Assembly]; 67internal static readonly ImmutableArray<string> ClassPublic = [WellKnownTags.Class, WellKnownTags.Public]; 68internal static readonly ImmutableArray<string> ClassProtected = [WellKnownTags.Class, WellKnownTags.Protected]; 69internal static readonly ImmutableArray<string> ClassPrivate = [WellKnownTags.Class, WellKnownTags.Private]; 70internal static readonly ImmutableArray<string> ClassInternal = [WellKnownTags.Class, WellKnownTags.Internal]; 71internal static readonly ImmutableArray<string> ConstantPublic = [WellKnownTags.Constant, WellKnownTags.Public]; 72internal static readonly ImmutableArray<string> ConstantProtected = [WellKnownTags.Constant, WellKnownTags.Protected]; 73internal static readonly ImmutableArray<string> ConstantPrivate = [WellKnownTags.Constant, WellKnownTags.Private]; 74internal static readonly ImmutableArray<string> ConstantInternal = [WellKnownTags.Constant, WellKnownTags.Internal]; 75internal static readonly ImmutableArray<string> DelegatePublic = [WellKnownTags.Delegate, WellKnownTags.Public]; 76internal static readonly ImmutableArray<string> DelegateProtected = [WellKnownTags.Delegate, WellKnownTags.Protected]; 77internal static readonly ImmutableArray<string> DelegatePrivate = [WellKnownTags.Delegate, WellKnownTags.Private]; 78internal static readonly ImmutableArray<string> DelegateInternal = [WellKnownTags.Delegate, WellKnownTags.Internal]; 79internal static readonly ImmutableArray<string> EnumPublic = [WellKnownTags.Enum, WellKnownTags.Public]; 80internal static readonly ImmutableArray<string> EnumProtected = [WellKnownTags.Enum, WellKnownTags.Protected]; 81internal static readonly ImmutableArray<string> EnumPrivate = [WellKnownTags.Enum, WellKnownTags.Private]; 82internal static readonly ImmutableArray<string> EnumInternal = [WellKnownTags.Enum, WellKnownTags.Internal]; 83internal static readonly ImmutableArray<string> EnumMemberPublic = [WellKnownTags.EnumMember, WellKnownTags.Public]; 84internal static readonly ImmutableArray<string> EnumMemberProtected = [WellKnownTags.EnumMember, WellKnownTags.Protected]; 85internal static readonly ImmutableArray<string> EnumMemberPrivate = [WellKnownTags.EnumMember, WellKnownTags.Private]; 86internal static readonly ImmutableArray<string> EnumMemberInternal = [WellKnownTags.EnumMember, WellKnownTags.Internal]; 87internal static readonly ImmutableArray<string> EventPublic = [WellKnownTags.Event, WellKnownTags.Public]; 88internal static readonly ImmutableArray<string> EventProtected = [WellKnownTags.Event, WellKnownTags.Protected]; 89internal static readonly ImmutableArray<string> EventPrivate = [WellKnownTags.Event, WellKnownTags.Private]; 90internal static readonly ImmutableArray<string> EventInternal = [WellKnownTags.Event, WellKnownTags.Internal]; 91internal static readonly ImmutableArray<string> ExtensionMethodPublic = [WellKnownTags.ExtensionMethod, WellKnownTags.Public]; 92internal static readonly ImmutableArray<string> ExtensionMethodProtected = [WellKnownTags.ExtensionMethod, WellKnownTags.Protected]; 93internal static readonly ImmutableArray<string> ExtensionMethodPrivate = [WellKnownTags.ExtensionMethod, WellKnownTags.Private]; 94internal static readonly ImmutableArray<string> ExtensionMethodInternal = [WellKnownTags.ExtensionMethod, WellKnownTags.Internal]; 95internal static readonly ImmutableArray<string> FieldPublic = [WellKnownTags.Field, WellKnownTags.Public]; 96internal static readonly ImmutableArray<string> FieldProtected = [WellKnownTags.Field, WellKnownTags.Protected]; 97internal static readonly ImmutableArray<string> FieldPrivate = [WellKnownTags.Field, WellKnownTags.Private]; 98internal static readonly ImmutableArray<string> FieldInternal = [WellKnownTags.Field, WellKnownTags.Internal]; 99internal static readonly ImmutableArray<string> InterfacePublic = [WellKnownTags.Interface, WellKnownTags.Public]; 100internal static readonly ImmutableArray<string> InterfaceProtected = [WellKnownTags.Interface, WellKnownTags.Protected]; 101internal static readonly ImmutableArray<string> InterfacePrivate = [WellKnownTags.Interface, WellKnownTags.Private]; 102internal static readonly ImmutableArray<string> InterfaceInternal = [WellKnownTags.Interface, WellKnownTags.Internal]; 103internal static readonly ImmutableArray<string> Intrinsic = [WellKnownTags.Intrinsic]; 104internal static readonly ImmutableArray<string> Keyword = [WellKnownTags.Keyword]; 105internal static readonly ImmutableArray<string> Label = [WellKnownTags.Label]; 106internal static readonly ImmutableArray<string> Local = [WellKnownTags.Local]; 107internal static readonly ImmutableArray<string> Namespace = [WellKnownTags.Namespace]; 108internal static readonly ImmutableArray<string> MethodPublic = [WellKnownTags.Method, WellKnownTags.Public]; 109internal static readonly ImmutableArray<string> MethodProtected = [WellKnownTags.Method, WellKnownTags.Protected]; 110internal static readonly ImmutableArray<string> MethodPrivate = [WellKnownTags.Method, WellKnownTags.Private]; 111internal static readonly ImmutableArray<string> MethodInternal = [WellKnownTags.Method, WellKnownTags.Internal]; 112internal static readonly ImmutableArray<string> ModulePublic = [WellKnownTags.Module, WellKnownTags.Public]; 113internal static readonly ImmutableArray<string> ModuleProtected = [WellKnownTags.Module, WellKnownTags.Protected]; 114internal static readonly ImmutableArray<string> ModulePrivate = [WellKnownTags.Module, WellKnownTags.Private]; 115internal static readonly ImmutableArray<string> ModuleInternal = [WellKnownTags.Module, WellKnownTags.Internal]; 116internal static readonly ImmutableArray<string> Folder = [WellKnownTags.Folder]; 117internal static readonly ImmutableArray<string> OperatorPublic = [WellKnownTags.Operator, WellKnownTags.Public]; 118internal static readonly ImmutableArray<string> OperatorProtected = [WellKnownTags.Operator, WellKnownTags.Protected]; 119internal static readonly ImmutableArray<string> OperatorPrivate = [WellKnownTags.Operator, WellKnownTags.Private]; 120internal static readonly ImmutableArray<string> OperatorInternal = [WellKnownTags.Operator, WellKnownTags.Internal]; 121internal static readonly ImmutableArray<string> Parameter = [WellKnownTags.Parameter]; 122internal static readonly ImmutableArray<string> PropertyPublic = [WellKnownTags.Property, WellKnownTags.Public]; 123internal static readonly ImmutableArray<string> PropertyProtected = [WellKnownTags.Property, WellKnownTags.Protected]; 124internal static readonly ImmutableArray<string> PropertyPrivate = [WellKnownTags.Property, WellKnownTags.Private]; 125internal static readonly ImmutableArray<string> PropertyInternal = [WellKnownTags.Property, WellKnownTags.Internal]; 126internal static readonly ImmutableArray<string> RangeVariable = [WellKnownTags.RangeVariable]; 127internal static readonly ImmutableArray<string> Reference = [WellKnownTags.Reference]; 128internal static readonly ImmutableArray<string> StructurePublic = [WellKnownTags.Structure, WellKnownTags.Public]; 129internal static readonly ImmutableArray<string> StructureProtected = [WellKnownTags.Structure, WellKnownTags.Protected]; 130internal static readonly ImmutableArray<string> StructurePrivate = [WellKnownTags.Structure, WellKnownTags.Private]; 131internal static readonly ImmutableArray<string> StructureInternal = [WellKnownTags.Structure, WellKnownTags.Internal]; 132internal static readonly ImmutableArray<string> TypeParameter = [WellKnownTags.TypeParameter]; 133internal static readonly ImmutableArray<string> Snippet = [WellKnownTags.Snippet]; 135internal static readonly ImmutableArray<string> Error = [WellKnownTags.Error]; 136internal static readonly ImmutableArray<string> Warning = [WellKnownTags.Warning]; 137internal static readonly ImmutableArray<string> StatusInformation = [WellKnownTags.StatusInformation]; 139internal static readonly ImmutableArray<string> AddReference = [WellKnownTags.AddReference]; 140internal static readonly ImmutableArray<string> TargetTypeMatch = [WellKnownTags.TargetTypeMatch]; 142internal static readonly ImmutableArray<string> CSharpFile = [WellKnownTags.File, LanguageNames.CSharp]; 143internal static readonly ImmutableArray<string> VisualBasicFile = [WellKnownTags.File, LanguageNames.VisualBasic]; 145internal static readonly ImmutableArray<string> CSharpProject = [WellKnownTags.Project, LanguageNames.CSharp]; 146internal 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)
17ValueTask EnableLoggingAsync(ImmutableArray<string> loggerTypeNames, ImmutableArray<FunctionId> functionIds, CancellationToken cancellationToken);
TemporaryStorage\TemporaryStorageService.cs (3)
196ImmutableArray<byte> contentHash) 269ImmutableArray<byte> contentHash) 275public 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)
18public abstract Task<ImmutableArray<(string mappedFilePath, TextChange mappedTextChange)>> GetMappedTextChangesAsync( 23public abstract Task<ImmutableArray<MappedSpanResult>> MapSpansAsync( 28protected static ImmutableArray<(string mappedFilePath, TextChange mappedTextChange)> MatchMappedSpansToTextChanges( 29ImmutableArray<TextChange> textChanges, 30ImmutableArray<MappedSpanResult> mappedSpanResults)
Workspace\Host\DocumentService\IDocumentExcerptService.cs (2)
38internal readonly struct ExcerptResult(SourceText content, TextSpan mappedSpan, ImmutableArray<ClassifiedSpan> classifiedSpans, Document document, TextSpan span) 53public readonly ImmutableArray<ClassifiedSpan> ClassifiedSpans = classifiedSpans;
Workspace\Host\DocumentService\IRazorSourceGeneratedDocumentSpanMappingService.cs (3)
14Task<ImmutableArray<MappedTextChange>> GetMappedTextChangesAsync(SourceGeneratedDocument oldDocument, SourceGeneratedDocument newDocument, CancellationToken cancellationToken); 16Task<ImmutableArray<MappedSpanResult>> MapSpansAsync(SourceGeneratedDocument document, ImmutableArray<TextSpan> spans, CancellationToken cancellationToken);
Workspace\Host\DocumentService\ISourceGeneratedDocumentSpanMappingService.cs (3)
16Task<ImmutableArray<MappedTextChange>> GetMappedTextChangesAsync(SourceGeneratedDocument oldDocument, SourceGeneratedDocument newDocument, CancellationToken cancellationToken); 18Task<ImmutableArray<MappedSpanResult>> MapSpansAsync(SourceGeneratedDocument document, ImmutableArray<TextSpan> spans, CancellationToken cancellationToken);
Workspace\Host\DocumentService\ISpanMappingService.cs (2)
29Task<ImmutableArray<(string mappedFilePath, TextChange mappedTextChange)>> GetMappedTextChangesAsync( 47Task<ImmutableArray<MappedSpanResult>> MapSpansAsync(Document document, IEnumerable<TextSpan> spans, CancellationToken cancellationToken);
Workspace\Host\DocumentService\SpanMappingHelper.cs (4)
25public static async Task<ImmutableArray<MappedSpanResult>?> TryGetMappedSpanResultAsync(Document document, ImmutableArray<TextSpan> textSpans, CancellationToken cancellationToken) 30var result = await sourceGeneratedSpanMappingService.MapSpansAsync(sourceGeneratedDocument, textSpans, cancellationToken).ConfigureAwait(false); 47var mappedSpanResult = await spanMappingService.MapSpansAsync(document, textSpans, cancellationToken).ConfigureAwait(false);
Workspace\Host\EventListener\EventListenerTracker.cs (2)
21private readonly ImmutableArray<Lazy<IEventListener, EventListenerMetadata>> _eventListeners = [.. eventListeners.Where(el => el.Metadata.Service == kind)]; 43internal ref readonly ImmutableArray<Lazy<IEventListener, EventListenerMetadata>> EventListeners
Workspace\Host\EventListener\IWorkspaceEventListenerProvider.cs (1)
38private readonly ImmutableArray<IEventListener> _eventListeners = [.. eventListeners];
Workspace\Host\HostWorkspaceServices.cs (1)
129internal virtual ImmutableArray<string> SupportedLanguagesArray => [];
Workspace\Host\Mef\MefHostServices.cs (3)
92public static ImmutableArray<Assembly> DefaultAssemblies 109internal static ImmutableArray<string> DefaultAssemblyNames = 125private static ImmutableArray<Assembly> LoadDefaultAssemblies()
Workspace\Host\Metadata\IAnalyzerAssemblyLoaderProvider.cs (2)
40private readonly ImmutableArray<IAnalyzerAssemblyResolver> _assemblyResolvers; 41private readonly ImmutableArray<IAnalyzerPathResolver> _assemblyPathResolvers;
Workspace\Host\Metadata\WorkspaceMetadataFileReferenceResolver.cs (1)
28public override ImmutableArray<PortableExecutableReference> ResolveReference(string reference, string baseFilePath, MetadataReferenceProperties properties)
Workspace\Host\PersistentStorage\IPersistentStorageConfiguration.cs (1)
39private static readonly ImmutableArray<char> s_invalidPathChars = [.. Path.GetInvalidPathChars(), '/'];
Workspace\Host\SolutionServices.cs (2)
47internal ImmutableArray<string> SupportedLanguagesArray 73internal ImmutableArray<string> GetSupportedLanguages<TLanguageService>() where TLanguageService : ILanguageService
Workspace\IsolatedAnalyzerFileReference.cs (12)
62public override ImmutableArray<DiagnosticAnalyzer> GetAnalyzers(string language) 65public override ImmutableArray<DiagnosticAnalyzer> GetAnalyzersForAllLanguages() 69public override ImmutableArray<ISourceGenerator> GetGenerators() 72public override ImmutableArray<ISourceGenerator> GetGenerators(string language) 75public override ImmutableArray<ISourceGenerator> GetGeneratorsForAllLanguages() 78private ImmutableArray<DiagnosticAnalyzer> PinAnalyzers<TArg>(Func<AnalyzerReference, TArg, ImmutableArray<DiagnosticAnalyzer>> getItems, TArg arg) 81private ImmutableArray<ISourceGenerator> PinGenerators<TArg>(Func<AnalyzerReference, TArg, ImmutableArray<ISourceGenerator>> getItems, TArg arg) 84private ImmutableArray<TItem> PinItems<TItem, TArg>( 86Func<AnalyzerReference, TArg, ImmutableArray<TItem>> getItems, 92var items = getItems(this.UnderlyingAnalyzerFileReference, arg);
Workspace\IsolatedAnalyzerReferenceSet.Core.cs (9)
91private readonly Dictionary<Checksum, ImmutableArray<AnalyzerReference>> _analyzerReferences = []; 139private ImmutableArray<AnalyzerReference> GetAnalyzerReferences(Checksum checksum) 149ImmutableArray<AnalyzerReference> references, 197public static async partial ValueTask<ImmutableArray<AnalyzerReference>> CreateIsolatedAnalyzerReferencesAsync( 199ImmutableArray<AnalyzerReference> references, 217public static async partial ValueTask<ImmutableArray<AnalyzerReference>> CreateIsolatedAnalyzerReferencesAsync( 221Func<Task<ImmutableArray<AnalyzerReference>>> getReferencesAsync, 247var analyzerReferences = await getReferencesAsync().ConfigureAwait(false); 294ImmutableArray<AnalyzerReference> analyzerReferences,
Workspace\IsolatedAnalyzerReferenceSet.cs (4)
23public static partial ValueTask<ImmutableArray<AnalyzerReference>> CreateIsolatedAnalyzerReferencesAsync( 25ImmutableArray<AnalyzerReference> references, 35public static partial ValueTask<ImmutableArray<AnalyzerReference>> CreateIsolatedAnalyzerReferencesAsync( 39Func<Task<ImmutableArray<AnalyzerReference>>> getReferencesAsync,
Workspace\ISolutionAnalyzerSetterWorkspaceService.cs (2)
18void SetAnalyzerReferences(ImmutableArray<AnalyzerReference> references); 32public void SetAnalyzerReferences(ImmutableArray<AnalyzerReference> references)
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\ProjectSystemProject.BatchingDocumentCollection.cs (14)
49private readonly ImmutableArray<DocumentInfo>.Builder _documentsAddedInBatch = ImmutableArray.CreateBuilder<DocumentInfo>(); 82public DocumentId AddFile(string fullPath, SourceCodeKind sourceCodeKind, ImmutableArray<string> folders) 130ImmutableArray<string> folders, 372public void ReorderFiles(ImmutableArray<string> filePaths) 416internal ImmutableArray<(DocumentId documentId, SourceTextContainer textContainer)> UpdateSolutionForBatch( 418ImmutableArray<string>.Builder documentFileNamesAdded, 419Func<Solution, ImmutableArray<DocumentInfo>, Solution> addDocuments, 421Func<Solution, ImmutableArray<DocumentId>, Solution> removeDocuments, 431static ImmutableArray<(DocumentId documentId, SourceTextContainer textContainer)> UpdateSolutionForBatch( 433ImmutableArray<string>.Builder documentFileNamesAdded, 434Func<Solution, ImmutableArray<DocumentInfo>, Solution> addDocuments, 436Func<Solution, ImmutableArray<DocumentId>, Solution> removeDocuments, 439ImmutableArray<DocumentInfo> documentsAddedInBatch, 440ImmutableArray<DocumentId> documentsRemovedInBatch,
Workspace\ProjectSystem\ProjectSystemProject.cs (18)
34private static readonly ImmutableArray<MetadataReferenceProperties> s_defaultMetadataReferenceProperties = [default(MetadataReferenceProperties)]; 99private readonly Dictionary<string, ImmutableArray<MetadataReferenceProperties>> _allMetadataReferences = []; 173var watchedDirectories = GetWatchedDirectories(language, filePath); 177static ImmutableArray<WatchedDirectory> GetWatchedDirectories(string? language, string? filePath) 555ImmutableArray<string> documentFileNamesAdded = []; 556ImmutableArray<(DocumentId documentId, SourceTextContainer textContainer)> documentsToOpen = []; 557ImmutableArray<(DocumentId documentId, SourceTextContainer textContainer)> additionalDocumentsToOpen = []; 558ImmutableArray<(DocumentId documentId, SourceTextContainer textContainer)> analyzerConfigDocumentsToOpen = []; 807var isolatedReferences = IsolatedAnalyzerReferenceSet.CreateIsolatedAnalyzerReferencesAsync( 809ImmutableArray<AnalyzerReference>.CastUp(initialReferenceList.ToImmutableAndClear()), 823public void AddSourceFile(string fullPath, SourceCodeKind sourceCodeKind = SourceCodeKind.Regular, ImmutableArray<string> folders = default) 839ImmutableArray<string> folders = default, 860public void AddAdditionalFile(string fullPath, SourceCodeKind sourceCodeKind = SourceCodeKind.Regular, ImmutableArray<string> folders = default) 1090return _allMetadataReferences.TryGetValue(fullPath, out var propertiesList) && propertiesList.Contains(properties); 1097public ImmutableArray<MetadataReferenceProperties> GetPropertiesForMetadataReference(string fullPath) 1101return _allMetadataReferences.TryGetValue(fullPath, out var list) ? list : []; 1271public void ReorderSourceFiles(ImmutableArray<string> filePaths) 1288private 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, 521var projectsForOutputPath = projectUpdateState.ProjectsByOutputPath[outputPath]; 722if (projectUpdateState.ProjectsByOutputPath.TryGetValue(path, out var ids) && ids.Distinct().Length == 1) 811if (projectUpdateState.ProjectsByOutputPath.TryGetValue(outputPath, out var remainingProjectsForOutputPath)) 813var distinctRemainingProjects = remainingProjectsForOutputPath.Distinct(); 949internal 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)) 155public record struct ProjectReferenceInformation(ImmutableArray<string> OutputPaths, ImmutableArray<(string path, ProjectReference ProjectReference)> ConvertedProjectReferences)
Workspace\ProjectSystem\ProjectSystemProjectHostInfo.cs (1)
11ImmutableArray<IAnalyzerAssemblyRedirector> AnalyzerAssemblyRedirectors);
Workspace\ProjectSystem\ProjectSystemProjectOptionsProcessor.cs (6)
33private ImmutableArray<string> _commandLine; 58private bool ReparseCommandLineIfChanged_NoLock(ImmutableArray<string> arguments) 72protected virtual bool ShouldSaveCommandLine(ImmutableArray<string> arguments) 89public void SetCommandLine(ImmutableArray<string> arguments) 128private void ReparseCommandLine_NoLock(ImmutableArray<string> arguments) 137/// Returns the parsed command line arguments for the arguments set with <see cref="SetCommandLine(ImmutableArray{string})"/>.
Workspace\ProjectSystem\ReferenceFileChangeTracker.cs (1)
61static ImmutableArray<WatchedDirectory> GetAdditionalWatchedDirectories()
Workspace\Solution\Checksum_Factory.cs (3)
46public static Checksum Create(ImmutableArray<string> values) 157public static Checksum Create(ImmutableArray<Checksum> checksums) 164public static Checksum Create(ImmutableArray<byte> bytes)
Workspace\Solution\Checksum.cs (1)
49public static Checksum From(ImmutableArray<byte> checksum)
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)
450internal ImmutableArray<TextChange> GetTextChangesSynchronously( 458private async Task<ImmutableArray<TextChange>> GetTextChangesAsync( 483var textChanges = text.GetTextChanges(oldText).ToImmutableArray(); 522public ImmutableArray<DocumentId> GetLinkedDocumentIds() 524var filteredDocumentIds = this.Project.Solution.GetRelatedDocumentIds(this.Id); 619internal ValueTask<ImmutableArray<byte>> GetContentHashAsync(CancellationToken cancellationToken)
Workspace\Solution\DocumentInfo.cs (1)
249var folders = reader.ReadArray(static r => r.ReadRequiredString());
Workspace\Solution\DocumentState.cs (2)
35private ImmutableArray<byte> _contentHash; 102public async ValueTask<ImmutableArray<byte>> GetContentHashAsync(CancellationToken cancellationToken)
Workspace\Solution\IDocumentTextDifferencingService.cs (2)
22Task<ImmutableArray<TextChange>> GetTextChangesAsync(Document oldDocument, Document newDocument, CancellationToken cancellationToken); 32Task<ImmutableArray<TextChange>> GetTextChangesAsync(Document oldDocument, Document newDocument, TextDifferenceTypes preferredDifferenceType, CancellationToken cancellationToken);
Workspace\Solution\Project.cs (6)
392internal ValueTask<ImmutableArray<Diagnostic>> GetSourceGeneratorDiagnosticsAsync(CancellationToken cancellationToken) 770public Project RemoveDocuments(ImmutableArray<DocumentId> documentIds) 788public Project RemoveAdditionalDocuments(ImmutableArray<DocumentId> documentIds) 806public Project RemoveAnalyzerConfigDocuments(ImmutableArray<DocumentId> documentIds) 813private void CheckIdsContainedInProject(ImmutableArray<DocumentId> documentIds) 837internal async ValueTask<Document?> GetDocumentAsync(ImmutableArray<byte> contentHash, CancellationToken cancellationToken)
Workspace\Solution\ProjectDependencyGraph_AddProject.cs (2)
17var newTopologicallySortedProjects = _lazyTopologicallySortedProjects; 24var newDependencySets = _lazyDependencySets;
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\ProjectReference.cs (2)
19public ProjectReference(ProjectId projectId, ImmutableArray<string> aliases = default, bool embedInteropTypes = false) 33public ImmutableArray<string> Aliases { get; }
Workspace\Solution\ProjectState.AnalyzerConfigOptionsCache.cs (1)
51var analyzerConfigs = analyzerConfigDocumentStates.SelectAsArray(a => a.GetAnalyzerConfig(cancellationToken));
Workspace\Solution\ProjectState.cs (22)
126private async Task<Dictionary<ImmutableArray<byte>, DocumentId>> ComputeContentHashToDocumentIdAsync(CancellationToken cancellationToken) 128var result = new Dictionary<ImmutableArray<byte>, DocumentId>(ImmutableArrayComparer<byte>.Instance); 132var contentHash = text.GetContentHash(); 160private AsyncLazy<Dictionary<ImmutableArray<byte>, DocumentId>> LazyContentHashToDocumentId 184public async ValueTask<DocumentId?> GetDocumentIdAsync(ImmutableArray<byte> contentHash, CancellationToken cancellationToken) 240ImmutableArray<TextDocumentState> newDocuments, 259VersionStamp oldVersion, ImmutableArray<TextDocumentState> newDocuments, CancellationToken cancellationToken) 314private ImmutableArray<AdditionalText> AdditionalFiles 866public ProjectState AddDocuments(ImmutableArray<DocumentState> documents) 878public ProjectState AddAdditionalDocuments(ImmutableArray<AdditionalDocumentState> documents) 890public ProjectState AddAnalyzerConfigDocuments(ImmutableArray<AnalyzerConfigDocumentState> documents) 921public ProjectState RemoveDocuments(ImmutableArray<DocumentId> documentIds) 934public ProjectState RemoveAdditionalDocuments(ImmutableArray<DocumentId> documentIds) 944public ProjectState RemoveAnalyzerConfigDocuments(ImmutableArray<DocumentId> documentIds) 970public ProjectState UpdateDocuments(ImmutableArray<DocumentState> oldDocuments, ImmutableArray<DocumentState> newDocuments) 996public ProjectState UpdateAdditionalDocuments(ImmutableArray<AdditionalDocumentState> oldDocuments, ImmutableArray<AdditionalDocumentState> newDocuments) 1021public ProjectState UpdateAnalyzerConfigDocuments(ImmutableArray<AnalyzerConfigDocumentState> oldDocuments, ImmutableArray<AnalyzerConfigDocumentState> newDocuments) 1043ImmutableArray<TextDocumentState> oldDocuments, 1044ImmutableArray<TextDocumentState> newDocuments,
Workspace\Solution\Solution_SemanticModelCaching.cs (3)
20private ImmutableArray<(DocumentId documentId, SemanticModel semanticModel)> _activeSemanticModels = []; 28var localArray = _activeSemanticModels; 35var relatedDocumentIds = activeDocumentId is null ? [] : this.GetRelatedDocumentIds(activeDocumentId);
Workspace\Solution\Solution.cs (20)
126internal ImmutableArray<ProjectState> SortedProjectStates => this.SolutionState.SortedProjectStates; 842var collection = analyzerReferences.ToImmutableArray(); 1081public Solution AddDocuments(ImmutableArray<DocumentInfo> documentInfos) 1119public Solution AddAdditionalDocuments(ImmutableArray<DocumentInfo> documentInfos) 1171public Solution AddAnalyzerConfigDocuments(ImmutableArray<DocumentInfo> documentInfos) 1186public Solution RemoveDocuments(ImmutableArray<DocumentId> documentIds) 1192private Solution RemoveDocumentsImpl(ImmutableArray<DocumentId> documentIds) 1207public Solution RemoveAdditionalDocuments(ImmutableArray<DocumentId> documentIds) 1213private Solution RemoveAdditionalDocumentsImpl(ImmutableArray<DocumentId> documentIds) 1228public Solution RemoveAnalyzerConfigDocuments(ImmutableArray<DocumentId> documentIds) 1234private Solution RemoveAnalyzerConfigDocumentsImpl(ImmutableArray<DocumentId> documentIds) 1291internal Solution WithDocumentTexts(ImmutableArray<(DocumentId documentId, SourceText text)> texts, PreservationMode mode = PreservationMode.PreserveValue) 1420internal Solution WithDocumentSyntaxRoots(ImmutableArray<(DocumentId documentId, SyntaxNode root)> syntaxRoots, PreservationMode mode = PreservationMode.PreserveValue) 1439internal Solution WithDocumentContentsFrom(ImmutableArray<(DocumentId documentId, DocumentState documentState)> documentIdsAndStates) 1615internal ImmutableArray<DocumentId> GetRelatedDocumentIds(DocumentId documentId, bool includeDifferentLanguages = false) 1684internal Solution WithFrozenSourceGeneratedDocuments(ImmutableArray<(SourceGeneratedDocumentIdentity documentIdentity, DateTime generationDateTime, SourceText text)> documents) 1722public ImmutableArray<DocumentId> GetDocumentIdsWithFilePath(string? filePath) => this.SolutionState.GetDocumentIdsWithFilePath(filePath); 1810private void CheckContainsDocuments(ImmutableArray<DocumentId> documentIds) 1836private void CheckContainsAdditionalDocuments(ImmutableArray<DocumentId> documentIds) 1862private void CheckContainsAnalyzerConfigDocuments(ImmutableArray<DocumentId> documentIds)
Workspace\Solution\SolutionChanges.cs (1)
88/// Gets changed source generated document ids that were modified with <see cref="Solution.WithFrozenSourceGeneratedDocuments(System.Collections.Immutable.ImmutableArray{ValueTuple{SourceGeneratedDocumentIdentity, DateTime, Text.SourceText}})"/>
Workspace\Solution\SolutionCompilationState_Checksum.cs (2)
126var identityChecksums = FrozenSourceGeneratedDocumentStates.SelectAsArray( 131var frozenSourceGeneratedDocumentGenerationDateTimes = FrozenSourceGeneratedDocumentStates.SelectAsArray(d => d.GenerationDateTime);
Workspace\Solution\SolutionCompilationState_SourceGenerators.cs (3)
30ImmutableArray<ISourceGenerator> SourceGenerators, 57private static ImmutableArray<ISourceGenerator> GetSourceGenerators(ProjectState projectState) 156var analyzerReferences = projectStateChecksums.AnalyzerReferences.Children;
Workspace\Solution\SolutionCompilationState.cs (47)
241ImmutableArray<ProjectId> changedProjectIds, 250static bool CanReuse(ProjectId id, (ImmutableArray<ProjectId> changedProjectIds, ProjectDependencyGraph dependencyGraph) arg) 781var addedReferences = stateChange.NewProjectState.AnalyzerReferences.Except<AnalyzerReference>(stateChange.OldProjectState.AnalyzerReferences, ReferenceEqualityComparer.Instance).ToImmutableArray(); 782var removedReferences = stateChange.OldProjectState.AnalyzerReferences.Except<AnalyzerReference>(stateChange.NewProjectState.AnalyzerReferences, ReferenceEqualityComparer.Instance).ToImmutableArray(); 806internal SolutionCompilationState WithDocumentTexts(ImmutableArray<(DocumentId documentId, SourceText text)> texts, PreservationMode mode) 817(ImmutableArray<(DocumentId, SourceText)>, 818ImmutableArray<(SourceGeneratedDocumentIdentity, DateTime, SourceText?, SyntaxNode?)>) GetOrdinaryAndSourceGeneratedDocuments() 849ImmutableArray<(DocumentId documentId, TDocumentData documentData)> documentsToUpdate, 850ImmutableArray<(SourceGeneratedDocumentIdentity documentIdentity, DateTime generationDateTime, SourceText? sourceText, SyntaxNode? syntaxNode)> sourceGeneratedDocuments, 887IEnumerable<(ProjectId projectId, ImmutableArray<TDocumentState> updatedDocumentState)> updatedDocumentStatesPerProject, 888Func<ProjectState, ImmutableArray<TDocumentState>, TranslationAction> getTranslationAction) 922private static TranslationAction GetUpdateDocumentsTranslationAction<TDocumentState>(ProjectState oldProjectState, ImmutableArray<TDocumentState> newDocumentStates) 927ImmutableArray<DocumentState> ordinaryNewDocumentStates => GetUpdateOrdinaryDocumentsTranslationAction(oldProjectState, ordinaryNewDocumentStates), 928ImmutableArray<AdditionalDocumentState> additionalNewDocumentStates => GetUpdateAdditionalDocumentsTranslationAction(oldProjectState, additionalNewDocumentStates), 929ImmutableArray<AnalyzerConfigDocumentState> analyzerConfigNewDocumentStates => GetUpdateAnalyzerConfigDocumentsTranslationAction(oldProjectState, analyzerConfigNewDocumentStates), 933TranslationAction GetUpdateOrdinaryDocumentsTranslationAction(ProjectState oldProjectState, ImmutableArray<DocumentState> newDocumentStates) 935var oldDocumentStates = newDocumentStates.SelectAsArray(static (s, oldProjectState) => oldProjectState.DocumentStates.GetRequiredState(s.Id), oldProjectState); 940TranslationAction GetUpdateAdditionalDocumentsTranslationAction(ProjectState oldProjectState, ImmutableArray<AdditionalDocumentState> newDocumentStates) 942var oldDocumentStates = newDocumentStates.SelectAsArray(static (s, oldProjectState) => oldProjectState.AdditionalDocumentStates.GetRequiredState(s.Id), oldProjectState); 947TranslationAction GetUpdateAnalyzerConfigDocumentsTranslationAction(ProjectState oldProjectState, ImmutableArray<AnalyzerConfigDocumentState> newDocumentStates) 949var oldDocumentStates = newDocumentStates.SelectAsArray(static (s, oldProjectState) => oldProjectState.AnalyzerConfigDocumentStates.GetRequiredState(s.Id), oldProjectState); 1005/// <inheritdoc cref="Solution.WithDocumentSyntaxRoots(ImmutableArray{ValueTuple{DocumentId, SyntaxNode}}, PreservationMode)"/> 1009public SolutionCompilationState WithDocumentSyntaxRoots(ImmutableArray<(DocumentId documentId, SyntaxNode root)> syntaxRoots, PreservationMode mode) 1022(ImmutableArray<(DocumentId, SyntaxNode)>, 1023ImmutableArray<(SourceGeneratedDocumentIdentity, DateTime, SourceText?, SyntaxNode?)>) GetOrdinaryAndSourceGeneratedDocuments() 1047ImmutableArray<(DocumentId documentId, DocumentState documentState)> documentIdsAndStates, bool forceEvenIfTreesWouldDiffer) 1261public ValueTask<ImmutableArray<Diagnostic>> GetSourceGeneratorDiagnosticsAsync( 1368var projectIdsToUnfreeze = FrozenSourceGeneratedDocumentStates.States.Values 1405ImmutableArray<(SourceGeneratedDocumentIdentity documentIdentity, DateTime generationDateTime, SourceText? sourceText, SyntaxNode? syntaxNode)> documents) 1586private (ImmutableArray<ProjectState> sortedProjectStates, ImmutableSegmentedDictionary<ProjectId, ICompilationTracker>) ComputeFrozenSnapshotMaps(CancellationToken cancellationToken) 1639var newProjectStates = projectStateChanged ? newSortedProjectStatesBuilder.ToImmutableAndClear() : this.SolutionState.SortedProjectStates; 1701var allDocumentIds = this.SolutionState.GetRelatedDocumentIds(documentId, includeDifferentLanguages); 1702var allDocumentIdsWithCurrentDocumentState = allDocumentIds.SelectAsArray(static (docId, currentDocumentState) => (docId, currentDocumentState), currentDocumentState); 1713var allDocumentIds = @this.SolutionState.GetRelatedDocumentIds(documentId, includeDifferentLanguages); 1779ImmutableArray<DocumentInfo> documentInfos) 1801public SolutionCompilationState RemoveDocumentsFromMultipleProjects<T>(ImmutableArray<DocumentId> documentIds) 1823private SolutionCompilationState RemoveDocumentsFromSingleProject<T>(ProjectId projectId, ImmutableArray<DocumentId> documentIds) 1836var removedDocumentStatesForProject = removedDocumentStates.ToImmutable(); 1852private static TranslationAction GetRemoveDocumentsTranslationAction<TDocumentState>(ProjectState oldProject, ImmutableArray<DocumentId> documentIds, ImmutableArray<TDocumentState> states) 1855ImmutableArray<DocumentState> documentStates => new TranslationAction.RemoveDocumentsAction(oldProject, oldProject.RemoveDocuments(documentIds), documentStates), 1856ImmutableArray<AdditionalDocumentState> additionalDocumentStates => new TranslationAction.RemoveAdditionalDocumentsAction(oldProject, oldProject.RemoveAdditionalDocuments(documentIds), additionalDocumentStates), 1857ImmutableArray<AnalyzerConfigDocumentState> _ => new TranslationAction.TouchAnalyzerConfigDocumentsAction(oldProject, oldProject.RemoveAnalyzerConfigDocuments(documentIds)), 1861private static TranslationAction GetAddDocumentsTranslationAction<TDocumentState>(ProjectState oldProject, ImmutableArray<TDocumentState> states) 1864ImmutableArray<DocumentState> documentStates => new TranslationAction.AddDocumentsAction(oldProject, oldProject.AddDocuments(documentStates), documentStates), 1865ImmutableArray<AdditionalDocumentState> additionalDocumentStates => new TranslationAction.AddAdditionalDocumentsAction(oldProject, oldProject.AddAdditionalDocuments(additionalDocumentStates), additionalDocumentStates), 1866ImmutableArray<AnalyzerConfigDocumentState> analyzerConfigDocumentStates => new TranslationAction.TouchAnalyzerConfigDocumentsAction(oldProject, oldProject.AddAnalyzerConfigDocuments(analyzerConfigDocumentStates)),
Workspace\Solution\SolutionCompilationState.GeneratorDriverInitializationCache.cs (1)
70var additionalTexts = projectState.AdditionalDocumentStates.SelectAsArray(static documentState => documentState.AdditionalText);
Workspace\Solution\SolutionCompilationState.ICompilationTracker.cs (1)
68ValueTask<ImmutableArray<Diagnostic>> GetSourceGeneratorDiagnosticsAsync(SolutionCompilationState compilationState, CancellationToken cancellationToken);
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker_Generators.cs (5)
43var generatedSyntaxTrees = await generatorInfo.Documents.States.Values.SelectAsArrayAsync( 148var infos = infosOpt.Value; 218var generatedSources = generatedSourcesOpt.Value; 459var additionalTexts = (ImmutableArray<AdditionalText>)additionalTextsMember.GetValue(state)!;
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker.cs (3)
329var documentStates = ImmutableCollectionsMarshal.AsImmutableArray(chunk); 793var documentsWithTrees = documentsWithTreesBuilder.ToImmutableAndClear(); 877public async ValueTask<ImmutableArray<Diagnostic>> GetSourceGeneratorDiagnosticsAsync(
Workspace\Solution\SolutionCompilationState.RootedSymbolSet.cs (3)
61public readonly ImmutableArray<SecondaryReferencedSymbol> SecondaryReferencedSymbols; 65ImmutableArray<SecondaryReferencedSymbol> secondaryReferencedSymbols) 117var secondarySymbols = this.SecondaryReferencedSymbols;
Workspace\Solution\SolutionCompilationState.TranslationAction_Actions.cs (16)
25ImmutableArray<DocumentState> oldStates, 26ImmutableArray<DocumentState> newStates) : TranslationAction(oldProjectState, newProjectState) 28private readonly ImmutableArray<DocumentState> _oldStates = oldStates; 29private readonly ImmutableArray<DocumentState> _newStates = newStates; 73ImmutableArray<AdditionalDocumentState> oldStates, 74ImmutableArray<AdditionalDocumentState> newStates) 77private readonly ImmutableArray<AdditionalDocumentState> _oldStates = oldStates; 78private readonly ImmutableArray<AdditionalDocumentState> _newStates = newStates; 137ImmutableArray<DocumentState> documents) 162ImmutableArray<DocumentState> documents) 171public readonly ImmutableArray<DocumentState> Documents = documents; 182var documentsAndTrees = await ProducerConsumer<(DocumentState document, SyntaxTree tree)>.RunParallelAsync( 279ImmutableArray<AnalyzerReference> referencesToAdd = default, 280ImmutableArray<AnalyzerReference> referencesToRemove = default) 311ImmutableArray<AdditionalDocumentState> additionalDocuments) 331ImmutableArray<AdditionalDocumentState> additionalDocuments)
Workspace\Solution\SolutionCompilationState.WithFrozenSourceGeneratedDocumentsCompilationTracker.cs (1)
215public ValueTask<ImmutableArray<Diagnostic>> GetSourceGeneratorDiagnosticsAsync(
Workspace\Solution\SolutionState_Checksum.cs (2)
122var projectChecksums = allResults.SelectAsArray(r => r.Checksum); 123var projectIds = allResults.SelectAsArray(r => r.ProjectId);
Workspace\Solution\SolutionState.cs (27)
73private readonly ConcurrentDictionary<string, ImmutableArray<DocumentId>> _lazyFilePathToRelatedDocumentIds = new(FilePathComparer); 85ImmutableArray<ProjectState> projectStates, 145public ImmutableArray<ProjectState> SortedProjectStates { get; } 192ImmutableArray<ProjectState>? projectStates = null, 343private static ProjectState? GetProjectState(ImmutableArray<ProjectState> sortedProjectStates, ProjectId projectId) 355private static int GetProjectStateIndex(ImmutableArray<ProjectState> sortedProjectStates, ProjectId projectId) 439var newProjectStates = newSortedProjectStatesBuilder.ToImmutableAndClear(); 491var newProjectStates = SortedProjectStates.WhereAsArray(static (p, projectIdsSet) => !projectIdsSet.Contains(p.Id), projectIdsSet); 774var oldReferences = oldProject.ProjectReferences.ToImmutableArray(); 775var newReferences = oldReferences.AddRange(projectReferences); 790var oldReferences = oldProject.ProjectReferences.ToImmutableArray(); 793var newReferences = oldReferences.Remove(projectReference); 883var oldReferences = oldProject.MetadataReferences.ToImmutableArray(); 884var newReferences = oldReferences.AddRange(metadataReferences); 896var oldReferences = oldProject.MetadataReferences.ToImmutableArray(); 897var newReferences = oldReferences.Remove(metadataReference); 1196var newProjectStates = SortedProjectStates.SetItem(projectStateIndex, newProjectState); 1208public ImmutableArray<DocumentId> GetDocumentIdsWithFilePath(string? filePath) 1215static ImmutableArray<DocumentId> ComputeDocumentIdsWithFilePath(string filePath, SolutionState @this) 1227ImmutableArray<ProjectState> sortedNewProjectStates) 1247var oldReferences = AnalyzerReferences.ToImmutableArray(); 1248var newReferences = oldReferences.AddRange(analyzerReferences); 1254var oldReferences = AnalyzerReferences.ToImmutableArray(); 1255var newReferences = oldReferences.Remove(analyzerReference); 1296if (fileMap != null && fileMap.TryGetValue(filePath, out var relatedDocumentIds)) 1332public ImmutableArray<DocumentId> GetRelatedDocumentIds(DocumentId documentId, bool includeDifferentLanguages) 1355var documentIds = GetDocumentIdsWithFilePath(filePath);
Workspace\Solution\SourceGeneratorIdentity.cs (1)
38public static ImmutableArray<SourceGeneratorIdentity> GetIdentities(
Workspace\Solution\StateChecksums.cs (4)
27ImmutableArray<DateTime> frozenSourceGeneratedDocumentGenerationDateTimes) 56public ImmutableArray<DateTime> FrozenSourceGeneratedDocumentGenerationDateTimes { get; } 88var frozenSourceGeneratedDocumentGenerationDateTimes = reader.ReadArray(r => new DateTime(r.ReadInt64())); 549ImmutableArray<TReference> references, ISerializerService serializer, CancellationToken cancellationToken) where TReference : class
Workspace\Solution\TextDocumentStates.cs (7)
53private 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) 155public TextDocumentStates<TState> RemoveRange(ImmutableArray<DocumentId> ids) 179internal TextDocumentStates<TState> SetStates(ImmutableArray<TState> states)
Workspace\TextExtensions.cs (5)
18public static ImmutableArray<Document> GetRelatedDocumentsWithChanges(this SourceText text) 36var relatedIds = solution.GetRelatedDocumentIds(documentId); 74var allIds = solution.GetRelatedDocumentIds(id); 105public static ImmutableArray<Document> GetRelatedDocuments(this SourceTextContainer container) 113var relatedIds = solution.GetRelatedDocumentIds(documentId);
Workspace\Workspace.cs (9)
378var relatedDocumentIds = solution.GetRelatedDocumentIds(changedDocumentId); 396var relatedDocumentIdsAndStatesArray = relatedDocumentIdsAndStates.SelectAsArray(static kvp => (kvp.Key, kvp.Value)); 1043protected internal void OnDocumentsAdded(ImmutableArray<DocumentInfo> documentInfos) 1295var linkedDocumentIds = oldSolution.GetRelatedDocumentIds(documentId, includeDifferentLanguages: true); 1563var projectChangesList = solutionChanges.GetProjectChanges().ToImmutableArray(); 1612private void ApplyDocumentsInfoChange(ImmutableArray<ProjectChanges> projectChanges) 1628var linkedDocuments = oldDoc.GetLinkedDocumentIds(); 1740var changedDocumentIds = projectChanges.GetChangedDocuments(onlyGetDocumentsWithTextChanges: true, IgnoreUnchangeableDocumentsWhenApplyingChanges).ToImmutableArray(); 2007var textChanges = newDoc.GetTextChangesSynchronously(oldDoc, CancellationToken.None);
Workspace\WorkspaceEventMap.cs (3)
63public sealed class EventHandlerSet(ImmutableArray<Registry> registries) 66private readonly ImmutableArray<Registry> _registries = registries; 86var newRegistries = _registries.Remove(registry);
Microsoft.CodeAnalysis.Workspaces.MSBuild (66)
Host\Mef\MSBuildMefHostServices.cs (1)
22public static ImmutableArray<Assembly> DefaultAssemblies
MSBuild\BuildHostProcessManager.cs (2)
26private readonly ImmutableArray<string> _knownCommandLineParserLanguages; 42ImmutableArray<string> knownCommandLineParserLanguages,
MSBuild\BuildHostProjectFileInfoProvider.cs (4)
22public async Task<ImmutableArray<ProjectFileInfo>> LoadProjectFileInfosAsync(string projectPath, DiagnosticReportingOptions reportingOptions, CancellationToken cancellationToken) 64var diagnosticItems = await projectFile.GetDiagnosticLogItemsAsync(cancellationToken).ConfigureAwait(false); 72var projectFileInfos = await progress.DoOperationAndReportProgressAsync( 86public async Task<ImmutableArray<string>> GetProjectOutputPathsAsync(string projectPath, CancellationToken cancellationToken)
MSBuild\FileBasedProgramsProjectLoader.cs (3)
106public ValueTask<ImmutableArray<ImmutableArray<string>>> GetItemMetadataValuesAsync(string itemType, ImmutableArray<string> metadataNames) => new(remoteProjectInstance.GetItemMetadataValuesAsync(itemType, metadataNames.ToArray(), cancellationToken));
MSBuild\IProjectFileInfoProvider.cs (2)
13Task<ImmutableArray<ProjectFileInfo>> LoadProjectFileInfosAsync(string projectPath, DiagnosticReportingOptions reportingOptions, CancellationToken cancellationToken); 14Task<ImmutableArray<string>> GetProjectOutputPathsAsync(string projectPath, CancellationToken cancellationToken);
MSBuild\MSBuildProjectLoader.cs (8)
27private readonly ImmutableArray<string> _knownCommandLineParserLanguages; 188var projectInfos = await LoadInfoAsync( 217public Task<ImmutableArray<ProjectInfo>> LoadProjectInfoAsync( 235return Task.FromResult(ImmutableArray<ProjectInfo>.Empty); 249private async Task<ImmutableArray<ProjectInfo>> LoadInfoAsync( 250ImmutableArray<string> projectPaths, 289internal Task<ImmutableArray<ProjectInfo>> LoadInfosAsync( 290ImmutableArray<string> projectFilePaths,
MSBuild\MSBuildProjectLoader.Worker_ResolveReferences.cs (12)
25public ImmutableArray<MetadataReference> MetadataReferences { get; } 27public ResolvedReferences(ImmutableHashSet<ProjectReference> projectReferences, ImmutableArray<MetadataReference> metadataReferences) 43private readonly ImmutableArray<MetadataReference> _metadataReferences; 67private static ImmutableDictionary<string, HashSet<int>> CreatePathToIndexMap(ImmutableArray<MetadataReference> metadataReferences) 146public ImmutableArray<UnresolvedMetadataReference> GetUnresolvedMetadataReferences() 161private ImmutableArray<MetadataReference> GetMetadataReferences() 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); 342var outputFilePaths = await _projectFileInfoProvider.GetProjectOutputPathsAsync(projectPath, cancellationToken).ConfigureAwait(false); 349var projectFileInfos = await _projectFileInfoProvider.LoadProjectFileInfosAsync(projectPath, DiagnosticReportingOptions.IgnoreAll, cancellationToken).ConfigureAwait(false); 366private ProjectReference CreateProjectReference(ProjectId from, ProjectId to, ImmutableArray<string> aliases) 383ImmutableArray<string> aliases,
MSBuild\MSBuildProjectLoader.Worker.cs (16)
36private readonly ImmutableArray<string> _requestedProjectPaths; 65private readonly Dictionary<string, ImmutableArray<ProjectInfo>> _pathToDiscoveredProjectInfosMap; 73ImmutableArray<string> requestedProjectPaths, 92_pathToDiscoveredProjectInfosMap = new Dictionary<string, ImmutableArray<ProjectInfo>>(PathUtilities.Comparer); 96public async Task<ImmutableArray<ProjectInfo>> LoadAsync(CancellationToken cancellationToken) 115var projectFileInfos = await LoadProjectInfosFromPathAsync(projectPath, _requestedProjectOptions, cancellationToken).ConfigureAwait(false); 133private async Task<ImmutableArray<ProjectInfo>> LoadProjectInfosFromPathAsync( 136if (_projectMap.TryGetProjectInfosByProjectPath(projectPath, out var results) || 144var projectFileInfos = await _projectFileInfoProvider.LoadProjectFileInfosAsync(projectPath, reportingOptions, cancellationToken).ConfigureAwait(false); 267var documents = CreateDocumentInfos(projectFileInfo.Documents, projectId, encoding); 268var additionalDocuments = CreateDocumentInfos(projectFileInfo.AdditionalDocuments, projectId, encoding); 269var analyzerConfigDocuments = CreateDocumentInfos(projectFileInfo.AnalyzerConfigDocuments, projectId, encoding); 346private ImmutableArray<DocumentInfo> CreateDocumentInfos(IReadOnlyList<DocumentFileInfo> documentFileInfos, ProjectId projectId, Encoding? encoding) 352GetDocumentNameAndFolders(info.LogicalPath, out var name, out var folders); 371private static void GetDocumentNameAndFolders(string logicalPath, out string name, out ImmutableArray<string> folders) 389private void CheckForDuplicateDocuments(ImmutableArray<DocumentInfo> documents, string? projectFilePath, ProjectId projectId)
MSBuild\MSBuildWorkspace.cs (2)
35private readonly ImmutableArray<string> _knownCommandLineParserLanguages; 260var 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); 107if (!_projectPathToProjectInfosMap.TryGetValue(projectFilePath, out var projectInfos)) 205internal bool TryGetProjectInfosByProjectPath(string projectPath, out ImmutableArray<ProjectInfo> projectInfos)
MSBuild\SolutionFileReader.cs (3)
17public static Task<(string AbsoluteSolutionPath, ImmutableArray<(string ProjectPath, string ProjectGuid)> Projects)> ReadSolutionFileAsync(string solutionFilePath, DiagnosticReportingMode diagnosticReportingMode, CancellationToken cancellationToken) 22public static async Task<(string AbsoluteSolutionPath, ImmutableArray<(string ProjectPath, string ProjectGuid)> Projects)> ReadSolutionFileAsync(string solutionFilePath, PathResolver pathResolver, DiagnosticReportingMode diagnosticReportingMode, CancellationToken cancellationToken) 43private static async Task<ImmutableArray<(string ProjectPath, string ProjectGuid)>?> TryReadSolutionFileAsync(string solutionFilePath, PathResolver pathResolver, ImmutableHashSet<string> projectFilter, DiagnosticReportingMode diagnosticReportingMode, CancellationToken cancellationToken)
Rpc\RemoteBuildHost.cs (1)
45public Task ConfigureGlobalStateAsync(ImmutableArray<string> knownCommandLineParserLanguages, ImmutableDictionary<string, string> globalProperties, string? binlogPath, int? maxNodeCount, CancellationToken cancellationToken)
Rpc\RemoteProjectFile.cs (3)
24public async Task<ImmutableArray<DiagnosticLogItem>> GetDiagnosticLogItemsAsync(CancellationToken cancellationToken) 30public async Task<ImmutableArray<ProjectFileInfo>> GetProjectFileInfosAsync(CancellationToken cancellationToken) 42public Task AddMetadataReferenceAsync(string metadataReferenceIdentity, ImmutableArray<string> aliases, string? hintPath, CancellationToken cancellationToken)
Rpc\RemoteProjectInstance.cs (3)
24public async Task<ImmutableArray<DiagnosticLogItem>> GetDiagnosticLogItemsAsync(CancellationToken cancellationToken) 30public async Task<ImmutableArray<ImmutableArray<string>>> GetItemMetadataValuesAsync(string itemType, string[] metadataNames, CancellationToken cancellationToken)
src\roslyn\src\Compilers\Shared\GlobalAssemblyCacheHelpers\GlobalAssemblyCacheLocation.cs (2)
30public static ImmutableArray<string> s_rootLocations; 32public static ImmutableArray<string> RootLocations
Microsoft.Diagnostics.DataContractReader.Abstractions (1)
Contracts\IRuntimeTypeSystem.cs (1)
257ITypeHandle? GetConstructedType(ITypeHandle? typeHandle, CorElementType corElementType, int rank, ImmutableArray<ITypeHandle?> typeArguments, SignatureCallingConvention callConv = SignatureCallingConvention.Default) => throw new NotImplementedException();
Microsoft.Diagnostics.DataContractReader.Contracts (49)
_generated\15\Microsoft_Diagnostics_DataContractReader_Data.CMiniMdRW.g.cs (3)
236private partial System.Collections.Immutable.ImmutableArray<global::Microsoft.Diagnostics.DataContractReader.TargetPointer> InitTableSegments(Target target, TargetPointer address); 237private System.Collections.Immutable.ImmutableArray<global::Microsoft.Diagnostics.DataContractReader.TargetPointer> _TableSegments__value = default!; 239public partial System.Collections.Immutable.ImmutableArray<global::Microsoft.Diagnostics.DataContractReader.TargetPointer> TableSegments
Contracts\CallingConvention\SignatureTypeInfo.cs (2)
15ImmutableArray<SignatureTypeInfo> typeArguments = default) 26public ImmutableArray<SignatureTypeInfo> TypeArguments { get; }
Contracts\CallingConvention\SignatureTypeInfoProvider.cs (3)
45ImmutableArray<SignatureTypeInfo> typeArguments) 50ImmutableArray<ITypeHandle?> exactArguments = typeArguments 159ImmutableArray<SignatureTypeInfo>.Builder typeArguments =
Contracts\GCInfo\X86\GCInfo.cs (17)
78internal ImmutableArray<UntrackedSlot> UntrackedSlots => _untrackedSlots.Value; 79private readonly Lazy<ImmutableArray<UntrackedSlot>> _untrackedSlots; 85internal ImmutableArray<VarPtrLifetime> VarPtrLifetimes => _varPtrLifetimes.Value; 86private readonly Lazy<ImmutableArray<VarPtrLifetime>> _varPtrLifetimes; 91private ImmutableArray<int> SortedTransitionOffsets => _sortedTransitionOffsets.Value; 92private readonly Lazy<ImmutableArray<int>> _sortedTransitionOffsets; 94private ImmutableArray<NoGCRegion> NoGCRegions => _noGCRegions.Value; 95private readonly Lazy<ImmutableArray<NoGCRegion>> _noGCRegions; 196private ImmutableArray<NoGCRegion> DecodeNoGCRegions() 199return ImmutableArray<NoGCRegion>.Empty; 204ImmutableArray<NoGCRegion>.Builder builder = ImmutableArray.CreateBuilder<NoGCRegion>((int)Header.NoGCRegionCount); 317private ImmutableArray<UntrackedSlot> DecodeUntrackedSlots() 320return ImmutableArray<UntrackedSlot>.Empty; 346ImmutableArray<UntrackedSlot>.Builder builder = ImmutableArray.CreateBuilder<UntrackedSlot>((int)Header.UntrackedCount); 373private ImmutableArray<VarPtrLifetime> DecodeVarPtrLifetimes() 376return ImmutableArray<VarPtrLifetime>.Empty; 395ImmutableArray<VarPtrLifetime>.Builder builder = ImmutableArray.CreateBuilder<VarPtrLifetime>((int)Header.VarPtrTableSize);
Contracts\GCInfo\X86\InfoHdr.cs (2)
56public ImmutableArray<int> Epilogs { get; private set; } 366ImmutableArray<int>.Builder epilogsBuilder = ImmutableArray.CreateBuilder<int>();
Contracts\RuntimeTypeSystem_1.cs (6)
92public TypeKey(ITypeHandle? typeHandle, CorElementType elementType, int rank, ImmutableArray<ITypeHandle?> typeArgs, SignatureCallingConvention callConv = SignatureCallingConvention.Default) 103public ImmutableArray<ITypeHandle?> TypeArgs { get; } 1261private bool GenericInstantiationMatch(ITypeHandle genericType, ITypeHandle potentialMatch, ImmutableArray<ITypeHandle?> typeArguments) 1291private bool FnPtrMatch(ITypeHandle candidate, ImmutableArray<ITypeHandle?> retAndArgTypes, SignatureCallingConvention callConv) 1322ITypeHandle? IRuntimeTypeSystem.GetConstructedType(ITypeHandle? typeHandle, CorElementType corElementType, int rank, ImmutableArray<ITypeHandle?> typeArguments, SignatureCallingConvention callConv) 1373private TargetPointer ComputeLoaderModule(TargetPointer definitionModule, ImmutableArray<ITypeHandle?> inst)
Contracts\Signature\RuntimeSignatureDecoder.cs (9)
132private ImmutableArray<TType> DecodeTypeSequence(ref BlobReader blobReader) 164ImmutableArray<TType> parameterTypes; 170parameterTypes = ImmutableArray<TType>.Empty; 201public ImmutableArray<TType> DecodeLocalSignature(ref BlobReader blobReader) 222var sizes = ImmutableArray<int>.Empty; 223var lowerBounds = ImmutableArray<int>.Empty; 253ImmutableArray<TType> types = DecodeTypeSequence(ref blobReader);
Contracts\Signature\SignatureTypeProvider.cs (1)
37public ITypeHandle? GetGenericInstantiation(ITypeHandle? genericType, ImmutableArray<ITypeHandle?> typeArguments)
Contracts\StackWalk\Context\ARM\LookupValues.cs (4)
186ImmutableArray<ushort> regOffset, 187ImmutableArray<ushort> fpRegOffset, 196public readonly ImmutableArray<ushort> RegOffset = regOffset; 197public readonly ImmutableArray<ushort> FpRegOffset = fpRegOffset;
Data\CMiniMdRW.cs (2)
19[CustomInit(nameof(InitTableSegments))] public partial ImmutableArray<TargetPointer> TableSegments { get; } 21private partial ImmutableArray<TargetPointer> InitTableSegments(Target target, TargetPointer address)
Microsoft.Diagnostics.DataContractReader.Legacy (11)
ClrDataFrame.cs (3)
616ImmutableArray<(uint Flags, int Size)> localFlags = decoder.DecodeLocalSignature(ref sigReader); 651ImmutableArray<ITypeHandle?> localTypes = decoder.DecodeLocalSignature(ref localSigReader); 778public (uint Flags, int Size) GetGenericInstantiation((uint Flags, int Size) genericType, ImmutableArray<(uint Flags, int Size)> typeArguments)
Dbi\DacDbiImpl.cs (4)
3603return rts.GetConstructedType(elementType, et, rank, ImmutableArray<ITypeHandle?>.Empty) 3613return rts.GetConstructedType(referent, et, 0, ImmutableArray<ITypeHandle?>.Empty) 3627ImmutableArray<ITypeHandle?>.Builder builder = ImmutableArray.CreateBuilder<ITypeHandle?>(argCount); 3638ImmutableArray<ITypeHandle?>.Builder builder = ImmutableArray.CreateBuilder<ITypeHandle?>(argCount);
Dbi\TypeDataWalk.cs (4)
126ImmutableArray<ITypeHandle?>.Builder builder = ImmutableArray.CreateBuilder<ITypeHandle?>((int)nTypeArgs); 145return _rts.GetConstructedType(elem, et, rank, ImmutableArray<ITypeHandle?>.Empty); 154return _rts.GetConstructedType(referent, et, 0, ImmutableArray<ITypeHandle?>.Empty); 184ImmutableArray<ITypeHandle?>.Builder builder = ImmutableArray.CreateBuilder<ITypeHandle?>((int)numTypeArgs);
Microsoft.DotNet.ApiCompatibility (8)
Rules\AttributesMustMatch.cs (2)
73ImmutableArray<AttributeData> left, 74ImmutableArray<AttributeData> right,
Rules\CannotChangeGenericConstraints.cs (6)
40var leftTypeParameters = leftType.TypeParameters; 41var rightTypeParameters = rightType.TypeParameters; 63var leftTypeParameters = leftMethod.TypeParameters; 64var rightTypeParameters = rightMethod.TypeParameters; 72ImmutableArray<ITypeParameterSymbol> leftTypeParameters, 73ImmutableArray<ITypeParameterSymbol> rightTypeParameters,
Microsoft.DotNet.ApiSymbolExtensions (3)
AssemblySymbolLoader.cs (1)
491var diagnostics = _cSharpCompilation.GetDiagnostics();
AttributeDataExtensions.cs (2)
28public static ImmutableArray<AttributeData> ExcludeNonVisibleOutsideOfAssembly(this ImmutableArray<AttributeData> attributes,
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.HotReload.Utils.Generator.Data (2)
UpdateHandlerInfo.cs (2)
13public ImmutableArray<int> UpdatedTypes {get; init;} 15public UpdateHandlerInfo(ImmutableArray<int> updatedTypes) {
Microsoft.DotNet.HotReload.Watch (108)
AppModels\BlazorWebAssemblyAppModel.cs (1)
22protected override ImmutableArray<HotReloadClient> CreateManagedClients(ILogger clientLogger, ILogger agentLogger, BrowserRefreshServer? browserRefreshServer)
AppModels\BlazorWebAssemblyHostedAppModel.cs (1)
24protected override ImmutableArray<HotReloadClient> CreateManagedClients(ILogger clientLogger, ILogger agentLogger, BrowserRefreshServer? browserRefreshServer)
AppModels\MobileAppModel.cs (1)
19ImmutableArray<HotReloadClient> clients;
AppModels\WebApplicationAppModel.cs (3)
30protected abstract ImmutableArray<HotReloadClient> CreateManagedClients(ILogger clientLogger, ILogger agentLogger, BrowserRefreshServer? browserRefreshServer); 36var managedClients = (!ManagedHotReloadRequiresBrowserRefresh || browserRefreshServer != null) && IsManagedAgentSupported(LaunchingProject, clientLogger) 45var capabilities = clientProject.GetWebAssemblyCapabilities().ToImmutableArray();
AppModels\WebServerAppModel.cs (1)
19protected override ImmutableArray<HotReloadClient> CreateManagedClients(ILogger clientLogger, ILogger agentLogger, BrowserRefreshServer? browserRefreshServer)
Aspire\AspireServiceFactory.cs (1)
85ImmutableArray<Session> sessions;
Build\BuildRequest.cs (4)
9internal readonly struct BuildRequest<T>(ProjectInstance projectInstance, ImmutableArray<string> targets, T data) 12public ImmutableArray<string> Targets { get; } = targets; 18public static BuildRequest<object?> Create(ProjectInstance instance, ImmutableArray<string> targets) 21public static BuildRequest<T> Create<T>(ProjectInstance instance, ImmutableArray<string> targets, T data)
Build\EvaluationResult.cs (3)
105var buildRequests = CreateDesignTimeBuildRequests(projectGraph.Graph, mainProjectTargetFramework, environmentOptions.SuppressHandlingStaticWebAssets).ToImmutableArray(); 107var buildResults = await projectGraph.BuildManager.BuildAsync( 157ImmutableArray<BuildResult<object?>> buildResults,
Build\ProjectBuildManager.cs (1)
34public async Task<ImmutableArray<BuildResult<T>>> BuildAsync<T>(
Build\ProjectGraphFactory.cs (1)
19ImmutableArray<ProjectRepresentation> rootProjects,
Context\DotNetWatchContext.cs (1)
25public required ImmutableArray<ProjectRepresentation> RootProjects { get; init; }
HotReload\HotReloadDotNetWatcher.cs (5)
238ImmutableArray<ChangedFile> changedFiles; 340async Task<ImmutableArray<ChangedFile>> CaptureChangedFilesSnapshot(IReadOnlyList<string> rebuiltProjects) 695var results = await evaluationResult.BuildManager.BuildAsync( 984ImmutableArray<ProjectRepresentation> projects, 1213var results = await projectGraph.BuildManager.BuildAsync(
HotReload\ManagedCodeSnapshot.cs (1)
13public ImmutableDictionary<string, ImmutableArray<ProjectInstance>> ProjectInstances { get; init; }
HotReload\ManagedCodeWorkspace.cs (5)
26private ImmutableDictionary<string, ImmutableArray<ProjectInstance>> _projectInstances 27= ImmutableDictionary<string, ImmutableArray<ProjectInstance>>.Empty.WithComparers(PathUtilities.OSSpecificPathComparer); 49private ImmutableArray<string> GetAggregateCapabilities() 51var capabilities = _runningProjectsManager.CurrentRunningProjects 94private static ImmutableDictionary<string, ImmutableArray<ProjectInstance>> CreateProjectInstanceMap(ProjectGraph graph)
HotReload\ProjectUpdatesBuilder.cs (4)
22public required ImmutableDictionary<string, ImmutableArray<RunningProject>> RunningProjects { get; init; } 188if (project.FilePath == null || !RunningProjects.TryGetValue(project.FilePath, out var projectsWithPath)) 208if (!ManagedCodeSnapshot.ProjectInstances.TryGetValue(project.FilePath, out var instances)) 297updates.ProjectsToRestart.SelectMany(e => RunningProjects.TryGetValue(GetRequiredProjectFilePath(e.Key), out var array) ? array : []));
HotReload\ProjectUpdatesBuilder.StaticWebAssets.cs (2)
17private static readonly ImmutableArray<string> s_targets = [TargetNames.GenerateComputedBuildStaticWebAssets, TargetNames.ResolveReferencedProjectsStaticWebAssets]; 120if (!RunningProjects.TryGetValue(project.ProjectPath, out var projectsWithPath))
HotReload\RunningProjectsManager.cs (12)
30private ImmutableDictionary<string, ImmutableArray<RunningProject>> _runningProjects 31= ImmutableDictionary<string, ImmutableArray<RunningProject>>.Empty.WithComparers(PathUtilities.OSSpecificPathComparer); 40private ImmutableDictionary<string, ImmutableArray<RestartOperation>> _activeProjectRelaunchOperations 41= ImmutableDictionary<string, ImmutableArray<RestartOperation>>.Empty.WithComparers(PathUtilities.OSSpecificPathComparer); 48public ImmutableDictionary<string, ImmutableArray<RunningProject>> CurrentRunningProjects 126var managedCodeUpdateCapabilities = await clients.GetUpdateCapabilitiesAsync(processCommunicationCancellationToken); 148var updatesToApply = _previousUpdates.Skip(appliedUpdateCount).ToImmutableArray(); 239ImmutableArray<ChangedFile> changedFiles, 245ImmutableDictionary<string, ImmutableArray<RunningProject>> projectsToUpdate = []; 409return projects.SelectMany(project => runningProjects.TryGetValue(project.ProjectGraphPath, out var array) ? array : []); 460if (_activeProjectRelaunchOperations.TryGetValue(ancestorPath, out var operations)) 477private static ImmutableArray<HotReloadManagedCodeUpdate> ToManagedCodeUpdates(IEnumerable<HotReloadService.Update> updates)
Process\RunningProject.cs (2)
27ImmutableArray<string> managedCodeUpdateCapabilities) : IAsyncDisposable 35public ImmutableArray<string> ManagedCodeUpdateCapabilities => managedCodeUpdateCapabilities;
src\sdk\src\Dotnet.Watch\HotReloadClient\DefaultHotReloadClient.cs (8)
22private Task<ImmutableArray<string>>? _capabilitiesTask; 45async Task<ImmutableArray<string>> ConnectAsync() 72var result = AddImplicitCapabilities(capabilities.Split(' ')); 138private Task<ImmutableArray<string>> GetCapabilitiesTask() 161public override Task<ImmutableArray<string>> GetUpdateCapabilitiesAsync(CancellationToken cancellationToken) 167public async override Task<Task<bool>> ApplyManagedCodeUpdatesAsync(ImmutableArray<HotReloadManagedCodeUpdate> updates, CancellationToken applyOperationCancellationToken, CancellationToken cancellationToken) 205static ImmutableArray<RuntimeManagedCodeUpdate> ToRuntimeUpdates(IEnumerable<HotReloadManagedCodeUpdate> updates) 213public override async Task<Task<bool>> ApplyStaticAssetUpdatesAsync(ImmutableArray<HotReloadStaticAssetUpdate> updates, CancellationToken processExitedCancellationToken, CancellationToken cancellationToken)
src\sdk\src\Dotnet.Watch\HotReloadClient\HotReloadClient.cs (6)
48protected static ImmutableArray<string> AddImplicitCapabilities(IEnumerable<string> capabilities) 69public abstract Task<ImmutableArray<string>> GetUpdateCapabilitiesAsync(CancellationToken cancellationToken); 76public abstract Task<Task<bool>> ApplyManagedCodeUpdatesAsync(ImmutableArray<HotReloadManagedCodeUpdate> updates, CancellationToken applyOperationCancellationToken, CancellationToken cancellationToken); 83public abstract Task<Task<bool>> ApplyStaticAssetUpdatesAsync(ImmutableArray<HotReloadStaticAssetUpdate> updates, CancellationToken applyOperationCancellationToken, CancellationToken cancellationToken); 111protected async Task<IReadOnlyList<HotReloadManagedCodeUpdate>> FilterApplicableUpdatesAsync(ImmutableArray<HotReloadManagedCodeUpdate> updates, CancellationToken cancellationToken) 113var availableCapabilities = await GetUpdateCapabilitiesAsync(cancellationToken);
src\sdk\src\Dotnet.Watch\HotReloadClient\HotReloadClients.cs (6)
33ImmutableArray<HotReloadClient> clients, 61public ImmutableArray<HotReloadClient> Clients 112public async ValueTask<ImmutableArray<string>> GetUpdateCapabilitiesAsync(CancellationToken cancellationToken) 133public async Task<Task> ApplyManagedCodeUpdatesAsync(ImmutableArray<HotReloadManagedCodeUpdate> updates, CancellationToken applyOperationCancellationToken, CancellationToken cancellationToken) 205public async ValueTask<Task> ApplyStaticAssetUpdatesAsync(ImmutableArray<HotReloadStaticAssetUpdate> updates, CancellationToken applyOperationCancellationToken, CancellationToken cancellationToken) 217public ValueTask ReportCompilationErrorsInApplicationAsync(ImmutableArray<string> compilationErrors, CancellationToken cancellationToken)
src\sdk\src\Dotnet.Watch\HotReloadClient\HotReloadManagedCodeUpdate.cs (10)
13ImmutableArray<byte> metadataDelta, 14ImmutableArray<byte> ilDelta, 15ImmutableArray<byte> pdbDelta, 16ImmutableArray<int> updatedTypes, 17ImmutableArray<string> requiredCapabilities) 20public ImmutableArray<byte> MetadataDelta { get; } = metadataDelta; 21public ImmutableArray<byte> ILDelta { get; } = ilDelta; 22public ImmutableArray<byte> PdbDelta { get; } = pdbDelta; 23public ImmutableArray<int> UpdatedTypes { get; } = updatedTypes; 24public ImmutableArray<string> RequiredCapabilities { get; } = requiredCapabilities;
src\sdk\src\Dotnet.Watch\HotReloadClient\HotReloadStaticAssetUpdate.cs (2)
14internal readonly struct HotReloadStaticAssetUpdate(string assemblyName, string relativePath, ImmutableArray<byte> content, bool isApplicationProject) 18public ImmutableArray<byte> Content { get; } = content;
src\sdk\src\Dotnet.Watch\HotReloadClient\Web\AbstractBrowserRefreshServer.cs (1)
318public ValueTask ReportCompilationErrorsInBrowserAsync(ImmutableArray<string> compilationErrors, CancellationToken cancellationToken)
src\sdk\src\Dotnet.Watch\HotReloadClient\Web\KestrelWebSocketServer.cs (2)
29internal sealed class KestrelWebSocketServer(IHost host, ImmutableArray<string> serverUrls) : IDisposable 36public ImmutableArray<string> ServerUrls
src\sdk\src\Dotnet.Watch\HotReloadClient\Web\StaticWebAssetsManifest.cs (2)
17internal sealed class StaticWebAssetsManifest(ImmutableDictionary<string, string> urlToPathMap, ImmutableArray<StaticWebAssetPattern> discoveryPatterns) 57public ImmutableArray<StaticWebAssetPattern> DiscoveryPatterns => discoveryPatterns;
src\sdk\src\Dotnet.Watch\HotReloadClient\Web\WebAssemblyHotReloadClient.cs (12)
22ImmutableArray<string> projectHotReloadCapabilities, 27private static readonly ImmutableArray<string> s_defaultCapabilities60 = 30private static readonly ImmutableArray<string> s_defaultCapabilities70 = 33private static readonly ImmutableArray<string> s_defaultCapabilities80 = 37private static readonly ImmutableArray<string> s_defaultCapabilities90 = 40private readonly ImmutableArray<string> _capabilities = GetUpdateCapabilities(logger, projectHotReloadCapabilities, projectTargetFrameworkVersion); 42private static ImmutableArray<string> GetUpdateCapabilities(ILogger logger, ImmutableArray<string> projectHotReloadCapabilities, Version projectTargetFrameworkVersion) 44var capabilities = projectHotReloadCapabilities.IsEmpty 93public override Task<ImmutableArray<string>> GetUpdateCapabilitiesAsync(CancellationToken cancellationToken) 96public override async Task<Task<bool>> ApplyManagedCodeUpdatesAsync(ImmutableArray<HotReloadManagedCodeUpdate> updates, CancellationToken applyOperationCancellationToken, CancellationToken cancellationToken) 153public override Task<Task<bool>> ApplyStaticAssetUpdatesAsync(ImmutableArray<HotReloadStaticAssetUpdate> updates, CancellationToken applyOperationCancellationToken, CancellationToken cancellationToken)
src\sdk\src\Dotnet.Watch\HotReloadClient\Web\WebServerHost.cs (2)
11internal sealed class WebServerHost(IDisposable listener, ImmutableArray<string> endPoints, string virtualDirectory) : IDisposable 13public ImmutableArray<string> EndPoints
Utilities\ImmutableDictionaryExtensions.cs (8)
10public static ImmutableDictionary<TKey, ImmutableArray<TValue>> Add<TKey, TValue>(this ImmutableDictionary<TKey, ImmutableArray<TValue>> dictionary, TKey key, TValue value) 13if (!dictionary.TryGetValue(key, out var items)) 21public static ImmutableDictionary<TKey, ImmutableArray<TValue>> Remove<TKey, TValue>(this ImmutableDictionary<TKey, ImmutableArray<TValue>> dictionary, TKey key, TValue value) 24if (!dictionary.TryGetValue(key, out var items)) 29var updatedItems = items.Remove(value); 40public static Task ForEachValueAsync<TKey, TValue>(this ImmutableDictionary<TKey, ImmutableArray<TValue>> dictionary, Func<TValue, CancellationToken, Task> action, CancellationToken cancellationToken)
Microsoft.DotNet.ProjectTools (35)
BuildService.cs (3)
113public ValueTask<ImmutableArray<ImmutableArray<string>>> GetItemMetadataValuesAsync(string itemType, ImmutableArray<string> metadataNames)
src\sdk\src\Cli\Microsoft.DotNet.FileBasedPrograms\FileLevelDirectiveHelpers.cs (6)
38public static ImmutableArray<CSharpDirective> FindDirectives(SourceFile sourceFile, bool reportAllErrors, ErrorReporter errorReporter, bool checkDuplicates = true) 88ImmutableArray<CSharpDirective>.Builder? builder, 696public static ImmutableArray<(string Extension, string ItemType)> DefaultMapping 747public IncludeOrExclude WithDeterminedItemType(ErrorReporter reportError, ImmutableArray<(string Extension, string ItemType)> mapping) 831public static ImmutableArray<(string Extension, string ItemType)> ParseMapping( 1000public static ErrorReporter CreateCollectingReporter(out ImmutableArray<SimpleDiagnostic>.Builder builder)
src\sdk\src\Cli\Microsoft.DotNet.FileBasedPrograms\IBuildService.cs (3)
68ValueTask<ImmutableArray<ImmutableArray<string>>> GetItemMetadataValuesAsync(string itemType, ImmutableArray<string> metadataNames);
src\sdk\src\Cli\Microsoft.DotNet.FileBasedPrograms\VirtualProjectBuilder.cs (23)
40private (ImmutableArray<CSharpDirective> Original, ImmutableArray<CSharpDirective> Evaluated)? _evaluatedDirectives; 141var directives = FileLevelDirectiveHelpers.FindDirectives(sourceFile, reportAllErrors: false, ErrorReporters.IgnoringReporter); 219private async ValueTask<ImmutableArray<CSharpDirective>> EvaluateDirectivesAsync( 221ImmutableArray<CSharpDirective> directives, 231ImmutableArray<(string Extension, string ItemType)> mapping = default; 275internal async ValueTask<ImmutableArray<(string Extension, string ItemType)>> GetItemMappingAsync(IProjectInstance project, ErrorReporter reportError) 302ImmutableArray<CSharpDirective> evaluatedDirectives) 306public ImmutableArray<CSharpDirective> EvaluatedDirectives { get; } = evaluatedDirectives; 312ImmutableArray<CSharpDirective> directives = default, 319ImmutableArray<CSharpDirective> evaluatedDirectives; 321var directivesOriginal = directives; 352var directivesForEvaluation = DeduplicateSdkDirectives(directives); 361var fileEvaluatedDirectives = await EvaluateDirectivesAsync(project, directivesForEvaluation, reportError).ConfigureAwait(false); 399var compileItems = await project.GetItemMetadataValuesAsync("Compile", ["FullPath"]).ConfigureAwait(false); 400foreach (var compileItem in compileItems) 439ImmutableArray<CSharpDirective> DeduplicateSdkDirectives(ImmutableArray<CSharpDirective> directives) 475ImmutableArray<CSharpDirective> directives, 522ImmutableArray<CSharpDirective> directives, 560ImmutableArray<CSharpDirective> directives, 590ImmutableArray<CSharpDirective> directives, 597ImmutableArray<ExplicitProjectItem> explicitProjectItems = default)
Microsoft.DotNet.StrongName (13)
Signing.cs (8)
65ImmutableArray<byte> publicKeyBlob = metadataReader.GetPublicKeyBlob(); 66if (!TryParseKey(publicKeyBlob, out ImmutableArray<byte> snKey, out _)) 168if (!TryParseKey(File.ReadAllBytes(keyFile).ToImmutableArray(), out ImmutableArray<byte> snkPublicKey, out RSAParameters? privateKey) || 183ImmutableArray<byte> publicKeyBlob = metadataReader.GetPublicKeyBlob(); 190if (!TryParseKey(publicKeyBlob, out ImmutableArray<byte> assemblyPublicKey, out _)) 254private static ImmutableArray<byte> CreateSnPublicKeyBlob( 296private static bool TryParseKey(ImmutableArray<byte> blob, out ImmutableArray<byte> snKey, out RSAParameters? privateKey)
Utils.cs (4)
21internal static bool IsValidPublicKey(ImmutableArray<byte> blob) 177internal static RSAParameters ToRSAParameters(this ImmutableArray<byte> cspBlob, bool includePrivateParameters) 217internal static ImmutableArray<byte> GetPublicKeyBlob(this MetadataReader metadataReader) 222return ImmutableArray<byte>.Empty;
Verification.cs (1)
101ImmutableArray<byte> publicKeyBlob = metadataReader.GetBlobContent(metadataReader.GetAssemblyDefinition().PublicKey);
Microsoft.Extensions.AI.Abstractions.Tests (13)
..\..\..\..\test\Libraries\Microsoft.Extensions.AI.Abstractions.Tests\..\..\Shared\JsonSchemaExporter\TestTypes.cs (2)
819yield return new TestData<ImmutableArray<int>>(ImmutableArray.Create(1, 2, 3), """{"type":"array","items":{"type":"integer"}}"""); 1302[JsonSerializable(typeof(ImmutableArray<int>))]
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\TestTypesContext.GetJsonTypeInfo.g.cs (1)
288if (type == typeof(global::System.Collections.Immutable.ImmutableArray<int>))
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\TestTypesContext.ImmutableArrayInt32.g.cs (10)
15private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Immutable.ImmutableArray<int>>? _ImmutableArrayInt32; 21public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Immutable.ImmutableArray<int>> ImmutableArrayInt32 24get => _ImmutableArrayInt32 ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Immutable.ImmutableArray<int>>)Options.GetTypeInfo(typeof(global::System.Collections.Immutable.ImmutableArray<int>)); 27private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Immutable.ImmutableArray<int>> Create_ImmutableArrayInt32(global::System.Text.Json.JsonSerializerOptions options) 29if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Immutable.ImmutableArray<int>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Immutable.ImmutableArray<int>> jsonTypeInfo)) 31var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Immutable.ImmutableArray<int>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateImmutableEnumerableInfo<global::System.Collections.Immutable.ImmutableArray<int>, int>(options, info, createRangeFunc: global::System.Collections.Immutable.ImmutableArray.CreateRange); 47private void ImmutableArrayInt32SerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Immutable.ImmutableArray<int> value)
Microsoft.Extensions.Configuration.Binder.SourceGeneration (23)
ConfigurationBindingGenerator.cs (6)
40IncrementalValueProvider<(SourceGenerationSpec?, ImmutableArray<Diagnostic>)> genSpec = context.SyntaxProvider 51return (null, ImmutableArray<Diagnostic>.Empty); 58ImmutableArray<Diagnostic> diagnostics = parser.Diagnostics is { } diags 60: ImmutableArray<Diagnostic>.Empty; 86IncrementalValueProvider<ImmutableArray<Diagnostic>> diagnostics = 160private static void EmitDiagnostics(SourceProductionContext context, ImmutableArray<Diagnostic> diagnostics)
ConfigurationBindingGenerator.Parser.cs (6)
35public SourceGenerationSpec? GetSourceGenerationSpec(ImmutableArray<BinderInvocation?> invocations, CancellationToken cancellationToken) 80private void ParseInvocations(ImmutableArray<BinderInvocation?> invocations) 719ImmutableArray<ISymbol> members = current.GetMembers(); 749ImmutableArray<AttributeData> attributes = property.GetAttributes(); 1069var throwIfNullMethods = _typeSymbols.ArgumentNullException.GetMembers("ThrowIfNull"); 1075var parameters = throwIfNullMethodSymbol.Parameters;
ConfigurationBindingGenerator.Suppressor.cs (1)
39public override ImmutableArray<SuppressionDescriptor> SupportedSuppressions => ImmutableArray.Create(RUCDiagnostic, RDCDiagnostic);
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;
Parser\OptionsBuilderConfigurationExtensions.cs (3)
18ImmutableArray<IParameterSymbol> @params = targetMethod.Parameters; 46ImmutableArray<IParameterSymbol> @params = targetMethod.Parameters; 73ImmutableArray<IParameterSymbol> @params = targetMethod.Parameters;
Parser\OptionsConfigurationServiceCollectionExtensions.cs (1)
19ImmutableArray<IParameterSymbol> @params = targetMethod.Parameters;
src\runtime\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.Diagnostics.ExceptionSummarization (1)
..\..\..\..\src\Libraries\Microsoft.Extensions.Diagnostics.ExceptionSummarization\HttpExceptionSummaryProvider.cs (1)
26private static readonly ImmutableArray<string> _descriptions;
Microsoft.Extensions.Logging.Generators (12)
LoggerMessageGenerator.Parser.cs (2)
118ImmutableArray<AttributeData> boundAttributes = logMethodSymbol.GetAttributes(); 145ImmutableArray<TypedConstant> items = attributeData.ConstructorArguments;
LoggerMessageGenerator.Roslyn4.0.cs (8)
28IncrementalValuesProvider<(LoggerClassSpec? LoggerClassSpec, ImmutableArray<Diagnostic> Diagnostics, bool HasStringCreate)> loggerClasses = context.SyntaxProvider 69var diagnostics = ImmutableArray.Create(Diagnostic.Create(DiagnosticDescriptors.MissingRequiredType, null, new object?[] { "System.Exception" })); 106IncrementalValueProvider<(ImmutableEquatableArray<(LoggerClassSpec LoggerClassSpec, bool HasStringCreate)> Specs, ImmutableArray<Diagnostic> Diagnostics)> collected = 109ImmutableArray<(LoggerClassSpec, bool)>.Builder? specs = null; 110ImmutableArray<Diagnostic>.Builder? diagnostics = null; 130diagnostics?.ToImmutable() ?? ImmutableArray<Diagnostic>.Empty); 147IncrementalValueProvider<ImmutableArray<Diagnostic>> diagnosticResults = 153private static void EmitDiagnostics(SourceProductionContext context, ImmutableArray<Diagnostic> diagnostics)
src\runtime\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)
513ImmutableArray<IParameterSymbol> parameters = attribute.AttributeConstructor?.Parameters ?? ImmutableArray<IParameterSymbol>.Empty; 516ImmutableArray<TypedConstant> arguments = attribute.ConstructorArguments; 633ImmutableArray<IParameterSymbol> constructorParameters = attribute.AttributeConstructor?.Parameters ?? ImmutableArray<IParameterSymbol>.Empty; 644ImmutableArray<IParameterSymbol> constructorParameters = attribute.AttributeConstructor?.Parameters ?? ImmutableArray<IParameterSymbol>.Empty; 790private string GetArrayArgumentExpression(ImmutableArray<Microsoft.CodeAnalysis.TypedConstant> value, bool isParams)
ParserUtilities.cs (1)
21var attrs = symbol.GetAttributes();
src\runtime\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.Validation.ValidationsGenerator (34)
Analyzers\ValidatableTypeInGeneratedCodeDiagnosticAnalyzer.cs (1)
27public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } =
Analyzers\ValidationsDiagnosticAnalyzer.cs (1)
80public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } =
Emitters\ValidationsGenerator.Emitter.cs (7)
18internal static void Emit(SourceProductionContext context, (ImmutableArray<InterceptableLocation?> AddValidationLocations, ImmutableArray<ValidatableType> ValidatableTypes) emitInputs) 20var locations = emitInputs.AddValidationLocations.OfType<InterceptableLocation>().ToImmutableArray(); 30private static string Emit(ImmutableArray<InterceptableLocation> addValidationLocations, ImmutableArray<ValidatableType> validatableTypes) => $$""" 330private static string EmitAddValidationInterceptorAttributes(ImmutableArray<InterceptableLocation> addValidations) 350private static string EmitTypeChecks(ImmutableArray<ValidatableType> validatableTypes)
Extensions\IncrementalValuesProviderExtensions.cs (7)
41this IncrementalValuesProvider<ImmutableArray<T>> first, 42IncrementalValuesProvider<ImmutableArray<T>> second) 67this IncrementalValuesProvider<ImmutableArray<T>> first, 92private sealed class ImmutableArrayEqualityComparer<T> : IEqualityComparer<ImmutableArray<T>> 96public bool Equals(ImmutableArray<T> x, ImmutableArray<T> y) 123public int GetHashCode(ImmutableArray<T> obj)
Extensions\ITypeSymbolExtensions.cs (1)
114internal static ImmutableArray<INamedTypeSymbol>? GetJsonDerivedTypes(this ITypeSymbol type, INamedTypeSymbol jsonDerivedTypeAttribute)
Models\ValidatableType.cs (1)
12ImmutableArray<ValidatableProperty> Members,
Parsers\ValidationsGenerator.AttributeParser.cs (1)
19internal static ImmutableArray<ValidatableType> TransformValidatableTypeWithAttribute(GeneratorAttributeSyntaxContext context, CancellationToken cancellationToken)
Parsers\ValidationsGenerator.EndpointsParser.cs (1)
28internal static ImmutableArray<ValidatableType> TransformEndpoints(GeneratorSyntaxContext context, CancellationToken cancellationToken)
Parsers\ValidationsGenerator.TypesParser.cs (4)
17internal static ImmutableArray<ValidatableType> ExtractValidatableTypes(IInvocationOperation operation) 25var parameters = operation.TryGetRouteHandlerMethod(operation.SemanticModel, needsAccurateSignature: false, out var method) 108ImmutableArray<ValidatableProperty> members = []; 174private static ImmutableArray<ValidatableProperty> ExtractValidatableMembers(ITypeSymbol typeSymbol, WellKnownTypes wellKnownTypes, HashSet<ValidatableType> validatableTypes, List<ITypeSymbol> visitedTypes)
src\aspnetcore\src\Shared\RoslynUtils\ParsabilityHelper.cs (1)
182var baseTypeBindAsyncMethods = candidate.GetMembers("BindAsync");
src\aspnetcore\src\Shared\RoslynUtils\SymbolExtensions.cs (8)
65public static bool HasAttribute(this ImmutableArray<AttributeData> attributes, INamedTypeSymbol attributeType) 89public static bool TryGetAttribute(this ImmutableArray<AttributeData> attributes, INamedTypeSymbol attributeType, [NotNullWhen(true)] out AttributeData? matchedAttribute) 124public static bool HasAttributeImplementingInterface(this ImmutableArray<AttributeData> attributes, INamedTypeSymbol interfaceType) 129public static bool TryGetAttributeImplementingInterface(this ImmutableArray<AttributeData> attributes, INamedTypeSymbol interfaceType, [NotNullWhen(true)] out AttributeData? matchedAttribute) 154public static bool HasAttributeInheritingFrom(this ImmutableArray<AttributeData> attributes, INamedTypeSymbol baseType) 159public static bool TryGetAttributeInheritingFrom(this ImmutableArray<AttributeData> attributes, INamedTypeSymbol baseType, [NotNullWhen(true)] out AttributeData? matchedAttribute) 214public static ImmutableArray<IParameterSymbol> GetParameters(this ISymbol? symbol) 219_ => ImmutableArray<IParameterSymbol>.Empty,
src\aspnetcore\src\Shared\RoslynUtils\WellKnownTypes.cs (1)
121var types = _compilation.GetTypesByMetadataName(metadataName);
Microsoft.Gen.BuildMetadata (2)
GeneratorUtilities.cs (1)
74var nodes = source.Right;
ParserUtilities.cs (1)
26var attrs = symbol.GetAttributes();
Microsoft.Gen.BuildMetadata.Unit.Tests (12)
GeneratorTests.cs (1)
96var result = driver.RunGeneratorsAndUpdateCompilation(comp!, out var outputCompilation, out var diagnostics);
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.ComplianceReports (1)
GeneratorUtilities.cs (1)
74var nodes = source.Right;
Microsoft.Gen.ComplianceReports.Unit.Tests (11)
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 =
GeneratorUtilities.cs (1)
74var nodes = source.Right;
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)
Microsoft.Gen.ContextualOptions.Unit.Tests (15)
EmitterTests.cs (4)
26var delarations = SyntaxFactory 45var delarations = SyntaxFactory 77var delarations = SyntaxFactory 105var delarations = SyntaxFactory
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 (6)
GeneratorUtilities.cs (1)
74var nodes = source.Right;
LoggingGenerator.cs (2)
25IncrementalValueProvider<(Compilation, ImmutableArray<TypeDeclarationSyntax>)> compilationAndTypes = 31private static void HandleAnnotatedTypes(Compilation compilation, ImmutableArray<TypeDeclarationSyntax> types, SourceProductionContext context)
Parser.LogProperties.cs (1)
97var members = namedType.GetMembers();
Parser.Records.cs (1)
46var members = namedType.GetMembers();
ParserUtilities.cs (1)
26var attrs = symbol.GetAttributes();
Microsoft.Gen.Logging.Unit.Tests (22)
AttributeParserTests.cs (1)
316out var generatorDiagnostics);
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)
675(IReadOnlyList<Diagnostic> diagnostics, ImmutableArray<GeneratedSourceResult> generatedSources) =
ParserUtilitiesTests.cs (2)
92.Returns(default(ImmutableArray<Location>)); 97.Returns(ImmutableArray<Location>.Empty);
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.MetadataExtractor (5)
GeneratorUtilities.cs (1)
74var nodes = source.Right;
Parser_2.cs (3)
429ImmutableArray<KeyValuePair<string, TypedConstant>> namedArgs = ImmutableArray<KeyValuePair<string, TypedConstant>>.Empty; 613ImmutableArray<KeyValuePair<string, TypedConstant>> namedArguments,
ParserUtilities.cs (1)
26var attrs = symbol.GetAttributes();
Microsoft.Gen.MetadataExtractor.Unit.Tests (11)
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 (5)
GeneratorUtilities.cs (1)
74var nodes = source.Right;
Parser.cs (3)
429ImmutableArray<KeyValuePair<string, TypedConstant>> namedArgs = ImmutableArray<KeyValuePair<string, TypedConstant>>.Empty; 613ImmutableArray<KeyValuePair<string, TypedConstant>> namedArguments,
ParserUtilities.cs (1)
26var attrs = symbol.GetAttributes();
Microsoft.Gen.Metrics.Unit.Tests (11)
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 (5)
GeneratorUtilities.cs (1)
74var nodes = source.Right;
Parser.cs (3)
429ImmutableArray<KeyValuePair<string, TypedConstant>> namedArgs = ImmutableArray<KeyValuePair<string, TypedConstant>>.Empty; 613ImmutableArray<KeyValuePair<string, TypedConstant>> namedArguments,
ParserUtilities.cs (1)
26var attrs = symbol.GetAttributes();
Microsoft.Gen.MetricsReports.Unit.Tests (11)
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 (105)
Analyzers\AddGeneratedComClassAnalyzer.cs (1)
16public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(AddGeneratedComClassAttribute);
Analyzers\AddGeneratedComClassFixer.cs (1)
21public override ImmutableArray<string> FixableDiagnosticIds => ImmutableArray.Create(AnalyzerDiagnostics.Ids.AddGeneratedComClassAttribute);
Analyzers\AddMarshalAsToElementFixer.cs (1)
20public override ImmutableArray<string> FixableDiagnosticIds => ImmutableArray.Create(GeneratorDiagnostics.Ids.NotRecommendedGeneratedComInterfaceUsage);
Analyzers\ComClassGeneratorDiagnosticsAnalyzer.cs (1)
18public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } =
Analyzers\ComHostingDoesNotSupportGeneratedComInterfaceAnalyzer.cs (1)
17public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(ComHostingDoesNotSupportGeneratedComInterface);
Analyzers\ComInterfaceGeneratorDiagnosticsAnalyzer.cs (10)
20public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = 141ImmutableArray<ComInterfaceInfo> contextChain = BuildContextChain( 144ImmutableArray<DiagnosticOr<ComInterfaceContext>> contextResults = ComInterfaceContext.GetContexts(contextChain, ct); 187ImmutableArray<DiagnosticInfo> managedToNativeDiags = ImmutableArray<DiagnosticInfo>.Empty; 188ImmutableArray<DiagnosticInfo> nativeToManagedDiags = ImmutableArray<DiagnosticInfo>.Empty; 211private static ImmutableArray<ComInterfaceInfo> BuildContextChain( 221ImmutableArray<(ComInterfaceInfo, INamedTypeSymbol)> externalBases = 241ImmutableArray<(ComInterfaceInfo, INamedTypeSymbol)> externalInfos =
Analyzers\ConvertComImportToGeneratedComInterfaceAnalyzer.cs (3)
20public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(ConvertToGeneratedComInterface); 128}), StubCodeContext.DefaultManagedToNativeStub, forwarder, out var generatorDiagnostics); 154var 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))
Analyzers\VtableIndexStubDiagnosticsAnalyzer.cs (1)
17public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } =
ComClassInfo.cs (1)
29ImmutableArray<string>.Builder names = ImmutableArray.CreateBuilder<string>();
ComInterfaceContext.cs (2)
30public static ImmutableArray<DiagnosticOr<ComInterfaceContext>> GetContexts(ImmutableArray<ComInterfaceInfo> data, CancellationToken _)
ComInterfaceGenerator.cs (16)
46InterfaceContexts: ImmutableArray<ComInterfaceContext>.Empty.ToSequenceEqual(), 47MethodContexts: ImmutableArray<ComMethodContext>.Empty.ToSequenceEqual() 58var externalBase = ComInterfaceInfo.CreateInterfaceInfoForBaseInterfacesInOtherCompilations(symbol); 70var comInterfaceContexts = ComInterfaceContext.GetContexts(interfaceInfos.Select(i => i.Item1).ToImmutableArray(), ct); 237ImmutableArray<TypePositionInfo> returnSwappedSignatureElements = signatureContext.ElementTypeInformation; 313ImmutableArray<FunctionPointerUnmanagedCallingConventionSyntax> callConv = VirtualMethodPointerStubGenerator.GenerateCallConvSyntaxFromAttributes( 422ImmutableArray<Location> parameterLocations = accessor.MethodKind is MethodKind.PropertySet 424: ImmutableArray<Location>.Empty; 468private static ImmutableArray<ComInterfaceAndMethodsContext> GroupComContextsForInterfaceGeneration(ImmutableArray<ComMethodContext> methods, ImmutableArray<ComInterfaceContext> interfaces, CancellationToken ct) 475return ImmutableArray<ComInterfaceAndMethodsContext>.Empty; 824ImmutableArray<ParameterSyntax> stubParameters = genCtx.SignatureContext.StubParameters.ToImmutableArray(); 826ImmutableArray<ParameterSyntax> indexParameters; 921ImmutableArray<ParameterSyntax> stubParams = sigContext.StubParameters.ToImmutableArray(); 922ImmutableArray<TypePositionInfo> managedParams = sigContext.ManagedParameters.ToImmutableArray();
ComInterfaceInfo.cs (5)
116ImmutableArray<DiagnosticInfo>.Builder nonFatalDiagnostics = ImmutableArray.CreateBuilder<DiagnosticInfo>(); 145public static ImmutableArray<InterfaceInfo> CreateInterfaceInfoForBaseInterfacesInOtherCompilations( 149return ImmutableArray<InterfaceInfo>.Empty; 152return ImmutableArray<InterfaceInfo>.Empty; 154ImmutableArray<InterfaceInfo>.Builder builder = ImmutableArray.CreateBuilder<InterfaceInfo>();
ComMethodContext.cs (7)
123var allMethodsCache = new Dictionary<ComInterfaceContext, ImmutableArray<Builder>>(); 127var methods = AddMethods(kvp.Item1, kvp.Item2); 138ImmutableArray<Builder> AddMethods(ComInterfaceContext iface, IEnumerable<ComMethodInfo> declaredMethods) 140if (allMethodsCache.TryGetValue(iface, out var cachedValue)) 151ImmutableArray<Builder> baseMethods; 152if (!allMethodsCache.TryGetValue(baseComIface, out var pair)) 170var imm = methods.ToImmutableArray();
ComMethodInfo.cs (12)
54? ImmutableArray<AttributeInfo>.Empty.ToSequenceEqual() 139ImmutableArray<DiagnosticOr<(ComMethodInfo, IMethodSymbol)>>.Builder methods, 244ImmutableArray<DiagnosticOr<(ComMethodInfo, IMethodSymbol)>>.Builder methods, 319ImmutableArray<DiagnosticOr<(ComMethodInfo, IMethodSymbol)>>.Builder methods, 346ImmutableArray<DiagnosticOr<(ComMethodInfo, IMethodSymbol)>>.Builder methods, 370return ImmutableArray<AttributeInfo>.Empty.ToSequenceEqual(); 376private static SequenceEqualImmutableArray<AttributeInfo> CreateAttributeInfoArray(ImmutableArray<AttributeData> attributes) 380return ImmutableArray<AttributeInfo>.Empty.ToSequenceEqual(); 558static bool IsMarshalUsingComplete(ImmutableArray<AttributeData> attributes) 573ImmutableArray<DiagnosticOr<(ComMethodInfo, IMethodSymbol)>>.Builder methods, 598ImmutableArray<DiagnosticOr<(ComMethodInfo, IMethodSymbol)>>.Builder methods, 619ImmutableArray<DiagnosticOr<(ComMethodInfo, IMethodSymbol)>>.Builder methods,
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\runtime\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\runtime\src\libraries\System.Runtime.InteropServices\gen\Common\ConvertToSourceGeneratedInteropFixer.cs (1)
174ImmutableArray<Diagnostic> diagnosticsInScope = await fixAllContext.GetDiagnosticsInScopeAsync().ConfigureAwait(false);
src\runtime\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;
VirtualMethodPointerStubGenerator.cs (15)
23public static (MemberDeclarationSyntax, ImmutableArray<DiagnosticInfo>) GenerateManagedToNativeStub( 29ImmutableArray<TypePositionInfo> elements = methodStub.SignatureContext.ElementTypeInformation; 116ImmutableArray<FunctionPointerUnmanagedCallingConventionSyntax> callConv) 158ImmutableArray<ParameterSyntax> stubParameters = methodStub.SignatureContext.StubParameters.ToImmutableArray(); 160ImmutableArray<ParameterSyntax> indexParameters; 196public static (MemberDeclarationSyntax, ImmutableArray<DiagnosticInfo>) GenerateNativeToManagedStub( 202ImmutableArray<TypePositionInfo> elements = AddUnmanagedToManagedImplicitElementInfos(methodStub); 270private static ImmutableArray<TypePositionInfo> AddManagedToUnmanagedImplicitThis(SourceAvailableIncrementalMethodStubGenerationContext methodStub) 272ImmutableArray<TypePositionInfo> originalElements = methodStub.SignatureContext.ElementTypeInformation; 292private static ImmutableArray<TypePositionInfo> AddUnmanagedToManagedImplicitElementInfos(IncrementalMethodStubGenerationContext methodStub) 294ImmutableArray<TypePositionInfo> originalElements = methodStub.SignatureContext.ElementTypeInformation; 345ImmutableArray<FunctionPointerUnmanagedCallingConventionSyntax> callConv = method.CallingConvention.Array; 352public static ImmutableArray<FunctionPointerUnmanagedCallingConventionSyntax> GenerateCallConvSyntaxFromAttributes(AttributeData? suppressGCTransitionAttribute, AttributeData? unmanagedCallConvAttribute, ImmutableArray<FunctionPointerUnmanagedCallingConventionSyntax> defaultCallingConventions) 355ImmutableArray<FunctionPointerUnmanagedCallingConventionSyntax>.Builder callingConventions = ImmutableArray.CreateBuilder<FunctionPointerUnmanagedCallingConventionSyntax>();
VtableIndexStubGenerator.cs (3)
119IncrementalValueProvider<ImmutableArray<ContainingSyntaxContext>> syntaxContexts = generateStubInformation 349ImmutableArray<FunctionPointerUnmanagedCallingConventionSyntax> callConv = VirtualMethodPointerStubGenerator.GenerateCallConvSyntaxFromAttributes(suppressGCTransitionAttribute, unmanagedCallConvAttribute, defaultCallingConventions: ImmutableArray<FunctionPointerUnmanagedCallingConventionSyntax>.Empty);
Microsoft.Interop.JavaScript.JSImportGenerator (18)
Analyzers\JSExportDiagnosticsAnalyzer.cs (1)
24protected override ImmutableArray<DiagnosticInfo> CalculateDiagnostics(
Analyzers\JSImportDiagnosticsAnalyzer.cs (1)
24protected override ImmutableArray<DiagnosticInfo> CalculateDiagnostics(
Analyzers\JSImportExportDiagnosticsAnalyzer.cs (3)
20private static readonly ImmutableArray<DiagnosticDescriptor> s_sharedDescriptors = ImmutableArray.Create( 31public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => 58protected abstract ImmutableArray<DiagnosticInfo> CalculateDiagnostics(
JSExportGenerator.cs (6)
71IncrementalValueProvider<ImmutableArray<(StatementSyntax, AttributeListSyntax)>> regSyntax = generateSingleStub 81IncrementalValueProvider<ImmutableArray<(string, string)>> generated = generateSingleStub 189ImmutableArray<(StatementSyntax Registration, AttributeListSyntax Attribute)> methods, string assemblyName) 299ImmutableArray<TypePositionInfo> signatureElements = incrementalContext.SignatureContext.SignatureContext.ElementTypeInformation; 301ImmutableArray<TypePositionInfo> allElements = signatureElements 358private static ExpressionStatementSyntax CreateWrapperToInnerStubCall(ImmutableArray<TypePositionInfo> signatureElements, string innerWrapperName)
JSImportGenerator.cs (3)
183ImmutableArray<TypePositionInfo> originalElementInfo = incrementalContext.SignatureContext.SignatureContext.ElementTypeInformation; 185ImmutableArray<TypePositionInfo>.Builder typeInfoBuilder = ImmutableArray.CreateBuilder<TypePositionInfo>(originalElementInfo.Length + NumImplicitArguments); 241ImmutableArray<TypePositionInfo> finalElementInfo = typeInfoBuilder.ToImmutable();
JSMarshallingInfo.cs (2)
22private ImmutableArray<TypePositionInfo> _elementDependencies = ImmutableArray<TypePositionInfo>.Empty;
JSSignatureContext.cs (1)
38ImmutableArray<IUseSiteAttributeParser> useSiteAttributeParsers = ImmutableArray.Create<IUseSiteAttributeParser>(new JSMarshalAsAttributeParser(env.Compilation));
SignatureBindingHelpers.cs (1)
15public static ArgumentSyntax CreateSignaturesArgument(ImmutableArray<TypePositionInfo> elements, StubCodeContext context)
Microsoft.Interop.LibraryImportGenerator (29)
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\LibraryImportDiagnosticsAnalyzer.cs (3)
24public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = 182var diagnostics = CalculateDiagnostics(methodSyntax, method, libraryImportAttr, env, options, context.CancellationToken); 232private static ImmutableArray<DiagnosticInfo> CalculateDiagnostics(
Analyzers\NativeMarshallingAttributeAnalyzer.cs (1)
54public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics =>
Analyzers\ShapeBreakingDiagnosticSuppressor.cs (1)
19public override ImmutableArray<SuppressionDescriptor> SupportedSuppressions =>
Comparers.cs (5)
14/// Generic comparer to compare two <see cref="ImmutableArray{T}"/> instances element by element. 17internal sealed class ImmutableArraySequenceEqualComparer<T> : IEqualityComparer<ImmutableArray<T>> 30public bool Equals(ImmutableArray<T> x, ImmutableArray<T> y) 35public int GetHashCode(ImmutableArray<T> obj)
LibraryImportGenerator.cs (1)
325ImmutableArray<AttributeSyntax> forwardedAttributes = pinvokeStub.ForwardedAttributes.Array;
src\runtime\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\runtime\src\libraries\System.Runtime.InteropServices\gen\Common\ConvertToSourceGeneratedInteropFixer.cs (1)
174ImmutableArray<Diagnostic> diagnosticsInScope = await fixAllContext.GetDiagnosticsInScopeAsync().ConfigureAwait(false);
src\runtime\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 (7)
DownlevelLibraryImportDiagnosticsAnalyzer.cs (3)
23public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = 181var diagnostics = CalculateDiagnostics(methodSyntax, method, libraryImportAttr, env, context.CancellationToken); 231private static ImmutableArray<DiagnosticInfo> CalculateDiagnostics(
DownlevelLibraryImportGenerator.cs (1)
268ImmutableArray<AttributeSyntax> forwardedAttributes = pinvokeStub.ForwardedAttributes.Array;
DownlevelLibraryImportGeneratorHelpers.cs (1)
33var useSiteAttributeParsers = ImmutableArray.Create<IUseSiteAttributeParser>(
src\runtime\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 (101)
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>(); 199public ImmutableArray<IBoundMarshallingGenerator> SignatureMarshallers { get; private init; } 201public ImmutableArray<IBoundMarshallingGenerator> ManagedParameterMarshallers { get; private init; } 203public ImmutableArray<IBoundMarshallingGenerator> NativeParameterMarshallers { get; private init; }
ContainingSyntaxContext.cs (3)
39public sealed record ContainingSyntaxContext(ImmutableArray<ContainingSyntax> ContainingSyntax, string? ContainingNamespace) 51private static ImmutableArray<ContainingSyntax> GetContainingTypes(MemberDeclarationSyntax memberDeclaration) 53ImmutableArray<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)
28public abstract ImmutableArray<DiagnosticInfo> Diagnostics { get; } 33internal Diag(ImmutableArray<DiagnosticInfo> diagnostics) => _diagnostics = diagnostics.ToSequenceEqual(); 37public override ImmutableArray<DiagnosticInfo> Diagnostics => _diagnostics.Array; 47public override ImmutableArray<DiagnosticInfo> Diagnostics => throw new InvalidOperationException(); 54internal ValueAndDiagnostic(T value, ImmutableArray<DiagnosticInfo> diagnostics) => (_value, _diagnostics) = (value, diagnostics.ToSequenceEqual()); 58public 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; } 93private static ImmutableArray<StatementSyntax> GenerateStatementsForStubContext(BoundGenerators marshallers, StubIdentifierContext context) 95ImmutableArray<StatementSyntax>.Builder statementsToUpdate = ImmutableArray.CreateBuilder<StatementSyntax>(); 206private static ImmutableArray<CatchClauseSyntax> GenerateCatchClauseForManagedException(BoundGenerators marshallers, StubIdentifierContext context) 210return ImmutableArray<CatchClauseSyntax>.Empty; 212ImmutableArray<StatementSyntax>.Builder catchClauseBuilder = ImmutableArray.CreateBuilder<StatementSyntax>();
GeneratorDiagnosticsBag.cs (1)
113public void ReportGeneratorDiagnostics(ImmutableArray<GeneratorDiagnostic> diagnostics)
IncrementalGeneratorInitializationContextExtensions.cs (1)
52IncrementalValueProvider<ImmutableArray<string>> generatedMethods = nodes
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)
180private readonly ImmutableArray<IUseSiteAttributeParser> _useSiteMarshallingAttributeParsers; 181private readonly ImmutableArray<IMarshallingInfoAttributeParser> _marshallingAttributeParsers; 182private readonly ImmutableArray<ITypeBasedMarshallingInfoProvider> _typeBasedMarshallingInfoProviders; 195ImmutableArray<IUseSiteAttributeParser> useSiteMarshallingAttributeParsers, 196ImmutableArray<IMarshallingInfoAttributeParser> marshallingAttributeParsers, 197ImmutableArray<ITypeBasedMarshallingInfoProvider> typeBasedMarshallingInfoProviders)
MethodSignatureDiagnosticLocations.cs (1)
54public sealed record MethodSignatureDiagnosticLocations(string MethodIdentifier, ImmutableArray<Location> ManagedParameterLocations, Location FallbackLocation) : ISignatureDiagnosticLocations
MethodSignatureElementInfoProvider.cs (2)
15private readonly ImmutableArray<IUseSiteAttributeParser> _useSiteAttributeParsers; 17public 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 (14)
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( 115ImmutableArray<AttributeData> associatedPropertyAttributes = method.AssociatedSymbol is IPropertySymbol property 117: ImmutableArray<AttributeData>.Empty; 125ImmutableArray<TypePositionInfo>.Builder typeInfos = ImmutableArray.CreateBuilder<TypePositionInfo>(); 129ImmutableArray<AttributeData> paramAttributes = i == valueParameterIndex 142ImmutableArray<AttributeData> returnAttributes = method.MethodKind == MethodKind.PropertyGet 157private static ImmutableArray<AttributeData> MergeAccessorAndPropertyAttributes( 158ImmutableArray<AttributeData> accessorAttributes, 159ImmutableArray<AttributeData> associatedPropertyAttributes) 190ImmutableArray<AttributeData>.Builder merged = ImmutableArray.CreateBuilder<AttributeData>(accessorAttributes.Length + associatedPropertyAttributes.Length);
src\runtime\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>();
UnmanagedToManagedStubGenerator.cs (4)
23ImmutableArray<TypePositionInfo> argTypes, 27_marshallers = BoundGenerators.Create(argTypes, generatorResolver, StubCodeContext.DefaultNativeToManagedStub, new Forwarder(), out var bindingDiagnostics); 92var managedParameterMarshallers = _marshallers.ManagedParameterMarshallers; 138ImmutableArray<StatementSyntax> finallyStatements = statements.CleanupCallerAllocated;
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)
212 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.EntryPoints (4)
PermutationFeatureImportance.cs (4)
96var permutationMetrics = binaryCatalog 153var permutationMetrics = multiclassCatalog 212var permutationMetrics = regressionCatalog 265var permutationMetrics = rankingCatalog
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 readonly 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.NET.HostModel (4)
MachO\BinaryFormat\Blobs\SuperBlob.cs (4)
36Blobs = ImmutableArray<IBlob>.Empty; 37BlobIndices = ImmutableArray<BlobIndex>.Empty; 59public ImmutableArray<BlobIndex> BlobIndices { get; } 60public ImmutableArray<IBlob> Blobs { get; }
Microsoft.Private.Windows.Core (3)
System\TypeExtensions.cs (3)
70ImmutableArray<TypeName> genericNames = typeName.GetGenericArguments(); 130ImmutableArray<TypeName> genericNamesY = y.GetGenericArguments(); 131ImmutableArray<TypeName> genericNamesX = x.GetGenericArguments();
Microsoft.SourceLink.AzureDevOpsServer.Git (3)
src\sourcelink\src\Common\Utilities\Hash.cs (3)
113internal static int CombineValues<T>(ImmutableArray<T> values, int maxItemsToHash = int.MaxValue) 164internal static int CombineValues(ImmutableArray<string> values, StringComparer stringComparer, int maxItemsToHash = int.MaxValue) 245internal static int GetFNVHashCode(ImmutableArray<byte> data)
Microsoft.SourceLink.AzureRepos.Git (3)
src\sourcelink\src\Common\Utilities\Hash.cs (3)
113internal static int CombineValues<T>(ImmutableArray<T> values, int maxItemsToHash = int.MaxValue) 164internal static int CombineValues(ImmutableArray<string> values, StringComparer stringComparer, int maxItemsToHash = int.MaxValue) 245internal static int GetFNVHashCode(ImmutableArray<byte> data)
Microsoft.SourceLink.Bitbucket.Git (3)
src\sourcelink\src\Common\Utilities\Hash.cs (3)
113internal static int CombineValues<T>(ImmutableArray<T> values, int maxItemsToHash = int.MaxValue) 164internal static int CombineValues(ImmutableArray<string> values, StringComparer stringComparer, int maxItemsToHash = int.MaxValue) 245internal static int GetFNVHashCode(ImmutableArray<byte> data)
Microsoft.SourceLink.Common (3)
src\sourcelink\src\Common\Utilities\Hash.cs (3)
113internal static int CombineValues<T>(ImmutableArray<T> values, int maxItemsToHash = int.MaxValue) 164internal static int CombineValues(ImmutableArray<string> values, StringComparer stringComparer, int maxItemsToHash = int.MaxValue) 245internal static int GetFNVHashCode(ImmutableArray<byte> data)
Microsoft.SourceLink.Gitea (3)
src\sourcelink\src\Common\Utilities\Hash.cs (3)
113internal static int CombineValues<T>(ImmutableArray<T> values, int maxItemsToHash = int.MaxValue) 164internal static int CombineValues(ImmutableArray<string> values, StringComparer stringComparer, int maxItemsToHash = int.MaxValue) 245internal static int GetFNVHashCode(ImmutableArray<byte> data)
Microsoft.SourceLink.Gitee (3)
src\sourcelink\src\Common\Utilities\Hash.cs (3)
113internal static int CombineValues<T>(ImmutableArray<T> values, int maxItemsToHash = int.MaxValue) 164internal static int CombineValues(ImmutableArray<string> values, StringComparer stringComparer, int maxItemsToHash = int.MaxValue) 245internal static int GetFNVHashCode(ImmutableArray<byte> data)
Microsoft.SourceLink.GitHub (3)
src\sourcelink\src\Common\Utilities\Hash.cs (3)
113internal static int CombineValues<T>(ImmutableArray<T> values, int maxItemsToHash = int.MaxValue) 164internal static int CombineValues(ImmutableArray<string> values, StringComparer stringComparer, int maxItemsToHash = int.MaxValue) 245internal static int GetFNVHashCode(ImmutableArray<byte> data)
Microsoft.SourceLink.GitLab (3)
src\sourcelink\src\Common\Utilities\Hash.cs (3)
113internal static int CombineValues<T>(ImmutableArray<T> values, int maxItemsToHash = int.MaxValue) 164internal static int CombineValues(ImmutableArray<string> values, StringComparer stringComparer, int maxItemsToHash = int.MaxValue) 245internal static int GetFNVHashCode(ImmutableArray<byte> data)
Microsoft.SourceLink.GitWeb (3)
src\sourcelink\src\Common\Utilities\Hash.cs (3)
113internal static int CombineValues<T>(ImmutableArray<T> values, int maxItemsToHash = int.MaxValue) 164internal static int CombineValues(ImmutableArray<string> values, StringComparer stringComparer, int maxItemsToHash = int.MaxValue) 245internal static int GetFNVHashCode(ImmutableArray<byte> data)
Microsoft.TemplateEngine.Cli (1)
Commands\Example.cs (1)
90internal sealed class Example<T>(T currentCommand, ImmutableArray<string> commandParts) : Example
Microsoft.TestPlatform.TestHostRuntimeProvider (1)
Hosting\DefaultTestHostManager.cs (1)
54private static readonly ImmutableArray<string> SupportedTargetFrameworks = ImmutableArray.Create("net47", "net471", "net472", "net48");
MSBuild.Coordinator (9)
CoordinatorServer.ConnectedClient.cs (1)
37public ImmutableArray<string> Capabilities { get; }
CoordinatorServer.Connection.cs (1)
36public ImmutableArray<string> ClientCapabilities { get; private set; }
CoordinatorServer.cs (5)
420ImmutableArray<BuildGrant> newlyGranted = ReleaseClientAndGrant(client); 426private ImmutableArray<BuildGrant> ReleaseClientAndGrant(ConnectedClient client) 446private void NotifyNewlyGrantedBuilds(ImmutableArray<BuildGrant> newlyGranted) 481ImmutableArray<BuildGrant> appendedGrants = ReleaseClientAndGrant(waitingClient); 488private void EnqueueNewlyGrantedNotifications(Queue<BuildGrant> pendingNotifications, ImmutableArray<BuildGrant> newlyGranted)
NodeBudgetManager.cs (2)
127public ImmutableArray<BuildGrant> Release(BuildGrant grant) 163private ImmutableArray<BuildGrant> DrainWaitQueue_NoLock()
NuGet.Build.Tasks.Console (4)
MSBuildStaticGraphRestore.cs (4)
352internal static ImmutableArray<LibraryDependency> GetPackageReferences(IMSBuildProject project, bool isCentralPackageVersionManagementEnabled, IReadOnlyDictionary<string, CentralPackageVersion> centralPackageVersions) 383ImmutableArray<NuGetLogCode> noWarn = MSBuildStringUtility.GetNuGetLogCodes(packageReferenceItem.GetProperty("NoWarn")); 774(targetFramework, ImmutableArray<NuGetFramework> imports, bool assetTargetFallback, bool warn) = AssetTargetFallbackUtility.GetFallbackFrameworkInformation(targetFramework, packageTargetFallback, assetTargetFallbackEnum); 782var dependencies = GetPackageReferences(msBuildProjectInstance, isCpvmEnabled, centralPackageVersions);
NuGet.Build.Tasks.Pack (3)
PackTaskLogic.cs (3)
1009var newFrameworkDependencies = AddDependencies(framework.Dependencies, dependenciesByFramework, framework, assetsFile, packageSpecificNoWarnProperties); 1064private static ImmutableArray<LibraryDependency> AddDependencies( 1065ImmutableArray<LibraryDependency> packageDependencies,
NuGet.CommandLine.XPlat (6)
Commands\PackageReferenceCommands\AddPackageReferenceCommandRunner.cs (1)
387var newDependencies = frameworkInfo.Dependencies.SetItem(index, dependency);
Commands\Why\DependencyGraphFinder.cs (4)
50ImmutableArray<LibraryDependency> directPackages, 74static (string targetAlias, ImmutableArray<LibraryDependency> directPackages, IList<ProjectRestoreReference> directProjectReferences) 78ImmutableArray<LibraryDependency> directPackages; 97ImmutableArray<LibraryDependency> directPackages,
Utility\MSBuildAPIUtility.cs (1)
803var frameworkDependencies = tfmInformation.Dependencies;
NuGet.Commands (19)
RestoreCommand\CompatibilityChecker.cs (2)
439public ImmutableArray<string> Files { get; } 444public CompatibilityData(ImmutableArray<string> files, LockFileTargetLibrary targetLibrary, PackageSpec packageSpec)
RestoreCommand\Diagnostics\UnresolvedMessages.cs (7)
231internal static string FormatSourceInfo(KeyValuePair<PackageSource, ImmutableArray<NuGetVersion>> sourceInfo, VersionRange range) 253internal static async Task<List<KeyValuePair<PackageSource, ImmutableArray<NuGetVersion>>>> GetSourceInfosForIdAsync( 260var sources = new List<KeyValuePair<PackageSource, ImmutableArray<NuGetVersion>>>(); 281internal static async Task<KeyValuePair<PackageSource, ImmutableArray<NuGetVersion>>> GetSourceInfoForIdAsync( 291return new KeyValuePair<PackageSource, ImmutableArray<NuGetVersion>>( 293versions != null ? [.. versions] : ImmutableArray<NuGetVersion>.Empty); 299internal static NuGetVersion? GetBestMatch(ImmutableArray<NuGetVersion> versions, VersionRange range)
RestoreCommand\Utility\MSBuildRestoreUtility.cs (4)
546ImmutableArray<NuGetFramework> imports = []; 694var newDownloadDependencies = frameworkInfo.DownloadDependencies.Add(dependency); 706var dependencies = frameworkInfo.Dependencies; 736var noWarn = MSBuildStringUtility.GetNuGetLogCodes(item.GetProperty("NoWarn"));
RestoreCommand\Utility\PackageSpecFactory.cs (4)
244(targetFramework, ImmutableArray<NuGetFramework> imports, bool assetTargetFallback, bool warn) = AssetTargetFallbackUtility.GetFallbackFrameworkInformation(targetFramework, packageTargetFallback, assetTargetFallbackEnum); 252var dependencies = GetPackageReferences(msBuildProjectInstance, isCpvmEnabled, centralPackageVersions); 640internal static ImmutableArray<LibraryDependency> GetPackageReferences(ITargetFramework project, bool isCentralPackageVersionManagementEnabled, IReadOnlyDictionary<string, CentralPackageVersion>? centralPackageVersions) 671ImmutableArray<NuGetLogCode> noWarn = MSBuildStringUtility.GetNuGetLogCodes(packageReferenceItem.GetMetadata("NoWarn"));
Utility\AssetTargetFallbackUtility.cs (2)
62public static (NuGetFramework frameworkName, ImmutableArray<NuGetFramework> imports, bool assetTargetFallback, bool warn) GetFallbackFrameworkInformation(NuGetFramework originalFrameworkName, IEnumerable<NuGetFramework> packageTargetFallback, IEnumerable<NuGetFramework> assetTargetFallbackEnum) 70ImmutableArray<NuGetFramework> imports = [];
NuGet.Common (2)
MsBuildStringUtility.cs (2)
94public static ImmutableArray<NuGetLogCode> GetNuGetLogCodes(string? s) 123var retVal = logCodes.AsSpan(0, index).ToImmutableArray();
NuGet.LibraryModel (4)
LibraryDependency.cs (4)
16private ImmutableArray<NuGetLogCode> _noWarn = []; 24public ImmutableArray<NuGetLogCode> NoWarn 29_noWarn = value.IsDefault ? ImmutableArray<NuGetLogCode>.Empty : value; 79ImmutableArray<NuGetLogCode> noWarn,
NuGet.PackageManagement (1)
BuildIntegration\BuildIntegratedRestoreUtility.cs (1)
186var newDependencies = frameworkInfo.Dependencies.SetItem(index, dependency);
NuGet.Packaging (1)
Rules\MisplaceAssemblyOutsideLibRule.cs (1)
62private static ImmutableArray<string> ValidFolders =
NuGet.ProjectModel (28)
JsonPackageSpecReader.Utf8JsonStreamReader.cs (3)
337ImmutableArray<NuGetLogCode> noWarn = []; 1157private static ImmutableArray<NuGetLogCode> ReadNuGetLogCodesList(ref Utf8JsonStreamReader jsonReader) 1192var retVal = items.AsSpan(0, index).ToImmutableArray();
LockFile\LockFileLibrary.cs (1)
16private static IList<string> EmptyFiles = ImmutableArray<string>.Empty;
LockFile\Utf8JsonStreamLockFileLibraryConverter.cs (2)
66var files = ImmutableArray<string>.Empty;
PackageSpecOperations.cs (6)
65var newDependenciesImmutable = ImmutableCollectionsMarshal.AsImmutableArray(newDependencies); 76var newDependencies = framework.Dependencies.Add(newDependency); 164ImmutableArray<LibraryDependency> newDependencies = AddOrUpdateDependencyInDependencyList(spec, targetFramework.Dependencies, dependency.Id, dependency.VersionRange); 253var remainingDependenciesImmutable = ImmutableCollectionsMarshal.AsImmutableArray(remainingDependencies); 263private static ImmutableArray<LibraryDependency> AddOrUpdateDependencyInDependencyList( 265ImmutableArray<LibraryDependency> list,
PackageSpecWriter.cs (2)
489private static void SetImports(IObjectWriter writer, ImmutableArray<NuGetFramework> frameworks) 499private static void SetDownloadDependencies(IObjectWriter writer, ImmutableArray<DownloadDependency> downloadDependencies)
src\nuget-client\build\Shared\Utf8JsonStreamReader.cs (2)
205internal ImmutableArray<string> ReadStringArrayAsImmutableArray() 237var retVal = strings.AsSpan(0, index).ToImmutableArray();
TargetFrameworkInformation.cs (9)
23private ImmutableArray<LibraryDependency> _dependencies; 24private ImmutableArray<DownloadDependency> _downloadDependencies; 26private ImmutableArray<NuGetFramework> _imports; 33public ImmutableArray<LibraryDependency> Dependencies 38_dependencies = value.IsDefault ? ImmutableArray<LibraryDependency>.Empty : value; 46public ImmutableArray<NuGetFramework> Imports 51_imports = value.IsDefault ? ImmutableArray<NuGetFramework>.Empty : value; 68public ImmutableArray<DownloadDependency> DownloadDependencies 73_downloadDependencies = value.IsDefault ? ImmutableArray<DownloadDependency>.Empty : value;
WarningProperties.cs (3)
104public static WarningProperties GetWarningProperties(string? treatWarningsAsErrors, ImmutableArray<NuGetLogCode> warningsAsErrors, ImmutableArray<NuGetLogCode> noWarn, ImmutableArray<NuGetLogCode> warningsNotAsErrors)
Roslyn.Diagnostics.Analyzers (1199)
AbstractDoNotCopyValue.cs (1)
130public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule, UnsupportedUseRule, NoBoxingRule, NoUnboxingRule, NoFieldOfCopyableTypeRule, NoAutoPropertyRule);
DefaultableTypeShouldHaveDefaultableFieldsAnalyzer.cs (1)
37public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
DoNotCallGetTestAccessor.cs (1)
33public sealed override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(DoNotCallGetTestAccessorRule);
DoNotMixAttributesFromDifferentVersionsOfMEF.cs (1)
37public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
DoNotMixAttributesFromDifferentVersionsOfMEF.Fixer.cs (2)
16public sealed override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray<string>.Empty;
ExportedPartsShouldHaveImportingConstructor.cs (4)
40public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule); 96var nonImportingConstructors = ImmutableArray<IMethodSymbol>.Empty; 118var constructorAttributes = constructor.GetAttributes();
ExportedPartsShouldHaveImportingConstructorCodeFixProvider.cs (1)
30public override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(ExportedPartsShouldHaveImportingConstructor.Rule.Id);
ImmutableArrayBoxingAnalyzer.cs (1)
36public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(Rule);
ImportingConstructorShouldBeObsolete.cs (2)
42public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule); 94var constructorAttributes = constructor.GetAttributes();
ImportingConstructorShouldBeObsoleteCodeFixProvider.cs (1)
24public override ImmutableArray<string> FixableDiagnosticIds { get; } = [ImportingConstructorShouldBeObsolete.Rule.Id];
IRemoteJsonServiceParameterAnalyzer.cs (1)
35public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(Rule);
NamedTypeFullNameNotNullSuppressor.cs (1)
35public override ImmutableArray<SuppressionDescriptor> SupportedSuppressions { get; } = ImmutableArray.Create(CS8600Rule, CS8603Rule, CS8604Rule);
PartsExportedWithMEFv2MustBeMarkedAsShared.cs (1)
35public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
PartsExportedWithMEFv2MustBeMarkedAsShared.Fixer.cs (1)
22public sealed override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(RoslynDiagnosticIds.MissingSharedAttributeRuleId);
PooledArrayBuilderAsRefAnalyzer.cs (1)
36public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
RelaxTestNamingSuppressor.cs (1)
28public override ImmutableArray<SuppressionDescriptor> SupportedSuppressions { get; } = ImmutableArray.Create(Rule);
SpecializedEnumerableCreationAnalyzer.cs (2)
51public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(UseEmptyEnumerableRule, UseSingletonEnumerableRule); 130public static ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(UseEmptyEnumerableRule, UseSingletonEnumerableRule);
src\0bf6ba47805c8821\AbstractMoveDeclarationNearReferenceService.cs (1)
177private static ImmutableArray<SyntaxTrivia> GetMergedTrivia(
src\5f6f2f95b47c3dc6\SemanticModelWorkspaceServiceFactory.SemanticModelWorkspaceService.cs (1)
140var linkedIds = document.GetLinkedDocumentIds();
src\a1065d420d446521\NamingStylePreferencesEditorConfigSerializer.cs (9)
30ImmutableArray<SymbolSpecification> symbolSpecifications, 31ImmutableArray<NamingStyle> namingStyles, 32ImmutableArray<NamingRule> namingRules, 47ImmutableArray<SymbolSpecification> symbolSpecifications, 48ImmutableArray<NamingStyle> namingStyles, 49ImmutableArray<NamingRule> rules, 120ImmutableArray<SymbolSpecification> symbolSpecifications, 121ImmutableArray<NamingStyle> namingStyles) 170private static ImmutableDictionary<NamingRule, string> AssignNamesToNamingStyleRules(ImmutableArray<NamingRule> namingRules, ImmutableDictionary<Guid, string> serializedNameMap)
src\a16f30e1d256badc\AbstractTypeInferenceService.AbstractTypeInferrer.cs (4)
40public ImmutableArray<TypeInferenceInfo> InferTypes(int position) 46public ImmutableArray<TypeInferenceInfo> InferTypes(SyntaxNode expression, bool filterUnusable = true) 73private ImmutableArray<TypeInferenceInfo> Filter(IEnumerable<TypeInferenceInfo> types, bool filterUnusable = true) 106var parameters = type.TypeArguments;
src\b310f676f7308b7f\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (6)
26private readonly ImmutableArray<IParameterSymbol> _parameters; 74ImmutableArray<IParameterSymbol> parameters, 123var parameters = GetParameters(owningSymbol); 139static ImmutableArray<IParameterSymbol> GetParameters(ISymbol owningSymbol) 141var parameters = owningSymbol.GetParameters(); 164var parameters = lambdaOrLocalFunction.GetParameters();
src\roslyn\src\Compilers\Core\Portable\Collections\DictionaryExtensions.cs (3)
93/// the values in the passed builder will be converted to an <see cref="ImmutableArray{T}"/> using <see 97public static ImmutableSegmentedDictionary<K, ImmutableArray<V>> ToImmutableSegmentedDictionaryAndFree<K, V>(this PooledDictionary<K, ArrayBuilder<V>> dictionary) 100var result = ImmutableSegmentedDictionary.CreateBuilder<K, ImmutableArray<V>>();
src\roslyn\src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (3)
143public ImmutableArray<V> this[K k] 153return ImmutableArray<V>.Empty; 270internal ImmutableArray<V> Items
src\roslyn\src\Compilers\Core\Portable\Diagnostic\DiagnosticArrayExtensions.cs (1)
11internal static bool HasAnyErrors<T>(this ImmutableArray<T> diagnostics) where T : Diagnostic
src\roslyn\src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
729public static string NormalizePathPrefix(string filePath, ImmutableArray<KeyValuePair<string, string>> pathMap)
src\roslyn\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\roslyn\src\Compilers\Core\Portable\InternalUtilities\Hash.cs (3)
120internal static int CombineValues<T>(ImmutableArray<T> values, int maxItemsToHash = int.MaxValue) 171internal static int CombineValues(ImmutableArray<string> values, StringComparer stringComparer, int maxItemsToHash = int.MaxValue) 252internal static int GetFNVHashCode(ImmutableArray<byte> data)
src\roslyn\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\roslyn\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\roslyn\src\Compilers\Core\Portable\InternalUtilities\SetWithInsertionOrder.cs (1)
94public ImmutableArray<T> AsImmutable() => _elements.ToImmutableArrayOrEmpty();
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (2)
20private static ImmutableArray<string> s_lazyNumerals; 25var numerals = s_lazyNumerals;
src\roslyn\src\Compilers\Core\Portable\MetadataReference\AssemblyIdentityUtils.cs (1)
36ImmutableArray<byte> publicKeyOrToken = !publicKeyHandle.IsNil
src\roslyn\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\roslyn\src\Dependencies\Collections\Extensions\FixedSizeArrayBuilder.cs (5)
19/// A bare-bones array builder, focused on the case of producing <see cref="ImmutableArray{T}"/>s where the final array 37/// The builder will be moved to an array (see <see cref="MoveToArray"/>) or <see cref="ImmutableArray{T}"/> (see <see 70public void AddRange(ImmutableArray<T> values) 116/// Moves the underlying buffer out of control of this type, into the returned <see cref="ImmutableArray{T}"/>. It 122public ImmutableArray<T> MoveToImmutable()
src\roslyn\src\Dependencies\Collections\Extensions\ICollectionExtensions.cs (1)
76public static void AddRange<T>(this ICollection<T> collection, ImmutableArray<T> values)
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (26)
60public static ImmutableArray<T> ToImmutableArrayOrEmpty<T>(this IEnumerable<T>? items) 67if (items is ImmutableArray<T> array) 82if (items is ImmutableArray<T> array) 271/// <seealso cref="Microsoft.CodeAnalysis.ImmutableArrayExtensions.HasDuplicates{TItem, TValue}(ImmutableArray{TItem}, Func{TItem, TValue}, IEqualityComparer{TValue})"/> 376public static ImmutableArray<T> WhereAsArray<T>(this IEnumerable<T> values, Func<T, bool> predicate) 390public static ImmutableArray<T> WhereAsArray<T, TArg>(this IEnumerable<T> values, Func<T, TArg, bool> predicate, TArg arg) 407public static ImmutableArray<TResult> SelectAsArray<TSource, TResult>(this IEnumerable<TSource>? source, Func<TSource, TResult> selector) 417public static ImmutableArray<TResult> SelectAsArray<TItem, TResult>(this IEnumerable<TItem>? source, Func<TItem, bool> predicate, Func<TItem, TResult> selector) 431public static ImmutableArray<TResult> SelectAsArray<TSource, TResult>(this IEnumerable<TSource>? source, Func<TSource, int, TResult> selector) 446public static ImmutableArray<TResult> SelectAsArray<TSource, TResult, TArg>(this IEnumerable<TSource>? source, Func<TSource, TArg, TResult> selector, TArg arg) 449return ImmutableArray<TResult>.Empty; 461public static ImmutableArray<TResult> SelectAsArray<TSource, TResult>(this IReadOnlyCollection<TSource>? source, Func<TSource, TResult> selector) 473public static ImmutableArray<TResult> SelectAsArray<TSource, TResult, TArg>(this IReadOnlyCollection<TSource>? source, Func<TSource, TArg, TResult> selector, TArg arg) 485public static ImmutableArray<TResult> SelectManyAsArray<TSource, TResult>(this IEnumerable<TSource>? source, Func<TSource, IEnumerable<TResult>> selector) 496public static ImmutableArray<TResult> SelectManyAsArray<TItem, TArg, TResult>(this IEnumerable<TItem>? source, Func<TItem, TArg, IEnumerable<TResult>> selector, TArg arg) 507public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, IEnumerable<TResult>> selector) 520public static ImmutableArray<TResult> SelectManyAsArray<TItem, TArg, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, TArg, IEnumerable<TResult>> selector, TArg arg) 533public static ImmutableArray<TResult> SelectManyAsArray<TSource, TResult>(this IEnumerable<TSource>? source, Func<TSource, OneOrMany<TResult>> selector) 547public static async ValueTask<ImmutableArray<TResult>> SelectAsArrayAsync<TItem, TResult>(this IEnumerable<TItem> source, Func<TItem, ValueTask<TResult>> selector) 561public static async ValueTask<ImmutableArray<TResult>> SelectAsArrayAsync<TItem, TResult>(this IEnumerable<TItem> source, Func<TItem, CancellationToken, ValueTask<TResult>> selector, CancellationToken cancellationToken) 575public static async ValueTask<ImmutableArray<TResult>> SelectAsArrayAsync<TItem, TArg, TResult>(this IEnumerable<TItem> source, Func<TItem, TArg, CancellationToken, ValueTask<TResult>> selector, TArg arg, CancellationToken cancellationToken) 586public 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) 764internal static Dictionary<K, ImmutableArray<T>> ToMultiDictionary<K, T>(this IEnumerable<T> data, Func<T, K> keySelector, IEqualityComparer<K>? comparer = null) 767var dictionary = new Dictionary<K, ImmutableArray<T>>(comparer); 834/// Methods that are available on both <see cref="IEnumerable{T}"/> and <see cref="ImmutableArray{T}"/> are defined in System.Linq namespace 835/// to avoid accidental boxing of <see cref="ImmutableArray{T}"/>. The boxing would occur if the file calling these methods didn't have <c>using System.Linq</c>.
src\roslyn\src\Dependencies\Collections\Extensions\IListExtensions.cs (1)
31/// <seealso cref="ImmutableArrayExtensions.HasDuplicates{TItem, TValue}(System.Collections.Immutable.ImmutableArray{TItem}, Func{TItem, TValue}, IEqualityComparer{TValue})"/>
src\roslyn\src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (156)
24/// The collection of extension methods for the <see cref="ImmutableArray{T}"/> type 36public static ImmutableArray<T> AsImmutable<T>(this IEnumerable<T> items) 48public static ImmutableArray<T> AsImmutableOrEmpty<T>(this IEnumerable<T>? items) 52return ImmutableArray<T>.Empty; 65public static ImmutableArray<T> AsImmutableOrNull<T>(this IEnumerable<T>? items) 81public static ImmutableArray<T> AsImmutable<T>(this T[] items) 94public static ImmutableArray<T> AsImmutableOrNull<T>(this T[]? items) 110public static ImmutableArray<T> AsImmutableOrEmpty<T>(this T[]? items) 114return ImmutableArray<T>.Empty; 125public static ImmutableArray<byte> ToImmutable(this MemoryStream stream) 138public static ImmutableArray<TResult> SelectAsArray<TItem, TResult>(this ImmutableArray<TItem> items, Func<TItem, TResult> map) 153public static ImmutableArray<TResult> SelectAsArray<TItem, TArg, TResult>(this ImmutableArray<TItem> items, Func<TItem, TArg, TResult> map, TArg arg) 168public static ImmutableArray<TResult> SelectAsArray<TItem, TArg, TResult>(this ImmutableArray<TItem> items, Func<TItem, int, TArg, TResult> map, TArg arg) 198public static ImmutableArray<TResult> SelectAsArray<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, bool> predicate, Func<TItem, TResult> selector) 224public static ImmutableArray<TResult> SelectAsArray<TItem, TArg, TResult>(this ImmutableArray<TItem> array, Func<TItem, TArg, bool> predicate, Func<TItem, TArg, TResult> selector, TArg arg) 247public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, IEnumerable<TResult>> selector) 267public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, ImmutableArray<TResult>> selector) 287public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, OneOrMany<TResult>> selector) 308public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, bool> predicate, Func<TItem, IEnumerable<TResult>> selector) 332public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, bool> predicate, Func<TItem, ImmutableArray<TResult>> selector) 356public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, bool> predicate, Func<TItem, OneOrMany<TResult>> selector) 381public static ImmutableArray<TResult> SelectManyAsArray<TItem, TArg, TResult>(this ImmutableArray<TItem> array, Func<TItem, TArg, bool> predicate, Func<TItem, TArg, OneOrMany<TResult>> selector, TArg arg) 399public static async ValueTask<ImmutableArray<TResult>> SelectAsArrayAsync<TItem, TResult>(this ImmutableArray<TItem> array, Func<TItem, CancellationToken, ValueTask<TResult>> selector, CancellationToken cancellationToken) 414public static async ValueTask<ImmutableArray<TResult>> SelectAsArrayAsync<TItem, TArg, TResult>(this ImmutableArray<TItem> array, Func<TItem, TArg, CancellationToken, ValueTask<TResult>> selector, TArg arg, CancellationToken cancellationToken) 426public static ValueTask<ImmutableArray<TResult>> SelectManyAsArrayAsync<TItem, TArg, TResult>(this ImmutableArray<TItem> source, Func<TItem, TArg, CancellationToken, ValueTask<ImmutableArray<TResult>>> selector, TArg arg, CancellationToken cancellationToken) 429return new ValueTask<ImmutableArray<TResult>>([]); 436async ValueTask<ImmutableArray<TResult>> CreateTaskAsync() 453public static ImmutableArray<TResult> ZipAsArray<T1, T2, TResult>(this ImmutableArray<T1> self, ImmutableArray<T2> other, Func<T1, T2, TResult> map) 473public static ImmutableArray<TResult> ZipAsArray<T1, T2, TArg, TResult>(this ImmutableArray<T1> self, ImmutableArray<T2> other, TArg arg, Func<T1, T2, int, TArg, TResult> map) 493public static ImmutableArray<T> WhereAsArray<T>(this ImmutableArray<T> array, Func<T, bool> predicate) 501public static ImmutableArray<T> WhereAsArray<T, TArg>(this ImmutableArray<T> array, Func<T, TArg, bool> predicate, TArg arg) 504private static ImmutableArray<T> WhereAsArrayImpl<T, TArg>(ImmutableArray<T> array, Func<T, bool>? predicateWithoutArg, Func<T, TArg, bool>? predicateWithArg, TArg arg) 569return ImmutableArray<T>.Empty; 573public static async Task<bool> AnyAsync<T>(this ImmutableArray<T> array, Func<T, Task<bool>> predicateAsync) 584public static async Task<bool> AnyAsync<T, TArg>(this ImmutableArray<T> array, Func<T, TArg, Task<bool>> predicateAsync, TArg arg) 595public static async ValueTask<T?> FirstOrDefaultAsync<T>(this ImmutableArray<T> array, Func<T, Task<bool>> predicateAsync) 610public static ImmutableArray<TBase> Cast<TDerived, TBase>(this ImmutableArray<TDerived> items) 613return ImmutableArray<TBase>.CastUp(items); 624public static bool SetEquals<T>(this ImmutableArray<T> array1, ImmutableArray<T> array2, IEqualityComparer<T> comparer) 665public static ImmutableArray<T> NullToEmpty<T>(this ImmutableArray<T> array) 667return array.IsDefault ? ImmutableArray<T>.Empty : array; 673public static ImmutableArray<T> NullToEmpty<T>(this ImmutableArray<T>? array) 676null or { IsDefault: true } => ImmutableArray<T>.Empty, 682internal static ImmutableArray<T> ConditionallyDeOrder<T>(this ImmutableArray<T> array) 699internal static ImmutableArray<TValue> Flatten<TKey, TValue>( 700this Dictionary<TKey, ImmutableArray<TValue>> dictionary, 723internal static ImmutableArray<T> AddRange<T>(this ImmutableArray<T> self, in TemporaryArray<T> items) 751internal static bool HasDuplicates<T>(this ImmutableArray<T> array) 754internal static bool HasDuplicates<T>(this ImmutableArray<T> array, IEqualityComparer<T> comparer) 757public static bool HasDuplicates<TItem, TValue>(this ImmutableArray<TItem> array, Func<TItem, TValue> selector) 769internal static bool HasDuplicates<TItem, TValue>(this ImmutableArray<TItem> array, Func<TItem, TValue> selector, IEqualityComparer<TValue> comparer) 826(Dictionary<TKey, object> dictionary, Dictionary<TKey, ImmutableArray<TNamespaceOrTypeSymbol>> result) 837static ImmutableArray<TNamespaceOrTypeSymbol> createMembers(object value) 848return ImmutableArray<TNamespaceOrTypeSymbol>.CastUp(builder.ToDowncastedImmutableAndFree<TNamedTypeSymbol>()); 855: ImmutableArray<TNamespaceOrTypeSymbol>.CastUp(ImmutableArray.Create((TNamedTypeSymbol)symbol)); 860internal static Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>> GetTypesFromMemberMap<TKey, TNamespaceOrTypeSymbol, TNamedTypeSymbol> 861(Dictionary<TKey, ImmutableArray<TNamespaceOrTypeSymbol>> map, IEqualityComparer<TKey> comparer) 872var dictionary = new Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>>(capacity, comparer); 876var namedTypes = getOrCreateNamedTypes(entry.Value); 883static ImmutableArray<TNamedTypeSymbol> getOrCreateNamedTypes(ImmutableArray<TNamespaceOrTypeSymbol> members) 890var membersAsNamedTypes = members.As<TNamedTypeSymbol>(); 903return ImmutableArray<TNamedTypeSymbol>.Empty; 917internal static int IndexOf<T>(this ImmutableArray<T> array, T item, IEqualityComparer<T> comparer) 920internal static bool IsSorted<T>(this ImmutableArray<T> array, Comparison<T> comparison) 923internal static bool IsSorted<T>(this ImmutableArray<T> array, IComparer<T>? comparer = null) 938public static bool IsSubsetOf<TElement>(this ImmutableArray<TElement> array, ImmutableArray<TElement> other) 983/// Extension methods that are available on both <see cref="IEnumerable{T}"/> and <see cref="ImmutableArray{T}"/> in System.Linq namespace 984/// are defined in System.Linq namespace to avoid accidental boxing of <see cref="ImmutableArray{T}"/>. 990/// Variant of <see cref="System.Linq.ImmutableArrayExtensions.FirstOrDefault{T}(ImmutableArray{T}, Func{T, bool})"/> 992public static TValue? FirstOrDefault<TValue, TArg>(this ImmutableArray<TValue> array, Func<TValue, TArg, bool> predicate, TArg arg) 1004/// Variant of <see cref="System.Linq.ImmutableArrayExtensions.Single{T}(ImmutableArray{T}, Func{T, bool})"/> 1006public static TValue Single<TValue, TArg>(this ImmutableArray<TValue> array, Func<TValue, TArg, bool> predicate, TArg arg) 1033/// Variant of <see cref="System.Linq.ImmutableArrayExtensions.SequenceEqual{TDerived, TBase}(ImmutableArray{TBase}, ImmutableArray{TDerived}, Func{TBase, TBase, bool})"/>. 1035public static bool SequenceEqual<TElement, TArg>(this ImmutableArray<TElement> array1, ImmutableArray<TElement> array2, TArg arg, Func<TElement, TElement, TArg, bool> predicate) 1066/// Specialization of <see cref="System.Linq.Enumerable.Count{TSource}(IEnumerable{TSource}, Func{TSource, bool})"/> for <see cref="ImmutableArray{T}"/>. 1068public static int Count<T>(this ImmutableArray<T> items, Func<T, bool> predicate) 1084/// Specialization of <see cref="System.Linq.Enumerable.Sum(IEnumerable{int})"/> for <see cref="ImmutableArray{T}"/>. 1086public static int Sum<T>(this ImmutableArray<T> items, Func<T, int> selector) 1096/// Variation of <see cref="System.Linq.Enumerable.Sum(IEnumerable{int})"/> for <see cref="ImmutableArray{T}"/>. 1098public static int Sum<T>(this ImmutableArray<T> items, Func<T, int, int> selector) 1108/// Specialization of <see cref="System.Linq.Enumerable.Concat{TSource}(IEnumerable{TSource}, IEnumerable{TSource})"/> for <see cref="ImmutableArray{T}"/>. 1110public static ImmutableArray<T> Concat<T>(this ImmutableArray<T> first, ImmutableArray<T> second) 1116public static ImmutableArray<T> Concat<T>(this ImmutableArray<T> first, T second) 1122public static ImmutableArray<T> Concat<T>(this ImmutableArray<T> first, ImmutableArray<T> second, ImmutableArray<T> third) 1136public static ImmutableArray<T> Concat<T>(this ImmutableArray<T> first, ImmutableArray<T> second, ImmutableArray<T> third, ImmutableArray<T> fourth) 1152public static ImmutableArray<T> Concat<T>(this ImmutableArray<T> first, ImmutableArray<T> second, ImmutableArray<T> third, ImmutableArray<T> fourth, ImmutableArray<T> fifth) 1168public static ImmutableArray<T> Concat<T>(this ImmutableArray<T> first, ImmutableArray<T> second, ImmutableArray<T> third, ImmutableArray<T> fourth, ImmutableArray<T> fifth, ImmutableArray<T> sixth) 1188public static ImmutableArray<T> Distinct<T>(this ImmutableArray<T> array, IEqualityComparer<T>? comparer = null) 1207var result = (builder.Count == array.Length) ? array : builder.ToImmutable(); 1213/// Variant of <see cref="System.Linq.ImmutableArrayExtensions.Any{T}(ImmutableArray{T}, Func{T, bool})"/>. 1215public static bool Any<T, TArg>(this ImmutableArray<T> array, Func<T, TArg, bool> predicate, TArg arg) 1227/// Variant of <see cref="System.Linq.ImmutableArrayExtensions.All{T}(ImmutableArray{T}, Func{T, bool})"/>. 1229public static bool All<T, TArg>(this ImmutableArray<T> array, Func<T, TArg, bool> predicate, TArg arg) 1248/// Methods that are available on both <see cref="IEnumerable{T}"/> and <see cref="ImmutableArray{T}"/> in System.Collections.Immutable namespace 1249/// are defined in System.Collections.Immutable namespace to avoid accidental boxing of <see cref="ImmutableArray{T}"/>. 1255/// Variant of <see cref="System.Collections.Immutable.ImmutableArray{T}.Contains(T, IEqualityComparer{T})"/> 1257public static bool Contains<T>(this ImmutableArray<T> array, Func<T, bool> predicate) 1261/// Variant of <see cref="System.Collections.Immutable.ImmutableArray.BinarySearch{T}(ImmutableArray{T}, T, IComparer{T}?)"/> 1264public static int BinarySearch<TElement, TValue>(this ImmutableArray<TElement> array, TValue value, Func<TElement, TValue, int> comparer)
src\roslyn\src\Dependencies\Collections\Internal\HashHelpers.cs (1)
40private static readonly ImmutableArray<int> s_primes = ImmutableArray.Create(
src\roslyn\src\Dependencies\Collections\OneOrMany.cs (8)
28public static readonly OneOrMany<T> Empty = new OneOrMany<T>(ImmutableArray<T>.Empty); 31private readonly ImmutableArray<T> _many; 39public OneOrMany(ImmutableArray<T> many) 167: new OneOrMany<T>(ImmutableArray<T>.CastUp(from._many)); 185public ImmutableArray<T> ToImmutable() 206public bool SequenceEqual(ImmutableArray<T> other, IEqualityComparer<T>? comparer = null) 278public static OneOrMany<T> Create<T>(ImmutableArray<T> many) 281public static bool SequenceEqual<T>(this ImmutableArray<T> array, OneOrMany<T> other, IEqualityComparer<T>? comparer = null)
src\roslyn\src\Dependencies\Collections\RoslynImmutableInterlocked.cs (5)
618public static ImmutableArray<T> VolatileRead<T>(ref readonly ImmutableArray<T> location) 620var value = location; 635public static void VolatileWrite<T>(ref ImmutableArray<T> location, ImmutableArray<T> value)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
23/// the scenarios where <see cref="ImmutableArray{T}"/> is applicable, and
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.List.cs (1)
20public static readonly IReadOnlyList<T> Instance = ImmutableArray<T>.Empty;
src\roslyn\src\Dependencies\Collections\TemporaryArray`1.cs (6)
24/// <see cref="ImmutableArray{T}"/>. 179public void AddRange(ImmutableArray<T> items) 299/// Create an <see cref="ImmutableArray{T}"/> with the elements currently held in the temporary array, and clear 302public ImmutableArray<T> ToImmutableAndClear() 310var result = _count switch 3120 => ImmutableArray<T>.Empty,
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilder.cs (27)
61private readonly ImmutableArray<T>.Builder _builder; 83public ImmutableArray<T> ToImmutable() 91public ImmutableArray<T> ToImmutableAndClear() 93ImmutableArray<T> result; 96result = ImmutableArray<T>.Empty; 393public ImmutableArray<T> ToImmutableOrNull() 406public ImmutableArray<U> ToDowncastedImmutable<U>() 411return ImmutableArray<U>.Empty; 423public ImmutableArray<U> ToDowncastedImmutableAndFree<U>() where U : T 425var result = ToDowncastedImmutable<U>(); 433public ImmutableArray<T> ToImmutableAndFree() 437ImmutableArray<T> result; 440result = ImmutableArray<T>.Empty; 613internal Dictionary<K, ImmutableArray<T>> ToDictionary<K>(Func<T, K> keySelector, IEqualityComparer<K>? comparer = null) 618var dictionary1 = new Dictionary<K, ImmutableArray<T>>(1, comparer); 626return new Dictionary<K, ImmutableArray<T>>(comparer); 645var dictionary = new Dictionary<K, ImmutableArray<T>>(accumulator.Count, comparer); 684public void AddRange(ImmutableArray<T> items) 689public void AddRange<U>(ImmutableArray<U> items, Func<U, T> selector) 697public void AddRange(ImmutableArray<T> items, int length) 702public void AddRange(ImmutableArray<T> items, int start, int length) 712public void AddRange<S>(ImmutableArray<S> items) where S : class, T 714AddRange(ImmutableArray<T>.CastUp(items)); 806public ImmutableArray<S> SelectDistinct<S>(Func<T, S> selector) 878public ImmutableArray<TResult> SelectAsArray<TResult>(Func<T, TResult> map) 914public ImmutableArray<TResult> SelectAsArray<TArg, TResult>(Func<T, TArg, TResult> map, TArg arg) 950public ImmutableArray<TResult> SelectAsArrayWithIndex<TArg, TResult>(Func<T, int, TArg, TResult> map, TArg arg)
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilderExtensions.cs (1)
16public static ImmutableArray<T> ToImmutableOrEmptyAndFree<T>(this ArrayBuilder<T>? builder)
src\roslyn\src\Dependencies\Threading\IAsyncEnumerableExtensions.cs (1)
16public static async Task<ImmutableArray<T>> ToImmutableArrayAsync<T>(this IAsyncEnumerable<T> values, CancellationToken cancellationToken)
src\roslyn\src\Dependencies\Threading\ProducerConsumer.cs (7)
25Func<ImmutableArray<TItem>, TArgs, CancellationToken, Task> consumeItems, 49Func<ImmutableArray<TItem>, TArgs, CancellationToken, Task> consumeItems, 127Func<ImmutableArray<TItem>, TArgs, CancellationToken, Task> consumeItems, 141Func<ImmutableArray<TItem>, TArgs, CancellationToken, Task> consumeItems, 191public static Task<ImmutableArray<TItem>> RunParallelAsync<TSource, TArgs>( 204public static async Task<ImmutableArray<TItem>> RunParallelAsync<TSource, TArgs>( 284/// but returns value as an <see cref="IAsyncEnumerable{TItem}"/>. Versus an <see cref="ImmutableArray{TItem}"/>.
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\AdditionalFileProvider.cs (2)
22private readonly ImmutableArray<AdditionalText> _additionalFiles; 24internal AdditionalFileProvider(ImmutableArray<AdditionalText> additionalFiles)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.AssemblyMetricData.cs (5)
25ImmutableArray<CodeAnalysisMetricData> children) 33ImmutableArray<CodeAnalysisMetricData> children = await ComputeAsync(GetChildSymbols(assembly), context).ConfigureAwait(false); 39ImmutableArray<CodeAnalysisMetricData> children = ComputeSynchronously(GetChildSymbols(assembly), context); 43private static AssemblyMetricData ComputeFromChildren(IAssemblySymbol assembly, ImmutableArray<CodeAnalysisMetricData> children, CodeMetricsAnalysisContext context) 72private static ImmutableArray<INamespaceOrTypeSymbol> GetChildSymbols(IAssemblySymbol assembly)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.cs (4)
33ImmutableArray<CodeAnalysisMetricData> children) 112public ImmutableArray<CodeAnalysisMetricData> Children { get; } 323internal static async Task<ImmutableArray<CodeAnalysisMetricData>> ComputeAsync(IEnumerable<ISymbol> children, CodeMetricsAnalysisContext context) 331internal static ImmutableArray<CodeAnalysisMetricData> ComputeSynchronously(IEnumerable<ISymbol> children, CodeMetricsAnalysisContext context)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.EventMetricData.cs (3)
22ImmutableArray<CodeAnalysisMetricData> children) 31ImmutableArray<SyntaxReference> declarations = @event.DeclaringSyntaxReferences; 37ImmutableArray<CodeAnalysisMetricData> children = ComputeSynchronously(GetAccessors(@event), context);
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.FieldMetricData.cs (2)
23linesOfCode, cyclomaticComplexity, depthOfInheritance, children: ImmutableArray<CodeAnalysisMetricData>.Empty) 30ImmutableArray<SyntaxReference> declarations = field.DeclaringSyntaxReferences;
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.MethodMetricData.cs (2)
23linesOfCode, cyclomaticComplexity, depthOfInheritance, children: ImmutableArray<CodeAnalysisMetricData>.Empty) 30ImmutableArray<SyntaxReference> declarations = method.DeclaringSyntaxReferences;
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.NamedTypeMetricData.cs (5)
25ImmutableArray<CodeAnalysisMetricData> children) 35ImmutableArray<CodeAnalysisMetricData> children = await ComputeAsync(members, context).ConfigureAwait(false); 44ImmutableArray<CodeAnalysisMetricData> children = ComputeSynchronously(members, context); 65private static NamedTypeMetricData ComputeFromChildren(INamedTypeSymbol namedType, ImmutableArray<CodeAnalysisMetricData> children, CodeMetricsAnalysisContext context) 68ImmutableArray<SyntaxReference> declarations = namedType.DeclaringSyntaxReferences;
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.NamespaceMetricData.cs (5)
24ImmutableArray<CodeAnalysisMetricData> children) 32ImmutableArray<CodeAnalysisMetricData> children = await ComputeAsync(GetChildSymbols(@namespace), context).ConfigureAwait(false); 38ImmutableArray<CodeAnalysisMetricData> children = ComputeSynchronously(GetChildSymbols(@namespace), context); 42private static NamespaceMetricData ComputeFromChildren(INamespaceSymbol @namespace, ImmutableArray<CodeAnalysisMetricData> children, CodeMetricsAnalysisContext context) 72private static ImmutableArray<INamespaceOrTypeSymbol> GetChildSymbols(INamespaceSymbol @namespace)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.PropertyMetricData.cs (3)
22ImmutableArray<CodeAnalysisMetricData> children) 31ImmutableArray<SyntaxReference> declarations = property.DeclaringSyntaxReferences; 38ImmutableArray<CodeAnalysisMetricData> children = ComputeSynchronously(GetAccessors(property), context);
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (7)
54ImmutableArray<IParameterSymbol> parameters) 62internal static long GetLinesOfCode(ImmutableArray<SyntaxReference> declarations, ISymbol symbol, CodeMetricsAnalysisContext context) 192ImmutableArray<SyntaxReference> declarations, 209var parameters = GetParameters(symbol); 220var attributes = symbol.GetAttributes(); 409internal static ImmutableArray<IParameterSymbol> GetParameters(this ISymbol member) 415_ => ImmutableArray<IParameterSymbol>.Empty,
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\DiagnosticExtensions.cs (5)
29=> node.CreateDiagnostic(rule, additionalLocations: ImmutableArray<Location>.Empty, properties, args); 34ImmutableArray<Location> additionalLocations, 63ImmutableArray<Location> additionalLocations, 110=> location.CreateDiagnostic(rule, ImmutableArray<Location>.Empty, properties, args); 115ImmutableArray<Location> additionalLocations,
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\IMethodSymbolExtensions.cs (2)
547public static ImmutableArray<IMethodSymbol> GetOriginalDefinitions(this IMethodSymbol methodSymbol) 549ImmutableArray<IMethodSymbol>.Builder originalDefinitionsBuilder = ImmutableArray.CreateBuilder<IMethodSymbol>();
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\ImmutableArrayExtensions.cs (6)
13/// <param name="source">The <see cref="ImmutableArray{TSource}"/> to check for cardinality.</param> 16public static bool HasExactly<TSource>(this ImmutableArray<TSource> source, int count) => source.Length == count; 22/// <param name="source">The <see cref="ImmutableArray{TSource}"/> to check for cardinality.</param> 25public static bool HasMoreThan<TSource>(this ImmutableArray<TSource> source, int count) => source.Length > count; 31/// <param name="source">The <see cref="ImmutableArray{TSource}"/> to check for cardinality.</param> 34public static bool HasFewerThan<TSource>(this ImmutableArray<TSource> source, int count) => source.Length < count;
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\IOperationExtensions.cs (5)
83public static ImmutableArray<IOperation> GetTopmostExplicitDescendants(this IOperation operation) 166public static IOperation? GetAncestor(this IOperation root, ImmutableArray<OperationKind> ancestorKinds, Func<IOperation, bool>? predicate = null) 381private static readonly ImmutableArray<OperationKind> s_LambdaAndLocalFunctionKinds = 491this ImmutableArray<IArgumentOperation> arguments, 512this ImmutableArray<IArgumentOperation> arguments,
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\IPropertySymbolExtensions.cs (2)
22public static ImmutableArray<IPropertySymbol> GetOriginalDefinitions(this IPropertySymbol propertySymbol) 24ImmutableArray<IPropertySymbol>.Builder originalDefinitionsBuilder = ImmutableArray.CreateBuilder<IPropertySymbol>();
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\ITypeSymbolExtensions.cs (2)
155var current = type.GetAttributes(); 222var current = type.GetAttributes();
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\OperationKinds.cs (1)
12public static ImmutableArray<OperationKind> MemberReference { get; }
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\HashUtilities.cs (2)
25internal static int Combine<T>(ImmutableArray<T> array) 32internal static void Combine<T>(ImmutableArray<T> array, ref RoslynHashCode hashCode)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\AnalyzerOptionsExtensions.cs (4)
408var matchingSymbols = DocumentationCommentId.GetSymbolsForDeclarationId(genericInterfaceFullName, compilation); 489var names = optionValue.Split(['|'], StringSplitOptions.RemoveEmptyEntries).ToImmutableArray(); 542public static ImmutableArray<string> GetMSBuildItemMetadataValues( 553return ImmutableArray<string>.Empty;
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\MSBuildItemOptionNames.cs (2)
41public static ImmutableArray<string> ParseItemOptionValue(string? itemOptionValue) 45return ImmutableArray<string>.Empty;
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (1)
81public static SymbolNamesWithValueOption<TValue> Create(ImmutableArray<string> symbolNames, Compilation compilation, string? optionalPrefix,
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\WellKnownTypeProvider.cs (6)
33_referencedAssemblies = new Lazy<ImmutableArray<IAssemblySymbol>>( 62private readonly Lazy<ImmutableArray<IAssemblySymbol>> _referencedAssemblies; 81private static readonly ConcurrentDictionary<string, ImmutableArray<string>> _fullTypeNameToNamespaceNames = 120ImmutableArray<string> namespaceNames; 214private static ImmutableArray<string> GetNamespaceNamesFromFullTypeName(string fullTypeName) 297private static bool IsSubsetOfCollection<T>(ImmutableArray<T> set1, ICollection<T> set2)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\WordParser.cs (2)
202public static bool ContainsWord(string text, WordParserOptions options, ImmutableArray<string> words) 236internal static bool ContainsWord(string text, WordParserOptions options, char prefix, ImmutableArray<string> words)
src\roslyn\src\RoslynAnalyzers\Utilities\Refactoring\CodeRefactoringContextExtensions.cs (4)
23internal static Task<ImmutableArray<TSyntaxNode>> GetRelevantNodesAsync<TSyntaxNode>(this CodeRefactoringContext context, IRefactoringHelpers helpers) 34var potentialNodes = await GetRelevantNodesAsync<TSyntaxNode>(document, helpers, span, cancellationToken).ConfigureAwait(false); 38internal static async Task<ImmutableArray<TSyntaxNode>> GetRelevantNodesAsync<TSyntaxNode>( 50private static ImmutableArray<TSyntaxNode> GetRelevantNodes<TSyntaxNode>(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleHelpers.cs (3)
119this ImmutableArray<IOption2>.Builder optionsBuilder, 132this ImmutableArray<IOption2>.Builder optionsBuilder, 144this ImmutableArray<IOption2>.Builder optionsBuilder,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleOptions2.cs (2)
21private static readonly ImmutableArray<IOption2>.Builder s_editorConfigOptionsBuilder = ImmutableArray.CreateBuilder<IOption2>(); 356internal static readonly ImmutableArray<IOption2> EditorConfigOptions = s_editorConfigOptionsBuilder.ToImmutable();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\VisualBasic\VisualBasicCodeStyleOptions.cs (2)
14private static readonly ImmutableArray<IOption2>.Builder s_allOptionsBuilder = ImmutableArray.CreateBuilder<IOption2>(); 55public static ImmutableArray<IOption2> EditorConfigOptions => s_allOptionsBuilder.ToImmutable();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\IntervalTreeAlgorithms`2.cs (4)
19public ImmutableArray<T> GetIntervalsThatMatch<TIntrospector, TIntervalTester>( 29public ImmutableArray<T> GetIntervalsThatOverlapWith<TIntrospector>( 36public ImmutableArray<T> GetIntervalsThatIntersectWith<TIntrospector>( 43public ImmutableArray<T> GetIntervalsThatContain<TIntrospector>(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\SimpleMutableIntervalTree`2.cs (3)
39public ImmutableArray<T> GetIntervalsThatOverlapWith(int start, int length) 42public ImmutableArray<T> GetIntervalsThatIntersectWith(int start, int length) 45public ImmutableArray<T> GetIntervalsThatContain(int start, int length)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Diagnostics\IPragmaSuppressionsAnalyzer.cs (1)
26Func<DiagnosticAnalyzer, ImmutableArray<DiagnosticDescriptor>> getSupportedDiagnostics,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Editing\GenerationOptions.cs (1)
30public static readonly ImmutableArray<IOption2> EditorConfigOptions = [PlaceSystemNamespaceFirst, SeparateImportDirectiveGroups];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\Common\EmbeddedSeparatedSyntaxNodeList.cs (2)
17public ImmutableArray<EmbeddedSyntaxNodeOrToken<TSyntaxKind, TSyntaxNode>> NodesAndTokens { get; } 25ImmutableArray<EmbeddedSyntaxNodeOrToken<TSyntaxKind, TSyntaxNode>> nodesAndTokens)
src\roslyn\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) 56public EmbeddedSyntaxToken<TSyntaxKind> WithDiagnostics(ImmutableArray<EmbeddedDiagnostic> diagnostics) 61Optional<ImmutableArray<EmbeddedSyntaxTrivia<TSyntaxKind>>> leadingTrivia = default, 63Optional<ImmutableArray<EmbeddedSyntaxTrivia<TSyntaxKind>>> trailingTrivia = default, 64Optional<ImmutableArray<EmbeddedDiagnostic>> diagnostics = default,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\Common\EmbeddedSyntaxTree.cs (2)
17public readonly ImmutableArray<EmbeddedDiagnostic> Diagnostics; 22ImmutableArray<EmbeddedDiagnostic> diagnostics)
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\VirtualCharGreenSequence.Chunks.cs (1)
15/// is used so we can expose <see cref="VirtualChar"/>s over an <see cref="ImmutableArray{VirtualChar}"/>
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\VirtualCharUtilities.cs (1)
26public static (ImmutableSegmentedList<VirtualChar> sourceCode, ImmutableArray<TextSpan> markdownSpans) StripMarkupCharacters(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\CollectionExpressionUtilities.cs (3)
97var constructors = namedType.Constructors; 122IMethodSymbol? GetAccessibleInstanceConstructor(ImmutableArray<IMethodSymbol> constructors, Func<IMethodSymbol, bool> predicate) 145public static ImmutableArray<IMethodSymbol>? TryGetCollectionBuilderFactoryMethods(
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DirectiveInfo.cs (2)
12Dictionary<TDirectiveTriviaSyntax, ImmutableArray<TDirectiveTriviaSyntax>> conditionalMap) 19public Dictionary<TDirectiveTriviaSyntax, ImmutableArray<TDirectiveTriviaSyntax>> ConditionalMap { get; } = conditionalMap;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ImmutableArrayExtensions.cs (6)
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> ToImmutableAndClear<T>(this ImmutableArray<T>.Builder builder) 42var result = builder.ToImmutable();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ObjectWriterExtensions.cs (3)
13public static void WriteArray<T>(this ObjectWriter writer, ImmutableArray<T> values, Action<ObjectWriter, T> write) 23public static ImmutableArray<T> ReadArray<T>(this ObjectReader reader, Func<ObjectReader, T> read) 26public static ImmutableArray<T> ReadArray<T, TArg>(this ObjectReader reader, Func<ObjectReader, TArg, T> read, TArg arg)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (3)
341public static bool HasAnyOperationDescendant(this ImmutableArray<IOperation> operationBlocks, Func<IOperation, bool> predicate) 374public static bool HasAnyOperationDescendant(this ImmutableArray<IOperation> operationBlocks, OperationKind kind) 437static IOperation? TryGetSingleExplicitStatement(ImmutableArray<IOperation> operations)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SemanticModelExtensions.cs (2)
140var typeArguments = type.GetAllTypeArguments(); 178ImmutableArray<ITypeSymbol> typeArguments,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\StackExtensions.cs (1)
39public static void Push<T>(this Stack<T> stack, ImmutableArray<T> values)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\StringExtensions.cs (1)
188public static ImmutableArray<SymbolDisplayPart> ToSymbolDisplayParts(this string text)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SymbolInfoExtensions.cs (3)
16public static ImmutableArray<ISymbol> GetAllSymbols(this SymbolInfo info) 19private static ImmutableArray<ISymbol> GetAllSymbolsWorker(this SymbolInfo info) 25public static ImmutableArray<ISymbol> GetBestOrAllSymbols(this SymbolInfo info)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (2)
862var conditionalMap = new Dictionary<TDirectiveTriviaSyntax, ImmutableArray<TDirectiveTriviaSyntax>>( 928var condDirectives = condDirectivesBuilder.ToImmutableAndClear();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\TextSpanExtensions.cs (2)
21public static ImmutableArray<TextSpan> ToNormalizedSpans(this ImmutableArray<TextSpan> spans)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\CustomDataFlowAnalysis.cs (2)
32var blocks = controlFlowGraph.Blocks; 67ImmutableArray<BasicBlock> blocks,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.AnalysisData.cs (2)
144ImmutableArray<IParameterSymbol> parameters) 152ImmutableArray<IParameterSymbol> parameters)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageResult.cs (1)
47public ImmutableArray<(ISymbol Symbol, IOperation WriteOperation)> GetUnreadSymbolWrites()
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.cs (2)
412var intervals = tree.GetIntervalsThatContain(textSpan.Start, textSpan.Length); 542var anchorData = _anchorTree.GetIntervalsThatOverlapWith(baseAnchorData.TextSpan.Start, baseAnchorData.TextSpan.Length);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.InitialContextFinder.cs (3)
43public (List<IndentBlockOperation> indentOperations, ImmutableArray<SuppressOperation> suppressOperations) Do(SyntaxToken startToken, SyntaxToken endToken) 53var initialSuppressOperations = GetInitialSuppressOperations(startToken, endToken); 124private ImmutableArray<SuppressOperation> GetInitialSuppressOperations(SyntaxToken startToken, SyntaxToken endToken)
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\ChainedFormattingRules.cs (9)
21private readonly ImmutableArray<AbstractFormattingRule> _formattingRules; 24private readonly ImmutableArray<AbstractFormattingRule> _addSuppressOperationsRules; 25private readonly ImmutableArray<AbstractFormattingRule> _addAnchorIndentationOperationsRules; 26private readonly ImmutableArray<AbstractFormattingRule> _addIndentBlockOperationsRules; 27private readonly ImmutableArray<AbstractFormattingRule> _addAlignTokensOperationsRules; 28private readonly ImmutableArray<AbstractFormattingRule> _getAdjustNewLinesOperationRules; 29private readonly ImmutableArray<AbstractFormattingRule> _getAdjustSpacesOperationRules; 82private static ImmutableArray<AbstractFormattingRule> FilterToRulesImplementingMethod(ImmutableArray<AbstractFormattingRule> rules, string name)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingOptions2.cs (2)
97internal static readonly ImmutableArray<IOption2> EditorConfigOptions = [UseTabs, TabSize, IndentationSize, NewLine, InsertFinalNewLine]; 102internal static readonly ImmutableArray<IOption2> UndocumentedOptions = [WrappingColumn, ConditionalExpressionWrappingLength];
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextAlignTokensOperationAction.cs (1)
12ImmutableArray<AbstractFormattingRule> formattingRules,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextAnchorIndentationOperationAction.cs (1)
12ImmutableArray<AbstractFormattingRule> formattingRules,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextGetAdjustNewLinesOperation.cs (1)
11ImmutableArray<AbstractFormattingRule> formattingRules,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextGetAdjustSpacesOperation.cs (1)
11ImmutableArray<AbstractFormattingRule> formattingRules,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextIndentBlockOperationAction.cs (1)
12ImmutableArray<AbstractFormattingRule> formattingRules,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextSuppressOperationAction.cs (1)
12ImmutableArray<AbstractFormattingRule> formattingRules,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\TriviaEngine\AbstractTriviaFormatter.cs (1)
265public ImmutableArray<TextChange> FormatToTextChanges(CancellationToken cancellationToken)
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Helpers\RemoveUnnecessaryImports\IUnnecessaryImportsProvider.cs (2)
15ImmutableArray<TSyntaxNode> GetUnnecessaryImports(SemanticModel model, TextSpan? span, CancellationToken cancellationToken); 17ImmutableArray<TSyntaxNode> GetUnnecessaryImports(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Indentation\AbstractIndentation.Indenter.cs (1)
44ImmutableArray<AbstractFormattingRule> rules,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser_SymbolSpec.cs (12)
49out Property<ImmutableArray<SymbolKindOrTypeKind>> kinds, 50out Property<ImmutableArray<Accessibility>> accessibilities, 51out Property<ImmutableArray<ModifierKind>> modifiers) 86private static readonly ImmutableArray<SymbolKindOrTypeKind> s_allApplicableKinds = 89private static ImmutableArray<SymbolKindOrTypeKind> ParseSymbolKindList(string symbolSpecApplicableKinds) 156private static readonly ImmutableArray<Accessibility> s_allAccessibility = 167private static ImmutableArray<Accessibility> ParseAccessibilityKindList(string symbolSpecApplicableAccessibilities) 220private static readonly ImmutableArray<ModifierKind> _allModifierKind = [s_abstractModifierKind, s_asyncModifierKind, s_constModifierKind, s_readonlyModifierKind, s_staticModifierKind]; 222private static ImmutableArray<ModifierKind> ParseModifiers(string symbolSpecRequiredModifiers) 264public static string ToEditorConfigString(this ImmutableArray<SymbolKindOrTypeKind> symbols) 362public static string ToEditorConfigString(this ImmutableArray<Accessibility> accessibilities, string languageName) 421public static string ToEditorConfigString(this ImmutableArray<ModifierKind> modifiers, string languageName)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Naming\IdentifierNameParts.cs (6)
15internal readonly struct IdentifierNameParts(string baseName, ImmutableArray<string> baseNameParts) 18public readonly ImmutableArray<string> BaseNameParts = baseNameParts; 20public static IdentifierNameParts CreateIdentifierNameParts(ISymbol symbol, ImmutableArray<NamingRule> rules) 31var words = CreateWords(parts, baseName); 36private static string RemovePrefixesAndSuffixes(ISymbol symbol, ImmutableArray<NamingRule> rules, string baseName) 73private static ImmutableArray<string> CreateWords(in TemporaryArray<TextSpan> parts, string name)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (1)
61public string CreateName(ImmutableArray<string> words)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyleOptions.cs (1)
32internal static readonly ImmutableArray<IOption2> EditorConfigOptions = [NamingPreferences];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyleRules.cs (5)
11internal sealed class NamingStyleRules(ImmutableArray<NamingRule> namingRules) 13public ImmutableArray<NamingRule> NamingRules { get; } = namingRules; 15private readonly ImmutableArray<SymbolKind> _symbolKindsThatCanBeOverridden = 88var implementedInterfaces = containingType.AllInterfaces; 92var implementedInterfaceMembersWithSameName = implementedInterface.GetMembers(symbol.Name);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (10)
27public readonly ImmutableArray<SymbolSpecification> SymbolSpecifications; 30public readonly ImmutableArray<NamingStyle> NamingStyles; 33public ImmutableArray<SerializableNamingRule> SerializableNamingRules 57ImmutableArray<SymbolSpecification> symbolSpecifications, 58ImmutableArray<NamingStyle> namingStyles, 59ImmutableArray<SerializableNamingRule> serializableRules) 76ImmutableArray<SymbolSpecification> symbolSpecifications, 77ImmutableArray<NamingStyle> namingStyles, 78ImmutableArray<NamingRule> namingRules) 336public static NamingStylePreferences Empty { get; } = new([], [], ImmutableArray<NamingRule>.Empty);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (10)
26ImmutableArray<SymbolSpecification.SymbolKindOrTypeKind> symbolKindList, 27ImmutableArray<Accessibility> accessibilityList = default, 28ImmutableArray<SymbolSpecification.ModifierKind> modifiers = default) : IEquatable<SymbolSpecification> 39public ImmutableArray<SymbolKindOrTypeKind> ApplicableSymbolKindList { get; } = symbolKindList.IsDefault ? DefaultSymbolSpecificationTemplate.ApplicableSymbolKindList : symbolKindList; 42public ImmutableArray<Accessibility> ApplicableAccessibilityList { get; } = accessibilityList.IsDefault ? DefaultSymbolSpecificationTemplate.ApplicableAccessibilityList : accessibilityList; 45public ImmutableArray<ModifierKind> RequiredModifierList { get; } = modifiers.IsDefault ? DefaultSymbolSpecificationTemplate.RequiredModifierList : modifiers; 120private static Modifiers CollapseModifiers(ImmutableArray<ModifierKind> requiredModifierList) 285private static ImmutableArray<SymbolKindOrTypeKind> GetSymbolKindListFromXElement(XElement symbolKindListElement) 306private static ImmutableArray<Accessibility> GetAccessibilityListFromXElement(XElement accessibilityListElement) 312private static ImmutableArray<ModifierKind> GetModifierListFromXElement(XElement modifierListElement)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionDefinition.cs (4)
104type == typeof(ImmutableArray<bool>) || 105type == typeof(ImmutableArray<string>) || 106type == typeof(ImmutableArray<int>) || 107type == typeof(ImmutableArray<long>);
src\roslyn\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\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\FileBannerFacts\IFileBannerFactsExtensions.cs (2)
12public static ImmutableArray<SyntaxTrivia> GetTriviaAfterLeadingBlankLines( 15var leadingBlankLines = bannerService.GetLeadingBlankLines(node);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\HeaderFacts\AbstractHeaderFacts.cs (2)
30=> IsOnHeader(root, position, ownerOfHeader, lastTokenOrNodeOfHeader, ImmutableArray<SyntaxNode>.Empty); 37ImmutableArray<THoleSyntax> holes)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SelectedMembers\AbstractSelectedMembers.cs (5)
31protected abstract ImmutableArray<(SyntaxNode declarator, SyntaxToken identifier)> GetDeclaratorsAndIdentifiers(TMemberDeclarationSyntax member); 33public Task<ImmutableArray<SyntaxNode>> GetSelectedFieldsAndPropertiesAsync( 37public Task<ImmutableArray<SyntaxNode>> GetSelectedMembersAsync( 41private async Task<ImmutableArray<SyntaxNode>> GetSelectedMembersAsync( 76private ImmutableArray<SyntaxNode> GetMembersInSpan(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SemanticFacts\ISemanticFacts.cs (4)
85ImmutableArray<IMethodSymbol> GetDeconstructionAssignmentMethods(SemanticModel semanticModel, SyntaxNode node); 87ImmutableArray<IMethodSymbol> GetDeconstructionForEachMethods(SemanticModel semanticModel, SyntaxNode node); 99ImmutableArray<ISymbol> GetBestOrAllSymbols(SemanticModel semanticModel, SyntaxNode? node, SyntaxToken token, CancellationToken cancellationToken); 106ImmutableArray<IMethodSymbol> GetLocalFunctionSymbols(Compilation compilation, ISymbol symbol, CancellationToken cancellationToken);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SyntaxFacts\ISyntaxFacts.cs (1)
187ImmutableArray<SyntaxNode> GetMatchingConditionalDirectives(SyntaxNode directive, CancellationToken cancellationToken);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SyntaxFacts\ISyntaxFactsExtensions.cs (1)
160this ISyntaxFacts syntaxFacts, ImmutableArray<SyntaxNode> nodes, CancellationToken cancellationToken)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Simplification\SymbolAnnotation.cs (1)
23public static ImmutableArray<ISymbol> GetSymbols(SyntaxAnnotation annotation, Compilation compilation)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.AnonymousTypeSymbolKey.cs (8)
21var properties = symbol.GetMembers().OfType<IPropertySymbol>().ToImmutableArray(); 22var propertyTypes = properties.SelectAsArray(p => p.Type); 23var propertyNames = properties.SelectAsArray(p => (string?)p.Name); 24var propertyIsReadOnly = properties.SelectAsArray(p => p.SetMethod == null); 25var propertyLocations = properties.SelectAsArray(p => p.Locations.FirstOrDefault()); 38var contextualProperties = contextualSymbol?.GetMembers().OfType<IPropertySymbol>().ToImmutableArray() ?? []; 48var propertyLocations = ReadPropertyLocations(reader, out var propertyLocationsFailureReason); 75private static ImmutableArray<Location> ReadPropertyLocations(SymbolKeyReader reader, out string? failureReason)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.BodyLevelSymbolKey.cs (2)
19public static ImmutableArray<Location?> GetBodyLevelSourceLocations(ISymbol symbol, CancellationToken cancellationToken) 63var locations = GetBodyLevelSourceLocations(symbol, cancellationToken);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (5)
152var locations = BodyLevelSymbolKey.GetBodyLevelSourceLocations(symbol, cancellationToken); 261ImmutableArray<ISymbol>.CastUp(symbols.Builder.ToImmutableAndClear()), 266private static T? SafeGet<T>(ImmutableArray<T> values, int index) where T : class 276ImmutableArray<IParameterSymbol> parameters, 303var members = metadataName == null
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.ErrorTypeSymbolKey.cs (2)
44visitor.WriteSymbolKeyArray(ImmutableArray<ITypeSymbol>.Empty); 52private static ImmutableArray<string?> GetContainingNamespaceNamesInReverse(INamespaceSymbol namespaceSymbol)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.FunctionPointerTypeSymbolKey.cs (2)
37var callingConventionModifiers = ImmutableArray<INamedTypeSymbol>.Empty;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.ModuleSymbolKey.cs (1)
38if (assemblyModules is ImmutableArray<IModuleSymbol> modules)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.ParameterSymbolKey.cs (1)
85string metadataName, int ordinal, ImmutableArray<IParameterSymbol> parameters)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.PooledArrayBuilder.cs (2)
34public ImmutableArray<T> ToImmutable() => Builder.ToImmutable(); 52public void AddValuesIfNotNull(ImmutableArray<T> values)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
384ImmutableArray<IParameterSymbol> parameters)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (7)
277internal void WriteSymbolKeyArray<TSymbol>(ImmutableArray<TSymbol> symbols) 283internal void WriteParameterTypesArray(ImmutableArray<IParameterSymbol> symbols) 286internal void WriteBooleanArray(ImmutableArray<bool> array) 292internal void WriteStringArray(ImmutableArray<string?> strings) 295internal void WriteLocationArray(ImmutableArray<Location?> array) 300internal void WriteRefKindArray(ImmutableArray<IParameterSymbol> values) 303private void WriteArray<T, U>(ImmutableArray<T> array, Action<U> writeValue)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TupleTypeSymbolKey.cs (4)
67var elementLocations = ReadElementLocations(reader, out var elementLocationsFailureReason); 80var elementNamesArray = elementNames.ToImmutable(); 95var elementLocations = ReadElementLocations(reader, out var elementLocationsFailureReason); 126private static ImmutableArray<Location> ReadElementLocations(SymbolKeyReader reader, out string? failureReason)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKeyResolution.cs (2)
27internal SymbolKeyResolution(ImmutableArray<ISymbol> candidateSymbols, CandidateReason candidateReason) 38public ImmutableArray<ISymbol> CandidateSymbols => field.NullToEmpty();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (10)
112SemanticModel model, TForEachStatementSyntax forEach, out IMethodSymbol getEnumeratorMethod, out ITypeSymbol elementType, out ImmutableArray<ILocalSymbol> localVariables); 120protected abstract ImmutableArray<TArgumentSyntax> GetArguments(TExpressionSyntax expression); 778GetForEachSymbols(this.OriginalSemanticModel, forEachStatement, out var originalGetEnumerator, out var originalElementType, out var originalLocalVariables); 779GetForEachSymbols(this.SpeculativeSemanticModel, newForEachStatement, out var newGetEnumerator, out var newElementType, out var newLocalVariables); 1055var specifiedArguments = GetArguments(originalInvocation); 1058var symbolParameters = originalSymbol.GetParameters(); 1059var newSymbolParameters = newSymbol.GetParameters(); 1068ImmutableArray<TArgumentSyntax> specifiedArguments, 1069ImmutableArray<IParameterSymbol> signature1Parameters, 1070ImmutableArray<IParameterSymbol> signature2Parameters)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.Builder.cs (2)
139private void BuildArrays(ImmutableArray<Node>.Builder nodes, ImmutableArray<Edge>.Builder edges)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.cs (4)
49private readonly ImmutableArray<Node> _nodes; 50private readonly ImmutableArray<Edge> _edges; 52private BKTree(char[] concatenatedLowerCaseWords, ImmutableArray<Node> nodes, ImmutableArray<Edge> edges)
src\roslyn\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\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IAsyncEnumerableExtensions.cs (1)
38public static IAsyncEnumerable<T> MergeAsync<T>(this ImmutableArray<IAsyncEnumerable<T>> streams, CancellationToken cancellationToken)
src\roslyn\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\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\InterceptsLocationUtilities.cs (4)
20internal record struct InterceptsLocationData(ImmutableArray<byte> ContentHash, int Position) 31public static ImmutableArray<InterceptsLocationData> GetInterceptsLocationData(ImmutableArray<AttributeData> attributes) 103var contentHash = bytes[HashIndex..HashSize].ToImmutableArray();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\LightweightOverloadResolution.cs (4)
31public IMethodSymbol? RefineOverload(SymbolInfo symbolInfo, ImmutableArray<IMethodSymbol> candidates) 34public (IMethodSymbol? method, int parameterIndex) RefineOverloadAndPickParameter(SymbolInfo symbolInfo, ImmutableArray<IMethodSymbol> candidates) 52private (IMethodSymbol? symbol, int parameterIndex) GuessCurrentSymbolAndParameter(ImmutableArray<IMethodSymbol> methodGroup) 85var parameters = method.Parameters;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PathMetadataUtilities.cs (2)
27var parts = folders.SelectMany(folder => folder.Split(NamespaceSeparatorArray)).SelectAsArray(syntaxFacts.EscapeIdentifier); 59public static ImmutableArray<string> BuildFoldersFromNamespace(string? @namespace, string? rootNamespace = null)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PooledBuilderExtensions.cs (6)
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) 47public static ImmutableDictionary<K, ImmutableArray<V>> ToImmutableMultiDictionaryAndFree<K, V, TArg>(this PooledDictionary<K, ArrayBuilder<V>> builders, Func<K, TArg, bool>? where, TArg whereArg) 50var result = ImmutableDictionary.CreateBuilder<K, ImmutableArray<V>>(); 77public static ImmutableArray<T> ToFlattenedImmutableArrayAndFree<T>(this ArrayBuilder<ArrayBuilder<T>> builders)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\RestrictedInternalsVisibleToAttribute.cs (1)
13public ImmutableArray<string> AllowedNamespaces { get; } = [.. allowedNamespaces];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SerializableBytes.cs (1)
222public ImmutableArray<byte> ToImmutableArray()
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SpecializedTasks.cs (4)
46public static Task<ImmutableArray<T>> EmptyImmutableArray<T>() 87public static async ValueTask<ImmutableArray<TResult>> WhenAll<TResult>(this IReadOnlyCollection<Task<TResult>> tasks) 102public static readonly Task<ImmutableArray<T>> EmptyImmutableArray = Task.FromResult(ImmutableArray<T>.Empty);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (4)
29public static ImmutableArray<Compilation> GetReferencedCompilations(this Compilation compilation) 48public static ImmutableArray<IAssemblySymbol> GetReferencedAssemblySymbols(this Compilation compilation, bool excludePreviousSubmissions = false) 52var referencedAssemblySymbols = compilation.Assembly.Modules.First().ReferencedAssemblySymbols; 193=> compilation.GetTypeByMetadataName(typeof(ImmutableArray<>).FullName!);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IMethodSymbolExtensions.cs (1)
49public static ImmutableArray<IMethodSymbol> GetAllMethodSymbolsOfPartialParts(this IMethodSymbol method)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (25)
44public static ImmutableArray<ITypeParameterSymbol> GetAllTypeParameters(this INamedTypeSymbol? symbol) 50public static ImmutableArray<ITypeSymbol> GetAllTypeArguments(this INamedTypeSymbol? symbol) 190public static ImmutableArray<(INamedTypeSymbol type, ImmutableArray<ISymbol> members)> GetAllUnimplementedMembers( 208static ImmutableArray<ISymbol> GetImplicitlyImplementableMembers(INamedTypeSymbol type, ISymbol within) 260public static ImmutableArray<(INamedTypeSymbol type, ImmutableArray<ISymbol> members)> GetAllUnimplementedMembersInThis( 278public static ImmutableArray<(INamedTypeSymbol type, ImmutableArray<ISymbol> members)> GetAllUnimplementedMembersInThis( 281Func<INamedTypeSymbol, ISymbol, ImmutableArray<ISymbol>> interfaceMemberGetter, 297public static ImmutableArray<(INamedTypeSymbol type, ImmutableArray<ISymbol> members)> GetAllUnimplementedExplicitMembers( 311private static ImmutableArray<ISymbol> GetExplicitlyImplementableMembers(INamedTypeSymbol type, ISymbol within) 338private static ImmutableArray<(INamedTypeSymbol type, ImmutableArray<ISymbol> members)> GetAllUnimplementedMembers( 343Func<INamedTypeSymbol, ISymbol, ImmutableArray<ISymbol>> interfaceMemberGetter, 367var typesToImplement = GetTypesToImplement(classOrStructType, interfacesOrAbstractClasses, allowReimplementation, cancellationToken); 372private static ImmutableArray<INamedTypeSymbol> GetTypesToImplement( 383private static ImmutableArray<INamedTypeSymbol> GetAbstractClassesToImplement( 389private static ImmutableArray<INamedTypeSymbol> GetInterfacesToImplement( 404var alreadyImplementedInterfaces = baseType == null || allowReimplementation 413private static ImmutableArray<ISymbol> GetUnimplementedMembers( 418Func<INamedTypeSymbol, ISymbol, ImmutableArray<ISymbol>> interfaceMemberGetter, 528private static ImmutableArray<ISymbol> GetMembers(INamedTypeSymbol type, ISymbol within) 541public static ImmutableArray<ISymbol> GetOverridableMembers(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (12)
141public static ImmutableArray<ISymbol> ExplicitInterfaceImplementations(this ISymbol symbol) 144IEventSymbol @event => ImmutableArray<ISymbol>.CastUp(@event.ExplicitInterfaceImplementations), 145IMethodSymbol method => ImmutableArray<ISymbol>.CastUp(method.ExplicitInterfaceImplementations), 146IPropertySymbol property => ImmutableArray<ISymbol>.CastUp(property.ExplicitInterfaceImplementations), 150public static ImmutableArray<ISymbol> ExplicitOrImplicitInterfaceImplementations(this ISymbol symbol) 175public static ImmutableArray<ISymbol> ImplicitInterfaceImplementations(this ISymbol symbol) 423public static ImmutableArray<IParameterSymbol> GetParameters(this ISymbol? symbol) 431public static ImmutableArray<ITypeParameterSymbol> GetTypeParameters(this ISymbol? symbol) 439public static ImmutableArray<ITypeParameterSymbol> GetAllTypeParameters(this ISymbol? symbol) 452public static ImmutableArray<ITypeSymbol> GetTypeArguments(this ISymbol? symbol) 460public static ImmutableArray<ITypeSymbol> GetAllTypeArguments(this ISymbol symbol) 705var potentialGetAwaiters = semanticModel.LookupSymbols(position,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (6)
43public static ImmutableArray<INamedTypeSymbol> GetAllInterfacesIncludingThis(this ITypeSymbol type) 45var allInterfaces = type.AllInterfaces; 446public static ImmutableArray<T> GetAccessibleMembersInThisAndBaseTypes<T>(this ITypeSymbol? containingType, ISymbol within) where T : class, ISymbol 456public static ImmutableArray<T> GetAccessibleMembersInThisAndBaseTypes<T>(this ITypeSymbol? containingType, string memberName, ISymbol within) where T : class, ISymbol 593var allTypeArgs1 = n1.GetAllTypeArguments(); 594var allTypeArgs2 = n2.GetAllTypeArguments();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.SubstituteTypesVisitor.cs (1)
72var allTypeArguments = symbol.GetAllTypeArguments();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SignatureComparer.cs (4)
108ImmutableArray<IParameterSymbol> parameters1, 109ImmutableArray<IParameterSymbol> parameters2) 118ImmutableArray<IParameterSymbol> parameters1, 119ImmutableArray<IParameterSymbol> parameters2,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.cs (2)
43private readonly ImmutableArray<EquivalenceVisitor> _equivalenceVisitors; 44private readonly ImmutableArray<GetHashCodeVisitor> _getHashCodeVisitors;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (8)
76internal 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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (1)
109private static int CombineHashCodes<T>(ImmutableArray<T> array, int currentHash, Func<int, T, int> func)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\CodeFixContextExtensions.cs (1)
27internal static void RegisterFixes(this CodeFixContext context, IEnumerable<CodeAction> actions, ImmutableArray<Diagnostic> diagnostics)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\FixAllContextHelper.cs (12)
22public static async Task<ImmutableDictionary<Document, ImmutableArray<Diagnostic>>> GetDocumentDiagnosticsToFixAsync( 27var allDiagnostics = ImmutableArray<Diagnostic>.Empty; 40var documentDiagnostics = await fixAllContext.GetDocumentDiagnosticsAsync(document).ConfigureAwait(false); 41return ImmutableDictionary<Document, ImmutableArray<Diagnostic>>.Empty.SetItem(document, documentDiagnostics); 72var projectsToFix = project.Solution.Projects 80allDiagnostics = await ProducerConsumer<ImmutableArray<Diagnostic>>.RunParallelAsync( 92await foreach (var diagnostics in results.ConfigureAwait(false)) 106return ImmutableDictionary<Document, ImmutableArray<Diagnostic>>.Empty; 132private static async Task<ImmutableDictionary<Document, ImmutableArray<Diagnostic>>> GetDocumentDiagnosticsToFixAsync( 134ImmutableArray<Diagnostic> diagnostics, 137var builder = ImmutableDictionary.CreateBuilder<Document, ImmutableArray<Diagnostic>>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\ForkingSyntaxEditorBasedCodeFixProvider.cs (1)
56ImmutableArray<Diagnostic> diagnostics,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\MultiProjectSafeFixAllProvider.cs (6)
40using var _ = PooledDictionary<DocumentId, ImmutableArray<DocumentId>>.GetInstance(out var documentToLinkedDocuments); 61var linkedDocuments = document.GetLinkedDocumentIds(); 81var diagnostics = documentToDiagnostics[document]; 92var linkedDiagnostics = documentToDiagnostics.TryGetValue(linkedDocument, out var result) ? result : []; 110static IEnumerable<TextSpan> GetDiagnosticSpans(ImmutableArray<Diagnostic> diagnostics)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\SyntaxEditorBasedCodeFixProvider.cs (5)
19private static readonly ImmutableArray<FixAllScope> s_defaultSupportedFixAllScopes = 41var filteredDiagnostics = diagnostics.Distinct() 65var diagnostics = ImmutableArray.Create(diagnostic ?? context.Diagnostics[0]); 70Document document, ImmutableArray<Diagnostic> diagnostics, CancellationToken cancellationToken) 98Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixesAndRefactorings\AbstractFixAllSpanMappingService.cs (3)
20protected abstract Task<ImmutableDictionary<Document, ImmutableArray<TextSpan>>> GetFixAllSpansIfWithinGlobalStatementAsync( 23public Task<ImmutableDictionary<Document, ImmutableArray<TextSpan>>> GetFixAllSpansAsync( 32private async Task<ImmutableDictionary<Document, ImmutableArray<TextSpan>>> GetFixAllSpansAsync(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixesAndRefactorings\IFixAllSpanMappingService.cs (1)
30Task<ImmutableDictionary<Document, ImmutableArray<TextSpan>>> GetFixAllSpansAsync(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService_FindDeclaration.cs (3)
30var declarations = _symbolDeclarationService.GetDeclarations(destination); 163var declarationReferences = _symbolDeclarationService.GetDeclarations(symbol); 164var declarations = declarationReferences.SelectAsArray(r => r.GetSyntax(cancellationToken));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationSymbolFactory.cs (72)
29ImmutableArray<AttributeData> attributes, Accessibility accessibility, 31ImmutableArray<IEventSymbol> explicitInterfaceImplementations, 44ImmutableArray<AttributeData> attributes, 49ImmutableArray<IPropertySymbol> explicitInterfaceImplementations, 51ImmutableArray<IParameterSymbol> parameters, 78ImmutableArray<AttributeData> attributes, Accessibility accessibility, DeclarationModifiers modifiers, 79ITypeSymbol type, RefKind refKind, ImmutableArray<IPropertySymbol> explicitInterfaceImplementations, string name, 80ImmutableArray<IParameterSymbol> parameters, IMethodSymbol? getMethod, IMethodSymbol? setMethod, 103ImmutableArray<AttributeData> attributes, 120ImmutableArray<AttributeData> attributes, 124ImmutableArray<IParameterSymbol> parameters, 125ImmutableArray<SyntaxNode> statements = default, 126ImmutableArray<SyntaxNode> baseConstructorArguments = default, 127ImmutableArray<SyntaxNode> thisConstructorArguments = default, 139ImmutableArray<AttributeData> attributes, string typeName, 140ImmutableArray<SyntaxNode> statements = default) 149ImmutableArray<AttributeData> attributes, 154ImmutableArray<IMethodSymbol> explicitInterfaceImplementations, 156ImmutableArray<ITypeParameterSymbol> typeParameters, 157ImmutableArray<IParameterSymbol> parameters, 158ImmutableArray<SyntaxNode> statements = default, 159ImmutableArray<SyntaxNode> handlesExpressions = default, 160ImmutableArray<AttributeData> returnTypeAttributes = default, 173ImmutableArray<AttributeData> attributes, Accessibility accessibility, DeclarationModifiers modifiers, 176ImmutableArray<IMethodSymbol> explicitInterfaceImplementations, 177string? name, ImmutableArray<ITypeParameterSymbol> typeParameters, 178ImmutableArray<IParameterSymbol> parameters, 179ImmutableArray<SyntaxNode> statements = default, 180ImmutableArray<SyntaxNode> handlesExpressions = default, 181ImmutableArray<AttributeData> returnTypeAttributes = default, 192ImmutableArray<AttributeData> attributes, 197ImmutableArray<IParameterSymbol> parameters, 198ImmutableArray<SyntaxNode> statements = default, 199ImmutableArray<AttributeData> returnTypeAttributes = default, 224ImmutableArray<SyntaxNode> statements = default, 225ImmutableArray<AttributeData> toTypeAttributes = default, 245ImmutableArray<AttributeData> attributes, 252ImmutableArray<SyntaxNode> statements = default, 253ImmutableArray<AttributeData> toTypeAttributes = default, 277ImmutableArray<AttributeData> attributes, RefKind refKind, bool isParams, ITypeSymbol type, string name, bool isOptional = false, bool hasDefaultValue = false, object? defaultValue = null) 287ImmutableArray<AttributeData>? attributes = null, 329ImmutableArray<AttributeData> attributes, 331ImmutableArray<ITypeSymbol> constraintTypes, 358ImmutableArray<AttributeData> attributes = default, 360ImmutableArray<IMethodSymbol> explicitInterfaceImplementations = default, 361ImmutableArray<SyntaxNode> statements = default) 383ImmutableArray<AttributeData> attributes, 385ImmutableArray<SyntaxNode> statements) 405ImmutableArray<TypedConstant> constructorArguments = default, 406ImmutableArray<KeyValuePair<string, TypedConstant>> namedArguments = default) 415ImmutableArray<AttributeData> attributes, 419ImmutableArray<ITypeParameterSymbol> typeParameters = default, 421ImmutableArray<INamedTypeSymbol> interfaces = default, 423ImmutableArray<ISymbol> members = default, 434ImmutableArray<AttributeData> attributes, 438ImmutableArray<ITypeParameterSymbol> typeParameters = default, 440ImmutableArray<INamedTypeSymbol> interfaces = default, 442ImmutableArray<ISymbol> members = default, 460ImmutableArray<AttributeData> attributes, 466ImmutableArray<ITypeParameterSymbol> typeParameters = default, 467ImmutableArray<IParameterSymbol> parameters = default, 512ImmutableArray<AttributeData> attributes = default, 515ImmutableArray<IMethodSymbol> explicitInterfaceImplementations = default, 517ImmutableArray<IParameterSymbol>? parameters = null, 518ImmutableArray<SyntaxNode> statements = default, 521Optional<ImmutableArray<AttributeData>> returnTypeAttributes = default) 542ImmutableArray<AttributeData> attributes = default, 543ImmutableArray<IParameterSymbol>? parameters = null, 546ImmutableArray<IPropertySymbol> explicitInterfaceImplementations = default, 570ImmutableArray<AttributeData> attributes = default, 573ImmutableArray<IEventSymbol> explicitInterfaceImplementations = default, 591ImmutableArray<AttributeData> attributes = default,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAbstractMethodSymbol.cs (14)
17private readonly ImmutableArray<AttributeData> _returnTypeAttributes; 19public virtual ImmutableArray<AttributeData> GetReturnTypeAttributes() 24ImmutableArray<AttributeData> attributes, 28ImmutableArray<AttributeData> returnTypeAttributes, 42public abstract ImmutableArray<ITypeSymbol> TypeArguments { get; } 43public abstract ImmutableArray<ITypeParameterSymbol> TypeParameters { get; } 44public abstract ImmutableArray<IParameterSymbol> Parameters { get; } 52public abstract ImmutableArray<IMethodSymbol> ExplicitInterfaceImplementations { get; } 59public ImmutableArray<NullableAnnotation> TypeArgumentNullableAnnotations => TypeArguments.SelectAsArray(a => a.NullableAnnotation); 90public ImmutableArray<CustomModifier> RefCustomModifiers 93public virtual ImmutableArray<CustomModifier> ReturnTypeCustomModifiers 110public ImmutableArray<INamedTypeSymbol> UnmanagedCallingConventionTypes => []; 115public IMethodSymbol Construct(ImmutableArray<ITypeSymbol> typeArguments, ImmutableArray<CodeAnalysis.NullableAnnotation> typeArgumentNullableAnnotations)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAbstractNamedTypeSymbol.cs (13)
18public ImmutableArray<IFieldSymbol> TupleElements { get; protected set; } 20internal readonly ImmutableArray<CodeGenerationAbstractNamedTypeSymbol> TypeMembers; 25ImmutableArray<AttributeData> attributes, 31ImmutableArray<CodeGenerationAbstractNamedTypeSymbol> typeMembers) 64public INamedTypeSymbol Construct(ImmutableArray<ITypeSymbol> typeArguments, ImmutableArray<NullableAnnotation> typeArgumentNullableAnnotations) 81public abstract ImmutableArray<IMethodSymbol> InstanceConstructors { get; } 82public abstract ImmutableArray<IMethodSymbol> StaticConstructors { get; } 83public abstract ImmutableArray<IMethodSymbol> Constructors { get; } 84public abstract ImmutableArray<ITypeSymbol> TypeArguments { get; } 85public abstract ImmutableArray<NullableAnnotation> TypeArgumentNullableAnnotations { get; } 87public ImmutableArray<CustomModifier> GetTypeArgumentCustomModifiers(int ordinal) 97public abstract ImmutableArray<ITypeParameterSymbol> TypeParameters { get; }
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationArrayTypeSymbol.cs (3)
24public ImmutableArray<int> Sizes 32public ImmutableArray<int> LowerBounds 57public ImmutableArray<CustomModifier> CustomModifiers
src\roslyn\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\roslyn\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\roslyn\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\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationConstructorSymbol.cs (2)
12ImmutableArray<AttributeData> attributes, 15ImmutableArray<IParameterSymbol> parameters) : CodeGenerationMethodSymbol(containingType,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationConversionSymbol.cs (2)
12ImmutableArray<AttributeData> attributes, 18ImmutableArray<AttributeData> toTypeAttributes,
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationDestructorSymbol.cs (1)
11ImmutableArray<AttributeData> attributes) : CodeGenerationMethodSymbol(containingType,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationEventSymbol.cs (4)
13ImmutableArray<AttributeData> attributes, 17ImmutableArray<IEventSymbol> explicitInterfaceImplementations, 26public ImmutableArray<IEventSymbol> ExplicitInterfaceImplementations { get; } = explicitInterfaceImplementations.NullToEmpty(); 66public static ImmutableArray<CustomModifier> TypeCustomModifiers => [];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationFieldSymbol.cs (3)
14ImmutableArray<AttributeData> attributes, 81public ImmutableArray<CustomModifier> RefCustomModifiers => []; 83public ImmutableArray<CustomModifier> CustomModifiers
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationMethodSymbol.cs (9)
17public override ImmutableArray<ITypeParameterSymbol> TypeParameters { get; } 18public override ImmutableArray<IParameterSymbol> Parameters { get; } 19public override ImmutableArray<IMethodSymbol> ExplicitInterfaceImplementations { get; } 24ImmutableArray<AttributeData> attributes, 29ImmutableArray<IMethodSymbol> explicitInterfaceImplementations, 31ImmutableArray<ITypeParameterSymbol> typeParameters, 32ImmutableArray<IParameterSymbol> parameters, 33ImmutableArray<AttributeData> returnTypeAttributes, 95public override ImmutableArray<ITypeSymbol> TypeArguments
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationNamedTypeSymbol.cs (18)
18private readonly ImmutableArray<ITypeParameterSymbol> _typeParameters; 19private readonly ImmutableArray<INamedTypeSymbol> _interfaces; 20private readonly ImmutableArray<ISymbol> _members; 25ImmutableArray<AttributeData> attributes, 31ImmutableArray<ITypeParameterSymbol> typeParameters, 33ImmutableArray<INamedTypeSymbol> interfaces, 36ImmutableArray<ISymbol> members, 37ImmutableArray<CodeGenerationAbstractNamedTypeSymbol> typeMembers, 114public static ImmutableArray<ISymbol> CandidateSymbols 122public override ImmutableArray<ITypeSymbol> TypeArguments 130public override ImmutableArray<NullableAnnotation> TypeArgumentNullableAnnotations 139public override ImmutableArray<ITypeParameterSymbol> TypeParameters 149public override ImmutableArray<INamedTypeSymbol> Interfaces 157public override ImmutableArray<ISymbol> GetMembers() 160public override ImmutableArray<INamedTypeSymbol> GetTypeMembers() 163public override ImmutableArray<IMethodSymbol> InstanceConstructors 172public override ImmutableArray<IMethodSymbol> StaticConstructors 181public override ImmutableArray<IMethodSymbol> Constructors
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationNamespaceOrTypeSymbol.cs (6)
15ImmutableArray<AttributeData> attributes, 23public virtual ImmutableArray<ISymbol> GetMembers() 26public ImmutableArray<ISymbol> GetMembers(string name) 29public virtual ImmutableArray<INamedTypeSymbol> GetTypeMembers() 32public ImmutableArray<INamedTypeSymbol> GetTypeMembers(string name) 35public ImmutableArray<INamedTypeSymbol> GetTypeMembers(string name, int arity)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationNamespaceSymbol.cs (1)
59public ImmutableArray<INamespaceSymbol> ConstituentNamespaces
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationOperatorSymbol.cs (3)
12ImmutableArray<AttributeData> attributes, 17ImmutableArray<IParameterSymbol> parameters, 18ImmutableArray<AttributeData> returnTypeAttributes,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationParameterSymbol.cs (3)
14ImmutableArray<AttributeData> attributes, 58public ImmutableArray<CustomModifier> RefCustomModifiers => []; 60public ImmutableArray<CustomModifier> CustomModifiers => [];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationPointerTypeSymbol.cs (1)
33public ImmutableArray<CustomModifier> CustomModifiers
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationPropertySymbol.cs (7)
14ImmutableArray<AttributeData> attributes, 19ImmutableArray<IPropertySymbol> explicitInterfaceImplementations, 22ImmutableArray<IParameterSymbol> parametersOpt, 30public ImmutableArray<IParameterSymbol> Parameters { get; } = parametersOpt.NullToEmpty(); 31public ImmutableArray<IPropertySymbol> ExplicitInterfaceImplementations { get; } = explicitInterfaceImplementations.NullToEmpty(); 80public ImmutableArray<CustomModifier> RefCustomModifiers => []; 82public ImmutableArray<CustomModifier> TypeCustomModifiers => [];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationSymbol.cs (10)
21private readonly ImmutableArray<AttributeData> _attributes; 32ImmutableArray<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\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationTypeSymbol.cs (8)
17ImmutableArray<AttributeData> attributes, 31public virtual ImmutableArray<INamedTypeSymbol> Interfaces 34public ImmutableArray<INamedTypeSymbol> AllInterfaces 53public static ImmutableArray<ITypeSymbol> TupleElementTypes => default; 55public static ImmutableArray<string> TupleElementNames => default; 64public ImmutableArray<SymbolDisplayPart> ToDisplayParts(NullableFlowState topLevelNullability, SymbolDisplayFormat format = null) 70public ImmutableArray<SymbolDisplayPart> ToMinimalDisplayParts(SemanticModel semanticModel, NullableFlowState topLevelNullability, int position, SymbolDisplayFormat format = null) 87public virtual ImmutableArray<ITypeSymbol> UnionCaseTypes => [];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeRefactorings\CodeRefactoringContextExtensions.cs (7)
21this CodeRefactoringContext context, ImmutableArray<TCodeAction> actions, TextSpan? applicableToSpan = null) 50public static Task<ImmutableArray<TSyntaxNode>> GetRelevantNodesAsync<TSyntaxNode>(this CodeRefactoringContext context) where TSyntaxNode : SyntaxNode 53public static async Task<ImmutableArray<TSyntaxNode>> GetRelevantNodesAsync<TSyntaxNode>(this CodeRefactoringContext context, bool allowEmptyNodes) where TSyntaxNode : SyntaxNode 75public static Task<ImmutableArray<TSyntaxNode>> GetRelevantNodesAsync<TSyntaxNode>( 81public static async Task<ImmutableArray<TSyntaxNode>> GetRelevantNodesAsync<TSyntaxNode>( 88public static ImmutableArray<TSyntaxNode> GetRelevantNodes<TSyntaxNode>( 92public static ImmutableArray<TSyntaxNode> GetRelevantNodes<TSyntaxNode>(
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\ImportAdderService.cs (3)
76ImmutableArray<INamespaceSymbol> namespaceSymbols, 96ImmutableArray<INamespaceSymbol> namespaceSymbols, 245var importsToAdd = importToSyntax.SelectAsArray(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\ContextQuery\SyntaxContext.cs (1)
98public ImmutableArray<ITypeSymbol> InferredTypes { get; } = document.GetRequiredLanguageService<ITypeInferenceService>().InferTypes(semanticModel, position, cancellationToken);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\DocumentExtensions.cs (3)
180var errors = await GetErrorsAsync(document, cancellationToken, ignoreErrorCode).ConfigureAwait(false); 184public static async Task<ImmutableArray<Diagnostic>> GetErrorsAsync(this Document document, CancellationToken cancellationToken, IList<string>? ignoreErrorCode = null) 202var errors = await newDocument.GetErrorsAsync(cancellationToken, ignoreErrorCodes).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IMethodSymbolExtensions.cs (10)
23var parameterNames = NameGenerator.EnsureUniqueness( 35var newTypeParameterNames = NameGenerator.EnsureUniqueness( 43public static IMethodSymbol RenameTypeParameters(this IMethodSymbol method, ImmutableArray<string> newNames) 51var updatedTypeParameters = RenameTypeParameters( 76this IMethodSymbol method, ImmutableArray<string> parameterNames) 78var parameterList = method.Parameters; 84var parameters = parameterList.RenameParameters(parameterNames); 99private static ImmutableArray<ITypeParameterSymbol> RenameTypeParameters( 100ImmutableArray<ITypeParameterSymbol> typeParameters, 101ImmutableArray<string> newNames,
src\roslyn\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\roslyn\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\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\StringBuilderExtensions.cs (1)
37public static StringBuilder AppendJoinedValues<T>(this StringBuilder builder, string separator, ImmutableArray<T> values, Action<T, StringBuilder> append)
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateEqualsMethod.cs (17)
30ImmutableArray<ISymbol> symbols, 37var statements = CreateEqualsMethodStatements( 48public static IMethodSymbol CreateEqualsMethod(this Compilation compilation, ImmutableArray<SyntaxNode> statements) 56ImmutableArray<SyntaxNode> statements) 80ImmutableArray<ISymbol> symbols, 84var statements = CreateIEquatableEqualsMethodStatements( 96var parameters = ImmutableArray.Create(CodeGenerationSymbolFactory.CreateParameterSymbol( 99attributes: ImmutableArray<AttributeData>.Empty)); 120private static ImmutableArray<SyntaxNode> CreateEqualsMethodStatements( 126ImmutableArray<ISymbol> members, 240ImmutableArray<ISymbol> members, SyntaxNode localNameExpression, 291private static ImmutableArray<SyntaxNode> CreateIEquatableEqualsMethodStatements( 297ImmutableArray<ISymbol> members) 476public static ImmutableArray<ISymbol> CreateMemberDelegatingConstructor( 482ImmutableArray<IParameterSymbol> parameters, 491var newMembers = generateProperties 494var statements = factory.CreateAssignmentStatements(
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions.cs (13)
48public static ImmutableArray<SyntaxNode> CreateThrowNotImplementedStatementBlock( 52public static ImmutableArray<SyntaxNode> CreateArguments( 54ImmutableArray<IParameterSymbol> parameters) 183public static ImmutableArray<SyntaxNode> GetGetAccessorStatements( 201var arguments = generator.CreateArguments(property.Parameters); 222public static ImmutableArray<SyntaxNode> GetSetAccessorStatements( 240var arguments = generator.CreateArguments(property.Parameters); 283public static ImmutableArray<ISymbol> CreateFieldsForParameters( 284ImmutableArray<IParameterSymbol> parameters, ImmutableDictionary<string, string>? parameterToNewFieldMap, bool isContainedInUnsafeType) 305public static ImmutableArray<ISymbol> CreatePropertiesForParameters( 306ImmutableArray<IParameterSymbol> parameters, ImmutableDictionary<string, string>? parameterToNewPropertyMap, bool isContainedInUnsafeType) 335public static ImmutableArray<SyntaxNode> CreateAssignmentStatements( 339ImmutableArray<IParameterSymbol> parameters,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Formatting\FormatterShared.cs (4)
24public async Task<Document> FormatAsync(Document document, SyntaxAnnotation annotation, SyntaxFormattingOptions options, ImmutableArray<AbstractFormattingRule> rules, CancellationToken cancellationToken) 30public SyntaxNode Format(SyntaxNode node, SyntaxAnnotation annotation, SyntaxFormattingOptions options, ImmutableArray<AbstractFormattingRule> rules, CancellationToken cancellationToken) 33public SyntaxNode Format(SyntaxNode node, IEnumerable<TextSpan>? spans, SyntaxFormattingOptions options, ImmutableArray<AbstractFormattingRule> rules, CancellationToken cancellationToken) 36public IFormattingResult GetFormattingResult(SyntaxNode node, IEnumerable<TextSpan>? spans, SyntaxFormattingOptions options, ImmutableArray<AbstractFormattingRule> rules, CancellationToken cancellationToken)
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Helpers\MefHostServicesHelpers.cs (2)
16public static ImmutableArray<Assembly> LoadNearbyAssemblies(ImmutableArray<string> assemblyNames)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Indentation\AbstractIndentationService.cs (1)
52var formattingRules = ImmutableArray.Create(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\AddImports\AbstractAddImportsService.cs (9)
26protected abstract ImmutableArray<SyntaxNode> GetGlobalImports(SemanticModel semanticModel, SyntaxNode? contextLocation, SyntaxGenerator generator, CancellationToken cancellationToken); 57var globalImports = GetGlobalImports(semanticModel, contextLocation, generator, cancellationToken); 58var containers = GetAllContainers(root, contextLocation); 62private static ImmutableArray<SyntaxNode> GetAllContainers(SyntaxNode root, SyntaxNode? contextLocation) 71SyntaxNode import, ImmutableArray<SyntaxNode> containers, ImmutableArray<SyntaxNode> globalImports) 137var globalImports = GetGlobalImports(semanticModel, contextLocation, generator, cancellationToken); 138var containers = GetAllContainers(root, contextLocation); 165var contextSpine = applicableContainer.GetAncestorsOrThis<SyntaxNode>().ToImmutableArray();
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\SemanticsFactsService\AbstractSemanticFactsService.cs (4)
219public ImmutableArray<IMethodSymbol> GetDeconstructionAssignmentMethods(SemanticModel semanticModel, SyntaxNode node) 222public ImmutableArray<IMethodSymbol> GetDeconstructionForEachMethods(SemanticModel semanticModel, SyntaxNode node) 243public ImmutableArray<ISymbol> GetBestOrAllSymbols(SemanticModel semanticModel, SyntaxNode? node, SyntaxToken token, CancellationToken cancellationToken) 249public ImmutableArray<IMethodSymbol> GetLocalFunctionSymbols(Compilation compilation, ISymbol symbol, CancellationToken cancellationToken)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\SymbolDeclarationService\ISymbolDeclarationService.cs (1)
17ImmutableArray<SyntaxReference> GetDeclarations(ISymbol symbol);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\SyntaxFactsService\ISyntaxFactsService.cs (1)
18Task<ImmutableArray<SyntaxNode>> GetSelectedFieldsAndPropertiesAsync(SyntaxTree syntaxTree, TextSpan textSpan, bool allowPartialSelection, CancellationToken cancellationToken);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\TypeInferenceService\AbstractTypeInferenceService.cs (15)
15private static ImmutableArray<ITypeSymbol> InferTypeBasedOnNameIfEmpty( 16SemanticModel semanticModel, ImmutableArray<ITypeSymbol> result, string? nameOpt) 26private static ImmutableArray<TypeInferenceInfo> InferTypeBasedOnNameIfEmpty( 27SemanticModel semanticModel, ImmutableArray<TypeInferenceInfo> result, string? nameOpt) 31var types = InferTypeBasedOnName(semanticModel, nameOpt); 38private static readonly ImmutableArray<string> s_booleanPrefixes = 41private static ImmutableArray<ITypeSymbol> InferTypeBasedOnName( 79public ImmutableArray<ITypeSymbol> InferTypes( 83var result = CreateTypeInferrer(semanticModel, cancellationToken) 90public ImmutableArray<ITypeSymbol> InferTypes( 94var result = CreateTypeInferrer(semanticModel, cancellationToken) 101public ImmutableArray<TypeInferenceInfo> GetTypeInferenceInfo( 105var result = CreateTypeInferrer(semanticModel, cancellationToken).InferTypes(position); 109public ImmutableArray<TypeInferenceInfo> GetTypeInferenceInfo( 113var result = CreateTypeInferrer(semanticModel, cancellationToken).InferTypes(expression);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\TypeInferenceService\ITypeInferenceService.cs (4)
27ImmutableArray<ITypeSymbol> InferTypes(SemanticModel semanticModel, SyntaxNode expression, string? nameOpt, CancellationToken cancellationToken); 28ImmutableArray<ITypeSymbol> InferTypes(SemanticModel semanticModel, int position, string? nameOpt, CancellationToken cancellationToken); 30ImmutableArray<TypeInferenceInfo> GetTypeInferenceInfo(SemanticModel semanticModel, int position, string? nameOpt, CancellationToken cancellationToken); 31ImmutableArray<TypeInferenceInfo> GetTypeInferenceInfo(SemanticModel semanticModel, SyntaxNode expression, string? nameOpt, CancellationToken cancellationToken);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Options\MemberDisplayOptions.cs (1)
39public static readonly ImmutableArray<IOption2> EditorConfigOptions = [HideAdvancedMembers];
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\ISimplificationService.cs (2)
32ImmutableArray<TextSpan> spans, 34ImmutableArray<AbstractReducer> reducers = default,
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\LayeredServiceUtilities.cs (1)
19private static readonly ImmutableArray<string> s_orderedProductLayers = [ServiceLayer.Host, ServiceLayer.Editor, ServiceLayer.Desktop, ServiceLayer.Default];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefLanguageServices.cs (4)
15[assembly: DebuggerTypeProxy(typeof(MefLanguageServices.LazyServiceMetadataDebuggerProxy), Target = typeof(ImmutableArray<Lazy<ILanguageService, WorkspaceServiceMetadata>>))] 23private readonly ImmutableArray<(Lazy<ILanguageService, LanguageServiceMetadata> lazyService, bool usesFactory)> _services; 54ImmutableArray<IDisposable> disposableServices; 134internal sealed class LazyServiceMetadataDebuggerProxy(ImmutableArray<Lazy<ILanguageService, LanguageServiceMetadata>> services)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefWorkspaceServices.cs (9)
16[assembly: DebuggerTypeProxy(typeof(MefWorkspaceServices.LazyServiceMetadataDebuggerProxy), Target = typeof(ImmutableArray<Lazy<IWorkspaceService, WorkspaceServiceMetadata>>))] 24private readonly ImmutableArray<(Lazy<IWorkspaceService, WorkspaceServiceMetadata> lazyService, bool usesFactory)> _services; 37private ImmutableArray<string> _languages; 76ImmutableArray<IDisposable> disposableServices; 148private ImmutableArray<string> ComputeSupportedLanguages() 150var localLanguages = _languages; 153var list = HostExportProvider.GetExports<ILanguageService, LanguageServiceMetadata>().Select(lz => lz.Metadata.Language).Concat( 167internal ImmutableArray<string> SupportedLanguagesArray => ComputeSupportedLanguages(); 203internal sealed class LazyServiceMetadataDebuggerProxy(ImmutableArray<Lazy<IWorkspaceService, WorkspaceServiceMetadata>> services)
SymbolDeclaredEventMustBeGeneratedForSourceSymbols.cs (1)
43public sealed override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(SymbolDeclaredEventRule);
TemporaryArrayAsRefAnalyzer.cs (1)
34public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
TestExportsShouldNotBeDiscoverable.cs (1)
40public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
TestExportsShouldNotBeDiscoverableCodeFixProvider.cs (1)
30public override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(TestExportsShouldNotBeDiscoverable.Rule.Id);
Roslyn.Diagnostics.CSharp.Analyzers (164)
CSharpAvoidOptSuffixForNullableEnableCode.cs (1)
41public sealed override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
CSharpAvoidOptSuffixForNullableEnableCodeCodeFixProvider.cs (1)
26public override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(CSharpAvoidOptSuffixForNullableEnableCode.Rule.Id);
CSharpDoNotCapturePrimaryContructorParameters.cs (1)
28public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(Rule);
CSharpDoNotUseDebugAssertForInterpolatedStrings.cs (1)
31public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
CSharpDoNotUseDebugAssertForInterpolatedStringsFixer.cs (1)
27public override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(RoslynDiagnosticIds.DoNotUseInterpolatedStringsWithDebugAssertRuleId);
PreferNullLiteral.cs (1)
33public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);
PreferNullLiteralCodeFixProvider.cs (1)
28public override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(PreferNullLiteral.Rule.Id);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeStyle\CSharpCodeStyleOptions.cs (3)
18private static readonly ImmutableArray<IOption2>.Builder s_editorConfigOptionsBuilder = ImmutableArray.CreateBuilder<IOption2>(); 157private static readonly ImmutableArray<SyntaxKind> s_preferredModifierOrderDefault = 316internal static readonly ImmutableArray<IOption2> EditorConfigOptions = s_editorConfigOptionsBuilder.ToImmutable();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ArgumentSyntaxExtensions.cs (2)
53var symbols = symbolInfo.GetBestOrAllSymbols(); 60var parameters = symbol.GetParameters();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\AttributeArgumentSyntaxExtensions.cs (2)
39var symbols = semanticModel.GetSymbolInfo(invocableExpression, cancellationToken).GetBestOrAllSymbols(); 45var parameters = symbol.GetParameters();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\BlockSyntaxExtensions.cs (3)
66var leadingDirectives = statement.GetLeadingTrivia().WhereAsArray(IsAnyCodeDirective); 67var closeBraceLeadingDirectives = block.CloseBraceToken.LeadingTrivia.WhereAsArray(IsAnyCodeDirective); 82var conditionalDirectives = firstDirective.GetMatchingConditionalDirectives(cancellationToken);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\DirectiveSyntaxExtensions.cs (2)
50public static ImmutableArray<DirectiveTriviaSyntax> GetMatchingConditionalDirectives(this DirectiveTriviaSyntax directive, CancellationToken cancellationToken) 55if (directiveConditionalMap.TryGetValue(directive, out var result))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
950var typeArguments = tupleType.GetTypeArguments();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.cs (1)
17private static readonly ConditionalWeakTable<MemberDeclarationSyntax, Dictionary<string, ImmutableArray<SyntaxToken>>> s_declarationCache = new();
src\roslyn\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\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (5)
559var directives = ((DirectiveTriviaSyntax)structure).GetMatchingConditionalDirectives(cancellationToken); 644public static ImmutableArray<SyntaxTrivia> GetLeadingBlankLines<TSyntaxNode>(this TSyntaxNode node) where TSyntaxNode : SyntaxNode 650public static TSyntaxNode GetNodeWithoutLeadingBlankLines<TSyntaxNode>(this TSyntaxNode node, out ImmutableArray<SyntaxTrivia> strippedTrivia) where TSyntaxNode : SyntaxNode 653public static ImmutableArray<SyntaxTrivia> GetLeadingBannerAndPreprocessorDirectives<TSyntaxNode>(this TSyntaxNode node) where TSyntaxNode : SyntaxNode 659public static TSyntaxNode GetNodeWithoutLeadingBannerAndPreprocessorDirectives<TSyntaxNode>(this TSyntaxNode node, out ImmutableArray<SyntaxTrivia> strippedTrivia) where TSyntaxNode : SyntaxNode
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\CSharpFormattingOptions2.cs (3)
17private static readonly ImmutableArray<IOption2>.Builder s_editorConfigOptionsBuilder = ImmutableArray.CreateBuilder<IOption2>(); 282internal static readonly ImmutableArray<IOption2> EditorConfigOptions = s_editorConfigOptionsBuilder.ToImmutable(); 287internal static readonly ImmutableArray<IOption2> UndocumentedOptions = [CollectionExpressionWrappingLength];
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\CSharpFormatEngine.cs (1)
18ImmutableArray<AbstractFormattingRule> formattingRules,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Helpers\RemoveUnnecessaryImports\CSharpUnnecessaryImportsProvider.cs (2)
23public override ImmutableArray<UsingDirectiveSyntax> GetUnnecessaryImports( 30var diagnostics = model.GetDiagnostics(cancellationToken: cancellationToken);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Indentation\CSharpSmartTokenFormatter.cs (4)
24private readonly ImmutableArray<AbstractFormattingRule> _formattingRules; 31ImmutableArray<AbstractFormattingRule> formattingRules, 50var smartTokenformattingRules = _formattingRules; 105ImmutableArray<AbstractFormattingRule> smartTokenFormattingRules = [new SmartTokenFormattingRule(), .. _formattingRules];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SelectedMembers\CSharpSelectedMembers.cs (1)
28protected override ImmutableArray<(SyntaxNode declarator, SyntaxToken identifier)> GetDeclaratorsAndIdentifiers(MemberDeclarationSyntax member)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SemanticFacts\CSharpSemanticFacts.cs (8)
206public ImmutableArray<IMethodSymbol> GetDeconstructionAssignmentMethods(SemanticModel semanticModel, SyntaxNode node) 218public ImmutableArray<IMethodSymbol> GetDeconstructionForEachMethods(SemanticModel semanticModel, SyntaxNode node) 279public ImmutableArray<ISymbol> GetBestOrAllSymbols(SemanticModel semanticModel, SyntaxNode? node, SyntaxToken token, CancellationToken cancellationToken) 292static ImmutableArray<ISymbol> GetCallingConventionSymbols(SemanticModel model, FunctionPointerUnmanagedCallingConventionSyntax syntax) 305private ImmutableArray<ISymbol> GetSymbolInfo(SemanticModel semanticModel, SyntaxNode node, SyntaxToken token, CancellationToken cancellationToken) 355var symbols = GetOrderCandidates(); 392ImmutableArray<ISymbol> GetOrderCandidates() 434public ImmutableArray<IMethodSymbol> GetLocalFunctionSymbols(Compilation compilation, ISymbol symbol, CancellationToken cancellationToken)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
1286public ImmutableArray<SyntaxNode> GetMatchingConditionalDirectives(SyntaxNode directive, CancellationToken cancellationToken)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (4)
912Func<TConditionalOrSwitchExpression, ImmutableArray<ExpressionSyntax>> getArmExpressions, 1113var parameters = op.GetParameters(); 1623var originalParameters = originalMethodSymbol.Parameters; 1624var rewrittenParameters = rewrittenMethodSymbol.Parameters;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\CSharpLightweightOverloadResolution.cs (2)
18public IMethodSymbol? RefineOverload(SymbolInfo symbolInfo, ImmutableArray<IMethodSymbol> candidates) 21public (IMethodSymbol? method, int parameterIndex) RefineOverloadAndPickParameter(SymbolInfo symbolInfo, ImmutableArray<IMethodSymbol> candidates)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\SpeculationAnalyzer.cs (2)
588protected override ImmutableArray<ArgumentSyntax> GetArguments(ExpressionSyntax expression) 890out ImmutableArray<ILocalSymbol> localVariables)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\TypeStyle\CSharpUseImplicitTypeHelper.cs (1)
209var memberGroup = semanticModel.GetMemberGroup(invocationExpression.Expression, cancellationToken);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\UsingsAndExternAliasesOrganizer.cs (1)
127initialList[0] = initialList[0].GetNodeWithoutLeadingBannerAndPreprocessorDirectives(out var leadingTrivia);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeFixesAndRefactorings\CSharpFixAllSpanMappingService.cs (4)
24protected override async Task<ImmutableDictionary<Document, ImmutableArray<TextSpan>>> GetFixAllSpansIfWithinGlobalStatementAsync( 30return ImmutableDictionary<Document, ImmutableArray<TextSpan>>.Empty; 43return ImmutableDictionary<Document, ImmutableArray<TextSpan>>.Empty; 48return ImmutableDictionary<Document, ImmutableArray<TextSpan>>.Empty
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\AttributeGenerator.cs (1)
21ImmutableArray<AttributeData> attributes,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ConstructorGenerator.cs (3)
92var thisArguments = CodeGenerationConstructorInfo.GetThisConstructorArgumentsOpt(constructor); 94var arguments = !thisArguments.IsDefault ? thisArguments : CodeGenerationConstructorInfo.GetBaseConstructorArgumentsOpt(constructor); 104private static ArgumentListSyntax GenerateArgumentList(ImmutableArray<SyntaxNode> arguments)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (1)
551var newContainingStatement = containingStatement.GetNodeWithoutLeadingBannerAndPreprocessorDirectives(out var strippedTrivia);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\EventGenerator.cs (1)
150var attributes = @event.GetAttributes();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\MethodGenerator.cs (1)
124var parameters = method.Parameters.SelectAsArray(static (p, destination) => FilterAttributes(p, destination), destination);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\NamedTypeGenerator.cs (2)
84var members = GetMembers(namedType).WhereAsArray(s => s.Kind != SymbolKind.Property || PropertyGenerator.CanBeGenerated((IPropertySymbol)s)); 107ImmutableArray<ISymbol> members,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ParameterGenerator.cs (7)
20ImmutableArray<IParameterSymbol> parameterDefinitions, 24var parameters = GetParameters(parameterDefinitions, isExplicit, info); 30ImmutableArray<IParameterSymbol> parameterDefinitions, 36var parameters = GetParameters(parameterDefinitions, isExplicit, info); 41internal static ImmutableArray<ParameterSyntax> GetParameters( 42ImmutableArray<IParameterSymbol> parameterDefinitions, 121var attributes = parameter.GetAttributes();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\PropertyGenerator.cs (1)
149var attributes = property.GetAttributes();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\TypeParameterGenerator.cs (1)
19ImmutableArray<ITypeParameterSymbol> typeParameters, CSharpCodeGenerationContextInfo info)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Editing\CSharpImportAdder.cs (3)
44ImmutableArray<INamespaceSymbol> namespaceSymbols, 101ImmutableArray<INamespaceSymbol> namespaceSymbols) 108private void AddImportedMembers(ImmutableArray<INamespaceSymbol> namespaceSymbols)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
1034var symbols = semanticModelOpt.LookupName(nameToken, cancellationToken);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeParameterSymbolExtensions.cs (1)
19this ImmutableArray<ITypeParameterSymbol> typeParameters)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeSymbolExtensions.TypeSyntaxGeneratorVisitor.cs (1)
168var parameters = symbol.Signature.Parameters.Select(p => (p.Type, RefKindModifiers: CSharpSyntaxGeneratorInternal.GetParameterModifiers(p)))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\SemanticModelExtensions.cs (11)
35public static ImmutableArray<ParameterName> GenerateParameterNames( 44public static ImmutableArray<ParameterName> GenerateParameterNames( 53public static ImmutableArray<ParameterName> GenerateParameterNames( 62var isFixed = reservedNames.Select(s => true).Concat( 65var parameterNames = reservedNames.Concat( 71public static ImmutableArray<ParameterName> GenerateNames(IList<string> reservedNames, ImmutableArray<bool> isFixed, ImmutableArray<string> parameterNames) 76public static ImmutableArray<ParameterName> GenerateParameterNames( 85var isFixed = reservedNames.Select(s => true).Concat( 88var parameterNames = reservedNames.Concat(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\TypeSyntaxExtensions.cs (1)
44var symbols = semanticModelOpt.LookupName(nameToken, cancellationToken);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\WithElementSyntaxExtensions.cs (4)
17public static ImmutableArray<IMethodSymbol> GetCreationMethods( 31var result = TryGetInterfaceItems() ?? 37ImmutableArray<IMethodSymbol>? TryGetInterfaceItems() 62ImmutableArray<IMethodSymbol>? TryGetCollectionBuilderItems()
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Formatting\CSharpSyntaxFormattingService.cs (8)
73public ImmutableArray<TextChange> GetFormattingChangesOnTypedCharacter( 81var formattingRules = GetFormattingRules(document, caretPosition, token); 93var changes = FormatRange(document, indentationOptions, token, formattingRules, cancellationToken); 186ParsedDocument document, IndentationOptions options, SyntaxToken token, ImmutableArray<AbstractFormattingRule> formattingRules, CancellationToken cancellationToken) 192private static ImmutableArray<TextChange> FormatRange( 196ImmutableArray<AbstractFormattingRule> formattingRules, 322private ImmutableArray<AbstractFormattingRule> GetFormattingRules(ParsedDocument document, int position, SyntaxToken tokenBeforeCaret) 337public ImmutableArray<TextChange> GetFormattingChangesOnPaste(ParsedDocument document, TextSpan textSpan, SyntaxFormattingOptions options, CancellationToken cancellationToken)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpAddImportsService.cs (2)
34protected override ImmutableArray<SyntaxNode> GetGlobalImports( 40var importScopes = semanticModel.GetImportScopes(contextLocation?.SpanStart ?? 0, cancellationToken);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpSemanticFactsService.cs (1)
37var visibleSymbols = semanticModel.LookupSymbols(location.SpanStart);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpSymbolDeclarationService.cs (1)
18public ImmutableArray<SyntaxReference> GetDeclarations(ISymbol symbol)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpSyntaxFactsService.cs (1)
116public Task<ImmutableArray<SyntaxNode>> GetSelectedFieldsAndPropertiesAsync(SyntaxTree tree, TextSpan textSpan, bool allowPartialSelection, CancellationToken cancellationToken)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (38)
111var allSymbols = symbolInfo.GetAllSymbols(); 364var parentTypes = InferTypes(tupleExpression); 724ImmutableArray<ImmutableArray<IParameterSymbol>> parameterizedSymbols, 740ImmutableArray<ImmutableArray<IParameterSymbol>> parameterizedSymbols, 744using var _1 = ArrayBuilder<ImmutableArray<IParameterSymbol>>.GetInstance(out var parameterListsWithMatchingCount); 745using var _2 = ArrayBuilder<ImmutableArray<IParameterSymbol>>.GetInstance(out var parameterListsWithoutMatchingCount); 748foreach (var parameterList in parameterizedSymbols) 775ImmutableArray<ImmutableArray<IParameterSymbol>> parameterizedSymbols, 793foreach (var parameterSet in parameterizedSymbols) 837var outerTypes = InferTypes(arrayCreationExpression); 861var currentTypes = InferTypes(arrayType); 1022var parentTypes = InferTypes(binop); 1036var parentTypes = InferTypes(binop); 1338var variableTypes = GetTypes(forEachStatementSyntax.Type).ToImmutableArray(); 1389var addMethodSymbols = SemanticModel.GetCollectionInitializerSymbolInfo(initializerExpression).GetAllSymbols(); 1407var addMethodSymbols = SemanticModel.GetCollectionInitializerSymbolInfo(expressionOpt).GetAllSymbols(); 1442var arrayTypes = this.InferTypes(implicitArray); 1498var addMethodSymbols = SemanticModel.GetCollectionInitializerSymbolInfo(expressionOpt).GetAllSymbols(); 1660var elementTypes = elementTypesBuilder.ToImmutableAndFree(); 1670private static ImmutableArray<NullableAnnotation> GetNullableAnnotations(ImmutableArray<ITypeSymbol> elementTypes) 1695var types = InferTypes(anonymousFunction); 1719var types = InferTypes(anonymousObject); 1997var types = InferTypes(prefixUnaryExpression); 2043var types = InferTypes(awaitExpression); 2277var laterUsageInference = InferTypeBasedOnLaterUsage(symbol, variableDeclaration); 2285private ImmutableArray<TypeInferenceInfo> InferTypeBasedOnLaterUsage(ISymbol symbol, SyntaxNode afterNode) 2306var inferredDescendantTypes = InferTypes(descendant, filterUnusable: true); 2326var elementNames = parenthesizedVariableDesignation.Variables.SelectAsArray(v => ((SingleVariableDesignationSyntax)v).Identifier.ValueText); 2327var elementTypes = parenthesizedVariableDesignation.Variables.SelectAsArray(v => 2332var inferredFutureUsage = InferTypeBasedOnLaterUsage(symbol, afterNode: left.Parent); 2361if (!TryGetTupleTypesAndNames(tuple.Arguments, out var elementTypes, out var elementNames)) 2372out ImmutableArray<ITypeSymbol> elementTypes, 2373out ImmutableArray<string> elementNames)
Roslyn.Diagnostics.VisualBasic.Analyzers (51)
BasicInvokeTheCorrectPropertyToEnsureCorrectUseSiteDiagnostics.vb (1)
48Public Overrides ReadOnly Property SupportedDiagnostics As ImmutableArray(Of DiagnosticDescriptor)
src\45a5dce26ceffa63\VisualBasicUnnecessaryImportsProvider.vb (1)
27cancellationToken As CancellationToken) As ImmutableArray(Of ImportsClauseSyntax)
src\f736901a33c2b55b\VisualBasicTypeInferenceService.TypeInferrer.vb (1)
386parameterizedSymbols As IEnumerable(Of ImmutableArray(Of IParameterSymbol))) As IEnumerable(Of TypeInferenceInfo)
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\SyntaxNodeExtensions.vb (4)
439Public Function GetLeadingBlankLines(Of TSyntaxNode As SyntaxNode)(node As TSyntaxNode) As ImmutableArray(Of SyntaxTrivia) 449Public Function GetNodeWithoutLeadingBlankLines(Of TSyntaxNode As SyntaxNode)(node As TSyntaxNode, ByRef strippedTrivia As ImmutableArray(Of SyntaxTrivia)) As TSyntaxNode 454Public Function GetLeadingBannerAndPreprocessorDirectives(Of TSyntaxNode As SyntaxNode)(node As TSyntaxNode) As ImmutableArray(Of SyntaxTrivia) 464Public Function GetNodeWithoutLeadingBannerAndPreprocessorDirectives(Of TSyntaxNode As SyntaxNode)(node As TSyntaxNode, ByRef strippedTrivia As ImmutableArray(Of SyntaxTrivia)) As TSyntaxNode
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Formatting\Engine\VisualBasicFormatEngine.vb (1)
17formattingRules As ImmutableArray(Of AbstractFormattingRule),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Formatting\VisualBasicSyntaxFormatting.vb (3)
18Private ReadOnly _rules As ImmutableArray(Of AbstractFormattingRule) = ImmutableArray.Create(Of AbstractFormattingRule)( 26Public Overrides Function GetDefaultFormattingRules() As ImmutableArray(Of AbstractFormattingRule) 44Protected 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
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Indentation\VisualBasicSmartTokenFormatter.vb (2)
20Private ReadOnly _formattingRules As ImmutableArray(Of AbstractFormattingRule) 25formattingRules As ImmutableArray(Of AbstractFormattingRule),
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Services\SemanticFacts\VisualBasicSemanticFacts.vb (8)
210Public Function GetDeconstructionAssignmentMethods(model As SemanticModel, deconstruction As SyntaxNode) As ImmutableArray(Of IMethodSymbol) Implements ISemanticFacts.GetDeconstructionAssignmentMethods 211Return ImmutableArray(Of IMethodSymbol).Empty 214Public Function GetDeconstructionForEachMethods(model As SemanticModel, deconstruction As SyntaxNode) As ImmutableArray(Of IMethodSymbol) Implements ISemanticFacts.GetDeconstructionForEachMethods 215Return ImmutableArray(Of IMethodSymbol).Empty 263Public Function GetBestOrAllSymbols(semanticModel As SemanticModel, node As SyntaxNode, token As SyntaxToken, cancellationToken As CancellationToken) As ImmutableArray(Of ISymbol) Implements ISemanticFacts.GetBestOrAllSymbols 265Return ImmutableArray(Of ISymbol).Empty 278Public Function GetLocalFunctionSymbols(compilation As Compilation, symbol As ISymbol, cancellationToken As CancellationToken) As ImmutableArray(Of IMethodSymbol) Implements ISemanticFacts.GetLocalFunctionSymbols 279Return ImmutableArray(Of IMethodSymbol).Empty
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Services\SyntaxFacts\VisualBasicSyntaxFacts.vb (1)
1395Public Function GetMatchingConditionalDirectives(directive As SyntaxNode, cancellationToken As CancellationToken) As ImmutableArray(Of SyntaxNode) Implements ISyntaxFacts.GetMatchingConditionalDirectives
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Utilities\ImportsOrganizer.vb (1)
80Dim leadingTrivia As ImmutableArray(Of SyntaxTrivia) = Nothing
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeFixesAndRefactorings\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)
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\ParameterGenerator.vb (1)
13Public Shared Function GenerateParameterList(parameterDefinitions As ImmutableArray(Of IParameterSymbol), options As CodeGenerationContextInfo) As ParameterListSyntax
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\TypeParameterGenerator.vb (1)
10Public Shared Function GenerateTypeParameterList(typeParameters As ImmutableArray(Of ITypeParameterSymbol)) As TypeParameterListSyntax
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\VisualBasicCodeGenerationService.vb (1)
510Dim strippedTrivia As ImmutableArray(Of SyntaxTrivia) = Nothing
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Editing\VisualBasicImportAdder.vb (3)
40Protected Overrides Function AddPotentiallyConflictingImportsAsync(model As SemanticModel, container As SyntaxNode, namespaceSymbols As ImmutableArray(Of INamespaceSymbol), conflicts As HashSet(Of INamespaceSymbol), cancellationToken As CancellationToken) As Task 88namespaceSymbols As ImmutableArray(Of INamespaceSymbol)) 99Private Sub AddImportedMembers(namespaceSymbols As ImmutableArray(Of INamespaceSymbol))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\SemanticModelExtensions.vb (7)
20cancellationToken As CancellationToken) As ImmutableArray(Of ParameterName) 22Return ImmutableArray(Of ParameterName).Empty 34cancellationToken As CancellationToken) As ImmutableArray(Of ParameterName) 46cancellationToken As CancellationToken) As ImmutableArray(Of ParameterName) 48Return ImmutableArray(Of ParameterName).Empty 68cancellationToken As CancellationToken) As ImmutableArray(Of ParameterName) 70Return ImmutableArray(Of ParameterName).Empty
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\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
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\LanguageServices\VisualBasicAddImportsService.vb (1)
49CancellationToken As CancellationToken) As ImmutableArray(Of SyntaxNode)
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\LanguageServices\VisualBasicSyntaxFactsService.vb (1)
38Public Function GetSelectedFieldsAndPropertiesAsync(tree As SyntaxTree, textSpan As TextSpan, allowPartialSelection As Boolean, cancellationToken As CancellationToken) As Task(Of ImmutableArray(Of SyntaxNode)) Implements ISyntaxFactsService.GetSelectedFieldsAndPropertiesAsync
rzc (20)
DiscoverCommand.cs (1)
226var additionalTexts = RazorSourceGeneratorHost.CreateAdditionalTexts(inputFiles);
GenerateCommand.cs (1)
314var additionalTexts = RazorSourceGeneratorHost.CreateAdditionalTexts(inputFiles);
Json\JsonDataReader.cs (2)
173public ImmutableArray<T> ReadImmutableArray<T>(ReadValue<T> readElement) 190public ImmutableArray<T> ReadImmutableArrayOrEmpty<T>(string propertyName, ReadValue<T> readElement)
Json\JsonDataWriter.cs (3)
181public void WriteArray<T>(ImmutableArray<T> elements, WriteValue<T> writeElement) 195public void WriteArray<T>(string propertyName, ImmutableArray<T> elements, WriteValue<T> writeElement) 201public void WriteArrayIfNotDefaultOrEmpty<T>(string propertyName, ImmutableArray<T> elements, WriteValue<T> writeElement)
Json\ObjectReaders_TagHelpers.cs (11)
26var tagMatchingRules = reader.ReadImmutableArrayOrEmpty(nameof(TagHelperDescriptor.TagMatchingRules), ReadTagMatchingRule); 27var boundAttributes = reader.ReadImmutableArrayOrEmpty(nameof(TagHelperDescriptor.BoundAttributes), ReadBoundAttribute); 28var allowedChildTags = reader.ReadImmutableArrayOrEmpty(nameof(TagHelperDescriptor.AllowedChildTags), ReadAllowedChildTag); 31var diagnostics = reader.ReadImmutableArrayOrEmpty(nameof(TagHelperDescriptor.Diagnostics), ReadDiagnostic); 49var attributes = reader.ReadImmutableArrayOrEmpty(nameof(TagMatchingRuleDescriptor.Attributes), ReadRequiredAttribute); 51var diagnostics = reader.ReadImmutableArrayOrEmpty(nameof(TagMatchingRuleDescriptor.Diagnostics), ReadDiagnostic); 72var diagnostics = reader.ReadImmutableArrayOrEmpty(nameof(RequiredAttributeDescriptor.Diagnostics), ReadDiagnostic); 94var parameters = reader.ReadImmutableArrayOrEmpty(nameof(BoundAttributeDescriptor.Parameters), ReadBoundAttributeParameter); 96var diagnostics = reader.ReadImmutableArrayOrEmpty(nameof(BoundAttributeDescriptor.Diagnostics), ReadDiagnostic); 117var diagnostics = reader.ReadImmutableArrayOrEmpty(nameof(BoundAttributeParameterDescriptor.Diagnostics), ReadDiagnostic); 132var diagnostics = reader.ReadImmutableArrayOrEmpty(nameof(AllowedChildTagDescriptor.Diagnostics), ReadDiagnostic);
MetadataReaderExtensions.cs (1)
60var publicKeyOrToken = reader.GetBlobContent(publicKey);
RazorSourceGeneratorHost.cs (1)
78public static ImmutableArray<AdditionalText> CreateAdditionalTexts(IReadOnlyList<RazorInputFile> files)
Shared.Tests (11)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\TestTypesContext.GetJsonTypeInfo.g.cs (1)
288if (type == typeof(global::System.Collections.Immutable.ImmutableArray<int>))
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\TestTypesContext.ImmutableArrayInt32.g.cs (10)
15private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Immutable.ImmutableArray<int>>? _ImmutableArrayInt32; 21public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Immutable.ImmutableArray<int>> ImmutableArrayInt32 24get => _ImmutableArrayInt32 ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Immutable.ImmutableArray<int>>)Options.GetTypeInfo(typeof(global::System.Collections.Immutable.ImmutableArray<int>)); 27private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Immutable.ImmutableArray<int>> Create_ImmutableArrayInt32(global::System.Text.Json.JsonSerializerOptions options) 29if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Immutable.ImmutableArray<int>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Immutable.ImmutableArray<int>> jsonTypeInfo)) 31var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Immutable.ImmutableArray<int>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateImmutableEnumerableInfo<global::System.Collections.Immutable.ImmutableArray<int>, int>(options, info, createRangeFunc: global::System.Collections.Immutable.ImmutableArray.CreateRange); 47private void ImmutableArrayInt32SerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Immutable.ImmutableArray<int> value)
System.Collections.Immutable (326)
System\Collections\Frozen\FrozenDictionary.cs (2)
329public ImmutableArray<TKey> Keys => ImmutableCollectionsMarshal.AsImmutableArray(KeysCore); 351public 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_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}"/>. 43public static readonly ImmutableArray<T> Empty = new ImmutableArray<T>(new T[0]); 56/// Initializes a new instance of the <see cref="ImmutableArray{T}"/> struct 74public static bool operator ==(ImmutableArray<T> left, ImmutableArray<T> right) 86public static bool operator !=(ImmutableArray<T> left, ImmutableArray<T> right) 97public static bool operator ==(ImmutableArray<T>? left, ImmutableArray<T>? right) 108public static bool operator !=(ImmutableArray<T>? left, ImmutableArray<T>? right) 194ImmutableArray<T> self = this; 216ImmutableArray<T> self = this; 227ImmutableArray<T> self = this; 239ImmutableArray<T> self = this; 253ImmutableArray<T> self = this; 262public ImmutableArray<T>.Builder ToBuilder() 264ImmutableArray<T> self = this; 282ImmutableArray<T> self = this; 295ImmutableArray<T> self = this; 319public bool Equals(ImmutableArray<T> other) 325/// Initializes a new instance of the <see cref="ImmutableArray{T}"/> struct based on the contents 331/// <see cref="ImmutableArray{T}.As{TOther}"/> or <see cref="ImmutableArray{T}.CastArray{TOther}"/>method. 333public static ImmutableArray< 337> CastUp<TDerived>(ImmutableArray<TDerived> items) 344/// Initializes a new instance of the <see cref="ImmutableArray{T}"/> struct by casting the underlying 348public ImmutableArray< 372public ImmutableArray< 388ImmutableArray<T> self = this; 400ImmutableArray<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\ImmutableArray.cs (69)
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) 233/// Initializes a new instance of the <see cref="ImmutableArray{T}"/> struct. 243public static ImmutableArray<T> Create<T>(ImmutableArray<T> items, int start, int length) 264/// Initializes a new instance of the <see cref="ImmutableArray{T}"/> struct. 269/// This overload allows efficient creation of an <see cref="ImmutableArray{T}"/> based on an existing 270/// <see cref="ImmutableArray{T}"/>, where a mapping function needs to be applied to each element from 273public static ImmutableArray<TResult> CreateRange<TSource, TResult>(ImmutableArray<TSource> items, Func<TSource, TResult> selector) 294/// Initializes a new instance of the <see cref="ImmutableArray{T}"/> struct. 301/// This overload allows efficient creation of an <see cref="ImmutableArray{T}"/> based on a slice of an existing 302/// <see cref="ImmutableArray{T}"/>, where a mapping function needs to be applied to each element from the source array 305public static ImmutableArray<TResult> CreateRange<TSource, TResult>(ImmutableArray<TSource> items, int start, int length, Func<TSource, TResult> selector) 328/// Initializes a new instance of the <see cref="ImmutableArray{T}"/> struct. 334/// This overload allows efficient creation of an <see cref="ImmutableArray{T}"/> based on an existing 335/// <see cref="ImmutableArray{T}"/>, where a mapping function needs to be applied to each element from 338public static ImmutableArray<TResult> CreateRange<TSource, TArg, TResult>(ImmutableArray<TSource> items, Func<TSource, TArg, TResult> selector, TArg arg) 362/// Initializes a new instance of the <see cref="ImmutableArray{T}"/> struct. 370/// This overload allows efficient creation of an <see cref="ImmutableArray{T}"/> based on a slice of an existing 371/// <see cref="ImmutableArray{T}"/>, where a mapping function needs to be applied to each element from the source array 374public static ImmutableArray<TResult> CreateRange<TSource, TArg, TResult>(ImmutableArray<TSource> items, int start, int length, Func<TSource, TArg, TResult> selector, TArg arg) 400/// Initializes a new instance of the <see cref="ImmutableArray{T}.Builder"/> class. 404public static ImmutableArray<T>.Builder CreateBuilder<T>() 410/// Initializes a new instance of the <see cref="ImmutableArray{T}.Builder"/> class. 415public static ImmutableArray<T>.Builder CreateBuilder<T>(int initialCapacity) 417return new ImmutableArray<T>.Builder(initialCapacity); 426public static ImmutableArray<TSource> ToImmutableArray<TSource>(this IEnumerable<TSource> items) 428if (items is ImmutableArray<TSource>) 430return (ImmutableArray<TSource>)items; 441public static ImmutableArray<TSource> ToImmutableArray<TSource>(this ImmutableArray<TSource>.Builder builder) 449/// Searches an entire one-dimensional sorted <see cref="ImmutableArray{T}"/> for a specific element, 451/// of the <see cref="ImmutableArray{T}"/> and by the specified object. 469public static int BinarySearch<T>(this ImmutableArray<T> array, T value) 475/// Searches an entire one-dimensional sorted <see cref="ImmutableArray{T}"/> for a value using 499public static int BinarySearch<T>(this ImmutableArray<T> array, T value, IComparer<T>? comparer) 505/// Searches a range of elements in a one-dimensional sorted <see cref="ImmutableArray{T}"/> for 507/// each element of the <see cref="ImmutableArray{T}"/> and by the specified value. 533public static int BinarySearch<T>(this ImmutableArray<T> array, int index, int length, T value) 539/// Searches a range of elements in a one-dimensional sorted <see cref="ImmutableArray{T}"/> for 573public static int BinarySearch<T>(this ImmutableArray<T> array, int index, int length, T value, IComparer<T>? comparer)
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\Collections\Immutable\ImmutableInterlocked.cs (18)
123public static bool Update<T>(ref ImmutableArray<T> location, Func<ImmutableArray<T>, ImmutableArray<T>> transformer) 131ImmutableArray<T> newImmutableArray = transformer(new ImmutableArray<T>(oldArray)); 167public static bool Update<T, TArg>(ref ImmutableArray<T> location, Func<ImmutableArray<T>, TArg, ImmutableArray<T>> transformer, TArg transformerArgument) 178ImmutableArray<T> newImmutableArray = transformer(new ImmutableArray<T>(oldArray), transformerArgument); 203public static ImmutableArray<T> InterlockedExchange<T>(ref ImmutableArray<T> location, ImmutableArray<T> value) 217public static ImmutableArray<T> InterlockedCompareExchange<T>(ref ImmutableArray<T> location, ImmutableArray<T> value, ImmutableArray<T> comparand) 230public static bool InterlockedInitialize<T>(ref ImmutableArray<T> location, ImmutableArray<T> value) 232return InterlockedCompareExchange(ref location, value, default(ImmutableArray<T>)).IsDefault;
System\Linq\ImmutableArrayExtensions.cs (42)
12/// LINQ extension method overrides that offer greater efficiency for <see cref="ImmutableArray{T}"/> than the standard LINQ methods 25public static IEnumerable<TResult> Select<T, TResult>(this ImmutableArray<T> immutableArray, Func<T, TResult> selector) 53this ImmutableArray<TSource> immutableArray, 83public static IEnumerable<T> Where<T>(this ImmutableArray<T> immutableArray, Func<T, bool> predicate) 98public static bool Any<T>(this ImmutableArray<T> immutableArray) 110public static bool Any<T>(this ImmutableArray<T> immutableArray, Func<T, bool> predicate) 136public static bool All<T>(this ImmutableArray<T> immutableArray, Func<T, bool> predicate) 157public static bool SequenceEqual<TDerived, TBase>(this ImmutableArray<TBase> immutableArray, ImmutableArray<TDerived> items, IEqualityComparer<TBase>? comparer = null) where TDerived : TBase 189public static bool SequenceEqual<TDerived, TBase>(this ImmutableArray<TBase> immutableArray, IEnumerable<TDerived> items, IEqualityComparer<TBase>? comparer = null) where TDerived : TBase 199static bool Enumerate(ImmutableArray<TBase> immutableArray, IEnumerable<TDerived> items, IEqualityComparer<TBase>? comparer) 231public static bool SequenceEqual<TDerived, TBase>(this ImmutableArray<TBase> immutableArray, ImmutableArray<TDerived> items, Func<TBase, TBase, bool> predicate) where TDerived : TBase 262public static T? Aggregate<T>(this ImmutableArray<T> immutableArray, Func<T, T, T> func) 285public static TAccumulate Aggregate<TAccumulate, T>(this ImmutableArray<T> immutableArray, TAccumulate seed, Func<TAccumulate, T, TAccumulate> func) 308public static TResult Aggregate<TAccumulate, TResult, T>(this ImmutableArray<T> immutableArray, TAccumulate seed, Func<TAccumulate, T, TAccumulate> func, Func<TAccumulate, TResult> resultSelector) 319public static T ElementAt<T>(this ImmutableArray<T> immutableArray, int index) 328public static T? ElementAtOrDefault<T>(this ImmutableArray<T> immutableArray, int index) 342public static T First<T>(this ImmutableArray<T> immutableArray, Func<T, bool> predicate) 363public static T First<T>(this ImmutableArray<T> immutableArray) 378public static T? FirstOrDefault<T>(this ImmutableArray<T> immutableArray) 387public static T? FirstOrDefault<T>(this ImmutableArray<T> immutableArray, Func<T, bool> predicate) 407public static T Last<T>(this ImmutableArray<T> immutableArray) 420public static T Last<T>(this ImmutableArray<T> immutableArray, Func<T, bool> predicate) 441public static T? LastOrDefault<T>(this ImmutableArray<T> immutableArray) 451public static T? LastOrDefault<T>(this ImmutableArray<T> immutableArray, Func<T, bool> predicate) 471public static T Single<T>(this ImmutableArray<T> immutableArray) 483public static T Single<T>(this ImmutableArray<T> immutableArray, Func<T, bool> predicate) 516public static T? SingleOrDefault<T>(this ImmutableArray<T> immutableArray) 526public static T? SingleOrDefault<T>(this ImmutableArray<T> immutableArray, Func<T, bool> predicate) 557public static Dictionary<TKey, T> ToDictionary<TKey, T>(this ImmutableArray<T> immutableArray, Func<T, TKey> keySelector) where TKey : notnull 572public static Dictionary<TKey, TElement> ToDictionary<TKey, TElement, T>(this ImmutableArray<T> immutableArray, Func<T, TKey> keySelector, Func<T, TElement> elementSelector) where TKey : notnull 586public static Dictionary<TKey, T> ToDictionary<TKey, T>(this ImmutableArray<T> immutableArray, Func<T, TKey> keySelector, IEqualityComparer<TKey>? comparer) where TKey : notnull 610public 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 630public static T[] ToArray<T>(this ImmutableArray<T> immutableArray) 635return ImmutableArray<T>.Empty.array!; 649public static T First<T>(this ImmutableArray<T>.Builder builder) 664public static T? FirstOrDefault<T>(this ImmutableArray<T>.Builder builder) 675public static T Last<T>(this ImmutableArray<T>.Builder builder) 690public static T? LastOrDefault<T>(this ImmutableArray<T>.Builder builder) 700public static bool Any<T>(this ImmutableArray<T>.Builder builder) 711this ImmutableArray<TSource> immutableArray,
System\Runtime.InteropServices\ImmutableCollectionsMarshal.cs (18)
15/// Gets an <see cref="ImmutableArray{T}"/> value wrapping the input <typeparamref name="T"/> array. 18/// <param name="array">The input array to wrap in the returned <see cref="ImmutableArray{T}"/> value.</param> 19/// <returns>An <see cref="ImmutableArray{T}"/> value wrapping <paramref name="array"/>.</returns> 23/// array, and that it won't be modified once the returned <see cref="ImmutableArray{T}"/> value starts being 25/// <see cref="ImmutableArray{T}"/> values to change after its creation. 28/// If <paramref name="array"/> is <see langword="null"/>, the returned <see cref="ImmutableArray{T}"/> value 29/// will be uninitialized (ie. its <see cref="ImmutableArray{T}.IsDefault"/> property will be <see langword="true"/>). 32public static ImmutableArray<T> AsImmutableArray<T>(T[]? array) 38/// Gets the underlying <typeparamref name="T"/> array for an input <see cref="ImmutableArray{T}"/> value. 40/// <typeparam name="T">The type of elements in the input <see cref="ImmutableArray{T}"/> value.</typeparam> 41/// <param name="array">The input <see cref="ImmutableArray{T}"/> value to get the underlying <typeparamref name="T"/> array from.</param> 47/// don't expect the contents of the <see cref="ImmutableArray{T}"/> value to change. 50/// If <paramref name="array"/> is uninitialized (ie. its <see cref="ImmutableArray{T}.IsDefault"/> property is 54public static T[]? AsArray<T>(ImmutableArray<T> array) 60/// Gets a <see cref="Memory{T}"/> for the <typeparamref name="T"/> array underlying an input <see cref="ImmutableArray{T}.Builder"/>. 62/// <typeparam name="T">The type of elements in the input <see cref="ImmutableArray{T}.Builder"/> value.</typeparam> 66/// the input <see cref="ImmutableArray{T}.Builder"/>. 68public static Memory<T> AsMemory<T>(ImmutableArray<T>.Builder? builder)
System.Formats.Nrbf (1)
System\Formats\Nrbf\SerializationRecord.cs (1)
123ImmutableArray<TypeName> genericNames = typeName.GetGenericArguments();
System.Private.CoreLib.Generators (3)
IntrinsicsInSystemPrivateCoreLibAnalyzer.cs (1)
48public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get { return ImmutableArray.Create(Rule, RuleHelper, RuleCantParse, RuleAttributeNotSpecificEnough); } }
NativeRuntimeEventSourceGenerator.cs (2)
24IncrementalValuesProvider<(AdditionalText Left, System.Collections.Immutable.ImmutableArray<AdditionalText> Right)> combined = manifestFiles.Combine(inclusionFiles.Collect()); 29System.Collections.Immutable.ImmutableArray<AdditionalText> inclusionFiles = tuple.Right;
System.Private.Windows.Core (3)
System\TypeExtensions.cs (3)
70ImmutableArray<TypeName> genericNames = typeName.GetGenericArguments(); 130ImmutableArray<TypeName> genericNamesY = y.GetGenericArguments(); 131ImmutableArray<TypeName> genericNamesX = x.GetGenericArguments();
System.Private.Windows.Core.TestUtilities (6)
XUnit\TestData.cs (6)
18public static ImmutableArray<T> GetFloatingPointData<T>() 25public static ImmutableArray<T> GetIntegerData<T>() 32public static ImmutableArray<T> GetPositiveIntegerData<T>() 39public static ImmutableArray<T> Data { get; } = 57public static ImmutableArray<T> Data { get; } 80public static ImmutableArray<T> Data { get; } =
System.Reflection.Metadata (203)
System\Reflection\Internal\MemoryBlocks\AbstractMemoryBlock.cs (2)
41public virtual unsafe ImmutableArray<byte> GetContentUnchecked(int start, int length) 43var 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\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) 746public void WriteBytes(ImmutableArray<byte> buffer) 759public 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)
95public ImmutableArray<byte> ToImmutableArray() 101public ImmutableArray<byte> ToImmutableArray(int start, int byteCount) 189public void WriteBytes(ImmutableArray<byte> buffer) 201public 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) 1267/// Dimension lower bounds, or <c>default(<see cref="ImmutableArray{Int32}"/>)</c> to set all <paramref name="rank"/> lower bounds to 0. 1276public void Shape(int rank, ImmutableArray<int> sizes, ImmutableArray<int> lowerBounds)
System\Reflection\Metadata\Ecma335\MetadataAggregator.cs (13)
15private readonly ImmutableArray<ImmutableArray<int>> _heapSizes; 17private readonly ImmutableArray<ImmutableArray<RowCounts>> _rowCounts; 134private static ImmutableArray<ImmutableArray<int>> CalculateHeapSizes( 167private static ImmutableArray<ImmutableArray<RowCounts>> CalculateRowCounts( 182private static ImmutableArray<ImmutableArray<T>> ToImmutable<T>(T[][] array) 184var immutable = new ImmutableArray<T>[array.Length]; 264var sizes = _heapSizes[(int)heapIndex]; 300var 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)
120_blobs.GetOrAdd(ReadOnlySpan<byte>.Empty, ImmutableArray<byte>.Empty, default, out _); 177internal static int SerializeHandle(ImmutableArray<int> map, StringHandle handle) => map[handle.GetWriterVirtualIndex()]; 219private BlobHandle GetOrAddBlob(ReadOnlySpan<byte> value, ImmutableArray<byte> immutableValue = default) 237public BlobHandle GetOrAddBlob(ImmutableArray<byte> value) 533private static ImmutableArray<int> SerializeStringHeap( 628var 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)
21internal static readonly ImmutableArray<int> EmptyRowCounts = ImmutableArray.Create(new int[MetadataTokens.TableCount]);
System\Reflection\Metadata\Ecma335\MetadataSizes.cs (7)
82public ImmutableArray<int> HeapSizes { get; } 87public ImmutableArray<int> RowCounts { get; } 92public ImmutableArray<int> ExternalRowCounts { get; } 122ImmutableArray<int> rowCounts, 123ImmutableArray<int> externalRowCounts, 124ImmutableArray<int> heapSizes, 450private static ulong ComputeNonEmptyTableMask(ImmutableArray<int> rowCounts)
System\Reflection\Metadata\Ecma335\PortablePdbBuilder.cs (2)
50ImmutableArray<int> typeSystemRowCounts, 70private 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)
405public ImmutableArray<NamespaceDefinitionHandle>.Builder? Namespaces; 406public ImmutableArray<TypeDefinitionHandle>.Builder? TypeDefinitions; 407public ImmutableArray<ExportedTypeHandle>.Builder? ExportedTypes; 432var namespaces = Namespaces!.ToImmutable(); 435var typeDefinitions = TypeDefinitions!.ToImmutable(); 438var 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) 1438var groupedNestedTypes = new Dictionary<TypeDefinitionHandle, ImmutableArray<TypeDefinitionHandle>.Builder>(); 1441ImmutableArray<TypeDefinitionHandle>.Builder? builder = null; 1468var nestedTypesMap = new Dictionary<TypeDefinitionHandle, ImmutableArray<TypeDefinitionHandle>>(); 1480internal ImmutableArray<TypeDefinitionHandle> GetNestedTypes(TypeDefinitionHandle typeDef) 1488ImmutableArray<TypeDefinitionHandle> nestedTypes; 1494return ImmutableArray<TypeDefinitionHandle>.Empty;
System\Reflection\Metadata\MetadataReader.netstandard.cs (1)
53ImmutableArray<byte> publicKeyOrToken = !publicKeyOrTokenHandle.IsNil ? GetBlobContent(publicKeyOrTokenHandle) : default;
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, 576ImmutableArray<TypeName> GetGenericArguments() => _genericArguments; 612genericTypeArguments: ImmutableArray<TypeName>.Empty, 666public TypeName MakeGenericTypeName(ImmutableArray<TypeName> typeArguments) 682genericTypeArguments: ImmutableArray<TypeName>.Empty,
System\Reflection\Metadata\TypeNameParser.cs (1)
92ImmutableArray<TypeName>.Builder? genericArgs = null;
System\Reflection\Metadata\TypeSystem\EventDefinition.cs (3)
69ImmutableArray<MethodDefinitionHandle>.Builder? other = null; 98var 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)
49public 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)
80ImmutableArray<MethodDefinitionHandle>.Builder? other = null; 105var otherAccessors = other?.ToImmutable() ?? ImmutableArray<MethodDefinitionHandle>.Empty;
System\Reflection\Metadata\TypeSystem\StandaloneSignature.cs (1)
42public ImmutableArray<TType> DecodeLocalSignature<TType, TGenericContext>(ISignatureTypeProvider<TType, TGenericContext> provider, TGenericContext genericContext)
System\Reflection\Metadata\TypeSystem\TypeDefinition.cs (1)
189public 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)
19private readonly Lazy<ImmutableArray<Section>> _lazySections; 72_lazySections = new Lazy<ImmutableArray<Section>>(CreateSections); 75protected ImmutableArray<Section> GetSections() 77var sections = _lazySections.Value; 86protected abstract ImmutableArray<Section> CreateSections(); 96var serializedSections = SerializeSections(); 124private ImmutableArray<SerializedSection> SerializeSections() 126var sections = GetSections(); 186private void WriteCoffHeader(BlobBuilder builder, ImmutableArray<SerializedSection> sections, out Blob stampFixup) 216private void WritePEHeader(BlobBuilder builder, PEDirectoriesBuilder directories, ImmutableArray<SerializedSection> sections) 338private static void WriteSectionHeaders(BlobBuilder builder, ImmutableArray<SerializedSection> serializedSections) 385private static int IndexOfSection(ImmutableArray<SerializedSection> sections, SectionCharacteristics characteristics) 398private static int SumRawDataSizes(ImmutableArray<SerializedSection> sections, SectionCharacteristics characteristics)
System\Reflection\PortableExecutable\PEHeaders.cs (3)
20private readonly ImmutableArray<SectionHeader> _sectionHeaders; 191public ImmutableArray<SectionHeader> SectionHeaders 306private ImmutableArray<SectionHeader> ReadSectionHeaders(ref PEBinaryReader reader, int size)
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)
231public PEReader(ImmutableArray<byte> peImage) 535public ImmutableArray<DebugDirectoryEntry> ReadDebugDirectory() 542return ImmutableArray<DebugDirectoryEntry>.Empty; 562internal static ImmutableArray<DebugDirectoryEntry> ReadDebugDirectoryEntries(BlobReader reader) 735var 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 (24)
Helpers\KnownTypeSymbols.cs (1)
85public INamedTypeSymbol? ImmutableArrayType => GetOrResolveType(typeof(ImmutableArray<>), ref _ImmutableArrayType);
Helpers\RoslynExtensions.cs (5)
71ImmutableArray<ITypeSymbol> erasedElements = namedType.TupleElements 84ImmutableArray<ITypeSymbol> typeArguments = namedType.TypeArguments; 318ImmutableArray<ITypeSymbol> patternArgs = patternNamed.TypeArguments; 319ImmutableArray<ITypeSymbol> targetArgs = targetNamed.TypeArguments; 370ImmutableArray<ITypeSymbol> args = named.TypeArguments;
JsonSourceGenerator.Parser.cs (11)
1042ImmutableArray<KeyValuePair<string, TypedConstant>> namedArgs = attributeData.NamedArguments; 1386ImmutableArray<ITypeSymbol> constructedBaseArgs = constructedBase.TypeArguments; 1418ImmutableArray<ITypeSymbol> matchingBaseArgs = matchingBase.TypeArguments; 2085ImmutableArray<ITypeSymbol> genericArgs = ((INamedTypeSymbol)type).TypeArguments; 2209ImmutableArray<ISymbol> members = currentType.GetMembers(); 2652ImmutableArray<KeyValuePair<string, TypedConstant>> namedArgs = attributeData.NamedArguments; 2672ImmutableArray<TypedConstant> ctorArgs = attributeData.ConstructorArguments; 2678ImmutableArray<TypedConstant> ctorArgs = attributeData.ConstructorArguments; 2684ImmutableArray<TypedConstant> ctorArgs = attributeData.ConstructorArguments; 2691ImmutableArray<TypedConstant> ctorArgs = attributeData.ConstructorArguments; 3070private static INamedTypeSymbol? ConstructNestedGenericType(INamedTypeSymbol unboundType, ImmutableArray<ITypeSymbol> typeArguments)
JsonSourceGenerator.Roslyn4.0.cs (5)
34IncrementalValuesProvider<(ContextGenerationSpec?, ImmutableArray<Diagnostic>)> contextGenerationSpecs = context.SyntaxProvider 56ImmutableArray<Diagnostic> diagnostics = parser.Diagnostics.ToImmutableArray(); 87IncrementalValuesProvider<ImmutableArray<Diagnostic>> diagnostics = 120private static void EmitDiagnostics(SourceProductionContext context, ImmutableArray<Diagnostic> diagnostics) 131public Action<ImmutableArray<ContextGenerationSpec>>? OnSourceEmitting { get; init; }
src\runtime\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 (26)
RegexGenerator.cs (12)
54IncrementalValueProvider<(ImmutableArray<object> Results, ImmutableArray<Diagnostic> Diagnostics)> collected = 130ImmutableArray<Diagnostic>.Builder? diagnostics = null; 131ImmutableArray<object>.Builder? filteredResults = null; 152Results: filteredResults?.ToImmutable() ?? ImmutableArray<object>.Empty, 153Diagnostics: diagnostics?.ToImmutable() ?? ImmutableArray<Diagnostic>.Empty); 160IncrementalValueProvider<ImmutableArray<object>> sourceModel = 322IncrementalValueProvider<ImmutableArray<Diagnostic>> diagnosticResults = 393private sealed class ObjectImmutableArraySequenceEqualityComparer : IEqualityComparer<ImmutableArray<object>> 395public bool Equals(ImmutableArray<object> left, ImmutableArray<object> right) 417public int GetHashCode([DisallowNull] ImmutableArray<object> obj)
RegexGenerator.Parser.cs (2)
62ImmutableArray<AttributeData> boundAttributes = context.Attributes; 74ImmutableArray<TypedConstant> items = generatedRegexAttr.ConstructorArguments;
src\runtime\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 (2)
53public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(DiagnosticDescriptors.UseRegexSourceGeneration); 90internal static bool ValidateParameters(ImmutableArray<IArgumentOperation> arguments)
UpgradeToGeneratedRegexCodeFixer.cs (8)
37public override ImmutableArray<string> FixableDiagnosticIds => [DiagnosticDescriptors.UseRegexSourceGeneration.Id]; 154ImmutableArray<IArgumentOperation> operationArguments; 231ImmutableArray<IArgumentOperation> operationArguments = 276ImmutableArray<IArgumentOperation> operationArguments = 290ImmutableArray<IArgumentOperation> operationArguments, 379private static string? GetRegexPatternFromArgument(ImmutableArray<IArgumentOperation> arguments) => 384private static RegexOptions GetRegexOptionsFromArgument(ImmutableArray<IArgumentOperation> arguments) 396private static SyntaxNode? GeneratePatternOrOptionsArgumentNode(ImmutableArray<IArgumentOperation> arguments, SyntaxGenerator generator, string parameterName)
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 (5)
System\Windows\Forms\CSharp\Analyzers\AvoidPassingTaskWithoutCancellationToken\AvoidPassingTaskWithoutCancellationTokenAnalyzer.cs (1)
20public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics
System\Windows\Forms\CSharp\Analyzers\ImplementITypedDataObject\ImplementITypedDataObjectAnalyzer.cs (2)
18public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => 51var allInterfaces = classSymbol.AllInterfaces;
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 (3)
Analyzers\AvoidPassingTaskWithoutCancellationToken\AvoidPassingTaskWithoutCancellationTokenAnalyzer.vb (1)
20Public Overrides ReadOnly Property SupportedDiagnostics As ImmutableArray(Of DiagnosticDescriptor)
Analyzers\ImplementITypedDataObject\ImplementITypedDataObjectInAdditionToIDataObjectAnalyzer.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()
VBCSCompiler (17)
src\roslyn\src\Compilers\Server\VBCSCompiler\CompilationCacheUtilities.cs (3)
32ImmutableArray<DiagnosticAnalyzer> analyzers, 33ImmutableArray<ISourceGenerator> generators, 34ImmutableArray<AdditionalText> additionalTexts,
src\roslyn\src\Compilers\Server\VBCSCompiler\CSharpCompilerServer.cs (6)
41ImmutableArray<DiagnosticAnalyzer> analyzers, 42ImmutableArray<ISourceGenerator> generators, 43ImmutableArray<AdditionalText> additionalTexts, 54ImmutableArray<DiagnosticAnalyzer> analyzers, 55ImmutableArray<ISourceGenerator> generators, 56ImmutableArray<AdditionalText> additionalTexts,
src\roslyn\src\Compilers\Server\VBCSCompiler\MetadataCache.cs (2)
37private ImmutableArray<ModuleMetadata> GetAllModules(ModuleMetadata manifestModule, string assemblyDir) 79var allModules = GetAllModules(primaryModule, Path.GetDirectoryName(fullPath)!);
src\roslyn\src\Compilers\Server\VBCSCompiler\VisualBasicCompilerServer.cs (6)
41ImmutableArray<DiagnosticAnalyzer> analyzers, 42ImmutableArray<ISourceGenerator> generators, 43ImmutableArray<AdditionalText> additionalTexts, 54ImmutableArray<DiagnosticAnalyzer> analyzers, 55ImmutableArray<ISourceGenerator> generators, 56ImmutableArray<AdditionalText> additionalTexts,