@@ -12,8 +12,7 @@ public interface IAstVisited
12
12
bool AlreadyVisited ( Type type ) ;
13
13
}
14
14
15
- public interface IAstVisitor < out T > : ITypeVisitor < T > ,
16
- IDeclVisitor < T > , IStmtVisitor < T >
15
+ public interface IAstVisitor < out T > : ITypeVisitor < T > , IDeclVisitor < T > , IStmtVisitor < T >
17
16
{
18
17
AstVisitorOptions VisitOptions { get ; }
19
18
}
@@ -307,17 +306,17 @@ public virtual bool VisitPackExpansionType(PackExpansionType packExpansionType,
307
306
return true ;
308
307
}
309
308
310
- public bool VisitUnaryTransformType ( UnaryTransformType unaryTransformType , TypeQualifiers quals )
309
+ public virtual bool VisitUnaryTransformType ( UnaryTransformType unaryTransformType , TypeQualifiers quals )
311
310
{
312
311
return true ;
313
312
}
314
313
315
- public bool VisitUnresolvedUsingType ( UnresolvedUsingType unresolvedUsingType , TypeQualifiers quals )
314
+ public virtual bool VisitUnresolvedUsingType ( UnresolvedUsingType unresolvedUsingType , TypeQualifiers quals )
316
315
{
317
316
return true ;
318
317
}
319
318
320
- public bool VisitVectorType ( VectorType vectorType , TypeQualifiers quals )
319
+ public virtual bool VisitVectorType ( VectorType vectorType , TypeQualifiers quals )
321
320
{
322
321
return true ;
323
322
}
@@ -443,7 +442,7 @@ public virtual bool VisitProperty(Property property)
443
442
return true ;
444
443
}
445
444
446
- public bool VisitFriend ( Friend friend )
445
+ public virtual bool VisitFriend ( Friend friend )
447
446
{
448
447
if ( ! VisitDeclaration ( friend ) )
449
448
return false ;
@@ -480,7 +479,7 @@ public virtual bool VisitParameterDecl(Parameter parameter)
480
479
return parameter . Type . Visit ( this , parameter . QualifiedType . Qualifiers ) ;
481
480
}
482
481
483
- public bool VisitTypedefNameDecl ( TypedefNameDecl typedef )
482
+ public virtual bool VisitTypedefNameDecl ( TypedefNameDecl typedef )
484
483
{
485
484
if ( ! VisitDeclaration ( typedef ) )
486
485
return false ;
@@ -493,7 +492,7 @@ public virtual bool VisitTypedefDecl(TypedefDecl typedef)
493
492
return VisitTypedefNameDecl ( typedef ) ;
494
493
}
495
494
496
- public bool VisitTypeAliasDecl ( TypeAlias typeAlias )
495
+ public virtual bool VisitTypeAliasDecl ( TypeAlias typeAlias )
497
496
{
498
497
return VisitTypedefNameDecl ( typeAlias ) ;
499
498
}
@@ -584,7 +583,7 @@ public virtual bool VisitFunctionTemplateSpecializationDecl(FunctionTemplateSpec
584
583
return specialization . SpecializedFunction . Visit ( this ) ;
585
584
}
586
585
587
- public bool VisitVarTemplateDecl ( VarTemplate template )
586
+ public virtual bool VisitVarTemplateDecl ( VarTemplate template )
588
587
{
589
588
if ( ! VisitDeclaration ( template ) )
590
589
return false ;
@@ -600,7 +599,7 @@ public bool VisitVarTemplateDecl(VarTemplate template)
600
599
return true ;
601
600
}
602
601
603
- public bool VisitVarTemplateSpecializationDecl ( VarTemplateSpecialization specialization )
602
+ public virtual bool VisitVarTemplateSpecializationDecl ( VarTemplateSpecialization specialization )
604
603
{
605
604
return VisitVariableDecl ( specialization ) ;
606
605
}
@@ -664,7 +663,7 @@ public virtual bool VisitEvent(Event @event)
664
663
return true ;
665
664
}
666
665
667
- public bool VisitTemplateTemplateParameterDecl ( TemplateTemplateParameter templateTemplateParameter )
666
+ public virtual bool VisitTemplateTemplateParameterDecl ( TemplateTemplateParameter templateTemplateParameter )
668
667
{
669
668
if ( ! VisitDeclaration ( templateTemplateParameter ) )
670
669
return false ;
@@ -683,15 +682,15 @@ public virtual bool VisitTemplateParameterDecl(TypeTemplateParameter templatePar
683
682
return true ;
684
683
}
685
684
686
- public bool VisitNonTypeTemplateParameterDecl ( NonTypeTemplateParameter nonTypeTemplateParameter )
685
+ public virtual bool VisitNonTypeTemplateParameterDecl ( NonTypeTemplateParameter nonTypeTemplateParameter )
687
686
{
688
687
if ( ! VisitDeclaration ( nonTypeTemplateParameter ) )
689
688
return false ;
690
689
691
690
return true ;
692
691
}
693
692
694
- public bool VisitUnresolvedUsingDecl ( UnresolvedUsingTypename unresolvedUsingTypename )
693
+ public virtual bool VisitUnresolvedUsingDecl ( UnresolvedUsingTypename unresolvedUsingTypename )
695
694
{
696
695
if ( ! VisitDeclaration ( unresolvedUsingTypename ) )
697
696
return false ;
0 commit comments