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.