Menu

Get filename from TBaseTreeNodeVisitor

Developers
2008-10-05
2013-05-23
  • Denis Golovan

    Denis Golovan - 2008-10-05

    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

     
    • Anthony Steele

      Anthony Steele - 2008-10-05

      I hadn't really thought about input from stdin.

       
    • Anthony Steele

      Anthony Steele - 2008-10-05

      Hm, the TFileConverter knows the file name, but the individual processes don't. They haven't needed to before how.

       
      • Denis Golovan

        Denis Golovan - 2008-10-06

        >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

         
    • Denis Golovan

      Denis Golovan - 2008-10-06

      >Seems like today (revision 672) it's so easy.

      I meant NOT so easy.

       
      • Anthony Steele

        Anthony Steele - 2008-10-07

        I have checked in some code. The TSourceToken now has a FileName property, should be populated.

         
        • Denis Golovan

          Denis Golovan - 2008-10-09

          Thanks, Anthony. I'll check it asap.

          Best regards,
          Denis

           
        • Denis Golovan

          Denis Golovan - 2008-10-10

          Thanks. Seems like it works ok. I'll do some additional checking though.
          Original token lines is our next step :)

          Best regards,
          Denis

           

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.