Share via


CSharpSyntaxWalker Class

Definition

Represents a CSharpSyntaxVisitor that descends an entire CSharpSyntaxNode graph visiting each CSharpSyntaxNode and its child SyntaxNodes and SyntaxTokens in depth-first order.

public ref class CSharpSyntaxWalker abstract : Microsoft::CodeAnalysis::CSharp::CSharpSyntaxVisitor
public abstract class CSharpSyntaxWalker : Microsoft.CodeAnalysis.CSharp.CSharpSyntaxVisitor
type CSharpSyntaxWalker = class
    inherit CSharpSyntaxVisitor
Public MustInherit Class CSharpSyntaxWalker
Inherits CSharpSyntaxVisitor
Inheritance
CSharpSyntaxWalker

Constructors

CSharpSyntaxWalker(SyntaxWalkerDepth)

Properties

Depth

Methods

DefaultVisit(SyntaxNode)
Visit(SyntaxNode)
VisitAccessorDeclaration(AccessorDeclarationSyntax)

Called when the visitor visits a AccessorDeclarationSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitAccessorList(AccessorListSyntax)

Called when the visitor visits a AccessorListSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitAliasQualifiedName(AliasQualifiedNameSyntax)

Called when the visitor visits a AliasQualifiedNameSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitAllowsConstraintClause(AllowsConstraintClauseSyntax)

Called when the visitor visits a AllowsConstraintClauseSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitAnonymousMethodExpression(AnonymousMethodExpressionSyntax)

Called when the visitor visits a AnonymousMethodExpressionSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitAnonymousObjectCreationExpression(AnonymousObjectCreationExpressionSyntax)

Called when the visitor visits a AnonymousObjectCreationExpressionSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitAnonymousObjectMemberDeclarator(AnonymousObjectMemberDeclaratorSyntax)

Called when the visitor visits a AnonymousObjectMemberDeclaratorSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitArgument(ArgumentSyntax)

Called when the visitor visits a ArgumentSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitArgumentList(ArgumentListSyntax)

Called when the visitor visits a ArgumentListSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitArrayCreationExpression(ArrayCreationExpressionSyntax)

Called when the visitor visits a ArrayCreationExpressionSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitArrayRankSpecifier(ArrayRankSpecifierSyntax)

Called when the visitor visits a ArrayRankSpecifierSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitArrayType(ArrayTypeSyntax)

Called when the visitor visits a ArrayTypeSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitArrowExpressionClause(ArrowExpressionClauseSyntax)

Called when the visitor visits a ArrowExpressionClauseSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitAssignmentExpression(AssignmentExpressionSyntax)

Called when the visitor visits a AssignmentExpressionSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitAttribute(AttributeSyntax)

Called when the visitor visits a AttributeSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitAttributeArgument(AttributeArgumentSyntax)

Called when the visitor visits a AttributeArgumentSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitAttributeArgumentList(AttributeArgumentListSyntax)

Called when the visitor visits a AttributeArgumentListSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitAttributeList(AttributeListSyntax)

Called when the visitor visits a AttributeListSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitAttributeTargetSpecifier(AttributeTargetSpecifierSyntax)

Called when the visitor visits a AttributeTargetSpecifierSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitAwaitExpression(AwaitExpressionSyntax)

Called when the visitor visits a AwaitExpressionSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitBadDirectiveTrivia(BadDirectiveTriviaSyntax)

Called when the visitor visits a BadDirectiveTriviaSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitBaseExpression(BaseExpressionSyntax)

Called when the visitor visits a BaseExpressionSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitBaseExpressionTypeClause(BaseExpressionTypeClauseSyntax)

Called when the visitor visits a BaseExpressionTypeClauseSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitBaseList(BaseListSyntax)

Called when the visitor visits a BaseListSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitBinaryExpression(BinaryExpressionSyntax)

Called when the visitor visits a BinaryExpressionSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitBinaryPattern(BinaryPatternSyntax)

Called when the visitor visits a BinaryPatternSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitBlock(BlockSyntax)

Called when the visitor visits a BlockSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitBracketedArgumentList(BracketedArgumentListSyntax)

Called when the visitor visits a BracketedArgumentListSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitBracketedParameterList(BracketedParameterListSyntax)

