59 references to CastUp
Microsoft.CodeAnalysis (7)
Collections\ImmutableArrayExtensions.cs (3)
672return ImmutableArray<TBase>.CastUp(items); 1125return ImmutableArray<TNamespaceOrTypeSymbol>.CastUp(builder.ToDowncastedImmutableAndFree<TNamedTypeSymbol>()); 1132: ImmutableArray<TNamespaceOrTypeSymbol>.CastUp(ImmutableArray.Create((TNamedTypeSymbol)symbol));
Collections\StaticCast.cs (1)
14return ImmutableArray<T>.CastUp(from);
CommandLine\CommonCompiler.cs (1)
959var additionalTexts = ImmutableArray<AdditionalText>.CastUp(additionalTextFiles);
InternalUtilities\OneOrMany.cs (1)
166: new OneOrMany<T>(ImmutableArray<T>.CastUp(from._many));
src\Dependencies\PooledObjects\ArrayBuilder.cs (1)
609AddRange(ImmutableArray<T>.CastUp(items));
Microsoft.CodeAnalysis.CodeStyle (8)
src\Compilers\Core\Portable\Collections\ImmutableArrayExtensions.cs (3)
672return ImmutableArray<TBase>.CastUp(items); 1125return ImmutableArray<TNamespaceOrTypeSymbol>.CastUp(builder.ToDowncastedImmutableAndFree<TNamedTypeSymbol>()); 1132: ImmutableArray<TNamespaceOrTypeSymbol>.CastUp(ImmutableArray.Create((TNamedTypeSymbol)symbol));
src\Compilers\Core\Portable\InternalUtilities\OneOrMany.cs (1)
166: new OneOrMany<T>(ImmutableArray<T>.CastUp(from._many));
src\Dependencies\PooledObjects\ArrayBuilder.cs (1)
609AddRange(ImmutableArray<T>.CastUp(items));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs (3)
87IEventSymbol @event => ImmutableArray<ISymbol>.CastUp(@event.ExplicitInterfaceImplementations), 88IMethodSymbol method => ImmutableArray<ISymbol>.CastUp(method.ExplicitInterfaceImplementations), 89IPropertySymbol property => ImmutableArray<ISymbol>.CastUp(property.ExplicitInterfaceImplementations),
Microsoft.CodeAnalysis.CSharp (14)
Binder\Binder_Expressions.cs (1)
9380indexerOrSliceAccess: new BoundArrayAccess(node, receiverPlaceholder, ImmutableArray<BoundExpression>.CastUp(argumentPlaceholders), resultType) { WasCompilerGenerated = true },
Binder\Binder_Invocation.cs (1)
1741var unconvertedCollection = new BoundUnconvertedCollectionExpression(node, ImmutableArray<BoundNode>.CastUp(collectionArgs)) { WasCompilerGenerated = true, IsParamsArrayOrCollection = true };
BoundTree\BoundNode.cs (1)
368ImmutableArray<BoundNode>.CastUp(collection.Elements.CastArray<BoundExpression>()) == collection.Elements);
FlowAnalysis\ControlFlowAnalysis.cs (1)
64? ImmutableArray<SyntaxNode>.CastUp(ExitPointsWalker.Analyze(_context.Compilation, _context.Member, _context.BoundNode, _context.FirstInRegion, _context.LastInRegion))
Lowering\ClosureConversion\SynthesizedClosureMethod.cs (2)
103_structEnvironments = ImmutableArray<NamedTypeSymbol>.CastUp(structEnvironments); 217=> ImmutableArray<TypeSymbol>.CastUp(_structEnvironments);
Symbols\Symbol_Attributes.cs (1)
425Binder.CheckRequiredMembersInObjectInitializer(ctor, ImmutableArray<BoundExpression>.CastUp(boundAttribute.NamedArguments), boundAttribute.Syntax, diagnostics);
Symbols\Synthesized\SynthesizedInlineArrayAsReadOnlySpanMethod.cs (1)
33f.WellKnownMethod(WellKnownMember.System_Runtime_CompilerServices_Unsafe__As_T).Construct(ImmutableArray<TypeSymbol>.CastUp(TypeParameters)),
Symbols\Synthesized\SynthesizedInlineArrayAsSpanMethod.cs (1)
33f.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 (1)
131public override ImmutableArray<Symbol> GetMembers() => ImmutableArray<Symbol>.CastUp(_fields);
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryImports\CSharpRemoveUnnecessaryImportsDiagnosticAnalyzer.cs (1)
38=> ImmutableArray<SyntaxNode>.CastUp(unnecessaryImports);
Microsoft.CodeAnalysis.CSharp.Features (1)
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryImports\CSharpRemoveUnnecessaryImportsDiagnosticAnalyzer.cs (1)
38=> ImmutableArray<SyntaxNode>.CastUp(unnecessaryImports);
Microsoft.CodeAnalysis.Features (2)
ConvertTupleToStruct\AbstractConvertTupleToStructCodeRefactoringProvider.cs (2)
824document, namedTypeWithoutMembers, ImmutableArray<ISymbol>.CastUp(fields), 828ImmutableArray<ISymbol>.CastUp(fields), cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.InteractiveHost (1)
src\Dependencies\PooledObjects\ArrayBuilder.cs (1)
609AddRange(ImmutableArray<T>.CastUp(items));
Microsoft.CodeAnalysis.PooledObjects.Package (1)
ArrayBuilder.cs (1)
609AddRange(ImmutableArray<T>.CastUp(items));
Microsoft.CodeAnalysis.VisualBasic (4)
Symbols\AssemblySymbol.vb (1)
767Return ImmutableArray(Of IModuleSymbol).CastUp(Me.Modules)
Symbols\MethodSymbol.vb (1)
973Return ImmutableArray(Of IParameterSymbol).CastUp(Me.Parameters)
Symbols\ModuleSymbol.vb (1)
309Return ImmutableArray(Of IAssemblySymbol).CastUp(ReferencedAssemblySymbols)
Symbols\Source\SourceNamespaceSymbol.vb (1)
229Return ImmutableArray(Of Symbol).CastUp(members)
Microsoft.CodeAnalysis.VisualBasic.Features (1)
Completion\CompletionProviders\HandlesClauseCompletionProvider.vb (1)
142Return ImmutableArray(Of ISymbol).CastUp(result)
Microsoft.CodeAnalysis.Workspaces (13)
Editing\SyntaxGenerator.cs (4)
235ImmutableArray<ISymbol>.CastUp(method.ExplicitInterfaceImplementations)); 402ImmutableArray<ISymbol>.CastUp(property.ExplicitInterfaceImplementations)); 463ImmutableArray<ISymbol>.CastUp(indexer.ExplicitInterfaceImplementations)); 502ImmutableArray<ISymbol>.CastUp(symbol.ExplicitInterfaceImplementations));
src\Compilers\Core\Portable\Collections\ImmutableArrayExtensions.cs (3)
672return ImmutableArray<TBase>.CastUp(items); 1125return ImmutableArray<TNamespaceOrTypeSymbol>.CastUp(builder.ToDowncastedImmutableAndFree<TNamedTypeSymbol>()); 1132: ImmutableArray<TNamespaceOrTypeSymbol>.CastUp(ImmutableArray.Create((TNamedTypeSymbol)symbol));
src\Compilers\Core\Portable\InternalUtilities\OneOrMany.cs (1)
166: new OneOrMany<T>(ImmutableArray<T>.CastUp(from._many));
src\Dependencies\PooledObjects\ArrayBuilder.cs (1)
609AddRange(ImmutableArray<T>.CastUp(items));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs (3)
87IEventSymbol @event => ImmutableArray<ISymbol>.CastUp(@event.ExplicitInterfaceImplementations), 88IMethodSymbol method => ImmutableArray<ISymbol>.CastUp(method.ExplicitInterfaceImplementations), 89IPropertySymbol property => ImmutableArray<ISymbol>.CastUp(property.ExplicitInterfaceImplementations),
Workspace\ProjectSystem\ProjectSystemProject.cs (1)
816ImmutableArray<AnalyzerReference>.CastUp(initialReferenceList.ToImmutableAndClear()),
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (5)
src\Compilers\Core\Portable\Collections\ImmutableArrayExtensions.cs (3)
672return ImmutableArray<TBase>.CastUp(items); 1125return ImmutableArray<TNamespaceOrTypeSymbol>.CastUp(builder.ToDowncastedImmutableAndFree<TNamedTypeSymbol>()); 1132: ImmutableArray<TNamespaceOrTypeSymbol>.CastUp(ImmutableArray.Create((TNamedTypeSymbol)symbol));
src\Compilers\Core\Portable\InternalUtilities\OneOrMany.cs (1)
166: new OneOrMany<T>(ImmutableArray<T>.CastUp(from._many));
src\Dependencies\PooledObjects\ArrayBuilder.cs (1)
609AddRange(ImmutableArray<T>.CastUp(items));
Microsoft.VisualStudio.LanguageServices (1)
Progression\GraphQueries\ImplementsGraphQuery.cs (1)
31var implementedSymbols = ImmutableArray<ISymbol>.CastUp(namedType.AllInterfaces);