From df1f5eef72724d0cf27237607ee95c30d07f1b7b Mon Sep 17 00:00:00 2001 From: wechman Date: Tue, 2 Aug 2022 08:25:01 +0200 Subject: [PATCH] UsingForDirective: Rename m_functions to m_functionsOrLibrary --- libsolidity/ast/AST.h | 8 ++++---- libsolidity/ast/AST_accept.h | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/libsolidity/ast/AST.h b/libsolidity/ast/AST.h index d6e41bb5f..f5680acbc 100644 --- a/libsolidity/ast/AST.h +++ b/libsolidity/ast/AST.h @@ -663,13 +663,13 @@ public: UsingForDirective( int64_t _id, SourceLocation const& _location, - std::vector> _functions, + std::vector> _functionsOrLibrary, bool _usesBraces, ASTPointer _typeName, bool _global ): ASTNode(_id, _location), - m_functions(_functions), + m_functionsOrLibrary(std::move(_functionsOrLibrary)), m_usesBraces(_usesBraces), m_typeName(std::move(_typeName)), m_global{_global} @@ -683,13 +683,13 @@ public: TypeName const* typeName() const { return m_typeName.get(); } /// @returns a list of functions or the single library. - std::vector> const& functionsOrLibrary() const { return m_functions; } + std::vector> const& functionsOrLibrary() const { return m_functionsOrLibrary; } bool usesBraces() const { return m_usesBraces; } bool global() const { return m_global; } private: /// Either the single library or a list of functions. - std::vector> m_functions; + std::vector> m_functionsOrLibrary; bool m_usesBraces; ASTPointer m_typeName; bool m_global = false; diff --git a/libsolidity/ast/AST_accept.h b/libsolidity/ast/AST_accept.h index 6dab08f00..78dc0e5dd 100644 --- a/libsolidity/ast/AST_accept.h +++ b/libsolidity/ast/AST_accept.h @@ -194,7 +194,7 @@ void UsingForDirective::accept(ASTVisitor& _visitor) { if (_visitor.visit(*this)) { - listAccept(functionsOrLibrary(), _visitor); + listAccept(m_functionsOrLibrary, _visitor); if (m_typeName) m_typeName->accept(_visitor); } @@ -205,7 +205,7 @@ void UsingForDirective::accept(ASTConstVisitor& _visitor) const { if (_visitor.visit(*this)) { - listAccept(functionsOrLibrary(), _visitor); + listAccept(m_functionsOrLibrary, _visitor); if (m_typeName) m_typeName->accept(_visitor); }