Called when the visitor visits a BracketedParameterListSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitBreakStatement(BreakStatementSyntax)

Called when the visitor visits a BreakStatementSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitCasePatternSwitchLabel(CasePatternSwitchLabelSyntax)

Called when the visitor visits a CasePatternSwitchLabelSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitCaseSwitchLabel(CaseSwitchLabelSyntax)

Called when the visitor visits a CaseSwitchLabelSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitCastExpression(CastExpressionSyntax)

Called when the visitor visits a CastExpressionSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitCatchClause(CatchClauseSyntax)

Called when the visitor visits a CatchClauseSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitCatchDeclaration(CatchDeclarationSyntax)

Called when the visitor visits a CatchDeclarationSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitCatchFilterClause(CatchFilterClauseSyntax)

Called when the visitor visits a CatchFilterClauseSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitCheckedExpression(CheckedExpressionSyntax)

Called when the visitor visits a CheckedExpressionSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitCheckedStatement(CheckedStatementSyntax)

Called when the visitor visits a CheckedStatementSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitClassDeclaration(ClassDeclarationSyntax)

Called when the visitor visits a ClassDeclarationSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitClassOrStructConstraint(ClassOrStructConstraintSyntax)

Called when the visitor visits a ClassOrStructConstraintSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitCollectionExpression(CollectionExpressionSyntax)

Called when the visitor visits a CollectionExpressionSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitCompilationUnit(CompilationUnitSyntax)

Called when the visitor visits a CompilationUnitSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitConditionalAccessExpression(ConditionalAccessExpressionSyntax)

Called when the visitor visits a ConditionalAccessExpressionSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitConditionalExpression(ConditionalExpressionSyntax)

Called when the visitor visits a ConditionalExpressionSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitConstantPattern(ConstantPatternSyntax)

Called when the visitor visits a ConstantPatternSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitConstructorConstraint(ConstructorConstraintSyntax)

Called when the visitor visits a ConstructorConstraintSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitConstructorDeclaration(ConstructorDeclarationSyntax)

Called when the visitor visits a ConstructorDeclarationSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitConstructorInitializer(ConstructorInitializerSyntax)

Called when the visitor visits a ConstructorInitializerSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitContinueStatement(ContinueStatementSyntax)

Called when the visitor visits a ContinueStatementSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitConversionOperatorDeclaration(ConversionOperatorDeclarationSyntax)

Called when the visitor visits a ConversionOperatorDeclarationSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitConversionOperatorMemberCref(ConversionOperatorMemberCrefSyntax)

Called when the visitor visits a ConversionOperatorMemberCrefSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitCrefBracketedParameterList(CrefBracketedParameterListSyntax)

Called when the visitor visits a CrefBracketedParameterListSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitCrefParameter(CrefParameterSyntax)

Called when the visitor visits a CrefParameterSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitCrefParameterList(CrefParameterListSyntax)

Called when the visitor visits a CrefParameterListSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitDeclarationExpression(DeclarationExpressionSyntax)

Called when the visitor visits a DeclarationExpressionSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitDeclarationPattern(DeclarationPatternSyntax)

Called when the visitor visits a DeclarationPatternSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitDefaultConstraint(DefaultConstraintSyntax)

Called when the visitor visits a DefaultConstraintSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitDefaultExpression(DefaultExpressionSyntax)

Called when the visitor visits a DefaultExpressionSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitDefaultSwitchLabel(DefaultSwitchLabelSyntax)

Called when the visitor visits a DefaultSwitchLabelSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitDefineDirectiveTrivia(DefineDirectiveTriviaSyntax)

Called when the visitor visits a DefineDirectiveTriviaSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitDelegateDeclaration(DelegateDeclarationSyntax)

Called when the visitor visits a DelegateDeclarationSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitDestructorDeclaration(DestructorDeclarationSyntax)

Called when the visitor visits a DestructorDeclarationSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitDiscardDesignation(DiscardDesignationSyntax)

Called when the visitor visits a DiscardDesignationSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitDiscardPattern(DiscardPatternSyntax)

Called when the visitor visits a DiscardPatternSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitDocumentationCommentTrivia(DocumentationCommentTriviaSyntax)

Called when the visitor visits a DocumentationCommentTriviaSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitDoStatement(DoStatementSyntax)

