27 references to CastArray
Microsoft.CodeAnalysis (1)
PEWriter\MethodDefinitionBase.cs (1)
115public ImmutableArray<IParameterTypeInformation> GetParameters(EmitContext context) => Parameters.CastArray<IParameterTypeInformation>();
Microsoft.CodeAnalysis.CSharp (6)
BoundTree\BoundNode.cs (1)
368ImmutableArray<BoundNode>.CastUp(collection.Elements.CastArray<BoundExpression>()) == collection.Elements);
FlowAnalysis\NullableWalker.cs (1)
7078elements = ((BoundCollectionExpression)((BoundConversion)argument).Operand).UnconvertedCollectionExpression.Elements.CastArray<BoundExpression>();
Symbols\NamedTypeSymbol.cs (2)
1706=> GetMembers().CastArray<ISymbolInternal>(); 1709=> GetMembers(name).CastArray<ISymbolInternal>();
Symbols\Synthesized\SynthesizedEmbeddedAttributeSymbol.cs (2)
143public override ImmutableArray<Symbol> GetMembers() => Constructors.CastArray<Symbol>(); 145public override ImmutableArray<Symbol> GetMembers(string name) => name == WellKnownMemberNames.InstanceConstructorName ? Constructors.CastArray<Symbol>() : ImmutableArray<Symbol>.Empty;
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
1365=> ((DirectiveTriviaSyntax)directive).GetMatchingConditionalDirectives(cancellationToken).CastArray<SyntaxNode>();
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (2)
Diagnostics\DiagnosticAnalyzerDriver\DiagnosticAnalyzerDriverTests.cs (2)
754var vsixAnalyzerReferences = new List<DiagnosticAnalyzer>(vsixAnalyzers.CastArray<DiagnosticAnalyzer>()); 755vsixAnalyzerReferences.AddRange(vsixSuppressors.CastArray<DiagnosticAnalyzer>());
Microsoft.CodeAnalysis.CSharp.Features (4)
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.CallSiteContainerRewriter.cs (1)
288var statements = _statementsOrMemberOrAccessorToInsert.CastArray<StatementSyntax>();
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.cs (2)
87return status.With(statements.CastArray<SyntaxNode>()); 106statements: statements.CastArray<SyntaxNode>(),
ExtractMethod\CSharpSelectionResult.cs (1)
137=> exitPoints.OfType<ReturnStatementSyntax>().ToImmutableArray().CastArray<StatementSyntax>();
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
1365=> ((DirectiveTriviaSyntax)directive).GetMatchingConditionalDirectives(cancellationToken).CastArray<SyntaxNode>();
Microsoft.CodeAnalysis.Features (1)
GoToBase\FindBaseHelpers.cs (1)
23var result = BaseTypeFinder.FindBaseTypesAndInterfaces(namedTypeSymbol).CastArray<ISymbol>();
Microsoft.CodeAnalysis.VisualBasic (2)
Symbols\NamedTypeSymbol.vb (2)
1348Return GetMembers().CastArray(Of ISymbolInternal) 1352Return GetMembers(name).CastArray(Of ISymbolInternal)
Microsoft.CodeAnalysis.VisualBasic.Features (2)
ExtractMethod\VisualBasicMethodExtractor.VisualBasicCodeGenerator.vb (2)
88statements:=statements.CastArray(Of SyntaxNode)) 197Return status.With(statements.CastArray(Of SyntaxNode))
Microsoft.CodeAnalysis.Workspaces (5)
FindSymbols\FindReferences\Finders\EventSymbolReferenceFinder.cs (1)
33.CastArray<ISymbol>();
Workspace\Solution\ProjectState.cs (4)
1000oldDocuments.CastArray<TextDocumentState>(), 1001newDocuments.CastArray<TextDocumentState>(), 1025oldDocuments.CastArray<TextDocumentState>(), 1026newDocuments.CastArray<TextDocumentState>(),
Microsoft.Interop.SourceGeneration (1)
TypeSymbolExtensions.cs (1)
291currentType.TypeParameters.CastArray<ITypeSymbol>().CopyTo(currentType.TypeParameters.Length - numArgumentsToPropogate, arguments, numArgumentsToCopy, numArgumentsToPropogate);
System.Collections.Immutable (1)
System\Collections\Immutable\ImmutableArray_1.Minimal.cs (1)
332/// <see cref="ImmutableArray{T}.As{TOther}"/> or <see cref="ImmutableArray{T}.CastArray{TOther}"/>method.