[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdevplatform/language/duchain/builders
From:       David Nolden <david.nolden.kde () art-master ! de>
Date:       2008-10-11 13:11:02
Message-ID: 1223730662.380197.4482.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 869944 by zwabel:

Add another openContext function, used in the last patch to kdevelop



 M  +29 -0     abstractcontextbuilder.h  


--- trunk/KDE/kdevplatform/language/duchain/builders/abstractcontextbuilder.h \
#869943:869944 @@ -459,6 +459,35 @@
   /**
    * Open a context, and create / update it if necessary.
    *
+   * \param node The range to associate with the context.
+   * \param range A custom range which the context should encompass.
+   * \param type The type of context to open.
+   * \param identifier The identifier for this context
+   * \returns the opened context.
+   */
+  DUContext* openContext(T* node, const KDevelop::SimpleRange& range, \
DUContext::ContextType type, QualifiedIdentifier id) +  {
+    if (m_compilingContexts) {
+#ifdef DEBUG_UPDATE_MATCHING
+      kDebug() << "opening custom context";
+#endif
+      DUContext* ret = openContextInternal(range, type, id);
+      setContextOnNode( node, ret );
+      return ret;
+
+    } else {
+      openContext( contextFromNode(node) );
+      {
+        LockedSmartInterface iface = editor()->smart();
+        editor()->setCurrentRange(iface, currentContext()->smartRange());
+      }
+      return currentContext();
+    }
+  }
+
+  /**
+   * Open a context, and create / update it if necessary.
+   *
    * \param rangeNode The range which encompasses the context.
    * \param type The type of context to open.
    * \param identifier The identifier which corresponds to the context.


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic