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