Exemplo n.º 1
0
        private StringBuilder DisplayNamespaceStatementWalkerVB(StringBuilder sb, SyntaxTree tree)
        {
            var walker = new VNC.CodeAnalysis.SyntaxWalkers.VB.NamespaceStatement();

            //return InvokeVNCSyntaxWalker(sb,
            //    (bool)ceNamespaceStatementUseRegEx.IsChecked, teNamespaceStatementRegEx.Text,
            //    tree, walker);

            return(InvokeVNCSyntaxWalker(sb,
                                         false, "",
                                         tree, walker));
        }
Exemplo n.º 2
0
        private StringBuilder DisplayNamespaceStatementWalkerVB(VNCCA.SearchTreeCommandConfiguration commandConfiguration)
        {
            long startTicks = Log.Trace15("Enter", Common.LOG_APPNAME);

            var walker = new VNCSW.VB.NamespaceStatement();

            //return VNCCA.Helpers.VB.InvokeVNCSyntaxWalker(sb,
            //    (bool)ceNamespaceStatementUseRegEx.IsChecked, teNamespaceStatementRegEx.Text,
            //    matches, crcMatchesToString, crcMatchesToFullString, tree, walker, CodeExplorer.configurationOptions.GetConfigurationInfo());

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

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

            return(VNCCA.Helpers.VB.InvokeVNCSyntaxWalker(walker,
                                                          commandConfiguration));
        }