Mirko, Thanks for the quick response. I was out of action on this.
The ReWriter uses the NodeVisitor for parsing the ruby script. Now when I get the event for DefnNode, the visibility for the node should be as per whats specified in the ruby script. It always returns private. thanks, pankaj On Fri, Oct 3, 2008 at 1:48 AM, Mirko Stocker <[EMAIL PROTECTED]> wrote: > Hi > > On Friday 03 October 2008 10:25:43 पंक्ज एम. तोलानी wrote: > > I am re-using ./src/org/jruby/ast/visitor/rewriter/ReWriteVisitor.java > > for my ruby script parsing needs. I had query regarding the DefnNode > > received in visitDefnNode(). the DefnNode does not seem to have the > > right visibility value. It is always PRIVATE irrespective of whether my > > method is private, protected or public. Am I missing something? > > I'm not sure I understand you correctly: you are writing source code and > you'd > expect the ReWriter to print out a private or protected section, is that > correct? If so (and if I remember correctly), the ReWriter doesn't do that > for you; the source code wouldn't look very nice if every method had its > own > private, etc. section. > > I hope this helps, > > Regards > > Mirko > -- पंकज एम तोलानी
