PUMA Library Reference Manual
Loading...
Searching...
No Matches
Puma::CSemScope Class Reference

#include <Puma/CSemScope.h>

+ Inheritance diagram for Puma::CSemScope:

Description

Scope information object for syntax tree nodes.

Some syntactic constructs open own scopes, e.g. class definitions, function bodies, and compound statements.

Public Member Functions

 CSemScope ()
 Constructor. More...
 
void Scope (CStructure *s)
 Set the scope. More...
 
CStructureScope () const
 Get the scope. More...
 

Constructor & Destructor Documentation

◆ CSemScope()

Puma::CSemScope::CSemScope ( )
inline

Constructor.

Member Function Documentation

◆ Scope() [1/2]

CStructure * Puma::CSemScope::Scope ( ) const
inline

Get the scope.

◆ Scope() [2/2]

void Puma::CSemScope::Scope ( CStructure s)
inline

Set the scope.

Parameters
sThe scope.