10 implementations of Accept
Microsoft.CodeAnalysis.CodeStyle.Fixes (3)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAbstractMethodSymbol.cs (1)
71public override TResult Accept<TResult>(SymbolVisitor<TResult> visitor)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAbstractNamedTypeSymbol.cs (1)
52public override TResult Accept<TResult>(SymbolVisitor<TResult> visitor)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationSymbol.cs (1)
183public abstract TResult Accept<TResult>(SymbolVisitor<TResult> visitor);
Microsoft.CodeAnalysis.CSharp (2)
Symbols\PublicModel\PreprocessingSymbol.cs (1)
70TResult ISymbol.Accept<TResult>(SymbolVisitor<TResult> visitor) => visitor.VisitPreprocessing(this)!;
Symbols\PublicModel\Symbol.cs (1)
140TResult ISymbol.Accept<TResult>(SymbolVisitor<TResult> visitor)
Microsoft.CodeAnalysis.Features (1)
MetadataAsSource\AbstractMetadataAsSourceService.AbstractWrappedSymbol.cs (1)
80public TResult Accept<TResult>(SymbolVisitor<TResult> visitor)
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\Symbol.vb (1)
1167Public MustOverride Function Accept(Of TResult)(visitor As SymbolVisitor(Of TResult)) As TResult Implements ISymbol.Accept
Microsoft.CodeAnalysis.Workspaces (3)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAbstractMethodSymbol.cs (1)
71public override TResult Accept<TResult>(SymbolVisitor<TResult> visitor)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAbstractNamedTypeSymbol.cs (1)
52public override TResult Accept<TResult>(SymbolVisitor<TResult> visitor)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationSymbol.cs (1)
183public abstract TResult Accept<TResult>(SymbolVisitor<TResult> visitor);
110 references to Accept
Microsoft.CodeAnalysis (2)
DocumentationCommentId.cs (1)
569return symbol.Target.Accept(this);
Symbols\SymbolVisitor`1.cs (1)
13: symbol.Accept(this);
Microsoft.CodeAnalysis.CodeStyle (27)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs (1)
473return member?.Accept(new RequiresUnsafeModifierVisitor()) == true;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.RequiresUnsafeModifierVisitor.cs (12)
35return symbol.ElementType.Accept(this); 51return symbol.Type.Accept(this); 61return symbol.GetAllTypeArguments().Any(ts => ts.Accept(this)); 92symbol.Type.Accept(this) || 93symbol.Parameters.Any(static (p, self) => p.Accept(self), this); 103return symbol.ConstraintTypes.Any(static (ts, self) => ts.Accept(self), this); 114symbol.ReturnType.Accept(this) || 115symbol.Parameters.Any(static (p, self) => p.Accept(self), this) || 116symbol.TypeParameters.Any(static (tp, self) => tp.Accept(self), this); 126return symbol.Type.Accept(this); 136return symbol.Type.Accept(this); 146return symbol.Target.Accept(this);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.cs (2)
311=> typeSymbol.Accept(MinimalAccessibilityVisitor.Instance); 834return type?.Accept(new SubstituteTypesVisitor<TType1, TType2>(mapping, typeGenerator));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.MinimalAccessibilityVisitor.cs (8)
19=> symbol.Target.Accept(this); 22=> symbol.ElementType.Accept(this); 31accessibility = AccessibilityUtilities.Minimum(accessibility, symbol.Signature.ReturnType.Accept(this)); 35accessibility = AccessibilityUtilities.Minimum(accessibility, parameter.Type.Accept(this)); 42accessibility = AccessibilityUtilities.Minimum(accessibility, callingConventionType.Accept(this)); 54accessibility = AccessibilityUtilities.Minimum(accessibility, arg.Accept(this)); 59accessibility = AccessibilityUtilities.Minimum(accessibility, symbol.ContainingType.Accept(this)); 66=> symbol.PointedAtType.Accept(this);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.SubstituteTypesVisitor.cs (4)
78var updatedContainingType = symbol.ContainingType?.Accept(this); 86var substitutedArguments = symbol.TypeArguments.Select(t => t.Accept(this)); 103var elementType = symbol.ElementType.Accept(this); 120var pointedAtType = symbol.PointedAtType.Accept(this);
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\AsyncSymbolVisitor`1.cs (1)
15=> symbol?.Accept(this) ?? ValueTaskFactory.FromResult(DefaultResult);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (9)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeSymbolExtensions.cs (2)
28=> typeSymbol.Accept(ExpressionSyntaxGeneratorVisitor.Create(nameSyntax))!.WithAdditionalAnnotations(Simplifier.Annotation); 51: symbol.Accept(TypeSyntaxGeneratorVisitor.Create(nameSyntax))!
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeSymbolExtensions.ExpressionSyntaxGeneratorVisitor.cs (4)
30=> symbol.Accept(TypeSyntaxGeneratorVisitor.Create(_nameOnly))!; 59var container = symbol.ContainingType.Accept(this)!; 77var container = symbol.ContainingNamespace.Accept(this)!; 102var container = symbol.ContainingNamespace.Accept(this)!;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeSymbolExtensions.TypeSyntaxGeneratorVisitor.cs (3)
277var containingTypeSyntax = symbol.ContainingType.Accept(this); 301var container = symbol.ContainingNamespace.Accept(this)!; 332var container = symbol.ContainingNamespace.Accept(this)!;
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (10)
Compilation\SymbolVisitorTests.cs (10)
203item.Accept(this); 216symbol.Target.Accept(this); 223symbol.ElementType.Accept(this); 251symbol.Type.Accept(this); 259symbol.Type.Accept(this); 329symbol.Type.Accept(this); 337symbol.PointedAtType.Accept(this); 350symbol.Type.Accept(this); 589asm.Accept(visitor); 741asm.Accept(visitor);
Microsoft.CodeAnalysis.CSharp.Workspaces (9)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeSymbolExtensions.cs (2)
28=> typeSymbol.Accept(ExpressionSyntaxGeneratorVisitor.Create(nameSyntax))!.WithAdditionalAnnotations(Simplifier.Annotation); 51: symbol.Accept(TypeSyntaxGeneratorVisitor.Create(nameSyntax))!
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeSymbolExtensions.ExpressionSyntaxGeneratorVisitor.cs (4)
30=> symbol.Accept(TypeSyntaxGeneratorVisitor.Create(_nameOnly))!; 59var container = symbol.ContainingType.Accept(this)!; 77var container = symbol.ContainingNamespace.Accept(this)!; 102var container = symbol.ContainingNamespace.Accept(this)!;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeSymbolExtensions.TypeSyntaxGeneratorVisitor.cs (3)
277var containingTypeSyntax = symbol.ContainingType.Accept(this); 301var container = symbol.ContainingNamespace.Accept(this)!; 332var container = symbol.ContainingNamespace.Accept(this)!;
Microsoft.CodeAnalysis.Features (1)
MetadataAsSource\AbstractMetadataAsSourceService.AbstractWrappedSymbol.cs (1)
81=> _symbol.Accept(visitor);
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\Symbol.vb (1)
1167Public MustOverride Function Accept(Of TResult)(visitor As SymbolVisitor(Of TResult)) As TResult Implements ISymbol.Accept
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (11)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ExpressionSyntaxGeneratorVisitor.vb (4)
23Return symbol.Accept(TypeSyntaxGeneratorVisitor.Create(_addGlobal)) 43Dim container = symbol.ContainingType.Accept(Me) 52Dim container = symbol.ContainingNamespace.Accept(Me) 69Dim container = symbol.ContainingNamespace.Accept(Me)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\INamespaceOrTypeSymbolExtensions.vb (1)
15Return symbol.Accept(TypeSyntaxGeneratorVisitor.Create(addGlobal)).WithAdditionalAnnotations(Simplifier.Annotation)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ITypeSymbolExtensions.vb (1)
15Return typeSymbol.Accept(New ExpressionSyntaxGeneratorVisitor(addGlobal:=True)).WithAdditionalAnnotations(Simplifier.Annotation)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\TypeSyntaxGeneratorVisitor.vb (5)
47Dim elementTypeSyntax = underlyingNonArrayType.Accept(Me) 163Return AddInformationTo(SyntaxFactory.QualifiedName(DirectCast(symbol.ContainingType.Accept(Me), NameSyntax), simpleNameSyntax), symbol) 171Dim container = symbol.ContainingNamespace.Accept(Me) 192Dim container = symbol.ContainingNamespace.Accept(Me) 199Return symbol.PointedAtType.Accept(Me)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (11)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ExpressionSyntaxGeneratorVisitor.vb (4)
23Return symbol.Accept(TypeSyntaxGeneratorVisitor.Create(_addGlobal)) 43Dim container = symbol.ContainingType.Accept(Me) 52Dim container = symbol.ContainingNamespace.Accept(Me) 69Dim container = symbol.ContainingNamespace.Accept(Me)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\INamespaceOrTypeSymbolExtensions.vb (1)
15Return symbol.Accept(TypeSyntaxGeneratorVisitor.Create(addGlobal)).WithAdditionalAnnotations(Simplifier.Annotation)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ITypeSymbolExtensions.vb (1)
15Return typeSymbol.Accept(New ExpressionSyntaxGeneratorVisitor(addGlobal:=True)).WithAdditionalAnnotations(Simplifier.Annotation)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\TypeSyntaxGeneratorVisitor.vb (5)
47Dim elementTypeSyntax = underlyingNonArrayType.Accept(Me) 163Return AddInformationTo(SyntaxFactory.QualifiedName(DirectCast(symbol.ContainingType.Accept(Me), NameSyntax), simpleNameSyntax), symbol) 171Dim container = symbol.ContainingNamespace.Accept(Me) 192Dim container = symbol.ContainingNamespace.Accept(Me) 199Return symbol.PointedAtType.Accept(Me)
Microsoft.CodeAnalysis.Workspaces (28)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs (1)
473return member?.Accept(new RequiresUnsafeModifierVisitor()) == true;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.RequiresUnsafeModifierVisitor.cs (12)
35return symbol.ElementType.Accept(this); 51return symbol.Type.Accept(this); 61return symbol.GetAllTypeArguments().Any(ts => ts.Accept(this)); 92symbol.Type.Accept(this) || 93symbol.Parameters.Any(static (p, self) => p.Accept(self), this); 103return symbol.ConstraintTypes.Any(static (ts, self) => ts.Accept(self), this); 114symbol.ReturnType.Accept(this) || 115symbol.Parameters.Any(static (p, self) => p.Accept(self), this) || 116symbol.TypeParameters.Any(static (tp, self) => tp.Accept(self), this); 126return symbol.Type.Accept(this); 136return symbol.Type.Accept(this); 146return symbol.Target.Accept(this);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.cs (2)
311=> typeSymbol.Accept(MinimalAccessibilityVisitor.Instance); 834return type?.Accept(new SubstituteTypesVisitor<TType1, TType2>(mapping, typeGenerator));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.MinimalAccessibilityVisitor.cs (8)
19=> symbol.Target.Accept(this); 22=> symbol.ElementType.Accept(this); 31accessibility = AccessibilityUtilities.Minimum(accessibility, symbol.Signature.ReturnType.Accept(this)); 35accessibility = AccessibilityUtilities.Minimum(accessibility, parameter.Type.Accept(this)); 42accessibility = AccessibilityUtilities.Minimum(accessibility, callingConventionType.Accept(this)); 54accessibility = AccessibilityUtilities.Minimum(accessibility, arg.Accept(this)); 59accessibility = AccessibilityUtilities.Minimum(accessibility, symbol.ContainingType.Accept(this)); 66=> symbol.PointedAtType.Accept(this);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.SubstituteTypesVisitor.cs (4)
78var updatedContainingType = symbol.ContainingType?.Accept(this); 86var substitutedArguments = symbol.TypeArguments.Select(t => t.Accept(this)); 103var elementType = symbol.ElementType.Accept(this); 120var pointedAtType = symbol.PointedAtType.Accept(this);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\AsyncSymbolVisitor`1.cs (1)
15=> symbol?.Accept(this) ?? ValueTaskFactory.FromResult(DefaultResult);