[MonoDevelop] Knowing in which method the cursor is

Alexandre Miguel Pedro Gomes alexmipego at gmail.com
Sun Feb 5 16:38:34 EST 2006


Yes, there is, But the fact is that that code is not accurate and is all
messed up. The values aren't right and in some cases, depending on what you
want, they don't give you the information you need.

I've sent Luis a patch that fixed most of that issues and added Code Folding
and a "Current class/method position" toolbar similar to the Visual Studio.
The problem is that the patch was for a previous version of MonoDevelop and
there was a big refactoring... so, ask Luis if and when he will merge it.

Most of the time you can use the BodyRegion property, for instance if you
have a method you can do
mymethod.BodyRegion.BeginLine/BeginColumn/EndLine/EndColumn
- now I'm seeing the code and there is a IsInside (row, column) method...
maybe you can use it I dunno if it is implemented/working.

You can check all this stuff in
monodevelop/Core/src/MonoDevelop.Projects/MonoDevelop.Projects.Parser and
probably using monodoc (if you install the docs for monodevelop).

On 2/5/06, Alejandro Serrano <trupill at yahoo.es> wrote:
>
> Is there any way to know, in the Resolve() method my language binding,
> in which method/property I am, based on the type tree created on the
> Parse method?
>
> Thanks in advance,
> Serras
>
>
> ______________________________________________
> LLama Gratis a cualquier PC del Mundo.
> Llamadas a fijos y móviles desde 1 céntimo por minuto.
> http://es.voice.yahoo.com
> _______________________________________________
> Monodevelop-list mailing list
> Monodevelop-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monodevelop-list
>



--
Alexandre Gomes, Portugal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/monodevelop-list/attachments/20060205/f76a688a/attachment.html


More information about the Monodevelop-list mailing list