Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Methode Visibility in AST

The easiest way to get this information is to resolve the semantic IBinding for the method name.  The resulting ICPPMethod extends ICPPMember which provides a getVisibility() method.

In the syntax tree itself, the ICPPASTVisibilityLabel is a declaration, and you need to walk the tree backwards from the method declaration to find the previous visibility label and if you find none, you have either private or public depending on if you are in a class or struct.


Leo Büttiker <lbuettik@xxxxxx>
Sent by: cdt-dev-bounces@xxxxxxxxxxx

05/12/2006 05:21 AM

Please respond to
"CDT General developers list." <cdt-dev@xxxxxxxxxxx>

[cdt-dev] Methode Visibility in AST

Hi all,
We currently working hard to implement refactoring with the DOM-AST. Is there
currently a possibility to get the visibility of a method? If not, we try to
implement this.
cdt-dev mailing list

Back to the top