23 types derived from SymbolVisitor
Microsoft.CodeAnalysis (2)
DocumentationCommentId.cs (2)
387private sealed class DeclarationGenerator : SymbolVisitor<bool> 541private class ReferenceGenerator : SymbolVisitor<bool>
Microsoft.CodeAnalysis.CodeStyle (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.RequiresUnsafeModifierVisitor.cs (1)
18private sealed class RequiresUnsafeModifierVisitor : SymbolVisitor<bool>
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.MinimalAccessibilityVisitor.cs (1)
11private sealed class MinimalAccessibilityVisitor : SymbolVisitor<Accessibility>
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.SubstituteTypesVisitor.cs (1)
15private sealed class SubstituteTypesVisitor<TType1, TType2> : SymbolVisitor<ITypeSymbol>
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\AsyncSymbolVisitor.cs (1)
9internal abstract class AsyncSymbolVisitor : SymbolVisitor<ValueTask>
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\AsyncSymbolVisitor`1.cs (1)
10internal abstract class AsyncSymbolVisitor<TResult> : SymbolVisitor<ValueTask<TResult>>
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeSymbolExtensions.ExpressionSyntaxGeneratorVisitor.cs (1)
16private class ExpressionSyntaxGeneratorVisitor : SymbolVisitor<ExpressionSyntax>
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeSymbolExtensions.TypeSyntaxGeneratorVisitor.cs (1)
22private class TypeSyntaxGeneratorVisitor : SymbolVisitor<TypeSyntax>
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Compilation\SymbolVisitorTests.cs (1)
187private class LoggingSymbolVisitorWithReturnValue : SymbolVisitor<string>
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeSymbolExtensions.ExpressionSyntaxGeneratorVisitor.cs (1)
16private class ExpressionSyntaxGeneratorVisitor : SymbolVisitor<ExpressionSyntax>
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeSymbolExtensions.TypeSyntaxGeneratorVisitor.cs (1)
22private class TypeSyntaxGeneratorVisitor : SymbolVisitor<TypeSyntax>
Microsoft.CodeAnalysis.Features (1)
QuickInfo\CommonSemanticQuickInfoProvider.ErrorVisitor.cs (1)
13private sealed class ErrorVisitor : SymbolVisitor<bool>
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ExpressionSyntaxGeneratorVisitor.vb (1)
12Inherits SymbolVisitor(Of ExpressionSyntax)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\TypeSyntaxGeneratorVisitor.vb (1)
12Inherits SymbolVisitor(Of TypeSyntax)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ExpressionSyntaxGeneratorVisitor.vb (1)
12Inherits SymbolVisitor(Of ExpressionSyntax)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\TypeSyntaxGeneratorVisitor.vb (1)
12Inherits SymbolVisitor(Of TypeSyntax)
Microsoft.CodeAnalysis.Workspaces (6)
FindSymbols\FindReferences\Finders\ExplicitConversionSymbolReferenceFinder.UnderlyingNamedTypeVisitor.cs (1)
11private sealed class UnderlyingNamedTypeVisitor : SymbolVisitor<INamedTypeSymbol?>
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.RequiresUnsafeModifierVisitor.cs (1)
18private sealed class RequiresUnsafeModifierVisitor : SymbolVisitor<bool>
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.MinimalAccessibilityVisitor.cs (1)
11private sealed class MinimalAccessibilityVisitor : SymbolVisitor<Accessibility>
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.SubstituteTypesVisitor.cs (1)
15private sealed class SubstituteTypesVisitor<TType1, TType2> : SymbolVisitor<ITypeSymbol>
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\AsyncSymbolVisitor.cs (1)
9internal abstract class AsyncSymbolVisitor : SymbolVisitor<ValueTask>
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\AsyncSymbolVisitor`1.cs (1)
10internal abstract class AsyncSymbolVisitor<TResult> : SymbolVisitor<ValueTask<TResult>>
73 references to SymbolVisitor
Microsoft.CodeAnalysis (2)
DocumentationCommentId.cs (1)
318/// Callers should only call into <see cref="SymbolVisitor{TResult}.Visit(ISymbol?)"/> and should check <see
Symbols\ISymbol.cs (1)
212TResult? Accept<TResult>(SymbolVisitor<TResult> visitor);
Microsoft.CodeAnalysis.CodeStyle (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.AnonymousTypeRemover.cs (1)
14private sealed class AnonymousTypeRemover(Compilation compilation) : SymbolVisitor<ITypeSymbol>
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.MinimalAccessibilityVisitor.cs (1)
13public static readonly SymbolVisitor<Accessibility> Instance = new MinimalAccessibilityVisitor();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.UnavailableTypeParameterRemover.cs (1)
15private sealed class UnavailableTypeParameterRemover(Compilation compilation, ISet<string> availableTypeParameterNames) : SymbolVisitor<ITypeSymbol>
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.UnnamedErrorTypeRemover.cs (1)
14private sealed class UnnamedErrorTypeRemover(Compilation compilation) : SymbolVisitor<ITypeSymbol>
Microsoft.CodeAnalysis.CodeStyle.Fixes (11)
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\CodeGenerationArrayTypeSymbol.cs (1)
50public override TResult? Accept<TResult>(SymbolVisitor<TResult> visitor)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationEventSymbol.cs (1)
49public override TResult? Accept<TResult>(SymbolVisitor<TResult> visitor)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationFieldSymbol.cs (1)
54public override TResult Accept<TResult>(SymbolVisitor<TResult> visitor)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationNamespaceSymbol.cs (1)
30public override TResult Accept<TResult>(SymbolVisitor<TResult> visitor)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationParameterSymbol.cs (1)
55public override TResult Accept<TResult>(SymbolVisitor<TResult> visitor)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationPointerTypeSymbol.cs (1)
26public override TResult? Accept<TResult>(SymbolVisitor<TResult> visitor)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationPropertySymbol.cs (1)
61public 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);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationTypeParameterSymbol.cs (1)
54public override TResult Accept<TResult>(SymbolVisitor<TResult> visitor)
Microsoft.CodeAnalysis.CSharp (22)
Symbols\PublicModel\AliasSymbol.cs (1)
36protected override TResult? Accept<TResult>(SymbolVisitor<TResult> visitor)
Symbols\PublicModel\ArrayTypeSymbol.cs (1)
78protected override TResult? Accept<TResult>(SymbolVisitor<TResult> visitor)
Symbols\PublicModel\AssemblySymbol.cs (1)
112protected override TResult Accept<TResult>(SymbolVisitor<TResult> visitor)
Symbols\PublicModel\DiscardSymbol.cs (1)
39protected override TResult? Accept<TResult>(SymbolVisitor<TResult> visitor) where TResult : default => visitor.VisitDiscard(this);
Symbols\PublicModel\DynamicTypeSymbol.cs (1)
39protected override TResult? Accept<TResult>(SymbolVisitor<TResult> visitor)
Symbols\PublicModel\EventSymbol.cs (1)
98protected override TResult? Accept<TResult>(SymbolVisitor<TResult> visitor)
Symbols\PublicModel\FieldSymbol.cs (1)
105protected override TResult Accept<TResult>(SymbolVisitor<TResult> visitor)
Symbols\PublicModel\FunctionPointerTypeSymbol.cs (1)
29protected override TResult? Accept<TResult>(SymbolVisitor<TResult> visitor)
Symbols\PublicModel\LabelSymbol.cs (1)
36protected override TResult? Accept<TResult>(SymbolVisitor<TResult> visitor)
Symbols\PublicModel\LocalSymbol.cs (1)
73protected sealed override TResult Accept<TResult>(SymbolVisitor<TResult> visitor)
Symbols\PublicModel\MethodSymbol.cs (1)
340protected override TResult Accept<TResult>(SymbolVisitor<TResult> visitor)
Symbols\PublicModel\ModuleSymbol.cs (1)
56protected override TResult Accept<TResult>(SymbolVisitor<TResult> visitor)
Symbols\PublicModel\NamedTypeSymbol.cs (1)
212protected sealed override TResult Accept<TResult>(SymbolVisitor<TResult> visitor)
Symbols\PublicModel\NamespaceSymbol.cs (1)
72protected override TResult Accept<TResult>(SymbolVisitor<TResult> visitor)
Symbols\PublicModel\ParameterSymbol.cs (1)
88protected override TResult Accept<TResult>(SymbolVisitor<TResult> visitor)
Symbols\PublicModel\PointerTypeSymbol.cs (1)
59protected override TResult? Accept<TResult>(SymbolVisitor<TResult> visitor)
Symbols\PublicModel\PreprocessingSymbol.cs (1)
70TResult ISymbol.Accept<TResult>(SymbolVisitor<TResult> visitor) => visitor.VisitPreprocessing(this)!;
Symbols\PublicModel\PropertySymbol.cs (1)
127protected override TResult Accept<TResult>(SymbolVisitor<TResult> visitor)
Symbols\PublicModel\RangeVariableSymbol.cs (1)
28protected override TResult Accept<TResult>(SymbolVisitor<TResult> visitor)
Symbols\PublicModel\Symbol.cs (2)
140TResult ISymbol.Accept<TResult>(SymbolVisitor<TResult> visitor) 145protected abstract TResult Accept<TResult>(SymbolVisitor<TResult> visitor);
Symbols\PublicModel\TypeParameterSymbol.cs (1)
106protected override TResult Accept<TResult>(SymbolVisitor<TResult> visitor)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\DelegateTypeTests.cs (1)
14813protected override TResult Accept<TResult>(SymbolVisitor<TResult> visitor) => throw new NotImplementedException();
Microsoft.CodeAnalysis.Features (1)
MetadataAsSource\AbstractMetadataAsSourceService.AbstractWrappedSymbol.cs (1)
80public TResult Accept<TResult>(SymbolVisitor<TResult> visitor)
Microsoft.CodeAnalysis.VisualBasic (17)
Symbols\AliasSymbol.vb (1)
264Public Overrides Function Accept(Of TResult)(visitor As SymbolVisitor(Of TResult)) As TResult
Symbols\ArrayTypeSymbol.vb (1)
456Public Overrides Function Accept(Of TResult)(visitor As SymbolVisitor(Of TResult)) As TResult
Symbols\AssemblySymbol.vb (1)
787Public Overrides Function Accept(Of TResult)(visitor As SymbolVisitor(Of TResult)) As TResult
Symbols\EventSymbol.vb (1)
330Public Overrides Function Accept(Of TResult)(visitor As SymbolVisitor(Of TResult)) As TResult
Symbols\FieldSymbol.vb (1)
522Public Overrides Function Accept(Of TResult)(visitor As SymbolVisitor(Of TResult)) As TResult
Symbols\LabelSymbol.vb (1)
124Public Overrides Function Accept(Of TResult)(visitor As SymbolVisitor(Of TResult)) As TResult
Symbols\MethodSymbol.vb (1)
1223Public Overrides Function Accept(Of TResult)(ByVal visitor As SymbolVisitor(Of TResult)) As TResult
Symbols\ModuleSymbol.vb (1)
317Public Overrides Function Accept(Of TResult)(visitor As SymbolVisitor(Of TResult)) As TResult
Symbols\NamedTypeSymbol.vb (1)
1491Public Overrides Function Accept(Of TResult)(visitor As SymbolVisitor(Of TResult)) As TResult
Symbols\NamespaceSymbol.vb (1)
555Public Overrides Function Accept(Of TResult)(visitor As SymbolVisitor(Of TResult)) As TResult
Symbols\ParameterSymbol.vb (1)
382Public Overrides Function Accept(Of TResult)(visitor As SymbolVisitor(Of TResult)) As TResult
Symbols\PreprocessingSymbol.vb (1)
119Public Overloads Overrides Function Accept(Of TResult)(visitor As SymbolVisitor(Of TResult)) As TResult
Symbols\PropertySymbol.vb (1)
678Public Overrides Function Accept(Of TResult)(visitor As SymbolVisitor(Of TResult)) As TResult
Symbols\Source\LocalSymbol.vb (1)
439Public Overrides Function Accept(Of TResult)(visitor As SymbolVisitor(Of TResult)) As TResult
Symbols\Source\RangeVariableSymbol.vb (1)
107Public Overrides Function Accept(Of TResult)(visitor As SymbolVisitor(Of TResult)) As TResult
Symbols\Symbol.vb (1)
1167Public MustOverride Function Accept(Of TResult)(visitor As SymbolVisitor(Of TResult)) As TResult Implements ISymbol.Accept
Symbols\TypeParameterSymbol.vb (1)
421Public Overrides Function Accept(Of TResult)(visitor As SymbolVisitor(Of TResult)) As TResult
Microsoft.CodeAnalysis.Workspaces (15)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.AnonymousTypeRemover.cs (1)
14private sealed class AnonymousTypeRemover(Compilation compilation) : SymbolVisitor<ITypeSymbol>
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.MinimalAccessibilityVisitor.cs (1)
13public static readonly SymbolVisitor<Accessibility> Instance = new MinimalAccessibilityVisitor();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.UnavailableTypeParameterRemover.cs (1)
15private sealed class UnavailableTypeParameterRemover(Compilation compilation, ISet<string> availableTypeParameterNames) : SymbolVisitor<ITypeSymbol>
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.UnnamedErrorTypeRemover.cs (1)
14private sealed class UnnamedErrorTypeRemover(Compilation compilation) : SymbolVisitor<ITypeSymbol>
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\CodeGenerationArrayTypeSymbol.cs (1)
50public override TResult? Accept<TResult>(SymbolVisitor<TResult> visitor)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationEventSymbol.cs (1)
49public override TResult? Accept<TResult>(SymbolVisitor<TResult> visitor)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationFieldSymbol.cs (1)
54public override TResult Accept<TResult>(SymbolVisitor<TResult> visitor)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationNamespaceSymbol.cs (1)
30public override TResult Accept<TResult>(SymbolVisitor<TResult> visitor)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationParameterSymbol.cs (1)
55public override TResult Accept<TResult>(SymbolVisitor<TResult> visitor)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationPointerTypeSymbol.cs (1)
26public override TResult? Accept<TResult>(SymbolVisitor<TResult> visitor)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationPropertySymbol.cs (1)
61public 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);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationTypeParameterSymbol.cs (1)
54public override TResult Accept<TResult>(SymbolVisitor<TResult> visitor)