~zorba-coders/zorba/bug1024580

« back to all changes in this revision

Viewing changes to src/compiler/parsetree/parsenodes.h

  • Committer: Rodolfo Ochoa
  • Date: 2012-09-08 16:36:08 UTC
  • mfrom: (10937.1.51 zorba)
  • Revision ID: rodolfo.ochoa@gmail.com-20120908163608-mz55ayoa8lznh7i3
MergeĀ fromĀ trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
813
813
class VFO_DeclList : public parsenode
814
814
{
815
815
protected:
816
 
  std::vector<rchandle<parsenode> > vfo_hv;
 
816
  std::vector<rchandle<parsenode> > theDecls;
 
817
  std::vector<bool>                 theIndexDeclFlags;
817
818
 
818
819
public:
819
820
  VFO_DeclList(const QueryLoc&);
820
821
 
821
 
  ulong size () const { return (ulong)vfo_hv.size (); }
822
 
 
823
 
  void push_front(rchandle<parsenode> vfo_h) { vfo_hv.insert(vfo_hv.begin(), vfo_h); }
824
 
 
825
 
  void push_back(rchandle<parsenode> vfo_h) { vfo_hv.push_back(vfo_h); }
826
 
 
827
 
  void push_back (const VFO_DeclList &other) { vfo_hv.insert(vfo_hv.end(), other.vfo_hv.begin(), other.vfo_hv.end()); }
828
 
 
829
 
  rchandle<parsenode> operator[](int k) const { return vfo_hv[k]; }
830
 
 
831
 
  std::vector<rchandle<parsenode> >::iterator begin() { return vfo_hv.begin(); }
832
 
 
833
 
  std::vector<rchandle<parsenode> >::iterator end() { return vfo_hv.end(); }
834
 
 
835
 
  std::vector<rchandle<parsenode> >::const_iterator begin() const { return vfo_hv.begin(); }
836
 
 
837
 
  std::vector<rchandle<parsenode> >::const_iterator end() const { return vfo_hv.end(); }
838
 
 
839
 
  const VarDecl* findVarDecl(const QName& varname);
 
822
  csize size() const { return theDecls.size(); }
 
823
 
 
824
  void push_back(const rchandle<parsenode>& vfo);
 
825
 
 
826
  rchandle<parsenode> operator[](int k) const { return theDecls[k]; }
 
827
 
 
828
  std::vector<rchandle<parsenode> >::const_iterator begin() const 
 
829
  {
 
830
    return theDecls.begin();
 
831
  }
 
832
 
 
833
  std::vector<rchandle<parsenode> >::const_iterator end() const
 
834
  {
 
835
    return theDecls.end();
 
836
  }
840
837
 
841
838
  void accept(parsenode_visitor&) const;
842
839
};