23 references to SelectAsArray
Microsoft.CodeAnalysis.Workspaces (23)
FindSymbols\FindReferences\Finders\PropertySymbolReferenceFinder.cs (1)
84
var containingTypeSyntaxes = containingType.DeclaringSyntaxReferences.
SelectAsArray
(r => r.GetSyntax(cancellationToken));
Shared\Extensions\SemanticModelExtensions.cs (1)
128
.
SelectAsArray
(s => MapSymbol(s, type));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\EditorConfigFile.cs (2)
23
private readonly Lazy<ImmutableArray<Section>> _sections = new(() => Options.
SelectAsArray
(x => x.Section).Distinct());
82
.
SelectAsArray
(section => (matchKind: section.GetMatchKind(filePath), section))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\INamedTypeSymbolExtensions.cs (1)
352
return typesToImplement.
SelectAsArray
(s => (s, members: GetUnimplementedMembers(classOrStructType, s, isImplemented, isValidImplementation, interfaceMemberGetter, cancellationToken)))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.AnonymousTypeSymbolKey.cs (4)
23
var propertyTypes = properties.
SelectAsArray
(p => p.Type);
24
var propertyNames = properties.
SelectAsArray
(p => p.Name);
25
var propertyIsReadOnly = properties.
SelectAsArray
(p => p.SetMethod == null);
26
var propertyLocations = properties.
SelectAsArray
(p => p.Locations.FirstOrDefault());
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\INamedTypeSymbolExtensions.cs (1)
33
namedType.GetTypeMembers().
SelectAsArray
(t => t.ToCodeGenerationSymbol()),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAbstractMethodSymbol.cs (1)
64
public ImmutableArray<NullableAnnotation> TypeArgumentNullableAnnotations => TypeArguments.
SelectAsArray
(a => a.NullableAnnotation);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationConstructedNamedTypeSymbol.cs (1)
33
public override ImmutableArray<NullableAnnotation> TypeArgumentNullableAnnotations => _typeArguments.
SelectAsArray
(t => t.NullableAnnotation);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationNamedTypeSymbol.cs (1)
140
return this.TypeParameters.
SelectAsArray
(t => NullableAnnotation.NotAnnotated);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IMethodSymbolExtensions.cs (3)
26
method.Parameters.
SelectAsArray
(p => p.Name), isCaseSensitive: syntaxFacts.IsCaseSensitive);
38
method.TypeParameters.
SelectAsArray
(tp => tp.Name),
72
method.Parameters.
SelectAsArray
(p =>
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions.cs (1)
63
return parameters.
SelectAsArray
(p => CreateArgument(factory, p));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateEqualsMethod.cs (3)
44
statements = statements.
SelectAsArray
(s => s.WithAdditionalAnnotations(statementAnnotation));
75
statements = statements.
SelectAsArray
(s => s.WithAdditionalAnnotations(statementAnnotation));
477
addNullChecks, preferThrowExpression).
SelectAsArray
(
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\TypeInferenceService\AbstractTypeInferenceService.cs (1)
34
return types.
SelectAsArray
(t => new TypeInferenceInfo(t));
Workspace\CommandLineProject.cs (1)
140
analyzerConfigDocuments: CreateDocuments(commandLineArguments.AnalyzerConfigPaths.
SelectAsArray
(p => new CommandLineSourceFile(p, isScript: false))),
Workspace\ProjectSystem\ProjectSystemProject.cs (1)
1150
private static readonly ImmutableArray<string> s_razorSourceGeneratorAssemblyRootedFileNames = s_razorSourceGeneratorAssemblyNames.
SelectAsArray
(