Re: AST access to const modifier
Stefan Seefeld <[email protected]> Mon, 02 Jan 2006 20:16:57 -0500
| Newsgroups | gmane.comp.documentation.synopsis |
|---|---|
| Message-ID | <[email protected]> |
Hi Andreas, [Please don't hijack an existing thread by changing the subject. That will mess up the list archive. Thanks.] Andreas Fester wrote: > I tried something like > > def visitOperation(self, operation): > > for premod in operation.premodifier(): > print "PRE[" + premod + "]", > > for postmod in operation.postmodifier(): > print "POST[" + postmod + "]", > > premodifier() properly returns (only) the "virtual" modifier, > but postmodifier() is always empty. > Is there any other way to check if a method is "const"? That sounds like a bug, as the 'const' qualifier should indeed be available that way. Can you file a bug report ? Please register / login to do that, I'm going to disable anonymous submissions shortly as I get too many dummy reports. Thanks, Stefan