Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Getting ASTNode from selecteddRegion in checkInitialConditions

I would suggest:
  - get the IASTTranslationUnit with getAst()
  - get an IASTNodeSelector with IASTTranslationUnit.getNodeSelector()
  - use IASTNodeSelector.findNode(offset, length), where the offset and length come from selectedRegion

Hope that helps!

Regards,
Nate

________________________________
> Date: Mon, 23 Nov 2015 02:11:35 +0100 
> From: krishna.nm86@xxxxxxxxx 
> To: cdt-dev@xxxxxxxxxxx 
> Subject: [cdt-dev] Getting ASTNode from selecteddRegion in  
> checkInitialConditions 
>  
> Hi, 
>     I would like to get the ASTNode pointed to by the selectedRegion. Is  
> it possible? 
>  
>  
>  
>  
> _______________________________________________ cdt-dev mailing list  
> cdt-dev@xxxxxxxxxxx To change your delivery options, retrieve your  
> password, or unsubscribe from this list, visit  
> https://dev.eclipse.org/mailman/listinfo/cdt-dev 
 		 	   		  

Back to the top