But if method A calls method B, which in turn calls method B,
that is still recursion.

The best way is to build a graph structure of dependencies.
Any loop (ie. a non-tree structure, where a child references the parent
again ) is a recursion.

On Wed, May 27, 2009 at 9:40 AM, Benj Nunez <[email protected]> wrote:

>
> "I'd like to run a sort of code analisys to find methods that use
> recursion. "
>
> If you're parsing at the source code level for example, try to get all
> the methods/
> routines by their names. Once you get their method names,
> you need to write code that will actually go over inside *each method*
> and see
> if the method name gets called *again* from within itself. If you
> happen to find one, then you
> know that *that* method is performing a recursion. ;)
>
> Cheers!
>
> Benj
>
>
>
> On May 26, 5:43 pm, Emilio <[email protected]> wrote:
> > Good morning to everyone,
> >
> > I'm working about a Visual Studio project composed by many classes.
> > I'd like to run a sort of code analisys to find methods that use
> > recursion.
> >
> > Is it possibile with visual studio to reach thi goal?
> >
> > Best regards, Emilio.
>

Reply via email to