Skip to content

SageInterface::getEnclosingScope

Get the enclosing scope from a node n

Synopsis

Declared in <SageIII/sageInterface/sageInterface.h>

[[visibility]]
SgScopeStatement*
getEnclosingScope(
    SgNode* n,
    bool const includingSelf = false);

Return Value

the enclosing scope from a node n

Parameters

Name

Description

n

This class represents the base class for all IR nodes within Sage III.

Created with MrDocs