C++: add predicate to Namespace class to retrieve associated attributes

This commit is contained in:
idrissrio
2025-06-16 11:41:01 +02:00
parent b112b93d75
commit e6f118374f

View File

@@ -99,6 +99,11 @@ class Namespace extends NameQualifyingElement, @namespace {
/** Gets a file which declares (part of) this namespace. */
File getAFile() { result = this.getADeclarationEntry().getLocation().getFile() }
/** Gets an attribute of this namespace. */
Attribute getAnAttribute() {
namespaceattributes(underlyingElement(this), unresolveElement(result))
}
}
/**