37 references to As
Microsoft.AspNetCore.App.Analyzers (2)
RouteEmbeddedLanguage\Infrastructure\RoutePatternParametersDetector.cs (2)
69ITypeSymbol typeSymbol => typeSymbol.GetMembers().OfType<IPropertySymbol>().ToImmutableArray().As<ISymbol>(), 70IMethodSymbol methodSymbol => methodSymbol.Parameters.As<ISymbol>(),
Microsoft.CodeAnalysis (1)
Collections\ImmutableArrayExtensions.cs (1)
1167var membersAsNamedTypes = members.As<TNamedTypeSymbol>();
Microsoft.CodeAnalysis.CodeStyle (1)
src\Compilers\Core\Portable\Collections\ImmutableArrayExtensions.cs (1)
1167var membersAsNamedTypes = members.As<TNamedTypeSymbol>();
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationMethodSymbol.cs (1)
101=> this.TypeParameters.As<ITypeSymbol>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationNamedTypeSymbol.cs (1)
131return this.TypeParameters.As<ITypeSymbol>();
Microsoft.CodeAnalysis.CSharp (2)
Emitter\Model\PropertySymbolAdapter.cs (2)
184return AdaptedPropertySymbol.TypeWithAnnotations.CustomModifiers.As<ICustomModifier>(); 193return AdaptedPropertySymbol.RefCustomModifiers.As<ICustomModifier>();
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SemanticFacts\CSharpSemanticFacts.cs (2)
277AssignmentExpressionSyntax _ when token.Kind() == SyntaxKind.EqualsToken => GetDeconstructionAssignmentMethods(semanticModel, node).As<ISymbol>(), 278ForEachVariableStatementSyntax _ when token.Kind() == SyntaxKind.InKeyword => GetDeconstructionForEachMethods(semanticModel, node).As<ISymbol>(),
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (2)
Diagnostics\DiagnosticAnalyzerDriver\DiagnosticAnalyzerDriverTests.cs (2)
784nugetAnalyzerReferences.AddRange(nugetAnalyzers.As<DiagnosticAnalyzer>()); 789nugetAnalyzerReferences.AddRange(nugetSuppressors.As<DiagnosticAnalyzer>());
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\LocalFunctionTests.cs (1)
506var attributes = symbol.GetAttributes().As<CSharpAttributeData>();
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SemanticFacts\CSharpSemanticFacts.cs (2)
277AssignmentExpressionSyntax _ when token.Kind() == SyntaxKind.EqualsToken => GetDeconstructionAssignmentMethods(semanticModel, node).As<ISymbol>(), 278ForEachVariableStatementSyntax _ when token.Kind() == SyntaxKind.InKeyword => GetDeconstructionForEachMethods(semanticModel, node).As<ISymbol>(),
Microsoft.CodeAnalysis.VisualBasic (13)
Analysis\FlowAnalysis\VisualBasicDataFlowAnalysis.vb (1)
299Return builder.ToImmutableAndFree().As(Of ISymbol)()
Emit\ArrayTypeSymbolAdapter.vb (1)
27Return New Cci.ModifiedTypeReference(type, customModifiers.As(Of Cci.ICustomModifier))
Emit\FieldSymbolAdapter.vb (1)
37Return New ModifiedTypeReference(type, customModifiers.As(Of Cci.ICustomModifier))
Emit\MethodSymbolAdapter.vb (2)
182Return AdaptedMethodSymbol.ReturnTypeCustomModifiers.As(Of Cci.ICustomModifier) 188Return AdaptedMethodSymbol.RefCustomModifiers.As(Of Cci.ICustomModifier)
Emit\NamedTypeSymbolAdapter.vb (1)
845arg = New Cci.ModifiedTypeReference(arg, modifiers.As(Of Cci.ICustomModifier))
Emit\ParameterSymbolAdapter.vb (2)
29Return AdaptedParameterSymbol.CustomModifiers.As(Of Cci.ICustomModifier) 35Return AdaptedParameterSymbol.RefCustomModifiers.As(Of Cci.ICustomModifier)
Emit\PropertySymbolAdapter.vb (2)
129Return AdaptedPropertySymbol.TypeCustomModifiers.As(Of Cci.ICustomModifier) 136Return AdaptedPropertySymbol.RefCustomModifiers.As(Of Cci.ICustomModifier)
Symbols\Metadata\PE\PENamedTypeSymbol.vb (2)
1412IndexedTypeParameterSymbol.Take(n).As(Of TypeSymbol)) 1416IndexedTypeParameterSymbol.Take(nestedTypeParameters.Length).As(Of TypeSymbol))
Symbols\PEOrSourceOrMergedNamespaceSymbol.vb (1)
115methods.AddRange(match.As(Of MethodSymbol))
Microsoft.CodeAnalysis.VisualBasic.ExpressionCompiler (3)
CompilationContext.vb (1)
1437sourceTypeTypeParameters.As(Of TypeSymbol).Concat(indexedTypeParameters))
Symbols\EEMethodSymbol.vb (1)
98Me.SubstitutedSourceMethod = Me.SubstitutedSourceMethod.Construct(_typeParameters.As(Of TypeSymbol)())
TypeParameterChecker.vb (1)
26MyBase.New(acceptableTypeParameters.As(Of ITypeParameterSymbol))
Microsoft.CodeAnalysis.VisualBasic.Features (1)
Completion\CompletionProviders\NamedParameterCompletionProvider.vb (1)
187Return SpecializedCollections.SingletonEnumerable(delegateType.DelegateInvokeMethod.Parameters.As(Of ISymbol)())
Microsoft.CodeAnalysis.Workspaces (3)
src\Compilers\Core\Portable\Collections\ImmutableArrayExtensions.cs (1)
1167var membersAsNamedTypes = members.As<TNamedTypeSymbol>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationMethodSymbol.cs (1)
101=> this.TypeParameters.As<ITypeSymbol>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationNamedTypeSymbol.cs (1)
131return this.TypeParameters.As<ITypeSymbol>();
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
src\Compilers\Core\Portable\Collections\ImmutableArrayExtensions.cs (1)
1167var membersAsNamedTypes = members.As<TNamedTypeSymbol>();
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.