[MonoDevelop] Help with some sequence of calls

José Cornado jose.cornado at gmail.com
Sun Mar 12 00:15:00 UTC 2017


I am trying to find which Type the document cursor is currently located.

To accomplish this I am trying the following:

DocumentRegion dr;
Document sf = IdeApp.Workbench.ActiveDocument;

Microsoft.CodeAnalysis.ISymbol s
= sf.GetLanguageItem(sf.Editor.CaretOffset  , out dr);

s is always the Equals method from System.Object. Am I using CaretOffset

Thanks a lot in advance!

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.dot.net/pipermail/monodevelop-list/attachments/20170311/2d7c6632/attachment.html>

More information about the Monodevelop-list mailing list