Skip to content

SgPythonGlobalStmt

This class represents the concept of a 'global' stmt in Python

Synopsis

Declared in <src/docs/mrdocs/ast_node_docs.h>

Description

Data members

#### SgPythonGlobalStmt::p_names This is a list of SgInitializedNames that are imported into the inner scope.

Member functions

#### SgPythonGlobalStmt::~SgPythonGlobalStmt() This is the destructor.

#### SgPythonGlobalStmt::isSgPythonGlobalStmt (SgNode *s) Cast function (from derived class to SgPythonGlobalStmt pointer). This functions returns a SgPythonGlobalStmt pointer for any input of a pointer to an object derived from a SgPythonGlobalStmt. ‐ Return: Returns valid pointer to SgPythonGlobalStmt if input is derived from a SgLocatedNode.

#### SgPythonGlobalStmt::isSgPythonGlobalStmt (const SgNode *s) Cast function (from derived class to SgPythonGlobalStmt pointer). This functions returns a SgPythonGlobalStmt pointer for any input of a pointer to an object derived from a SgPythonGlobalStmt. ‐ Return: Returns valid pointer to SgPythonGlobalStmt if input is derived from a SgLocatedNode.

#### SgPythonGlobalStmt::copy(const SgCopyHelp & help) Makes a copy (deap of shallow depending on SgCopyHelp). ‐ Return: Returns pointer to copy of SgPythonGlobalStmt.

#### SgPythonGlobalStmt::append_name(SgIntializedName* name) Append a name to the list of identifiers imported into the inner scope.

#### SgPythonGlobalStmt::prepend_name(SgIntializedName* name) Prepend a name to the list of identifiers imported into the inner scope.

Created with MrDocs