Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] C function start and end Line using the eclipse CDT


Nearly all declarations implement IASTOffsetableElement which has accessors for offsets and line numbers.  
It's in the public interface of the parser.ast package.

JohnC
www.eclipse.org/cdt


cdt-dev-admin@xxxxxxxxxxx wrote on 07/16/2004 03:45:10 AM:

> Thanks , I did not notice that.
> Anyways which class/package look for that.
>
> Sunil Virmani
>
> When you select the element in the outline view, the name is what gets
> highlit, and that is on line 3.
> You will also, notice, however, that the left hand bar on the editor is
> darkened from the beginning to the end of the declaration.  This spans
> 1-6, and is fed through offset and line number information from the parser
> into the CModel.
>
> Thanks
> JohnC
> www.eclipse.org/cdt
>
>
> Disclaimer:
>
> This message and any attachment(s) contained here are information that is
> confidential,proprietary to HCL Technologies and its customers, privileged
> or otherwise protected by law.The information is solely intended for the
> individual or the entity it is addressed to. If you are not the intended
> recipient of this message, you are not authorized to read, forward,
> print,retain, copy or disseminate this message or any part of it. If you
> have received this e-mail in error, please notify the sender immediately by
> return e-mail and delete it from your computer.
>
>
> _______________________________________________
> cdt-dev mailing list
> cdt-dev@xxxxxxxxxxx
> http://dev.eclipse.org/mailman/listinfo/cdt-dev

Back to the top