IDiaSymbol::get_lexicalParent
The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.
The latest version of this topic can be found at IDiaSymbol::get_lexicalParent.
Retrieves a reference to the lexical parent of the symbol.
HRESULT get_lexicalParent ( IDiaSymbol** pRetVal );
Parameters
pRetVal
[out] Returns an IDiaSymbol object that represents the lexical parent of the symbol.
If successful, returns S_OK; otherwise, returns S_FALSE or error code.
A return value of |
The lexical parent of a symbol is the enclosing function or module. For example, the lexical parent of a function parameter or local variable is the function itself while the lexical parent of the function is the module it is defined in.
The possible symbols that can appear as lexical parents are documented in Lexical Hierarchy of Symbol Types.