Ejemplo n.º 1
0
        private StringBuilder DisplayImportsStatementWalkerVB(StringBuilder sb, SyntaxTree tree)
        {
            var walker = new VNC.CodeAnalysis.SyntaxWalkers.VB.ImportsStatement();

            //return InvokeVNCSyntaxWalker(sb,
            //    (bool)ceImportsStatementUseRegEx.IsChecked, teImportsStatementRegEx.Text,
            //    tree, walker);

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

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

            //return VNCCA.Helpers.VB.InvokeVNCSyntaxWalkerOld(commandConfiguration.Results,
            //    (bool)ceImportsStatementUseRegEx.IsChecked, teImportsStatementRegEx.Text,
            //    commandConfiguration.Matches,
            //    commandConfiguration.CRCMatchesToString,
            //    commandConfiguration.CRCMatchesToFullString,
            //    commandConfiguration.SyntaxTree,
            //    walker,
            //    CodeExplorer.configurationOptions.GetConfigurationInfo());

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

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

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