You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Is VisitBaseType internal field used consistently? #144
While diving deep into debugging my app I accidentally have noticed this: TSqlFragmentVisitor final code contains many blocks which check of VisitBaseType internal field value and if it is true then Visit method for base types is called, but for some sql-fragment classes Visit method implementation has this check negated and the behavior is reversed:
// Summary:// Visitor for DeclareCursorStatementpublicvirtualvoidVisit(DeclareCursorStatementnode){if(!VisitBaseType)<<<---here{Visit((TSqlFragment)node);}}//// Summary:// Explicit Visitor for DeclareCursorStatementpublicvirtualvoidExplicitVisit(DeclareCursorStatementnode){if(VisitBaseType){Visit((TSqlStatement)node);Visit((TSqlFragment)node);}Visit(node);node.AcceptChildren(this);}
Is this expected behavior? If so, please clarify what was the intent, how VisitBaseType should be understood.
Activity