use of org.eclipse.xtext.common.types.impl.JvmDeclaredTypeImplCustom in project xtext-xtend by eclipse.
the class XtendImportedNamespaceScopeProvider method doGetAllDescriptions.
private void doGetAllDescriptions(JvmDeclaredType type, List<IEObjectDescription> descriptions) {
descriptions.add(EObjectDescription.create(getQualifiedNameConverter().toQualifiedName(type.getIdentifier()), type));
EList<JvmMember> members = null;
if (type instanceof JvmDeclaredTypeImplCustom) {
members = ((JvmDeclaredTypeImplCustom) type).basicGetMembers();
} else {
members = type.getMembers();
}
for (JvmMember member : members) {
if (member instanceof JvmDeclaredType) {
// add nested types also with the dot delimiter
descriptions.add(EObjectDescription.create(getQualifiedNameConverter().toQualifiedName(member.getQualifiedName('.')), member));
doGetAllDescriptions((JvmDeclaredType) member, descriptions);
}
}
}
Aggregations