// The library will be null if the directive containing the combinators has a URI that is not
// valid.
//
return;
}
Namespace namespace = new NamespaceBuilder().createExportNamespaceForLibrary(library);
for (Combinator combinator : combinators) {
NodeList<SimpleIdentifier> names;
if (combinator instanceof HideCombinator) {
names = ((HideCombinator) combinator).getHiddenNames();
} else {
names = ((ShowCombinator) combinator).getShownNames();
}
for (SimpleIdentifier name : names) {
String nameStr = name.getName();
Element element = namespace.get(nameStr);
if (element == null) {
element = namespace.get(nameStr + "=");
}
if (element != null) {
// Ensure that the name always resolves to a top-level variable
// rather than a getter or setter
if (element instanceof PropertyAccessorElement) {