private StringBuilder DisplayClassStatementWalkerVB(StringBuilder sb, SyntaxTree tree) { VNC.CodeAnalysis.SyntaxWalkers.VB.VNCVBSyntaxWalkerBase walker = null; //if ((bool)ceShowClassBlock.IsChecked) //{ // walker = new VNC.CodeAnalysis.SyntaxWalkers.VB.ClassBlock(); //} //else //{ walker = new VNC.CodeAnalysis.SyntaxWalkers.VB.ClassStatement(); //} //return InvokeVNCSyntaxWalker(sb, // (bool)ceClassStatementUseRegEx.IsChecked, teClassStatementRegEx.Text, // tree, walker); return(InvokeVNCSyntaxWalker(sb, false, "", tree, walker)); }
private StringBuilder DisplayClassStatementWalkerVB(VNCCA.SearchTreeCommandConfiguration commandConfiguration) { long startTicks = Log.Trace15("Enter", Common.LOG_APPNAME); VNCSW.VB.VNCVBSyntaxWalkerBase walker = null; if ((bool)ceShowClassBlock.IsChecked) { walker = new VNCSW.VB.ClassBlock(); } else { walker = new VNCSW.VB.ClassStatement(); } commandConfiguration.WalkerPattern.UseRegEx = (bool)ceClassStatementUseRegEx.IsChecked; commandConfiguration.WalkerPattern.RegEx = teClassStatementRegEx.Text; commandConfiguration.CodeAnalysisOptions = CodeExplorer.configurationOptions.GetConfigurationInfo(); Log.Trace15("Exit", Common.LOG_APPNAME, startTicks); return(VNCCA.Helpers.VB.InvokeVNCSyntaxWalker(walker, commandConfiguration)); }