Skip to content

Latest commit

 

History

History
45 lines (35 loc) · 1.47 KB

idiasymbol-get-lexicalparent.md

File metadata and controls

45 lines (35 loc) · 1.47 KB
description title ms.date ms.topic dev_langs helpviewer_keywords author ms.author manager ms.subservice
Retrieves a reference to the lexical parent of the symbol.
IDiaSymbol::get_lexicalParent
11/04/2016
reference
C++
IDiaSymbol::get_lexicalParent method
mikejo5000
mikejo
mijacobs
debug-diagnostics

IDiaSymbol::get_lexicalParent

Retrieves a reference to the lexical parent of the symbol.

Syntax

HRESULT get_lexicalParent ( 
   IDiaSymbol** pRetVal
);

Parameters

pRetVal

[out] Returns an IDiaSymbol object that represents the lexical parent of the symbol.

Return Value

If successful, returns S_OK; otherwise, returns S_FALSE or error code.

Note

A return value of S_FALSE means the property is not available for the symbol.

Remarks

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.

See also