Home Download Buy Blog Forum Support

extracting language specific scope of a point

extracting language specific scope of a point

Postby acrilige on Sat Oct 12, 2013 11:29 am

Hi.

Is there any api to extract scope of a given point in file?

For example, I want to get class and method names from file (cs):

Code: Select all
class A
{
   public void M()
   {
      int i =3; // <-- point is here
   }
}


And get the result that looks something like "A:M"

Didn't find any in documentation. May be the only way to get this is parsing by myself or with 3d party libraries?
I know that it's a difficult task, just was wondering if st3 has it in any form?

Thanx for help.
acrilige
 
Posts: 2
Joined: Sat Oct 12, 2013 11:26 am

Re: extracting language specific scope of a point

Postby facelessuser on Mon Oct 14, 2013 7:21 pm

facelessuser
 
Posts: 1576
Joined: Tue Apr 05, 2011 7:38 pm

Re: extracting language specific scope of a point

Postby subhaze on Mon Oct 14, 2013 9:21 pm

ctrl+shift+p will display the scope at the cursor in the status area
subhaze
 
Posts: 239
Joined: Tue Apr 09, 2013 3:22 am


Return to Plugin Development

Who is online

Users browsing this forum: Yahoo [Bot] and 7 guests