StringBuilder InvokeVNCSyntaxWalker( StringBuilder sb, Boolean useRegEx, string regEx, SyntaxTree syntaxTree, VNC.CodeAnalysis.SyntaxWalkers.VB.VNCVBSyntaxWalkerBase walker) { walker.Messages = sb; //walker.DisplayClassOrModuleName = (bool)ceDisplayClassOrModuleName.IsChecked; //walker.DisplayMethodName = (bool)ceDisplayMethodName.IsChecked; //walker.DisplayClassOrModuleName = true; //walker.DisplayMethodName = true; //if (useRegEx) //{ // walker.IdentifierNames = regEx; //} //else //{ // walker.IdentifierNames = ".*"; //} //walker.InitializeRegEx(); //walker.Visit(syntaxTree.GetRoot()); return(sb); }
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)); }