Lines 140-145
Link Here
|
140 |
*/ |
140 |
*/ |
141 |
public int getVisibility() throws DOMException { |
141 |
public int getVisibility() throws DOMException { |
142 |
IASTDeclaration decl = getPrimaryDeclaration(); |
142 |
IASTDeclaration decl = getPrimaryDeclaration(); |
|
|
143 |
if (decl == null) return ICPPASTVisiblityLabel.v_private; |
143 |
IASTCompositeTypeSpecifier cls = (IASTCompositeTypeSpecifier) decl.getParent(); |
144 |
IASTCompositeTypeSpecifier cls = (IASTCompositeTypeSpecifier) decl.getParent(); |
144 |
IASTDeclaration [] members = cls.getMembers(); |
145 |
IASTDeclaration [] members = cls.getMembers(); |
145 |
ICPPASTVisiblityLabel vis = null; |
146 |
ICPPASTVisiblityLabel vis = null; |