SageInterface::lookupSymbolInParentScopes¶
Find a symbol by name in the current or an ancestor scope, starting from the top of ScopeStack when no scope is supplied.
Synopsis¶
Declared in <SageIII/sageInterface/sageInterface.h>
[[visibility("default")]]
SgSymbol*
lookupSymbolInParentScopes(
SgName const& name,
SgScopeStatement* currentScope = NULL,
SgTemplateParameterPtrList* templateParameterList = NULL,
SgTemplateArgumentPtrList* templateArgumentList = NULL); Return Value¶
This class represents the concept of a name within the compiler.
Parameters¶
| Name | Description |
|---|---|
| name | String-backed name value used by AST nodes. |
| currentScope | This class represents the concept of a scope in C++ (e.g. global scope, fuction scope, etc.). |
Created with MrDocs