[rset] syntax_tree impl. consistency: don't return an annotated syntax tree stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 01 Jul 2011 11:18:16 +0200
branchstable
changeset 7592 c84436b79793
parent 7589 d3459fe041f0
child 7593 0c1024b3e7fc
[rset] syntax_tree impl. consistency: don't return an annotated syntax tree
rset.py
--- a/rset.py	Thu Jun 30 16:26:25 2011 +0200
+++ b/rset.py	Fri Jul 01 11:18:16 2011 +0200
@@ -515,17 +515,15 @@
 
     @cached
     def syntax_tree(self):
-        """get the syntax tree for the source query.
-
-        :rtype: rql.stmts.Statement
-        :return: the RQL syntax tree of the originating query
+        """return the syntax tree (:class:`rql.stmts.Union`) for the originating
+        query. You can expect it to have solutions computed but it won't be
+        annotated (you usually don't need that for simple introspection).
         """
         if self._rqlst:
             rqlst = self._rqlst.copy()
             # to avoid transport overhead when pyro is used, the schema has been
             # unset from the syntax tree
             rqlst.schema = self.req.vreg.schema
-            self.req.vreg.rqlhelper.annotate(rqlst)
         else:
             rqlst = self.req.vreg.parse(self.req, self.rql, self.args)
         return rqlst