Called when the visitor visits a DoStatementSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitElementAccessExpression(ElementAccessExpressionSyntax)

Called when the visitor visits a ElementAccessExpressionSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitElementBindingExpression(ElementBindingExpressionSyntax)

Called when the visitor visits a ElementBindingExpressionSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitElifDirectiveTrivia(ElifDirectiveTriviaSyntax)

Called when the visitor visits a ElifDirectiveTriviaSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitElseClause(ElseClauseSyntax)

Called when the visitor visits a ElseClauseSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitElseDirectiveTrivia(ElseDirectiveTriviaSyntax)

Called when the visitor visits a ElseDirectiveTriviaSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitEmptyStatement(EmptyStatementSyntax)

Called when the visitor visits a EmptyStatementSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitEndIfDirectiveTrivia(EndIfDirectiveTriviaSyntax)

Called when the visitor visits a EndIfDirectiveTriviaSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitEndRegionDirectiveTrivia(EndRegionDirectiveTriviaSyntax)

Called when the visitor visits a EndRegionDirectiveTriviaSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitEnumDeclaration(EnumDeclarationSyntax)

Called when the visitor visits a EnumDeclarationSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitEnumMemberDeclaration(EnumMemberDeclarationSyntax)

Called when the visitor visits a EnumMemberDeclarationSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitEqualsValueClause(EqualsValueClauseSyntax)

Called when the visitor visits a EqualsValueClauseSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitErrorDirectiveTrivia(ErrorDirectiveTriviaSyntax)

Called when the visitor visits a ErrorDirectiveTriviaSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitEventDeclaration(EventDeclarationSyntax)

Called when the visitor visits a EventDeclarationSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitEventFieldDeclaration(EventFieldDeclarationSyntax)

Called when the visitor visits a EventFieldDeclarationSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitExplicitInterfaceSpecifier(ExplicitInterfaceSpecifierSyntax)

Called when the visitor visits a ExplicitInterfaceSpecifierSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitExpressionColon(ExpressionColonSyntax)

Called when the visitor visits a ExpressionColonSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitExpressionElement(ExpressionElementSyntax)

Called when the visitor visits a ExpressionElementSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitExpressionStatement(ExpressionStatementSyntax)

Called when the visitor visits a ExpressionStatementSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitExternAliasDirective(ExternAliasDirectiveSyntax)

Called when the visitor visits a ExternAliasDirectiveSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitFieldDeclaration(FieldDeclarationSyntax)

Called when the visitor visits a FieldDeclarationSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitFieldExpression(FieldExpressionSyntax)

Called when the visitor visits a FieldExpressionSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitFileScopedNamespaceDeclaration(FileScopedNamespaceDeclarationSyntax)

Called when the visitor visits a FileScopedNamespaceDeclarationSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitFinallyClause(FinallyClauseSyntax)

Called when the visitor visits a FinallyClauseSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitFixedStatement(FixedStatementSyntax)

Called when the visitor visits a FixedStatementSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitForEachStatement(ForEachStatementSyntax)

Called when the visitor visits a ForEachStatementSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitForEachVariableStatement(ForEachVariableStatementSyntax)

Called when the visitor visits a ForEachVariableStatementSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitForStatement(ForStatementSyntax)

Called when the visitor visits a ForStatementSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitFromClause(FromClauseSyntax)

Called when the visitor visits a FromClauseSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitFunctionPointerCallingConvention(FunctionPointerCallingConventionSyntax)

Called when the visitor visits a FunctionPointerCallingConventionSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitFunctionPointerParameter(FunctionPointerParameterSyntax)

Called when the visitor visits a FunctionPointerParameterSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitFunctionPointerParameterList(FunctionPointerParameterListSyntax)

Called when the visitor visits a FunctionPointerParameterListSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitFunctionPointerType(FunctionPointerTypeSyntax)

Called when the visitor visits a FunctionPointerTypeSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitFunctionPointerUnmanagedCallingConvention(FunctionPointerUnmanagedCallingConventionSyntax)

Called when the visitor visits a FunctionPointerUnmanagedCallingConventionSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitFunctionPointerUnmanagedCallingConventionList(FunctionPointerUnmanagedCallingConventionListSyntax)

Called when the visitor visits a FunctionPointerUnmanagedCallingConventionListSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitGenericName(GenericNameSyntax)

Called when the visitor visits a GenericNameSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitGlobalStatement(GlobalStatementSyntax)

Called when the visitor visits a GlobalStatementSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitGotoStatement(GotoStatementSyntax)

Called when the visitor visits a GotoStatementSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitGroupClause(GroupClauseSyntax)

Called when the visitor visits a GroupClauseSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitIdentifierName(IdentifierNameSyntax)

Called when the visitor visits a IdentifierNameSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitIfDirectiveTrivia(IfDirectiveTriviaSyntax)

Called when the visitor visits a IfDirectiveTriviaSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitIfStatement(IfStatementSyntax)

Called when the visitor visits a IfStatementSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitImplicitArrayCreationExpression(ImplicitArrayCreationExpressionSyntax)

Called when the visitor visits a ImplicitArrayCreationExpressionSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitImplicitElementAccess(ImplicitElementAccessSyntax)

Called when the visitor visits a ImplicitElementAccessSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitImplicitObjectCreationExpression(ImplicitObjectCreationExpressionSyntax)

Called when the visitor visits a ImplicitObjectCreationExpressionSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitImplicitStackAllocArrayCreationExpression(ImplicitStackAllocArrayCreationExpressionSyntax)

Called when the visitor visits a ImplicitStackAllocArrayCreationExpressionSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitIncompleteMember(IncompleteMemberSyntax)

Called when the visitor visits a IncompleteMemberSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitIndexerDeclaration(IndexerDeclarationSyntax)

Called when the visitor visits a IndexerDeclarationSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitIndexerMemberCref(IndexerMemberCrefSyntax)

Called when the visitor visits a IndexerMemberCrefSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitInitializerExpression(InitializerExpressionSyntax)

Called when the visitor visits a InitializerExpressionSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitInterfaceDeclaration(InterfaceDeclarationSyntax)

Called when the visitor visits a InterfaceDeclarationSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitInterpolatedStringExpression(InterpolatedStringExpressionSyntax)

Called when the visitor visits a InterpolatedStringExpressionSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitInterpolatedStringText(InterpolatedStringTextSyntax)

Called when the visitor visits a InterpolatedStringTextSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitInterpolation(InterpolationSyntax)

Called when the visitor visits a InterpolationSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitInterpolationAlignmentClause(InterpolationAlignmentClauseSyntax)

Called when the visitor visits a InterpolationAlignmentClauseSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitInterpolationFormatClause(InterpolationFormatClauseSyntax)

Called when the visitor visits a InterpolationFormatClauseSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitInvocationExpression(InvocationExpressionSyntax)

Called when the visitor visits a InvocationExpressionSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitIsPatternExpression(IsPatternExpressionSyntax)

Called when the visitor visits a IsPatternExpressionSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitJoinClause(JoinClauseSyntax)

Called when the visitor visits a JoinClauseSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitJoinIntoClause(JoinIntoClauseSyntax)

Called when the visitor visits a JoinIntoClauseSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitLabeledStatement(LabeledStatementSyntax)

Called when the visitor visits a LabeledStatementSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitLeadingTrivia(SyntaxToken)
VisitLetClause(LetClauseSyntax)

Called when the visitor visits a LetClauseSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitLineDirectivePosition(LineDirectivePositionSyntax)

Called when the visitor visits a LineDirectivePositionSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitLineDirectiveTrivia(LineDirectiveTriviaSyntax)

Called when the visitor visits a LineDirectiveTriviaSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitLineSpanDirectiveTrivia(LineSpanDirectiveTriviaSyntax)

Called when the visitor visits a LineSpanDirectiveTriviaSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitListPattern(ListPatternSyntax)

Called when the visitor visits a ListPatternSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitLiteralExpression(LiteralExpressionSyntax)

Called when the visitor visits a LiteralExpressionSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitLoadDirectiveTrivia(LoadDirectiveTriviaSyntax)

Called when the visitor visits a LoadDirectiveTriviaSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitLocalDeclarationStatement(LocalDeclarationStatementSyntax)

Called when the visitor visits a LocalDeclarationStatementSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitLocalFunctionStatement(LocalFunctionStatementSyntax)

Called when the visitor visits a LocalFunctionStatementSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitLockStatement(LockStatementSyntax)

Called when the visitor visits a LockStatementSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitMakeRefExpression(MakeRefExpressionSyntax)

Called when the visitor visits a MakeRefExpressionSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitMemberAccessExpression(MemberAccessExpressionSyntax)

Called when the visitor visits a MemberAccessExpressionSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitMemberBindingExpression(MemberBindingExpressionSyntax)

Called when the visitor visits a MemberBindingExpressionSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitMethodDeclaration(MethodDeclarationSyntax)

Called when the visitor visits a MethodDeclarationSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitNameColon(NameColonSyntax)

Called when the visitor visits a NameColonSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitNameEquals(NameEqualsSyntax)

Called when the visitor visits a NameEqualsSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitNameMemberCref(NameMemberCrefSyntax)

Called when the visitor visits a NameMemberCrefSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitNamespaceDeclaration(NamespaceDeclarationSyntax)

Called when the visitor visits a NamespaceDeclarationSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitNullableDirectiveTrivia(NullableDirectiveTriviaSyntax)

Called when the visitor visits a NullableDirectiveTriviaSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitNullableType(NullableTypeSyntax)

Called when the visitor visits a NullableTypeSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitObjectCreationExpression(ObjectCreationExpressionSyntax)

Called when the visitor visits a ObjectCreationExpressionSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitOmittedArraySizeExpression(OmittedArraySizeExpressionSyntax)

Called when the visitor visits a OmittedArraySizeExpressionSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitOmittedTypeArgument(OmittedTypeArgumentSyntax)

Called when the visitor visits a OmittedTypeArgumentSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitOperatorDeclaration(OperatorDeclarationSyntax)

Called when the visitor visits a OperatorDeclarationSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitOperatorMemberCref(OperatorMemberCrefSyntax)

Called when the visitor visits a OperatorMemberCrefSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitOrderByClause(OrderByClauseSyntax)

Called when the visitor visits a OrderByClauseSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitOrdering(OrderingSyntax)

Called when the visitor visits a OrderingSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitParameter(ParameterSyntax)

Called when the visitor visits a ParameterSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitParameterList(ParameterListSyntax)

Called when the visitor visits a ParameterListSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitParenthesizedExpression(ParenthesizedExpressionSyntax)

Called when the visitor visits a ParenthesizedExpressionSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitParenthesizedLambdaExpression(ParenthesizedLambdaExpressionSyntax)

Called when the visitor visits a ParenthesizedLambdaExpressionSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitParenthesizedPattern(ParenthesizedPatternSyntax)

Called when the visitor visits a ParenthesizedPatternSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitParenthesizedVariableDesignation(ParenthesizedVariableDesignationSyntax)

Called when the visitor visits a ParenthesizedVariableDesignationSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitPointerType(PointerTypeSyntax)

Called when the visitor visits a PointerTypeSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitPositionalPatternClause(PositionalPatternClauseSyntax)

Called when the visitor visits a PositionalPatternClauseSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitPostfixUnaryExpression(PostfixUnaryExpressionSyntax)

Called when the visitor visits a PostfixUnaryExpressionSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitPragmaChecksumDirectiveTrivia(PragmaChecksumDirectiveTriviaSyntax)

Called when the visitor visits a PragmaChecksumDirectiveTriviaSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitPragmaWarningDirectiveTrivia(PragmaWarningDirectiveTriviaSyntax)

Called when the visitor visits a PragmaWarningDirectiveTriviaSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitPredefinedType(PredefinedTypeSyntax)

Called when the visitor visits a PredefinedTypeSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitPrefixUnaryExpression(PrefixUnaryExpressionSyntax)

Called when the visitor visits a PrefixUnaryExpressionSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitPrimaryConstructorBaseType(PrimaryConstructorBaseTypeSyntax)

Called when the visitor visits a PrimaryConstructorBaseTypeSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitPropertyDeclaration(PropertyDeclarationSyntax)

Called when the visitor visits a PropertyDeclarationSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitPropertyPatternClause(PropertyPatternClauseSyntax)

Called when the visitor visits a PropertyPatternClauseSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitQualifiedCref(QualifiedCrefSyntax)

Called when the visitor visits a QualifiedCrefSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitQualifiedName(QualifiedNameSyntax)

Called when the visitor visits a QualifiedNameSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitQueryBody(QueryBodySyntax)

Called when the visitor visits a QueryBodySyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitQueryContinuation(QueryContinuationSyntax)

Called when the visitor visits a QueryContinuationSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitQueryExpression(QueryExpressionSyntax)

Called when the visitor visits a QueryExpressionSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitRangeExpression(RangeExpressionSyntax)

Called when the visitor visits a RangeExpressionSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitRecordDeclaration(RecordDeclarationSyntax)

Called when the visitor visits a RecordDeclarationSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitRecursivePattern(RecursivePatternSyntax)

Called when the visitor visits a RecursivePatternSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitReferenceDirectiveTrivia(ReferenceDirectiveTriviaSyntax)

Called when the visitor visits a ReferenceDirectiveTriviaSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitRefExpression(RefExpressionSyntax)

Called when the visitor visits a RefExpressionSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitRefStructConstraint(RefStructConstraintSyntax)

Called when the visitor visits a RefStructConstraintSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitRefType(RefTypeSyntax)

Called when the visitor visits a RefTypeSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitRefTypeExpression(RefTypeExpressionSyntax)

Called when the visitor visits a RefTypeExpressionSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitRefValueExpression(RefValueExpressionSyntax)

Called when the visitor visits a RefValueExpressionSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitRegionDirectiveTrivia(RegionDirectiveTriviaSyntax)

Called when the visitor visits a RegionDirectiveTriviaSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitRelationalPattern(RelationalPatternSyntax)

Called when the visitor visits a RelationalPatternSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitReturnStatement(ReturnStatementSyntax)

Called when the visitor visits a ReturnStatementSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitScopedType(ScopedTypeSyntax)

Called when the visitor visits a ScopedTypeSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitSelectClause(SelectClauseSyntax)

Called when the visitor visits a SelectClauseSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitShebangDirectiveTrivia(ShebangDirectiveTriviaSyntax)

Called when the visitor visits a ShebangDirectiveTriviaSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitSimpleBaseType(SimpleBaseTypeSyntax)

Called when the visitor visits a SimpleBaseTypeSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitSimpleLambdaExpression(SimpleLambdaExpressionSyntax)

Called when the visitor visits a SimpleLambdaExpressionSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitSingleVariableDesignation(SingleVariableDesignationSyntax)

Called when the visitor visits a SingleVariableDesignationSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitSizeOfExpression(SizeOfExpressionSyntax)

Called when the visitor visits a SizeOfExpressionSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitSkippedTokensTrivia(SkippedTokensTriviaSyntax)

Called when the visitor visits a SkippedTokensTriviaSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitSlicePattern(SlicePatternSyntax)

Called when the visitor visits a SlicePatternSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitSpreadElement(SpreadElementSyntax)

Called when the visitor visits a SpreadElementSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitStackAllocArrayCreationExpression(StackAllocArrayCreationExpressionSyntax)

Called when the visitor visits a StackAllocArrayCreationExpressionSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitStructDeclaration(StructDeclarationSyntax)

Called when the visitor visits a StructDeclarationSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitSubpattern(SubpatternSyntax)

Called when the visitor visits a SubpatternSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitSwitchExpression(SwitchExpressionSyntax)

Called when the visitor visits a SwitchExpressionSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitSwitchExpressionArm(SwitchExpressionArmSyntax)

Called when the visitor visits a SwitchExpressionArmSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitSwitchSection(SwitchSectionSyntax)

Called when the visitor visits a SwitchSectionSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitSwitchStatement(SwitchStatementSyntax)

Called when the visitor visits a SwitchStatementSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitThisExpression(ThisExpressionSyntax)

Called when the visitor visits a ThisExpressionSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitThrowExpression(ThrowExpressionSyntax)

Called when the visitor visits a ThrowExpressionSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitThrowStatement(ThrowStatementSyntax)

Called when the visitor visits a ThrowStatementSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitToken(SyntaxToken)
VisitTrailingTrivia(SyntaxToken)
VisitTrivia(SyntaxTrivia)
VisitTryStatement(TryStatementSyntax)

