From kde-commits Thu Oct 25 12:15:05 2012 From: Alexander Dymo Date: Thu, 25 Oct 2012 12:15:05 +0000 To: kde-commits Subject: [kdev-ruby] duchain/builders: Usebuilder doesn't need to process requires, context builder does that Message-Id: <20121025121505.D56F4A60C4 () git ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=135116731412394 Git commit 910fe86102a9177e0419a531e8a9501905b140cb by Alexander Dymo. Committed on 25/10/2012 at 14:13. Pushed by dymo into branch 'master'. Usebuilder doesn't need to process requires, context builder does that M +6 -0 duchain/builders/usebuilder.cpp M +1 -0 duchain/builders/usebuilder.h http://commits.kde.org/kdev-ruby/910fe86102a9177e0419a531e8a9501905b140cb diff --git a/duchain/builders/usebuilder.cpp b/duchain/builders/usebuilder.= cpp index 65e79b8..5c862ea 100644 --- a/duchain/builders/usebuilder.cpp +++ b/duchain/builders/usebuilder.cpp @@ -177,4 +177,10 @@ void UseBuilder::visitMethodCallMembers(RubyAst *node) m_lastCtx =3D ctx; } = +void UseBuilder::visitRequire(RubyAst* node, bool relative) +{ + // do nothing, only context builder will resolve requires +} + + } // End of namespace Ruby diff --git a/duchain/builders/usebuilder.h b/duchain/builders/usebuilder.h index d42eba3..3910fa6 100644 --- a/duchain/builders/usebuilder.h +++ b/duchain/builders/usebuilder.h @@ -55,6 +55,7 @@ protected: virtual void visitClassName(RubyAst *node); virtual void visitMixin(RubyAst *node, bool include); virtual void visitMethodCall(RubyAst *node); + virtual void visitRequire(RubyAst* node, bool relative =3D false); = private: /// @internal Visit the method call members from the given @p node.