use of org.eclipse.n4js.scoping.accessModifiers.MemberVisibilityChecker.MemberVisibility in project n4js by eclipse.
the class VisibilityAwareMemberScope method isAccepted.
@Override
protected boolean isAccepted(IEObjectDescription description) {
EObject proxyOrInstance = description.getEObjectOrProxy();
if (proxyOrInstance != null && !proxyOrInstance.eIsProxy()) {
if (proxyOrInstance instanceof TMember) {
TMember member = (TMember) proxyOrInstance;
MemberVisibility result = checker.isVisible(context, receiverType, member);
if (!result.visibility)
this.accessModifierSuggestionStore.put(description.getEObjectURI().toString(), result.accessModifierSuggestion);
return result.visibility;
} else if (proxyOrInstance instanceof TEnumLiteral) {
return checker.isEnumLiteralVisible(context, receiverType);
}
}
return true;
}
Aggregations