Called when the visitor visits a TryStatementSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitTupleElement(TupleElementSyntax)

Called when the visitor visits a TupleElementSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitTupleExpression(TupleExpressionSyntax)

Called when the visitor visits a TupleExpressionSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitTupleType(TupleTypeSyntax)

Called when the visitor visits a TupleTypeSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitTypeArgumentList(TypeArgumentListSyntax)

Called when the visitor visits a TypeArgumentListSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitTypeConstraint(TypeConstraintSyntax)

Called when the visitor visits a TypeConstraintSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitTypeCref(TypeCrefSyntax)

Called when the visitor visits a TypeCrefSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitTypeOfExpression(TypeOfExpressionSyntax)

Called when the visitor visits a TypeOfExpressionSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitTypeParameter(TypeParameterSyntax)

Called when the visitor visits a TypeParameterSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitTypeParameterConstraintClause(TypeParameterConstraintClauseSyntax)

Called when the visitor visits a TypeParameterConstraintClauseSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitTypeParameterList(TypeParameterListSyntax)

Called when the visitor visits a TypeParameterListSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitTypePattern(TypePatternSyntax)

Called when the visitor visits a TypePatternSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitUnaryPattern(UnaryPatternSyntax)

Called when the visitor visits a UnaryPatternSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitUndefDirectiveTrivia(UndefDirectiveTriviaSyntax)

Called when the visitor visits a UndefDirectiveTriviaSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitUnsafeStatement(UnsafeStatementSyntax)

Called when the visitor visits a UnsafeStatementSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitUsingDirective(UsingDirectiveSyntax)

Called when the visitor visits a UsingDirectiveSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitUsingStatement(UsingStatementSyntax)

Called when the visitor visits a UsingStatementSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitVariableDeclaration(VariableDeclarationSyntax)

Called when the visitor visits a VariableDeclarationSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitVariableDeclarator(VariableDeclaratorSyntax)

Called when the visitor visits a VariableDeclaratorSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitVarPattern(VarPatternSyntax)

Called when the visitor visits a VarPatternSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitWarningDirectiveTrivia(WarningDirectiveTriviaSyntax)

Called when the visitor visits a WarningDirectiveTriviaSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitWhenClause(WhenClauseSyntax)

Called when the visitor visits a WhenClauseSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitWhereClause(WhereClauseSyntax)

Called when the visitor visits a WhereClauseSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitWhileStatement(WhileStatementSyntax)

Called when the visitor visits a WhileStatementSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitWithExpression(WithExpressionSyntax)

Called when the visitor visits a WithExpressionSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitXmlCDataSection(XmlCDataSectionSyntax)

Called when the visitor visits a XmlCDataSectionSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitXmlComment(XmlCommentSyntax)

Called when the visitor visits a XmlCommentSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitXmlCrefAttribute(XmlCrefAttributeSyntax)

Called when the visitor visits a XmlCrefAttributeSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitXmlElement(XmlElementSyntax)

Called when the visitor visits a XmlElementSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitXmlElementEndTag(XmlElementEndTagSyntax)

Called when the visitor visits a XmlElementEndTagSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitXmlElementStartTag(XmlElementStartTagSyntax)

Called when the visitor visits a XmlElementStartTagSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitXmlEmptyElement(XmlEmptyElementSyntax)

Called when the visitor visits a XmlEmptyElementSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitXmlName(XmlNameSyntax)

Called when the visitor visits a XmlNameSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitXmlNameAttribute(XmlNameAttributeSyntax)

Called when the visitor visits a XmlNameAttributeSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitXmlPrefix(XmlPrefixSyntax)

Called when the visitor visits a XmlPrefixSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitXmlProcessingInstruction(XmlProcessingInstructionSyntax)

Called when the visitor visits a XmlProcessingInstructionSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitXmlText(XmlTextSyntax)

Called when the visitor visits a XmlTextSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitXmlTextAttribute(XmlTextAttributeSyntax)

Called when the visitor visits a XmlTextAttributeSyntax node.

(Inherited from CSharpSyntaxVisitor)
VisitYieldStatement(YieldStatementSyntax)

Called when the visitor visits a YieldStatementSyntax node.

(Inherited from CSharpSyntaxVisitor)

Applies to