Base class for scopes with contained declarations. Each scope has its own Dictionary of names so far accumulated for this scope. Each scope also as a complete vector of scopes where name lookup is to proceed if unsuccessful in this scope. Name lookup is not recursive.
| Public Member functions Summary: | |
| constructor | Scope(SourceFile* file, int line, const std::string& type, const ScopedName& name) Constructor [Source] |
| virtual destructor | ~Scope() Destructor. [Source] |
| virtual void | accept(Visitor*) Accepts the given visitor [Source] |
| const Declaration::vector& | declarations() Constant version of declarations() [Source] |
| Declaration::vector& | declarations() Returns the vector of declarations. [Source] |
| Private Data members Summary: | |
| Declaration::vector | m_declarations The vector of contained declarations [Source] |
| Public Typedefs Inherited from Declaration | |
| vector | |
| Public Member functions Inherited from Declaration | |
| name, name, file, set_file, line, type, set_type, access, set_access, comments, comments, declared, declared | |
| Public Data members Inherited from FakeGC::cleanup | |
| cleanup_next | |
| Public Member function Details: |
Destructor. Recursively destroys contained declarations
Returns the vector of declarations. The vector returned is the private member vector of this Scope, so modifications will affect the Scope.