[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [kdev-ruby] duchain/builders: Usebuilder doesn't need to process requires, context builder does that
From: Alexander Dymo <adymo () kdevelop ! org>
Date: 2012-10-25 12:15:05
Message-ID: 20121025121505.D56F4A60C4 () git ! kde ! org
[Download RAW message or body]
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 = 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 = false);
private:
/// @internal Visit the method call members from the given @p node.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic