That's me again :).
I am patching now for emacs tag file and trying to get current filename.
I've inherited my class from TBaseTreeNodeVisitor as Anthony Steele told. So far so good, but now I must emit current filename in tags file. Seems like today (revision 672) it's so easy.
Can somebody help me? I need to access it in VisitSourceToken function.
P.S. I know file can come from stdin stream also :)
Thanks.
Best regards,
Denis
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi.
That's me again :).
I am patching now for emacs tag file and trying to get current filename.
I've inherited my class from TBaseTreeNodeVisitor as Anthony Steele told. So far so good, but now I must emit current filename in tags file. Seems like today (revision 672) it's so easy.
Can somebody help me? I need to access it in VisitSourceToken function.
P.S. I know file can come from stdin stream also :)
Thanks.
Best regards,
Denis
I hadn't really thought about input from stdin.
Hm, the TFileConverter knows the file name, but the individual processes don't. They haven't needed to before how.
>Hm, the TFileConverter knows the file name,
>but the individual processes don't. They haven't needed to before how.
Yeap, according to my investigations :) processes don't as well :)
Thanks.
Best regards,
Denis
>Seems like today (revision 672) it's so easy.
I meant NOT so easy.
I have checked in some code. The TSourceToken now has a FileName property, should be populated.
Thanks, Anthony. I'll check it asap.
Best regards,
Denis
Thanks. Seems like it works ok. I'll do some additional checking though.
Original token lines is our next step :)
Best regards,
Denis