Puma Reference Manual | Puma: Puma::CLocalScope Class Reference |
Semantic information about a local scope in a function body, also called block scope. More...
#include <Puma/CLocalScope.h>
Inherits Puma::CStructure.
Public Member Functions | |
CLocalScope () | |
Constructor. | |
~CLocalScope () | |
Destructor. | |
CLocalScope * | Top () const |
Get the outermost local scope in a nested hierarchy of local scopes. | |
CFunctionInfo * | Function () const |
Get the function containing the local scope. |
Semantic information about a local scope in a function body, also called block scope.
Examples for local scopes:
{ <local scope> } if (...) <local scope>; while (...) { <local scope> }
Puma::CLocalScope::CLocalScope | ( | ) | [inline] |
Constructor.
Puma::CLocalScope::~CLocalScope | ( | ) | [inline] |
Destructor.
If the object type is CObjectInfo::LOCAL_INFO, then CObjectInfo::CleanUp() is called.
CFunctionInfo* Puma::CLocalScope::Function | ( | ) | const |
Get the function containing the local scope.
CLocalScope* Puma::CLocalScope::Top | ( | ) | const |
Get the outermost local scope in a nested hierarchy of local scopes.