Puma Reference Manual | Puma: Puma::CSemScope Class Reference |
Scope information object for syntax tree nodes. More...
#include <Puma/CSemScope.h>
Inherited by Puma::CT_ArgDeclList, Puma::CT_ArgDeclSeq, Puma::CT_CmpdStmt, Puma::CT_ForStmt, Puma::CT_Handler, Puma::CT_IfElseStmt, Puma::CT_IfStmt, Puma::CT_Intro, Puma::CT_MembInitList, Puma::CT_MembList, Puma::CT_Program, Puma::CT_SwitchStmt, Puma::CT_TemplateDecl, Puma::CT_TemplateParamList, and Puma::CT_WhileStmt.
Public Member Functions | |
CSemScope () | |
Constructor. | |
void | Scope (CStructure *s) |
Set the scope. | |
CStructure * | Scope () const |
Get the scope. |
Scope information object for syntax tree nodes.
Some syntactic constructs open own scopes, e.g. class definitions, function bodies, and compound statements.
Puma::CSemScope::CSemScope | ( | ) | [inline] |
Constructor.
CStructure* Puma::CSemScope::Scope | ( | ) | const [inline] |
Get the scope.
void Puma::CSemScope::Scope | ( | CStructure * | s | ) | [inline] |
Set the scope.
s | The scope. |