Extract referencedDeclaration as helper.

This commit is contained in:
chriseth
2021-03-24 17:01:50 +01:00
parent 13d3b35141
commit 99fcf62736
6 changed files with 28 additions and 30 deletions
+4
View File
@@ -112,6 +112,10 @@ public:
template <class T>
static std::vector<T const*> filteredNodes(std::vector<ASTPointer<ASTNode>> const& _nodes);
/// Extracts the referenced declaration from all nodes whose annotations support
/// `referencedDeclaration`.
static Declaration const* referencedDeclaration(Expression const& _expression);
/// Returns the source code location of this node.
SourceLocation const& location() const { return m_location; }