10 references to SelectAsArray
Microsoft.CodeAnalysis.Workspaces (10)
CodeFixes\FixAllOccurrences\BatchFixAllProvider.cs (1)
71
currentSolution = await ApplyChangesAsync(currentSolution, group.
SelectAsArray
(kvp => (kvp.Key, kvp.Value)), cancellationToken).ConfigureAwait(false);
CodeFixesAndRefactorings\DefaultFixAllProviderHelpers.cs (1)
88
sortedProjects.
SelectAsArray
(p => (TFixAllContext)fixAllContext.With((document: null, project: p), scope: FixAllScope.Project)));
FindSymbols\FindReferences\DependentTypeFinder_Remote.cs (1)
31
var projectIds = projects?.Where(p => RemoteSupportedLanguages.IsSupported(p.Language)).
SelectAsArray
(p => p.Id) ?? default;
Options\SolutionOptionSet.cs (2)
81
var internallyDefined = _changedOptionKeys.Where(key => key.Option is IOption2).
SelectAsArray
(key => KeyValuePairUtil.Create(new OptionKey2((IOption2)key.Option, key.Language), _values[key]));
82
var externallyDefined = _changedOptionKeys.Where(key => key.Option is not IOption2).
SelectAsArray
(key => KeyValuePairUtil.Create(key, _values[key]));
Recommendations\AbstractRecommendationService.cs (2)
149
.
SelectAsArray
(t => t.OriginalDefinition);
162
: enclosingType.GetBaseTypes().
SelectAsArray
(b => b.OriginalDefinition);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\ChainedFormattingRules.cs (1)
36
_formattingRules = formattingRules.
SelectAsArray
(rule => rule.WithOptions(options));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (1)
318
=> modifierListElement.Elements(nameof(ModifierKind)).
SelectAsArray
(ModifierKind.FromXElement);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PathMetadataUtilities.cs (1)
28
var parts = folders.SelectMany(folder => folder.Split(NamespaceSeparatorArray)).
SelectAsArray
(syntaxFacts.EscapeIdentifier);