示例#1
0
        private StringBuilder DisplayModuleStatementWalkerVB(VNCCA.SearchTreeCommandConfiguration commandConfiguration)
        {
            long startTicks = Log.Trace15("Enter", Common.LOG_APPNAME);

            VNCSW.VB.VNCVBTypedSyntaxWalkerBase walker = null;

            if ((bool)ceShowModuleBlock.IsChecked)
            {
                walker = new VNCSW.VB.ModuleBlock();
            }
            else
            {
                walker = new VNCSW.VB.ModuleStatement();
            }


            commandConfiguration.WalkerPattern.UseRegEx = (bool)ceModuleStatementUseRegEx.IsChecked;
            commandConfiguration.WalkerPattern.RegEx    = teModuleStatementRegEx.Text;
            commandConfiguration.CodeAnalysisOptions    = CodeExplorer.configurationOptions.GetConfigurationInfo();

            Log.Trace15("Exit", Common.LOG_APPNAME, startTicks);

            return(VNCCA.Helpers.VB.InvokeVNCSyntaxWalker(walker,
                                                          commandConfiguration));
        }
示例#2
0
        private StringBuilder DisplayModuleStatementWalkerVB(StringBuilder sb, SyntaxTree tree)
        {
            VNC.CodeAnalysis.SyntaxWalkers.VB.VNCVBTypedSyntaxWalkerBase walker = null;

            //if ((bool)ceShowModuleBlock.IsChecked)
            //{
            //    walker = new VNC.CodeAnalysis.SyntaxWalkers.VB.ModuleBlock();
            //}
            //else
            //{
            walker = new VNC.CodeAnalysis.SyntaxWalkers.VB.ModuleStatement();
            //}

            //return InvokeVNCSyntaxWalker(sb,
            //    (bool)ceModuleStatementUseRegEx.IsChecked, teModuleStatementRegEx.Text,
            //    tree, walker);

            return(InvokeVNCSyntaxWalker(sb,
                                         false, "",
                                         tree, walker));
        }