Inferno  0.2
scope.hpp
Go to the documentation of this file.
00001 #ifndef SCOPE_HPP
00002 #define SCOPE_HPP
00003 
00004 #include "tree/cpptree.hpp"
00005 
00006 //
00007 // Handy helper to get the node that is the "scope" of the supplied node - ie basically the
00008 // parent in the tree. We have to do searches for this, since the tree does not contain 
00009 // back-pointers.
00010 //
00011 TreePtr<CPPTree::Scope> GetScope( TreePtr<CPPTree::Program> program, TreePtr<CPPTree::Identifier> id );
00012 
00013 #endif